AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12

Files changed:

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

@@ -1,0 +22,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_batch_get_aggregate_resource_config_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::batch_get_aggregate_resource_config::BatchGetAggregateResourceConfigInput,
    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         -
    if let Some(var_2) = &input.resource_identifiers {
   10         -
        let mut array_3 = object.key("ResourceIdentifiers").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_aggregate_resource_identifier::ser_aggregate_resource_identifier(&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_batch_get_resource_config.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_batch_get_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::batch_get_resource_config::BatchGetResourceConfigOutput,
    9         -
    crate::operation::batch_get_resource_config::BatchGetResourceConfigError,
   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::batch_get_resource_config::BatchGetResourceConfigError::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::batch_get_resource_config::BatchGetResourceConfigError::unhandled(
   20         -
                generic,
   21         -
            ))
   22         -
        }
   23         -
    };
   24         -
   25         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   26         -
    Err(match error_code {
   27         -
        "NoAvailableConfigurationRecorderException" => {
   28         -
            crate::operation::batch_get_resource_config::BatchGetResourceConfigError::NoAvailableConfigurationRecorderException({
   29         -
                #[allow(unused_mut)]
   30         -
                let mut tmp = {
   31         -
                    #[allow(unused_mut)]
   32         -
                    let mut output = crate::types::error::builders::NoAvailableConfigurationRecorderExceptionBuilder::default();
   33         -
                    output = crate::protocol_serde::shape_no_available_configuration_recorder_exception::de_no_available_configuration_recorder_exception_json_err(_response_body, output).map_err(crate::operation::batch_get_resource_config::BatchGetResourceConfigError::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         -
        "ValidationException" => crate::operation::batch_get_resource_config::BatchGetResourceConfigError::ValidationException({
   44         -
            #[allow(unused_mut)]
   45         -
            let mut tmp = {
   46         -
                #[allow(unused_mut)]
   47         -
                let mut output = crate::types::error::builders::ValidationExceptionBuilder::default();
   48         -
                output = crate::protocol_serde::shape_validation_exception::de_validation_exception_json_err(_response_body, output)
   49         -
                    .map_err(crate::operation::batch_get_resource_config::BatchGetResourceConfigError::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::batch_get_resource_config::BatchGetResourceConfigError::generic(generic),
   59         -
    })
   60         -
}
   61         -
   62         -
#[allow(clippy::unnecessary_wraps)]
   63         -
pub fn de_batch_get_resource_config_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::batch_get_resource_config::BatchGetResourceConfigOutput,
   69         -
    crate::operation::batch_get_resource_config::BatchGetResourceConfigError,
   70         -
> {
   71         -
    Ok({
   72         -
        #[allow(unused_mut)]
   73         -
        let mut output = crate::operation::batch_get_resource_config::builders::BatchGetResourceConfigOutputBuilder::default();
   74         -
        output = crate::protocol_serde::shape_batch_get_resource_config::de_batch_get_resource_config(_response_body, output)
   75         -
            .map_err(crate::operation::batch_get_resource_config::BatchGetResourceConfigError::unhandled)?;
   76         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   77         -
        output.build()
   78         -
    })
   79         -
}
   80         -
   81         -
pub fn ser_batch_get_resource_config_input(
   82         -
    input: &crate::operation::batch_get_resource_config::BatchGetResourceConfigInput,
   83         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   84         -
    let mut out = String::new();
   85         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
   86         -
    crate::protocol_serde::shape_batch_get_resource_config_input::ser_batch_get_resource_config_input_input(&mut object, input)?;
   87         -
    object.finish();
   88         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
   89         -
}
   90         -
   91         -
pub(crate) fn de_batch_get_resource_config(
   92         -
    _value: &[u8],
   93         -
    mut builder: crate::operation::batch_get_resource_config::builders::BatchGetResourceConfigOutputBuilder,
   94         -
) -> ::std::result::Result<
   95         -
    crate::operation::batch_get_resource_config::builders::BatchGetResourceConfigOutputBuilder,
   96         -
    ::aws_smithy_json::deserialize::error::DeserializeError,
   97         -
> {
   98         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
   99         -
    let tokens = &mut tokens_owned;
  100         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
  101         -
    loop {
  102         -
        match tokens.next().transpose()? {
  103         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
  104         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
  105         -
                "baseConfigurationItems" => {
  106         -
                    builder = builder.set_base_configuration_items(
  107         -
                        crate::protocol_serde::shape_base_configuration_items::de_base_configuration_items(tokens, _value)?,
  108         -
                    );
  109         -
                }
  110         -
                "unprocessedResourceKeys" => {
  111         -
                    builder = builder.set_unprocessed_resource_keys(crate::protocol_serde::shape_resource_keys::de_resource_keys(tokens, _value)?);
  112         -
                }
  113         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  114         -
            },
  115         -
            other => {
  116         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  117         -
                    "expected object key or end object, found: {other:?}"
  118         -
                )))
  119         -
            }
  120         -
        }
  121         -
    }
  122         -
    if tokens.next().is_some() {
  123         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  124         -
            "found more JSON tokens after completing parsing",
  125         -
        ));
  126         -
    }
  127         -
    Ok(builder)
  128         -
}

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

@@ -1,0 +19,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_batch_get_resource_config_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::batch_get_resource_config::BatchGetResourceConfigInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.resource_keys {
    7         -
        let mut array_2 = object.key("resourceKeys").start_array();
    8         -
        for item_3 in var_1 {
    9         -
            {
   10         -
                #[allow(unused_mut)]
   11         -
                let mut object_4 = array_2.value().start_object();
   12         -
                crate::protocol_serde::shape_resource_key::ser_resource_key(&mut object_4, item_3)?;
   13         -
                object_4.finish();
   14         -
            }
   15         -
        }
   16         -
        array_2.finish();
   17         -
    }
   18         -
    Ok(())
   19         -
}

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

@@ -1,0 +45,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_compliance<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::Compliance>, ::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::ComplianceBuilder::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         -
                        "ComplianceType" => {
   19         -
                            builder = builder.set_compliance_type(
   20         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::ComplianceType::from(u.as_ref())))
   22         -
                                    .transpose()?,
   23         -
                            );
   24         -
                        }
   25         -
                        "ComplianceContributorCount" => {
   26         -
                            builder = builder.set_compliance_contributor_count(
   27         -
                                crate::protocol_serde::shape_compliance_contributor_count::de_compliance_contributor_count(tokens, _value)?,
   28         -
                            );
   29         -
                        }
   30         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   31         -
                    },
   32         -
                    other => {
   33         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   34         -
                            "expected object key or end object, found: {other:?}"
   35         -
                        )))
   36         -
                    }
   37         -
                }
   38         -
            }
   39         -
            Ok(Some(builder.build()))
   40         -
        }
   41         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   42         -
            "expected start object or null",
   43         -
        )),
   44         -
    }
   45         -
}

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

@@ -1,0 +43,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_compliance_by_config_rule<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ComplianceByConfigRule>, ::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::ComplianceByConfigRuleBuilder::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         -
                        "ConfigRuleName" => {
   19         -
                            builder = builder.set_config_rule_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         -
                        "Compliance" => {
   26         -
                            builder = builder.set_compliance(crate::protocol_serde::shape_compliance::de_compliance(tokens, _value)?);
   27         -
                        }
   28         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   29         -
                    },
   30         -
                    other => {
   31         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   32         -
                            "expected object key or end object, found: {other:?}"
   33         -
                        )))
   34         -
                    }
   35         -
                }
   36         -
            }
   37         -
            Ok(Some(builder.build()))
   38         -
        }
   39         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   40         -
            "expected start object or null",
   41         -
        )),
   42         -
    }
   43         -
}

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

@@ -1,0 +37,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_compliance_by_config_rules<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::ComplianceByConfigRule>>, ::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_compliance_by_config_rule::de_compliance_by_config_rule(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_compliance_by_resource.rs

@@ -1,0 +50,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_compliance_by_resource<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ComplianceByResource>, ::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::ComplianceByResourceBuilder::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         -
                        "ResourceType" => {
   19         -
                            builder = builder.set_resource_type(
   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         -
                        "ResourceId" => {
   26         -
                            builder = builder.set_resource_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         -
                        "Compliance" => {
   33         -
                            builder = builder.set_compliance(crate::protocol_serde::shape_compliance::de_compliance(tokens, _value)?);
   34         -
                        }
   35         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   36         -
                    },
   37         -
                    other => {
   38         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   39         -
                            "expected object key or end object, found: {other:?}"
   40         -
                        )))
   41         -
                    }
   42         -
                }
   43         -
            }
   44         -
            Ok(Some(builder.build()))
   45         -
        }
   46         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   47         -
            "expected start object or null",
   48         -
        )),
   49         -
    }
   50         -
}

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

@@ -1,0 +37,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_compliance_by_resources<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::ComplianceByResource>>, ::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_compliance_by_resource::de_compliance_by_resource(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_compliance_contributor_count.rs

@@ -1,0 +43,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_compliance_contributor_count<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ComplianceContributorCount>, ::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::ComplianceContributorCountBuilder::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         -
                        "CappedCount" => {
   19         -
                            builder = builder.set_capped_count(
   20         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   21         -
                                    .map(i32::try_from)
   22         -
                                    .transpose()?,
   23         -
                            );
   24         -
                        }
   25         -
                        "CapExceeded" => {
   26         -
                            builder = builder.set_cap_exceeded(::aws_smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?);
   27         -
                        }
   28         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   29         -
                    },
   30         -
                    other => {
   31         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   32         -
                            "expected object key or end object, found: {other:?}"
   33         -
                        )))
   34         -
                    }
   35         -
                }
   36         -
            }
   37         -
            Ok(Some(builder.build()))
   38         -
        }
   39         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   40         -
            "expected start object or null",
   41         -
        )),
   42         -
    }
   43         -
}

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

@@ -1,0 +39,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_compliance_resource_types<'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_compliance_summaries_by_resource_type.rs

@@ -1,0 +41,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_compliance_summaries_by_resource_type<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<
    6         -
    Option<::std::vec::Vec<crate::types::ComplianceSummaryByResourceType>>,
    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_compliance_summary_by_resource_type::de_compliance_summary_by_resource_type(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_compliance_summary.rs

@@ -1,0 +49,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_compliance_summary<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ComplianceSummary>, ::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::ComplianceSummaryBuilder::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         -
                        "CompliantResourceCount" => {
   19         -
                            builder = builder.set_compliant_resource_count(
   20         -
                                crate::protocol_serde::shape_compliance_contributor_count::de_compliance_contributor_count(tokens, _value)?,
   21         -
                            );
   22         -
                        }
   23         -
                        "NonCompliantResourceCount" => {
   24         -
                            builder = builder.set_non_compliant_resource_count(
   25         -
                                crate::protocol_serde::shape_compliance_contributor_count::de_compliance_contributor_count(tokens, _value)?,
   26         -
                            );
   27         -
                        }
   28         -
                        "ComplianceSummaryTimestamp" => {
   29         -
                            builder = builder.set_compliance_summary_timestamp(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   30         -
                                tokens.next(),
   31         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   32         -
                            )?);
   33         -
                        }
   34         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   35         -
                    },
   36         -
                    other => {
   37         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   38         -
                            "expected object key or end object, found: {other:?}"
   39         -
                        )))
   40         -
                    }
   41         -
                }
   42         -
            }
   43         -
            Ok(Some(builder.build()))
   44         -
        }
   45         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   46         -
            "expected start object or null",
   47         -
        )),
   48         -
    }
   49         -
}

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

@@ -1,0 +44,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_compliance_summary_by_resource_type<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ComplianceSummaryByResourceType>, ::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::ComplianceSummaryByResourceTypeBuilder::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         -
                        "ResourceType" => {
   19         -
                            builder = builder.set_resource_type(
   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         -
                        "ComplianceSummary" => {
   26         -
                            builder = builder
   27         -
                                .set_compliance_summary(crate::protocol_serde::shape_compliance_summary::de_compliance_summary(tokens, _value)?);
   28         -
                        }
   29         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   30         -
                    },
   31         -
                    other => {
   32         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   33         -
                            "expected object key or end object, found: {other:?}"
   34         -
                        )))
   35         -
                    }
   36         -
                }
   37         -
            }
   38         -
            Ok(Some(builder.build()))
   39         -
        }
   40         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   41         -
            "expected start object or null",
   42         -
        )),
   43         -
    }
   44         -
}

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

@@ -1,0 +72,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_config_export_delivery_info<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ConfigExportDeliveryInfo>, ::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::ConfigExportDeliveryInfoBuilder::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         -
                        "lastStatus" => {
   19         -
                            builder = builder.set_last_status(
   20         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::DeliveryStatus::from(u.as_ref())))
   22         -
                                    .transpose()?,
   23         -
                            );
   24         -
                        }
   25         -
                        "lastErrorCode" => {
   26         -
                            builder = builder.set_last_error_code(
   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         -
                        "lastErrorMessage" => {
   33         -
                            builder = builder.set_last_error_message(
   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         -
                        "lastAttemptTime" => {
   40         -
                            builder = builder.set_last_attempt_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   41         -
                                tokens.next(),
   42         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   43         -
                            )?);
   44         -
                        }
   45         -
                        "lastSuccessfulTime" => {
   46         -
                            builder = builder.set_last_successful_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   47         -
                                tokens.next(),
   48         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   49         -
                            )?);
   50         -
                        }
   51         -
                        "nextDeliveryTime" => {
   52         -
                            builder = builder.set_next_delivery_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   53         -
                                tokens.next(),
   54         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   55         -
                            )?);
   56         -
                        }
   57         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   58         -
                    },
   59         -
                    other => {
   60         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   61         -
                            "expected object key or end object, found: {other:?}"
   62         -
                        )))
   63         -
                    }
   64         -
                }
   65         -
            }
   66         -
            Ok(Some(builder.build()))
   67         -
        }
   68         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   69         -
            "expected start object or null",
   70         -
        )),
   71         -
    }
   72         -
}

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

@@ -1,0 +154,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_config_rule(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::ConfigRule,
    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.config_rule_arn {
   10         -
        object.key("ConfigRuleArn").string(var_2.as_str());
   11         -
    }
   12         -
    if let Some(var_3) = &input.config_rule_id {
   13         -
        object.key("ConfigRuleId").string(var_3.as_str());
   14         -
    }
   15         -
    if let Some(var_4) = &input.description {
   16         -
        object.key("Description").string(var_4.as_str());
   17         -
    }
   18         -
    if let Some(var_5) = &input.scope {
   19         -
        #[allow(unused_mut)]
   20         -
        let mut object_6 = object.key("Scope").start_object();
   21         -
        crate::protocol_serde::shape_scope::ser_scope(&mut object_6, var_5)?;
   22         -
        object_6.finish();
   23         -
    }
   24         -
    if let Some(var_7) = &input.source {
   25         -
        #[allow(unused_mut)]
   26         -
        let mut object_8 = object.key("Source").start_object();
   27         -
        crate::protocol_serde::shape_source::ser_source(&mut object_8, var_7)?;
   28         -
        object_8.finish();
   29         -
    }
   30         -
    if let Some(var_9) = &input.input_parameters {
   31         -
        object.key("InputParameters").string(var_9.as_str());
   32         -
    }
   33         -
    if let Some(var_10) = &input.maximum_execution_frequency {
   34         -
        object.key("MaximumExecutionFrequency").string(var_10.as_str());
   35         -
    }
   36         -
    if let Some(var_11) = &input.config_rule_state {
   37         -
        object.key("ConfigRuleState").string(var_11.as_str());
   38         -
    }
   39         -
    if let Some(var_12) = &input.created_by {
   40         -
        object.key("CreatedBy").string(var_12.as_str());
   41         -
    }
   42         -
    if let Some(var_13) = &input.evaluation_modes {
   43         -
        let mut array_14 = object.key("EvaluationModes").start_array();
   44         -
        for item_15 in var_13 {
   45         -
            {
   46         -
                #[allow(unused_mut)]
   47         -
                let mut object_16 = array_14.value().start_object();
   48         -
                crate::protocol_serde::shape_evaluation_mode_configuration::ser_evaluation_mode_configuration(&mut object_16, item_15)?;
   49         -
                object_16.finish();
   50         -
            }
   51         -
        }
   52         -
        array_14.finish();
   53         -
    }
   54         -
    Ok(())
   55         -
}
   56         -
   57         -
pub(crate) fn de_config_rule<'a, I>(
   58         -
    tokens: &mut ::std::iter::Peekable<I>,
   59         -
    _value: &'a [u8],
   60         -
) -> ::std::result::Result<Option<crate::types::ConfigRule>, ::aws_smithy_json::deserialize::error::DeserializeError>
   61         -
where
   62         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
   63         -
{
   64         -
    match tokens.next().transpose()? {
   65         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   66         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   67         -
            #[allow(unused_mut)]
   68         -
            let mut builder = crate::types::builders::ConfigRuleBuilder::default();
   69         -
            loop {
   70         -
                match tokens.next().transpose()? {
   71         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   72         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   73         -
                        "ConfigRuleName" => {
   74         -
                            builder = builder.set_config_rule_name(
   75         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   76         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   77         -
                                    .transpose()?,
   78         -
                            );
   79         -
                        }
   80         -
                        "ConfigRuleArn" => {
   81         -
                            builder = builder.set_config_rule_arn(
   82         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   83         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   84         -
                                    .transpose()?,
   85         -
                            );
   86         -
                        }
   87         -
                        "ConfigRuleId" => {
   88         -
                            builder = builder.set_config_rule_id(
   89         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   90         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   91         -
                                    .transpose()?,
   92         -
                            );
   93         -
                        }
   94         -
                        "Description" => {
   95         -
                            builder = builder.set_description(
   96         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   97         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   98         -
                                    .transpose()?,
   99         -
                            );
  100         -
                        }
  101         -
                        "Scope" => {
  102         -
                            builder = builder.set_scope(crate::protocol_serde::shape_scope::de_scope(tokens, _value)?);
  103         -
                        }
  104         -
                        "Source" => {
  105         -
                            builder = builder.set_source(crate::protocol_serde::shape_source::de_source(tokens, _value)?);
  106         -
                        }
  107         -
                        "InputParameters" => {
  108         -
                            builder = builder.set_input_parameters(
  109         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  110         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  111         -
                                    .transpose()?,
  112         -
                            );
  113         -
                        }
  114         -
                        "MaximumExecutionFrequency" => {
  115         -
                            builder = builder.set_maximum_execution_frequency(
  116         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  117         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::MaximumExecutionFrequency::from(u.as_ref())))
  118         -
                                    .transpose()?,
  119         -
                            );
  120         -
                        }
  121         -
                        "ConfigRuleState" => {
  122         -
                            builder = builder.set_config_rule_state(
  123         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  124         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::ConfigRuleState::from(u.as_ref())))
  125         -
                                    .transpose()?,
  126         -
                            );
  127         -
                        }
  128         -
                        "CreatedBy" => {
  129         -
                            builder = builder.set_created_by(
  130         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  131         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  132         -
                                    .transpose()?,
  133         -
                            );
  134         -
                        }
  135         -
                        "EvaluationModes" => {
  136         -
                            builder =
  137         -
                                builder.set_evaluation_modes(crate::protocol_serde::shape_evaluation_modes::de_evaluation_modes(tokens, _value)?);
  138         -
                        }
  139         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  140         -
                    },
  141         -
                    other => {
  142         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  143         -
                            "expected object key or end object, found: {other:?}"
  144         -
                        )))
  145         -
                    }
  146         -
                }
  147         -
            }
  148         -
            Ok(Some(crate::serde_util::config_rule_correct_errors(builder).build()))
  149         -
        }
  150         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  151         -
            "expected start object or null",
  152         -
        )),
  153         -
    }
  154         -
}

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

@@ -1,0 +19,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_config_rule_compliance_filters(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::ConfigRuleComplianceFilters,
    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.compliance_type {
   10         -
        object.key("ComplianceType").string(var_2.as_str());
   11         -
    }
   12         -
    if let Some(var_3) = &input.account_id {
   13         -
        object.key("AccountId").string(var_3.as_str());
   14         -
    }
   15         -
    if let Some(var_4) = &input.aws_region {
   16         -
        object.key("AwsRegion").string(var_4.as_str());
   17         -
    }
   18         -
    Ok(())
   19         -
}