AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045

Files changed:

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

@@ -1,0 +19,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_list_exports_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::list_exports::ListExportsInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.table_arn {
    7         -
        object.key("TableArn").string(var_1.as_str());
    8         -
    }
    9         -
    if let Some(var_2) = &input.max_results {
   10         -
        object.key("MaxResults").number(
   11         -
            #[allow(clippy::useless_conversion)]
   12         -
            ::aws_smithy_types::Number::NegInt((*var_2).into()),
   13         -
        );
   14         -
    }
   15         -
    if let Some(var_3) = &input.next_token {
   16         -
        object.key("NextToken").string(var_3.as_str());
   17         -
    }
   18         -
    Ok(())
   19         -
}

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

@@ -1,0 +119,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_list_global_tables_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<crate::operation::list_global_tables::ListGlobalTablesOutput, crate::operation::list_global_tables::ListGlobalTablesError> {
    8         -
    #[allow(unused_mut)]
    9         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   10         -
        .map_err(crate::operation::list_global_tables::ListGlobalTablesError::unhandled)?;
   11         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   12         -
    let generic = generic_builder.build();
   13         -
    let error_code = match generic.code() {
   14         -
        Some(code) => code,
   15         -
        None => return Err(crate::operation::list_global_tables::ListGlobalTablesError::unhandled(generic)),
   16         -
    };
   17         -
   18         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   19         -
    Err(match error_code {
   20         -
        "InternalServerError" => crate::operation::list_global_tables::ListGlobalTablesError::InternalServerError({
   21         -
            #[allow(unused_mut)]
   22         -
            let mut tmp = {
   23         -
                #[allow(unused_mut)]
   24         -
                let mut output = crate::types::error::builders::InternalServerErrorBuilder::default();
   25         -
                output = crate::protocol_serde::shape_internal_server_error::de_internal_server_error_json_err(_response_body, output)
   26         -
                    .map_err(crate::operation::list_global_tables::ListGlobalTablesError::unhandled)?;
   27         -
                let output = output.meta(generic);
   28         -
                output.build()
   29         -
            };
   30         -
            if tmp.message.is_none() {
   31         -
                tmp.message = _error_message;
   32         -
            }
   33         -
            tmp
   34         -
        }),
   35         -
        "InvalidEndpointException" => crate::operation::list_global_tables::ListGlobalTablesError::InvalidEndpointException({
   36         -
            #[allow(unused_mut)]
   37         -
            let mut tmp = {
   38         -
                #[allow(unused_mut)]
   39         -
                let mut output = crate::types::error::builders::InvalidEndpointExceptionBuilder::default();
   40         -
                output = crate::protocol_serde::shape_invalid_endpoint_exception::de_invalid_endpoint_exception_json_err(_response_body, output)
   41         -
                    .map_err(crate::operation::list_global_tables::ListGlobalTablesError::unhandled)?;
   42         -
                let output = output.meta(generic);
   43         -
                output.build()
   44         -
            };
   45         -
            if tmp.message.is_none() {
   46         -
                tmp.message = _error_message;
   47         -
            }
   48         -
            tmp
   49         -
        }),
   50         -
        _ => crate::operation::list_global_tables::ListGlobalTablesError::generic(generic),
   51         -
    })
   52         -
}
   53         -
   54         -
#[allow(clippy::unnecessary_wraps)]
   55         -
pub fn de_list_global_tables_http_response(
   56         -
    _response_status: u16,
   57         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   58         -
    _response_body: &[u8],
   59         -
) -> std::result::Result<crate::operation::list_global_tables::ListGlobalTablesOutput, crate::operation::list_global_tables::ListGlobalTablesError> {
   60         -
    Ok({
   61         -
        #[allow(unused_mut)]
   62         -
        let mut output = crate::operation::list_global_tables::builders::ListGlobalTablesOutputBuilder::default();
   63         -
        output = crate::protocol_serde::shape_list_global_tables::de_list_global_tables(_response_body, output)
   64         -
            .map_err(crate::operation::list_global_tables::ListGlobalTablesError::unhandled)?;
   65         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   66         -
        output.build()
   67         -
    })
   68         -
}
   69         -
   70         -
pub fn ser_list_global_tables_input(
   71         -
    input: &crate::operation::list_global_tables::ListGlobalTablesInput,
   72         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   73         -
    let mut out = String::new();
   74         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
   75         -
    crate::protocol_serde::shape_list_global_tables_input::ser_list_global_tables_input_input(&mut object, input)?;
   76         -
    object.finish();
   77         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
   78         -
}
   79         -
   80         -
pub(crate) fn de_list_global_tables(
   81         -
    _value: &[u8],
   82         -
    mut builder: crate::operation::list_global_tables::builders::ListGlobalTablesOutputBuilder,
   83         -
) -> ::std::result::Result<
   84         -
    crate::operation::list_global_tables::builders::ListGlobalTablesOutputBuilder,
   85         -
    ::aws_smithy_json::deserialize::error::DeserializeError,
   86         -
> {
   87         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
   88         -
    let tokens = &mut tokens_owned;
   89         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
   90         -
    loop {
   91         -
        match tokens.next().transpose()? {
   92         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   93         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   94         -
                "GlobalTables" => {
   95         -
                    builder = builder.set_global_tables(crate::protocol_serde::shape_global_table_list::de_global_table_list(tokens, _value)?);
   96         -
                }
   97         -
                "LastEvaluatedGlobalTableName" => {
   98         -
                    builder = builder.set_last_evaluated_global_table_name(
   99         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  100         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  101         -
                            .transpose()?,
  102         -
                    );
  103         -
                }
  104         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  105         -
            },
  106         -
            other => {
  107         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  108         -
                    "expected object key or end object, found: {other:?}"
  109         -
                )))
  110         -
            }
  111         -
        }
  112         -
    }
  113         -
    if tokens.next().is_some() {
  114         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  115         -
            "found more JSON tokens after completing parsing",
  116         -
        ));
  117         -
    }
  118         -
    Ok(builder)
  119         -
}

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

@@ -1,0 +19,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_list_global_tables_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::list_global_tables::ListGlobalTablesInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.exclusive_start_global_table_name {
    7         -
        object.key("ExclusiveStartGlobalTableName").string(var_1.as_str());
    8         -
    }
    9         -
    if let Some(var_2) = &input.limit {
   10         -
        object.key("Limit").number(
   11         -
            #[allow(clippy::useless_conversion)]
   12         -
            ::aws_smithy_types::Number::NegInt((*var_2).into()),
   13         -
        );
   14         -
    }
   15         -
    if let Some(var_3) = &input.region_name {
   16         -
        object.key("RegionName").string(var_3.as_str());
   17         -
    }
   18         -
    Ok(())
   19         -
}

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

@@ -1,0 +103,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_list_imports_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<crate::operation::list_imports::ListImportsOutput, crate::operation::list_imports::ListImportsError> {
    8         -
    #[allow(unused_mut)]
    9         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   10         -
        .map_err(crate::operation::list_imports::ListImportsError::unhandled)?;
   11         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   12         -
    let generic = generic_builder.build();
   13         -
    let error_code = match generic.code() {
   14         -
        Some(code) => code,
   15         -
        None => return Err(crate::operation::list_imports::ListImportsError::unhandled(generic)),
   16         -
    };
   17         -
   18         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   19         -
    Err(match error_code {
   20         -
        "LimitExceededException" => crate::operation::list_imports::ListImportsError::LimitExceededException({
   21         -
            #[allow(unused_mut)]
   22         -
            let mut tmp = {
   23         -
                #[allow(unused_mut)]
   24         -
                let mut output = crate::types::error::builders::LimitExceededExceptionBuilder::default();
   25         -
                output = crate::protocol_serde::shape_limit_exceeded_exception::de_limit_exceeded_exception_json_err(_response_body, output)
   26         -
                    .map_err(crate::operation::list_imports::ListImportsError::unhandled)?;
   27         -
                let output = output.meta(generic);
   28         -
                output.build()
   29         -
            };
   30         -
            if tmp.message.is_none() {
   31         -
                tmp.message = _error_message;
   32         -
            }
   33         -
            tmp
   34         -
        }),
   35         -
        _ => crate::operation::list_imports::ListImportsError::generic(generic),
   36         -
    })
   37         -
}
   38         -
   39         -
#[allow(clippy::unnecessary_wraps)]
   40         -
pub fn de_list_imports_http_response(
   41         -
    _response_status: u16,
   42         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   43         -
    _response_body: &[u8],
   44         -
) -> std::result::Result<crate::operation::list_imports::ListImportsOutput, crate::operation::list_imports::ListImportsError> {
   45         -
    Ok({
   46         -
        #[allow(unused_mut)]
   47         -
        let mut output = crate::operation::list_imports::builders::ListImportsOutputBuilder::default();
   48         -
        output = crate::protocol_serde::shape_list_imports::de_list_imports(_response_body, output)
   49         -
            .map_err(crate::operation::list_imports::ListImportsError::unhandled)?;
   50         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   51         -
        output.build()
   52         -
    })
   53         -
}
   54         -
   55         -
pub fn ser_list_imports_input(
   56         -
    input: &crate::operation::list_imports::ListImportsInput,
   57         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   58         -
    let mut out = String::new();
   59         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
   60         -
    crate::protocol_serde::shape_list_imports_input::ser_list_imports_input_input(&mut object, input)?;
   61         -
    object.finish();
   62         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
   63         -
}
   64         -
   65         -
pub(crate) fn de_list_imports(
   66         -
    _value: &[u8],
   67         -
    mut builder: crate::operation::list_imports::builders::ListImportsOutputBuilder,
   68         -
) -> ::std::result::Result<crate::operation::list_imports::builders::ListImportsOutputBuilder, ::aws_smithy_json::deserialize::error::DeserializeError>
   69         -
{
   70         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
   71         -
    let tokens = &mut tokens_owned;
   72         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
   73         -
    loop {
   74         -
        match tokens.next().transpose()? {
   75         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   76         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   77         -
                "ImportSummaryList" => {
   78         -
                    builder =
   79         -
                        builder.set_import_summary_list(crate::protocol_serde::shape_import_summary_list::de_import_summary_list(tokens, _value)?);
   80         -
                }
   81         -
                "NextToken" => {
   82         -
                    builder = builder.set_next_token(
   83         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   84         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   85         -
                            .transpose()?,
   86         -
                    );
   87         -
                }
   88         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   89         -
            },
   90         -
            other => {
   91         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   92         -
                    "expected object key or end object, found: {other:?}"
   93         -
                )))
   94         -
            }
   95         -
        }
   96         -
    }
   97         -
    if tokens.next().is_some() {
   98         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   99         -
            "found more JSON tokens after completing parsing",
  100         -
        ));
  101         -
    }
  102         -
    Ok(builder)
  103         -
}

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

@@ -1,0 +19,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_list_imports_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::list_imports::ListImportsInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.table_arn {
    7         -
        object.key("TableArn").string(var_1.as_str());
    8         -
    }
    9         -
    if let Some(var_2) = &input.page_size {
   10         -
        object.key("PageSize").number(
   11         -
            #[allow(clippy::useless_conversion)]
   12         -
            ::aws_smithy_types::Number::NegInt((*var_2).into()),
   13         -
        );
   14         -
    }
   15         -
    if let Some(var_3) = &input.next_token {
   16         -
        object.key("NextToken").string(var_3.as_str());
   17         -
    }
   18         -
    Ok(())
   19         -
}

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

@@ -1,0 +117,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_list_tables_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<crate::operation::list_tables::ListTablesOutput, crate::operation::list_tables::ListTablesError> {
    8         -
    #[allow(unused_mut)]
    9         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   10         -
        .map_err(crate::operation::list_tables::ListTablesError::unhandled)?;
   11         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   12         -
    let generic = generic_builder.build();
   13         -
    let error_code = match generic.code() {
   14         -
        Some(code) => code,
   15         -
        None => return Err(crate::operation::list_tables::ListTablesError::unhandled(generic)),
   16         -
    };
   17         -
   18         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   19         -
    Err(match error_code {
   20         -
        "InternalServerError" => crate::operation::list_tables::ListTablesError::InternalServerError({
   21         -
            #[allow(unused_mut)]
   22         -
            let mut tmp = {
   23         -
                #[allow(unused_mut)]
   24         -
                let mut output = crate::types::error::builders::InternalServerErrorBuilder::default();
   25         -
                output = crate::protocol_serde::shape_internal_server_error::de_internal_server_error_json_err(_response_body, output)
   26         -
                    .map_err(crate::operation::list_tables::ListTablesError::unhandled)?;
   27         -
                let output = output.meta(generic);
   28         -
                output.build()
   29         -
            };
   30         -
            if tmp.message.is_none() {
   31         -
                tmp.message = _error_message;
   32         -
            }
   33         -
            tmp
   34         -
        }),
   35         -
        "InvalidEndpointException" => crate::operation::list_tables::ListTablesError::InvalidEndpointException({
   36         -
            #[allow(unused_mut)]
   37         -
            let mut tmp = {
   38         -
                #[allow(unused_mut)]
   39         -
                let mut output = crate::types::error::builders::InvalidEndpointExceptionBuilder::default();
   40         -
                output = crate::protocol_serde::shape_invalid_endpoint_exception::de_invalid_endpoint_exception_json_err(_response_body, output)
   41         -
                    .map_err(crate::operation::list_tables::ListTablesError::unhandled)?;
   42         -
                let output = output.meta(generic);
   43         -
                output.build()
   44         -
            };
   45         -
            if tmp.message.is_none() {
   46         -
                tmp.message = _error_message;
   47         -
            }
   48         -
            tmp
   49         -
        }),
   50         -
        _ => crate::operation::list_tables::ListTablesError::generic(generic),
   51         -
    })
   52         -
}
   53         -
   54         -
#[allow(clippy::unnecessary_wraps)]
   55         -
pub fn de_list_tables_http_response(
   56         -
    _response_status: u16,
   57         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   58         -
    _response_body: &[u8],
   59         -
) -> std::result::Result<crate::operation::list_tables::ListTablesOutput, crate::operation::list_tables::ListTablesError> {
   60         -
    Ok({
   61         -
        #[allow(unused_mut)]
   62         -
        let mut output = crate::operation::list_tables::builders::ListTablesOutputBuilder::default();
   63         -
        output = crate::protocol_serde::shape_list_tables::de_list_tables(_response_body, output)
   64         -
            .map_err(crate::operation::list_tables::ListTablesError::unhandled)?;
   65         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   66         -
        output.build()
   67         -
    })
   68         -
}
   69         -
   70         -
pub fn ser_list_tables_input(
   71         -
    input: &crate::operation::list_tables::ListTablesInput,
   72         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   73         -
    let mut out = String::new();
   74         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
   75         -
    crate::protocol_serde::shape_list_tables_input::ser_list_tables_input_input(&mut object, input)?;
   76         -
    object.finish();
   77         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
   78         -
}
   79         -
   80         -
pub(crate) fn de_list_tables(
   81         -
    _value: &[u8],
   82         -
    mut builder: crate::operation::list_tables::builders::ListTablesOutputBuilder,
   83         -
) -> ::std::result::Result<crate::operation::list_tables::builders::ListTablesOutputBuilder, ::aws_smithy_json::deserialize::error::DeserializeError>
   84         -
{
   85         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
   86         -
    let tokens = &mut tokens_owned;
   87         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
   88         -
    loop {
   89         -
        match tokens.next().transpose()? {
   90         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   91         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   92         -
                "TableNames" => {
   93         -
                    builder = builder.set_table_names(crate::protocol_serde::shape_table_name_list::de_table_name_list(tokens, _value)?);
   94         -
                }
   95         -
                "LastEvaluatedTableName" => {
   96         -
                    builder = builder.set_last_evaluated_table_name(
   97         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   98         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   99         -
                            .transpose()?,
  100         -
                    );
  101         -
                }
  102         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  103         -
            },
  104         -
            other => {
  105         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  106         -
                    "expected object key or end object, found: {other:?}"
  107         -
                )))
  108         -
            }
  109         -
        }
  110         -
    }
  111         -
    if tokens.next().is_some() {
  112         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  113         -
            "found more JSON tokens after completing parsing",
  114         -
        ));
  115         -
    }
  116         -
    Ok(builder)
  117         -
}

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

@@ -1,0 +16,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_list_tables_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::list_tables::ListTablesInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.exclusive_start_table_name {
    7         -
        object.key("ExclusiveStartTableName").string(var_1.as_str());
    8         -
    }
    9         -
    if let Some(var_2) = &input.limit {
   10         -
        object.key("Limit").number(
   11         -
            #[allow(clippy::useless_conversion)]
   12         -
            ::aws_smithy_types::Number::NegInt((*var_2).into()),
   13         -
        );
   14         -
    }
   15         -
    Ok(())
   16         -
}

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

@@ -1,0 +140,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_list_tags_of_resource_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::list_tags_of_resource::ListTagsOfResourceOutput,
    9         -
    crate::operation::list_tags_of_resource::ListTagsOfResourceError,
   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::list_tags_of_resource::ListTagsOfResourceError::unhandled)?;
   14         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   15         -
    let generic = generic_builder.build();
   16         -
    let error_code = match generic.code() {
   17         -
        Some(code) => code,
   18         -
        None => return Err(crate::operation::list_tags_of_resource::ListTagsOfResourceError::unhandled(generic)),
   19         -
    };
   20         -
   21         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   22         -
    Err(match error_code {
   23         -
        "InternalServerError" => crate::operation::list_tags_of_resource::ListTagsOfResourceError::InternalServerError({
   24         -
            #[allow(unused_mut)]
   25         -
            let mut tmp = {
   26         -
                #[allow(unused_mut)]
   27         -
                let mut output = crate::types::error::builders::InternalServerErrorBuilder::default();
   28         -
                output = crate::protocol_serde::shape_internal_server_error::de_internal_server_error_json_err(_response_body, output)
   29         -
                    .map_err(crate::operation::list_tags_of_resource::ListTagsOfResourceError::unhandled)?;
   30         -
                let output = output.meta(generic);
   31         -
                output.build()
   32         -
            };
   33         -
            if tmp.message.is_none() {
   34         -
                tmp.message = _error_message;
   35         -
            }
   36         -
            tmp
   37         -
        }),
   38         -
        "InvalidEndpointException" => crate::operation::list_tags_of_resource::ListTagsOfResourceError::InvalidEndpointException({
   39         -
            #[allow(unused_mut)]
   40         -
            let mut tmp = {
   41         -
                #[allow(unused_mut)]
   42         -
                let mut output = crate::types::error::builders::InvalidEndpointExceptionBuilder::default();
   43         -
                output = crate::protocol_serde::shape_invalid_endpoint_exception::de_invalid_endpoint_exception_json_err(_response_body, output)
   44         -
                    .map_err(crate::operation::list_tags_of_resource::ListTagsOfResourceError::unhandled)?;
   45         -
                let output = output.meta(generic);
   46         -
                output.build()
   47         -
            };
   48         -
            if tmp.message.is_none() {
   49         -
                tmp.message = _error_message;
   50         -
            }
   51         -
            tmp
   52         -
        }),
   53         -
        "ResourceNotFoundException" => crate::operation::list_tags_of_resource::ListTagsOfResourceError::ResourceNotFoundException({
   54         -
            #[allow(unused_mut)]
   55         -
            let mut tmp = {
   56         -
                #[allow(unused_mut)]
   57         -
                let mut output = crate::types::error::builders::ResourceNotFoundExceptionBuilder::default();
   58         -
                output = crate::protocol_serde::shape_resource_not_found_exception::de_resource_not_found_exception_json_err(_response_body, output)
   59         -
                    .map_err(crate::operation::list_tags_of_resource::ListTagsOfResourceError::unhandled)?;
   60         -
                let output = output.meta(generic);
   61         -
                output.build()
   62         -
            };
   63         -
            if tmp.message.is_none() {
   64         -
                tmp.message = _error_message;
   65         -
            }
   66         -
            tmp
   67         -
        }),
   68         -
        _ => crate::operation::list_tags_of_resource::ListTagsOfResourceError::generic(generic),
   69         -
    })
   70         -
}
   71         -
   72         -
#[allow(clippy::unnecessary_wraps)]
   73         -
pub fn de_list_tags_of_resource_http_response(
   74         -
    _response_status: u16,
   75         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   76         -
    _response_body: &[u8],
   77         -
) -> std::result::Result<
   78         -
    crate::operation::list_tags_of_resource::ListTagsOfResourceOutput,
   79         -
    crate::operation::list_tags_of_resource::ListTagsOfResourceError,
   80         -
> {
   81         -
    Ok({
   82         -
        #[allow(unused_mut)]
   83         -
        let mut output = crate::operation::list_tags_of_resource::builders::ListTagsOfResourceOutputBuilder::default();
   84         -
        output = crate::protocol_serde::shape_list_tags_of_resource::de_list_tags_of_resource(_response_body, output)
   85         -
            .map_err(crate::operation::list_tags_of_resource::ListTagsOfResourceError::unhandled)?;
   86         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   87         -
        output.build()
   88         -
    })
   89         -
}
   90         -
   91         -
pub fn ser_list_tags_of_resource_input(
   92         -
    input: &crate::operation::list_tags_of_resource::ListTagsOfResourceInput,
   93         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   94         -
    let mut out = String::new();
   95         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
   96         -
    crate::protocol_serde::shape_list_tags_of_resource_input::ser_list_tags_of_resource_input_input(&mut object, input)?;
   97         -
    object.finish();
   98         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
   99         -
}
  100         -
  101         -
pub(crate) fn de_list_tags_of_resource(
  102         -
    _value: &[u8],
  103         -
    mut builder: crate::operation::list_tags_of_resource::builders::ListTagsOfResourceOutputBuilder,
  104         -
) -> ::std::result::Result<
  105         -
    crate::operation::list_tags_of_resource::builders::ListTagsOfResourceOutputBuilder,
  106         -
    ::aws_smithy_json::deserialize::error::DeserializeError,
  107         -
> {
  108         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
  109         -
    let tokens = &mut tokens_owned;
  110         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
  111         -
    loop {
  112         -
        match tokens.next().transpose()? {
  113         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
  114         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
  115         -
                "Tags" => {
  116         -
                    builder = builder.set_tags(crate::protocol_serde::shape_tag_list::de_tag_list(tokens, _value)?);
  117         -
                }
  118         -
                "NextToken" => {
  119         -
                    builder = builder.set_next_token(
  120         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  121         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  122         -
                            .transpose()?,
  123         -
                    );
  124         -
                }
  125         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  126         -
            },
  127         -
            other => {
  128         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  129         -
                    "expected object key or end object, found: {other:?}"
  130         -
                )))
  131         -
            }
  132         -
        }
  133         -
    }
  134         -
    if tokens.next().is_some() {
  135         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  136         -
            "found more JSON tokens after completing parsing",
  137         -
        ));
  138         -
    }
  139         -
    Ok(builder)
  140         -
}

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

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

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

@@ -1,0 +28,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_local_secondary_index(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::LocalSecondaryIndex,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    {
    7         -
        object.key("IndexName").string(input.index_name.as_str());
    8         -
    }
    9         -
    {
   10         -
        let mut array_1 = object.key("KeySchema").start_array();
   11         -
        for item_2 in &input.key_schema {
   12         -
            {
   13         -
                #[allow(unused_mut)]
   14         -
                let mut object_3 = array_1.value().start_object();
   15         -
                crate::protocol_serde::shape_key_schema_element::ser_key_schema_element(&mut object_3, item_2)?;
   16         -
                object_3.finish();
   17         -
            }
   18         -
        }
   19         -
        array_1.finish();
   20         -
    }
   21         -
    if let Some(var_4) = &input.projection {
   22         -
        #[allow(unused_mut)]
   23         -
        let mut object_5 = object.key("Projection").start_object();
   24         -
        crate::protocol_serde::shape_projection::ser_projection(&mut object_5, var_4)?;
   25         -
        object_5.finish();
   26         -
    }
   27         -
    Ok(())
   28         -
}

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

@@ -1,0 +67,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_local_secondary_index_description<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::LocalSecondaryIndexDescription>, ::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::LocalSecondaryIndexDescriptionBuilder::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         -
                        "IndexName" => {
   19         -
                            builder = builder.set_index_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         -
                        "KeySchema" => {
   26         -
                            builder = builder.set_key_schema(crate::protocol_serde::shape_key_schema::de_key_schema(tokens, _value)?);
   27         -
                        }
   28         -
                        "Projection" => {
   29         -
                            builder = builder.set_projection(crate::protocol_serde::shape_projection::de_projection(tokens, _value)?);
   30         -
                        }
   31         -
                        "IndexSizeBytes" => {
   32         -
                            builder = builder.set_index_size_bytes(
   33         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   34         -
                                    .map(i64::try_from)
   35         -
                                    .transpose()?,
   36         -
                            );
   37         -
                        }
   38         -
                        "ItemCount" => {
   39         -
                            builder = builder.set_item_count(
   40         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   41         -
                                    .map(i64::try_from)
   42         -
                                    .transpose()?,
   43         -
                            );
   44         -
                        }
   45         -
                        "IndexArn" => {
   46         -
                            builder = builder.set_index_arn(
   47         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   48         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   49         -
                                    .transpose()?,
   50         -
                            );
   51         -
                        }
   52         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   53         -
                    },
   54         -
                    other => {
   55         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   56         -
                            "expected object key or end object, found: {other:?}"
   57         -
                        )))
   58         -
                    }
   59         -
                }
   60         -
            }
   61         -
            Ok(Some(builder.build()))
   62         -
        }
   63         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   64         -
            "expected start object or null",
   65         -
        )),
   66         -
    }
   67         -
}

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

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

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

@@ -1,0 +46,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_local_secondary_index_info<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::LocalSecondaryIndexInfo>, ::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::LocalSecondaryIndexInfoBuilder::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         -
                        "IndexName" => {
   19         -
                            builder = builder.set_index_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         -
                        "KeySchema" => {
   26         -
                            builder = builder.set_key_schema(crate::protocol_serde::shape_key_schema::de_key_schema(tokens, _value)?);
   27         -
                        }
   28         -
                        "Projection" => {
   29         -
                            builder = builder.set_projection(crate::protocol_serde::shape_projection::de_projection(tokens, _value)?);
   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_local_secondary_indexes.rs

@@ -1,0 +37,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_local_secondary_indexes<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::LocalSecondaryIndexInfo>>, ::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_local_secondary_index_info::de_local_secondary_index_info(tokens, _value)?;
   21         -
                        if let Some(value) = value {
   22         -
                            items.push(value);
   23         -
                        } else {
   24         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   25         -
                                "dense list cannot contain null values",
   26         -
                            ));
   27         -
                        }
   28         -
                    }
   29         -
                }
   30         -
            }
   31         -
            Ok(Some(items))
   32         -
        }
   33         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   34         -
            "expected start array or null",
   35         -
        )),
   36         -
    }
   37         -
}

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

@@ -1,0 +46,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_map_attribute_value<'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::AttributeValue>>,
    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_attribute_value::de_attribute_value(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_non_key_attribute_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_non_key_attribute_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         -
}