AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/import_table.rs

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `ImportTable`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ImportTable;
    6      6   
impl ImportTable {
    7      7   
    /// Creates a new `ImportTable`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::import_table::ImportTableInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::import_table::ImportTableOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::import_table::ImportTableInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::import_table::ImportTableOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::import_table::ImportTableError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -122,126 +249,334 @@
  142    146   
                crate::operation::import_table::ImportTableError,
  143    147   
            >::new());
  144    148   
  145    149   
        ::std::borrow::Cow::Owned(rcb)
  146    150   
    }
  147    151   
}
  148    152   
  149    153   
#[derive(Debug)]
  150    154   
struct ImportTableResponseDeserializer;
  151    155   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ImportTableResponseDeserializer {
  152         -
    fn deserialize_nonstreaming(
         156  +
    fn deserialize_nonstreaming_with_config(
  153    157   
        &self,
  154    158   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         159  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  155    160   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  156    161   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  157         -
        let headers = response.headers();
  158         -
        let body = response.body().bytes().expect("body loaded");
  159    162   
        #[allow(unused_mut)]
  160    163   
        let mut force_error = false;
  161    164   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  162         -
        let parse_result = if !success && status != 200 || force_error {
  163         -
            crate::protocol_serde::shape_import_table::de_import_table_http_error(status, headers, body)
  164         -
        } else {
  165         -
            crate::protocol_serde::shape_import_table::de_import_table_http_response(status, headers, body)
         165  +
        if !success && status != 200 || force_error {
         166  +
            let headers = response.headers();
         167  +
            let body = response.body().bytes().expect("body loaded");
         168  +
            #[allow(unused_mut)]
         169  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         170  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         171  +
            })?;
         172  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         173  +
            let generic = generic_builder.build();
         174  +
            let error_code = match generic.code() {
         175  +
                ::std::option::Option::Some(code) => code,
         176  +
                ::std::option::Option::None => {
         177  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         178  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::import_table::ImportTableError::unhandled(generic)),
         179  +
                    ))
         180  +
                }
         181  +
            };
         182  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         183  +
            let protocol = _cfg
         184  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         185  +
                .expect("a SharedClientProtocol is required");
         186  +
            let err = match error_code {
         187  +
                "ImportConflictException" => crate::operation::import_table::ImportTableError::ImportConflictException({
         188  +
                    let mut tmp = match protocol
         189  +
                        .deserialize_response(response, crate::types::error::ImportConflictException::SCHEMA, _cfg)
         190  +
                        .and_then(|mut deser| {
         191  +
                            crate::types::error::ImportConflictException::deserialize_with_response(
         192  +
                                &mut *deser,
         193  +
                                response.headers(),
         194  +
                                response.status().into(),
         195  +
                                body,
         196  +
                            )
         197  +
                        }) {
         198  +
                        ::std::result::Result::Ok(val) => val,
         199  +
                        ::std::result::Result::Err(e) => {
         200  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         201  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         202  +
                            ))
         203  +
                        }
         204  +
                    };
         205  +
                    tmp.meta = generic;
         206  +
                    if tmp.message.is_none() {
         207  +
                        tmp.message = _error_message;
         208  +
                    }
         209  +
                    tmp
         210  +
                }),
         211  +
                "LimitExceededException" => crate::operation::import_table::ImportTableError::LimitExceededException({
         212  +
                    let mut tmp = match protocol
         213  +
                        .deserialize_response(response, crate::types::error::LimitExceededException::SCHEMA, _cfg)
         214  +
                        .and_then(|mut deser| {
         215  +
                            crate::types::error::LimitExceededException::deserialize_with_response(
         216  +
                                &mut *deser,
         217  +
                                response.headers(),
         218  +
                                response.status().into(),
         219  +
                                body,
         220  +
                            )
         221  +
                        }) {
         222  +
                        ::std::result::Result::Ok(val) => val,
         223  +
                        ::std::result::Result::Err(e) => {
         224  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         225  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         226  +
                            ))
         227  +
                        }
         228  +
                    };
         229  +
                    tmp.meta = generic;
         230  +
                    if tmp.message.is_none() {
         231  +
                        tmp.message = _error_message;
         232  +
                    }
         233  +
                    tmp
         234  +
                }),
         235  +
                "ResourceInUseException" => crate::operation::import_table::ImportTableError::ResourceInUseException({
         236  +
                    let mut tmp = match protocol
         237  +
                        .deserialize_response(response, crate::types::error::ResourceInUseException::SCHEMA, _cfg)
         238  +
                        .and_then(|mut deser| {
         239  +
                            crate::types::error::ResourceInUseException::deserialize_with_response(
         240  +
                                &mut *deser,
         241  +
                                response.headers(),
         242  +
                                response.status().into(),
         243  +
                                body,
         244  +
                            )
         245  +
                        }) {
         246  +
                        ::std::result::Result::Ok(val) => val,
         247  +
                        ::std::result::Result::Err(e) => {
         248  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         249  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         250  +
                            ))
         251  +
                        }
         252  +
                    };
         253  +
                    tmp.meta = generic;
         254  +
                    if tmp.message.is_none() {
         255  +
                        tmp.message = _error_message;
         256  +
                    }
         257  +
                    tmp
         258  +
                }),
         259  +
                _ => crate::operation::import_table::ImportTableError::generic(generic),
  166    260   
            };
  167         -
        crate::protocol_serde::type_erase_result(parse_result)
         261  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         262  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         263  +
            ))
         264  +
        } else {
         265  +
            let protocol = _cfg
         266  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         267  +
                .expect("a SharedClientProtocol is required");
         268  +
            let mut deser = protocol.deserialize_response(response, ImportTable::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         269  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         270  +
            })?;
         271  +
            let body = response.body().bytes().expect("body loaded");
         272  +
            let output = crate::operation::import_table::ImportTableOutput::deserialize_with_response(
         273  +
                &mut *deser,
         274  +
                response.headers(),
         275  +
                response.status().into(),
         276  +
                body,
         277  +
            )
         278  +
            .map_err(|e| {
         279  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         280  +
            })?;
         281  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         282  +
        }
  168    283   
    }
  169    284   
}
  170    285   
#[derive(Debug)]
  171    286   
struct ImportTableRequestSerializer;
  172    287   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ImportTableRequestSerializer {
  173    288   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  174    289   
    fn serialize_input(
  175    290   
        &self,
  176    291   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  177    292   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  178    293   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  179    294   
        let input = input
  180    295   
            .downcast::<crate::operation::import_table::ImportTableInput>()
  181    296   
            .expect("correct type");
  182         -
        let _header_serialization_settings = _cfg
  183         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  184         -
            .cloned()
  185         -
            .unwrap_or_default();
  186         -
        let mut request_builder = {
  187         -
            #[allow(clippy::uninlined_format_args)]
  188         -
            fn uri_base(
  189         -
                _input: &crate::operation::import_table::ImportTableInput,
  190         -
                output: &mut ::std::string::String,
  191         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  192         -
                use ::std::fmt::Write as _;
  193         -
                ::std::write!(output, "/").expect("formatting should succeed");
  194         -
                ::std::result::Result::Ok(())
  195         -
            }
  196         -
            #[allow(clippy::unnecessary_wraps)]
  197         -
            fn update_http_builder(
  198         -
                input: &crate::operation::import_table::ImportTableInput,
  199         -
                builder: ::http_1x::request::Builder,
  200         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  201         -
                let mut uri = ::std::string::String::new();
  202         -
                uri_base(input, &mut uri)?;
  203         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  204         -
            }
  205         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  206         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  207         -
            builder = _header_serialization_settings.set_default_header(
  208         -
                builder,
  209         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  210         -
                "DynamoDB_20120810.ImportTable",
  211         -
            );
  212         -
            builder
  213         -
        };
  214         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_import_table::ser_import_table_input(&input)?);
  215         -
        if let Some(content_length) = body.content_length() {
  216         -
            let content_length = content_length.to_string();
  217         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  218         -
        }
  219         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         297  +
        let protocol = _cfg
         298  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         299  +
            .expect("a SharedClientProtocol is required");
         300  +
        let mut request = protocol
         301  +
            .serialize_request(&input, ImportTable::INPUT_SCHEMA, "", _cfg)
         302  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         303  +
         304  +
        return ::std::result::Result::Ok(request);
  220    305   
    }
  221    306   
}
  222    307   
#[derive(Debug)]
  223    308   
struct ImportTableEndpointParamsInterceptor;
  224    309   
  225    310   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ImportTableEndpointParamsInterceptor {
  226    311   
    fn name(&self) -> &'static str {
  227    312   
        "ImportTableEndpointParamsInterceptor"
  228    313   
    }
  229    314   

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/import_table/_import_table_input.rs

@@ -31,31 +229,240 @@
   51     51   
    "com.amazonaws.dynamodb.synthetic",
   52     52   
    "ImportTableInput",
   53     53   
);
   54     54   
static IMPORTTABLEINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   55     55   
    ::aws_smithy_schema::ShapeId::from_static(
   56     56   
        "com.amazonaws.dynamodb.synthetic#ImportTableInput$ClientToken",
   57     57   
        "com.amazonaws.dynamodb.synthetic",
   58     58   
        "ImportTableInput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::String,
   61         -
    "client_token",
          61  +
    "ClientToken",
   62     62   
    0,
   63     63   
);
   64     64   
static IMPORTTABLEINPUT_MEMBER_S3_BUCKET_SOURCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   65     65   
    ::aws_smithy_schema::ShapeId::from_static(
   66     66   
        "com.amazonaws.dynamodb.synthetic#ImportTableInput$S3BucketSource",
   67     67   
        "com.amazonaws.dynamodb.synthetic",
   68     68   
        "ImportTableInput",
   69     69   
    ),
   70     70   
    ::aws_smithy_schema::ShapeType::Structure,
   71         -
    "s3_bucket_source",
          71  +
    "S3BucketSource",
   72     72   
    1,
   73     73   
);
   74     74   
static IMPORTTABLEINPUT_MEMBER_INPUT_FORMAT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   75     75   
    ::aws_smithy_schema::ShapeId::from_static(
   76     76   
        "com.amazonaws.dynamodb.synthetic#ImportTableInput$InputFormat",
   77     77   
        "com.amazonaws.dynamodb.synthetic",
   78     78   
        "ImportTableInput",
   79     79   
    ),
   80     80   
    ::aws_smithy_schema::ShapeType::String,
   81         -
    "input_format",
          81  +
    "InputFormat",
   82     82   
    2,
   83     83   
);
   84     84   
static IMPORTTABLEINPUT_MEMBER_INPUT_FORMAT_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static(
   86     86   
        "com.amazonaws.dynamodb.synthetic#ImportTableInput$InputFormatOptions",
   87     87   
        "com.amazonaws.dynamodb.synthetic",
   88     88   
        "ImportTableInput",
   89     89   
    ),
   90     90   
    ::aws_smithy_schema::ShapeType::Structure,
   91         -
    "input_format_options",
          91  +
    "InputFormatOptions",
   92     92   
    3,
   93     93   
);
   94     94   
static IMPORTTABLEINPUT_MEMBER_INPUT_COMPRESSION_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.dynamodb.synthetic#ImportTableInput$InputCompressionType",
   97     97   
        "com.amazonaws.dynamodb.synthetic",
   98     98   
        "ImportTableInput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::String,
  101         -
    "input_compression_type",
         101  +
    "InputCompressionType",
  102    102   
    4,
  103    103   
);
  104    104   
static IMPORTTABLEINPUT_MEMBER_TABLE_CREATION_PARAMETERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  105    105   
    ::aws_smithy_schema::ShapeId::from_static(
  106    106   
        "com.amazonaws.dynamodb.synthetic#ImportTableInput$TableCreationParameters",
  107    107   
        "com.amazonaws.dynamodb.synthetic",
  108    108   
        "ImportTableInput",
  109    109   
    ),
  110    110   
    ::aws_smithy_schema::ShapeType::Structure,
  111         -
    "table_creation_parameters",
         111  +
    "TableCreationParameters",
  112    112   
    5,
  113    113   
);
  114    114   
static IMPORTTABLEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  115    115   
    IMPORTTABLEINPUT_SCHEMA_ID,
  116    116   
    ::aws_smithy_schema::ShapeType::Structure,
  117    117   
    &[
  118    118   
        &IMPORTTABLEINPUT_MEMBER_CLIENT_TOKEN,
  119    119   
        &IMPORTTABLEINPUT_MEMBER_S3_BUCKET_SOURCE,
  120    120   
        &IMPORTTABLEINPUT_MEMBER_INPUT_FORMAT,
  121    121   
        &IMPORTTABLEINPUT_MEMBER_INPUT_FORMAT_OPTIONS,
  122    122   
        &IMPORTTABLEINPUT_MEMBER_INPUT_COMPRESSION_TYPE,
  123    123   
        &IMPORTTABLEINPUT_MEMBER_TABLE_CREATION_PARAMETERS,
  124    124   
    ],
  125    125   
);
  126    126   
impl ImportTableInput {
  127    127   
    /// The schema for this shape.
  128    128   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &IMPORTTABLEINPUT_SCHEMA;
  129    129   
}
  130    130   
impl ::aws_smithy_schema::serde::SerializableStruct for ImportTableInput {
  131    131   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  132    132   
    fn serialize_members(
  133    133   
        &self,
  134    134   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  135    135   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  136    136   
        if let Some(ref val) = self.client_token {
  137    137   
            ser.write_string(&IMPORTTABLEINPUT_MEMBER_CLIENT_TOKEN, val)?;
  138    138   
        }
  139    139   
        if let Some(ref val) = self.s3_bucket_source {
  140    140   
            ser.write_struct(&IMPORTTABLEINPUT_MEMBER_S3_BUCKET_SOURCE, val)?;
  141    141   
        }
  142    142   
        if let Some(ref val) = self.input_format {
  143    143   
            ser.write_string(&IMPORTTABLEINPUT_MEMBER_INPUT_FORMAT, val.as_str())?;
  144    144   
        }
  145    145   
        if let Some(ref val) = self.input_format_options {
  146    146   
            ser.write_struct(&IMPORTTABLEINPUT_MEMBER_INPUT_FORMAT_OPTIONS, val)?;
  147    147   
        }
  148    148   
        if let Some(ref val) = self.input_compression_type {
  149    149   
            ser.write_string(&IMPORTTABLEINPUT_MEMBER_INPUT_COMPRESSION_TYPE, val.as_str())?;
  150    150   
        }
  151    151   
        if let Some(ref val) = self.table_creation_parameters {
  152    152   
            ser.write_struct(&IMPORTTABLEINPUT_MEMBER_TABLE_CREATION_PARAMETERS, val)?;
  153    153   
        }
  154    154   
        Ok(())
  155    155   
    }
  156    156   
}
  157    157   
impl ImportTableInput {
  158    158   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  159         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  160         -
        deserializer: &mut D,
         159  +
    pub fn deserialize(
         160  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  161    161   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  162    162   
        #[allow(unused_variables, unused_mut)]
  163    163   
        let mut builder = Self::builder();
  164    164   
        #[allow(
  165    165   
            unused_variables,
  166    166   
            unreachable_code,
  167    167   
            clippy::single_match,
  168    168   
            clippy::match_single_binding,
  169    169   
            clippy::diverging_sub_expression
  170    170   
        )]
  171         -
        deserializer.read_struct(&IMPORTTABLEINPUT_SCHEMA, (), |_, member, deser| {
         171  +
        deserializer.read_struct(&IMPORTTABLEINPUT_SCHEMA, &mut |member, deser| {
  172    172   
            match member.member_index() {
  173    173   
                Some(0) => {
  174    174   
                    builder.client_token = Some(deser.read_string(member)?);
  175    175   
                }
  176    176   
                Some(1) => {
  177    177   
                    builder.s3_bucket_source = Some(crate::types::S3BucketSource::deserialize(deser)?);
  178    178   
                }
  179    179   
                Some(2) => {
  180    180   
                    builder.input_format = Some(crate::types::InputFormat::from(deser.read_string(member)?.as_str()));
  181    181   
                }
  182    182   
                Some(3) => {
  183    183   
                    builder.input_format_options = Some(crate::types::InputFormatOptions::deserialize(deser)?);
  184    184   
                }
  185    185   
                Some(4) => {
  186    186   
                    builder.input_compression_type = Some(crate::types::InputCompressionType::from(deser.read_string(member)?.as_str()));
  187    187   
                }
  188    188   
                Some(5) => {
  189    189   
                    builder.table_creation_parameters = Some(crate::types::TableCreationParameters::deserialize(deser)?);
  190    190   
                }
  191    191   
                _ => {}
  192    192   
            }
  193    193   
            Ok(())
  194    194   
        })?;
  195    195   
        builder
  196    196   
            .build()
  197    197   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  198    198   
    }
  199    199   
}
         200  +
impl ImportTableInput {
         201  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         202  +
    pub fn deserialize_with_response(
         203  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         204  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         205  +
        _status: u16,
         206  +
        _body: &[u8],
         207  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         208  +
        Self::deserialize(deserializer)
         209  +
    }
         210  +
}
  200    211   
impl ImportTableInput {
  201    212   
    /// Creates a new builder-style object to manufacture [`ImportTableInput`](crate::operation::import_table::ImportTableInput).
  202    213   
    pub fn builder() -> crate::operation::import_table::builders::ImportTableInputBuilder {
  203    214   
        crate::operation::import_table::builders::ImportTableInputBuilder::default()
  204    215   
    }
  205    216   
}
  206    217   
  207    218   
/// A builder for [`ImportTableInput`](crate::operation::import_table::ImportTableInput).
  208    219   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  209    220   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/import_table/_import_table_output.rs

@@ -1,1 +96,140 @@
   18     18   
    "com.amazonaws.dynamodb.synthetic",
   19     19   
    "ImportTableOutput",
   20     20   
);
   21     21   
static IMPORTTABLEOUTPUT_MEMBER_IMPORT_TABLE_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.dynamodb.synthetic#ImportTableOutput$ImportTableDescription",
   24     24   
        "com.amazonaws.dynamodb.synthetic",
   25     25   
        "ImportTableOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "import_table_description",
          28  +
    "ImportTableDescription",
   29     29   
    0,
   30     30   
);
          31  +
static IMPORTTABLEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          32  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          33  +
    ::aws_smithy_schema::ShapeType::String,
          34  +
    "request_id",
          35  +
    1,
          36  +
)
          37  +
.with_http_header("x-amzn-requestid");
   31     38   
static IMPORTTABLEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     39   
    IMPORTTABLEOUTPUT_SCHEMA_ID,
   33     40   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    &[&IMPORTTABLEOUTPUT_MEMBER_IMPORT_TABLE_DESCRIPTION],
          41  +
    &[&IMPORTTABLEOUTPUT_MEMBER_IMPORT_TABLE_DESCRIPTION, &IMPORTTABLEOUTPUT_MEMBER__REQUEST_ID],
   35     42   
);
   36     43   
impl ImportTableOutput {
   37     44   
    /// The schema for this shape.
   38     45   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &IMPORTTABLEOUTPUT_SCHEMA;
   39     46   
}
   40     47   
impl ::aws_smithy_schema::serde::SerializableStruct for ImportTableOutput {
   41     48   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   42     49   
    fn serialize_members(
   43     50   
        &self,
   44     51   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   45     52   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   46     53   
        if let Some(ref val) = self.import_table_description {
   47     54   
            ser.write_struct(&IMPORTTABLEOUTPUT_MEMBER_IMPORT_TABLE_DESCRIPTION, val)?;
   48     55   
        }
   49     56   
        Ok(())
   50     57   
    }
   51     58   
}
   52     59   
impl ImportTableOutput {
   53     60   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   54         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   55         -
        deserializer: &mut D,
          61  +
    pub fn deserialize(
          62  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   56     63   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   57     64   
        #[allow(unused_variables, unused_mut)]
   58     65   
        let mut builder = Self::builder();
   59     66   
        #[allow(
   60     67   
            unused_variables,
   61     68   
            unreachable_code,
   62     69   
            clippy::single_match,
   63     70   
            clippy::match_single_binding,
   64     71   
            clippy::diverging_sub_expression
   65     72   
        )]
   66         -
        deserializer.read_struct(&IMPORTTABLEOUTPUT_SCHEMA, (), |_, member, deser| {
          73  +
        deserializer.read_struct(&IMPORTTABLEOUTPUT_SCHEMA, &mut |member, deser| {
          74  +
            match member.member_index() {
          75  +
                Some(0) => {
          76  +
                    builder.import_table_description = Some(crate::types::ImportTableDescription::deserialize(deser)?);
          77  +
                }
          78  +
                Some(1) => {
          79  +
                    builder._request_id = Some(deser.read_string(member)?);
          80  +
                }
          81  +
                _ => {}
          82  +
            }
          83  +
            Ok(())
          84  +
        })?;
          85  +
        Ok(builder.build())
          86  +
    }
          87  +
}
          88  +
impl ImportTableOutput {
          89  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          90  +
    /// Header-bound members are read directly from headers, avoiding runtime
          91  +
    /// member iteration overhead. Body members are read via the deserializer.
          92  +
    pub fn deserialize_with_response(
          93  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          94  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          95  +
        _status: u16,
          96  +
        _body: &[u8],
          97  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          98  +
        #[allow(unused_variables, unused_mut)]
          99  +
        let mut builder = Self::builder();
         100  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         101  +
            builder._request_id = Some(val.to_string());
         102  +
        }
         103  +
        #[allow(
         104  +
            unused_variables,
         105  +
            unreachable_code,
         106  +
            clippy::single_match,
         107  +
            clippy::match_single_binding,
         108  +
            clippy::diverging_sub_expression
         109  +
        )]
         110  +
        deserializer.read_struct(&IMPORTTABLEOUTPUT_SCHEMA, &mut |member, deser| {
   67    111   
            match member.member_index() {
   68    112   
                Some(0) => {
   69    113   
                    builder.import_table_description = Some(crate::types::ImportTableDescription::deserialize(deser)?);
   70    114   
                }
   71    115   
                _ => {}
   72    116   
            }
   73    117   
            Ok(())
   74    118   
        })?;
   75    119   
        Ok(builder.build())
   76    120   
    }

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/list_backups.rs

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `ListBackups`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListBackups;
    6      6   
impl ListBackups {
    7      7   
    /// Creates a new `ListBackups`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_backups::ListBackupsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_backups::ListBackupsOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::list_backups::ListBackupsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_backups::ListBackupsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_backups::ListBackupsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +242,303 @@
  135    139   
                crate::operation::list_backups::ListBackupsError,
  136    140   
            >::new());
  137    141   
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct ListBackupsResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListBackupsResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150         -
        let headers = response.headers();
  151         -
        let body = response.body().bytes().expect("body loaded");
  152    155   
        #[allow(unused_mut)]
  153    156   
        let mut force_error = false;
  154    157   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155         -
        let parse_result = if !success && status != 200 || force_error {
  156         -
            crate::protocol_serde::shape_list_backups::de_list_backups_http_error(status, headers, body)
  157         -
        } else {
  158         -
            crate::protocol_serde::shape_list_backups::de_list_backups_http_response(status, headers, body)
         158  +
        if !success && status != 200 || force_error {
         159  +
            let headers = response.headers();
         160  +
            let body = response.body().bytes().expect("body loaded");
         161  +
            #[allow(unused_mut)]
         162  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         163  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         164  +
            })?;
         165  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         166  +
            let generic = generic_builder.build();
         167  +
            let error_code = match generic.code() {
         168  +
                ::std::option::Option::Some(code) => code,
         169  +
                ::std::option::Option::None => {
         170  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         171  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::list_backups::ListBackupsError::unhandled(generic)),
         172  +
                    ))
         173  +
                }
         174  +
            };
         175  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         176  +
            let protocol = _cfg
         177  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         178  +
                .expect("a SharedClientProtocol is required");
         179  +
            let err = match error_code {
         180  +
                "InternalServerError" => crate::operation::list_backups::ListBackupsError::InternalServerError({
         181  +
                    let mut tmp = match protocol
         182  +
                        .deserialize_response(response, crate::types::error::InternalServerError::SCHEMA, _cfg)
         183  +
                        .and_then(|mut deser| {
         184  +
                            crate::types::error::InternalServerError::deserialize_with_response(
         185  +
                                &mut *deser,
         186  +
                                response.headers(),
         187  +
                                response.status().into(),
         188  +
                                body,
         189  +
                            )
         190  +
                        }) {
         191  +
                        ::std::result::Result::Ok(val) => val,
         192  +
                        ::std::result::Result::Err(e) => {
         193  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         194  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         195  +
                            ))
         196  +
                        }
         197  +
                    };
         198  +
                    tmp.meta = generic;
         199  +
                    if tmp.message.is_none() {
         200  +
                        tmp.message = _error_message;
         201  +
                    }
         202  +
                    tmp
         203  +
                }),
         204  +
                "InvalidEndpointException" => crate::operation::list_backups::ListBackupsError::InvalidEndpointException({
         205  +
                    let mut tmp = match protocol
         206  +
                        .deserialize_response(response, crate::types::error::InvalidEndpointException::SCHEMA, _cfg)
         207  +
                        .and_then(|mut deser| {
         208  +
                            crate::types::error::InvalidEndpointException::deserialize_with_response(
         209  +
                                &mut *deser,
         210  +
                                response.headers(),
         211  +
                                response.status().into(),
         212  +
                                body,
         213  +
                            )
         214  +
                        }) {
         215  +
                        ::std::result::Result::Ok(val) => val,
         216  +
                        ::std::result::Result::Err(e) => {
         217  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         218  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         219  +
                            ))
         220  +
                        }
         221  +
                    };
         222  +
                    tmp.meta = generic;
         223  +
                    if tmp.message.is_none() {
         224  +
                        tmp.message = _error_message;
         225  +
                    }
         226  +
                    tmp
         227  +
                }),
         228  +
                _ => crate::operation::list_backups::ListBackupsError::generic(generic),
  159    229   
            };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         230  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         231  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         232  +
            ))
         233  +
        } else {
         234  +
            let protocol = _cfg
         235  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         236  +
                .expect("a SharedClientProtocol is required");
         237  +
            let mut deser = protocol.deserialize_response(response, ListBackups::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         238  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         239  +
            })?;
         240  +
            let body = response.body().bytes().expect("body loaded");
         241  +
            let output = crate::operation::list_backups::ListBackupsOutput::deserialize_with_response(
         242  +
                &mut *deser,
         243  +
                response.headers(),
         244  +
                response.status().into(),
         245  +
                body,
         246  +
            )
         247  +
            .map_err(|e| {
         248  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         249  +
            })?;
         250  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         251  +
        }
  161    252   
    }
  162    253   
}
  163    254   
#[derive(Debug)]
  164    255   
struct ListBackupsRequestSerializer;
  165    256   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListBackupsRequestSerializer {
  166    257   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  167    258   
    fn serialize_input(
  168    259   
        &self,
  169    260   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  170    261   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  171    262   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  172    263   
        let input = input
  173    264   
            .downcast::<crate::operation::list_backups::ListBackupsInput>()
  174    265   
            .expect("correct type");
  175         -
        let _header_serialization_settings = _cfg
  176         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  177         -
            .cloned()
  178         -
            .unwrap_or_default();
  179         -
        let mut request_builder = {
  180         -
            #[allow(clippy::uninlined_format_args)]
  181         -
            fn uri_base(
  182         -
                _input: &crate::operation::list_backups::ListBackupsInput,
  183         -
                output: &mut ::std::string::String,
  184         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  185         -
                use ::std::fmt::Write as _;
  186         -
                ::std::write!(output, "/").expect("formatting should succeed");
  187         -
                ::std::result::Result::Ok(())
  188         -
            }
  189         -
            #[allow(clippy::unnecessary_wraps)]
  190         -
            fn update_http_builder(
  191         -
                input: &crate::operation::list_backups::ListBackupsInput,
  192         -
                builder: ::http_1x::request::Builder,
  193         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  194         -
                let mut uri = ::std::string::String::new();
  195         -
                uri_base(input, &mut uri)?;
  196         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  197         -
            }
  198         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  199         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  200         -
            builder = _header_serialization_settings.set_default_header(
  201         -
                builder,
  202         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  203         -
                "DynamoDB_20120810.ListBackups",
  204         -
            );
  205         -
            builder
  206         -
        };
  207         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_list_backups::ser_list_backups_input(&input)?);
  208         -
        if let Some(content_length) = body.content_length() {
  209         -
            let content_length = content_length.to_string();
  210         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  211         -
        }
  212         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         266  +
        let protocol = _cfg
         267  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         268  +
            .expect("a SharedClientProtocol is required");
         269  +
        let mut request = protocol
         270  +
            .serialize_request(&input, ListBackups::INPUT_SCHEMA, "", _cfg)
         271  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         272  +
         273  +
        return ::std::result::Result::Ok(request);
  213    274   
    }
  214    275   
}
  215    276   
#[derive(Debug)]
  216    277   
struct ListBackupsEndpointParamsInterceptor;
  217    278   
  218    279   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListBackupsEndpointParamsInterceptor {
  219    280   
    fn name(&self) -> &'static str {
  220    281   
        "ListBackupsEndpointParamsInterceptor"
  221    282   
    }
  222    283   

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/list_backups/_list_backups_input.rs

@@ -45,45 +243,254 @@
   65     65   
    "com.amazonaws.dynamodb.synthetic",
   66     66   
    "ListBackupsInput",
   67     67   
);
   68     68   
static LISTBACKUPSINPUT_MEMBER_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   69     69   
    ::aws_smithy_schema::ShapeId::from_static(
   70     70   
        "com.amazonaws.dynamodb.synthetic#ListBackupsInput$TableName",
   71     71   
        "com.amazonaws.dynamodb.synthetic",
   72     72   
        "ListBackupsInput",
   73     73   
    ),
   74     74   
    ::aws_smithy_schema::ShapeType::String,
   75         -
    "table_name",
          75  +
    "TableName",
   76     76   
    0,
   77     77   
);
   78     78   
static LISTBACKUPSINPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   79     79   
    ::aws_smithy_schema::ShapeId::from_static(
   80     80   
        "com.amazonaws.dynamodb.synthetic#ListBackupsInput$Limit",
   81     81   
        "com.amazonaws.dynamodb.synthetic",
   82     82   
        "ListBackupsInput",
   83     83   
    ),
   84     84   
    ::aws_smithy_schema::ShapeType::Integer,
   85         -
    "limit",
          85  +
    "Limit",
   86     86   
    1,
   87     87   
);
   88     88   
static LISTBACKUPSINPUT_MEMBER_TIME_RANGE_LOWER_BOUND: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   89     89   
    ::aws_smithy_schema::ShapeId::from_static(
   90     90   
        "com.amazonaws.dynamodb.synthetic#ListBackupsInput$TimeRangeLowerBound",
   91     91   
        "com.amazonaws.dynamodb.synthetic",
   92     92   
        "ListBackupsInput",
   93     93   
    ),
   94     94   
    ::aws_smithy_schema::ShapeType::Timestamp,
   95         -
    "time_range_lower_bound",
          95  +
    "TimeRangeLowerBound",
   96     96   
    2,
   97     97   
);
   98     98   
static LISTBACKUPSINPUT_MEMBER_TIME_RANGE_UPPER_BOUND: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   99     99   
    ::aws_smithy_schema::ShapeId::from_static(
  100    100   
        "com.amazonaws.dynamodb.synthetic#ListBackupsInput$TimeRangeUpperBound",
  101    101   
        "com.amazonaws.dynamodb.synthetic",
  102    102   
        "ListBackupsInput",
  103    103   
    ),
  104    104   
    ::aws_smithy_schema::ShapeType::Timestamp,
  105         -
    "time_range_upper_bound",
         105  +
    "TimeRangeUpperBound",
  106    106   
    3,
  107    107   
);
  108    108   
static LISTBACKUPSINPUT_MEMBER_EXCLUSIVE_START_BACKUP_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  109    109   
    ::aws_smithy_schema::ShapeId::from_static(
  110    110   
        "com.amazonaws.dynamodb.synthetic#ListBackupsInput$ExclusiveStartBackupArn",
  111    111   
        "com.amazonaws.dynamodb.synthetic",
  112    112   
        "ListBackupsInput",
  113    113   
    ),
  114    114   
    ::aws_smithy_schema::ShapeType::String,
  115         -
    "exclusive_start_backup_arn",
         115  +
    "ExclusiveStartBackupArn",
  116    116   
    4,
  117    117   
);
  118    118   
static LISTBACKUPSINPUT_MEMBER_BACKUP_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  119    119   
    ::aws_smithy_schema::ShapeId::from_static(
  120    120   
        "com.amazonaws.dynamodb.synthetic#ListBackupsInput$BackupType",
  121    121   
        "com.amazonaws.dynamodb.synthetic",
  122    122   
        "ListBackupsInput",
  123    123   
    ),
  124    124   
    ::aws_smithy_schema::ShapeType::String,
  125         -
    "backup_type",
         125  +
    "BackupType",
  126    126   
    5,
  127    127   
);
  128    128   
static LISTBACKUPSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  129    129   
    LISTBACKUPSINPUT_SCHEMA_ID,
  130    130   
    ::aws_smithy_schema::ShapeType::Structure,
  131    131   
    &[
  132    132   
        &LISTBACKUPSINPUT_MEMBER_TABLE_NAME,
  133    133   
        &LISTBACKUPSINPUT_MEMBER_LIMIT,
  134    134   
        &LISTBACKUPSINPUT_MEMBER_TIME_RANGE_LOWER_BOUND,
  135    135   
        &LISTBACKUPSINPUT_MEMBER_TIME_RANGE_UPPER_BOUND,
  136    136   
        &LISTBACKUPSINPUT_MEMBER_EXCLUSIVE_START_BACKUP_ARN,
  137    137   
        &LISTBACKUPSINPUT_MEMBER_BACKUP_TYPE,
  138    138   
    ],
  139    139   
);
  140    140   
impl ListBackupsInput {
  141    141   
    /// The schema for this shape.
  142    142   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTBACKUPSINPUT_SCHEMA;
  143    143   
}
  144    144   
impl ::aws_smithy_schema::serde::SerializableStruct for ListBackupsInput {
  145    145   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  146    146   
    fn serialize_members(
  147    147   
        &self,
  148    148   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  149    149   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  150    150   
        if let Some(ref val) = self.table_name {
  151    151   
            ser.write_string(&LISTBACKUPSINPUT_MEMBER_TABLE_NAME, val)?;
  152    152   
        }
  153    153   
        if let Some(ref val) = self.limit {
  154    154   
            ser.write_integer(&LISTBACKUPSINPUT_MEMBER_LIMIT, *val)?;
  155    155   
        }
  156    156   
        if let Some(ref val) = self.time_range_lower_bound {
  157    157   
            ser.write_timestamp(&LISTBACKUPSINPUT_MEMBER_TIME_RANGE_LOWER_BOUND, val)?;
  158    158   
        }
  159    159   
        if let Some(ref val) = self.time_range_upper_bound {
  160    160   
            ser.write_timestamp(&LISTBACKUPSINPUT_MEMBER_TIME_RANGE_UPPER_BOUND, val)?;
  161    161   
        }
  162    162   
        if let Some(ref val) = self.exclusive_start_backup_arn {
  163    163   
            ser.write_string(&LISTBACKUPSINPUT_MEMBER_EXCLUSIVE_START_BACKUP_ARN, val)?;
  164    164   
        }
  165    165   
        if let Some(ref val) = self.backup_type {
  166    166   
            ser.write_string(&LISTBACKUPSINPUT_MEMBER_BACKUP_TYPE, val.as_str())?;
  167    167   
        }
  168    168   
        Ok(())
  169    169   
    }
  170    170   
}
  171    171   
impl ListBackupsInput {
  172    172   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  173         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  174         -
        deserializer: &mut D,
         173  +
    pub fn deserialize(
         174  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  175    175   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  176    176   
        #[allow(unused_variables, unused_mut)]
  177    177   
        let mut builder = Self::builder();
  178    178   
        #[allow(
  179    179   
            unused_variables,
  180    180   
            unreachable_code,
  181    181   
            clippy::single_match,
  182    182   
            clippy::match_single_binding,
  183    183   
            clippy::diverging_sub_expression
  184    184   
        )]
  185         -
        deserializer.read_struct(&LISTBACKUPSINPUT_SCHEMA, (), |_, member, deser| {
         185  +
        deserializer.read_struct(&LISTBACKUPSINPUT_SCHEMA, &mut |member, deser| {
  186    186   
            match member.member_index() {
  187    187   
                Some(0) => {
  188    188   
                    builder.table_name = Some(deser.read_string(member)?);
  189    189   
                }
  190    190   
                Some(1) => {
  191    191   
                    builder.limit = Some(deser.read_integer(member)?);
  192    192   
                }
  193    193   
                Some(2) => {
  194    194   
                    builder.time_range_lower_bound = Some(deser.read_timestamp(member)?);
  195    195   
                }
  196    196   
                Some(3) => {
  197    197   
                    builder.time_range_upper_bound = Some(deser.read_timestamp(member)?);
  198    198   
                }
  199    199   
                Some(4) => {
  200    200   
                    builder.exclusive_start_backup_arn = Some(deser.read_string(member)?);
  201    201   
                }
  202    202   
                Some(5) => {
  203    203   
                    builder.backup_type = Some(crate::types::BackupTypeFilter::from(deser.read_string(member)?.as_str()));
  204    204   
                }
  205    205   
                _ => {}
  206    206   
            }
  207    207   
            Ok(())
  208    208   
        })?;
  209    209   
        builder
  210    210   
            .build()
  211    211   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  212    212   
    }
  213    213   
}
         214  +
impl ListBackupsInput {
         215  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         216  +
    pub fn deserialize_with_response(
         217  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         218  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         219  +
        _status: u16,
         220  +
        _body: &[u8],
         221  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         222  +
        Self::deserialize(deserializer)
         223  +
    }
         224  +
}
  214    225   
impl ListBackupsInput {
  215    226   
    /// Creates a new builder-style object to manufacture [`ListBackupsInput`](crate::operation::list_backups::ListBackupsInput).
  216    227   
    pub fn builder() -> crate::operation::list_backups::builders::ListBackupsInputBuilder {
  217    228   
        crate::operation::list_backups::builders::ListBackupsInputBuilder::default()
  218    229   
    }
  219    230   
}
  220    231   
  221    232   
/// A builder for [`ListBackupsInput`](crate::operation::list_backups::ListBackupsInput).
  222    233   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  223    234   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/list_backups/_list_backups_output.rs

@@ -10,10 +144,196 @@
   30     30   
    "com.amazonaws.dynamodb.synthetic",
   31     31   
    "ListBackupsOutput",
   32     32   
);
   33     33   
static LISTBACKUPSOUTPUT_MEMBER_BACKUP_SUMMARIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   34     34   
    ::aws_smithy_schema::ShapeId::from_static(
   35     35   
        "com.amazonaws.dynamodb.synthetic#ListBackupsOutput$BackupSummaries",
   36     36   
        "com.amazonaws.dynamodb.synthetic",
   37     37   
        "ListBackupsOutput",
   38     38   
    ),
   39     39   
    ::aws_smithy_schema::ShapeType::List,
   40         -
    "backup_summaries",
          40  +
    "BackupSummaries",
   41     41   
    0,
   42     42   
);
   43     43   
static LISTBACKUPSOUTPUT_MEMBER_LAST_EVALUATED_BACKUP_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   44     44   
    ::aws_smithy_schema::ShapeId::from_static(
   45     45   
        "com.amazonaws.dynamodb.synthetic#ListBackupsOutput$LastEvaluatedBackupArn",
   46     46   
        "com.amazonaws.dynamodb.synthetic",
   47     47   
        "ListBackupsOutput",
   48     48   
    ),
   49     49   
    ::aws_smithy_schema::ShapeType::String,
   50         -
    "last_evaluated_backup_arn",
          50  +
    "LastEvaluatedBackupArn",
   51     51   
    1,
   52     52   
);
          53  +
static LISTBACKUPSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          54  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          55  +
    ::aws_smithy_schema::ShapeType::String,
          56  +
    "request_id",
          57  +
    2,
          58  +
)
          59  +
.with_http_header("x-amzn-requestid");
   53     60   
static LISTBACKUPSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   54     61   
    LISTBACKUPSOUTPUT_SCHEMA_ID,
   55     62   
    ::aws_smithy_schema::ShapeType::Structure,
   56     63   
    &[
   57     64   
        &LISTBACKUPSOUTPUT_MEMBER_BACKUP_SUMMARIES,
   58     65   
        &LISTBACKUPSOUTPUT_MEMBER_LAST_EVALUATED_BACKUP_ARN,
          66  +
        &LISTBACKUPSOUTPUT_MEMBER__REQUEST_ID,
   59     67   
    ],
   60     68   
);
   61     69   
impl ListBackupsOutput {
   62     70   
    /// The schema for this shape.
   63     71   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTBACKUPSOUTPUT_SCHEMA;
   64     72   
}
   65     73   
impl ::aws_smithy_schema::serde::SerializableStruct for ListBackupsOutput {
   66     74   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   67     75   
    fn serialize_members(
   68     76   
        &self,
   69     77   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   70     78   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   71     79   
        if let Some(ref val) = self.backup_summaries {
   72     80   
            ser.write_list(
   73     81   
                &LISTBACKUPSOUTPUT_MEMBER_BACKUP_SUMMARIES,
   74     82   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   75     83   
                    for item in val {
   76     84   
                        ser.write_struct(crate::types::BackupSummary::SCHEMA, item)?;
   77     85   
                    }
   78     86   
                    Ok(())
   79     87   
                },
   80     88   
            )?;
   81     89   
        }
   82     90   
        if let Some(ref val) = self.last_evaluated_backup_arn {
   83     91   
            ser.write_string(&LISTBACKUPSOUTPUT_MEMBER_LAST_EVALUATED_BACKUP_ARN, val)?;
   84     92   
        }
   85     93   
        Ok(())
   86     94   
    }
   87     95   
}
   88     96   
impl ListBackupsOutput {
   89     97   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   90         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   91         -
        deserializer: &mut D,
          98  +
    pub fn deserialize(
          99  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   92    100   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   93    101   
        #[allow(unused_variables, unused_mut)]
   94    102   
        let mut builder = Self::builder();
   95    103   
        #[allow(
   96    104   
            unused_variables,
   97    105   
            unreachable_code,
   98    106   
            clippy::single_match,
   99    107   
            clippy::match_single_binding,
  100    108   
            clippy::diverging_sub_expression
  101    109   
        )]
  102         -
        deserializer.read_struct(&LISTBACKUPSOUTPUT_SCHEMA, (), |_, member, deser| {
         110  +
        deserializer.read_struct(&LISTBACKUPSOUTPUT_SCHEMA, &mut |member, deser| {
  103    111   
            match member.member_index() {
  104    112   
                Some(0) => {
  105    113   
                    builder.backup_summaries = Some({
  106         -
                        let container = if let Some(cap) = deser.container_size() {
  107         -
                            Vec::with_capacity(cap)
  108         -
                        } else {
  109         -
                            Vec::new()
  110         -
                        };
  111         -
                        deser.read_list(member, container, |mut list, deser| {
  112         -
                            list.push(crate::types::BackupSummary::deserialize(deser)?);
  113         -
                            Ok(list)
  114         -
                        })?
         114  +
                        let mut container = Vec::new();
         115  +
                        deser.read_list(member, &mut |deser| {
         116  +
                            container.push(crate::types::BackupSummary::deserialize(deser)?);
         117  +
                            Ok(())
         118  +
                        })?;
         119  +
                        container
         120  +
                    });
         121  +
                }
         122  +
                Some(1) => {
         123  +
                    builder.last_evaluated_backup_arn = Some(deser.read_string(member)?);
         124  +
                }
         125  +
                Some(2) => {
         126  +
                    builder._request_id = Some(deser.read_string(member)?);
         127  +
                }
         128  +
                _ => {}
         129  +
            }
         130  +
            Ok(())
         131  +
        })?;
         132  +
        Ok(builder.build())
         133  +
    }
         134  +
}
         135  +
impl ListBackupsOutput {
         136  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         137  +
    /// Header-bound members are read directly from headers, avoiding runtime
         138  +
    /// member iteration overhead. Body members are read via the deserializer.
         139  +
    pub fn deserialize_with_response(
         140  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         141  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         142  +
        _status: u16,
         143  +
        _body: &[u8],
         144  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         145  +
        #[allow(unused_variables, unused_mut)]
         146  +
        let mut builder = Self::builder();
         147  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         148  +
            builder._request_id = Some(val.to_string());
         149  +
        }
         150  +
        #[allow(
         151  +
            unused_variables,
         152  +
            unreachable_code,
         153  +
            clippy::single_match,
         154  +
            clippy::match_single_binding,
         155  +
            clippy::diverging_sub_expression
         156  +
        )]
         157  +
        deserializer.read_struct(&LISTBACKUPSOUTPUT_SCHEMA, &mut |member, deser| {
         158  +
            match member.member_index() {
         159  +
                Some(0) => {
         160  +
                    builder.backup_summaries = Some({
         161  +
                        let mut container = Vec::new();
         162  +
                        deser.read_list(member, &mut |deser| {
         163  +
                            container.push(crate::types::BackupSummary::deserialize(deser)?);
         164  +
                            Ok(())
         165  +
                        })?;
         166  +
                        container
  115    167   
                    });
  116    168   
                }
  117    169   
                Some(1) => {
  118    170   
                    builder.last_evaluated_backup_arn = Some(deser.read_string(member)?);
  119    171   
                }
  120    172   
                _ => {}
  121    173   
            }
  122    174   
            Ok(())
  123    175   
        })?;
  124    176   
        Ok(builder.build())

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/list_contributor_insights.rs

@@ -1,1 +40,45 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `ListContributorInsights`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListContributorInsights;
    6      6   
impl ListContributorInsights {
    7      7   
    /// Creates a new `ListContributorInsights`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_contributor_insights::ListContributorInsightsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          15  +
        crate::operation::list_contributor_insights::ListContributorInsightsOutput::SCHEMA;
   11     16   
    pub(crate) async fn orchestrate(
   12     17   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     18   
        input: crate::operation::list_contributor_insights::ListContributorInsightsInput,
   14     19   
    ) -> ::std::result::Result<
   15     20   
        crate::operation::list_contributor_insights::ListContributorInsightsOutput,
   16     21   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     22   
            crate::operation::list_contributor_insights::ListContributorInsightsError,
   18     23   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     24   
        >,
   20     25   
    > {
@@ -118,123 +247,313 @@
  138    143   
                crate::operation::list_contributor_insights::ListContributorInsightsError,
  139    144   
            >::new());
  140    145   
  141    146   
        ::std::borrow::Cow::Owned(rcb)
  142    147   
    }
  143    148   
}
  144    149   
  145    150   
#[derive(Debug)]
  146    151   
struct ListContributorInsightsResponseDeserializer;
  147    152   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListContributorInsightsResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         153  +
    fn deserialize_nonstreaming_with_config(
  149    154   
        &self,
  150    155   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         156  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    157   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    158   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153         -
        let headers = response.headers();
  154         -
        let body = response.body().bytes().expect("body loaded");
  155    159   
        #[allow(unused_mut)]
  156    160   
        let mut force_error = false;
  157    161   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158         -
        let parse_result = if !success && status != 200 || force_error {
  159         -
            crate::protocol_serde::shape_list_contributor_insights::de_list_contributor_insights_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_list_contributor_insights::de_list_contributor_insights_http_response(status, headers, body)
         162  +
        if !success && status != 200 || force_error {
         163  +
            let headers = response.headers();
         164  +
            let body = response.body().bytes().expect("body loaded");
         165  +
            #[allow(unused_mut)]
         166  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         167  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         168  +
            })?;
         169  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         170  +
            let generic = generic_builder.build();
         171  +
            let error_code = match generic.code() {
         172  +
                ::std::option::Option::Some(code) => code,
         173  +
                ::std::option::Option::None => {
         174  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         175  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         176  +
                            crate::operation::list_contributor_insights::ListContributorInsightsError::unhandled(generic),
         177  +
                        ),
         178  +
                    ))
         179  +
                }
         180  +
            };
         181  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         182  +
            let protocol = _cfg
         183  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         184  +
                .expect("a SharedClientProtocol is required");
         185  +
            let err = match error_code {
         186  +
                "InternalServerError" => crate::operation::list_contributor_insights::ListContributorInsightsError::InternalServerError({
         187  +
                    let mut tmp = match protocol
         188  +
                        .deserialize_response(response, crate::types::error::InternalServerError::SCHEMA, _cfg)
         189  +
                        .and_then(|mut deser| {
         190  +
                            crate::types::error::InternalServerError::deserialize_with_response(
         191  +
                                &mut *deser,
         192  +
                                response.headers(),
         193  +
                                response.status().into(),
         194  +
                                body,
         195  +
                            )
         196  +
                        }) {
         197  +
                        ::std::result::Result::Ok(val) => val,
         198  +
                        ::std::result::Result::Err(e) => {
         199  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         200  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         201  +
                            ))
         202  +
                        }
         203  +
                    };
         204  +
                    tmp.meta = generic;
         205  +
                    if tmp.message.is_none() {
         206  +
                        tmp.message = _error_message;
         207  +
                    }
         208  +
                    tmp
         209  +
                }),
         210  +
                "ResourceNotFoundException" => {
         211  +
                    crate::operation::list_contributor_insights::ListContributorInsightsError::ResourceNotFoundException({
         212  +
                        let mut tmp = match protocol
         213  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         214  +
                            .and_then(|mut deser| {
         215  +
                                crate::types::error::ResourceNotFoundException::deserialize_with_response(
         216  +
                                    &mut *deser,
         217  +
                                    response.headers(),
         218  +
                                    response.status().into(),
         219  +
                                    body,
         220  +
                                )
         221  +
                            }) {
         222  +
                            ::std::result::Result::Ok(val) => val,
         223  +
                            ::std::result::Result::Err(e) => {
         224  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         225  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         226  +
                                ))
         227  +
                            }
  162    228   
                        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         229  +
                        tmp.meta = generic;
         230  +
                        if tmp.message.is_none() {
         231  +
                            tmp.message = _error_message;
         232  +
                        }
         233  +
                        tmp
         234  +
                    })
         235  +
                }
         236  +
                _ => crate::operation::list_contributor_insights::ListContributorInsightsError::generic(generic),
         237  +
            };
         238  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         239  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         240  +
            ))
         241  +
        } else {
         242  +
            let protocol = _cfg
         243  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         244  +
                .expect("a SharedClientProtocol is required");
         245  +
            let mut deser = protocol
         246  +
                .deserialize_response(response, ListContributorInsights::OUTPUT_SCHEMA, _cfg)
         247  +
                .map_err(|e| {
         248  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         249  +
                })?;
         250  +
            let body = response.body().bytes().expect("body loaded");
         251  +
            let output = crate::operation::list_contributor_insights::ListContributorInsightsOutput::deserialize_with_response(
         252  +
                &mut *deser,
         253  +
                response.headers(),
         254  +
                response.status().into(),
         255  +
                body,
         256  +
            )
         257  +
            .map_err(|e| {
         258  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         259  +
            })?;
         260  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         261  +
        }
  164    262   
    }
  165    263   
}
  166    264   
#[derive(Debug)]
  167    265   
struct ListContributorInsightsRequestSerializer;
  168    266   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListContributorInsightsRequestSerializer {
  169    267   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    268   
    fn serialize_input(
  171    269   
        &self,
  172    270   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    271   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    272   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    273   
        let input = input
  176    274   
            .downcast::<crate::operation::list_contributor_insights::ListContributorInsightsInput>()
  177    275   
            .expect("correct type");
  178         -
        let _header_serialization_settings = _cfg
  179         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  180         -
            .cloned()
  181         -
            .unwrap_or_default();
  182         -
        let mut request_builder = {
  183         -
            #[allow(clippy::uninlined_format_args)]
  184         -
            fn uri_base(
  185         -
                _input: &crate::operation::list_contributor_insights::ListContributorInsightsInput,
  186         -
                output: &mut ::std::string::String,
  187         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188         -
                use ::std::fmt::Write as _;
  189         -
                ::std::write!(output, "/").expect("formatting should succeed");
  190         -
                ::std::result::Result::Ok(())
  191         -
            }
  192         -
            #[allow(clippy::unnecessary_wraps)]
  193         -
            fn update_http_builder(
  194         -
                input: &crate::operation::list_contributor_insights::ListContributorInsightsInput,
  195         -
                builder: ::http_1x::request::Builder,
  196         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  197         -
                let mut uri = ::std::string::String::new();
  198         -
                uri_base(input, &mut uri)?;
  199         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  200         -
            }
  201         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  202         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  203         -
            builder = _header_serialization_settings.set_default_header(
  204         -
                builder,
  205         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  206         -
                "DynamoDB_20120810.ListContributorInsights",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  211         -
            crate::protocol_serde::shape_list_contributor_insights::ser_list_contributor_insights_input(&input)?,
  212         -
        );
  213         -
        if let Some(content_length) = body.content_length() {
  214         -
            let content_length = content_length.to_string();
  215         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  216         -
        }
  217         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         276  +
        let protocol = _cfg
         277  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         278  +
            .expect("a SharedClientProtocol is required");
         279  +
        let mut request = protocol
         280  +
            .serialize_request(&input, ListContributorInsights::INPUT_SCHEMA, "", _cfg)
         281  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         282  +
         283  +
        return ::std::result::Result::Ok(request);
  218    284   
    }
  219    285   
}
  220    286   
#[derive(Debug)]
  221    287   
struct ListContributorInsightsEndpointParamsInterceptor;
  222    288   
  223    289   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListContributorInsightsEndpointParamsInterceptor {
  224    290   
    fn name(&self) -> &'static str {
  225    291   
        "ListContributorInsightsEndpointParamsInterceptor"
  226    292   
    }
  227    293   

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/list_contributor_insights/_list_contributor_insights_input.rs

@@ -9,9 +156,167 @@
   29     29   
    "com.amazonaws.dynamodb.synthetic",
   30     30   
    "ListContributorInsightsInput",
   31     31   
);
   32     32   
static LISTCONTRIBUTORINSIGHTSINPUT_MEMBER_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   33     33   
    ::aws_smithy_schema::ShapeId::from_static(
   34     34   
        "com.amazonaws.dynamodb.synthetic#ListContributorInsightsInput$TableName",
   35     35   
        "com.amazonaws.dynamodb.synthetic",
   36     36   
        "ListContributorInsightsInput",
   37     37   
    ),
   38     38   
    ::aws_smithy_schema::ShapeType::String,
   39         -
    "table_name",
          39  +
    "TableName",
   40     40   
    0,
   41     41   
);
   42     42   
static LISTCONTRIBUTORINSIGHTSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   43     43   
    ::aws_smithy_schema::ShapeId::from_static(
   44     44   
        "com.amazonaws.dynamodb.synthetic#ListContributorInsightsInput$NextToken",
   45     45   
        "com.amazonaws.dynamodb.synthetic",
   46     46   
        "ListContributorInsightsInput",
   47     47   
    ),
   48     48   
    ::aws_smithy_schema::ShapeType::String,
   49         -
    "next_token",
          49  +
    "NextToken",
   50     50   
    1,
   51     51   
);
   52     52   
static LISTCONTRIBUTORINSIGHTSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   53     53   
    ::aws_smithy_schema::ShapeId::from_static(
   54     54   
        "com.amazonaws.dynamodb.synthetic#ListContributorInsightsInput$MaxResults",
   55     55   
        "com.amazonaws.dynamodb.synthetic",
   56     56   
        "ListContributorInsightsInput",
   57     57   
    ),
   58     58   
    ::aws_smithy_schema::ShapeType::Integer,
   59         -
    "max_results",
          59  +
    "MaxResults",
   60     60   
    2,
   61     61   
);
   62     62   
static LISTCONTRIBUTORINSIGHTSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   63     63   
    LISTCONTRIBUTORINSIGHTSINPUT_SCHEMA_ID,
   64     64   
    ::aws_smithy_schema::ShapeType::Structure,
   65     65   
    &[
   66     66   
        &LISTCONTRIBUTORINSIGHTSINPUT_MEMBER_TABLE_NAME,
   67     67   
        &LISTCONTRIBUTORINSIGHTSINPUT_MEMBER_NEXT_TOKEN,
   68     68   
        &LISTCONTRIBUTORINSIGHTSINPUT_MEMBER_MAX_RESULTS,
   69     69   
    ],
   70     70   
);
   71     71   
impl ListContributorInsightsInput {
   72     72   
    /// The schema for this shape.
   73     73   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTCONTRIBUTORINSIGHTSINPUT_SCHEMA;
   74     74   
}
   75     75   
impl ::aws_smithy_schema::serde::SerializableStruct for ListContributorInsightsInput {
   76     76   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   77     77   
    fn serialize_members(
   78     78   
        &self,
   79     79   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   80     80   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   81     81   
        if let Some(ref val) = self.table_name {
   82     82   
            ser.write_string(&LISTCONTRIBUTORINSIGHTSINPUT_MEMBER_TABLE_NAME, val)?;
   83     83   
        }
   84     84   
        if let Some(ref val) = self.next_token {
   85     85   
            ser.write_string(&LISTCONTRIBUTORINSIGHTSINPUT_MEMBER_NEXT_TOKEN, val)?;
   86     86   
        }
   87     87   
        if let Some(ref val) = self.max_results {
   88     88   
            ser.write_integer(&LISTCONTRIBUTORINSIGHTSINPUT_MEMBER_MAX_RESULTS, *val)?;
   89     89   
        }
   90     90   
        Ok(())
   91     91   
    }
   92     92   
}
   93     93   
impl ListContributorInsightsInput {
   94     94   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   95         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   96         -
        deserializer: &mut D,
          95  +
    pub fn deserialize(
          96  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   97     97   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   98     98   
        #[allow(unused_variables, unused_mut)]
   99     99   
        let mut builder = Self::builder();
  100    100   
        #[allow(
  101    101   
            unused_variables,
  102    102   
            unreachable_code,
  103    103   
            clippy::single_match,
  104    104   
            clippy::match_single_binding,
  105    105   
            clippy::diverging_sub_expression
  106    106   
        )]
  107         -
        deserializer.read_struct(&LISTCONTRIBUTORINSIGHTSINPUT_SCHEMA, (), |_, member, deser| {
         107  +
        deserializer.read_struct(&LISTCONTRIBUTORINSIGHTSINPUT_SCHEMA, &mut |member, deser| {
  108    108   
            match member.member_index() {
  109    109   
                Some(0) => {
  110    110   
                    builder.table_name = Some(deser.read_string(member)?);
  111    111   
                }
  112    112   
                Some(1) => {
  113    113   
                    builder.next_token = Some(deser.read_string(member)?);
  114    114   
                }
  115    115   
                Some(2) => {
  116    116   
                    builder.max_results = Some(deser.read_integer(member)?);
  117    117   
                }
  118    118   
                _ => {}
  119    119   
            }
  120    120   
            Ok(())
  121    121   
        })?;
  122    122   
        builder
  123    123   
            .build()
  124    124   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  125    125   
    }
  126    126   
}
         127  +
impl ListContributorInsightsInput {
         128  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         129  +
    pub fn deserialize_with_response(
         130  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         131  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         132  +
        _status: u16,
         133  +
        _body: &[u8],
         134  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         135  +
        Self::deserialize(deserializer)
         136  +
    }
         137  +
}
  127    138   
impl ListContributorInsightsInput {
  128    139   
    /// Creates a new builder-style object to manufacture [`ListContributorInsightsInput`](crate::operation::list_contributor_insights::ListContributorInsightsInput).
  129    140   
    pub fn builder() -> crate::operation::list_contributor_insights::builders::ListContributorInsightsInputBuilder {
  130    141   
        crate::operation::list_contributor_insights::builders::ListContributorInsightsInputBuilder::default()
  131    142   
    }
  132    143   
}
  133    144   
  134    145   
/// A builder for [`ListContributorInsightsInput`](crate::operation::list_contributor_insights::ListContributorInsightsInput).
  135    146   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  136    147   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/list_contributor_insights/_list_contributor_insights_output.rs

@@ -6,6 +140,192 @@
   26     26   
    "com.amazonaws.dynamodb.synthetic",
   27     27   
    "ListContributorInsightsOutput",
   28     28   
);
   29     29   
static LISTCONTRIBUTORINSIGHTSOUTPUT_MEMBER_CONTRIBUTOR_INSIGHTS_SUMMARIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.dynamodb.synthetic#ListContributorInsightsOutput$ContributorInsightsSummaries",
   32     32   
        "com.amazonaws.dynamodb.synthetic",
   33     33   
        "ListContributorInsightsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "contributor_insights_summaries",
          36  +
    "ContributorInsightsSummaries",
   37     37   
    0,
   38     38   
);
   39     39   
static LISTCONTRIBUTORINSIGHTSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   40     40   
    ::aws_smithy_schema::ShapeId::from_static(
   41     41   
        "com.amazonaws.dynamodb.synthetic#ListContributorInsightsOutput$NextToken",
   42     42   
        "com.amazonaws.dynamodb.synthetic",
   43     43   
        "ListContributorInsightsOutput",
   44     44   
    ),
   45     45   
    ::aws_smithy_schema::ShapeType::String,
   46         -
    "next_token",
          46  +
    "NextToken",
   47     47   
    1,
   48     48   
);
          49  +
static LISTCONTRIBUTORINSIGHTSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          50  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          51  +
    ::aws_smithy_schema::ShapeType::String,
          52  +
    "request_id",
          53  +
    2,
          54  +
)
          55  +
.with_http_header("x-amzn-requestid");
   49     56   
static LISTCONTRIBUTORINSIGHTSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    LISTCONTRIBUTORINSIGHTSOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52     59   
    &[
   53     60   
        &LISTCONTRIBUTORINSIGHTSOUTPUT_MEMBER_CONTRIBUTOR_INSIGHTS_SUMMARIES,
   54     61   
        &LISTCONTRIBUTORINSIGHTSOUTPUT_MEMBER_NEXT_TOKEN,
          62  +
        &LISTCONTRIBUTORINSIGHTSOUTPUT_MEMBER__REQUEST_ID,
   55     63   
    ],
   56     64   
);
   57     65   
impl ListContributorInsightsOutput {
   58     66   
    /// The schema for this shape.
   59     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTCONTRIBUTORINSIGHTSOUTPUT_SCHEMA;
   60     68   
}
   61     69   
impl ::aws_smithy_schema::serde::SerializableStruct for ListContributorInsightsOutput {
   62     70   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   63     71   
    fn serialize_members(
   64     72   
        &self,
   65     73   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   66     74   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   67     75   
        if let Some(ref val) = self.contributor_insights_summaries {
   68     76   
            ser.write_list(
   69     77   
                &LISTCONTRIBUTORINSIGHTSOUTPUT_MEMBER_CONTRIBUTOR_INSIGHTS_SUMMARIES,
   70     78   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   71     79   
                    for item in val {
   72     80   
                        ser.write_struct(crate::types::ContributorInsightsSummary::SCHEMA, item)?;
   73     81   
                    }
   74     82   
                    Ok(())
   75     83   
                },
   76     84   
            )?;
   77     85   
        }
   78     86   
        if let Some(ref val) = self.next_token {
   79     87   
            ser.write_string(&LISTCONTRIBUTORINSIGHTSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   80     88   
        }
   81     89   
        Ok(())
   82     90   
    }
   83     91   
}
   84     92   
impl ListContributorInsightsOutput {
   85     93   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   86         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   87         -
        deserializer: &mut D,
          94  +
    pub fn deserialize(
          95  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   88     96   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   89     97   
        #[allow(unused_variables, unused_mut)]
   90     98   
        let mut builder = Self::builder();
   91     99   
        #[allow(
   92    100   
            unused_variables,
   93    101   
            unreachable_code,
   94    102   
            clippy::single_match,
   95    103   
            clippy::match_single_binding,
   96    104   
            clippy::diverging_sub_expression
   97    105   
        )]
   98         -
        deserializer.read_struct(&LISTCONTRIBUTORINSIGHTSOUTPUT_SCHEMA, (), |_, member, deser| {
         106  +
        deserializer.read_struct(&LISTCONTRIBUTORINSIGHTSOUTPUT_SCHEMA, &mut |member, deser| {
   99    107   
            match member.member_index() {
  100    108   
                Some(0) => {
  101    109   
                    builder.contributor_insights_summaries = Some({
  102         -
                        let container = if let Some(cap) = deser.container_size() {
  103         -
                            Vec::with_capacity(cap)
  104         -
                        } else {
  105         -
                            Vec::new()
  106         -
                        };
  107         -
                        deser.read_list(member, container, |mut list, deser| {
  108         -
                            list.push(crate::types::ContributorInsightsSummary::deserialize(deser)?);
  109         -
                            Ok(list)
  110         -
                        })?
         110  +
                        let mut container = Vec::new();
         111  +
                        deser.read_list(member, &mut |deser| {
         112  +
                            container.push(crate::types::ContributorInsightsSummary::deserialize(deser)?);
         113  +
                            Ok(())
         114  +
                        })?;
         115  +
                        container
         116  +
                    });
         117  +
                }
         118  +
                Some(1) => {
         119  +
                    builder.next_token = Some(deser.read_string(member)?);
         120  +
                }
         121  +
                Some(2) => {
         122  +
                    builder._request_id = Some(deser.read_string(member)?);
         123  +
                }
         124  +
                _ => {}
         125  +
            }
         126  +
            Ok(())
         127  +
        })?;
         128  +
        Ok(builder.build())
         129  +
    }
         130  +
}
         131  +
impl ListContributorInsightsOutput {
         132  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         133  +
    /// Header-bound members are read directly from headers, avoiding runtime
         134  +
    /// member iteration overhead. Body members are read via the deserializer.
         135  +
    pub fn deserialize_with_response(
         136  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         137  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         138  +
        _status: u16,
         139  +
        _body: &[u8],
         140  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         141  +
        #[allow(unused_variables, unused_mut)]
         142  +
        let mut builder = Self::builder();
         143  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         144  +
            builder._request_id = Some(val.to_string());
         145  +
        }
         146  +
        #[allow(
         147  +
            unused_variables,
         148  +
            unreachable_code,
         149  +
            clippy::single_match,
         150  +
            clippy::match_single_binding,
         151  +
            clippy::diverging_sub_expression
         152  +
        )]
         153  +
        deserializer.read_struct(&LISTCONTRIBUTORINSIGHTSOUTPUT_SCHEMA, &mut |member, deser| {
         154  +
            match member.member_index() {
         155  +
                Some(0) => {
         156  +
                    builder.contributor_insights_summaries = Some({
         157  +
                        let mut container = Vec::new();
         158  +
                        deser.read_list(member, &mut |deser| {
         159  +
                            container.push(crate::types::ContributorInsightsSummary::deserialize(deser)?);
         160  +
                            Ok(())
         161  +
                        })?;
         162  +
                        container
  111    163   
                    });
  112    164   
                }
  113    165   
                Some(1) => {
  114    166   
                    builder.next_token = Some(deser.read_string(member)?);
  115    167   
                }
  116    168   
                _ => {}
  117    169   
            }
  118    170   
            Ok(())
  119    171   
        })?;
  120    172   
        Ok(builder.build())

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/list_exports.rs

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `ListExports`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListExports;
    6      6   
impl ListExports {
    7      7   
    /// Creates a new `ListExports`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_exports::ListExportsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_exports::ListExportsOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::list_exports::ListExportsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_exports::ListExportsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_exports::ListExportsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +242,303 @@
  135    139   
                crate::operation::list_exports::ListExportsError,
  136    140   
            >::new());
  137    141   
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct ListExportsResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListExportsResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150         -
        let headers = response.headers();
  151         -
        let body = response.body().bytes().expect("body loaded");
  152    155   
        #[allow(unused_mut)]
  153    156   
        let mut force_error = false;
  154    157   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155         -
        let parse_result = if !success && status != 200 || force_error {
  156         -
            crate::protocol_serde::shape_list_exports::de_list_exports_http_error(status, headers, body)
  157         -
        } else {
  158         -
            crate::protocol_serde::shape_list_exports::de_list_exports_http_response(status, headers, body)
         158  +
        if !success && status != 200 || force_error {
         159  +
            let headers = response.headers();
         160  +
            let body = response.body().bytes().expect("body loaded");
         161  +
            #[allow(unused_mut)]
         162  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         163  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         164  +
            })?;
         165  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         166  +
            let generic = generic_builder.build();
         167  +
            let error_code = match generic.code() {
         168  +
                ::std::option::Option::Some(code) => code,
         169  +
                ::std::option::Option::None => {
         170  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         171  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::list_exports::ListExportsError::unhandled(generic)),
         172  +
                    ))
         173  +
                }
         174  +
            };
         175  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         176  +
            let protocol = _cfg
         177  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         178  +
                .expect("a SharedClientProtocol is required");
         179  +
            let err = match error_code {
         180  +
                "InternalServerError" => crate::operation::list_exports::ListExportsError::InternalServerError({
         181  +
                    let mut tmp = match protocol
         182  +
                        .deserialize_response(response, crate::types::error::InternalServerError::SCHEMA, _cfg)
         183  +
                        .and_then(|mut deser| {
         184  +
                            crate::types::error::InternalServerError::deserialize_with_response(
         185  +
                                &mut *deser,
         186  +
                                response.headers(),
         187  +
                                response.status().into(),
         188  +
                                body,
         189  +
                            )
         190  +
                        }) {
         191  +
                        ::std::result::Result::Ok(val) => val,
         192  +
                        ::std::result::Result::Err(e) => {
         193  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         194  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         195  +
                            ))
         196  +
                        }
         197  +
                    };
         198  +
                    tmp.meta = generic;
         199  +
                    if tmp.message.is_none() {
         200  +
                        tmp.message = _error_message;
         201  +
                    }
         202  +
                    tmp
         203  +
                }),
         204  +
                "LimitExceededException" => crate::operation::list_exports::ListExportsError::LimitExceededException({
         205  +
                    let mut tmp = match protocol
         206  +
                        .deserialize_response(response, crate::types::error::LimitExceededException::SCHEMA, _cfg)
         207  +
                        .and_then(|mut deser| {
         208  +
                            crate::types::error::LimitExceededException::deserialize_with_response(
         209  +
                                &mut *deser,
         210  +
                                response.headers(),
         211  +
                                response.status().into(),
         212  +
                                body,
         213  +
                            )
         214  +
                        }) {
         215  +
                        ::std::result::Result::Ok(val) => val,
         216  +
                        ::std::result::Result::Err(e) => {
         217  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         218  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         219  +
                            ))
         220  +
                        }
         221  +
                    };
         222  +
                    tmp.meta = generic;
         223  +
                    if tmp.message.is_none() {
         224  +
                        tmp.message = _error_message;
         225  +
                    }
         226  +
                    tmp
         227  +
                }),
         228  +
                _ => crate::operation::list_exports::ListExportsError::generic(generic),
  159    229   
            };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         230  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         231  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         232  +
            ))
         233  +
        } else {
         234  +
            let protocol = _cfg
         235  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         236  +
                .expect("a SharedClientProtocol is required");
         237  +
            let mut deser = protocol.deserialize_response(response, ListExports::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         238  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         239  +
            })?;
         240  +
            let body = response.body().bytes().expect("body loaded");
         241  +
            let output = crate::operation::list_exports::ListExportsOutput::deserialize_with_response(
         242  +
                &mut *deser,
         243  +
                response.headers(),
         244  +
                response.status().into(),
         245  +
                body,
         246  +
            )
         247  +
            .map_err(|e| {
         248  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         249  +
            })?;
         250  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         251  +
        }
  161    252   
    }
  162    253   
}
  163    254   
#[derive(Debug)]
  164    255   
struct ListExportsRequestSerializer;
  165    256   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListExportsRequestSerializer {
  166    257   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  167    258   
    fn serialize_input(
  168    259   
        &self,
  169    260   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  170    261   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  171    262   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  172    263   
        let input = input
  173    264   
            .downcast::<crate::operation::list_exports::ListExportsInput>()
  174    265   
            .expect("correct type");
  175         -
        let _header_serialization_settings = _cfg
  176         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  177         -
            .cloned()
  178         -
            .unwrap_or_default();
  179         -
        let mut request_builder = {
  180         -
            #[allow(clippy::uninlined_format_args)]
  181         -
            fn uri_base(
  182         -
                _input: &crate::operation::list_exports::ListExportsInput,
  183         -
                output: &mut ::std::string::String,
  184         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  185         -
                use ::std::fmt::Write as _;
  186         -
                ::std::write!(output, "/").expect("formatting should succeed");
  187         -
                ::std::result::Result::Ok(())
  188         -
            }
  189         -
            #[allow(clippy::unnecessary_wraps)]
  190         -
            fn update_http_builder(
  191         -
                input: &crate::operation::list_exports::ListExportsInput,
  192         -
                builder: ::http_1x::request::Builder,
  193         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  194         -
                let mut uri = ::std::string::String::new();
  195         -
                uri_base(input, &mut uri)?;
  196         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  197         -
            }
  198         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  199         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  200         -
            builder = _header_serialization_settings.set_default_header(
  201         -
                builder,
  202         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  203         -
                "DynamoDB_20120810.ListExports",
  204         -
            );
  205         -
            builder
  206         -
        };
  207         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_list_exports::ser_list_exports_input(&input)?);
  208         -
        if let Some(content_length) = body.content_length() {
  209         -
            let content_length = content_length.to_string();
  210         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  211         -
        }
  212         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         266  +
        let protocol = _cfg
         267  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         268  +
            .expect("a SharedClientProtocol is required");
         269  +
        let mut request = protocol
         270  +
            .serialize_request(&input, ListExports::INPUT_SCHEMA, "", _cfg)
         271  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         272  +
         273  +
        return ::std::result::Result::Ok(request);
  213    274   
    }
  214    275   
}
  215    276   
#[derive(Debug)]
  216    277   
struct ListExportsEndpointParamsInterceptor;
  217    278   
  218    279   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListExportsEndpointParamsInterceptor {
  219    280   
    fn name(&self) -> &'static str {
  220    281   
        "ListExportsEndpointParamsInterceptor"
  221    282   
    }
  222    283   

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/list_exports/_list_exports_input.rs

@@ -9,9 +156,167 @@
   29     29   
    "com.amazonaws.dynamodb.synthetic",
   30     30   
    "ListExportsInput",
   31     31   
);
   32     32   
static LISTEXPORTSINPUT_MEMBER_TABLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   33     33   
    ::aws_smithy_schema::ShapeId::from_static(
   34     34   
        "com.amazonaws.dynamodb.synthetic#ListExportsInput$TableArn",
   35     35   
        "com.amazonaws.dynamodb.synthetic",
   36     36   
        "ListExportsInput",
   37     37   
    ),
   38     38   
    ::aws_smithy_schema::ShapeType::String,
   39         -
    "table_arn",
          39  +
    "TableArn",
   40     40   
    0,
   41     41   
);
   42     42   
static LISTEXPORTSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   43     43   
    ::aws_smithy_schema::ShapeId::from_static(
   44     44   
        "com.amazonaws.dynamodb.synthetic#ListExportsInput$MaxResults",
   45     45   
        "com.amazonaws.dynamodb.synthetic",
   46     46   
        "ListExportsInput",
   47     47   
    ),
   48     48   
    ::aws_smithy_schema::ShapeType::Integer,
   49         -
    "max_results",
          49  +
    "MaxResults",
   50     50   
    1,
   51     51   
);
   52     52   
static LISTEXPORTSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   53     53   
    ::aws_smithy_schema::ShapeId::from_static(
   54     54   
        "com.amazonaws.dynamodb.synthetic#ListExportsInput$NextToken",
   55     55   
        "com.amazonaws.dynamodb.synthetic",
   56     56   
        "ListExportsInput",
   57     57   
    ),
   58     58   
    ::aws_smithy_schema::ShapeType::String,
   59         -
    "next_token",
          59  +
    "NextToken",
   60     60   
    2,
   61     61   
);
   62     62   
static LISTEXPORTSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   63     63   
    LISTEXPORTSINPUT_SCHEMA_ID,
   64     64   
    ::aws_smithy_schema::ShapeType::Structure,
   65     65   
    &[
   66     66   
        &LISTEXPORTSINPUT_MEMBER_TABLE_ARN,
   67     67   
        &LISTEXPORTSINPUT_MEMBER_MAX_RESULTS,
   68     68   
        &LISTEXPORTSINPUT_MEMBER_NEXT_TOKEN,
   69     69   
    ],
   70     70   
);
   71     71   
impl ListExportsInput {
   72     72   
    /// The schema for this shape.
   73     73   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTEXPORTSINPUT_SCHEMA;
   74     74   
}
   75     75   
impl ::aws_smithy_schema::serde::SerializableStruct for ListExportsInput {
   76     76   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   77     77   
    fn serialize_members(
   78     78   
        &self,
   79     79   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   80     80   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   81     81   
        if let Some(ref val) = self.table_arn {
   82     82   
            ser.write_string(&LISTEXPORTSINPUT_MEMBER_TABLE_ARN, val)?;
   83     83   
        }
   84     84   
        if let Some(ref val) = self.max_results {
   85     85   
            ser.write_integer(&LISTEXPORTSINPUT_MEMBER_MAX_RESULTS, *val)?;
   86     86   
        }
   87     87   
        if let Some(ref val) = self.next_token {
   88     88   
            ser.write_string(&LISTEXPORTSINPUT_MEMBER_NEXT_TOKEN, val)?;
   89     89   
        }
   90     90   
        Ok(())
   91     91   
    }
   92     92   
}
   93     93   
impl ListExportsInput {
   94     94   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   95         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   96         -
        deserializer: &mut D,
          95  +
    pub fn deserialize(
          96  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   97     97   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   98     98   
        #[allow(unused_variables, unused_mut)]
   99     99   
        let mut builder = Self::builder();
  100    100   
        #[allow(
  101    101   
            unused_variables,
  102    102   
            unreachable_code,
  103    103   
            clippy::single_match,
  104    104   
            clippy::match_single_binding,
  105    105   
            clippy::diverging_sub_expression
  106    106   
        )]
  107         -
        deserializer.read_struct(&LISTEXPORTSINPUT_SCHEMA, (), |_, member, deser| {
         107  +
        deserializer.read_struct(&LISTEXPORTSINPUT_SCHEMA, &mut |member, deser| {
  108    108   
            match member.member_index() {
  109    109   
                Some(0) => {
  110    110   
                    builder.table_arn = Some(deser.read_string(member)?);
  111    111   
                }
  112    112   
                Some(1) => {
  113    113   
                    builder.max_results = Some(deser.read_integer(member)?);
  114    114   
                }
  115    115   
                Some(2) => {
  116    116   
                    builder.next_token = Some(deser.read_string(member)?);
  117    117   
                }
  118    118   
                _ => {}
  119    119   
            }
  120    120   
            Ok(())
  121    121   
        })?;
  122    122   
        builder
  123    123   
            .build()
  124    124   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  125    125   
    }
  126    126   
}
         127  +
impl ListExportsInput {
         128  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         129  +
    pub fn deserialize_with_response(
         130  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         131  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         132  +
        _status: u16,
         133  +
        _body: &[u8],
         134  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         135  +
        Self::deserialize(deserializer)
         136  +
    }
         137  +
}
  127    138   
impl ListExportsInput {
  128    139   
    /// Creates a new builder-style object to manufacture [`ListExportsInput`](crate::operation::list_exports::ListExportsInput).
  129    140   
    pub fn builder() -> crate::operation::list_exports::builders::ListExportsInputBuilder {
  130    141   
        crate::operation::list_exports::builders::ListExportsInputBuilder::default()
  131    142   
    }
  132    143   
}
  133    144   
  134    145   
/// A builder for [`ListExportsInput`](crate::operation::list_exports::ListExportsInput).
  135    146   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  136    147   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/list_exports/_list_exports_output.rs

@@ -6,6 +137,192 @@
   26     26   
    "com.amazonaws.dynamodb.synthetic",
   27     27   
    "ListExportsOutput",
   28     28   
);
   29     29   
static LISTEXPORTSOUTPUT_MEMBER_EXPORT_SUMMARIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.dynamodb.synthetic#ListExportsOutput$ExportSummaries",
   32     32   
        "com.amazonaws.dynamodb.synthetic",
   33     33   
        "ListExportsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "export_summaries",
          36  +
    "ExportSummaries",
   37     37   
    0,
   38     38   
);
   39     39   
static LISTEXPORTSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   40     40   
    ::aws_smithy_schema::ShapeId::from_static(
   41     41   
        "com.amazonaws.dynamodb.synthetic#ListExportsOutput$NextToken",
   42     42   
        "com.amazonaws.dynamodb.synthetic",
   43     43   
        "ListExportsOutput",
   44     44   
    ),
   45     45   
    ::aws_smithy_schema::ShapeType::String,
   46         -
    "next_token",
          46  +
    "NextToken",
   47     47   
    1,
   48     48   
);
          49  +
static LISTEXPORTSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          50  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          51  +
    ::aws_smithy_schema::ShapeType::String,
          52  +
    "request_id",
          53  +
    2,
          54  +
)
          55  +
.with_http_header("x-amzn-requestid");
   49     56   
static LISTEXPORTSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    LISTEXPORTSOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52         -
    &[&LISTEXPORTSOUTPUT_MEMBER_EXPORT_SUMMARIES, &LISTEXPORTSOUTPUT_MEMBER_NEXT_TOKEN],
          59  +
    &[
          60  +
        &LISTEXPORTSOUTPUT_MEMBER_EXPORT_SUMMARIES,
          61  +
        &LISTEXPORTSOUTPUT_MEMBER_NEXT_TOKEN,
          62  +
        &LISTEXPORTSOUTPUT_MEMBER__REQUEST_ID,
          63  +
    ],
   53     64   
);
   54     65   
impl ListExportsOutput {
   55     66   
    /// The schema for this shape.
   56     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTEXPORTSOUTPUT_SCHEMA;
   57     68   
}
   58     69   
impl ::aws_smithy_schema::serde::SerializableStruct for ListExportsOutput {
   59     70   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   60     71   
    fn serialize_members(
   61     72   
        &self,
   62     73   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   63     74   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   64     75   
        if let Some(ref val) = self.export_summaries {
   65     76   
            ser.write_list(
   66     77   
                &LISTEXPORTSOUTPUT_MEMBER_EXPORT_SUMMARIES,
   67     78   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   68     79   
                    for item in val {
   69     80   
                        ser.write_struct(crate::types::ExportSummary::SCHEMA, item)?;
   70     81   
                    }
   71     82   
                    Ok(())
   72     83   
                },
   73     84   
            )?;
   74     85   
        }
   75     86   
        if let Some(ref val) = self.next_token {
   76     87   
            ser.write_string(&LISTEXPORTSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   77     88   
        }
   78     89   
        Ok(())
   79     90   
    }
   80     91   
}
   81     92   
impl ListExportsOutput {
   82     93   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   83         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   84         -
        deserializer: &mut D,
          94  +
    pub fn deserialize(
          95  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          96  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          97  +
        #[allow(unused_variables, unused_mut)]
          98  +
        let mut builder = Self::builder();
          99  +
        #[allow(
         100  +
            unused_variables,
         101  +
            unreachable_code,
         102  +
            clippy::single_match,
         103  +
            clippy::match_single_binding,
         104  +
            clippy::diverging_sub_expression
         105  +
        )]
         106  +
        deserializer.read_struct(&LISTEXPORTSOUTPUT_SCHEMA, &mut |member, deser| {
         107  +
            match member.member_index() {
         108  +
                Some(0) => {
         109  +
                    builder.export_summaries = Some({
         110  +
                        let mut container = Vec::new();
         111  +
                        deser.read_list(member, &mut |deser| {
         112  +
                            container.push(crate::types::ExportSummary::deserialize(deser)?);
         113  +
                            Ok(())
         114  +
                        })?;
         115  +
                        container
         116  +
                    });
         117  +
                }
         118  +
                Some(1) => {
         119  +
                    builder.next_token = Some(deser.read_string(member)?);
         120  +
                }
         121  +
                Some(2) => {
         122  +
                    builder._request_id = Some(deser.read_string(member)?);
         123  +
                }
         124  +
                _ => {}
         125  +
            }
         126  +
            Ok(())
         127  +
        })?;
         128  +
        Ok(builder.build())
         129  +
    }
         130  +
}
         131  +
impl ListExportsOutput {
         132  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         133  +
    /// Header-bound members are read directly from headers, avoiding runtime
         134  +
    /// member iteration overhead. Body members are read via the deserializer.
         135  +
    pub fn deserialize_with_response(
         136  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         137  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         138  +
        _status: u16,
         139  +
        _body: &[u8],
   85    140   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   86    141   
        #[allow(unused_variables, unused_mut)]
   87    142   
        let mut builder = Self::builder();
         143  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         144  +
            builder._request_id = Some(val.to_string());
         145  +
        }
   88    146   
        #[allow(
   89    147   
            unused_variables,
   90    148   
            unreachable_code,
   91    149   
            clippy::single_match,
   92    150   
            clippy::match_single_binding,
   93    151   
            clippy::diverging_sub_expression
   94    152   
        )]
   95         -
        deserializer.read_struct(&LISTEXPORTSOUTPUT_SCHEMA, (), |_, member, deser| {
         153  +
        deserializer.read_struct(&LISTEXPORTSOUTPUT_SCHEMA, &mut |member, deser| {
   96    154   
            match member.member_index() {
   97    155   
                Some(0) => {
   98    156   
                    builder.export_summaries = Some({
   99         -
                        let container = if let Some(cap) = deser.container_size() {
  100         -
                            Vec::with_capacity(cap)
  101         -
                        } else {
  102         -
                            Vec::new()
  103         -
                        };
  104         -
                        deser.read_list(member, container, |mut list, deser| {
  105         -
                            list.push(crate::types::ExportSummary::deserialize(deser)?);
  106         -
                            Ok(list)
  107         -
                        })?
         157  +
                        let mut container = Vec::new();
         158  +
                        deser.read_list(member, &mut |deser| {
         159  +
                            container.push(crate::types::ExportSummary::deserialize(deser)?);
         160  +
                            Ok(())
         161  +
                        })?;
         162  +
                        container
  108    163   
                    });
  109    164   
                }
  110    165   
                Some(1) => {
  111    166   
                    builder.next_token = Some(deser.read_string(member)?);
  112    167   
                }
  113    168   
                _ => {}
  114    169   
            }
  115    170   
            Ok(())
  116    171   
        })?;
  117    172   
        Ok(builder.build())