AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406 (ignoring whitespace)

Files changed:

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

@@ -61,61 +221,221 @@
   81     81   
    "com.amazonaws.dynamodb.synthetic",
   82     82   
    "RestoreTableToPointInTimeInput",
   83     83   
);
   84     84   
static RESTORETABLETOPOINTINTIMEINPUT_MEMBER_SOURCE_TABLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static(
   86     86   
        "com.amazonaws.dynamodb.synthetic#RestoreTableToPointInTimeInput$SourceTableArn",
   87     87   
        "com.amazonaws.dynamodb.synthetic",
   88     88   
        "RestoreTableToPointInTimeInput",
   89     89   
    ),
   90     90   
    ::aws_smithy_schema::ShapeType::String,
   91         -
    "source_table_arn",
          91  +
    "SourceTableArn",
   92     92   
    0,
   93     93   
);
   94     94   
static RESTORETABLETOPOINTINTIMEINPUT_MEMBER_SOURCE_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.dynamodb.synthetic#RestoreTableToPointInTimeInput$SourceTableName",
   97     97   
        "com.amazonaws.dynamodb.synthetic",
   98     98   
        "RestoreTableToPointInTimeInput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::String,
  101         -
    "source_table_name",
         101  +
    "SourceTableName",
  102    102   
    1,
  103    103   
);
  104    104   
static RESTORETABLETOPOINTINTIMEINPUT_MEMBER_TARGET_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  105    105   
    ::aws_smithy_schema::ShapeId::from_static(
  106    106   
        "com.amazonaws.dynamodb.synthetic#RestoreTableToPointInTimeInput$TargetTableName",
  107    107   
        "com.amazonaws.dynamodb.synthetic",
  108    108   
        "RestoreTableToPointInTimeInput",
  109    109   
    ),
  110    110   
    ::aws_smithy_schema::ShapeType::String,
  111         -
    "target_table_name",
         111  +
    "TargetTableName",
  112    112   
    2,
  113    113   
);
  114    114   
static RESTORETABLETOPOINTINTIMEINPUT_MEMBER_USE_LATEST_RESTORABLE_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  115    115   
    ::aws_smithy_schema::ShapeId::from_static(
  116    116   
        "com.amazonaws.dynamodb.synthetic#RestoreTableToPointInTimeInput$UseLatestRestorableTime",
  117    117   
        "com.amazonaws.dynamodb.synthetic",
  118    118   
        "RestoreTableToPointInTimeInput",
  119    119   
    ),
  120    120   
    ::aws_smithy_schema::ShapeType::Boolean,
  121         -
    "use_latest_restorable_time",
         121  +
    "UseLatestRestorableTime",
  122    122   
    3,
  123    123   
);
  124    124   
static RESTORETABLETOPOINTINTIMEINPUT_MEMBER_RESTORE_DATE_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  125    125   
    ::aws_smithy_schema::ShapeId::from_static(
  126    126   
        "com.amazonaws.dynamodb.synthetic#RestoreTableToPointInTimeInput$RestoreDateTime",
  127    127   
        "com.amazonaws.dynamodb.synthetic",
  128    128   
        "RestoreTableToPointInTimeInput",
  129    129   
    ),
  130    130   
    ::aws_smithy_schema::ShapeType::Timestamp,
  131         -
    "restore_date_time",
         131  +
    "RestoreDateTime",
  132    132   
    4,
  133    133   
);
  134    134   
static RESTORETABLETOPOINTINTIMEINPUT_MEMBER_BILLING_MODE_OVERRIDE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  135    135   
    ::aws_smithy_schema::ShapeId::from_static(
  136    136   
        "com.amazonaws.dynamodb.synthetic#RestoreTableToPointInTimeInput$BillingModeOverride",
  137    137   
        "com.amazonaws.dynamodb.synthetic",
  138    138   
        "RestoreTableToPointInTimeInput",
  139    139   
    ),
  140    140   
    ::aws_smithy_schema::ShapeType::String,
  141         -
    "billing_mode_override",
         141  +
    "BillingModeOverride",
  142    142   
    5,
  143    143   
);
  144    144   
static RESTORETABLETOPOINTINTIMEINPUT_MEMBER_GLOBAL_SECONDARY_INDEX_OVERRIDE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  145    145   
    ::aws_smithy_schema::ShapeId::from_static(
  146    146   
        "com.amazonaws.dynamodb.synthetic#RestoreTableToPointInTimeInput$GlobalSecondaryIndexOverride",
  147    147   
        "com.amazonaws.dynamodb.synthetic",
  148    148   
        "RestoreTableToPointInTimeInput",
  149    149   
    ),
  150    150   
    ::aws_smithy_schema::ShapeType::List,
  151         -
    "global_secondary_index_override",
         151  +
    "GlobalSecondaryIndexOverride",
  152    152   
    6,
  153    153   
);
  154    154   
static RESTORETABLETOPOINTINTIMEINPUT_MEMBER_LOCAL_SECONDARY_INDEX_OVERRIDE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  155    155   
    ::aws_smithy_schema::ShapeId::from_static(
  156    156   
        "com.amazonaws.dynamodb.synthetic#RestoreTableToPointInTimeInput$LocalSecondaryIndexOverride",
  157    157   
        "com.amazonaws.dynamodb.synthetic",
  158    158   
        "RestoreTableToPointInTimeInput",
  159    159   
    ),
  160    160   
    ::aws_smithy_schema::ShapeType::List,
  161         -
    "local_secondary_index_override",
         161  +
    "LocalSecondaryIndexOverride",
  162    162   
    7,
  163    163   
);
  164    164   
static RESTORETABLETOPOINTINTIMEINPUT_MEMBER_PROVISIONED_THROUGHPUT_OVERRIDE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  165    165   
    ::aws_smithy_schema::ShapeId::from_static(
  166    166   
        "com.amazonaws.dynamodb.synthetic#RestoreTableToPointInTimeInput$ProvisionedThroughputOverride",
  167    167   
        "com.amazonaws.dynamodb.synthetic",
  168    168   
        "RestoreTableToPointInTimeInput",
  169    169   
    ),
  170    170   
    ::aws_smithy_schema::ShapeType::Structure,
  171         -
    "provisioned_throughput_override",
         171  +
    "ProvisionedThroughputOverride",
  172    172   
    8,
  173    173   
);
  174    174   
static RESTORETABLETOPOINTINTIMEINPUT_MEMBER_ON_DEMAND_THROUGHPUT_OVERRIDE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  175    175   
    ::aws_smithy_schema::ShapeId::from_static(
  176    176   
        "com.amazonaws.dynamodb.synthetic#RestoreTableToPointInTimeInput$OnDemandThroughputOverride",
  177    177   
        "com.amazonaws.dynamodb.synthetic",
  178    178   
        "RestoreTableToPointInTimeInput",
  179    179   
    ),
  180    180   
    ::aws_smithy_schema::ShapeType::Structure,
  181         -
    "on_demand_throughput_override",
         181  +
    "OnDemandThroughputOverride",
  182    182   
    9,
  183    183   
);
  184    184   
static RESTORETABLETOPOINTINTIMEINPUT_MEMBER_SSE_SPECIFICATION_OVERRIDE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  185    185   
    ::aws_smithy_schema::ShapeId::from_static(
  186    186   
        "com.amazonaws.dynamodb.synthetic#RestoreTableToPointInTimeInput$SSESpecificationOverride",
  187    187   
        "com.amazonaws.dynamodb.synthetic",
  188    188   
        "RestoreTableToPointInTimeInput",
  189    189   
    ),
  190    190   
    ::aws_smithy_schema::ShapeType::Structure,
  191         -
    "sse_specification_override",
         191  +
    "SSESpecificationOverride",
  192    192   
    10,
  193    193   
);
  194    194   
static RESTORETABLETOPOINTINTIMEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  195    195   
    RESTORETABLETOPOINTINTIMEINPUT_SCHEMA_ID,
  196    196   
    ::aws_smithy_schema::ShapeType::Structure,
  197    197   
    &[
  198    198   
        &RESTORETABLETOPOINTINTIMEINPUT_MEMBER_SOURCE_TABLE_ARN,
  199    199   
        &RESTORETABLETOPOINTINTIMEINPUT_MEMBER_SOURCE_TABLE_NAME,
  200    200   
        &RESTORETABLETOPOINTINTIMEINPUT_MEMBER_TARGET_TABLE_NAME,
  201    201   
        &RESTORETABLETOPOINTINTIMEINPUT_MEMBER_USE_LATEST_RESTORABLE_TIME,
@@ -245,245 +380,386 @@
  265    265   
            ser.write_struct(&RESTORETABLETOPOINTINTIMEINPUT_MEMBER_ON_DEMAND_THROUGHPUT_OVERRIDE, val)?;
  266    266   
        }
  267    267   
        if let Some(ref val) = self.sse_specification_override {
  268    268   
            ser.write_struct(&RESTORETABLETOPOINTINTIMEINPUT_MEMBER_SSE_SPECIFICATION_OVERRIDE, val)?;
  269    269   
        }
  270    270   
        Ok(())
  271    271   
    }
  272    272   
}
  273    273   
impl RestoreTableToPointInTimeInput {
  274    274   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  275         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  276         -
        deserializer: &mut D,
         275  +
    pub fn deserialize(
         276  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  277    277   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  278    278   
        #[allow(unused_variables, unused_mut)]
  279    279   
        let mut builder = Self::builder();
  280    280   
        #[allow(
  281    281   
            unused_variables,
  282    282   
            unreachable_code,
  283    283   
            clippy::single_match,
  284    284   
            clippy::match_single_binding,
  285    285   
            clippy::diverging_sub_expression
  286    286   
        )]
  287         -
        deserializer.read_struct(&RESTORETABLETOPOINTINTIMEINPUT_SCHEMA, (), |_, member, deser| {
         287  +
        deserializer.read_struct(&RESTORETABLETOPOINTINTIMEINPUT_SCHEMA, &mut |member, deser| {
  288    288   
            match member.member_index() {
  289    289   
                Some(0) => {
  290    290   
                    builder.source_table_arn = Some(deser.read_string(member)?);
  291    291   
                }
  292    292   
                Some(1) => {
  293    293   
                    builder.source_table_name = Some(deser.read_string(member)?);
  294    294   
                }
  295    295   
                Some(2) => {
  296    296   
                    builder.target_table_name = Some(deser.read_string(member)?);
  297    297   
                }
  298    298   
                Some(3) => {
  299    299   
                    builder.use_latest_restorable_time = Some(deser.read_boolean(member)?);
  300    300   
                }
  301    301   
                Some(4) => {
  302    302   
                    builder.restore_date_time = Some(deser.read_timestamp(member)?);
  303    303   
                }
  304    304   
                Some(5) => {
  305    305   
                    builder.billing_mode_override = Some(crate::types::BillingMode::from(deser.read_string(member)?.as_str()));
  306    306   
                }
  307    307   
                Some(6) => {
  308    308   
                    builder.global_secondary_index_override = Some({
  309         -
                        let container = if let Some(cap) = deser.container_size() {
  310         -
                            Vec::with_capacity(cap)
  311         -
                        } else {
  312         -
                            Vec::new()
  313         -
                        };
  314         -
                        deser.read_list(member, container, |mut list, deser| {
  315         -
                            list.push(crate::types::GlobalSecondaryIndex::deserialize(deser)?);
  316         -
                            Ok(list)
  317         -
                        })?
         309  +
                        let mut container = Vec::new();
         310  +
                        deser.read_list(member, &mut |deser| {
         311  +
                            container.push(crate::types::GlobalSecondaryIndex::deserialize(deser)?);
         312  +
                            Ok(())
         313  +
                        })?;
         314  +
                        container
  318    315   
                    });
  319    316   
                }
  320    317   
                Some(7) => {
  321    318   
                    builder.local_secondary_index_override = Some({
  322         -
                        let container = if let Some(cap) = deser.container_size() {
  323         -
                            Vec::with_capacity(cap)
  324         -
                        } else {
  325         -
                            Vec::new()
  326         -
                        };
  327         -
                        deser.read_list(member, container, |mut list, deser| {
  328         -
                            list.push(crate::types::LocalSecondaryIndex::deserialize(deser)?);
  329         -
                            Ok(list)
  330         -
                        })?
         319  +
                        let mut container = Vec::new();
         320  +
                        deser.read_list(member, &mut |deser| {
         321  +
                            container.push(crate::types::LocalSecondaryIndex::deserialize(deser)?);
         322  +
                            Ok(())
         323  +
                        })?;
         324  +
                        container
  331    325   
                    });
  332    326   
                }
  333    327   
                Some(8) => {
  334    328   
                    builder.provisioned_throughput_override = Some(crate::types::ProvisionedThroughput::deserialize(deser)?);
  335    329   
                }
  336    330   
                Some(9) => {
  337    331   
                    builder.on_demand_throughput_override = Some(crate::types::OnDemandThroughput::deserialize(deser)?);
  338    332   
                }
  339    333   
                Some(10) => {
  340    334   
                    builder.sse_specification_override = Some(crate::types::SseSpecification::deserialize(deser)?);
  341    335   
                }
  342    336   
                _ => {}
  343    337   
            }
  344    338   
            Ok(())
  345    339   
        })?;
         340  +
        builder.target_table_name = builder.target_table_name.or(Some(String::new()));
  346    341   
        builder
  347    342   
            .build()
  348    343   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  349    344   
    }
  350    345   
}
         346  +
impl RestoreTableToPointInTimeInput {
         347  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         348  +
    pub fn deserialize_with_response(
         349  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         350  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         351  +
        _status: u16,
         352  +
        _body: &[u8],
         353  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         354  +
        Self::deserialize(deserializer)
         355  +
    }
         356  +
}
  351    357   
impl RestoreTableToPointInTimeInput {
  352    358   
    /// Creates a new builder-style object to manufacture [`RestoreTableToPointInTimeInput`](crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeInput).
  353    359   
    pub fn builder() -> crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeInputBuilder {
  354    360   
        crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeInputBuilder::default()
  355    361   
    }
  356    362   
}
  357    363   
  358    364   
/// A builder for [`RestoreTableToPointInTimeInput`](crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeInput).
  359    365   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  360    366   
#[non_exhaustive]

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

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

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/scan.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 `Scan`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct Scan;
    6      6   
impl Scan {
    7      7   
    /// Creates a new `Scan`
    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::scan::ScanInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::scan::ScanOutput::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::scan::ScanInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::scan::ScanOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::scan::ScanError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -106,110 +231,386 @@
  126    130   
                crate::operation::scan::ScanError,
  127    131   
            >::new());
  128    132   
  129    133   
        ::std::borrow::Cow::Owned(rcb)
  130    134   
    }
  131    135   
}
  132    136   
  133    137   
#[derive(Debug)]
  134    138   
struct ScanResponseDeserializer;
  135    139   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ScanResponseDeserializer {
  136         -
    fn deserialize_nonstreaming(
         140  +
    fn deserialize_nonstreaming_with_config(
  137    141   
        &self,
  138    142   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         143  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  139    144   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  140    145   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  141         -
        let headers = response.headers();
  142         -
        let body = response.body().bytes().expect("body loaded");
  143    146   
        #[allow(unused_mut)]
  144    147   
        let mut force_error = false;
  145    148   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  146         -
        let parse_result = if !success && status != 200 || force_error {
  147         -
            crate::protocol_serde::shape_scan::de_scan_http_error(status, headers, body)
  148         -
        } else {
  149         -
            crate::protocol_serde::shape_scan::de_scan_http_response(status, headers, body)
         149  +
        if !success && status != 200 || force_error {
         150  +
            let headers = response.headers();
         151  +
            let body = response.body().bytes().expect("body loaded");
         152  +
            #[allow(unused_mut)]
         153  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         154  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         155  +
            })?;
         156  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         157  +
            let generic = generic_builder.build();
         158  +
            let error_code = match generic.code() {
         159  +
                ::std::option::Option::Some(code) => code,
         160  +
                ::std::option::Option::None => {
         161  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         162  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::scan::ScanError::unhandled(generic)),
         163  +
                    ))
         164  +
                }
         165  +
            };
         166  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         167  +
            let protocol = _cfg
         168  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         169  +
                .expect("a SharedClientProtocol is required");
         170  +
            let err = match error_code {
         171  +
                "InternalServerError" => crate::operation::scan::ScanError::InternalServerError({
         172  +
                    let mut tmp = match protocol
         173  +
                        .deserialize_response(response, crate::types::error::InternalServerError::SCHEMA, _cfg)
         174  +
                        .and_then(|mut deser| {
         175  +
                            crate::types::error::InternalServerError::deserialize_with_response(
         176  +
                                &mut *deser,
         177  +
                                response.headers(),
         178  +
                                response.status().into(),
         179  +
                                body,
         180  +
                            )
         181  +
                        }) {
         182  +
                        ::std::result::Result::Ok(val) => val,
         183  +
                        ::std::result::Result::Err(e) => {
         184  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         185  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         186  +
                            ))
         187  +
                        }
         188  +
                    };
         189  +
                    tmp.meta = generic;
         190  +
                    if tmp.message.is_none() {
         191  +
                        tmp.message = _error_message;
         192  +
                    }
         193  +
                    tmp
         194  +
                }),
         195  +
                "InvalidEndpointException" => crate::operation::scan::ScanError::InvalidEndpointException({
         196  +
                    let mut tmp = match protocol
         197  +
                        .deserialize_response(response, crate::types::error::InvalidEndpointException::SCHEMA, _cfg)
         198  +
                        .and_then(|mut deser| {
         199  +
                            crate::types::error::InvalidEndpointException::deserialize_with_response(
         200  +
                                &mut *deser,
         201  +
                                response.headers(),
         202  +
                                response.status().into(),
         203  +
                                body,
         204  +
                            )
         205  +
                        }) {
         206  +
                        ::std::result::Result::Ok(val) => val,
         207  +
                        ::std::result::Result::Err(e) => {
         208  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         209  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         210  +
                            ))
         211  +
                        }
         212  +
                    };
         213  +
                    tmp.meta = generic;
         214  +
                    if tmp.message.is_none() {
         215  +
                        tmp.message = _error_message;
         216  +
                    }
         217  +
                    tmp
         218  +
                }),
         219  +
                "ProvisionedThroughputExceededException" => crate::operation::scan::ScanError::ProvisionedThroughputExceededException({
         220  +
                    let mut tmp = match protocol
         221  +
                        .deserialize_response(response, crate::types::error::ProvisionedThroughputExceededException::SCHEMA, _cfg)
         222  +
                        .and_then(|mut deser| {
         223  +
                            crate::types::error::ProvisionedThroughputExceededException::deserialize_with_response(
         224  +
                                &mut *deser,
         225  +
                                response.headers(),
         226  +
                                response.status().into(),
         227  +
                                body,
         228  +
                            )
         229  +
                        }) {
         230  +
                        ::std::result::Result::Ok(val) => val,
         231  +
                        ::std::result::Result::Err(e) => {
         232  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         233  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         234  +
                            ))
         235  +
                        }
         236  +
                    };
         237  +
                    tmp.meta = generic;
         238  +
                    if tmp.message.is_none() {
         239  +
                        tmp.message = _error_message;
         240  +
                    }
         241  +
                    tmp
         242  +
                }),
         243  +
                "RequestLimitExceeded" => crate::operation::scan::ScanError::RequestLimitExceeded({
         244  +
                    let mut tmp = match protocol
         245  +
                        .deserialize_response(response, crate::types::error::RequestLimitExceeded::SCHEMA, _cfg)
         246  +
                        .and_then(|mut deser| {
         247  +
                            crate::types::error::RequestLimitExceeded::deserialize_with_response(
         248  +
                                &mut *deser,
         249  +
                                response.headers(),
         250  +
                                response.status().into(),
         251  +
                                body,
         252  +
                            )
         253  +
                        }) {
         254  +
                        ::std::result::Result::Ok(val) => val,
         255  +
                        ::std::result::Result::Err(e) => {
         256  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         257  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         258  +
                            ))
         259  +
                        }
  150    260   
                    };
  151         -
        crate::protocol_serde::type_erase_result(parse_result)
         261  +
                    tmp.meta = generic;
         262  +
                    if tmp.message.is_none() {
         263  +
                        tmp.message = _error_message;
         264  +
                    }
         265  +
                    tmp
         266  +
                }),
         267  +
                "ResourceNotFoundException" => crate::operation::scan::ScanError::ResourceNotFoundException({
         268  +
                    let mut tmp = match protocol
         269  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         270  +
                        .and_then(|mut deser| {
         271  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         272  +
                                &mut *deser,
         273  +
                                response.headers(),
         274  +
                                response.status().into(),
         275  +
                                body,
         276  +
                            )
         277  +
                        }) {
         278  +
                        ::std::result::Result::Ok(val) => val,
         279  +
                        ::std::result::Result::Err(e) => {
         280  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         281  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         282  +
                            ))
         283  +
                        }
         284  +
                    };
         285  +
                    tmp.meta = generic;
         286  +
                    if tmp.message.is_none() {
         287  +
                        tmp.message = _error_message;
         288  +
                    }
         289  +
                    tmp
         290  +
                }),
         291  +
                "ThrottlingException" => crate::operation::scan::ScanError::ThrottlingException({
         292  +
                    let mut tmp = match protocol
         293  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         294  +
                        .and_then(|mut deser| {
         295  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         296  +
                                &mut *deser,
         297  +
                                response.headers(),
         298  +
                                response.status().into(),
         299  +
                                body,
         300  +
                            )
         301  +
                        }) {
         302  +
                        ::std::result::Result::Ok(val) => val,
         303  +
                        ::std::result::Result::Err(e) => {
         304  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         305  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         306  +
                            ))
         307  +
                        }
         308  +
                    };
         309  +
                    tmp.meta = generic;
         310  +
                    if tmp.message.is_none() {
         311  +
                        tmp.message = _error_message;
         312  +
                    }
         313  +
                    tmp
         314  +
                }),
         315  +
                _ => crate::operation::scan::ScanError::generic(generic),
         316  +
            };
         317  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         318  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         319  +
            ))
         320  +
        } else {
         321  +
            let protocol = _cfg
         322  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         323  +
                .expect("a SharedClientProtocol is required");
         324  +
            let mut deser = protocol.deserialize_response(response, Scan::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         325  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         326  +
            })?;
         327  +
            let body = response.body().bytes().expect("body loaded");
         328  +
            let output =
         329  +
                crate::operation::scan::ScanOutput::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body)
         330  +
                    .map_err(|e| {
         331  +
                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
         332  +
                            e,
         333  +
                        ))
         334  +
                    })?;
         335  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         336  +
        }
  152    337   
    }
  153    338   
}
  154    339   
#[derive(Debug)]
  155    340   
struct ScanRequestSerializer;
  156    341   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ScanRequestSerializer {
  157    342   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  158    343   
    fn serialize_input(
  159    344   
        &self,
  160    345   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  161    346   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  162    347   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  163    348   
        let input = input.downcast::<crate::operation::scan::ScanInput>().expect("correct type");
  164         -
        let _header_serialization_settings = _cfg
  165         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  166         -
            .cloned()
  167         -
            .unwrap_or_default();
  168         -
        let mut request_builder = {
  169         -
            #[allow(clippy::uninlined_format_args)]
  170         -
            fn uri_base(
  171         -
                _input: &crate::operation::scan::ScanInput,
  172         -
                output: &mut ::std::string::String,
  173         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  174         -
                use ::std::fmt::Write as _;
  175         -
                ::std::write!(output, "/").expect("formatting should succeed");
  176         -
                ::std::result::Result::Ok(())
  177         -
            }
  178         -
            #[allow(clippy::unnecessary_wraps)]
  179         -
            fn update_http_builder(
  180         -
                input: &crate::operation::scan::ScanInput,
  181         -
                builder: ::http_1x::request::Builder,
  182         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  183         -
                let mut uri = ::std::string::String::new();
  184         -
                uri_base(input, &mut uri)?;
  185         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  186         -
            }
  187         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  188         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  189         -
            builder = _header_serialization_settings.set_default_header(
  190         -
                builder,
  191         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  192         -
                "DynamoDB_20120810.Scan",
  193         -
            );
  194         -
            builder
  195         -
        };
  196         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_scan::ser_scan_input(&input)?);
  197         -
        if let Some(content_length) = body.content_length() {
  198         -
            let content_length = content_length.to_string();
  199         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  200         -
        }
  201         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         349  +
        let protocol = _cfg
         350  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         351  +
            .expect("a SharedClientProtocol is required");
         352  +
        let mut request = protocol
         353  +
            .serialize_request(&input, Scan::INPUT_SCHEMA, "", _cfg)
         354  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         355  +
         356  +
        return ::std::result::Result::Ok(request);
  202    357   
    }
  203    358   
}
  204    359   
#[derive(Debug)]
  205    360   
struct ScanEndpointParamsInterceptor;
  206    361   
  207    362   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ScanEndpointParamsInterceptor {
  208    363   
    fn name(&self) -> &'static str {
  209    364   
        "ScanEndpointParamsInterceptor"
  210    365   
    }
  211    366   

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

@@ -250,250 +460,460 @@
  270    270   
    "com.amazonaws.dynamodb.synthetic",
  271    271   
    "ScanInput",
  272    272   
);
  273    273   
static SCANINPUT_MEMBER_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  274    274   
    ::aws_smithy_schema::ShapeId::from_static(
  275    275   
        "com.amazonaws.dynamodb.synthetic#ScanInput$TableName",
  276    276   
        "com.amazonaws.dynamodb.synthetic",
  277    277   
        "ScanInput",
  278    278   
    ),
  279    279   
    ::aws_smithy_schema::ShapeType::String,
  280         -
    "table_name",
         280  +
    "TableName",
  281    281   
    0,
  282    282   
);
  283    283   
static SCANINPUT_MEMBER_INDEX_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  284    284   
    ::aws_smithy_schema::ShapeId::from_static(
  285    285   
        "com.amazonaws.dynamodb.synthetic#ScanInput$IndexName",
  286    286   
        "com.amazonaws.dynamodb.synthetic",
  287    287   
        "ScanInput",
  288    288   
    ),
  289    289   
    ::aws_smithy_schema::ShapeType::String,
  290         -
    "index_name",
         290  +
    "IndexName",
  291    291   
    1,
  292    292   
);
  293    293   
static SCANINPUT_MEMBER_ATTRIBUTES_TO_GET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  294    294   
    ::aws_smithy_schema::ShapeId::from_static(
  295    295   
        "com.amazonaws.dynamodb.synthetic#ScanInput$AttributesToGet",
  296    296   
        "com.amazonaws.dynamodb.synthetic",
  297    297   
        "ScanInput",
  298    298   
    ),
  299    299   
    ::aws_smithy_schema::ShapeType::List,
  300         -
    "attributes_to_get",
         300  +
    "AttributesToGet",
  301    301   
    2,
  302    302   
);
  303    303   
static SCANINPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  304    304   
    ::aws_smithy_schema::ShapeId::from_static(
  305    305   
        "com.amazonaws.dynamodb.synthetic#ScanInput$Limit",
  306    306   
        "com.amazonaws.dynamodb.synthetic",
  307    307   
        "ScanInput",
  308    308   
    ),
  309    309   
    ::aws_smithy_schema::ShapeType::Integer,
  310         -
    "limit",
         310  +
    "Limit",
  311    311   
    3,
  312    312   
);
  313    313   
static SCANINPUT_MEMBER_SELECT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  314    314   
    ::aws_smithy_schema::ShapeId::from_static(
  315    315   
        "com.amazonaws.dynamodb.synthetic#ScanInput$Select",
  316    316   
        "com.amazonaws.dynamodb.synthetic",
  317    317   
        "ScanInput",
  318    318   
    ),
  319    319   
    ::aws_smithy_schema::ShapeType::String,
  320         -
    "select",
         320  +
    "Select",
  321    321   
    4,
  322    322   
);
  323    323   
static SCANINPUT_MEMBER_SCAN_FILTER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  324    324   
    ::aws_smithy_schema::ShapeId::from_static(
  325    325   
        "com.amazonaws.dynamodb.synthetic#ScanInput$ScanFilter",
  326    326   
        "com.amazonaws.dynamodb.synthetic",
  327    327   
        "ScanInput",
  328    328   
    ),
  329    329   
    ::aws_smithy_schema::ShapeType::Map,
  330         -
    "scan_filter",
         330  +
    "ScanFilter",
  331    331   
    5,
  332    332   
);
  333    333   
static SCANINPUT_MEMBER_CONDITIONAL_OPERATOR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  334    334   
    ::aws_smithy_schema::ShapeId::from_static(
  335    335   
        "com.amazonaws.dynamodb.synthetic#ScanInput$ConditionalOperator",
  336    336   
        "com.amazonaws.dynamodb.synthetic",
  337    337   
        "ScanInput",
  338    338   
    ),
  339    339   
    ::aws_smithy_schema::ShapeType::String,
  340         -
    "conditional_operator",
         340  +
    "ConditionalOperator",
  341    341   
    6,
  342    342   
);
  343    343   
static SCANINPUT_MEMBER_EXCLUSIVE_START_KEY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  344    344   
    ::aws_smithy_schema::ShapeId::from_static(
  345    345   
        "com.amazonaws.dynamodb.synthetic#ScanInput$ExclusiveStartKey",
  346    346   
        "com.amazonaws.dynamodb.synthetic",
  347    347   
        "ScanInput",
  348    348   
    ),
  349    349   
    ::aws_smithy_schema::ShapeType::Map,
  350         -
    "exclusive_start_key",
         350  +
    "ExclusiveStartKey",
  351    351   
    7,
  352    352   
);
  353    353   
static SCANINPUT_MEMBER_RETURN_CONSUMED_CAPACITY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  354    354   
    ::aws_smithy_schema::ShapeId::from_static(
  355    355   
        "com.amazonaws.dynamodb.synthetic#ScanInput$ReturnConsumedCapacity",
  356    356   
        "com.amazonaws.dynamodb.synthetic",
  357    357   
        "ScanInput",
  358    358   
    ),
  359    359   
    ::aws_smithy_schema::ShapeType::String,
  360         -
    "return_consumed_capacity",
         360  +
    "ReturnConsumedCapacity",
  361    361   
    8,
  362    362   
);
  363    363   
static SCANINPUT_MEMBER_TOTAL_SEGMENTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  364    364   
    ::aws_smithy_schema::ShapeId::from_static(
  365    365   
        "com.amazonaws.dynamodb.synthetic#ScanInput$TotalSegments",
  366    366   
        "com.amazonaws.dynamodb.synthetic",
  367    367   
        "ScanInput",
  368    368   
    ),
  369    369   
    ::aws_smithy_schema::ShapeType::Integer,
  370         -
    "total_segments",
         370  +
    "TotalSegments",
  371    371   
    9,
  372    372   
);
  373    373   
static SCANINPUT_MEMBER_SEGMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  374    374   
    ::aws_smithy_schema::ShapeId::from_static(
  375    375   
        "com.amazonaws.dynamodb.synthetic#ScanInput$Segment",
  376    376   
        "com.amazonaws.dynamodb.synthetic",
  377    377   
        "ScanInput",
  378    378   
    ),
  379    379   
    ::aws_smithy_schema::ShapeType::Integer,
  380         -
    "segment",
         380  +
    "Segment",
  381    381   
    10,
  382    382   
);
  383    383   
static SCANINPUT_MEMBER_PROJECTION_EXPRESSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  384    384   
    ::aws_smithy_schema::ShapeId::from_static(
  385    385   
        "com.amazonaws.dynamodb.synthetic#ScanInput$ProjectionExpression",
  386    386   
        "com.amazonaws.dynamodb.synthetic",
  387    387   
        "ScanInput",
  388    388   
    ),
  389    389   
    ::aws_smithy_schema::ShapeType::String,
  390         -
    "projection_expression",
         390  +
    "ProjectionExpression",
  391    391   
    11,
  392    392   
);
  393    393   
static SCANINPUT_MEMBER_FILTER_EXPRESSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  394    394   
    ::aws_smithy_schema::ShapeId::from_static(
  395    395   
        "com.amazonaws.dynamodb.synthetic#ScanInput$FilterExpression",
  396    396   
        "com.amazonaws.dynamodb.synthetic",
  397    397   
        "ScanInput",
  398    398   
    ),
  399    399   
    ::aws_smithy_schema::ShapeType::String,
  400         -
    "filter_expression",
         400  +
    "FilterExpression",
  401    401   
    12,
  402    402   
);
  403    403   
static SCANINPUT_MEMBER_EXPRESSION_ATTRIBUTE_NAMES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  404    404   
    ::aws_smithy_schema::ShapeId::from_static(
  405    405   
        "com.amazonaws.dynamodb.synthetic#ScanInput$ExpressionAttributeNames",
  406    406   
        "com.amazonaws.dynamodb.synthetic",
  407    407   
        "ScanInput",
  408    408   
    ),
  409    409   
    ::aws_smithy_schema::ShapeType::Map,
  410         -
    "expression_attribute_names",
         410  +
    "ExpressionAttributeNames",
  411    411   
    13,
  412    412   
);
  413    413   
static SCANINPUT_MEMBER_EXPRESSION_ATTRIBUTE_VALUES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  414    414   
    ::aws_smithy_schema::ShapeId::from_static(
  415    415   
        "com.amazonaws.dynamodb.synthetic#ScanInput$ExpressionAttributeValues",
  416    416   
        "com.amazonaws.dynamodb.synthetic",
  417    417   
        "ScanInput",
  418    418   
    ),
  419    419   
    ::aws_smithy_schema::ShapeType::Map,
  420         -
    "expression_attribute_values",
         420  +
    "ExpressionAttributeValues",
  421    421   
    14,
  422    422   
);
  423    423   
static SCANINPUT_MEMBER_CONSISTENT_READ: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  424    424   
    ::aws_smithy_schema::ShapeId::from_static(
  425    425   
        "com.amazonaws.dynamodb.synthetic#ScanInput$ConsistentRead",
  426    426   
        "com.amazonaws.dynamodb.synthetic",
  427    427   
        "ScanInput",
  428    428   
    ),
  429    429   
    ::aws_smithy_schema::ShapeType::Boolean,
  430         -
    "consistent_read",
         430  +
    "ConsistentRead",
  431    431   
    15,
  432    432   
);
  433    433   
static SCANINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  434    434   
    SCANINPUT_SCHEMA_ID,
  435    435   
    ::aws_smithy_schema::ShapeType::Structure,
  436    436   
    &[
  437    437   
        &SCANINPUT_MEMBER_TABLE_NAME,
  438    438   
        &SCANINPUT_MEMBER_INDEX_NAME,
  439    439   
        &SCANINPUT_MEMBER_ATTRIBUTES_TO_GET,
  440    440   
        &SCANINPUT_MEMBER_LIMIT,
@@ -479,479 +712,695 @@
  499    499   
        }
  500    500   
        if let Some(ref val) = self.conditional_operator {
  501    501   
            ser.write_string(&SCANINPUT_MEMBER_CONDITIONAL_OPERATOR, val.as_str())?;
  502    502   
        }
  503    503   
        if let Some(ref val) = self.exclusive_start_key {
  504    504   
            ser.write_map(
  505    505   
                &SCANINPUT_MEMBER_EXCLUSIVE_START_KEY,
  506    506   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  507    507   
                    for (key, value) in val {
  508    508   
                        ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
  509         -
                        todo!("schema: unsupported map value type");
         509  +
                        ser.write_struct(crate::types::AttributeValue::SCHEMA, value)?;
  510    510   
                    }
  511    511   
                    Ok(())
  512    512   
                },
  513    513   
            )?;
  514    514   
        }
  515    515   
        if let Some(ref val) = self.return_consumed_capacity {
  516    516   
            ser.write_string(&SCANINPUT_MEMBER_RETURN_CONSUMED_CAPACITY, val.as_str())?;
  517    517   
        }
  518    518   
        if let Some(ref val) = self.total_segments {
  519    519   
            ser.write_integer(&SCANINPUT_MEMBER_TOTAL_SEGMENTS, *val)?;
  520    520   
        }
  521    521   
        if let Some(ref val) = self.segment {
  522    522   
            ser.write_integer(&SCANINPUT_MEMBER_SEGMENT, *val)?;
  523    523   
        }
  524    524   
        if let Some(ref val) = self.projection_expression {
  525    525   
            ser.write_string(&SCANINPUT_MEMBER_PROJECTION_EXPRESSION, val)?;
  526    526   
        }
  527    527   
        if let Some(ref val) = self.filter_expression {
  528    528   
            ser.write_string(&SCANINPUT_MEMBER_FILTER_EXPRESSION, val)?;
  529    529   
        }
  530    530   
        if let Some(ref val) = self.expression_attribute_names {
  531    531   
            ser.write_map(
  532    532   
                &SCANINPUT_MEMBER_EXPRESSION_ATTRIBUTE_NAMES,
  533    533   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  534    534   
                    for (key, value) in val {
  535    535   
                        ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
  536    536   
                        ser.write_string(&::aws_smithy_schema::prelude::STRING, value)?;
  537    537   
                    }
  538    538   
                    Ok(())
  539    539   
                },
  540    540   
            )?;
  541    541   
        }
  542    542   
        if let Some(ref val) = self.expression_attribute_values {
  543    543   
            ser.write_map(
  544    544   
                &SCANINPUT_MEMBER_EXPRESSION_ATTRIBUTE_VALUES,
  545    545   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  546    546   
                    for (key, value) in val {
  547    547   
                        ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
  548         -
                        todo!("schema: unsupported map value type");
         548  +
                        ser.write_struct(crate::types::AttributeValue::SCHEMA, value)?;
  549    549   
                    }
  550    550   
                    Ok(())
  551    551   
                },
  552    552   
            )?;
  553    553   
        }
  554    554   
        if let Some(ref val) = self.consistent_read {
  555    555   
            ser.write_boolean(&SCANINPUT_MEMBER_CONSISTENT_READ, *val)?;
  556    556   
        }
  557    557   
        Ok(())
  558    558   
    }
  559    559   
}
  560    560   
impl ScanInput {
  561    561   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  562         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  563         -
        deserializer: &mut D,
         562  +
    pub fn deserialize(
         563  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  564    564   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  565    565   
        #[allow(unused_variables, unused_mut)]
  566    566   
        let mut builder = Self::builder();
  567    567   
        #[allow(
  568    568   
            unused_variables,
  569    569   
            unreachable_code,
  570    570   
            clippy::single_match,
  571    571   
            clippy::match_single_binding,
  572    572   
            clippy::diverging_sub_expression
  573    573   
        )]
  574         -
        deserializer.read_struct(&SCANINPUT_SCHEMA, (), |_, member, deser| {
         574  +
        deserializer.read_struct(&SCANINPUT_SCHEMA, &mut |member, deser| {
  575    575   
            match member.member_index() {
  576    576   
                Some(0) => {
  577    577   
                    builder.table_name = Some(deser.read_string(member)?);
  578    578   
                }
  579    579   
                Some(1) => {
  580    580   
                    builder.index_name = Some(deser.read_string(member)?);
  581    581   
                }
  582    582   
                Some(2) => {
  583         -
                    builder.attributes_to_get = Some({
  584         -
                        let container = if let Some(cap) = deser.container_size() {
  585         -
                            Vec::with_capacity(cap)
  586         -
                        } else {
  587         -
                            Vec::new()
  588         -
                        };
  589         -
                        deser.read_list(member, container, |mut list, deser| {
  590         -
                            list.push(deser.read_string(member)?);
  591         -
                            Ok(list)
  592         -
                        })?
  593         -
                    });
         583  +
                    builder.attributes_to_get = Some(deser.read_string_list(member)?);
  594    584   
                }
  595    585   
                Some(3) => {
  596    586   
                    builder.limit = Some(deser.read_integer(member)?);
  597    587   
                }
  598    588   
                Some(4) => {
  599    589   
                    builder.select = Some(crate::types::Select::from(deser.read_string(member)?.as_str()));
  600    590   
                }
  601    591   
                Some(5) => {
  602    592   
                    builder.scan_filter = Some({
  603         -
                        let container = if let Some(cap) = deser.container_size() {
  604         -
                            std::collections::HashMap::with_capacity(cap)
  605         -
                        } else {
  606         -
                            std::collections::HashMap::new()
  607         -
                        };
  608         -
                        deser.read_map(member, container, |mut map, key, deser| {
  609         -
                            map.insert(key, crate::types::Condition::deserialize(deser)?);
  610         -
                            Ok(map)
  611         -
                        })?
         593  +
                        let mut container = std::collections::HashMap::new();
         594  +
                        deser.read_map(member, &mut |key, deser| {
         595  +
                            container.insert(key, crate::types::Condition::deserialize(deser)?);
         596  +
                            Ok(())
         597  +
                        })?;
         598  +
                        container
  612    599   
                    });
  613    600   
                }
  614    601   
                Some(6) => {
  615    602   
                    builder.conditional_operator = Some(crate::types::ConditionalOperator::from(deser.read_string(member)?.as_str()));
  616    603   
                }
  617    604   
                Some(7) => {
  618    605   
                    builder.exclusive_start_key = Some({
  619         -
                        let container = if let Some(cap) = deser.container_size() {
  620         -
                            std::collections::HashMap::with_capacity(cap)
  621         -
                        } else {
  622         -
                            std::collections::HashMap::new()
  623         -
                        };
  624         -
                        deser.read_map(member, container, |mut map, key, deser| {
  625         -
                            map.insert(key, todo!("deserialize nested aggregate"));
  626         -
                            Ok(map)
  627         -
                        })?
         606  +
                        let mut container = std::collections::HashMap::new();
         607  +
                        deser.read_map(member, &mut |key, deser| {
         608  +
                            container.insert(key, crate::types::AttributeValue::deserialize(deser)?);
         609  +
                            Ok(())
         610  +
                        })?;
         611  +
                        container
  628    612   
                    });
  629    613   
                }
  630    614   
                Some(8) => {
  631    615   
                    builder.return_consumed_capacity = Some(crate::types::ReturnConsumedCapacity::from(deser.read_string(member)?.as_str()));
  632    616   
                }
  633    617   
                Some(9) => {
  634    618   
                    builder.total_segments = Some(deser.read_integer(member)?);
  635    619   
                }
  636    620   
                Some(10) => {
  637    621   
                    builder.segment = Some(deser.read_integer(member)?);
  638    622   
                }
  639    623   
                Some(11) => {
  640    624   
                    builder.projection_expression = Some(deser.read_string(member)?);
  641    625   
                }
  642    626   
                Some(12) => {
  643    627   
                    builder.filter_expression = Some(deser.read_string(member)?);
  644    628   
                }
  645    629   
                Some(13) => {
  646         -
                    builder.expression_attribute_names = Some({
  647         -
                        let container = if let Some(cap) = deser.container_size() {
  648         -
                            std::collections::HashMap::with_capacity(cap)
  649         -
                        } else {
  650         -
                            std::collections::HashMap::new()
  651         -
                        };
  652         -
                        deser.read_map(member, container, |mut map, key, deser| {
  653         -
                            map.insert(key, deser.read_string(member)?);
  654         -
                            Ok(map)
  655         -
                        })?
  656         -
                    });
         630  +
                    builder.expression_attribute_names = Some(deser.read_string_string_map(member)?);
  657    631   
                }
  658    632   
                Some(14) => {
  659    633   
                    builder.expression_attribute_values = Some({
  660         -
                        let container = if let Some(cap) = deser.container_size() {
  661         -
                            std::collections::HashMap::with_capacity(cap)
  662         -
                        } else {
  663         -
                            std::collections::HashMap::new()
  664         -
                        };
  665         -
                        deser.read_map(member, container, |mut map, key, deser| {
  666         -
                            map.insert(key, todo!("deserialize nested aggregate"));
  667         -
                            Ok(map)
  668         -
                        })?
         634  +
                        let mut container = std::collections::HashMap::new();
         635  +
                        deser.read_map(member, &mut |key, deser| {
         636  +
                            container.insert(key, crate::types::AttributeValue::deserialize(deser)?);
         637  +
                            Ok(())
         638  +
                        })?;
         639  +
                        container
  669    640   
                    });
  670    641   
                }
  671    642   
                Some(15) => {
  672    643   
                    builder.consistent_read = Some(deser.read_boolean(member)?);
  673    644   
                }
  674    645   
                _ => {}
  675    646   
            }
  676    647   
            Ok(())
  677    648   
        })?;
         649  +
        builder.table_name = builder.table_name.or(Some(String::new()));
  678    650   
        builder
  679    651   
            .build()
  680    652   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  681    653   
    }
  682    654   
}
         655  +
impl ScanInput {
         656  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         657  +
    pub fn deserialize_with_response(
         658  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         659  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         660  +
        _status: u16,
         661  +
        _body: &[u8],
         662  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         663  +
        Self::deserialize(deserializer)
         664  +
    }
         665  +
}
  683    666   
impl ScanInput {
  684    667   
    /// Creates a new builder-style object to manufacture [`ScanInput`](crate::operation::scan::ScanInput).
  685    668   
    pub fn builder() -> crate::operation::scan::builders::ScanInputBuilder {
  686    669   
        crate::operation::scan::builders::ScanInputBuilder::default()
  687    670   
    }
  688    671   
}
  689    672   
  690    673   
/// A builder for [`ScanInput`](crate::operation::scan::ScanInput).
  691    674   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  692    675   
#[non_exhaustive]

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

@@ -35,35 +238,328 @@
   55     55   
    "com.amazonaws.dynamodb.synthetic",
   56     56   
    "ScanOutput",
   57     57   
);
   58     58   
static SCANOUTPUT_MEMBER_ITEMS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   59     59   
    ::aws_smithy_schema::ShapeId::from_static(
   60     60   
        "com.amazonaws.dynamodb.synthetic#ScanOutput$Items",
   61     61   
        "com.amazonaws.dynamodb.synthetic",
   62     62   
        "ScanOutput",
   63     63   
    ),
   64     64   
    ::aws_smithy_schema::ShapeType::List,
   65         -
    "items",
          65  +
    "Items",
   66     66   
    0,
   67     67   
);
   68     68   
static SCANOUTPUT_MEMBER_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   69     69   
    ::aws_smithy_schema::ShapeId::from_static(
   70     70   
        "com.amazonaws.dynamodb.synthetic#ScanOutput$Count",
   71     71   
        "com.amazonaws.dynamodb.synthetic",
   72     72   
        "ScanOutput",
   73     73   
    ),
   74     74   
    ::aws_smithy_schema::ShapeType::Integer,
   75         -
    "count",
          75  +
    "Count",
   76     76   
    1,
   77     77   
);
   78     78   
static SCANOUTPUT_MEMBER_SCANNED_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   79     79   
    ::aws_smithy_schema::ShapeId::from_static(
   80     80   
        "com.amazonaws.dynamodb.synthetic#ScanOutput$ScannedCount",
   81     81   
        "com.amazonaws.dynamodb.synthetic",
   82     82   
        "ScanOutput",
   83     83   
    ),
   84     84   
    ::aws_smithy_schema::ShapeType::Integer,
   85         -
    "scanned_count",
          85  +
    "ScannedCount",
   86     86   
    2,
   87     87   
);
   88     88   
static SCANOUTPUT_MEMBER_LAST_EVALUATED_KEY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   89     89   
    ::aws_smithy_schema::ShapeId::from_static(
   90     90   
        "com.amazonaws.dynamodb.synthetic#ScanOutput$LastEvaluatedKey",
   91     91   
        "com.amazonaws.dynamodb.synthetic",
   92     92   
        "ScanOutput",
   93     93   
    ),
   94     94   
    ::aws_smithy_schema::ShapeType::Map,
   95         -
    "last_evaluated_key",
          95  +
    "LastEvaluatedKey",
   96     96   
    3,
   97     97   
);
   98     98   
static SCANOUTPUT_MEMBER_CONSUMED_CAPACITY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   99     99   
    ::aws_smithy_schema::ShapeId::from_static(
  100    100   
        "com.amazonaws.dynamodb.synthetic#ScanOutput$ConsumedCapacity",
  101    101   
        "com.amazonaws.dynamodb.synthetic",
  102    102   
        "ScanOutput",
  103    103   
    ),
  104    104   
    ::aws_smithy_schema::ShapeType::Structure,
  105         -
    "consumed_capacity",
         105  +
    "ConsumedCapacity",
  106    106   
    4,
  107    107   
);
         108  +
static SCANOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         109  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         110  +
    ::aws_smithy_schema::ShapeType::String,
         111  +
    "request_id",
         112  +
    5,
         113  +
)
         114  +
.with_http_header("x-amzn-requestid");
  108    115   
static SCANOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  109    116   
    SCANOUTPUT_SCHEMA_ID,
  110    117   
    ::aws_smithy_schema::ShapeType::Structure,
  111    118   
    &[
  112    119   
        &SCANOUTPUT_MEMBER_ITEMS,
  113    120   
        &SCANOUTPUT_MEMBER_COUNT,
  114    121   
        &SCANOUTPUT_MEMBER_SCANNED_COUNT,
  115    122   
        &SCANOUTPUT_MEMBER_LAST_EVALUATED_KEY,
  116    123   
        &SCANOUTPUT_MEMBER_CONSUMED_CAPACITY,
         124  +
        &SCANOUTPUT_MEMBER__REQUEST_ID,
  117    125   
    ],
  118    126   
);
  119    127   
impl ScanOutput {
  120    128   
    /// The schema for this shape.
  121    129   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SCANOUTPUT_SCHEMA;
  122    130   
}
  123    131   
impl ::aws_smithy_schema::serde::SerializableStruct for ScanOutput {
  124    132   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  125    133   
    fn serialize_members(
  126    134   
        &self,
  127    135   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  128    136   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  129    137   
        if let Some(ref val) = self.items {
  130    138   
            ser.write_list(&SCANOUTPUT_MEMBER_ITEMS, &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  131    139   
                for item in val {
  132         -
                    todo!("schema: unsupported list element type");
         140  +
                    ser.write_map(
         141  +
                        &::aws_smithy_schema::prelude::DOCUMENT,
         142  +
                        &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         143  +
                            for (key, value) in item {
         144  +
                                ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
         145  +
                                ser.write_struct(crate::types::AttributeValue::SCHEMA, value)?;
         146  +
                            }
         147  +
                            Ok(())
         148  +
                        },
         149  +
                    )?;
  133    150   
                }
  134    151   
                Ok(())
  135    152   
            })?;
  136    153   
        }
  137    154   
        {
  138    155   
            let val = &self.count;
  139    156   
            ser.write_integer(&SCANOUTPUT_MEMBER_COUNT, *val)?;
  140    157   
        }
  141    158   
        {
  142    159   
            let val = &self.scanned_count;
  143    160   
            ser.write_integer(&SCANOUTPUT_MEMBER_SCANNED_COUNT, *val)?;
  144    161   
        }
  145    162   
        if let Some(ref val) = self.last_evaluated_key {
  146    163   
            ser.write_map(
  147    164   
                &SCANOUTPUT_MEMBER_LAST_EVALUATED_KEY,
  148    165   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  149    166   
                    for (key, value) in val {
  150    167   
                        ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
  151         -
                        todo!("schema: unsupported map value type");
         168  +
                        ser.write_struct(crate::types::AttributeValue::SCHEMA, value)?;
  152    169   
                    }
  153    170   
                    Ok(())
  154    171   
                },
  155    172   
            )?;
  156    173   
        }
  157    174   
        if let Some(ref val) = self.consumed_capacity {
  158    175   
            ser.write_struct(&SCANOUTPUT_MEMBER_CONSUMED_CAPACITY, val)?;
  159    176   
        }
  160    177   
        Ok(())
  161    178   
    }
  162    179   
}
  163    180   
impl ScanOutput {
  164    181   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  165         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  166         -
        deserializer: &mut D,
         182  +
    pub fn deserialize(
         183  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  167    184   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  168    185   
        #[allow(unused_variables, unused_mut)]
  169    186   
        let mut builder = Self::builder();
  170    187   
        #[allow(
  171    188   
            unused_variables,
  172    189   
            unreachable_code,
  173    190   
            clippy::single_match,
  174    191   
            clippy::match_single_binding,
  175    192   
            clippy::diverging_sub_expression
  176    193   
        )]
  177         -
        deserializer.read_struct(&SCANOUTPUT_SCHEMA, (), |_, member, deser| {
         194  +
        deserializer.read_struct(&SCANOUTPUT_SCHEMA, &mut |member, deser| {
  178    195   
            match member.member_index() {
  179    196   
                Some(0) => {
  180    197   
                    builder.items = Some({
  181         -
                        let container = if let Some(cap) = deser.container_size() {
  182         -
                            Vec::with_capacity(cap)
  183         -
                        } else {
  184         -
                            Vec::new()
  185         -
                        };
  186         -
                        deser.read_list(member, container, |mut list, deser| {
  187         -
                            list.push(todo!("deserialize nested aggregate"));
  188         -
                            Ok(list)
  189         -
                        })?
         198  +
                        let mut container = Vec::new();
         199  +
                        deser.read_list(member, &mut |deser| {
         200  +
                            container.push({
         201  +
                                let mut map = ::std::collections::HashMap::new();
         202  +
                                deser.read_map(member, &mut |key, deser| {
         203  +
                                    let value = crate::types::AttributeValue::deserialize(deser)?;
         204  +
                                    map.insert(key, value);
         205  +
                                    Ok(())
         206  +
                                })?;
         207  +
                                map
         208  +
                            });
         209  +
                            Ok(())
         210  +
                        })?;
         211  +
                        container
  190    212   
                    });
  191    213   
                }
  192    214   
                Some(1) => {
  193    215   
                    builder.count = Some(deser.read_integer(member)?);
  194    216   
                }
  195    217   
                Some(2) => {
  196    218   
                    builder.scanned_count = Some(deser.read_integer(member)?);
  197    219   
                }
  198    220   
                Some(3) => {
  199    221   
                    builder.last_evaluated_key = Some({
  200         -
                        let container = if let Some(cap) = deser.container_size() {
  201         -
                            std::collections::HashMap::with_capacity(cap)
  202         -
                        } else {
  203         -
                            std::collections::HashMap::new()
  204         -
                        };
  205         -
                        deser.read_map(member, container, |mut map, key, deser| {
  206         -
                            map.insert(key, todo!("deserialize nested aggregate"));
  207         -
                            Ok(map)
  208         -
                        })?
         222  +
                        let mut container = std::collections::HashMap::new();
         223  +
                        deser.read_map(member, &mut |key, deser| {
         224  +
                            container.insert(key, crate::types::AttributeValue::deserialize(deser)?);
         225  +
                            Ok(())
         226  +
                        })?;
         227  +
                        container
         228  +
                    });
         229  +
                }
         230  +
                Some(4) => {
         231  +
                    builder.consumed_capacity = Some(crate::types::ConsumedCapacity::deserialize(deser)?);
         232  +
                }
         233  +
                Some(5) => {
         234  +
                    builder._request_id = Some(deser.read_string(member)?);
         235  +
                }
         236  +
                _ => {}
         237  +
            }
         238  +
            Ok(())
         239  +
        })?;
         240  +
        Ok(builder.build())
         241  +
    }
         242  +
}
         243  +
impl ScanOutput {
         244  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         245  +
    /// Header-bound members are read directly from headers, avoiding runtime
         246  +
    /// member iteration overhead. Body members are read via the deserializer.
         247  +
    pub fn deserialize_with_response(
         248  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         249  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         250  +
        _status: u16,
         251  +
        _body: &[u8],
         252  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         253  +
        #[allow(unused_variables, unused_mut)]
         254  +
        let mut builder = Self::builder();
         255  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         256  +
            builder._request_id = Some(val.to_string());
         257  +
        }
         258  +
        #[allow(
         259  +
            unused_variables,
         260  +
            unreachable_code,
         261  +
            clippy::single_match,
         262  +
            clippy::match_single_binding,
         263  +
            clippy::diverging_sub_expression
         264  +
        )]
         265  +
        deserializer.read_struct(&SCANOUTPUT_SCHEMA, &mut |member, deser| {
         266  +
            match member.member_index() {
         267  +
                Some(0) => {
         268  +
                    builder.items = Some({
         269  +
                        let mut container = Vec::new();
         270  +
                        deser.read_list(member, &mut |deser| {
         271  +
                            container.push({
         272  +
                                let mut map = ::std::collections::HashMap::new();
         273  +
                                deser.read_map(member, &mut |key, deser| {
         274  +
                                    let value = crate::types::AttributeValue::deserialize(deser)?;
         275  +
                                    map.insert(key, value);
         276  +
                                    Ok(())
         277  +
                                })?;
         278  +
                                map
         279  +
                            });
         280  +
                            Ok(())
         281  +
                        })?;
         282  +
                        container
         283  +
                    });
         284  +
                }
         285  +
                Some(1) => {
         286  +
                    builder.count = Some(deser.read_integer(member)?);
         287  +
                }
         288  +
                Some(2) => {
         289  +
                    builder.scanned_count = Some(deser.read_integer(member)?);
         290  +
                }
         291  +
                Some(3) => {
         292  +
                    builder.last_evaluated_key = Some({
         293  +
                        let mut container = std::collections::HashMap::new();
         294  +
                        deser.read_map(member, &mut |key, deser| {
         295  +
                            container.insert(key, crate::types::AttributeValue::deserialize(deser)?);
         296  +
                            Ok(())
         297  +
                        })?;
         298  +
                        container
  209    299   
                    });
  210    300   
                }
  211    301   
                Some(4) => {
  212    302   
                    builder.consumed_capacity = Some(crate::types::ConsumedCapacity::deserialize(deser)?);
  213    303   
                }
  214    304   
                _ => {}
  215    305   
            }
  216    306   
            Ok(())
  217    307   
        })?;
  218    308   
        Ok(builder.build())

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/tag_resource.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 `TagResource`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct TagResource;
    6      6   
impl TagResource {
    7      7   
    /// Creates a new `TagResource`
    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::tag_resource::TagResourceInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::tag_resource::TagResourceOutput::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::tag_resource::TagResourceInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::tag_resource::TagResourceOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::tag_resource::TagResourceError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +242,375 @@
  135    139   
                crate::operation::tag_resource::TagResourceError,
  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 TagResourceResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for TagResourceResponseDeserializer {
  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_tag_resource::de_tag_resource_http_error(status, headers, body)
  157         -
        } else {
  158         -
            crate::protocol_serde::shape_tag_resource::de_tag_resource_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::tag_resource::TagResourceError::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::tag_resource::TagResourceError::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::tag_resource::TagResourceError::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  +
                "LimitExceededException" => crate::operation::tag_resource::TagResourceError::LimitExceededException({
         229  +
                    let mut tmp = match protocol
         230  +
                        .deserialize_response(response, crate::types::error::LimitExceededException::SCHEMA, _cfg)
         231  +
                        .and_then(|mut deser| {
         232  +
                            crate::types::error::LimitExceededException::deserialize_with_response(
         233  +
                                &mut *deser,
         234  +
                                response.headers(),
         235  +
                                response.status().into(),
         236  +
                                body,
         237  +
                            )
         238  +
                        }) {
         239  +
                        ::std::result::Result::Ok(val) => val,
         240  +
                        ::std::result::Result::Err(e) => {
         241  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         242  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         243  +
                            ))
         244  +
                        }
         245  +
                    };
         246  +
                    tmp.meta = generic;
         247  +
                    if tmp.message.is_none() {
         248  +
                        tmp.message = _error_message;
         249  +
                    }
         250  +
                    tmp
         251  +
                }),
         252  +
                "ResourceInUseException" => crate::operation::tag_resource::TagResourceError::ResourceInUseException({
         253  +
                    let mut tmp = match protocol
         254  +
                        .deserialize_response(response, crate::types::error::ResourceInUseException::SCHEMA, _cfg)
         255  +
                        .and_then(|mut deser| {
         256  +
                            crate::types::error::ResourceInUseException::deserialize_with_response(
         257  +
                                &mut *deser,
         258  +
                                response.headers(),
         259  +
                                response.status().into(),
         260  +
                                body,
         261  +
                            )
         262  +
                        }) {
         263  +
                        ::std::result::Result::Ok(val) => val,
         264  +
                        ::std::result::Result::Err(e) => {
         265  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         266  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         267  +
                            ))
         268  +
                        }
  159    269   
                    };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         270  +
                    tmp.meta = generic;
         271  +
                    if tmp.message.is_none() {
         272  +
                        tmp.message = _error_message;
         273  +
                    }
         274  +
                    tmp
         275  +
                }),
         276  +
                "ResourceNotFoundException" => crate::operation::tag_resource::TagResourceError::ResourceNotFoundException({
         277  +
                    let mut tmp = match protocol
         278  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         279  +
                        .and_then(|mut deser| {
         280  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         281  +
                                &mut *deser,
         282  +
                                response.headers(),
         283  +
                                response.status().into(),
         284  +
                                body,
         285  +
                            )
         286  +
                        }) {
         287  +
                        ::std::result::Result::Ok(val) => val,
         288  +
                        ::std::result::Result::Err(e) => {
         289  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         290  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         291  +
                            ))
         292  +
                        }
         293  +
                    };
         294  +
                    tmp.meta = generic;
         295  +
                    if tmp.message.is_none() {
         296  +
                        tmp.message = _error_message;
         297  +
                    }
         298  +
                    tmp
         299  +
                }),
         300  +
                _ => crate::operation::tag_resource::TagResourceError::generic(generic),
         301  +
            };
         302  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         303  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         304  +
            ))
         305  +
        } else {
         306  +
            let protocol = _cfg
         307  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         308  +
                .expect("a SharedClientProtocol is required");
         309  +
            let mut deser = protocol.deserialize_response(response, TagResource::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         310  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         311  +
            })?;
         312  +
            let body = response.body().bytes().expect("body loaded");
         313  +
            let output = crate::operation::tag_resource::TagResourceOutput::deserialize_with_response(
         314  +
                &mut *deser,
         315  +
                response.headers(),
         316  +
                response.status().into(),
         317  +
                body,
         318  +
            )
         319  +
            .map_err(|e| {
         320  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         321  +
            })?;
         322  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         323  +
        }
  161    324   
    }
  162    325   
}
  163    326   
#[derive(Debug)]
  164    327   
struct TagResourceRequestSerializer;
  165    328   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for TagResourceRequestSerializer {
  166    329   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  167    330   
    fn serialize_input(
  168    331   
        &self,
  169    332   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  170    333   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  171    334   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  172    335   
        let input = input
  173    336   
            .downcast::<crate::operation::tag_resource::TagResourceInput>()
  174    337   
            .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::tag_resource::TagResourceInput,
  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::tag_resource::TagResourceInput,
  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.TagResource",
  204         -
            );
  205         -
            builder
  206         -
        };
  207         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_tag_resource::ser_tag_resource_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())
         338  +
        let protocol = _cfg
         339  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         340  +
            .expect("a SharedClientProtocol is required");
         341  +
        let mut request = protocol
         342  +
            .serialize_request(&input, TagResource::INPUT_SCHEMA, "", _cfg)
         343  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         344  +
         345  +
        return ::std::result::Result::Ok(request);
  213    346   
    }
  214    347   
}
  215    348   
#[derive(Debug)]
  216    349   
struct TagResourceEndpointParamsInterceptor;
  217    350   
  218    351   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for TagResourceEndpointParamsInterceptor {
  219    352   
    fn name(&self) -> &'static str {
  220    353   
        "TagResourceEndpointParamsInterceptor"
  221    354   
    }
  222    355   

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

@@ -5,5 +150,160 @@
   25     25   
    "com.amazonaws.dynamodb.synthetic",
   26     26   
    "TagResourceInput",
   27     27   
);
   28     28   
static TAGRESOURCEINPUT_MEMBER_RESOURCE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   29     29   
    ::aws_smithy_schema::ShapeId::from_static(
   30     30   
        "com.amazonaws.dynamodb.synthetic#TagResourceInput$ResourceArn",
   31     31   
        "com.amazonaws.dynamodb.synthetic",
   32     32   
        "TagResourceInput",
   33     33   
    ),
   34     34   
    ::aws_smithy_schema::ShapeType::String,
   35         -
    "resource_arn",
          35  +
    "ResourceArn",
   36     36   
    0,
   37     37   
);
   38     38   
static TAGRESOURCEINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.dynamodb.synthetic#TagResourceInput$Tags",
   41     41   
        "com.amazonaws.dynamodb.synthetic",
   42     42   
        "TagResourceInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::List,
   45         -
    "tags",
          45  +
    "Tags",
   46     46   
    1,
   47     47   
);
   48     48   
static TAGRESOURCEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    TAGRESOURCEINPUT_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[&TAGRESOURCEINPUT_MEMBER_RESOURCE_ARN, &TAGRESOURCEINPUT_MEMBER_TAGS],
   52     52   
);
   53     53   
impl TagResourceInput {
   54     54   
    /// The schema for this shape.
   55     55   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TAGRESOURCEINPUT_SCHEMA;
   56     56   
}
   57     57   
impl ::aws_smithy_schema::serde::SerializableStruct for TagResourceInput {
   58     58   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   59     59   
    fn serialize_members(
   60     60   
        &self,
   61     61   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   62     62   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   63     63   
        if let Some(ref val) = self.resource_arn {
   64     64   
            ser.write_string(&TAGRESOURCEINPUT_MEMBER_RESOURCE_ARN, val)?;
   65     65   
        }
   66     66   
        if let Some(ref val) = self.tags {
   67     67   
            ser.write_list(
   68     68   
                &TAGRESOURCEINPUT_MEMBER_TAGS,
   69     69   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   70     70   
                    for item in val {
   71     71   
                        ser.write_struct(crate::types::Tag::SCHEMA, item)?;
   72     72   
                    }
   73     73   
                    Ok(())
   74     74   
                },
   75     75   
            )?;
   76     76   
        }
   77     77   
        Ok(())
   78     78   
    }
   79     79   
}
   80     80   
impl TagResourceInput {
   81     81   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   82         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   83         -
        deserializer: &mut D,
          82  +
    pub fn deserialize(
          83  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   84     84   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   85     85   
        #[allow(unused_variables, unused_mut)]
   86     86   
        let mut builder = Self::builder();
   87     87   
        #[allow(
   88     88   
            unused_variables,
   89     89   
            unreachable_code,
   90     90   
            clippy::single_match,
   91     91   
            clippy::match_single_binding,
   92     92   
            clippy::diverging_sub_expression
   93     93   
        )]
   94         -
        deserializer.read_struct(&TAGRESOURCEINPUT_SCHEMA, (), |_, member, deser| {
          94  +
        deserializer.read_struct(&TAGRESOURCEINPUT_SCHEMA, &mut |member, deser| {
   95     95   
            match member.member_index() {
   96     96   
                Some(0) => {
   97     97   
                    builder.resource_arn = Some(deser.read_string(member)?);
   98     98   
                }
   99     99   
                Some(1) => {
  100    100   
                    builder.tags = Some({
  101         -
                        let container = if let Some(cap) = deser.container_size() {
  102         -
                            Vec::with_capacity(cap)
  103         -
                        } else {
  104         -
                            Vec::new()
  105         -
                        };
  106         -
                        deser.read_list(member, container, |mut list, deser| {
  107         -
                            list.push(crate::types::Tag::deserialize(deser)?);
  108         -
                            Ok(list)
  109         -
                        })?
         101  +
                        let mut container = Vec::new();
         102  +
                        deser.read_list(member, &mut |deser| {
         103  +
                            container.push(crate::types::Tag::deserialize(deser)?);
         104  +
                            Ok(())
         105  +
                        })?;
         106  +
                        container
  110    107   
                    });
  111    108   
                }
  112    109   
                _ => {}
  113    110   
            }
  114    111   
            Ok(())
  115    112   
        })?;
         113  +
        builder.resource_arn = builder.resource_arn.or(Some(String::new()));
         114  +
        builder.tags = builder.tags.or(Some(Vec::new()));
  116    115   
        builder
  117    116   
            .build()
  118    117   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  119    118   
    }
  120    119   
}
         120  +
impl TagResourceInput {
         121  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         122  +
    pub fn deserialize_with_response(
         123  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         124  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         125  +
        _status: u16,
         126  +
        _body: &[u8],
         127  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         128  +
        Self::deserialize(deserializer)
         129  +
    }
         130  +
}
  121    131   
impl TagResourceInput {
  122    132   
    /// Creates a new builder-style object to manufacture [`TagResourceInput`](crate::operation::tag_resource::TagResourceInput).
  123    133   
    pub fn builder() -> crate::operation::tag_resource::builders::TagResourceInputBuilder {
  124    134   
        crate::operation::tag_resource::builders::TagResourceInputBuilder::default()
  125    135   
    }
  126    136   
}
  127    137   
  128    138   
/// A builder for [`TagResourceInput`](crate::operation::tag_resource::TagResourceInput).
  129    139   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  130    140   
#[non_exhaustive]

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

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct TagResourceOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static TAGRESOURCEOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.dynamodb.synthetic#TagResourceOutput",
   10     10   
    "com.amazonaws.dynamodb.synthetic",
   11     11   
    "TagResourceOutput",
   12     12   
);
   13         -
static TAGRESOURCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(TAGRESOURCEOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static TAGRESOURCEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
          20  +
static TAGRESOURCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    TAGRESOURCEOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&TAGRESOURCEOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl TagResourceOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TAGRESOURCEOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for TagResourceOutput {
   20     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   21     31   
    fn serialize_members(
   22     32   
        &self,
   23     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   24     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   25     35   
        Ok(())
   26     36   
    }
   27     37   
}
   28     38   
impl TagResourceOutput {
   29     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   30         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   31         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   32     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   33     43   
        #[allow(unused_variables, unused_mut)]
   34     44   
        let mut builder = Self::builder();
   35     45   
        #[allow(
   36     46   
            unused_variables,
   37     47   
            unreachable_code,
   38     48   
            clippy::single_match,
   39     49   
            clippy::match_single_binding,
   40     50   
            clippy::diverging_sub_expression
   41     51   
        )]
   42         -
        deserializer.read_struct(&TAGRESOURCEOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&TAGRESOURCEOUTPUT_SCHEMA, &mut |member, deser| {
   43     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   44     57   
                _ => {}
   45     58   
            }
   46     59   
            Ok(())
   47     60   
        })?;
   48     61   
        Ok(builder.build())
   49     62   
    }
   50     63   
}
          64  +
impl TagResourceOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   51     82   
impl ::aws_types::request_id::RequestId for TagResourceOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl TagResourceOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`TagResourceOutput`](crate::operation::tag_resource::TagResourceOutput).
   58     89   
    pub fn builder() -> crate::operation::tag_resource::builders::TagResourceOutputBuilder {
   59     90   
        crate::operation::tag_resource::builders::TagResourceOutputBuilder::default()
   60     91   
    }

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/transact_get_items.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 `TransactGetItems`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct TransactGetItems;
    6      6   
impl TransactGetItems {
    7      7   
    /// Creates a new `TransactGetItems`
    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::transact_get_items::TransactGetItemsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::transact_get_items::TransactGetItemsOutput::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::transact_get_items::TransactGetItemsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::transact_get_items::TransactGetItemsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::transact_get_items::TransactGetItemsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +245,432 @@
  138    142   
                crate::operation::transact_get_items::TransactGetItemsError,
  139    143   
            >::new());
  140    144   
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct TransactGetItemsResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for TransactGetItemsResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        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    158   
        #[allow(unused_mut)]
  156    159   
        let mut force_error = false;
  157    160   
        ::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_transact_get_items::de_transact_get_items_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_transact_get_items::de_transact_get_items_http_response(status, headers, body)
         161  +
        if !success && status != 200 || force_error {
         162  +
            let headers = response.headers();
         163  +
            let body = response.body().bytes().expect("body loaded");
         164  +
            #[allow(unused_mut)]
         165  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         166  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         167  +
            })?;
         168  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         169  +
            let generic = generic_builder.build();
         170  +
            let error_code = match generic.code() {
         171  +
                ::std::option::Option::Some(code) => code,
         172  +
                ::std::option::Option::None => {
         173  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         174  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::transact_get_items::TransactGetItemsError::unhandled(
         175  +
                            generic,
         176  +
                        )),
         177  +
                    ))
         178  +
                }
         179  +
            };
         180  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         181  +
            let protocol = _cfg
         182  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         183  +
                .expect("a SharedClientProtocol is required");
         184  +
            let err = match error_code {
         185  +
                "InternalServerError" => crate::operation::transact_get_items::TransactGetItemsError::InternalServerError({
         186  +
                    let mut tmp = match protocol
         187  +
                        .deserialize_response(response, crate::types::error::InternalServerError::SCHEMA, _cfg)
         188  +
                        .and_then(|mut deser| {
         189  +
                            crate::types::error::InternalServerError::deserialize_with_response(
         190  +
                                &mut *deser,
         191  +
                                response.headers(),
         192  +
                                response.status().into(),
         193  +
                                body,
         194  +
                            )
         195  +
                        }) {
         196  +
                        ::std::result::Result::Ok(val) => val,
         197  +
                        ::std::result::Result::Err(e) => {
         198  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         199  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         200  +
                            ))
         201  +
                        }
         202  +
                    };
         203  +
                    tmp.meta = generic;
         204  +
                    if tmp.message.is_none() {
         205  +
                        tmp.message = _error_message;
         206  +
                    }
         207  +
                    tmp
         208  +
                }),
         209  +
                "InvalidEndpointException" => crate::operation::transact_get_items::TransactGetItemsError::InvalidEndpointException({
         210  +
                    let mut tmp = match protocol
         211  +
                        .deserialize_response(response, crate::types::error::InvalidEndpointException::SCHEMA, _cfg)
         212  +
                        .and_then(|mut deser| {
         213  +
                            crate::types::error::InvalidEndpointException::deserialize_with_response(
         214  +
                                &mut *deser,
         215  +
                                response.headers(),
         216  +
                                response.status().into(),
         217  +
                                body,
         218  +
                            )
         219  +
                        }) {
         220  +
                        ::std::result::Result::Ok(val) => val,
         221  +
                        ::std::result::Result::Err(e) => {
         222  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         223  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         224  +
                            ))
         225  +
                        }
         226  +
                    };
         227  +
                    tmp.meta = generic;
         228  +
                    if tmp.message.is_none() {
         229  +
                        tmp.message = _error_message;
         230  +
                    }
         231  +
                    tmp
         232  +
                }),
         233  +
                "ProvisionedThroughputExceededException" => {
         234  +
                    crate::operation::transact_get_items::TransactGetItemsError::ProvisionedThroughputExceededException({
         235  +
                        let mut tmp = match protocol
         236  +
                            .deserialize_response(response, crate::types::error::ProvisionedThroughputExceededException::SCHEMA, _cfg)
         237  +
                            .and_then(|mut deser| {
         238  +
                                crate::types::error::ProvisionedThroughputExceededException::deserialize_with_response(
         239  +
                                    &mut *deser,
         240  +
                                    response.headers(),
         241  +
                                    response.status().into(),
         242  +
                                    body,
         243  +
                                )
         244  +
                            }) {
         245  +
                            ::std::result::Result::Ok(val) => val,
         246  +
                            ::std::result::Result::Err(e) => {
         247  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         248  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         249  +
                                ))
         250  +
                            }
  162    251   
                        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         252  +
                        tmp.meta = generic;
         253  +
                        if tmp.message.is_none() {
         254  +
                            tmp.message = _error_message;
         255  +
                        }
         256  +
                        tmp
         257  +
                    })
         258  +
                }
         259  +
                "RequestLimitExceeded" => crate::operation::transact_get_items::TransactGetItemsError::RequestLimitExceeded({
         260  +
                    let mut tmp = match protocol
         261  +
                        .deserialize_response(response, crate::types::error::RequestLimitExceeded::SCHEMA, _cfg)
         262  +
                        .and_then(|mut deser| {
         263  +
                            crate::types::error::RequestLimitExceeded::deserialize_with_response(
         264  +
                                &mut *deser,
         265  +
                                response.headers(),
         266  +
                                response.status().into(),
         267  +
                                body,
         268  +
                            )
         269  +
                        }) {
         270  +
                        ::std::result::Result::Ok(val) => val,
         271  +
                        ::std::result::Result::Err(e) => {
         272  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         273  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         274  +
                            ))
         275  +
                        }
         276  +
                    };
         277  +
                    tmp.meta = generic;
         278  +
                    if tmp.message.is_none() {
         279  +
                        tmp.message = _error_message;
         280  +
                    }
         281  +
                    tmp
         282  +
                }),
         283  +
                "ResourceNotFoundException" => crate::operation::transact_get_items::TransactGetItemsError::ResourceNotFoundException({
         284  +
                    let mut tmp = match protocol
         285  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         286  +
                        .and_then(|mut deser| {
         287  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         288  +
                                &mut *deser,
         289  +
                                response.headers(),
         290  +
                                response.status().into(),
         291  +
                                body,
         292  +
                            )
         293  +
                        }) {
         294  +
                        ::std::result::Result::Ok(val) => val,
         295  +
                        ::std::result::Result::Err(e) => {
         296  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         297  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         298  +
                            ))
         299  +
                        }
         300  +
                    };
         301  +
                    tmp.meta = generic;
         302  +
                    if tmp.message.is_none() {
         303  +
                        tmp.message = _error_message;
         304  +
                    }
         305  +
                    tmp
         306  +
                }),
         307  +
                "ThrottlingException" => crate::operation::transact_get_items::TransactGetItemsError::ThrottlingException({
         308  +
                    let mut tmp = match protocol
         309  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         310  +
                        .and_then(|mut deser| {
         311  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         312  +
                                &mut *deser,
         313  +
                                response.headers(),
         314  +
                                response.status().into(),
         315  +
                                body,
         316  +
                            )
         317  +
                        }) {
         318  +
                        ::std::result::Result::Ok(val) => val,
         319  +
                        ::std::result::Result::Err(e) => {
         320  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         321  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         322  +
                            ))
         323  +
                        }
         324  +
                    };
         325  +
                    tmp.meta = generic;
         326  +
                    if tmp.message.is_none() {
         327  +
                        tmp.message = _error_message;
         328  +
                    }
         329  +
                    tmp
         330  +
                }),
         331  +
                "TransactionCanceledException" => crate::operation::transact_get_items::TransactGetItemsError::TransactionCanceledException({
         332  +
                    let mut tmp = match protocol
         333  +
                        .deserialize_response(response, crate::types::error::TransactionCanceledException::SCHEMA, _cfg)
         334  +
                        .and_then(|mut deser| {
         335  +
                            crate::types::error::TransactionCanceledException::deserialize_with_response(
         336  +
                                &mut *deser,
         337  +
                                response.headers(),
         338  +
                                response.status().into(),
         339  +
                                body,
         340  +
                            )
         341  +
                        }) {
         342  +
                        ::std::result::Result::Ok(val) => val,
         343  +
                        ::std::result::Result::Err(e) => {
         344  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         345  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         346  +
                            ))
         347  +
                        }
         348  +
                    };
         349  +
                    tmp.meta = generic;
         350  +
                    if tmp.message.is_none() {
         351  +
                        tmp.message = _error_message;
         352  +
                    }
         353  +
                    tmp
         354  +
                }),
         355  +
                _ => crate::operation::transact_get_items::TransactGetItemsError::generic(generic),
         356  +
            };
         357  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         358  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         359  +
            ))
         360  +
        } else {
         361  +
            let protocol = _cfg
         362  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         363  +
                .expect("a SharedClientProtocol is required");
         364  +
            let mut deser = protocol
         365  +
                .deserialize_response(response, TransactGetItems::OUTPUT_SCHEMA, _cfg)
         366  +
                .map_err(|e| {
         367  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         368  +
                })?;
         369  +
            let body = response.body().bytes().expect("body loaded");
         370  +
            let output = crate::operation::transact_get_items::TransactGetItemsOutput::deserialize_with_response(
         371  +
                &mut *deser,
         372  +
                response.headers(),
         373  +
                response.status().into(),
         374  +
                body,
         375  +
            )
         376  +
            .map_err(|e| {
         377  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         378  +
            })?;
         379  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         380  +
        }
  164    381   
    }
  165    382   
}
  166    383   
#[derive(Debug)]
  167    384   
struct TransactGetItemsRequestSerializer;
  168    385   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for TransactGetItemsRequestSerializer {
  169    386   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    387   
    fn serialize_input(
  171    388   
        &self,
  172    389   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    390   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    391   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    392   
        let input = input
  176    393   
            .downcast::<crate::operation::transact_get_items::TransactGetItemsInput>()
  177    394   
            .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::transact_get_items::TransactGetItemsInput,
  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::transact_get_items::TransactGetItemsInput,
  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.TransactGetItems",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_transact_get_items::ser_transact_get_items_input(&input)?);
  211         -
        if let Some(content_length) = body.content_length() {
  212         -
            let content_length = content_length.to_string();
  213         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  214         -
        }
  215         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         395  +
        let protocol = _cfg
         396  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         397  +
            .expect("a SharedClientProtocol is required");
         398  +
        let mut request = protocol
         399  +
            .serialize_request(&input, TransactGetItems::INPUT_SCHEMA, "", _cfg)
         400  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         401  +
         402  +
        return ::std::result::Result::Ok(request);
  216    403   
    }
  217    404   
}
  218    405   
#[derive(Debug)]
  219    406   
struct TransactGetItemsEndpointParamsInterceptor;
  220    407   
  221    408   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for TransactGetItemsEndpointParamsInterceptor {
  222    409   
    fn name(&self) -> &'static str {
  223    410   
        "TransactGetItemsEndpointParamsInterceptor"
  224    411   
    }
  225    412