AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/protocol_serde/shape_secondary_indexes_capacity_map.rs

@@ -1,0 +46,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_secondary_indexes_capacity_map<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<
    6         -
    Option<::std::collections::HashMap<::std::string::String, crate::types::Capacity>>,
    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::StartObject { .. }) => {
   15         -
            let mut map = ::std::collections::HashMap::new();
   16         -
            loop {
   17         -
                match tokens.next().transpose()? {
   18         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   19         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
   20         -
                        let key = key.to_unescaped().map(|u| u.into_owned())?;
   21         -
                        let value = crate::protocol_serde::shape_capacity::de_capacity(tokens, _value)?;
   22         -
                        match value {
   23         -
                            Some(value) => {
   24         -
                                map.insert(key, value);
   25         -
                            }
   26         -
                            None => {
   27         -
                                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   28         -
                                    "dense map cannot contain null values",
   29         -
                                ))
   30         -
                            }
   31         -
                        }
   32         -
                    }
   33         -
                    other => {
   34         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   35         -
                            "expected object key or end object, found: {other:?}"
   36         -
                        )))
   37         -
                    }
   38         -
                }
   39         -
            }
   40         -
            Ok(Some(map))
   41         -
        }
   42         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   43         -
            "expected start object or null",
   44         -
        )),
   45         -
    }
   46         -
}

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/protocol_serde/shape_source_table_details.rs

@@ -1,0 +96,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_source_table_details<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::SourceTableDetails>, ::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::SourceTableDetailsBuilder::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         -
                        "TableName" => {
   19         -
                            builder = builder.set_table_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         -
                        "TableId" => {
   26         -
                            builder = builder.set_table_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         -
                        "TableArn" => {
   33         -
                            builder = builder.set_table_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         -
                        "TableSizeBytes" => {
   40         -
                            builder = builder.set_table_size_bytes(
   41         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   42         -
                                    .map(i64::try_from)
   43         -
                                    .transpose()?,
   44         -
                            );
   45         -
                        }
   46         -
                        "KeySchema" => {
   47         -
                            builder = builder.set_key_schema(crate::protocol_serde::shape_key_schema::de_key_schema(tokens, _value)?);
   48         -
                        }
   49         -
                        "TableCreationDateTime" => {
   50         -
                            builder = builder.set_table_creation_date_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   51         -
                                tokens.next(),
   52         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   53         -
                            )?);
   54         -
                        }
   55         -
                        "ProvisionedThroughput" => {
   56         -
                            builder = builder.set_provisioned_throughput(
   57         -
                                crate::protocol_serde::shape_provisioned_throughput::de_provisioned_throughput(tokens, _value)?,
   58         -
                            );
   59         -
                        }
   60         -
                        "OnDemandThroughput" => {
   61         -
                            builder = builder.set_on_demand_throughput(crate::protocol_serde::shape_on_demand_throughput::de_on_demand_throughput(
   62         -
                                tokens, _value,
   63         -
                            )?);
   64         -
                        }
   65         -
                        "ItemCount" => {
   66         -
                            builder = builder.set_item_count(
   67         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   68         -
                                    .map(i64::try_from)
   69         -
                                    .transpose()?,
   70         -
                            );
   71         -
                        }
   72         -
                        "BillingMode" => {
   73         -
                            builder = builder.set_billing_mode(
   74         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   75         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::BillingMode::from(u.as_ref())))
   76         -
                                    .transpose()?,
   77         -
                            );
   78         -
                        }
   79         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   80         -
                    },
   81         -
                    other => {
   82         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   83         -
                            "expected object key or end object, found: {other:?}"
   84         -
                        )))
   85         -
                    }
   86         -
                }
   87         -
            }
   88         -
            Ok(Some(crate::serde_util::source_table_details_correct_errors(builder).build().map_err(
   89         -
                |err| ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err),
   90         -
            )?))
   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/dynamodb/src/protocol_serde/shape_source_table_feature_details.rs

@@ -1,0 +56,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_source_table_feature_details<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::SourceTableFeatureDetails>, ::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::SourceTableFeatureDetailsBuilder::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         -
                        "LocalSecondaryIndexes" => {
   19         -
                            builder = builder.set_local_secondary_indexes(
   20         -
                                crate::protocol_serde::shape_local_secondary_indexes::de_local_secondary_indexes(tokens, _value)?,
   21         -
                            );
   22         -
                        }
   23         -
                        "GlobalSecondaryIndexes" => {
   24         -
                            builder = builder.set_global_secondary_indexes(
   25         -
                                crate::protocol_serde::shape_global_secondary_indexes::de_global_secondary_indexes(tokens, _value)?,
   26         -
                            );
   27         -
                        }
   28         -
                        "StreamDescription" => {
   29         -
                            builder = builder.set_stream_description(crate::protocol_serde::shape_stream_specification::de_stream_specification(
   30         -
                                tokens, _value,
   31         -
                            )?);
   32         -
                        }
   33         -
                        "TimeToLiveDescription" => {
   34         -
                            builder = builder.set_time_to_live_description(
   35         -
                                crate::protocol_serde::shape_time_to_live_description::de_time_to_live_description(tokens, _value)?,
   36         -
                            );
   37         -
                        }
   38         -
                        "SSEDescription" => {
   39         -
                            builder = builder.set_sse_description(crate::protocol_serde::shape_sse_description::de_sse_description(tokens, _value)?);
   40         -
                        }
   41         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   42         -
                    },
   43         -
                    other => {
   44         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   45         -
                            "expected object key or end object, found: {other:?}"
   46         -
                        )))
   47         -
                    }
   48         -
                }
   49         -
            }
   50         -
            Ok(Some(builder.build()))
   51         -
        }
   52         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   53         -
            "expected start object or null",
   54         -
        )),
   55         -
    }
   56         -
}

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/protocol_serde/shape_sse_description.rs

@@ -1,0 +60,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_sse_description<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::SseDescription>, ::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::SseDescriptionBuilder::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         -
                        "Status" => {
   19         -
                            builder = builder.set_status(
   20         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::SseStatus::from(u.as_ref())))
   22         -
                                    .transpose()?,
   23         -
                            );
   24         -
                        }
   25         -
                        "SSEType" => {
   26         -
                            builder = builder.set_sse_type(
   27         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   28         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::SseType::from(u.as_ref())))
   29         -
                                    .transpose()?,
   30         -
                            );
   31         -
                        }
   32         -
                        "KMSMasterKeyArn" => {
   33         -
                            builder = builder.set_kms_master_key_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         -
                        "InaccessibleEncryptionDateTime" => {
   40         -
                            builder = builder.set_inaccessible_encryption_date_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/dynamodb/src/protocol_serde/shape_sse_specification.rs

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

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/protocol_serde/shape_stream_specification.rs

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

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/protocol_serde/shape_string_set_attribute_value.rs

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

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

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/protocol_serde/shape_table_auto_scaling_description.rs

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

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/protocol_serde/shape_table_class_summary.rs

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

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/protocol_serde/shape_table_creation_parameters.rs

@@ -1,0 +145,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_table_creation_parameters(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::TableCreationParameters,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    {
    7         -
        object.key("TableName").string(input.table_name.as_str());
    8         -
    }
    9         -
    {
   10         -
        let mut array_1 = object.key("AttributeDefinitions").start_array();
   11         -
        for item_2 in &input.attribute_definitions {
   12         -
            {
   13         -
                #[allow(unused_mut)]
   14         -
                let mut object_3 = array_1.value().start_object();
   15         -
                crate::protocol_serde::shape_attribute_definition::ser_attribute_definition(&mut object_3, item_2)?;
   16         -
                object_3.finish();
   17         -
            }
   18         -
        }
   19         -
        array_1.finish();
   20         -
    }
   21         -
    {
   22         -
        let mut array_4 = object.key("KeySchema").start_array();
   23         -
        for item_5 in &input.key_schema {
   24         -
            {
   25         -
                #[allow(unused_mut)]
   26         -
                let mut object_6 = array_4.value().start_object();
   27         -
                crate::protocol_serde::shape_key_schema_element::ser_key_schema_element(&mut object_6, item_5)?;
   28         -
                object_6.finish();
   29         -
            }
   30         -
        }
   31         -
        array_4.finish();
   32         -
    }
   33         -
    if let Some(var_7) = &input.billing_mode {
   34         -
        object.key("BillingMode").string(var_7.as_str());
   35         -
    }
   36         -
    if let Some(var_8) = &input.provisioned_throughput {
   37         -
        #[allow(unused_mut)]
   38         -
        let mut object_9 = object.key("ProvisionedThroughput").start_object();
   39         -
        crate::protocol_serde::shape_provisioned_throughput::ser_provisioned_throughput(&mut object_9, var_8)?;
   40         -
        object_9.finish();
   41         -
    }
   42         -
    if let Some(var_10) = &input.on_demand_throughput {
   43         -
        #[allow(unused_mut)]
   44         -
        let mut object_11 = object.key("OnDemandThroughput").start_object();
   45         -
        crate::protocol_serde::shape_on_demand_throughput::ser_on_demand_throughput(&mut object_11, var_10)?;
   46         -
        object_11.finish();
   47         -
    }
   48         -
    if let Some(var_12) = &input.sse_specification {
   49         -
        #[allow(unused_mut)]
   50         -
        let mut object_13 = object.key("SSESpecification").start_object();
   51         -
        crate::protocol_serde::shape_sse_specification::ser_sse_specification(&mut object_13, var_12)?;
   52         -
        object_13.finish();
   53         -
    }
   54         -
    if let Some(var_14) = &input.global_secondary_indexes {
   55         -
        let mut array_15 = object.key("GlobalSecondaryIndexes").start_array();
   56         -
        for item_16 in var_14 {
   57         -
            {
   58         -
                #[allow(unused_mut)]
   59         -
                let mut object_17 = array_15.value().start_object();
   60         -
                crate::protocol_serde::shape_global_secondary_index::ser_global_secondary_index(&mut object_17, item_16)?;
   61         -
                object_17.finish();
   62         -
            }
   63         -
        }
   64         -
        array_15.finish();
   65         -
    }
   66         -
    Ok(())
   67         -
}
   68         -
   69         -
pub(crate) fn de_table_creation_parameters<'a, I>(
   70         -
    tokens: &mut ::std::iter::Peekable<I>,
   71         -
    _value: &'a [u8],
   72         -
) -> ::std::result::Result<Option<crate::types::TableCreationParameters>, ::aws_smithy_json::deserialize::error::DeserializeError>
   73         -
where
   74         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
   75         -
{
   76         -
    match tokens.next().transpose()? {
   77         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   78         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   79         -
            #[allow(unused_mut)]
   80         -
            let mut builder = crate::types::builders::TableCreationParametersBuilder::default();
   81         -
            loop {
   82         -
                match tokens.next().transpose()? {
   83         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   84         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   85         -
                        "TableName" => {
   86         -
                            builder = builder.set_table_name(
   87         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   88         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   89         -
                                    .transpose()?,
   90         -
                            );
   91         -
                        }
   92         -
                        "AttributeDefinitions" => {
   93         -
                            builder = builder.set_attribute_definitions(
   94         -
                                crate::protocol_serde::shape_attribute_definitions::de_attribute_definitions(tokens, _value)?,
   95         -
                            );
   96         -
                        }
   97         -
                        "KeySchema" => {
   98         -
                            builder = builder.set_key_schema(crate::protocol_serde::shape_key_schema::de_key_schema(tokens, _value)?);
   99         -
                        }
  100         -
                        "BillingMode" => {
  101         -
                            builder = builder.set_billing_mode(
  102         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  103         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::BillingMode::from(u.as_ref())))
  104         -
                                    .transpose()?,
  105         -
                            );
  106         -
                        }
  107         -
                        "ProvisionedThroughput" => {
  108         -
                            builder = builder.set_provisioned_throughput(
  109         -
                                crate::protocol_serde::shape_provisioned_throughput::de_provisioned_throughput(tokens, _value)?,
  110         -
                            );
  111         -
                        }
  112         -
                        "OnDemandThroughput" => {
  113         -
                            builder = builder.set_on_demand_throughput(crate::protocol_serde::shape_on_demand_throughput::de_on_demand_throughput(
  114         -
                                tokens, _value,
  115         -
                            )?);
  116         -
                        }
  117         -
                        "SSESpecification" => {
  118         -
                            builder =
  119         -
                                builder.set_sse_specification(crate::protocol_serde::shape_sse_specification::de_sse_specification(tokens, _value)?);
  120         -
                        }
  121         -
                        "GlobalSecondaryIndexes" => {
  122         -
                            builder = builder.set_global_secondary_indexes(
  123         -
                                crate::protocol_serde::shape_global_secondary_index_list::de_global_secondary_index_list(tokens, _value)?,
  124         -
                            );
  125         -
                        }
  126         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  127         -
                    },
  128         -
                    other => {
  129         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  130         -
                            "expected object key or end object, found: {other:?}"
  131         -
                        )))
  132         -
                    }
  133         -
                }
  134         -
            }
  135         -
            Ok(Some(
  136         -
                crate::serde_util::table_creation_parameters_correct_errors(builder)
  137         -
                    .build()
  138         -
                    .map_err(|err| ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err))?,
  139         -
            ))
  140         -
        }
  141         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  142         -
            "expected start object or null",
  143         -
        )),
  144         -
    }
  145         -
}

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/protocol_serde/shape_table_description.rs

@@ -1,0 +188,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_table_description<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::TableDescription>, ::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::TableDescriptionBuilder::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         -
                        "AttributeDefinitions" => {
   19         -
                            builder = builder.set_attribute_definitions(
   20         -
                                crate::protocol_serde::shape_attribute_definitions::de_attribute_definitions(tokens, _value)?,
   21         -
                            );
   22         -
                        }
   23         -
                        "TableName" => {
   24         -
                            builder = builder.set_table_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         -
                        "KeySchema" => {
   31         -
                            builder = builder.set_key_schema(crate::protocol_serde::shape_key_schema::de_key_schema(tokens, _value)?);
   32         -
                        }
   33         -
                        "TableStatus" => {
   34         -
                            builder = builder.set_table_status(
   35         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   36         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::TableStatus::from(u.as_ref())))
   37         -
                                    .transpose()?,
   38         -
                            );
   39         -
                        }
   40         -
                        "CreationDateTime" => {
   41         -
                            builder = builder.set_creation_date_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   42         -
                                tokens.next(),
   43         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   44         -
                            )?);
   45         -
                        }
   46         -
                        "ProvisionedThroughput" => {
   47         -
                            builder = builder.set_provisioned_throughput(
   48         -
                                crate::protocol_serde::shape_provisioned_throughput_description::de_provisioned_throughput_description(
   49         -
                                    tokens, _value,
   50         -
                                )?,
   51         -
                            );
   52         -
                        }
   53         -
                        "TableSizeBytes" => {
   54         -
                            builder = builder.set_table_size_bytes(
   55         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   56         -
                                    .map(i64::try_from)
   57         -
                                    .transpose()?,
   58         -
                            );
   59         -
                        }
   60         -
                        "ItemCount" => {
   61         -
                            builder = builder.set_item_count(
   62         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   63         -
                                    .map(i64::try_from)
   64         -
                                    .transpose()?,
   65         -
                            );
   66         -
                        }
   67         -
                        "TableArn" => {
   68         -
                            builder = builder.set_table_arn(
   69         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   70         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   71         -
                                    .transpose()?,
   72         -
                            );
   73         -
                        }
   74         -
                        "TableId" => {
   75         -
                            builder = builder.set_table_id(
   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         -
                        "BillingModeSummary" => {
   82         -
                            builder = builder.set_billing_mode_summary(crate::protocol_serde::shape_billing_mode_summary::de_billing_mode_summary(
   83         -
                                tokens, _value,
   84         -
                            )?);
   85         -
                        }
   86         -
                        "LocalSecondaryIndexes" => {
   87         -
                            builder = builder.set_local_secondary_indexes(
   88         -
                                crate::protocol_serde::shape_local_secondary_index_description_list::de_local_secondary_index_description_list(
   89         -
                                    tokens, _value,
   90         -
                                )?,
   91         -
                            );
   92         -
                        }
   93         -
                        "GlobalSecondaryIndexes" => {
   94         -
                            builder = builder.set_global_secondary_indexes(
   95         -
                                crate::protocol_serde::shape_global_secondary_index_description_list::de_global_secondary_index_description_list(
   96         -
                                    tokens, _value,
   97         -
                                )?,
   98         -
                            );
   99         -
                        }
  100         -
                        "StreamSpecification" => {
  101         -
                            builder = builder.set_stream_specification(crate::protocol_serde::shape_stream_specification::de_stream_specification(
  102         -
                                tokens, _value,
  103         -
                            )?);
  104         -
                        }
  105         -
                        "LatestStreamLabel" => {
  106         -
                            builder = builder.set_latest_stream_label(
  107         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  108         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  109         -
                                    .transpose()?,
  110         -
                            );
  111         -
                        }
  112         -
                        "LatestStreamArn" => {
  113         -
                            builder = builder.set_latest_stream_arn(
  114         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  115         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  116         -
                                    .transpose()?,
  117         -
                            );
  118         -
                        }
  119         -
                        "GlobalTableVersion" => {
  120         -
                            builder = builder.set_global_table_version(
  121         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  122         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  123         -
                                    .transpose()?,
  124         -
                            );
  125         -
                        }
  126         -
                        "Replicas" => {
  127         -
                            builder = builder.set_replicas(crate::protocol_serde::shape_replica_description_list::de_replica_description_list(
  128         -
                                tokens, _value,
  129         -
                            )?);
  130         -
                        }
  131         -
                        "GlobalTableWitnesses" => {
  132         -
                            builder = builder.set_global_table_witnesses(
  133         -
                                crate::protocol_serde::shape_global_table_witness_description_list::de_global_table_witness_description_list(
  134         -
                                    tokens, _value,
  135         -
                                )?,
  136         -
                            );
  137         -
                        }
  138         -
                        "RestoreSummary" => {
  139         -
                            builder = builder.set_restore_summary(crate::protocol_serde::shape_restore_summary::de_restore_summary(tokens, _value)?);
  140         -
                        }
  141         -
                        "SSEDescription" => {
  142         -
                            builder = builder.set_sse_description(crate::protocol_serde::shape_sse_description::de_sse_description(tokens, _value)?);
  143         -
                        }
  144         -
                        "ArchivalSummary" => {
  145         -
                            builder =
  146         -
                                builder.set_archival_summary(crate::protocol_serde::shape_archival_summary::de_archival_summary(tokens, _value)?);
  147         -
                        }
  148         -
                        "TableClassSummary" => {
  149         -
                            builder = builder
  150         -
                                .set_table_class_summary(crate::protocol_serde::shape_table_class_summary::de_table_class_summary(tokens, _value)?);
  151         -
                        }
  152         -
                        "DeletionProtectionEnabled" => {
  153         -
                            builder =
  154         -
                                builder.set_deletion_protection_enabled(::aws_smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?);
  155         -
                        }
  156         -
                        "OnDemandThroughput" => {
  157         -
                            builder = builder.set_on_demand_throughput(crate::protocol_serde::shape_on_demand_throughput::de_on_demand_throughput(
  158         -
                                tokens, _value,
  159         -
                            )?);
  160         -
                        }
  161         -
                        "WarmThroughput" => {
  162         -
                            builder = builder.set_warm_throughput(
  163         -
                                crate::protocol_serde::shape_table_warm_throughput_description::de_table_warm_throughput_description(tokens, _value)?,
  164         -
                            );
  165         -
                        }
  166         -
                        "MultiRegionConsistency" => {
  167         -
                            builder = builder.set_multi_region_consistency(
  168         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  169         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::MultiRegionConsistency::from(u.as_ref())))
  170         -
                                    .transpose()?,
  171         -
                            );
  172         -
                        }
  173         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  174         -
                    },
  175         -
                    other => {
  176         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  177         -
                            "expected object key or end object, found: {other:?}"
  178         -
                        )))
  179         -
                    }
  180         -
                }
  181         -
            }
  182         -
            Ok(Some(builder.build()))
  183         -
        }
  184         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  185         -
            "expected start object or null",
  186         -
        )),
  187         -
    }
  188         -
}

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/protocol_serde/shape_table_in_use_exception.rs

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

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/protocol_serde/shape_table_name_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_table_name_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/dynamodb/src/protocol_serde/shape_table_not_found_exception.rs

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

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/protocol_serde/shape_table_warm_throughput_description.rs

@@ -1,0 +54,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_table_warm_throughput_description<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::TableWarmThroughputDescription>, ::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::TableWarmThroughputDescriptionBuilder::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         -
                        "ReadUnitsPerSecond" => {
   19         -
                            builder = builder.set_read_units_per_second(
   20         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   21         -
                                    .map(i64::try_from)
   22         -
                                    .transpose()?,
   23         -
                            );
   24         -
                        }
   25         -
                        "WriteUnitsPerSecond" => {
   26         -
                            builder = builder.set_write_units_per_second(
   27         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   28         -
                                    .map(i64::try_from)
   29         -
                                    .transpose()?,
   30         -
                            );
   31         -
                        }
   32         -
                        "Status" => {
   33         -
                            builder = builder.set_status(
   34         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   35         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::TableStatus::from(u.as_ref())))
   36         -
                                    .transpose()?,
   37         -
                            );
   38         -
                        }
   39         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   40         -
                    },
   41         -
                    other => {
   42         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   43         -
                            "expected object key or end object, found: {other:?}"
   44         -
                        )))
   45         -
                    }
   46         -
                }
   47         -
            }
   48         -
            Ok(Some(builder.build()))
   49         -
        }
   50         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   51         -
            "expected start object or null",
   52         -
        )),
   53         -
    }
   54         -
}