AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c (ignoring whitespace)

Files changed:

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

@@ -1,0 +41,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_conformance_pack_rule_evaluation_results_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<
    6         -
    Option<::std::vec::Vec<crate::types::ConformancePackEvaluationResult>>,
    7         -
    ::aws_smithy_json::deserialize::error::DeserializeError,
    8         -
>
    9         -
where
   10         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
   11         -
{
   12         -
    match tokens.next().transpose()? {
   13         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   14         -
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
   15         -
            let mut items = Vec::new();
   16         -
            loop {
   17         -
                match tokens.peek() {
   18         -
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   19         -
                        tokens.next().transpose().unwrap();
   20         -
                        break;
   21         -
                    }
   22         -
                    _ => {
   23         -
                        let value =
   24         -
                            crate::protocol_serde::shape_conformance_pack_evaluation_result::de_conformance_pack_evaluation_result(tokens, _value)?;
   25         -
                        if let Some(value) = value {
   26         -
                            items.push(value);
   27         -
                        } else {
   28         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   29         -
                                "dense list cannot contain null values",
   30         -
                            ));
   31         -
                        }
   32         -
                    }
   33         -
                }
   34         -
            }
   35         -
            Ok(Some(items))
   36         -
        }
   37         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   38         -
            "expected start array or null",
   39         -
        )),
   40         -
    }
   41         -
}

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

@@ -1,0 +91,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_conformance_pack_status_detail<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ConformancePackStatusDetail>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   12         -
            #[allow(unused_mut)]
   13         -
            let mut builder = crate::types::builders::ConformancePackStatusDetailBuilder::default();
   14         -
            loop {
   15         -
                match tokens.next().transpose()? {
   16         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   17         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   18         -
                        "ConformancePackName" => {
   19         -
                            builder = builder.set_conformance_pack_name(
   20         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   22         -
                                    .transpose()?,
   23         -
                            );
   24         -
                        }
   25         -
                        "ConformancePackId" => {
   26         -
                            builder = builder.set_conformance_pack_id(
   27         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   28         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   29         -
                                    .transpose()?,
   30         -
                            );
   31         -
                        }
   32         -
                        "ConformancePackArn" => {
   33         -
                            builder = builder.set_conformance_pack_arn(
   34         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   35         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   36         -
                                    .transpose()?,
   37         -
                            );
   38         -
                        }
   39         -
                        "ConformancePackState" => {
   40         -
                            builder = builder.set_conformance_pack_state(
   41         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   42         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::ConformancePackState::from(u.as_ref())))
   43         -
                                    .transpose()?,
   44         -
                            );
   45         -
                        }
   46         -
                        "StackArn" => {
   47         -
                            builder = builder.set_stack_arn(
   48         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   49         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   50         -
                                    .transpose()?,
   51         -
                            );
   52         -
                        }
   53         -
                        "ConformancePackStatusReason" => {
   54         -
                            builder = builder.set_conformance_pack_status_reason(
   55         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   56         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   57         -
                                    .transpose()?,
   58         -
                            );
   59         -
                        }
   60         -
                        "LastUpdateRequestedTime" => {
   61         -
                            builder = builder.set_last_update_requested_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   62         -
                                tokens.next(),
   63         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   64         -
                            )?);
   65         -
                        }
   66         -
                        "LastUpdateCompletedTime" => {
   67         -
                            builder = builder.set_last_update_completed_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   68         -
                                tokens.next(),
   69         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   70         -
                            )?);
   71         -
                        }
   72         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   73         -
                    },
   74         -
                    other => {
   75         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   76         -
                            "expected object key or end object, found: {other:?}"
   77         -
                        )))
   78         -
                    }
   79         -
                }
   80         -
            }
   81         -
            Ok(Some(
   82         -
                crate::serde_util::conformance_pack_status_detail_correct_errors(builder)
   83         -
                    .build()
   84         -
                    .map_err(|err| ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err))?,
   85         -
            ))
   86         -
        }
   87         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   88         -
            "expected start object or null",
   89         -
        )),
   90         -
    }
   91         -
}

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

@@ -1,0 +37,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_conformance_pack_status_details_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::ConformancePackStatusDetail>>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
   12         -
            let mut items = Vec::new();
   13         -
            loop {
   14         -
                match tokens.peek() {
   15         -
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16         -
                        tokens.next().transpose().unwrap();
   17         -
                        break;
   18         -
                    }
   19         -
                    _ => {
   20         -
                        let value = crate::protocol_serde::shape_conformance_pack_status_detail::de_conformance_pack_status_detail(tokens, _value)?;
   21         -
                        if let Some(value) = value {
   22         -
                            items.push(value);
   23         -
                        } else {
   24         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   25         -
                                "dense list cannot contain null values",
   26         -
                            ));
   27         -
                        }
   28         -
                    }
   29         -
                }
   30         -
            }
   31         -
            Ok(Some(items))
   32         -
        }
   33         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   34         -
            "expected start array or null",
   35         -
        )),
   36         -
    }
   37         -
}

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

@@ -1,0 +38,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_conformance_pack_template_validation_exception_json_err(
    3         -
    _value: &[u8],
    4         -
    mut builder: crate::types::error::builders::ConformancePackTemplateValidationExceptionBuilder,
    5         -
) -> ::std::result::Result<
    6         -
    crate::types::error::builders::ConformancePackTemplateValidationExceptionBuilder,
    7         -
    ::aws_smithy_json::deserialize::error::DeserializeError,
    8         -
> {
    9         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
   10         -
    let tokens = &mut tokens_owned;
   11         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
   12         -
    loop {
   13         -
        match tokens.next().transpose()? {
   14         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   15         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   16         -
                "message" => {
   17         -
                    builder = builder.set_message(
   18         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   19         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   20         -
                            .transpose()?,
   21         -
                    );
   22         -
                }
   23         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   24         -
            },
   25         -
            other => {
   26         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   27         -
                    "expected object key or end object, found: {other:?}"
   28         -
                )))
   29         -
            }
   30         -
        }
   31         -
    }
   32         -
    if tokens.next().is_some() {
   33         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   34         -
            "found more JSON tokens after completing parsing",
   35         -
        ));
   36         -
    }
   37         -
    Ok(builder)
   38         -
}

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

@@ -1,0 +39,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_controls_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<::std::string::String>>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
   12         -
            let mut items = Vec::new();
   13         -
            loop {
   14         -
                match tokens.peek() {
   15         -
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16         -
                        tokens.next().transpose().unwrap();
   17         -
                        break;
   18         -
                    }
   19         -
                    _ => {
   20         -
                        let value = ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   22         -
                            .transpose()?;
   23         -
                        if let Some(value) = value {
   24         -
                            items.push(value);
   25         -
                        } else {
   26         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   27         -
                                "dense list cannot contain null values",
   28         -
                            ));
   29         -
                        }
   30         -
                    }
   31         -
                }
   32         -
            }
   33         -
            Ok(Some(items))
   34         -
        }
   35         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   36         -
            "expected start array or null",
   37         -
        )),
   38         -
    }
   39         -
}

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

@@ -1,0 +69,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_custom_policy_details(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::CustomPolicyDetails,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    {
    7         -
        object.key("PolicyRuntime").string(input.policy_runtime.as_str());
    8         -
    }
    9         -
    {
   10         -
        object.key("PolicyText").string(input.policy_text.as_str());
   11         -
    }
   12         -
    if input.enable_debug_log_delivery {
   13         -
        object.key("EnableDebugLogDelivery").boolean(input.enable_debug_log_delivery);
   14         -
    }
   15         -
    Ok(())
   16         -
}
   17         -
   18         -
pub(crate) fn de_custom_policy_details<'a, I>(
   19         -
    tokens: &mut ::std::iter::Peekable<I>,
   20         -
    _value: &'a [u8],
   21         -
) -> ::std::result::Result<Option<crate::types::CustomPolicyDetails>, ::aws_smithy_json::deserialize::error::DeserializeError>
   22         -
where
   23         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
   24         -
{
   25         -
    match tokens.next().transpose()? {
   26         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   27         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   28         -
            #[allow(unused_mut)]
   29         -
            let mut builder = crate::types::builders::CustomPolicyDetailsBuilder::default();
   30         -
            loop {
   31         -
                match tokens.next().transpose()? {
   32         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   33         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   34         -
                        "PolicyRuntime" => {
   35         -
                            builder = builder.set_policy_runtime(
   36         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   37         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   38         -
                                    .transpose()?,
   39         -
                            );
   40         -
                        }
   41         -
                        "PolicyText" => {
   42         -
                            builder = builder.set_policy_text(
   43         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   44         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   45         -
                                    .transpose()?,
   46         -
                            );
   47         -
                        }
   48         -
                        "EnableDebugLogDelivery" => {
   49         -
                            builder =
   50         -
                                builder.set_enable_debug_log_delivery(::aws_smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?);
   51         -
                        }
   52         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   53         -
                    },
   54         -
                    other => {
   55         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   56         -
                            "expected object key or end object, found: {other:?}"
   57         -
                        )))
   58         -
                    }
   59         -
                }
   60         -
            }
   61         -
            Ok(Some(crate::serde_util::custom_policy_details_correct_errors(builder).build().map_err(
   62         -
                |err| ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err),
   63         -
            )?))
   64         -
        }
   65         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   66         -
            "expected start object or null",
   67         -
        )),
   68         -
    }
   69         -
}

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

@@ -1,0 +39,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_debug_log_delivery_accounts<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<::std::string::String>>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
   12         -
            let mut items = Vec::new();
   13         -
            loop {
   14         -
                match tokens.peek() {
   15         -
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16         -
                        tokens.next().transpose().unwrap();
   17         -
                        break;
   18         -
                    }
   19         -
                    _ => {
   20         -
                        let value = ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   22         -
                            .transpose()?;
   23         -
                        if let Some(value) = value {
   24         -
                            items.push(value);
   25         -
                        } else {
   26         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   27         -
                                "dense list cannot contain null values",
   28         -
                            ));
   29         -
                        }
   30         -
                    }
   31         -
                }
   32         -
            }
   33         -
            Ok(Some(items))
   34         -
        }
   35         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   36         -
            "expected start array or null",
   37         -
        )),
   38         -
    }
   39         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_aggregation_authorization.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_aggregation_authorization_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_aggregation_authorization::DeleteAggregationAuthorizationOutput,
    9         -
    crate::operation::delete_aggregation_authorization::DeleteAggregationAuthorizationError,
   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_aggregation_authorization::DeleteAggregationAuthorizationError::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_aggregation_authorization::DeleteAggregationAuthorizationError::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_aggregation_authorization::DeleteAggregationAuthorizationError::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_aggregation_authorization::DeleteAggregationAuthorizationError::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_aggregation_authorization::DeleteAggregationAuthorizationError::generic(generic),
   44         -
    })
   45         -
}
   46         -
   47         -
#[allow(clippy::unnecessary_wraps)]
   48         -
pub fn de_delete_aggregation_authorization_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_aggregation_authorization::DeleteAggregationAuthorizationOutput,
   54         -
    crate::operation::delete_aggregation_authorization::DeleteAggregationAuthorizationError,
   55         -
> {
   56         -
    Ok({
   57         -
        #[allow(unused_mut)]
   58         -
        let mut output = crate::operation::delete_aggregation_authorization::builders::DeleteAggregationAuthorizationOutputBuilder::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_aggregation_authorization_input(
   65         -
    input: &crate::operation::delete_aggregation_authorization::DeleteAggregationAuthorizationInput,
   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_aggregation_authorization_input::ser_delete_aggregation_authorization_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_aggregation_authorization_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_aggregation_authorization_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::delete_aggregation_authorization::DeleteAggregationAuthorizationInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.authorized_account_id {
    7         -
        object.key("AuthorizedAccountId").string(var_1.as_str());
    8         -
    }
    9         -
    if let Some(var_2) = &input.authorized_aws_region {
   10         -
        object.key("AuthorizedAwsRegion").string(var_2.as_str());
   11         -
    }
   12         -
    Ok(())
   13         -
}

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

@@ -1,0 +77,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_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<crate::operation::delete_config_rule::DeleteConfigRuleOutput, crate::operation::delete_config_rule::DeleteConfigRuleError> {
    8         -
    #[allow(unused_mut)]
    9         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   10         -
        .map_err(crate::operation::delete_config_rule::DeleteConfigRuleError::unhandled)?;
   11         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   12         -
    let generic = generic_builder.build();
   13         -
    let error_code = match generic.code() {
   14         -
        Some(code) => code,
   15         -
        None => return Err(crate::operation::delete_config_rule::DeleteConfigRuleError::unhandled(generic)),
   16         -
    };
   17         -
   18         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   19         -
    Err(match error_code {
   20         -
        "NoSuchConfigRuleException" => crate::operation::delete_config_rule::DeleteConfigRuleError::NoSuchConfigRuleException({
   21         -
            #[allow(unused_mut)]
   22         -
            let mut tmp = {
   23         -
                #[allow(unused_mut)]
   24         -
                let mut output = crate::types::error::builders::NoSuchConfigRuleExceptionBuilder::default();
   25         -
                output =
   26         -
                    crate::protocol_serde::shape_no_such_config_rule_exception::de_no_such_config_rule_exception_json_err(_response_body, output)
   27         -
                        .map_err(crate::operation::delete_config_rule::DeleteConfigRuleError::unhandled)?;
   28         -
                let output = output.meta(generic);
   29         -
                output.build()
   30         -
            };
   31         -
            if tmp.message.is_none() {
   32         -
                tmp.message = _error_message;
   33         -
            }
   34         -
            tmp
   35         -
        }),
   36         -
        "ResourceInUseException" => crate::operation::delete_config_rule::DeleteConfigRuleError::ResourceInUseException({
   37         -
            #[allow(unused_mut)]
   38         -
            let mut tmp = {
   39         -
                #[allow(unused_mut)]
   40         -
                let mut output = crate::types::error::builders::ResourceInUseExceptionBuilder::default();
   41         -
                output = crate::protocol_serde::shape_resource_in_use_exception::de_resource_in_use_exception_json_err(_response_body, output)
   42         -
                    .map_err(crate::operation::delete_config_rule::DeleteConfigRuleError::unhandled)?;
   43         -
                let output = output.meta(generic);
   44         -
                output.build()
   45         -
            };
   46         -
            if tmp.message.is_none() {
   47         -
                tmp.message = _error_message;
   48         -
            }
   49         -
            tmp
   50         -
        }),
   51         -
        _ => crate::operation::delete_config_rule::DeleteConfigRuleError::generic(generic),
   52         -
    })
   53         -
}
   54         -
   55         -
#[allow(clippy::unnecessary_wraps)]
   56         -
pub fn de_delete_config_rule_http_response(
   57         -
    _response_status: u16,
   58         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   59         -
    _response_body: &[u8],
   60         -
) -> std::result::Result<crate::operation::delete_config_rule::DeleteConfigRuleOutput, crate::operation::delete_config_rule::DeleteConfigRuleError> {
   61         -
    Ok({
   62         -
        #[allow(unused_mut)]
   63         -
        let mut output = crate::operation::delete_config_rule::builders::DeleteConfigRuleOutputBuilder::default();
   64         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   65         -
        output.build()
   66         -
    })
   67         -
}
   68         -
   69         -
pub fn ser_delete_config_rule_input(
   70         -
    input: &crate::operation::delete_config_rule::DeleteConfigRuleInput,
   71         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   72         -
    let mut out = String::new();
   73         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
   74         -
    crate::protocol_serde::shape_delete_config_rule_input::ser_delete_config_rule_input_input(&mut object, input)?;
   75         -
    object.finish();
   76         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
   77         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_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_config_rule_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::delete_config_rule::DeleteConfigRuleInput,
    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_configuration_aggregator.rs

@@ -1,0 +68,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_configuration_aggregator_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_configuration_aggregator::DeleteConfigurationAggregatorOutput,
    9         -
    crate::operation::delete_configuration_aggregator::DeleteConfigurationAggregatorError,
   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_configuration_aggregator::DeleteConfigurationAggregatorError::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_configuration_aggregator::DeleteConfigurationAggregatorError::unhandled(generic)),
   19         -
    };
   20         -
   21         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   22         -
    Err(match error_code {
   23         -
        "NoSuchConfigurationAggregatorException" => {
   24         -
            crate::operation::delete_configuration_aggregator::DeleteConfigurationAggregatorError::NoSuchConfigurationAggregatorException({
   25         -
                #[allow(unused_mut)]
   26         -
                let mut tmp = {
   27         -
                    #[allow(unused_mut)]
   28         -
                    let mut output = crate::types::error::builders::NoSuchConfigurationAggregatorExceptionBuilder::default();
   29         -
                    output = crate::protocol_serde::shape_no_such_configuration_aggregator_exception::de_no_such_configuration_aggregator_exception_json_err(_response_body, output).map_err(crate::operation::delete_configuration_aggregator::DeleteConfigurationAggregatorError::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         -
        _ => crate::operation::delete_configuration_aggregator::DeleteConfigurationAggregatorError::generic(generic),
   40         -
    })
   41         -
}
   42         -
   43         -
#[allow(clippy::unnecessary_wraps)]
   44         -
pub fn de_delete_configuration_aggregator_http_response(
   45         -
    _response_status: u16,
   46         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   47         -
    _response_body: &[u8],
   48         -
) -> std::result::Result<
   49         -
    crate::operation::delete_configuration_aggregator::DeleteConfigurationAggregatorOutput,
   50         -
    crate::operation::delete_configuration_aggregator::DeleteConfigurationAggregatorError,
   51         -
> {
   52         -
    Ok({
   53         -
        #[allow(unused_mut)]
   54         -
        let mut output = crate::operation::delete_configuration_aggregator::builders::DeleteConfigurationAggregatorOutputBuilder::default();
   55         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   56         -
        output.build()
   57         -
    })
   58         -
}
   59         -
   60         -
pub fn ser_delete_configuration_aggregator_input(
   61         -
    input: &crate::operation::delete_configuration_aggregator::DeleteConfigurationAggregatorInput,
   62         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   63         -
    let mut out = String::new();
   64         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
   65         -
    crate::protocol_serde::shape_delete_configuration_aggregator_input::ser_delete_configuration_aggregator_input_input(&mut object, input)?;
   66         -
    object.finish();
   67         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
   68         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_configuration_aggregator_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_configuration_aggregator_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::delete_configuration_aggregator::DeleteConfigurationAggregatorInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.configuration_aggregator_name {
    7         -
        object.key("ConfigurationAggregatorName").string(var_1.as_str());
    8         -
    }
    9         -
    Ok(())
   10         -
}

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

@@ -1,0 +91,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_configuration_recorder_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_configuration_recorder::DeleteConfigurationRecorderOutput,
    9         -
    crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderError,
   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_configuration_recorder::DeleteConfigurationRecorderError::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_configuration_recorder::DeleteConfigurationRecorderError::unhandled(generic)),
   19         -
    };
   20         -
   21         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   22         -
    Err(match error_code {
   23         -
        "NoSuchConfigurationRecorderException" => {
   24         -
            crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderError::NoSuchConfigurationRecorderException({
   25         -
                #[allow(unused_mut)]
   26         -
                let mut tmp = {
   27         -
                    #[allow(unused_mut)]
   28         -
                    let mut output = crate::types::error::builders::NoSuchConfigurationRecorderExceptionBuilder::default();
   29         -
                    output =
   30         -
                        crate::protocol_serde::shape_no_such_configuration_recorder_exception::de_no_such_configuration_recorder_exception_json_err(
   31         -
                            _response_body,
   32         -
                            output,
   33         -
                        )
   34         -
                        .map_err(crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderError::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         -
        "UnmodifiableEntityException" => {
   45         -
            crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderError::UnmodifiableEntityException({
   46         -
                #[allow(unused_mut)]
   47         -
                let mut tmp = {
   48         -
                    #[allow(unused_mut)]
   49         -
                    let mut output = crate::types::error::builders::UnmodifiableEntityExceptionBuilder::default();
   50         -
                    output =
   51         -
                        crate::protocol_serde::shape_unmodifiable_entity_exception::de_unmodifiable_entity_exception_json_err(_response_body, output)
   52         -
                            .map_err(crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderError::unhandled)?;
   53         -
                    let output = output.meta(generic);
   54         -
                    output.build()
   55         -
                };
   56         -
                if tmp.message.is_none() {
   57         -
                    tmp.message = _error_message;
   58         -
                }
   59         -
                tmp
   60         -
            })
   61         -
        }
   62         -
        _ => crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderError::generic(generic),
   63         -
    })
   64         -
}
   65         -
   66         -
#[allow(clippy::unnecessary_wraps)]
   67         -
pub fn de_delete_configuration_recorder_http_response(
   68         -
    _response_status: u16,
   69         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   70         -
    _response_body: &[u8],
   71         -
) -> std::result::Result<
   72         -
    crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderOutput,
   73         -
    crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderError,
   74         -
> {
   75         -
    Ok({
   76         -
        #[allow(unused_mut)]
   77         -
        let mut output = crate::operation::delete_configuration_recorder::builders::DeleteConfigurationRecorderOutputBuilder::default();
   78         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   79         -
        output.build()
   80         -
    })
   81         -
}
   82         -
   83         -
pub fn ser_delete_configuration_recorder_input(
   84         -
    input: &crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderInput,
   85         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   86         -
    let mut out = String::new();
   87         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
   88         -
    crate::protocol_serde::shape_delete_configuration_recorder_input::ser_delete_configuration_recorder_input_input(&mut object, input)?;
   89         -
    object.finish();
   90         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
   91         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_delete_configuration_recorder_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_configuration_recorder_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::delete_configuration_recorder::DeleteConfigurationRecorderInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.configuration_recorder_name {
    7         -
        object.key("ConfigurationRecorderName").string(var_1.as_str());
    8         -
    }
    9         -
    Ok(())
   10         -
}

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

@@ -1,0 +85,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_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_conformance_pack::DeleteConformancePackOutput,
    9         -
    crate::operation::delete_conformance_pack::DeleteConformancePackError,
   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_conformance_pack::DeleteConformancePackError::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_conformance_pack::DeleteConformancePackError::unhandled(generic)),
   19         -
    };
   20         -
   21         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   22         -
    Err(match error_code {
   23         -
        "NoSuchConformancePackException" => crate::operation::delete_conformance_pack::DeleteConformancePackError::NoSuchConformancePackException({
   24         -
            #[allow(unused_mut)]
   25         -
            let mut tmp = {
   26         -
                #[allow(unused_mut)]
   27         -
                let mut output = crate::types::error::builders::NoSuchConformancePackExceptionBuilder::default();
   28         -
                output = crate::protocol_serde::shape_no_such_conformance_pack_exception::de_no_such_conformance_pack_exception_json_err(
   29         -
                    _response_body,
   30         -
                    output,
   31         -
                )
   32         -
                .map_err(crate::operation::delete_conformance_pack::DeleteConformancePackError::unhandled)?;
   33         -
                let output = output.meta(generic);
   34         -
                output.build()
   35         -
            };
   36         -
            if tmp.message.is_none() {
   37         -
                tmp.message = _error_message;
   38         -
            }
   39         -
            tmp
   40         -
        }),
   41         -
        "ResourceInUseException" => crate::operation::delete_conformance_pack::DeleteConformancePackError::ResourceInUseException({
   42         -
            #[allow(unused_mut)]
   43         -
            let mut tmp = {
   44         -
                #[allow(unused_mut)]
   45         -
                let mut output = crate::types::error::builders::ResourceInUseExceptionBuilder::default();
   46         -
                output = crate::protocol_serde::shape_resource_in_use_exception::de_resource_in_use_exception_json_err(_response_body, output)
   47         -
                    .map_err(crate::operation::delete_conformance_pack::DeleteConformancePackError::unhandled)?;
   48         -
                let output = output.meta(generic);
   49         -
                output.build()
   50         -
            };
   51         -
            if tmp.message.is_none() {
   52         -
                tmp.message = _error_message;
   53         -
            }
   54         -
            tmp
   55         -
        }),
   56         -
        _ => crate::operation::delete_conformance_pack::DeleteConformancePackError::generic(generic),
   57         -
    })
   58         -
}
   59         -
   60         -
#[allow(clippy::unnecessary_wraps)]
   61         -
pub fn de_delete_conformance_pack_http_response(
   62         -
    _response_status: u16,
   63         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   64         -
    _response_body: &[u8],
   65         -
) -> std::result::Result<
   66         -
    crate::operation::delete_conformance_pack::DeleteConformancePackOutput,
   67         -
    crate::operation::delete_conformance_pack::DeleteConformancePackError,
   68         -
> {
   69         -
    Ok({
   70         -
        #[allow(unused_mut)]
   71         -
        let mut output = crate::operation::delete_conformance_pack::builders::DeleteConformancePackOutputBuilder::default();
   72         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   73         -
        output.build()
   74         -
    })
   75         -
}
   76         -
   77         -
pub fn ser_delete_conformance_pack_input(
   78         -
    input: &crate::operation::delete_conformance_pack::DeleteConformancePackInput,
   79         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   80         -
    let mut out = String::new();
   81         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
   82         -
    crate::protocol_serde::shape_delete_conformance_pack_input::ser_delete_conformance_pack_input_input(&mut object, input)?;
   83         -
    object.finish();
   84         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
   85         -
}