Client Test

Client Test

rev. 32b1b3c3761061baed26023be3219639e42d7d12

Files changed:

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_replica_global_secondary_index_description_list.rs

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

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_replica_global_secondary_index_settings_description.rs

@@ -1,0 +78,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_replica_global_secondary_index_settings_description<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<
    6         -
    Option<crate::types::ReplicaGlobalSecondaryIndexSettingsDescription>,
    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         -
            #[allow(unused_mut)]
   16         -
            let mut builder = crate::types::builders::ReplicaGlobalSecondaryIndexSettingsDescriptionBuilder::default();
   17         -
            loop {
   18         -
                match tokens.next().transpose()? {
   19         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   20         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   21         -
                        "IndexName" => {
   22         -
                            builder = builder.set_index_name(
   23         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   24         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   25         -
                                    .transpose()?,
   26         -
                            );
   27         -
                        }
   28         -
                        "IndexStatus" => {
   29         -
                            builder = builder.set_index_status(
   30         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   31         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::IndexStatus::from(u.as_ref())))
   32         -
                                    .transpose()?,
   33         -
                            );
   34         -
                        }
   35         -
                        "ProvisionedReadCapacityUnits" => {
   36         -
                            builder = builder.set_provisioned_read_capacity_units(
   37         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   38         -
                                    .map(i64::try_from)
   39         -
                                    .transpose()?,
   40         -
                            );
   41         -
                        }
   42         -
                        "ProvisionedReadCapacityAutoScalingSettings" => {
   43         -
                            builder = builder.set_provisioned_read_capacity_auto_scaling_settings(
   44         -
                                crate::protocol_serde::shape_auto_scaling_settings_description::de_auto_scaling_settings_description(tokens, _value)?,
   45         -
                            );
   46         -
                        }
   47         -
                        "ProvisionedWriteCapacityUnits" => {
   48         -
                            builder = builder.set_provisioned_write_capacity_units(
   49         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   50         -
                                    .map(i64::try_from)
   51         -
                                    .transpose()?,
   52         -
                            );
   53         -
                        }
   54         -
                        "ProvisionedWriteCapacityAutoScalingSettings" => {
   55         -
                            builder = builder.set_provisioned_write_capacity_auto_scaling_settings(
   56         -
                                crate::protocol_serde::shape_auto_scaling_settings_description::de_auto_scaling_settings_description(tokens, _value)?,
   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(
   69         -
                crate::serde_util::replica_global_secondary_index_settings_description_correct_errors(builder)
   70         -
                    .build()
   71         -
                    .map_err(|err| ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err))?,
   72         -
            ))
   73         -
        }
   74         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   75         -
            "expected start object or null",
   76         -
        )),
   77         -
    }
   78         -
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_replica_global_secondary_index_settings_description_list.rs

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

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_replica_global_secondary_index_settings_update.rs

@@ -1,0 +22,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_replica_global_secondary_index_settings_update(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::ReplicaGlobalSecondaryIndexSettingsUpdate,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    {
    7         -
        object.key("IndexName").string(input.index_name.as_str());
    8         -
    }
    9         -
    if let Some(var_1) = &input.provisioned_read_capacity_units {
   10         -
        object.key("ProvisionedReadCapacityUnits").number(
   11         -
            #[allow(clippy::useless_conversion)]
   12         -
            ::aws_smithy_types::Number::NegInt((*var_1).into()),
   13         -
        );
   14         -
    }
   15         -
    if let Some(var_2) = &input.provisioned_read_capacity_auto_scaling_settings_update {
   16         -
        #[allow(unused_mut)]
   17         -
        let mut object_3 = object.key("ProvisionedReadCapacityAutoScalingSettingsUpdate").start_object();
   18         -
        crate::protocol_serde::shape_auto_scaling_settings_update::ser_auto_scaling_settings_update(&mut object_3, var_2)?;
   19         -
        object_3.finish();
   20         -
    }
   21         -
    Ok(())
   22         -
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_replica_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_replica_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::Replica>>, ::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_replica::de_replica(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/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_replica_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_replica_not_found_exception_json_err(
    3         -
    _value: &[u8],
    4         -
    mut builder: crate::types::error::builders::ReplicaNotFoundErrorBuilder,
    5         -
) -> ::std::result::Result<crate::types::error::builders::ReplicaNotFoundErrorBuilder, ::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/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_replica_settings_description.rs

@@ -1,0 +85,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_replica_settings_description<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ReplicaSettingsDescription>, ::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::ReplicaSettingsDescriptionBuilder::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         -
                        "RegionName" => {
   19         -
                            builder = builder.set_region_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         -
                        "ReplicaStatus" => {
   26         -
                            builder = builder.set_replica_status(
   27         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   28         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::ReplicaStatus::from(u.as_ref())))
   29         -
                                    .transpose()?,
   30         -
                            );
   31         -
                        }
   32         -
                        "ReplicaBillingModeSummary" => {
   33         -
                            builder = builder.set_replica_billing_mode_summary(
   34         -
                                crate::protocol_serde::shape_billing_mode_summary::de_billing_mode_summary(tokens, _value)?,
   35         -
                            );
   36         -
                        }
   37         -
                        "ReplicaProvisionedReadCapacityUnits" => {
   38         -
                            builder = builder.set_replica_provisioned_read_capacity_units(
   39         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   40         -
                                    .map(i64::try_from)
   41         -
                                    .transpose()?,
   42         -
                            );
   43         -
                        }
   44         -
                        "ReplicaProvisionedReadCapacityAutoScalingSettings" => {
   45         -
                            builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
   46         -
                                crate::protocol_serde::shape_auto_scaling_settings_description::de_auto_scaling_settings_description(tokens, _value)?,
   47         -
                            );
   48         -
                        }
   49         -
                        "ReplicaProvisionedWriteCapacityUnits" => {
   50         -
                            builder = builder.set_replica_provisioned_write_capacity_units(
   51         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   52         -
                                    .map(i64::try_from)
   53         -
                                    .transpose()?,
   54         -
                            );
   55         -
                        }
   56         -
                        "ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
   57         -
                            builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
   58         -
                                crate::protocol_serde::shape_auto_scaling_settings_description::de_auto_scaling_settings_description(tokens, _value)?,
   59         -
                            );
   60         -
                        }
   61         -
                        "ReplicaGlobalSecondaryIndexSettings" => {
   62         -
                            builder = builder.set_replica_global_secondary_index_settings(
   63         -
                                    crate::protocol_serde::shape_replica_global_secondary_index_settings_description_list::de_replica_global_secondary_index_settings_description_list(tokens, _value)?
   64         -
                                );
   65         -
                        }
   66         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   67         -
                    },
   68         -
                    other => {
   69         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   70         -
                            "expected object key or end object, found: {other:?}"
   71         -
                        )))
   72         -
                    }
   73         -
                }
   74         -
            }
   75         -
            Ok(Some(
   76         -
                crate::serde_util::replica_settings_description_correct_errors(builder)
   77         -
                    .build()
   78         -
                    .map_err(|err| ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err))?,
   79         -
            ))
   80         -
        }
   81         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   82         -
            "expected start object or null",
   83         -
        )),
   84         -
    }
   85         -
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_replica_settings_description_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_replica_settings_description_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::ReplicaSettingsDescription>>, ::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_replica_settings_description::de_replica_settings_description(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/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_replica_settings_update.rs

@@ -1,0 +37,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_replica_settings_update(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::ReplicaSettingsUpdate,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    {
    7         -
        object.key("RegionName").string(input.region_name.as_str());
    8         -
    }
    9         -
    if let Some(var_1) = &input.replica_provisioned_read_capacity_units {
   10         -
        object.key("ReplicaProvisionedReadCapacityUnits").number(
   11         -
            #[allow(clippy::useless_conversion)]
   12         -
            ::aws_smithy_types::Number::NegInt((*var_1).into()),
   13         -
        );
   14         -
    }
   15         -
    if let Some(var_2) = &input.replica_provisioned_read_capacity_auto_scaling_settings_update {
   16         -
        #[allow(unused_mut)]
   17         -
        let mut object_3 = object.key("ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate").start_object();
   18         -
        crate::protocol_serde::shape_auto_scaling_settings_update::ser_auto_scaling_settings_update(&mut object_3, var_2)?;
   19         -
        object_3.finish();
   20         -
    }
   21         -
    if let Some(var_4) = &input.replica_global_secondary_index_settings_update {
   22         -
        let mut array_5 = object.key("ReplicaGlobalSecondaryIndexSettingsUpdate").start_array();
   23         -
        for item_6 in var_4 {
   24         -
            {
   25         -
                #[allow(unused_mut)]
   26         -
                let mut object_7 = array_5.value().start_object();
   27         -
                crate::protocol_serde::shape_replica_global_secondary_index_settings_update::ser_replica_global_secondary_index_settings_update(
   28         -
                    &mut object_7,
   29         -
                    item_6,
   30         -
                )?;
   31         -
                object_7.finish();
   32         -
            }
   33         -
        }
   34         -
        array_5.finish();
   35         -
    }
   36         -
    Ok(())
   37         -
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_replica_update.rs

@@ -1,0 +19,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_replica_update(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::ReplicaUpdate,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.create {
    7         -
        #[allow(unused_mut)]
    8         -
        let mut object_2 = object.key("Create").start_object();
    9         -
        crate::protocol_serde::shape_create_replica_action::ser_create_replica_action(&mut object_2, var_1)?;
   10         -
        object_2.finish();
   11         -
    }
   12         -
    if let Some(var_3) = &input.delete {
   13         -
        #[allow(unused_mut)]
   14         -
        let mut object_4 = object.key("Delete").start_object();
   15         -
        crate::protocol_serde::shape_delete_replica_action::ser_delete_replica_action(&mut object_4, var_3)?;
   16         -
        object_4.finish();
   17         -
    }
   18         -
    Ok(())
   19         -
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_replication_group_update.rs

@@ -1,0 +25,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_replication_group_update(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::ReplicationGroupUpdate,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.create {
    7         -
        #[allow(unused_mut)]
    8         -
        let mut object_2 = object.key("Create").start_object();
    9         -
        crate::protocol_serde::shape_create_replication_group_member_action::ser_create_replication_group_member_action(&mut object_2, var_1)?;
   10         -
        object_2.finish();
   11         -
    }
   12         -
    if let Some(var_3) = &input.update {
   13         -
        #[allow(unused_mut)]
   14         -
        let mut object_4 = object.key("Update").start_object();
   15         -
        crate::protocol_serde::shape_update_replication_group_member_action::ser_update_replication_group_member_action(&mut object_4, var_3)?;
   16         -
        object_4.finish();
   17         -
    }
   18         -
    if let Some(var_5) = &input.delete {
   19         -
        #[allow(unused_mut)]
   20         -
        let mut object_6 = object.key("Delete").start_object();
   21         -
        crate::protocol_serde::shape_delete_replication_group_member_action::ser_delete_replication_group_member_action(&mut object_6, var_5)?;
   22         -
        object_6.finish();
   23         -
    }
   24         -
    Ok(())
   25         -
}

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_request_limit_exceeded.rs

@@ -1,0 +35,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_request_limit_exceeded_json_err(
    3         -
    _value: &[u8],
    4         -
    mut builder: crate::types::error::builders::RequestLimitExceededBuilder,
    5         -
) -> ::std::result::Result<crate::types::error::builders::RequestLimitExceededBuilder, ::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/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_resource_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_resource_in_use_exception_json_err(
    3         -
    _value: &[u8],
    4         -
    mut builder: crate::types::error::builders::ResourceInUseErrorBuilder,
    5         -
) -> ::std::result::Result<crate::types::error::builders::ResourceInUseErrorBuilder, ::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/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_resource_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_resource_not_found_exception_json_err(
    3         -
    _value: &[u8],
    4         -
    mut builder: crate::types::error::builders::ResourceNotFoundErrorBuilder,
    5         -
) -> ::std::result::Result<crate::types::error::builders::ResourceNotFoundErrorBuilder, ::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/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_restore_summary.rs

@@ -1,0 +58,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_restore_summary<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::RestoreSummary>, ::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::RestoreSummaryBuilder::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         -
                        "SourceBackupArn" => {
   19         -
                            builder = builder.set_source_backup_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         -
                        "SourceTableArn" => {
   26         -
                            builder = builder.set_source_table_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         -
                        "RestoreDateTime" => {
   33         -
                            builder = builder.set_restore_date_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   34         -
                                tokens.next(),
   35         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   36         -
                            )?);
   37         -
                        }
   38         -
                        "RestoreInProgress" => {
   39         -
                            builder = builder.set_restore_in_progress(::aws_smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?);
   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::restore_summary_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/codegen-client-test/dynamo/rust-client-codegen/src/protocol_serde/shape_restore_table_from_backup.rs

@@ -1,0 +196,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_restore_table_from_backup_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::restore_table_from_backup::RestoreTableFromBackupOutput,
    9         -
    crate::operation::restore_table_from_backup::RestoreTableFromBackupError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13         -
        .map_err(crate::operation::restore_table_from_backup::RestoreTableFromBackupError::unhandled)?;
   14         -
    let generic = generic_builder.build();
   15         -
    let error_code = match generic.code() {
   16         -
        Some(code) => code,
   17         -
        None => {
   18         -
            return Err(crate::operation::restore_table_from_backup::RestoreTableFromBackupError::unhandled(
   19         -
                generic,
   20         -
            ))
   21         -
        }
   22         -
    };
   23         -
   24         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   25         -
    Err(match error_code {
   26         -
        "BackupInUseException" => crate::operation::restore_table_from_backup::RestoreTableFromBackupError::BackupInUseError({
   27         -
            #[allow(unused_mut)]
   28         -
            let mut tmp = {
   29         -
                #[allow(unused_mut)]
   30         -
                let mut output = crate::types::error::builders::BackupInUseErrorBuilder::default();
   31         -
                output = crate::protocol_serde::shape_backup_in_use_exception::de_backup_in_use_exception_json_err(_response_body, output)
   32         -
                    .map_err(crate::operation::restore_table_from_backup::RestoreTableFromBackupError::unhandled)?;
   33         -
                let output = output.meta(generic);
   34         -
                output.build()
   35         -
            };
   36         -
            if tmp.message.is_none() {
   37         -
                tmp.message = _error_message;
   38         -
            }
   39         -
            tmp
   40         -
        }),
   41         -
        "BackupNotFoundException" => crate::operation::restore_table_from_backup::RestoreTableFromBackupError::BackupNotFoundError({
   42         -
            #[allow(unused_mut)]
   43         -
            let mut tmp = {
   44         -
                #[allow(unused_mut)]
   45         -
                let mut output = crate::types::error::builders::BackupNotFoundErrorBuilder::default();
   46         -
                output = crate::protocol_serde::shape_backup_not_found_exception::de_backup_not_found_exception_json_err(_response_body, output)
   47         -
                    .map_err(crate::operation::restore_table_from_backup::RestoreTableFromBackupError::unhandled)?;
   48         -
                let output = output.meta(generic);
   49         -
                output.build()
   50         -
            };
   51         -
            if tmp.message.is_none() {
   52         -
                tmp.message = _error_message;
   53         -
            }
   54         -
            tmp
   55         -
        }),
   56         -
        "InternalServerError" => crate::operation::restore_table_from_backup::RestoreTableFromBackupError::InternalServerError({
   57         -
            #[allow(unused_mut)]
   58         -
            let mut tmp = {
   59         -
                #[allow(unused_mut)]
   60         -
                let mut output = crate::types::error::builders::InternalServerErrorBuilder::default();
   61         -
                output = crate::protocol_serde::shape_internal_server_error::de_internal_server_error_json_err(_response_body, output)
   62         -
                    .map_err(crate::operation::restore_table_from_backup::RestoreTableFromBackupError::unhandled)?;
   63         -
                let output = output.meta(generic);
   64         -
                output.build()
   65         -
            };
   66         -
            if tmp.message.is_none() {
   67         -
                tmp.message = _error_message;
   68         -
            }
   69         -
            tmp
   70         -
        }),
   71         -
        "InvalidEndpointException" => crate::operation::restore_table_from_backup::RestoreTableFromBackupError::InvalidEndpointError({
   72         -
            #[allow(unused_mut)]
   73         -
            let mut tmp = {
   74         -
                #[allow(unused_mut)]
   75         -
                let mut output = crate::types::error::builders::InvalidEndpointErrorBuilder::default();
   76         -
                output = crate::protocol_serde::shape_invalid_endpoint_exception::de_invalid_endpoint_exception_json_err(_response_body, output)
   77         -
                    .map_err(crate::operation::restore_table_from_backup::RestoreTableFromBackupError::unhandled)?;
   78         -
                let output = output.meta(generic);
   79         -
                output.build()
   80         -
            };
   81         -
            if tmp.message.is_none() {
   82         -
                tmp.message = _error_message;
   83         -
            }
   84         -
            tmp
   85         -
        }),
   86         -
        "LimitExceededException" => crate::operation::restore_table_from_backup::RestoreTableFromBackupError::LimitExceededError({
   87         -
            #[allow(unused_mut)]
   88         -
            let mut tmp = {
   89         -
                #[allow(unused_mut)]
   90         -
                let mut output = crate::types::error::builders::LimitExceededErrorBuilder::default();
   91         -
                output = crate::protocol_serde::shape_limit_exceeded_exception::de_limit_exceeded_exception_json_err(_response_body, output)
   92         -
                    .map_err(crate::operation::restore_table_from_backup::RestoreTableFromBackupError::unhandled)?;
   93         -
                let output = output.meta(generic);
   94         -
                output.build()
   95         -
            };
   96         -
            if tmp.message.is_none() {
   97         -
                tmp.message = _error_message;
   98         -
            }
   99         -
            tmp
  100         -
        }),
  101         -
        "TableAlreadyExistsException" => crate::operation::restore_table_from_backup::RestoreTableFromBackupError::TableAlreadyExistsError({
  102         -
            #[allow(unused_mut)]
  103         -
            let mut tmp = {
  104         -
                #[allow(unused_mut)]
  105         -
                let mut output = crate::types::error::builders::TableAlreadyExistsErrorBuilder::default();
  106         -
                output =
  107         -
                    crate::protocol_serde::shape_table_already_exists_exception::de_table_already_exists_exception_json_err(_response_body, output)
  108         -
                        .map_err(crate::operation::restore_table_from_backup::RestoreTableFromBackupError::unhandled)?;
  109         -
                let output = output.meta(generic);
  110         -
                output.build()
  111         -
            };
  112         -
            if tmp.message.is_none() {
  113         -
                tmp.message = _error_message;
  114         -
            }
  115         -
            tmp
  116         -
        }),
  117         -
        "TableInUseException" => crate::operation::restore_table_from_backup::RestoreTableFromBackupError::TableInUseError({
  118         -
            #[allow(unused_mut)]
  119         -
            let mut tmp = {
  120         -
                #[allow(unused_mut)]
  121         -
                let mut output = crate::types::error::builders::TableInUseErrorBuilder::default();
  122         -
                output = crate::protocol_serde::shape_table_in_use_exception::de_table_in_use_exception_json_err(_response_body, output)
  123         -
                    .map_err(crate::operation::restore_table_from_backup::RestoreTableFromBackupError::unhandled)?;
  124         -
                let output = output.meta(generic);
  125         -
                output.build()
  126         -
            };
  127         -
            if tmp.message.is_none() {
  128         -
                tmp.message = _error_message;
  129         -
            }
  130         -
            tmp
  131         -
        }),
  132         -
        _ => crate::operation::restore_table_from_backup::RestoreTableFromBackupError::generic(generic),
  133         -
    })
  134         -
}
  135         -
  136         -
#[allow(clippy::unnecessary_wraps)]
  137         -
pub fn de_restore_table_from_backup_http_response(
  138         -
    _response_status: u16,
  139         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
  140         -
    _response_body: &[u8],
  141         -
) -> std::result::Result<
  142         -
    crate::operation::restore_table_from_backup::RestoreTableFromBackupOutput,
  143         -
    crate::operation::restore_table_from_backup::RestoreTableFromBackupError,
  144         -
> {
  145         -
    Ok({
  146         -
        #[allow(unused_mut)]
  147         -
        let mut output = crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupOutputBuilder::default();
  148         -
        output = crate::protocol_serde::shape_restore_table_from_backup::de_restore_table_from_backup(_response_body, output)
  149         -
            .map_err(crate::operation::restore_table_from_backup::RestoreTableFromBackupError::unhandled)?;
  150         -
        output.build()
  151         -
    })
  152         -
}
  153         -
  154         -
pub fn ser_restore_table_from_backup_input(
  155         -
    input: &crate::operation::restore_table_from_backup::RestoreTableFromBackupInput,
  156         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
  157         -
    let mut out = String::new();
  158         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
  159         -
    crate::protocol_serde::shape_restore_table_from_backup_input::ser_restore_table_from_backup_input_input(&mut object, input)?;
  160         -
    object.finish();
  161         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
  162         -
}
  163         -
  164         -
pub(crate) fn de_restore_table_from_backup(
  165         -
    _value: &[u8],
  166         -
    mut builder: crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupOutputBuilder,
  167         -
) -> ::std::result::Result<
  168         -
    crate::operation::restore_table_from_backup::builders::RestoreTableFromBackupOutputBuilder,
  169         -
    ::aws_smithy_json::deserialize::error::DeserializeError,
  170         -
> {
  171         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
  172         -
    let tokens = &mut tokens_owned;
  173         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
  174         -
    loop {
  175         -
        match tokens.next().transpose()? {
  176         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
  177         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
  178         -
                "TableDescription" => {
  179         -
                    builder = builder.set_table_description(crate::protocol_serde::shape_table_description::de_table_description(tokens, _value)?);
  180         -
                }
  181         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  182         -
            },
  183         -
            other => {
  184         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  185         -
                    "expected object key or end object, found: {other:?}"
  186         -
                )))
  187         -
            }
  188         -
        }
  189         -
    }
  190         -
    if tokens.next().is_some() {
  191         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  192         -
            "found more JSON tokens after completing parsing",
  193         -
        ));
  194         -
    }
  195         -
    Ok(builder)
  196         -
}