AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36

Files changed:

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/transact_write_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 `TransactWriteItems`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct TransactWriteItems;
    6      6   
impl TransactWriteItems {
    7      7   
    /// Creates a new `TransactWriteItems`
    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_write_items::TransactWriteItemsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::transact_write_items::TransactWriteItemsOutput::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_write_items::TransactWriteItemsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::transact_write_items::TransactWriteItemsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::transact_write_items::TransactWriteItemsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -128,132 +253,491 @@
  148    152   
        ::std::borrow::Cow::Owned(rcb)
  149    153   
    }
  150    154   
}
  151    155   
  152    156   
#[derive(Debug)]
  153    157   
struct TransactWriteItemsResponseDeserializer;
  154    158   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for TransactWriteItemsResponseDeserializer {
  155    159   
    fn deserialize_nonstreaming(
  156    160   
        &self,
  157    161   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         162  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  158    163   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  159    164   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  160         -
        let headers = response.headers();
  161         -
        let body = response.body().bytes().expect("body loaded");
  162    165   
        #[allow(unused_mut)]
  163    166   
        let mut force_error = false;
  164    167   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  165         -
        let parse_result = if !success && status != 200 || force_error {
  166         -
            crate::protocol_serde::shape_transact_write_items::de_transact_write_items_http_error(status, headers, body)
         168  +
        if !success && status != 200 || force_error {
         169  +
            let headers = response.headers();
         170  +
            let body = response.body().bytes().expect("body loaded");
         171  +
            #[allow(unused_mut)]
         172  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         173  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         174  +
            })?;
         175  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         176  +
            let generic = generic_builder.build();
         177  +
            let error_code = match generic.code() {
         178  +
                ::std::option::Option::Some(code) => code,
         179  +
                ::std::option::Option::None => {
         180  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         181  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         182  +
                            crate::operation::transact_write_items::TransactWriteItemsError::unhandled(generic),
         183  +
                        ),
         184  +
                    ))
         185  +
                }
         186  +
            };
         187  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         188  +
            let protocol = _cfg
         189  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         190  +
                .expect("a SharedClientProtocol is required");
         191  +
            let err = match error_code {
         192  +
                "IdempotentParameterMismatchException" => {
         193  +
                    crate::operation::transact_write_items::TransactWriteItemsError::IdempotentParameterMismatchException({
         194  +
                        let mut tmp = match protocol
         195  +
                            .deserialize_response(response, crate::types::error::IdempotentParameterMismatchException::SCHEMA, _cfg)
         196  +
                            .and_then(|mut deser| {
         197  +
                                crate::types::error::IdempotentParameterMismatchException::deserialize_with_response(
         198  +
                                    &mut *deser,
         199  +
                                    response.headers(),
         200  +
                                    response.status().into(),
         201  +
                                    body,
         202  +
                                )
         203  +
                            }) {
         204  +
                            ::std::result::Result::Ok(val) => val,
         205  +
                            ::std::result::Result::Err(e) => {
         206  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         207  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         208  +
                                ))
         209  +
                            }
         210  +
                        };
         211  +
                        tmp.meta = generic;
         212  +
                        if tmp.message.is_none() {
         213  +
                            tmp.message = _error_message;
         214  +
                        }
         215  +
                        tmp
         216  +
                    })
         217  +
                }
         218  +
                "InternalServerError" => crate::operation::transact_write_items::TransactWriteItemsError::InternalServerError({
         219  +
                    let mut tmp = match protocol
         220  +
                        .deserialize_response(response, crate::types::error::InternalServerError::SCHEMA, _cfg)
         221  +
                        .and_then(|mut deser| {
         222  +
                            crate::types::error::InternalServerError::deserialize_with_response(
         223  +
                                &mut *deser,
         224  +
                                response.headers(),
         225  +
                                response.status().into(),
         226  +
                                body,
         227  +
                            )
         228  +
                        }) {
         229  +
                        ::std::result::Result::Ok(val) => val,
         230  +
                        ::std::result::Result::Err(e) => {
         231  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         232  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         233  +
                            ))
         234  +
                        }
         235  +
                    };
         236  +
                    tmp.meta = generic;
         237  +
                    if tmp.message.is_none() {
         238  +
                        tmp.message = _error_message;
         239  +
                    }
         240  +
                    tmp
         241  +
                }),
         242  +
                "InvalidEndpointException" => crate::operation::transact_write_items::TransactWriteItemsError::InvalidEndpointException({
         243  +
                    let mut tmp = match protocol
         244  +
                        .deserialize_response(response, crate::types::error::InvalidEndpointException::SCHEMA, _cfg)
         245  +
                        .and_then(|mut deser| {
         246  +
                            crate::types::error::InvalidEndpointException::deserialize_with_response(
         247  +
                                &mut *deser,
         248  +
                                response.headers(),
         249  +
                                response.status().into(),
         250  +
                                body,
         251  +
                            )
         252  +
                        }) {
         253  +
                        ::std::result::Result::Ok(val) => val,
         254  +
                        ::std::result::Result::Err(e) => {
         255  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         256  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         257  +
                            ))
         258  +
                        }
         259  +
                    };
         260  +
                    tmp.meta = generic;
         261  +
                    if tmp.message.is_none() {
         262  +
                        tmp.message = _error_message;
         263  +
                    }
         264  +
                    tmp
         265  +
                }),
         266  +
                "ProvisionedThroughputExceededException" => {
         267  +
                    crate::operation::transact_write_items::TransactWriteItemsError::ProvisionedThroughputExceededException({
         268  +
                        let mut tmp = match protocol
         269  +
                            .deserialize_response(response, crate::types::error::ProvisionedThroughputExceededException::SCHEMA, _cfg)
         270  +
                            .and_then(|mut deser| {
         271  +
                                crate::types::error::ProvisionedThroughputExceededException::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  +
                }
         292  +
                "RequestLimitExceeded" => crate::operation::transact_write_items::TransactWriteItemsError::RequestLimitExceeded({
         293  +
                    let mut tmp = match protocol
         294  +
                        .deserialize_response(response, crate::types::error::RequestLimitExceeded::SCHEMA, _cfg)
         295  +
                        .and_then(|mut deser| {
         296  +
                            crate::types::error::RequestLimitExceeded::deserialize_with_response(
         297  +
                                &mut *deser,
         298  +
                                response.headers(),
         299  +
                                response.status().into(),
         300  +
                                body,
         301  +
                            )
         302  +
                        }) {
         303  +
                        ::std::result::Result::Ok(val) => val,
         304  +
                        ::std::result::Result::Err(e) => {
         305  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         306  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         307  +
                            ))
         308  +
                        }
         309  +
                    };
         310  +
                    tmp.meta = generic;
         311  +
                    if tmp.message.is_none() {
         312  +
                        tmp.message = _error_message;
         313  +
                    }
         314  +
                    tmp
         315  +
                }),
         316  +
                "ResourceNotFoundException" => crate::operation::transact_write_items::TransactWriteItemsError::ResourceNotFoundException({
         317  +
                    let mut tmp = match protocol
         318  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         319  +
                        .and_then(|mut deser| {
         320  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         321  +
                                &mut *deser,
         322  +
                                response.headers(),
         323  +
                                response.status().into(),
         324  +
                                body,
         325  +
                            )
         326  +
                        }) {
         327  +
                        ::std::result::Result::Ok(val) => val,
         328  +
                        ::std::result::Result::Err(e) => {
         329  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         330  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         331  +
                            ))
         332  +
                        }
         333  +
                    };
         334  +
                    tmp.meta = generic;
         335  +
                    if tmp.message.is_none() {
         336  +
                        tmp.message = _error_message;
         337  +
                    }
         338  +
                    tmp
         339  +
                }),
         340  +
                "ThrottlingException" => crate::operation::transact_write_items::TransactWriteItemsError::ThrottlingException({
         341  +
                    let mut tmp = match protocol
         342  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         343  +
                        .and_then(|mut deser| {
         344  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         345  +
                                &mut *deser,
         346  +
                                response.headers(),
         347  +
                                response.status().into(),
         348  +
                                body,
         349  +
                            )
         350  +
                        }) {
         351  +
                        ::std::result::Result::Ok(val) => val,
         352  +
                        ::std::result::Result::Err(e) => {
         353  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         354  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         355  +
                            ))
         356  +
                        }
         357  +
                    };
         358  +
                    tmp.meta = generic;
         359  +
                    if tmp.message.is_none() {
         360  +
                        tmp.message = _error_message;
         361  +
                    }
         362  +
                    tmp
         363  +
                }),
         364  +
                "TransactionCanceledException" => crate::operation::transact_write_items::TransactWriteItemsError::TransactionCanceledException({
         365  +
                    let mut tmp = match protocol
         366  +
                        .deserialize_response(response, crate::types::error::TransactionCanceledException::SCHEMA, _cfg)
         367  +
                        .and_then(|mut deser| {
         368  +
                            crate::types::error::TransactionCanceledException::deserialize_with_response(
         369  +
                                &mut *deser,
         370  +
                                response.headers(),
         371  +
                                response.status().into(),
         372  +
                                body,
         373  +
                            )
         374  +
                        }) {
         375  +
                        ::std::result::Result::Ok(val) => val,
         376  +
                        ::std::result::Result::Err(e) => {
         377  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         378  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         379  +
                            ))
         380  +
                        }
         381  +
                    };
         382  +
                    tmp.meta = generic;
         383  +
                    if tmp.message.is_none() {
         384  +
                        tmp.message = _error_message;
         385  +
                    }
         386  +
                    tmp
         387  +
                }),
         388  +
                "TransactionInProgressException" => {
         389  +
                    crate::operation::transact_write_items::TransactWriteItemsError::TransactionInProgressException({
         390  +
                        let mut tmp = match protocol
         391  +
                            .deserialize_response(response, crate::types::error::TransactionInProgressException::SCHEMA, _cfg)
         392  +
                            .and_then(|mut deser| {
         393  +
                                crate::types::error::TransactionInProgressException::deserialize_with_response(
         394  +
                                    &mut *deser,
         395  +
                                    response.headers(),
         396  +
                                    response.status().into(),
         397  +
                                    body,
         398  +
                                )
         399  +
                            }) {
         400  +
                            ::std::result::Result::Ok(val) => val,
         401  +
                            ::std::result::Result::Err(e) => {
         402  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         403  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         404  +
                                ))
         405  +
                            }
         406  +
                        };
         407  +
                        tmp.meta = generic;
         408  +
                        if tmp.message.is_none() {
         409  +
                            tmp.message = _error_message;
         410  +
                        }
         411  +
                        tmp
         412  +
                    })
         413  +
                }
         414  +
                _ => crate::operation::transact_write_items::TransactWriteItemsError::generic(generic),
         415  +
            };
         416  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         417  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         418  +
            ))
  167    419   
        } else {
  168         -
            crate::protocol_serde::shape_transact_write_items::de_transact_write_items_http_response(status, headers, body)
  169         -
        };
  170         -
        crate::protocol_serde::type_erase_result(parse_result)
         420  +
            let protocol = _cfg
         421  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         422  +
                .expect("a SharedClientProtocol is required");
         423  +
            let mut deser = protocol
         424  +
                .deserialize_response(response, TransactWriteItems::OUTPUT_SCHEMA, _cfg)
         425  +
                .map_err(|e| {
         426  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         427  +
                })?;
         428  +
            let body = response.body().bytes().expect("body loaded");
         429  +
            let output = crate::operation::transact_write_items::TransactWriteItemsOutput::deserialize_with_response(
         430  +
                &mut *deser,
         431  +
                response.headers(),
         432  +
                response.status().into(),
         433  +
                body,
         434  +
            )
         435  +
            .map_err(|e| {
         436  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         437  +
            })?;
         438  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         439  +
        }
  171    440   
    }
  172    441   
}
  173    442   
#[derive(Debug)]
  174    443   
struct TransactWriteItemsRequestSerializer;
  175    444   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for TransactWriteItemsRequestSerializer {
  176    445   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  177    446   
    fn serialize_input(
  178    447   
        &self,
  179    448   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  180    449   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  181    450   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  182    451   
        let input = input
  183    452   
            .downcast::<crate::operation::transact_write_items::TransactWriteItemsInput>()
  184    453   
            .expect("correct type");
  185         -
        let _header_serialization_settings = _cfg
  186         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  187         -
            .cloned()
  188         -
            .unwrap_or_default();
  189         -
        let mut request_builder = {
  190         -
            #[allow(clippy::uninlined_format_args)]
  191         -
            fn uri_base(
  192         -
                _input: &crate::operation::transact_write_items::TransactWriteItemsInput,
  193         -
                output: &mut ::std::string::String,
  194         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  195         -
                use ::std::fmt::Write as _;
  196         -
                ::std::write!(output, "/").expect("formatting should succeed");
  197         -
                ::std::result::Result::Ok(())
  198         -
            }
  199         -
            #[allow(clippy::unnecessary_wraps)]
  200         -
            fn update_http_builder(
  201         -
                input: &crate::operation::transact_write_items::TransactWriteItemsInput,
  202         -
                builder: ::http_1x::request::Builder,
  203         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  204         -
                let mut uri = ::std::string::String::new();
  205         -
                uri_base(input, &mut uri)?;
  206         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  207         -
            }
  208         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  209         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  210         -
            builder = _header_serialization_settings.set_default_header(
  211         -
                builder,
  212         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  213         -
                "DynamoDB_20120810.TransactWriteItems",
  214         -
            );
  215         -
            builder
  216         -
        };
  217         -
        let body =
  218         -
            ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_transact_write_items::ser_transact_write_items_input(&input)?);
  219         -
        if let Some(content_length) = body.content_length() {
  220         -
            let content_length = content_length.to_string();
  221         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  222         -
        }
  223         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         454  +
        let protocol = _cfg
         455  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         456  +
            .expect("a SharedClientProtocol is required");
         457  +
        let mut request = protocol
         458  +
            .serialize_request(&input, TransactWriteItems::INPUT_SCHEMA, "", _cfg)
         459  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         460  +
         461  +
        return ::std::result::Result::Ok(request);
  224    462   
    }
  225    463   
}
  226    464   
#[derive(Debug)]
  227    465   
struct TransactWriteItemsEndpointParamsInterceptor;
  228    466   
  229    467   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for TransactWriteItemsEndpointParamsInterceptor {
  230    468   
    fn name(&self) -> &'static str {
  231    469   
        "TransactWriteItemsEndpointParamsInterceptor"
  232    470   
    }
  233    471   

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

@@ -41,41 +224,233 @@
   61     61   
    "com.amazonaws.dynamodb.synthetic",
   62     62   
    "TransactWriteItemsInput",
   63     63   
);
   64     64   
static TRANSACTWRITEITEMSINPUT_MEMBER_TRANSACT_ITEMS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   65     65   
    ::aws_smithy_schema::ShapeId::from_static(
   66     66   
        "com.amazonaws.dynamodb.synthetic#TransactWriteItemsInput$TransactItems",
   67     67   
        "com.amazonaws.dynamodb.synthetic",
   68     68   
        "TransactWriteItemsInput",
   69     69   
    ),
   70     70   
    ::aws_smithy_schema::ShapeType::List,
   71         -
    "transact_items",
          71  +
    "TransactItems",
   72     72   
    0,
   73     73   
);
   74     74   
static TRANSACTWRITEITEMSINPUT_MEMBER_RETURN_CONSUMED_CAPACITY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   75     75   
    ::aws_smithy_schema::ShapeId::from_static(
   76     76   
        "com.amazonaws.dynamodb.synthetic#TransactWriteItemsInput$ReturnConsumedCapacity",
   77     77   
        "com.amazonaws.dynamodb.synthetic",
   78     78   
        "TransactWriteItemsInput",
   79     79   
    ),
   80     80   
    ::aws_smithy_schema::ShapeType::String,
   81         -
    "return_consumed_capacity",
          81  +
    "ReturnConsumedCapacity",
   82     82   
    1,
   83     83   
);
   84     84   
static TRANSACTWRITEITEMSINPUT_MEMBER_RETURN_ITEM_COLLECTION_METRICS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static(
   86     86   
        "com.amazonaws.dynamodb.synthetic#TransactWriteItemsInput$ReturnItemCollectionMetrics",
   87     87   
        "com.amazonaws.dynamodb.synthetic",
   88     88   
        "TransactWriteItemsInput",
   89     89   
    ),
   90     90   
    ::aws_smithy_schema::ShapeType::String,
   91         -
    "return_item_collection_metrics",
          91  +
    "ReturnItemCollectionMetrics",
   92     92   
    2,
   93     93   
);
   94     94   
static TRANSACTWRITEITEMSINPUT_MEMBER_CLIENT_REQUEST_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.dynamodb.synthetic#TransactWriteItemsInput$ClientRequestToken",
   97     97   
        "com.amazonaws.dynamodb.synthetic",
   98     98   
        "TransactWriteItemsInput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::String,
  101         -
    "client_request_token",
         101  +
    "ClientRequestToken",
  102    102   
    3,
  103    103   
);
  104    104   
static TRANSACTWRITEITEMSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  105    105   
    TRANSACTWRITEITEMSINPUT_SCHEMA_ID,
  106    106   
    ::aws_smithy_schema::ShapeType::Structure,
  107    107   
    &[
  108    108   
        &TRANSACTWRITEITEMSINPUT_MEMBER_TRANSACT_ITEMS,
  109    109   
        &TRANSACTWRITEITEMSINPUT_MEMBER_RETURN_CONSUMED_CAPACITY,
  110    110   
        &TRANSACTWRITEITEMSINPUT_MEMBER_RETURN_ITEM_COLLECTION_METRICS,
  111    111   
        &TRANSACTWRITEITEMSINPUT_MEMBER_CLIENT_REQUEST_TOKEN,
  112    112   
    ],
  113    113   
);
  114    114   
impl TransactWriteItemsInput {
  115    115   
    /// The schema for this shape.
  116    116   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TRANSACTWRITEITEMSINPUT_SCHEMA;
  117    117   
}
  118    118   
impl ::aws_smithy_schema::serde::SerializableStruct for TransactWriteItemsInput {
  119    119   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  120    120   
    fn serialize_members(
  121    121   
        &self,
  122    122   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  123    123   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  124    124   
        if let Some(ref val) = self.transact_items {
  125    125   
            ser.write_list(
  126    126   
                &TRANSACTWRITEITEMSINPUT_MEMBER_TRANSACT_ITEMS,
  127    127   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  128    128   
                    for item in val {
  129    129   
                        ser.write_struct(crate::types::TransactWriteItem::SCHEMA, item)?;
  130    130   
                    }
  131    131   
                    Ok(())
  132    132   
                },
  133    133   
            )?;
  134    134   
        }
  135    135   
        if let Some(ref val) = self.return_consumed_capacity {
  136    136   
            ser.write_string(&TRANSACTWRITEITEMSINPUT_MEMBER_RETURN_CONSUMED_CAPACITY, val.as_str())?;
  137    137   
        }
  138    138   
        if let Some(ref val) = self.return_item_collection_metrics {
  139    139   
            ser.write_string(&TRANSACTWRITEITEMSINPUT_MEMBER_RETURN_ITEM_COLLECTION_METRICS, val.as_str())?;
  140    140   
        }
  141    141   
        if let Some(ref val) = self.client_request_token {
  142    142   
            ser.write_string(&TRANSACTWRITEITEMSINPUT_MEMBER_CLIENT_REQUEST_TOKEN, val)?;
  143    143   
        }
  144    144   
        Ok(())
  145    145   
    }
  146    146   
}
  147    147   
impl TransactWriteItemsInput {
  148    148   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  149         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  150         -
        deserializer: &mut D,
         149  +
    pub fn deserialize(
         150  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  151    151   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  152    152   
        #[allow(unused_variables, unused_mut)]
  153    153   
        let mut builder = Self::builder();
  154    154   
        #[allow(
  155    155   
            unused_variables,
  156    156   
            unreachable_code,
  157    157   
            clippy::single_match,
  158    158   
            clippy::match_single_binding,
  159    159   
            clippy::diverging_sub_expression
  160    160   
        )]
  161         -
        deserializer.read_struct(&TRANSACTWRITEITEMSINPUT_SCHEMA, (), |_, member, deser| {
         161  +
        deserializer.read_struct(&TRANSACTWRITEITEMSINPUT_SCHEMA, &mut |member, deser| {
  162    162   
            match member.member_index() {
  163    163   
                Some(0) => {
  164    164   
                    builder.transact_items = Some({
  165         -
                        let container = if let Some(cap) = deser.container_size() {
  166         -
                            Vec::with_capacity(cap)
  167         -
                        } else {
  168         -
                            Vec::new()
  169         -
                        };
  170         -
                        deser.read_list(member, container, |mut list, deser| {
  171         -
                            list.push(crate::types::TransactWriteItem::deserialize(deser)?);
  172         -
                            Ok(list)
  173         -
                        })?
         165  +
                        let mut container = Vec::new();
         166  +
                        deser.read_list(member, &mut |deser| {
         167  +
                            container.push(crate::types::TransactWriteItem::deserialize(deser)?);
         168  +
                            Ok(())
         169  +
                        })?;
         170  +
                        container
  174    171   
                    });
  175    172   
                }
  176    173   
                Some(1) => {
  177    174   
                    builder.return_consumed_capacity = Some(crate::types::ReturnConsumedCapacity::from(deser.read_string(member)?.as_str()));
  178    175   
                }
  179    176   
                Some(2) => {
  180    177   
                    builder.return_item_collection_metrics =
  181    178   
                        Some(crate::types::ReturnItemCollectionMetrics::from(deser.read_string(member)?.as_str()));
  182    179   
                }
  183    180   
                Some(3) => {
  184    181   
                    builder.client_request_token = Some(deser.read_string(member)?);
  185    182   
                }
  186    183   
                _ => {}
  187    184   
            }
  188    185   
            Ok(())
  189    186   
        })?;
         187  +
        builder.transact_items = builder.transact_items.or(Some(Vec::new()));
  190    188   
        builder
  191    189   
            .build()
  192    190   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  193    191   
    }
  194    192   
}
         193  +
impl TransactWriteItemsInput {
         194  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         195  +
    pub fn deserialize_with_response(
         196  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         197  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         198  +
        _status: u16,
         199  +
        _body: &[u8],
         200  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         201  +
        Self::deserialize(deserializer)
         202  +
    }
         203  +
}
  195    204   
impl TransactWriteItemsInput {
  196    205   
    /// Creates a new builder-style object to manufacture [`TransactWriteItemsInput`](crate::operation::transact_write_items::TransactWriteItemsInput).
  197    206   
    pub fn builder() -> crate::operation::transact_write_items::builders::TransactWriteItemsInputBuilder {
  198    207   
        crate::operation::transact_write_items::builders::TransactWriteItemsInputBuilder::default()
  199    208   
    }
  200    209   
}
  201    210   
  202    211   
/// A builder for [`TransactWriteItemsInput`](crate::operation::transact_write_items::TransactWriteItemsInput).
  203    212   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  204    213   
#[non_exhaustive]

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

@@ -9,9 +165,244 @@
   29     29   
    "com.amazonaws.dynamodb.synthetic",
   30     30   
    "TransactWriteItemsOutput",
   31     31   
);
   32     32   
static TRANSACTWRITEITEMSOUTPUT_MEMBER_CONSUMED_CAPACITY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   33     33   
    ::aws_smithy_schema::ShapeId::from_static(
   34     34   
        "com.amazonaws.dynamodb.synthetic#TransactWriteItemsOutput$ConsumedCapacity",
   35     35   
        "com.amazonaws.dynamodb.synthetic",
   36     36   
        "TransactWriteItemsOutput",
   37     37   
    ),
   38     38   
    ::aws_smithy_schema::ShapeType::List,
   39         -
    "consumed_capacity",
          39  +
    "ConsumedCapacity",
   40     40   
    0,
   41     41   
);
   42     42   
static TRANSACTWRITEITEMSOUTPUT_MEMBER_ITEM_COLLECTION_METRICS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   43     43   
    ::aws_smithy_schema::ShapeId::from_static(
   44     44   
        "com.amazonaws.dynamodb.synthetic#TransactWriteItemsOutput$ItemCollectionMetrics",
   45     45   
        "com.amazonaws.dynamodb.synthetic",
   46     46   
        "TransactWriteItemsOutput",
   47     47   
    ),
   48     48   
    ::aws_smithy_schema::ShapeType::Map,
   49         -
    "item_collection_metrics",
          49  +
    "ItemCollectionMetrics",
   50     50   
    1,
   51     51   
);
          52  +
static TRANSACTWRITEITEMSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          53  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          54  +
    ::aws_smithy_schema::ShapeType::String,
          55  +
    "request_id",
          56  +
    2,
          57  +
)
          58  +
.with_http_header("x-amzn-requestid");
   52     59   
static TRANSACTWRITEITEMSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   53     60   
    TRANSACTWRITEITEMSOUTPUT_SCHEMA_ID,
   54     61   
    ::aws_smithy_schema::ShapeType::Structure,
   55     62   
    &[
   56     63   
        &TRANSACTWRITEITEMSOUTPUT_MEMBER_CONSUMED_CAPACITY,
   57     64   
        &TRANSACTWRITEITEMSOUTPUT_MEMBER_ITEM_COLLECTION_METRICS,
          65  +
        &TRANSACTWRITEITEMSOUTPUT_MEMBER__REQUEST_ID,
   58     66   
    ],
   59     67   
);
   60     68   
impl TransactWriteItemsOutput {
   61     69   
    /// The schema for this shape.
   62     70   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TRANSACTWRITEITEMSOUTPUT_SCHEMA;
   63     71   
}
   64     72   
impl ::aws_smithy_schema::serde::SerializableStruct for TransactWriteItemsOutput {
   65     73   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   66     74   
    fn serialize_members(
   67     75   
        &self,
   68     76   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   69     77   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   70     78   
        if let Some(ref val) = self.consumed_capacity {
   71     79   
            ser.write_list(
   72     80   
                &TRANSACTWRITEITEMSOUTPUT_MEMBER_CONSUMED_CAPACITY,
   73     81   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   74     82   
                    for item in val {
   75     83   
                        ser.write_struct(crate::types::ConsumedCapacity::SCHEMA, item)?;
   76     84   
                    }
   77     85   
                    Ok(())
   78     86   
                },
   79     87   
            )?;
   80     88   
        }
   81     89   
        if let Some(ref val) = self.item_collection_metrics {
   82     90   
            ser.write_map(
   83     91   
                &TRANSACTWRITEITEMSOUTPUT_MEMBER_ITEM_COLLECTION_METRICS,
   84     92   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   85     93   
                    for (key, value) in val {
   86     94   
                        ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
   87         -
                        todo!("schema: unsupported map value type");
          95  +
          96  +
                        ser.write_list(
          97  +
                            &::aws_smithy_schema::prelude::DOCUMENT,
          98  +
                            &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
          99  +
                                for item in value {
         100  +
                                    ser.write_struct(crate::types::ItemCollectionMetrics::SCHEMA, item)?;
         101  +
                                }
         102  +
                                Ok(())
         103  +
                            },
         104  +
                        )?;
   88    105   
                    }
   89    106   
                    Ok(())
   90    107   
                },
   91    108   
            )?;
   92    109   
        }
   93    110   
        Ok(())
   94    111   
    }
   95    112   
}
   96    113   
impl TransactWriteItemsOutput {
   97    114   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   98         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   99         -
        deserializer: &mut D,
         115  +
    pub fn deserialize(
         116  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         117  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         118  +
        #[allow(unused_variables, unused_mut)]
         119  +
        let mut builder = Self::builder();
         120  +
        #[allow(
         121  +
            unused_variables,
         122  +
            unreachable_code,
         123  +
            clippy::single_match,
         124  +
            clippy::match_single_binding,
         125  +
            clippy::diverging_sub_expression
         126  +
        )]
         127  +
        deserializer.read_struct(&TRANSACTWRITEITEMSOUTPUT_SCHEMA, &mut |member, deser| {
         128  +
            match member.member_index() {
         129  +
                Some(0) => {
         130  +
                    builder.consumed_capacity = Some({
         131  +
                        let mut container = Vec::new();
         132  +
                        deser.read_list(member, &mut |deser| {
         133  +
                            container.push(crate::types::ConsumedCapacity::deserialize(deser)?);
         134  +
                            Ok(())
         135  +
                        })?;
         136  +
                        container
         137  +
                    });
         138  +
                }
         139  +
                Some(1) => {
         140  +
                    builder.item_collection_metrics = Some({
         141  +
                        let mut container = std::collections::HashMap::new();
         142  +
                        deser.read_map(member, &mut |key, deser| {
         143  +
                            container.insert(key, {
         144  +
                                let mut list = Vec::new();
         145  +
                                deser.read_list(member, &mut |deser| {
         146  +
                                    list.push(crate::types::ItemCollectionMetrics::deserialize(deser)?);
         147  +
                                    Ok(())
         148  +
                                })?;
         149  +
                                list
         150  +
                            });
         151  +
                            Ok(())
         152  +
                        })?;
         153  +
                        container
         154  +
                    });
         155  +
                }
         156  +
                Some(2) => {
         157  +
                    builder._request_id = Some(deser.read_string(member)?);
         158  +
                }
         159  +
                _ => {}
         160  +
            }
         161  +
            Ok(())
         162  +
        })?;
         163  +
        Ok(builder.build())
         164  +
    }
         165  +
}
         166  +
impl TransactWriteItemsOutput {
         167  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         168  +
    /// Header-bound members are read directly from headers, avoiding runtime
         169  +
    /// member iteration overhead. Body members are read via the deserializer.
         170  +
    pub fn deserialize_with_response(
         171  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         172  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         173  +
        _status: u16,
         174  +
        _body: &[u8],
  100    175   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  101    176   
        #[allow(unused_variables, unused_mut)]
  102    177   
        let mut builder = Self::builder();
         178  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         179  +
            builder._request_id = Some(val.to_string());
         180  +
        }
  103    181   
        #[allow(
  104    182   
            unused_variables,
  105    183   
            unreachable_code,
  106    184   
            clippy::single_match,
  107    185   
            clippy::match_single_binding,
  108    186   
            clippy::diverging_sub_expression
  109    187   
        )]
  110         -
        deserializer.read_struct(&TRANSACTWRITEITEMSOUTPUT_SCHEMA, (), |_, member, deser| {
         188  +
        deserializer.read_struct(&TRANSACTWRITEITEMSOUTPUT_SCHEMA, &mut |member, deser| {
  111    189   
            match member.member_index() {
  112    190   
                Some(0) => {
  113    191   
                    builder.consumed_capacity = Some({
  114         -
                        let container = if let Some(cap) = deser.container_size() {
  115         -
                            Vec::with_capacity(cap)
  116         -
                        } else {
  117         -
                            Vec::new()
  118         -
                        };
  119         -
                        deser.read_list(member, container, |mut list, deser| {
  120         -
                            list.push(crate::types::ConsumedCapacity::deserialize(deser)?);
  121         -
                            Ok(list)
  122         -
                        })?
         192  +
                        let mut container = Vec::new();
         193  +
                        deser.read_list(member, &mut |deser| {
         194  +
                            container.push(crate::types::ConsumedCapacity::deserialize(deser)?);
         195  +
                            Ok(())
         196  +
                        })?;
         197  +
                        container
  123    198   
                    });
  124    199   
                }
  125    200   
                Some(1) => {
  126    201   
                    builder.item_collection_metrics = Some({
  127         -
                        let container = if let Some(cap) = deser.container_size() {
  128         -
                            std::collections::HashMap::with_capacity(cap)
  129         -
                        } else {
  130         -
                            std::collections::HashMap::new()
  131         -
                        };
  132         -
                        deser.read_map(member, container, |mut map, key, deser| {
  133         -
                            map.insert(key, todo!("deserialize nested aggregate"));
  134         -
                            Ok(map)
  135         -
                        })?
         202  +
                        let mut container = std::collections::HashMap::new();
         203  +
                        deser.read_map(member, &mut |key, deser| {
         204  +
                            container.insert(key, {
         205  +
                                let mut list = Vec::new();
         206  +
                                deser.read_list(member, &mut |deser| {
         207  +
                                    list.push(crate::types::ItemCollectionMetrics::deserialize(deser)?);
         208  +
                                    Ok(())
         209  +
                                })?;
         210  +
                                list
         211  +
                            });
         212  +
                            Ok(())
         213  +
                        })?;
         214  +
                        container
  136    215   
                    });
  137    216   
                }
  138    217   
                _ => {}
  139    218   
            }
  140    219   
            Ok(())
  141    220   
        })?;
  142    221   
        Ok(builder.build())
  143    222   
    }
  144    223   
}
  145    224   
impl ::aws_types::request_id::RequestId for TransactWriteItemsOutput {

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/untag_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 `UntagResource`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UntagResource;
    6      6   
impl UntagResource {
    7      7   
    /// Creates a new `UntagResource`
    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::untag_resource::UntagResourceInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::untag_resource::UntagResourceOutput::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::untag_resource::UntagResourceInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::untag_resource::UntagResourceOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::untag_resource::UntagResourceError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +242,375 @@
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct UntagResourceResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UntagResourceResponseDeserializer {
  145    149   
    fn deserialize_nonstreaming(
  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_untag_resource::de_untag_resource_http_error(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::untag_resource::UntagResourceError::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::untag_resource::UntagResourceError::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::untag_resource::UntagResourceError::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::untag_resource::UntagResourceError::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::untag_resource::UntagResourceError::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  +
                        }
         269  +
                    };
         270  +
                    tmp.meta = generic;
         271  +
                    if tmp.message.is_none() {
         272  +
                        tmp.message = _error_message;
         273  +
                    }
         274  +
                    tmp
         275  +
                }),
         276  +
                "ResourceNotFoundException" => crate::operation::untag_resource::UntagResourceError::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::untag_resource::UntagResourceError::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  +
            ))
  157    305   
        } else {
  158         -
            crate::protocol_serde::shape_untag_resource::de_untag_resource_http_response(status, headers, body)
  159         -
        };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         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, UntagResource::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::untag_resource::UntagResourceOutput::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 UntagResourceRequestSerializer;
  165    328   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UntagResourceRequestSerializer {
  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::untag_resource::UntagResourceInput>()
  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::untag_resource::UntagResourceInput,
  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::untag_resource::UntagResourceInput,
  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.UntagResource",
  204         -
            );
  205         -
            builder
  206         -
        };
  207         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_untag_resource::ser_untag_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, UntagResource::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 UntagResourceEndpointParamsInterceptor;
  217    350   
  218    351   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UntagResourceEndpointParamsInterceptor {
  219    352   
    fn name(&self) -> &'static str {
  220    353   
        "UntagResourceEndpointParamsInterceptor"
  221    354   
    }
  222    355   

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

@@ -5,5 +150,153 @@
   25     25   
    "com.amazonaws.dynamodb.synthetic",
   26     26   
    "UntagResourceInput",
   27     27   
);
   28     28   
static UNTAGRESOURCEINPUT_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#UntagResourceInput$ResourceArn",
   31     31   
        "com.amazonaws.dynamodb.synthetic",
   32     32   
        "UntagResourceInput",
   33     33   
    ),
   34     34   
    ::aws_smithy_schema::ShapeType::String,
   35         -
    "resource_arn",
          35  +
    "ResourceArn",
   36     36   
    0,
   37     37   
);
   38     38   
static UNTAGRESOURCEINPUT_MEMBER_TAG_KEYS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.dynamodb.synthetic#UntagResourceInput$TagKeys",
   41     41   
        "com.amazonaws.dynamodb.synthetic",
   42     42   
        "UntagResourceInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::List,
   45         -
    "tag_keys",
          45  +
    "TagKeys",
   46     46   
    1,
   47     47   
);
   48     48   
static UNTAGRESOURCEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    UNTAGRESOURCEINPUT_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[&UNTAGRESOURCEINPUT_MEMBER_RESOURCE_ARN, &UNTAGRESOURCEINPUT_MEMBER_TAG_KEYS],
   52     52   
);
   53     53   
impl UntagResourceInput {
   54     54   
    /// The schema for this shape.
   55     55   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UNTAGRESOURCEINPUT_SCHEMA;
   56     56   
}
   57     57   
impl ::aws_smithy_schema::serde::SerializableStruct for UntagResourceInput {
   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(&UNTAGRESOURCEINPUT_MEMBER_RESOURCE_ARN, val)?;
   65     65   
        }
   66     66   
        if let Some(ref val) = self.tag_keys {
   67     67   
            ser.write_list(
   68     68   
                &UNTAGRESOURCEINPUT_MEMBER_TAG_KEYS,
   69     69   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   70     70   
                    for item in val {
   71     71   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
   72     72   
                    }
   73     73   
                    Ok(())
   74     74   
                },
   75     75   
            )?;
   76     76   
        }
   77     77   
        Ok(())
   78     78   
    }
   79     79   
}
   80     80   
impl UntagResourceInput {
   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(&UNTAGRESOURCEINPUT_SCHEMA, (), |_, member, deser| {
          94  +
        deserializer.read_struct(&UNTAGRESOURCEINPUT_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         -
                    builder.tag_keys = 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(deser.read_string(member)?);
  108         -
                            Ok(list)
  109         -
                        })?
  110         -
                    });
         100  +
                    builder.tag_keys = Some(deser.read_string_list(member)?);
  111    101   
                }
  112    102   
                _ => {}
  113    103   
            }
  114    104   
            Ok(())
  115    105   
        })?;
         106  +
        builder.resource_arn = builder.resource_arn.or(Some(String::new()));
         107  +
        builder.tag_keys = builder.tag_keys.or(Some(Vec::new()));
  116    108   
        builder
  117    109   
            .build()
  118    110   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  119    111   
    }
  120    112   
}
         113  +
impl UntagResourceInput {
         114  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         115  +
    pub fn deserialize_with_response(
         116  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         117  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         118  +
        _status: u16,
         119  +
        _body: &[u8],
         120  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         121  +
        Self::deserialize(deserializer)
         122  +
    }
         123  +
}
  121    124   
impl UntagResourceInput {
  122    125   
    /// Creates a new builder-style object to manufacture [`UntagResourceInput`](crate::operation::untag_resource::UntagResourceInput).
  123    126   
    pub fn builder() -> crate::operation::untag_resource::builders::UntagResourceInputBuilder {
  124    127   
        crate::operation::untag_resource::builders::UntagResourceInputBuilder::default()
  125    128   
    }
  126    129   
}
  127    130   
  128    131   
/// A builder for [`UntagResourceInput`](crate::operation::untag_resource::UntagResourceInput).
  129    132   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  130    133   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/untag_resource/_untag_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 UntagResourceOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static UNTAGRESOURCEOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.dynamodb.synthetic#UntagResourceOutput",
   10     10   
    "com.amazonaws.dynamodb.synthetic",
   11     11   
    "UntagResourceOutput",
   12     12   
);
   13         -
static UNTAGRESOURCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(UNTAGRESOURCEOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static UNTAGRESOURCEOUTPUT_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 UNTAGRESOURCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    UNTAGRESOURCEOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&UNTAGRESOURCEOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl UntagResourceOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UNTAGRESOURCEOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for UntagResourceOutput {
   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 UntagResourceOutput {
   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(&UNTAGRESOURCEOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&UNTAGRESOURCEOUTPUT_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 UntagResourceOutput {
          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 UntagResourceOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl UntagResourceOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`UntagResourceOutput`](crate::operation::untag_resource::UntagResourceOutput).
   58     89   
    pub fn builder() -> crate::operation::untag_resource::builders::UntagResourceOutputBuilder {
   59     90   
        crate::operation::untag_resource::builders::UntagResourceOutputBuilder::default()
   60     91   
    }

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

@@ -1,1 +40,45 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `UpdateContinuousBackups`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UpdateContinuousBackups;
    6      6   
impl UpdateContinuousBackups {
    7      7   
    /// Creates a new `UpdateContinuousBackups`
    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::update_continuous_backups::UpdateContinuousBackupsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          15  +
        crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput::SCHEMA;
   11     16   
    pub(crate) async fn orchestrate(
   12     17   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     18   
        input: crate::operation::update_continuous_backups::UpdateContinuousBackupsInput,
   14     19   
    ) -> ::std::result::Result<
   15     20   
        crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput,
   16     21   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     22   
            crate::operation::update_continuous_backups::UpdateContinuousBackupsError,
   18     23   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     24   
        >,
   20     25   
    > {
@@ -121,126 +247,361 @@
  141    146   
        ::std::borrow::Cow::Owned(rcb)
  142    147   
    }
  143    148   
}
  144    149   
  145    150   
#[derive(Debug)]
  146    151   
struct UpdateContinuousBackupsResponseDeserializer;
  147    152   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateContinuousBackupsResponseDeserializer {
  148    153   
    fn deserialize_nonstreaming(
  149    154   
        &self,
  150    155   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         156  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    157   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    158   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153         -
        let headers = response.headers();
  154         -
        let body = response.body().bytes().expect("body loaded");
  155    159   
        #[allow(unused_mut)]
  156    160   
        let mut force_error = false;
  157    161   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158         -
        let parse_result = if !success && status != 200 || force_error {
  159         -
            crate::protocol_serde::shape_update_continuous_backups::de_update_continuous_backups_http_error(status, headers, body)
         162  +
        if !success && status != 200 || force_error {
         163  +
            let headers = response.headers();
         164  +
            let body = response.body().bytes().expect("body loaded");
         165  +
            #[allow(unused_mut)]
         166  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         167  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         168  +
            })?;
         169  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         170  +
            let generic = generic_builder.build();
         171  +
            let error_code = match generic.code() {
         172  +
                ::std::option::Option::Some(code) => code,
         173  +
                ::std::option::Option::None => {
         174  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         175  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         176  +
                            crate::operation::update_continuous_backups::UpdateContinuousBackupsError::unhandled(generic),
         177  +
                        ),
         178  +
                    ))
         179  +
                }
         180  +
            };
         181  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         182  +
            let protocol = _cfg
         183  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         184  +
                .expect("a SharedClientProtocol is required");
         185  +
            let err = match error_code {
         186  +
                "ContinuousBackupsUnavailableException" => {
         187  +
                    crate::operation::update_continuous_backups::UpdateContinuousBackupsError::ContinuousBackupsUnavailableException({
         188  +
                        let mut tmp = match protocol
         189  +
                            .deserialize_response(response, crate::types::error::ContinuousBackupsUnavailableException::SCHEMA, _cfg)
         190  +
                            .and_then(|mut deser| {
         191  +
                                crate::types::error::ContinuousBackupsUnavailableException::deserialize_with_response(
         192  +
                                    &mut *deser,
         193  +
                                    response.headers(),
         194  +
                                    response.status().into(),
         195  +
                                    body,
         196  +
                                )
         197  +
                            }) {
         198  +
                            ::std::result::Result::Ok(val) => val,
         199  +
                            ::std::result::Result::Err(e) => {
         200  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         201  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         202  +
                                ))
         203  +
                            }
         204  +
                        };
         205  +
                        tmp.meta = generic;
         206  +
                        if tmp.message.is_none() {
         207  +
                            tmp.message = _error_message;
         208  +
                        }
         209  +
                        tmp
         210  +
                    })
         211  +
                }
         212  +
                "InternalServerError" => crate::operation::update_continuous_backups::UpdateContinuousBackupsError::InternalServerError({
         213  +
                    let mut tmp = match protocol
         214  +
                        .deserialize_response(response, crate::types::error::InternalServerError::SCHEMA, _cfg)
         215  +
                        .and_then(|mut deser| {
         216  +
                            crate::types::error::InternalServerError::deserialize_with_response(
         217  +
                                &mut *deser,
         218  +
                                response.headers(),
         219  +
                                response.status().into(),
         220  +
                                body,
         221  +
                            )
         222  +
                        }) {
         223  +
                        ::std::result::Result::Ok(val) => val,
         224  +
                        ::std::result::Result::Err(e) => {
         225  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         226  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         227  +
                            ))
         228  +
                        }
         229  +
                    };
         230  +
                    tmp.meta = generic;
         231  +
                    if tmp.message.is_none() {
         232  +
                        tmp.message = _error_message;
         233  +
                    }
         234  +
                    tmp
         235  +
                }),
         236  +
                "InvalidEndpointException" => crate::operation::update_continuous_backups::UpdateContinuousBackupsError::InvalidEndpointException({
         237  +
                    let mut tmp = match protocol
         238  +
                        .deserialize_response(response, crate::types::error::InvalidEndpointException::SCHEMA, _cfg)
         239  +
                        .and_then(|mut deser| {
         240  +
                            crate::types::error::InvalidEndpointException::deserialize_with_response(
         241  +
                                &mut *deser,
         242  +
                                response.headers(),
         243  +
                                response.status().into(),
         244  +
                                body,
         245  +
                            )
         246  +
                        }) {
         247  +
                        ::std::result::Result::Ok(val) => val,
         248  +
                        ::std::result::Result::Err(e) => {
         249  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         250  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         251  +
                            ))
         252  +
                        }
         253  +
                    };
         254  +
                    tmp.meta = generic;
         255  +
                    if tmp.message.is_none() {
         256  +
                        tmp.message = _error_message;
         257  +
                    }
         258  +
                    tmp
         259  +
                }),
         260  +
                "TableNotFoundException" => crate::operation::update_continuous_backups::UpdateContinuousBackupsError::TableNotFoundException({
         261  +
                    let mut tmp = match protocol
         262  +
                        .deserialize_response(response, crate::types::error::TableNotFoundException::SCHEMA, _cfg)
         263  +
                        .and_then(|mut deser| {
         264  +
                            crate::types::error::TableNotFoundException::deserialize_with_response(
         265  +
                                &mut *deser,
         266  +
                                response.headers(),
         267  +
                                response.status().into(),
         268  +
                                body,
         269  +
                            )
         270  +
                        }) {
         271  +
                        ::std::result::Result::Ok(val) => val,
         272  +
                        ::std::result::Result::Err(e) => {
         273  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         274  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         275  +
                            ))
         276  +
                        }
         277  +
                    };
         278  +
                    tmp.meta = generic;
         279  +
                    if tmp.message.is_none() {
         280  +
                        tmp.message = _error_message;
         281  +
                    }
         282  +
                    tmp
         283  +
                }),
         284  +
                _ => crate::operation::update_continuous_backups::UpdateContinuousBackupsError::generic(generic),
         285  +
            };
         286  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         287  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         288  +
            ))
  160    289   
        } else {
  161         -
            crate::protocol_serde::shape_update_continuous_backups::de_update_continuous_backups_http_response(status, headers, body)
  162         -
        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         290  +
            let protocol = _cfg
         291  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         292  +
                .expect("a SharedClientProtocol is required");
         293  +
            let mut deser = protocol
         294  +
                .deserialize_response(response, UpdateContinuousBackups::OUTPUT_SCHEMA, _cfg)
         295  +
                .map_err(|e| {
         296  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         297  +
                })?;
         298  +
            let body = response.body().bytes().expect("body loaded");
         299  +
            let output = crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput::deserialize_with_response(
         300  +
                &mut *deser,
         301  +
                response.headers(),
         302  +
                response.status().into(),
         303  +
                body,
         304  +
            )
         305  +
            .map_err(|e| {
         306  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         307  +
            })?;
         308  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         309  +
        }
  164    310   
    }
  165    311   
}
  166    312   
#[derive(Debug)]
  167    313   
struct UpdateContinuousBackupsRequestSerializer;
  168    314   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateContinuousBackupsRequestSerializer {
  169    315   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    316   
    fn serialize_input(
  171    317   
        &self,
  172    318   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    319   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    320   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    321   
        let input = input
  176    322   
            .downcast::<crate::operation::update_continuous_backups::UpdateContinuousBackupsInput>()
  177    323   
            .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::update_continuous_backups::UpdateContinuousBackupsInput,
  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::update_continuous_backups::UpdateContinuousBackupsInput,
  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.UpdateContinuousBackups",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  211         -
            crate::protocol_serde::shape_update_continuous_backups::ser_update_continuous_backups_input(&input)?,
  212         -
        );
  213         -
        if let Some(content_length) = body.content_length() {
  214         -
            let content_length = content_length.to_string();
  215         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  216         -
        }
  217         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         324  +
        let protocol = _cfg
         325  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         326  +
            .expect("a SharedClientProtocol is required");
         327  +
        let mut request = protocol
         328  +
            .serialize_request(&input, UpdateContinuousBackups::INPUT_SCHEMA, "", _cfg)
         329  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         330  +
         331  +
        return ::std::result::Result::Ok(request);
  218    332   
    }
  219    333   
}
  220    334   
#[derive(Debug)]
  221    335   
struct UpdateContinuousBackupsEndpointParamsInterceptor;
  222    336   
  223    337   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateContinuousBackupsEndpointParamsInterceptor {
  224    338   
    fn name(&self) -> &'static str {
  225    339   
        "UpdateContinuousBackupsEndpointParamsInterceptor"
  226    340   
    }
  227    341