AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c

Files changed:

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

@@ -1,0 +80,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_account_aggregation_source(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::AccountAggregationSource,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    {
    7         -
        let mut array_1 = object.key("AccountIds").start_array();
    8         -
        for item_2 in &input.account_ids {
    9         -
            {
   10         -
                array_1.value().string(item_2.as_str());
   11         -
            }
   12         -
        }
   13         -
        array_1.finish();
   14         -
    }
   15         -
    if input.all_aws_regions {
   16         -
        object.key("AllAwsRegions").boolean(input.all_aws_regions);
   17         -
    }
   18         -
    if let Some(var_3) = &input.aws_regions {
   19         -
        let mut array_4 = object.key("AwsRegions").start_array();
   20         -
        for item_5 in var_3 {
   21         -
            {
   22         -
                array_4.value().string(item_5.as_str());
   23         -
            }
   24         -
        }
   25         -
        array_4.finish();
   26         -
    }
   27         -
    Ok(())
   28         -
}
   29         -
   30         -
pub(crate) fn de_account_aggregation_source<'a, I>(
   31         -
    tokens: &mut ::std::iter::Peekable<I>,
   32         -
    _value: &'a [u8],
   33         -
) -> ::std::result::Result<Option<crate::types::AccountAggregationSource>, ::aws_smithy_json::deserialize::error::DeserializeError>
   34         -
where
   35         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
   36         -
{
   37         -
    match tokens.next().transpose()? {
   38         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   39         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   40         -
            #[allow(unused_mut)]
   41         -
            let mut builder = crate::types::builders::AccountAggregationSourceBuilder::default();
   42         -
            loop {
   43         -
                match tokens.next().transpose()? {
   44         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   45         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   46         -
                        "AccountIds" => {
   47         -
                            builder = builder.set_account_ids(
   48         -
                                crate::protocol_serde::shape_account_aggregation_source_account_list::de_account_aggregation_source_account_list(
   49         -
                                    tokens, _value,
   50         -
                                )?,
   51         -
                            );
   52         -
                        }
   53         -
                        "AllAwsRegions" => {
   54         -
                            builder = builder.set_all_aws_regions(::aws_smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?);
   55         -
                        }
   56         -
                        "AwsRegions" => {
   57         -
                            builder = builder.set_aws_regions(crate::protocol_serde::shape_aggregator_region_list::de_aggregator_region_list(
   58         -
                                tokens, _value,
   59         -
                            )?);
   60         -
                        }
   61         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   62         -
                    },
   63         -
                    other => {
   64         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   65         -
                            "expected object key or end object, found: {other:?}"
   66         -
                        )))
   67         -
                    }
   68         -
                }
   69         -
            }
   70         -
            Ok(Some(
   71         -
                crate::serde_util::account_aggregation_source_correct_errors(builder)
   72         -
                    .build()
   73         -
                    .map_err(|err| ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err))?,
   74         -
            ))
   75         -
        }
   76         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   77         -
            "expected start object or null",
   78         -
        )),
   79         -
    }
   80         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_account_aggregation_source_account_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_account_aggregation_source_account_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_account_aggregation_source_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_account_aggregation_source_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::AccountAggregationSource>>, ::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_account_aggregation_source::de_account_aggregation_source(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_aggregate_compliance_by_config_rule.rs

@@ -1,0 +57,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_aggregate_compliance_by_config_rule<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::AggregateComplianceByConfigRule>, ::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::AggregateComplianceByConfigRuleBuilder::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         -
                        "AccountId" => {
   29         -
                            builder = builder.set_account_id(
   30         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   31         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   32         -
                                    .transpose()?,
   33         -
                            );
   34         -
                        }
   35         -
                        "AwsRegion" => {
   36         -
                            builder = builder.set_aws_region(
   37         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   38         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   39         -
                                    .transpose()?,
   40         -
                            );
   41         -
                        }
   42         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   43         -
                    },
   44         -
                    other => {
   45         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   46         -
                            "expected object key or end object, found: {other:?}"
   47         -
                        )))
   48         -
                    }
   49         -
                }
   50         -
            }
   51         -
            Ok(Some(builder.build()))
   52         -
        }
   53         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   54         -
            "expected start object or null",
   55         -
        )),
   56         -
    }
   57         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_aggregate_compliance_by_config_rule_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_aggregate_compliance_by_config_rule_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::AggregateComplianceByConfigRule>>,
    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_aggregate_compliance_by_config_rule::de_aggregate_compliance_by_config_rule(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_aggregate_compliance_by_conformance_pack.rs

@@ -1,0 +61,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_aggregate_compliance_by_conformance_pack<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::AggregateComplianceByConformancePack>, ::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::AggregateComplianceByConformancePackBuilder::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         -
                        "Compliance" => {
   26         -
                            builder = builder.set_compliance(
   27         -
                                crate::protocol_serde::shape_aggregate_conformance_pack_compliance::de_aggregate_conformance_pack_compliance(
   28         -
                                    tokens, _value,
   29         -
                                )?,
   30         -
                            );
   31         -
                        }
   32         -
                        "AccountId" => {
   33         -
                            builder = builder.set_account_id(
   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         -
                        "AwsRegion" => {
   40         -
                            builder = builder.set_aws_region(
   41         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   42         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   43         -
                                    .transpose()?,
   44         -
                            );
   45         -
                        }
   46         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   47         -
                    },
   48         -
                    other => {
   49         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   50         -
                            "expected object key or end object, found: {other:?}"
   51         -
                        )))
   52         -
                    }
   53         -
                }
   54         -
            }
   55         -
            Ok(Some(builder.build()))
   56         -
        }
   57         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   58         -
            "expected start object or null",
   59         -
        )),
   60         -
    }
   61         -
}

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

@@ -1,0 +43,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_aggregate_compliance_by_conformance_pack_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::AggregateComplianceByConformancePack>>,
    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_aggregate_compliance_by_conformance_pack::de_aggregate_compliance_by_conformance_pack(
   25         -
                                tokens, _value,
   26         -
                            )?;
   27         -
                        if let Some(value) = value {
   28         -
                            items.push(value);
   29         -
                        } else {
   30         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   31         -
                                "dense list cannot contain null values",
   32         -
                            ));
   33         -
                        }
   34         -
                    }
   35         -
                }
   36         -
            }
   37         -
            Ok(Some(items))
   38         -
        }
   39         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   40         -
            "expected start array or null",
   41         -
        )),
   42         -
    }
   43         -
}

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

@@ -1,0 +44,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_aggregate_compliance_count<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::AggregateComplianceCount>, ::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::AggregateComplianceCountBuilder::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         -
                        "GroupName" => {
   19         -
                            builder = builder.set_group_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         -
                        "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_aggregate_compliance_count_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_aggregate_compliance_count_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::AggregateComplianceCount>>, ::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_aggregate_compliance_count::de_aggregate_compliance_count(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_aggregate_conformance_pack_compliance.rs

@@ -1,0 +61,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_aggregate_conformance_pack_compliance<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::AggregateConformancePackCompliance>, ::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::AggregateConformancePackComplianceBuilder::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::ConformancePackComplianceType::from(u.as_ref())))
   22         -
                                    .transpose()?,
   23         -
                            );
   24         -
                        }
   25         -
                        "CompliantRuleCount" => {
   26         -
                            builder = builder.set_compliant_rule_count(
   27         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   28         -
                                    .map(i32::try_from)
   29         -
                                    .transpose()?,
   30         -
                            );
   31         -
                        }
   32         -
                        "NonCompliantRuleCount" => {
   33         -
                            builder = builder.set_non_compliant_rule_count(
   34         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   35         -
                                    .map(i32::try_from)
   36         -
                                    .transpose()?,
   37         -
                            );
   38         -
                        }
   39         -
                        "TotalRuleCount" => {
   40         -
                            builder = builder.set_total_rule_count(
   41         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   42         -
                                    .map(i32::try_from)
   43         -
                                    .transpose()?,
   44         -
                            );
   45         -
                        }
   46         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   47         -
                    },
   48         -
                    other => {
   49         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   50         -
                            "expected object key or end object, found: {other:?}"
   51         -
                        )))
   52         -
                    }
   53         -
                }
   54         -
            }
   55         -
            Ok(Some(builder.build()))
   56         -
        }
   57         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   58         -
            "expected start object or null",
   59         -
        )),
   60         -
    }
   61         -
}

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

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

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_aggregate_conformance_pack_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_aggregate_conformance_pack_compliance_filters(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::AggregateConformancePackComplianceFilters,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.conformance_pack_name {
    7         -
        object.key("ConformancePackName").string(var_1.as_str());
    8         -
    }
    9         -
    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         -
}

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

@@ -1,0 +45,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_aggregate_conformance_pack_compliance_summary<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::AggregateConformancePackComplianceSummary>, ::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::AggregateConformancePackComplianceSummaryBuilder::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         -
                        "ComplianceSummary" => {
   19         -
                            builder = builder.set_compliance_summary(
   20         -
                                    crate::protocol_serde::shape_aggregate_conformance_pack_compliance_count::de_aggregate_conformance_pack_compliance_count(tokens, _value)?
   21         -
                                );
   22         -
                        }
   23         -
                        "GroupName" => {
   24         -
                            builder = builder.set_group_name(
   25         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   26         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   27         -
                                    .transpose()?,
   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_aggregate_conformance_pack_compliance_summary_filters.rs

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

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

@@ -1,0 +42,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_aggregate_conformance_pack_compliance_summary_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::AggregateConformancePackComplianceSummary>>,
    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_aggregate_conformance_pack_compliance_summary::de_aggregate_conformance_pack_compliance_summary(tokens, _value)?
   25         -
                        ;
   26         -
                        if let Some(value) = value {
   27         -
                            items.push(value);
   28         -
                        } else {
   29         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   30         -
                                "dense list cannot contain null values",
   31         -
                            ));
   32         -
                        }
   33         -
                    }
   34         -
                }
   35         -
            }
   36         -
            Ok(Some(items))
   37         -
        }
   38         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   39         -
            "expected start array or null",
   40         -
        )),
   41         -
    }
   42         -
}

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

@@ -1,0 +78,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_aggregate_evaluation_result<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::AggregateEvaluationResult>, ::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::AggregateEvaluationResultBuilder::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         -
                        "EvaluationResultIdentifier" => {
   19         -
                            builder = builder.set_evaluation_result_identifier(
   20         -
                                crate::protocol_serde::shape_evaluation_result_identifier::de_evaluation_result_identifier(tokens, _value)?,
   21         -
                            );
   22         -
                        }
   23         -
                        "ComplianceType" => {
   24         -
                            builder = builder.set_compliance_type(
   25         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   26         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::ComplianceType::from(u.as_ref())))
   27         -
                                    .transpose()?,
   28         -
                            );
   29         -
                        }
   30         -
                        "ResultRecordedTime" => {
   31         -
                            builder = builder.set_result_recorded_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   32         -
                                tokens.next(),
   33         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   34         -
                            )?);
   35         -
                        }
   36         -
                        "ConfigRuleInvokedTime" => {
   37         -
                            builder = builder.set_config_rule_invoked_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   38         -
                                tokens.next(),
   39         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   40         -
                            )?);
   41         -
                        }
   42         -
                        "Annotation" => {
   43         -
                            builder = builder.set_annotation(
   44         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   45         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   46         -
                                    .transpose()?,
   47         -
                            );
   48         -
                        }
   49         -
                        "AccountId" => {
   50         -
                            builder = builder.set_account_id(
   51         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   52         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   53         -
                                    .transpose()?,
   54         -
                            );
   55         -
                        }
   56         -
                        "AwsRegion" => {
   57         -
                            builder = builder.set_aws_region(
   58         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   59         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   60         -
                                    .transpose()?,
   61         -
                            );
   62         -
                        }
   63         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   64         -
                    },
   65         -
                    other => {
   66         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   67         -
                            "expected object key or end object, found: {other:?}"
   68         -
                        )))
   69         -
                    }
   70         -
                }
   71         -
            }
   72         -
            Ok(Some(builder.build()))
   73         -
        }
   74         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   75         -
            "expected start object or null",
   76         -
        )),
   77         -
    }
   78         -
}