AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_conformance_pack_input.rs

@@ -1,0 +10,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_delete_conformance_pack_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::delete_conformance_pack::DeleteConformancePackInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.conformance_pack_name {
    7         -
        object.key("ConformancePackName").string(var_1.as_str());
    8         -
    }
    9         -
    Ok(())
   10         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_delivery_channel.rs

@@ -1,0 +86,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_delete_delivery_channel_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::delete_delivery_channel::DeleteDeliveryChannelOutput,
    9         -
    crate::operation::delete_delivery_channel::DeleteDeliveryChannelError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13         -
        .map_err(crate::operation::delete_delivery_channel::DeleteDeliveryChannelError::unhandled)?;
   14         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   15         -
    let generic = generic_builder.build();
   16         -
    let error_code = match generic.code() {
   17         -
        Some(code) => code,
   18         -
        None => return Err(crate::operation::delete_delivery_channel::DeleteDeliveryChannelError::unhandled(generic)),
   19         -
    };
   20         -
   21         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   22         -
    Err(match error_code {
   23         -
        "LastDeliveryChannelDeleteFailedException" => {
   24         -
            crate::operation::delete_delivery_channel::DeleteDeliveryChannelError::LastDeliveryChannelDeleteFailedException({
   25         -
                #[allow(unused_mut)]
   26         -
                let mut tmp = {
   27         -
                    #[allow(unused_mut)]
   28         -
                    let mut output = crate::types::error::builders::LastDeliveryChannelDeleteFailedExceptionBuilder::default();
   29         -
                    output = crate::protocol_serde::shape_last_delivery_channel_delete_failed_exception::de_last_delivery_channel_delete_failed_exception_json_err(_response_body, output).map_err(crate::operation::delete_delivery_channel::DeleteDeliveryChannelError::unhandled)?;
   30         -
                    let output = output.meta(generic);
   31         -
                    output.build()
   32         -
                };
   33         -
                if tmp.message.is_none() {
   34         -
                    tmp.message = _error_message;
   35         -
                }
   36         -
                tmp
   37         -
            })
   38         -
        }
   39         -
        "NoSuchDeliveryChannelException" => crate::operation::delete_delivery_channel::DeleteDeliveryChannelError::NoSuchDeliveryChannelException({
   40         -
            #[allow(unused_mut)]
   41         -
            let mut tmp = {
   42         -
                #[allow(unused_mut)]
   43         -
                let mut output = crate::types::error::builders::NoSuchDeliveryChannelExceptionBuilder::default();
   44         -
                output = crate::protocol_serde::shape_no_such_delivery_channel_exception::de_no_such_delivery_channel_exception_json_err(
   45         -
                    _response_body,
   46         -
                    output,
   47         -
                )
   48         -
                .map_err(crate::operation::delete_delivery_channel::DeleteDeliveryChannelError::unhandled)?;
   49         -
                let output = output.meta(generic);
   50         -
                output.build()
   51         -
            };
   52         -
            if tmp.message.is_none() {
   53         -
                tmp.message = _error_message;
   54         -
            }
   55         -
            tmp
   56         -
        }),
   57         -
        _ => crate::operation::delete_delivery_channel::DeleteDeliveryChannelError::generic(generic),
   58         -
    })
   59         -
}
   60         -
   61         -
#[allow(clippy::unnecessary_wraps)]
   62         -
pub fn de_delete_delivery_channel_http_response(
   63         -
    _response_status: u16,
   64         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   65         -
    _response_body: &[u8],
   66         -
) -> std::result::Result<
   67         -
    crate::operation::delete_delivery_channel::DeleteDeliveryChannelOutput,
   68         -
    crate::operation::delete_delivery_channel::DeleteDeliveryChannelError,
   69         -
> {
   70         -
    Ok({
   71         -
        #[allow(unused_mut)]
   72         -
        let mut output = crate::operation::delete_delivery_channel::builders::DeleteDeliveryChannelOutputBuilder::default();
   73         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   74         -
        output.build()
   75         -
    })
   76         -
}
   77         -
   78         -
pub fn ser_delete_delivery_channel_input(
   79         -
    input: &crate::operation::delete_delivery_channel::DeleteDeliveryChannelInput,
   80         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   81         -
    let mut out = String::new();
   82         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
   83         -
    crate::protocol_serde::shape_delete_delivery_channel_input::ser_delete_delivery_channel_input_input(&mut object, input)?;
   84         -
    object.finish();
   85         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
   86         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_delivery_channel_input.rs

@@ -1,0 +10,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_delete_delivery_channel_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::delete_delivery_channel::DeleteDeliveryChannelInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.delivery_channel_name {
    7         -
        object.key("DeliveryChannelName").string(var_1.as_str());
    8         -
    }
    9         -
    Ok(())
   10         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_evaluation_results.rs

@@ -1,0 +87,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_delete_evaluation_results_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::delete_evaluation_results::DeleteEvaluationResultsOutput,
    9         -
    crate::operation::delete_evaluation_results::DeleteEvaluationResultsError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13         -
        .map_err(crate::operation::delete_evaluation_results::DeleteEvaluationResultsError::unhandled)?;
   14         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   15         -
    let generic = generic_builder.build();
   16         -
    let error_code = match generic.code() {
   17         -
        Some(code) => code,
   18         -
        None => {
   19         -
            return Err(crate::operation::delete_evaluation_results::DeleteEvaluationResultsError::unhandled(
   20         -
                generic,
   21         -
            ))
   22         -
        }
   23         -
    };
   24         -
   25         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   26         -
    Err(match error_code {
   27         -
        "NoSuchConfigRuleException" => crate::operation::delete_evaluation_results::DeleteEvaluationResultsError::NoSuchConfigRuleException({
   28         -
            #[allow(unused_mut)]
   29         -
            let mut tmp = {
   30         -
                #[allow(unused_mut)]
   31         -
                let mut output = crate::types::error::builders::NoSuchConfigRuleExceptionBuilder::default();
   32         -
                output =
   33         -
                    crate::protocol_serde::shape_no_such_config_rule_exception::de_no_such_config_rule_exception_json_err(_response_body, output)
   34         -
                        .map_err(crate::operation::delete_evaluation_results::DeleteEvaluationResultsError::unhandled)?;
   35         -
                let output = output.meta(generic);
   36         -
                output.build()
   37         -
            };
   38         -
            if tmp.message.is_none() {
   39         -
                tmp.message = _error_message;
   40         -
            }
   41         -
            tmp
   42         -
        }),
   43         -
        "ResourceInUseException" => crate::operation::delete_evaluation_results::DeleteEvaluationResultsError::ResourceInUseException({
   44         -
            #[allow(unused_mut)]
   45         -
            let mut tmp = {
   46         -
                #[allow(unused_mut)]
   47         -
                let mut output = crate::types::error::builders::ResourceInUseExceptionBuilder::default();
   48         -
                output = crate::protocol_serde::shape_resource_in_use_exception::de_resource_in_use_exception_json_err(_response_body, output)
   49         -
                    .map_err(crate::operation::delete_evaluation_results::DeleteEvaluationResultsError::unhandled)?;
   50         -
                let output = output.meta(generic);
   51         -
                output.build()
   52         -
            };
   53         -
            if tmp.message.is_none() {
   54         -
                tmp.message = _error_message;
   55         -
            }
   56         -
            tmp
   57         -
        }),
   58         -
        _ => crate::operation::delete_evaluation_results::DeleteEvaluationResultsError::generic(generic),
   59         -
    })
   60         -
}
   61         -
   62         -
#[allow(clippy::unnecessary_wraps)]
   63         -
pub fn de_delete_evaluation_results_http_response(
   64         -
    _response_status: u16,
   65         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   66         -
    _response_body: &[u8],
   67         -
) -> std::result::Result<
   68         -
    crate::operation::delete_evaluation_results::DeleteEvaluationResultsOutput,
   69         -
    crate::operation::delete_evaluation_results::DeleteEvaluationResultsError,
   70         -
> {
   71         -
    Ok({
   72         -
        #[allow(unused_mut)]
   73         -
        let mut output = crate::operation::delete_evaluation_results::builders::DeleteEvaluationResultsOutputBuilder::default();
   74         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   75         -
        output.build()
   76         -
    })
   77         -
}
   78         -
   79         -
pub fn ser_delete_evaluation_results_input(
   80         -
    input: &crate::operation::delete_evaluation_results::DeleteEvaluationResultsInput,
   81         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   82         -
    let mut out = String::new();
   83         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
   84         -
    crate::protocol_serde::shape_delete_evaluation_results_input::ser_delete_evaluation_results_input_input(&mut object, input)?;
   85         -
    object.finish();
   86         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
   87         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_evaluation_results_input.rs

@@ -1,0 +10,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_delete_evaluation_results_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::delete_evaluation_results::DeleteEvaluationResultsInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.config_rule_name {
    7         -
        object.key("ConfigRuleName").string(var_1.as_str());
    8         -
    }
    9         -
    Ok(())
   10         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_organization_config_rule.rs

@@ -1,0 +103,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_delete_organization_config_rule_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleOutput,
    9         -
    crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13         -
        .map_err(crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError::unhandled)?;
   14         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   15         -
    let generic = generic_builder.build();
   16         -
    let error_code = match generic.code() {
   17         -
        Some(code) => code,
   18         -
        None => return Err(crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError::unhandled(generic)),
   19         -
    };
   20         -
   21         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   22         -
    Err(match error_code {
   23         -
        "NoSuchOrganizationConfigRuleException" => {
   24         -
            crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError::NoSuchOrganizationConfigRuleException({
   25         -
                #[allow(unused_mut)]
   26         -
                let mut tmp = {
   27         -
                    #[allow(unused_mut)]
   28         -
                    let mut output = crate::types::error::builders::NoSuchOrganizationConfigRuleExceptionBuilder::default();
   29         -
                    output = crate::protocol_serde::shape_no_such_organization_config_rule_exception::de_no_such_organization_config_rule_exception_json_err(_response_body, output).map_err(crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError::unhandled)?;
   30         -
                    let output = output.meta(generic);
   31         -
                    output.build()
   32         -
                };
   33         -
                if tmp.message.is_none() {
   34         -
                    tmp.message = _error_message;
   35         -
                }
   36         -
                tmp
   37         -
            })
   38         -
        }
   39         -
        "OrganizationAccessDeniedException" => {
   40         -
            crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError::OrganizationAccessDeniedException({
   41         -
                #[allow(unused_mut)]
   42         -
                let mut tmp = {
   43         -
                    #[allow(unused_mut)]
   44         -
                    let mut output = crate::types::error::builders::OrganizationAccessDeniedExceptionBuilder::default();
   45         -
                    output = crate::protocol_serde::shape_organization_access_denied_exception::de_organization_access_denied_exception_json_err(
   46         -
                        _response_body,
   47         -
                        output,
   48         -
                    )
   49         -
                    .map_err(crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError::unhandled)?;
   50         -
                    let output = output.meta(generic);
   51         -
                    output.build()
   52         -
                };
   53         -
                if tmp.message.is_none() {
   54         -
                    tmp.message = _error_message;
   55         -
                }
   56         -
                tmp
   57         -
            })
   58         -
        }
   59         -
        "ResourceInUseException" => crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError::ResourceInUseException({
   60         -
            #[allow(unused_mut)]
   61         -
            let mut tmp = {
   62         -
                #[allow(unused_mut)]
   63         -
                let mut output = crate::types::error::builders::ResourceInUseExceptionBuilder::default();
   64         -
                output = crate::protocol_serde::shape_resource_in_use_exception::de_resource_in_use_exception_json_err(_response_body, output)
   65         -
                    .map_err(crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError::unhandled)?;
   66         -
                let output = output.meta(generic);
   67         -
                output.build()
   68         -
            };
   69         -
            if tmp.message.is_none() {
   70         -
                tmp.message = _error_message;
   71         -
            }
   72         -
            tmp
   73         -
        }),
   74         -
        _ => crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError::generic(generic),
   75         -
    })
   76         -
}
   77         -
   78         -
#[allow(clippy::unnecessary_wraps)]
   79         -
pub fn de_delete_organization_config_rule_http_response(
   80         -
    _response_status: u16,
   81         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   82         -
    _response_body: &[u8],
   83         -
) -> std::result::Result<
   84         -
    crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleOutput,
   85         -
    crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleError,
   86         -
> {
   87         -
    Ok({
   88         -
        #[allow(unused_mut)]
   89         -
        let mut output = crate::operation::delete_organization_config_rule::builders::DeleteOrganizationConfigRuleOutputBuilder::default();
   90         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   91         -
        output.build()
   92         -
    })
   93         -
}
   94         -
   95         -
pub fn ser_delete_organization_config_rule_input(
   96         -
    input: &crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleInput,
   97         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   98         -
    let mut out = String::new();
   99         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
  100         -
    crate::protocol_serde::shape_delete_organization_config_rule_input::ser_delete_organization_config_rule_input_input(&mut object, input)?;
  101         -
    object.finish();
  102         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
  103         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_organization_config_rule_input.rs

@@ -1,0 +10,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_delete_organization_config_rule_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::delete_organization_config_rule::DeleteOrganizationConfigRuleInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.organization_config_rule_name {
    7         -
        object.key("OrganizationConfigRuleName").string(var_1.as_str());
    8         -
    }
    9         -
    Ok(())
   10         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_organization_conformance_pack.rs

@@ -1,0 +110,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_delete_organization_conformance_pack_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackOutput,
    9         -
    crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13         -
        .map_err(crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError::unhandled)?;
   14         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   15         -
    let generic = generic_builder.build();
   16         -
    let error_code = match generic.code() {
   17         -
        Some(code) => code,
   18         -
        None => return Err(crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError::unhandled(generic)),
   19         -
    };
   20         -
   21         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   22         -
    Err(match error_code {
   23         -
        "NoSuchOrganizationConformancePackException" => {
   24         -
            crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError::NoSuchOrganizationConformancePackException(
   25         -
                {
   26         -
                    #[allow(unused_mut)]
   27         -
                    let mut tmp = {
   28         -
                        #[allow(unused_mut)]
   29         -
                        let mut output = crate::types::error::builders::NoSuchOrganizationConformancePackExceptionBuilder::default();
   30         -
                        output = crate::protocol_serde::shape_no_such_organization_conformance_pack_exception::de_no_such_organization_conformance_pack_exception_json_err(_response_body, output).map_err(crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError::unhandled)?;
   31         -
                        let output = output.meta(generic);
   32         -
                        output.build()
   33         -
                    };
   34         -
                    if tmp.message.is_none() {
   35         -
                        tmp.message = _error_message;
   36         -
                    }
   37         -
                    tmp
   38         -
                },
   39         -
            )
   40         -
        }
   41         -
        "OrganizationAccessDeniedException" => {
   42         -
            crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError::OrganizationAccessDeniedException({
   43         -
                #[allow(unused_mut)]
   44         -
                let mut tmp = {
   45         -
                    #[allow(unused_mut)]
   46         -
                    let mut output = crate::types::error::builders::OrganizationAccessDeniedExceptionBuilder::default();
   47         -
                    output = crate::protocol_serde::shape_organization_access_denied_exception::de_organization_access_denied_exception_json_err(
   48         -
                        _response_body,
   49         -
                        output,
   50         -
                    )
   51         -
                    .map_err(crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError::unhandled)?;
   52         -
                    let output = output.meta(generic);
   53         -
                    output.build()
   54         -
                };
   55         -
                if tmp.message.is_none() {
   56         -
                    tmp.message = _error_message;
   57         -
                }
   58         -
                tmp
   59         -
            })
   60         -
        }
   61         -
        "ResourceInUseException" => {
   62         -
            crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError::ResourceInUseException({
   63         -
                #[allow(unused_mut)]
   64         -
                let mut tmp = {
   65         -
                    #[allow(unused_mut)]
   66         -
                    let mut output = crate::types::error::builders::ResourceInUseExceptionBuilder::default();
   67         -
                    output = crate::protocol_serde::shape_resource_in_use_exception::de_resource_in_use_exception_json_err(_response_body, output)
   68         -
                        .map_err(crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError::unhandled)?;
   69         -
                    let output = output.meta(generic);
   70         -
                    output.build()
   71         -
                };
   72         -
                if tmp.message.is_none() {
   73         -
                    tmp.message = _error_message;
   74         -
                }
   75         -
                tmp
   76         -
            })
   77         -
        }
   78         -
        _ => crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError::generic(generic),
   79         -
    })
   80         -
}
   81         -
   82         -
#[allow(clippy::unnecessary_wraps)]
   83         -
pub fn de_delete_organization_conformance_pack_http_response(
   84         -
    _response_status: u16,
   85         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   86         -
    _response_body: &[u8],
   87         -
) -> std::result::Result<
   88         -
    crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackOutput,
   89         -
    crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackError,
   90         -
> {
   91         -
    Ok({
   92         -
        #[allow(unused_mut)]
   93         -
        let mut output = crate::operation::delete_organization_conformance_pack::builders::DeleteOrganizationConformancePackOutputBuilder::default();
   94         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   95         -
        output.build()
   96         -
    })
   97         -
}
   98         -
   99         -
pub fn ser_delete_organization_conformance_pack_input(
  100         -
    input: &crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackInput,
  101         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
  102         -
    let mut out = String::new();
  103         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
  104         -
    crate::protocol_serde::shape_delete_organization_conformance_pack_input::ser_delete_organization_conformance_pack_input_input(
  105         -
        &mut object,
  106         -
        input,
  107         -
    )?;
  108         -
    object.finish();
  109         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
  110         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_organization_conformance_pack_input.rs

@@ -1,0 +10,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_delete_organization_conformance_pack_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::delete_organization_conformance_pack::DeleteOrganizationConformancePackInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.organization_conformance_pack_name {
    7         -
        object.key("OrganizationConformancePackName").string(var_1.as_str());
    8         -
    }
    9         -
    Ok(())
   10         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_pending_aggregation_request.rs

@@ -1,0 +72,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_delete_pending_aggregation_request_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestOutput,
    9         -
    crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13         -
        .map_err(crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestError::unhandled)?;
   14         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   15         -
    let generic = generic_builder.build();
   16         -
    let error_code = match generic.code() {
   17         -
        Some(code) => code,
   18         -
        None => return Err(crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestError::unhandled(generic)),
   19         -
    };
   20         -
   21         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   22         -
    Err(match error_code {
   23         -
        "InvalidParameterValueException" => {
   24         -
            crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestError::InvalidParameterValueException({
   25         -
                #[allow(unused_mut)]
   26         -
                let mut tmp = {
   27         -
                    #[allow(unused_mut)]
   28         -
                    let mut output = crate::types::error::builders::InvalidParameterValueExceptionBuilder::default();
   29         -
                    output = crate::protocol_serde::shape_invalid_parameter_value_exception::de_invalid_parameter_value_exception_json_err(
   30         -
                        _response_body,
   31         -
                        output,
   32         -
                    )
   33         -
                    .map_err(crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestError::unhandled)?;
   34         -
                    let output = output.meta(generic);
   35         -
                    output.build()
   36         -
                };
   37         -
                if tmp.message.is_none() {
   38         -
                    tmp.message = _error_message;
   39         -
                }
   40         -
                tmp
   41         -
            })
   42         -
        }
   43         -
        _ => crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestError::generic(generic),
   44         -
    })
   45         -
}
   46         -
   47         -
#[allow(clippy::unnecessary_wraps)]
   48         -
pub fn de_delete_pending_aggregation_request_http_response(
   49         -
    _response_status: u16,
   50         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   51         -
    _response_body: &[u8],
   52         -
) -> std::result::Result<
   53         -
    crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestOutput,
   54         -
    crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestError,
   55         -
> {
   56         -
    Ok({
   57         -
        #[allow(unused_mut)]
   58         -
        let mut output = crate::operation::delete_pending_aggregation_request::builders::DeletePendingAggregationRequestOutputBuilder::default();
   59         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   60         -
        output.build()
   61         -
    })
   62         -
}
   63         -
   64         -
pub fn ser_delete_pending_aggregation_request_input(
   65         -
    input: &crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestInput,
   66         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   67         -
    let mut out = String::new();
   68         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
   69         -
    crate::protocol_serde::shape_delete_pending_aggregation_request_input::ser_delete_pending_aggregation_request_input_input(&mut object, input)?;
   70         -
    object.finish();
   71         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
   72         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_pending_aggregation_request_input.rs

@@ -1,0 +13,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_delete_pending_aggregation_request_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::delete_pending_aggregation_request::DeletePendingAggregationRequestInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.requester_account_id {
    7         -
        object.key("RequesterAccountId").string(var_1.as_str());
    8         -
    }
    9         -
    if let Some(var_2) = &input.requester_aws_region {
   10         -
        object.key("RequesterAwsRegion").string(var_2.as_str());
   11         -
    }
   12         -
    Ok(())
   13         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_remediation_configuration.rs

@@ -1,0 +128,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_delete_remediation_configuration_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationOutput,
    9         -
    crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13         -
        .map_err(crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::unhandled)?;
   14         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   15         -
    let generic = generic_builder.build();
   16         -
    let error_code = match generic.code() {
   17         -
        Some(code) => code,
   18         -
        None => return Err(crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::unhandled(generic)),
   19         -
    };
   20         -
   21         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   22         -
    Err(match error_code {
   23         -
        "InsufficientPermissionsException" => {
   24         -
            crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::InsufficientPermissionsException({
   25         -
                #[allow(unused_mut)]
   26         -
                let mut tmp = {
   27         -
                    #[allow(unused_mut)]
   28         -
                    let mut output = crate::types::error::builders::InsufficientPermissionsExceptionBuilder::default();
   29         -
                    output = crate::protocol_serde::shape_insufficient_permissions_exception::de_insufficient_permissions_exception_json_err(
   30         -
                        _response_body,
   31         -
                        output,
   32         -
                    )
   33         -
                    .map_err(crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::unhandled)?;
   34         -
                    let output = output.meta(generic);
   35         -
                    output.build()
   36         -
                };
   37         -
                if tmp.message.is_none() {
   38         -
                    tmp.message = _error_message;
   39         -
                }
   40         -
                tmp
   41         -
            })
   42         -
        }
   43         -
        "InvalidParameterValueException" => {
   44         -
            crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::InvalidParameterValueException({
   45         -
                #[allow(unused_mut)]
   46         -
                let mut tmp = {
   47         -
                    #[allow(unused_mut)]
   48         -
                    let mut output = crate::types::error::builders::InvalidParameterValueExceptionBuilder::default();
   49         -
                    output = crate::protocol_serde::shape_invalid_parameter_value_exception::de_invalid_parameter_value_exception_json_err(
   50         -
                        _response_body,
   51         -
                        output,
   52         -
                    )
   53         -
                    .map_err(crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::unhandled)?;
   54         -
                    let output = output.meta(generic);
   55         -
                    output.build()
   56         -
                };
   57         -
                if tmp.message.is_none() {
   58         -
                    tmp.message = _error_message;
   59         -
                }
   60         -
                tmp
   61         -
            })
   62         -
        }
   63         -
        "NoSuchRemediationConfigurationException" => {
   64         -
            crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::NoSuchRemediationConfigurationException({
   65         -
                #[allow(unused_mut)]
   66         -
                let mut tmp = {
   67         -
                    #[allow(unused_mut)]
   68         -
                    let mut output = crate::types::error::builders::NoSuchRemediationConfigurationExceptionBuilder::default();
   69         -
                    output = crate::protocol_serde::shape_no_such_remediation_configuration_exception::de_no_such_remediation_configuration_exception_json_err(_response_body, output).map_err(crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::unhandled)?;
   70         -
                    let output = output.meta(generic);
   71         -
                    output.build()
   72         -
                };
   73         -
                if tmp.message.is_none() {
   74         -
                    tmp.message = _error_message;
   75         -
                }
   76         -
                tmp
   77         -
            })
   78         -
        }
   79         -
        "RemediationInProgressException" => {
   80         -
            crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::RemediationInProgressException({
   81         -
                #[allow(unused_mut)]
   82         -
                let mut tmp = {
   83         -
                    #[allow(unused_mut)]
   84         -
                    let mut output = crate::types::error::builders::RemediationInProgressExceptionBuilder::default();
   85         -
                    output = crate::protocol_serde::shape_remediation_in_progress_exception::de_remediation_in_progress_exception_json_err(
   86         -
                        _response_body,
   87         -
                        output,
   88         -
                    )
   89         -
                    .map_err(crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::unhandled)?;
   90         -
                    let output = output.meta(generic);
   91         -
                    output.build()
   92         -
                };
   93         -
                if tmp.message.is_none() {
   94         -
                    tmp.message = _error_message;
   95         -
                }
   96         -
                tmp
   97         -
            })
   98         -
        }
   99         -
        _ => crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError::generic(generic),
  100         -
    })
  101         -
}
  102         -
  103         -
#[allow(clippy::unnecessary_wraps)]
  104         -
pub fn de_delete_remediation_configuration_http_response(
  105         -
    _response_status: u16,
  106         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
  107         -
    _response_body: &[u8],
  108         -
) -> std::result::Result<
  109         -
    crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationOutput,
  110         -
    crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationError,
  111         -
> {
  112         -
    Ok({
  113         -
        #[allow(unused_mut)]
  114         -
        let mut output = crate::operation::delete_remediation_configuration::builders::DeleteRemediationConfigurationOutputBuilder::default();
  115         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
  116         -
        output.build()
  117         -
    })
  118         -
}
  119         -
  120         -
pub fn ser_delete_remediation_configuration_input(
  121         -
    input: &crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationInput,
  122         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
  123         -
    let mut out = String::new();
  124         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
  125         -
    crate::protocol_serde::shape_delete_remediation_configuration_input::ser_delete_remediation_configuration_input_input(&mut object, input)?;
  126         -
    object.finish();
  127         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
  128         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_remediation_configuration_input.rs

@@ -1,0 +13,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_delete_remediation_configuration_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::delete_remediation_configuration::DeleteRemediationConfigurationInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.config_rule_name {
    7         -
        object.key("ConfigRuleName").string(var_1.as_str());
    8         -
    }
    9         -
    if let Some(var_2) = &input.resource_type {
   10         -
        object.key("ResourceType").string(var_2.as_str());
   11         -
    }
   12         -
    Ok(())
   13         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_remediation_exceptions.rs

@@ -1,0 +113,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_delete_remediation_exceptions_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsOutput,
    9         -
    crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13         -
        .map_err(crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsError::unhandled)?;
   14         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   15         -
    let generic = generic_builder.build();
   16         -
    let error_code = match generic.code() {
   17         -
        Some(code) => code,
   18         -
        None => return Err(crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsError::unhandled(generic)),
   19         -
    };
   20         -
   21         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   22         -
    Err(match error_code {
   23         -
        "NoSuchRemediationExceptionException" => {
   24         -
            crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsError::NoSuchRemediationExceptionException({
   25         -
                #[allow(unused_mut)]
   26         -
                let mut tmp = {
   27         -
                    #[allow(unused_mut)]
   28         -
                    let mut output = crate::types::error::builders::NoSuchRemediationExceptionExceptionBuilder::default();
   29         -
                    output =
   30         -
                        crate::protocol_serde::shape_no_such_remediation_exception_exception::de_no_such_remediation_exception_exception_json_err(
   31         -
                            _response_body,
   32         -
                            output,
   33         -
                        )
   34         -
                        .map_err(crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsError::unhandled)?;
   35         -
                    let output = output.meta(generic);
   36         -
                    output.build()
   37         -
                };
   38         -
                if tmp.message.is_none() {
   39         -
                    tmp.message = _error_message;
   40         -
                }
   41         -
                tmp
   42         -
            })
   43         -
        }
   44         -
        _ => crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsError::generic(generic),
   45         -
    })
   46         -
}
   47         -
   48         -
#[allow(clippy::unnecessary_wraps)]
   49         -
pub fn de_delete_remediation_exceptions_http_response(
   50         -
    _response_status: u16,
   51         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   52         -
    _response_body: &[u8],
   53         -
) -> std::result::Result<
   54         -
    crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsOutput,
   55         -
    crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsError,
   56         -
> {
   57         -
    Ok({
   58         -
        #[allow(unused_mut)]
   59         -
        let mut output = crate::operation::delete_remediation_exceptions::builders::DeleteRemediationExceptionsOutputBuilder::default();
   60         -
        output = crate::protocol_serde::shape_delete_remediation_exceptions::de_delete_remediation_exceptions(_response_body, output)
   61         -
            .map_err(crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsError::unhandled)?;
   62         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   63         -
        output.build()
   64         -
    })
   65         -
}
   66         -
   67         -
pub fn ser_delete_remediation_exceptions_input(
   68         -
    input: &crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsInput,
   69         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   70         -
    let mut out = String::new();
   71         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
   72         -
    crate::protocol_serde::shape_delete_remediation_exceptions_input::ser_delete_remediation_exceptions_input_input(&mut object, input)?;
   73         -
    object.finish();
   74         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
   75         -
}
   76         -
   77         -
pub(crate) fn de_delete_remediation_exceptions(
   78         -
    _value: &[u8],
   79         -
    mut builder: crate::operation::delete_remediation_exceptions::builders::DeleteRemediationExceptionsOutputBuilder,
   80         -
) -> ::std::result::Result<
   81         -
    crate::operation::delete_remediation_exceptions::builders::DeleteRemediationExceptionsOutputBuilder,
   82         -
    ::aws_smithy_json::deserialize::error::DeserializeError,
   83         -
> {
   84         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
   85         -
    let tokens = &mut tokens_owned;
   86         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
   87         -
    loop {
   88         -
        match tokens.next().transpose()? {
   89         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   90         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
   91         -
                match key.to_unescaped()?.as_ref() {
   92         -
                    "FailedBatches" => {
   93         -
                        builder = builder.set_failed_batches(
   94         -
                            crate::protocol_serde::shape_failed_delete_remediation_exceptions_batches::de_failed_delete_remediation_exceptions_batches(tokens, _value)?
   95         -
                        );
   96         -
                    }
   97         -
                    _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   98         -
                }
   99         -
            }
  100         -
            other => {
  101         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  102         -
                    "expected object key or end object, found: {other:?}"
  103         -
                )))
  104         -
            }
  105         -
        }
  106         -
    }
  107         -
    if tokens.next().is_some() {
  108         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  109         -
            "found more JSON tokens after completing parsing",
  110         -
        ));
  111         -
    }
  112         -
    Ok(builder)
  113         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_remediation_exceptions_input.rs

@@ -1,0 +22,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_delete_remediation_exceptions_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::delete_remediation_exceptions::DeleteRemediationExceptionsInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.config_rule_name {
    7         -
        object.key("ConfigRuleName").string(var_1.as_str());
    8         -
    }
    9         -
    if let Some(var_2) = &input.resource_keys {
   10         -
        let mut array_3 = object.key("ResourceKeys").start_array();
   11         -
        for item_4 in var_2 {
   12         -
            {
   13         -
                #[allow(unused_mut)]
   14         -
                let mut object_5 = array_3.value().start_object();
   15         -
                crate::protocol_serde::shape_remediation_exception_resource_key::ser_remediation_exception_resource_key(&mut object_5, item_4)?;
   16         -
                object_5.finish();
   17         -
            }
   18         -
        }
   19         -
        array_3.finish();
   20         -
    }
   21         -
    Ok(())
   22         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_resource_config.rs

@@ -1,0 +83,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_delete_resource_config_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::delete_resource_config::DeleteResourceConfigOutput,
    9         -
    crate::operation::delete_resource_config::DeleteResourceConfigError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13         -
        .map_err(crate::operation::delete_resource_config::DeleteResourceConfigError::unhandled)?;
   14         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   15         -
    let generic = generic_builder.build();
   16         -
    let error_code = match generic.code() {
   17         -
        Some(code) => code,
   18         -
        None => return Err(crate::operation::delete_resource_config::DeleteResourceConfigError::unhandled(generic)),
   19         -
    };
   20         -
   21         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   22         -
    Err(match error_code {
   23         -
        "NoRunningConfigurationRecorderException" => {
   24         -
            crate::operation::delete_resource_config::DeleteResourceConfigError::NoRunningConfigurationRecorderException({
   25         -
                #[allow(unused_mut)]
   26         -
                let mut tmp = {
   27         -
                    #[allow(unused_mut)]
   28         -
                    let mut output = crate::types::error::builders::NoRunningConfigurationRecorderExceptionBuilder::default();
   29         -
                    output = crate::protocol_serde::shape_no_running_configuration_recorder_exception::de_no_running_configuration_recorder_exception_json_err(_response_body, output).map_err(crate::operation::delete_resource_config::DeleteResourceConfigError::unhandled)?;
   30         -
                    let output = output.meta(generic);
   31         -
                    output.build()
   32         -
                };
   33         -
                if tmp.message.is_none() {
   34         -
                    tmp.message = _error_message;
   35         -
                }
   36         -
                tmp
   37         -
            })
   38         -
        }
   39         -
        "ValidationException" => crate::operation::delete_resource_config::DeleteResourceConfigError::ValidationException({
   40         -
            #[allow(unused_mut)]
   41         -
            let mut tmp = {
   42         -
                #[allow(unused_mut)]
   43         -
                let mut output = crate::types::error::builders::ValidationExceptionBuilder::default();
   44         -
                output = crate::protocol_serde::shape_validation_exception::de_validation_exception_json_err(_response_body, output)
   45         -
                    .map_err(crate::operation::delete_resource_config::DeleteResourceConfigError::unhandled)?;
   46         -
                let output = output.meta(generic);
   47         -
                output.build()
   48         -
            };
   49         -
            if tmp.message.is_none() {
   50         -
                tmp.message = _error_message;
   51         -
            }
   52         -
            tmp
   53         -
        }),
   54         -
        _ => crate::operation::delete_resource_config::DeleteResourceConfigError::generic(generic),
   55         -
    })
   56         -
}
   57         -
   58         -
#[allow(clippy::unnecessary_wraps)]
   59         -
pub fn de_delete_resource_config_http_response(
   60         -
    _response_status: u16,
   61         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   62         -
    _response_body: &[u8],
   63         -
) -> std::result::Result<
   64         -
    crate::operation::delete_resource_config::DeleteResourceConfigOutput,
   65         -
    crate::operation::delete_resource_config::DeleteResourceConfigError,
   66         -
> {
   67         -
    Ok({
   68         -
        #[allow(unused_mut)]
   69         -
        let mut output = crate::operation::delete_resource_config::builders::DeleteResourceConfigOutputBuilder::default();
   70         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   71         -
        output.build()
   72         -
    })
   73         -
}
   74         -
   75         -
pub fn ser_delete_resource_config_input(
   76         -
    input: &crate::operation::delete_resource_config::DeleteResourceConfigInput,
   77         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   78         -
    let mut out = String::new();
   79         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
   80         -
    crate::protocol_serde::shape_delete_resource_config_input::ser_delete_resource_config_input_input(&mut object, input)?;
   81         -
    object.finish();
   82         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
   83         -
}