AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36

Files changed:

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_config_rule_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_config_rule_compliance_summary_filters(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::ConfigRuleComplianceSummaryFilters,
    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_config_rule_evaluation_status.rs

@@ -1,0 +128,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_config_rule_evaluation_status<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ConfigRuleEvaluationStatus>, ::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::ConfigRuleEvaluationStatusBuilder::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         -
                        "ConfigRuleArn" => {
   26         -
                            builder = builder.set_config_rule_arn(
   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         -
                        "ConfigRuleId" => {
   33         -
                            builder = builder.set_config_rule_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         -
                        "LastSuccessfulInvocationTime" => {
   40         -
                            builder = builder.set_last_successful_invocation_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   41         -
                                tokens.next(),
   42         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   43         -
                            )?);
   44         -
                        }
   45         -
                        "LastFailedInvocationTime" => {
   46         -
                            builder = builder.set_last_failed_invocation_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   47         -
                                tokens.next(),
   48         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   49         -
                            )?);
   50         -
                        }
   51         -
                        "LastSuccessfulEvaluationTime" => {
   52         -
                            builder = builder.set_last_successful_evaluation_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   53         -
                                tokens.next(),
   54         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   55         -
                            )?);
   56         -
                        }
   57         -
                        "LastFailedEvaluationTime" => {
   58         -
                            builder = builder.set_last_failed_evaluation_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   59         -
                                tokens.next(),
   60         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   61         -
                            )?);
   62         -
                        }
   63         -
                        "FirstActivatedTime" => {
   64         -
                            builder = builder.set_first_activated_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   65         -
                                tokens.next(),
   66         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   67         -
                            )?);
   68         -
                        }
   69         -
                        "LastDeactivatedTime" => {
   70         -
                            builder = builder.set_last_deactivated_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   71         -
                                tokens.next(),
   72         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   73         -
                            )?);
   74         -
                        }
   75         -
                        "LastErrorCode" => {
   76         -
                            builder = builder.set_last_error_code(
   77         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   78         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   79         -
                                    .transpose()?,
   80         -
                            );
   81         -
                        }
   82         -
                        "LastErrorMessage" => {
   83         -
                            builder = builder.set_last_error_message(
   84         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   85         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   86         -
                                    .transpose()?,
   87         -
                            );
   88         -
                        }
   89         -
                        "FirstEvaluationStarted" => {
   90         -
                            builder =
   91         -
                                builder.set_first_evaluation_started(::aws_smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?);
   92         -
                        }
   93         -
                        "LastDebugLogDeliveryStatus" => {
   94         -
                            builder = builder.set_last_debug_log_delivery_status(
   95         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   96         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   97         -
                                    .transpose()?,
   98         -
                            );
   99         -
                        }
  100         -
                        "LastDebugLogDeliveryStatusReason" => {
  101         -
                            builder = builder.set_last_debug_log_delivery_status_reason(
  102         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  103         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  104         -
                                    .transpose()?,
  105         -
                            );
  106         -
                        }
  107         -
                        "LastDebugLogDeliveryTime" => {
  108         -
                            builder = builder.set_last_debug_log_delivery_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
  109         -
                                tokens.next(),
  110         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
  111         -
                            )?);
  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         -
            Ok(Some(builder.build()))
  123         -
        }
  124         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  125         -
            "expected start object or null",
  126         -
        )),
  127         -
    }
  128         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_config_rule_evaluation_status_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_config_rule_evaluation_status_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::ConfigRuleEvaluationStatus>>, ::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_config_rule_evaluation_status::de_config_rule_evaluation_status(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_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_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::ConfigRule>>, ::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_config_rule::de_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_config_snapshot_delivery_properties.rs

@@ -1,0 +50,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_config_snapshot_delivery_properties(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::ConfigSnapshotDeliveryProperties,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.delivery_frequency {
    7         -
        object.key("deliveryFrequency").string(var_1.as_str());
    8         -
    }
    9         -
    Ok(())
   10         -
}
   11         -
   12         -
pub(crate) fn de_config_snapshot_delivery_properties<'a, I>(
   13         -
    tokens: &mut ::std::iter::Peekable<I>,
   14         -
    _value: &'a [u8],
   15         -
) -> ::std::result::Result<Option<crate::types::ConfigSnapshotDeliveryProperties>, ::aws_smithy_json::deserialize::error::DeserializeError>
   16         -
where
   17         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
   18         -
{
   19         -
    match tokens.next().transpose()? {
   20         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   21         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   22         -
            #[allow(unused_mut)]
   23         -
            let mut builder = crate::types::builders::ConfigSnapshotDeliveryPropertiesBuilder::default();
   24         -
            loop {
   25         -
                match tokens.next().transpose()? {
   26         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   27         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   28         -
                        "deliveryFrequency" => {
   29         -
                            builder = builder.set_delivery_frequency(
   30         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   31         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::MaximumExecutionFrequency::from(u.as_ref())))
   32         -
                                    .transpose()?,
   33         -
                            );
   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_config_stream_delivery_info.rs

@@ -1,0 +60,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_config_stream_delivery_info<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ConfigStreamDeliveryInfo>, ::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::ConfigStreamDeliveryInfoBuilder::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         -
                        "lastStatusChangeTime" => {
   40         -
                            builder = builder.set_last_status_change_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   41         -
                                tokens.next(),
   42         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   43         -
                            )?);
   44         -
                        }
   45         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   46         -
                    },
   47         -
                    other => {
   48         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   49         -
                            "expected object key or end object, found: {other:?}"
   50         -
                        )))
   51         -
                    }
   52         -
                }
   53         -
            }
   54         -
            Ok(Some(builder.build()))
   55         -
        }
   56         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   57         -
            "expected start object or null",
   58         -
        )),
   59         -
    }
   60         -
}

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

@@ -1,0 +80,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_configuration_aggregator<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ConfigurationAggregator>, ::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::ConfigurationAggregatorBuilder::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         -
                        "ConfigurationAggregatorName" => {
   19         -
                            builder = builder.set_configuration_aggregator_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         -
                        "ConfigurationAggregatorArn" => {
   26         -
                            builder = builder.set_configuration_aggregator_arn(
   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         -
                        "AccountAggregationSources" => {
   33         -
                            builder = builder.set_account_aggregation_sources(
   34         -
                                crate::protocol_serde::shape_account_aggregation_source_list::de_account_aggregation_source_list(tokens, _value)?,
   35         -
                            );
   36         -
                        }
   37         -
                        "OrganizationAggregationSource" => {
   38         -
                            builder = builder.set_organization_aggregation_source(
   39         -
                                crate::protocol_serde::shape_organization_aggregation_source::de_organization_aggregation_source(tokens, _value)?,
   40         -
                            );
   41         -
                        }
   42         -
                        "CreationTime" => {
   43         -
                            builder = builder.set_creation_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   44         -
                                tokens.next(),
   45         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   46         -
                            )?);
   47         -
                        }
   48         -
                        "LastUpdatedTime" => {
   49         -
                            builder = builder.set_last_updated_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   50         -
                                tokens.next(),
   51         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   52         -
                            )?);
   53         -
                        }
   54         -
                        "CreatedBy" => {
   55         -
                            builder = builder.set_created_by(
   56         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   57         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   58         -
                                    .transpose()?,
   59         -
                            );
   60         -
                        }
   61         -
                        "AggregatorFilters" => {
   62         -
                            builder = builder
   63         -
                                .set_aggregator_filters(crate::protocol_serde::shape_aggregator_filters::de_aggregator_filters(tokens, _value)?);
   64         -
                        }
   65         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   66         -
                    },
   67         -
                    other => {
   68         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   69         -
                            "expected object key or end object, found: {other:?}"
   70         -
                        )))
   71         -
                    }
   72         -
                }
   73         -
            }
   74         -
            Ok(Some(builder.build()))
   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_configuration_aggregator_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_configuration_aggregator_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::ConfigurationAggregator>>, ::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_configuration_aggregator::de_configuration_aggregator(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_configuration_item.rs

@@ -1,0 +158,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_configuration_item<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ConfigurationItem>, ::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::ConfigurationItemBuilder::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         -
                        "version" => {
   19         -
                            builder = builder.set_version(
   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         -
                        "accountId" => {
   26         -
                            builder = builder.set_account_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         -
                        "configurationItemCaptureTime" => {
   33         -
                            builder = builder.set_configuration_item_capture_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   34         -
                                tokens.next(),
   35         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   36         -
                            )?);
   37         -
                        }
   38         -
                        "configurationItemStatus" => {
   39         -
                            builder = builder.set_configuration_item_status(
   40         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   41         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::ConfigurationItemStatus::from(u.as_ref())))
   42         -
                                    .transpose()?,
   43         -
                            );
   44         -
                        }
   45         -
                        "configurationStateId" => {
   46         -
                            builder = builder.set_configuration_state_id(
   47         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   48         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   49         -
                                    .transpose()?,
   50         -
                            );
   51         -
                        }
   52         -
                        "configurationItemMD5Hash" => {
   53         -
                            builder = builder.set_configuration_item_md5_hash(
   54         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   55         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   56         -
                                    .transpose()?,
   57         -
                            );
   58         -
                        }
   59         -
                        "arn" => {
   60         -
                            builder = builder.set_arn(
   61         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   62         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   63         -
                                    .transpose()?,
   64         -
                            );
   65         -
                        }
   66         -
                        "resourceType" => {
   67         -
                            builder = builder.set_resource_type(
   68         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   69         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::ResourceType::from(u.as_ref())))
   70         -
                                    .transpose()?,
   71         -
                            );
   72         -
                        }
   73         -
                        "resourceId" => {
   74         -
                            builder = builder.set_resource_id(
   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         -
                        "resourceName" => {
   81         -
                            builder = builder.set_resource_name(
   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         -
                        "awsRegion" => {
   88         -
                            builder = builder.set_aws_region(
   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         -
                        "availabilityZone" => {
   95         -
                            builder = builder.set_availability_zone(
   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         -
                        "resourceCreationTime" => {
  102         -
                            builder = builder.set_resource_creation_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
  103         -
                                tokens.next(),
  104         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
  105         -
                            )?);
  106         -
                        }
  107         -
                        "tags" => {
  108         -
                            builder = builder.set_tags(crate::protocol_serde::shape_tags::de_tags(tokens, _value)?);
  109         -
                        }
  110         -
                        "relatedEvents" => {
  111         -
                            builder =
  112         -
                                builder.set_related_events(crate::protocol_serde::shape_related_event_list::de_related_event_list(tokens, _value)?);
  113         -
                        }
  114         -
                        "relationships" => {
  115         -
                            builder =
  116         -
                                builder.set_relationships(crate::protocol_serde::shape_relationship_list::de_relationship_list(tokens, _value)?);
  117         -
                        }
  118         -
                        "configuration" => {
  119         -
                            builder = builder.set_configuration(
  120         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  121         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  122         -
                                    .transpose()?,
  123         -
                            );
  124         -
                        }
  125         -
                        "supplementaryConfiguration" => {
  126         -
                            builder = builder.set_supplementary_configuration(
  127         -
                                crate::protocol_serde::shape_supplementary_configuration::de_supplementary_configuration(tokens, _value)?,
  128         -
                            );
  129         -
                        }
  130         -
                        "recordingFrequency" => {
  131         -
                            builder = builder.set_recording_frequency(
  132         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  133         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::RecordingFrequency::from(u.as_ref())))
  134         -
                                    .transpose()?,
  135         -
                            );
  136         -
                        }
  137         -
                        "configurationItemDeliveryTime" => {
  138         -
                            builder = builder.set_configuration_item_delivery_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
  139         -
                                tokens.next(),
  140         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
  141         -
                            )?);
  142         -
                        }
  143         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  144         -
                    },
  145         -
                    other => {
  146         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  147         -
                            "expected object key or end object, found: {other:?}"
  148         -
                        )))
  149         -
                    }
  150         -
                }
  151         -
            }
  152         -
            Ok(Some(builder.build()))
  153         -
        }
  154         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  155         -
            "expected start object or null",
  156         -
        )),
  157         -
    }
  158         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_configuration_item_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_configuration_item_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::ConfigurationItem>>, ::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_configuration_item::de_configuration_item(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_configuration_recorder.rs

@@ -1,0 +108,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_configuration_recorder<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ConfigurationRecorder>, ::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::ConfigurationRecorderBuilder::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         -
                        "arn" => {
   19         -
                            builder = builder.set_arn(
   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         -
                        "name" => {
   26         -
                            builder = builder.set_name(
   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         -
                        "roleARN" => {
   33         -
                            builder = builder.set_role_arn(
   34         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   35         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   36         -
                                    .transpose()?,
   37         -
                            );
   38         -
                        }
   39         -
                        "recordingGroup" => {
   40         -
                            builder = builder.set_recording_group(crate::protocol_serde::shape_recording_group::de_recording_group(tokens, _value)?);
   41         -
                        }
   42         -
                        "recordingMode" => {
   43         -
                            builder = builder.set_recording_mode(crate::protocol_serde::shape_recording_mode::de_recording_mode(tokens, _value)?);
   44         -
                        }
   45         -
                        "recordingScope" => {
   46         -
                            builder = builder.set_recording_scope(
   47         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   48         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::RecordingScope::from(u.as_ref())))
   49         -
                                    .transpose()?,
   50         -
                            );
   51         -
                        }
   52         -
                        "servicePrincipal" => {
   53         -
                            builder = builder.set_service_principal(
   54         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   55         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   56         -
                                    .transpose()?,
   57         -
                            );
   58         -
                        }
   59         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   60         -
                    },
   61         -
                    other => {
   62         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   63         -
                            "expected object key or end object, found: {other:?}"
   64         -
                        )))
   65         -
                    }
   66         -
                }
   67         -
            }
   68         -
            Ok(Some(builder.build()))
   69         -
        }
   70         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   71         -
            "expected start object or null",
   72         -
        )),
   73         -
    }
   74         -
}
   75         -
   76         -
pub fn ser_configuration_recorder(
   77         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
   78         -
    input: &crate::types::ConfigurationRecorder,
   79         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
   80         -
    if let Some(var_1) = &input.arn {
   81         -
        object.key("arn").string(var_1.as_str());
   82         -
    }
   83         -
    if let Some(var_2) = &input.name {
   84         -
        object.key("name").string(var_2.as_str());
   85         -
    }
   86         -
    if let Some(var_3) = &input.role_arn {
   87         -
        object.key("roleARN").string(var_3.as_str());
   88         -
    }
   89         -
    if let Some(var_4) = &input.recording_group {
   90         -
        #[allow(unused_mut)]
   91         -
        let mut object_5 = object.key("recordingGroup").start_object();
   92         -
        crate::protocol_serde::shape_recording_group::ser_recording_group(&mut object_5, var_4)?;
   93         -
        object_5.finish();
   94         -
    }
   95         -
    if let Some(var_6) = &input.recording_mode {
   96         -
        #[allow(unused_mut)]
   97         -
        let mut object_7 = object.key("recordingMode").start_object();
   98         -
        crate::protocol_serde::shape_recording_mode::ser_recording_mode(&mut object_7, var_6)?;
   99         -
        object_7.finish();
  100         -
    }
  101         -
    if let Some(var_8) = &input.recording_scope {
  102         -
        object.key("recordingScope").string(var_8.as_str());
  103         -
    }
  104         -
    if let Some(var_9) = &input.service_principal {
  105         -
        object.key("servicePrincipal").string(var_9.as_str());
  106         -
    }
  107         -
    Ok(())
  108         -
}

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

@@ -1,0 +19,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_configuration_recorder_filter(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::ConfigurationRecorderFilter,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.filter_name {
    7         -
        object.key("filterName").string(var_1.as_str());
    8         -
    }
    9         -
    if let Some(var_2) = &input.filter_value {
   10         -
        let mut array_3 = object.key("filterValue").start_array();
   11         -
        for item_4 in var_2 {
   12         -
            {
   13         -
                array_3.value().string(item_4.as_str());
   14         -
            }
   15         -
        }
   16         -
        array_3.finish();
   17         -
    }
   18         -
    Ok(())
   19         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_configuration_recorder_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_configuration_recorder_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::ConfigurationRecorder>>, ::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_configuration_recorder::de_configuration_recorder(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_configuration_recorder_status.rs

@@ -1,0 +96,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_configuration_recorder_status<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ConfigurationRecorderStatus>, ::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::ConfigurationRecorderStatusBuilder::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         -
                        "arn" => {
   19         -
                            builder = builder.set_arn(
   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         -
                        "name" => {
   26         -
                            builder = builder.set_name(
   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         -
                        "lastStartTime" => {
   33         -
                            builder = builder.set_last_start_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   34         -
                                tokens.next(),
   35         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   36         -
                            )?);
   37         -
                        }
   38         -
                        "lastStopTime" => {
   39         -
                            builder = builder.set_last_stop_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   40         -
                                tokens.next(),
   41         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   42         -
                            )?);
   43         -
                        }
   44         -
                        "recording" => {
   45         -
                            builder = builder.set_recording(::aws_smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?);
   46         -
                        }
   47         -
                        "lastStatus" => {
   48         -
                            builder = builder.set_last_status(
   49         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   50         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::RecorderStatus::from(u.as_ref())))
   51         -
                                    .transpose()?,
   52         -
                            );
   53         -
                        }
   54         -
                        "lastErrorCode" => {
   55         -
                            builder = builder.set_last_error_code(
   56         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   57         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   58         -
                                    .transpose()?,
   59         -
                            );
   60         -
                        }
   61         -
                        "lastErrorMessage" => {
   62         -
                            builder = builder.set_last_error_message(
   63         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   64         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   65         -
                                    .transpose()?,
   66         -
                            );
   67         -
                        }
   68         -
                        "lastStatusChangeTime" => {
   69         -
                            builder = builder.set_last_status_change_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   70         -
                                tokens.next(),
   71         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   72         -
                            )?);
   73         -
                        }
   74         -
                        "servicePrincipal" => {
   75         -
                            builder = builder.set_service_principal(
   76         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   77         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   78         -
                                    .transpose()?,
   79         -
                            );
   80         -
                        }
   81         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   82         -
                    },
   83         -
                    other => {
   84         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   85         -
                            "expected object key or end object, found: {other:?}"
   86         -
                        )))
   87         -
                    }
   88         -
                }
   89         -
            }
   90         -
            Ok(Some(builder.build()))
   91         -
        }
   92         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   93         -
            "expected start object or null",
   94         -
        )),
   95         -
    }
   96         -
}

tmp-codegen-diff/aws-sdk/sdk/config/src/protocol_serde/shape_configuration_recorder_status_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_configuration_recorder_status_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::ConfigurationRecorderStatus>>, ::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_configuration_recorder_status::de_configuration_recorder_status(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_configuration_recorder_summaries.rs

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