AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406

Files changed:

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

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

@@ -3,3 +130,143 @@
   23     23   
    "com.amazonaws.dynamodb.synthetic",
   24     24   
    "CreateBackupInput",
   25     25   
);
   26     26   
static CREATEBACKUPINPUT_MEMBER_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   27     27   
    ::aws_smithy_schema::ShapeId::from_static(
   28     28   
        "com.amazonaws.dynamodb.synthetic#CreateBackupInput$TableName",
   29     29   
        "com.amazonaws.dynamodb.synthetic",
   30     30   
        "CreateBackupInput",
   31     31   
    ),
   32     32   
    ::aws_smithy_schema::ShapeType::String,
   33         -
    "table_name",
          33  +
    "TableName",
   34     34   
    0,
   35     35   
);
   36     36   
static CREATEBACKUPINPUT_MEMBER_BACKUP_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static(
   38     38   
        "com.amazonaws.dynamodb.synthetic#CreateBackupInput$BackupName",
   39     39   
        "com.amazonaws.dynamodb.synthetic",
   40     40   
        "CreateBackupInput",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::String,
   43         -
    "backup_name",
          43  +
    "BackupName",
   44     44   
    1,
   45     45   
);
   46     46   
static CREATEBACKUPINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   47     47   
    CREATEBACKUPINPUT_SCHEMA_ID,
   48     48   
    ::aws_smithy_schema::ShapeType::Structure,
   49     49   
    &[&CREATEBACKUPINPUT_MEMBER_TABLE_NAME, &CREATEBACKUPINPUT_MEMBER_BACKUP_NAME],
   50     50   
);
   51     51   
impl CreateBackupInput {
   52     52   
    /// The schema for this shape.
   53     53   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEBACKUPINPUT_SCHEMA;
   54     54   
}
   55     55   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateBackupInput {
   56     56   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   57     57   
    fn serialize_members(
   58     58   
        &self,
   59     59   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   60     60   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   61     61   
        if let Some(ref val) = self.table_name {
   62     62   
            ser.write_string(&CREATEBACKUPINPUT_MEMBER_TABLE_NAME, val)?;
   63     63   
        }
   64     64   
        if let Some(ref val) = self.backup_name {
   65     65   
            ser.write_string(&CREATEBACKUPINPUT_MEMBER_BACKUP_NAME, val)?;
   66     66   
        }
   67     67   
        Ok(())
   68     68   
    }
   69     69   
}
   70     70   
impl CreateBackupInput {
   71     71   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   72         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   73         -
        deserializer: &mut D,
          72  +
    pub fn deserialize(
          73  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   74     74   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   75     75   
        #[allow(unused_variables, unused_mut)]
   76     76   
        let mut builder = Self::builder();
   77     77   
        #[allow(
   78     78   
            unused_variables,
   79     79   
            unreachable_code,
   80     80   
            clippy::single_match,
   81     81   
            clippy::match_single_binding,
   82     82   
            clippy::diverging_sub_expression
   83     83   
        )]
   84         -
        deserializer.read_struct(&CREATEBACKUPINPUT_SCHEMA, (), |_, member, deser| {
          84  +
        deserializer.read_struct(&CREATEBACKUPINPUT_SCHEMA, &mut |member, deser| {
   85     85   
            match member.member_index() {
   86     86   
                Some(0) => {
   87     87   
                    builder.table_name = Some(deser.read_string(member)?);
   88     88   
                }
   89     89   
                Some(1) => {
   90     90   
                    builder.backup_name = Some(deser.read_string(member)?);
   91     91   
                }
   92     92   
                _ => {}
   93     93   
            }
   94     94   
            Ok(())
   95     95   
        })?;
          96  +
        builder.table_name = builder.table_name.or(Some(String::new()));
          97  +
        builder.backup_name = builder.backup_name.or(Some(String::new()));
   96     98   
        builder
   97     99   
            .build()
   98    100   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   99    101   
    }
  100    102   
}
         103  +
impl CreateBackupInput {
         104  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         105  +
    pub fn deserialize_with_response(
         106  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         107  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         108  +
        _status: u16,
         109  +
        _body: &[u8],
         110  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         111  +
        Self::deserialize(deserializer)
         112  +
    }
         113  +
}
  101    114   
impl CreateBackupInput {
  102    115   
    /// Creates a new builder-style object to manufacture [`CreateBackupInput`](crate::operation::create_backup::CreateBackupInput).
  103    116   
    pub fn builder() -> crate::operation::create_backup::builders::CreateBackupInputBuilder {
  104    117   
        crate::operation::create_backup::builders::CreateBackupInputBuilder::default()
  105    118   
    }
  106    119   
}
  107    120   
  108    121   
/// A builder for [`CreateBackupInput`](crate::operation::create_backup::CreateBackupInput).
  109    122   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  110    123   
#[non_exhaustive]

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

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

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

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

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

@@ -5,5 +153,163 @@
   25     25   
    "com.amazonaws.dynamodb.synthetic",
   26     26   
    "CreateGlobalTableInput",
   27     27   
);
   28     28   
static CREATEGLOBALTABLEINPUT_MEMBER_GLOBAL_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   29     29   
    ::aws_smithy_schema::ShapeId::from_static(
   30     30   
        "com.amazonaws.dynamodb.synthetic#CreateGlobalTableInput$GlobalTableName",
   31     31   
        "com.amazonaws.dynamodb.synthetic",
   32     32   
        "CreateGlobalTableInput",
   33     33   
    ),
   34     34   
    ::aws_smithy_schema::ShapeType::String,
   35         -
    "global_table_name",
          35  +
    "GlobalTableName",
   36     36   
    0,
   37     37   
);
   38     38   
static CREATEGLOBALTABLEINPUT_MEMBER_REPLICATION_GROUP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.dynamodb.synthetic#CreateGlobalTableInput$ReplicationGroup",
   41     41   
        "com.amazonaws.dynamodb.synthetic",
   42     42   
        "CreateGlobalTableInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::List,
   45         -
    "replication_group",
          45  +
    "ReplicationGroup",
   46     46   
    1,
   47     47   
);
   48     48   
static CREATEGLOBALTABLEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    CREATEGLOBALTABLEINPUT_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[
   52     52   
        &CREATEGLOBALTABLEINPUT_MEMBER_GLOBAL_TABLE_NAME,
   53     53   
        &CREATEGLOBALTABLEINPUT_MEMBER_REPLICATION_GROUP,
   54     54   
    ],
   55     55   
);
   56     56   
impl CreateGlobalTableInput {
   57     57   
    /// The schema for this shape.
   58     58   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEGLOBALTABLEINPUT_SCHEMA;
   59     59   
}
   60     60   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateGlobalTableInput {
   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.global_table_name {
   67     67   
            ser.write_string(&CREATEGLOBALTABLEINPUT_MEMBER_GLOBAL_TABLE_NAME, val)?;
   68     68   
        }
   69     69   
        if let Some(ref val) = self.replication_group {
   70     70   
            ser.write_list(
   71     71   
                &CREATEGLOBALTABLEINPUT_MEMBER_REPLICATION_GROUP,
   72     72   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   73     73   
                    for item in val {
   74     74   
                        ser.write_struct(crate::types::Replica::SCHEMA, item)?;
   75     75   
                    }
   76     76   
                    Ok(())
   77     77   
                },
   78     78   
            )?;
   79     79   
        }
   80     80   
        Ok(())
   81     81   
    }
   82     82   
}
   83     83   
impl CreateGlobalTableInput {
   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(&CREATEGLOBALTABLEINPUT_SCHEMA, (), |_, member, deser| {
          97  +
        deserializer.read_struct(&CREATEGLOBALTABLEINPUT_SCHEMA, &mut |member, deser| {
   98     98   
            match member.member_index() {
   99     99   
                Some(0) => {
  100    100   
                    builder.global_table_name = Some(deser.read_string(member)?);
  101    101   
                }
  102    102   
                Some(1) => {
  103    103   
                    builder.replication_group = Some({
  104         -
                        let container = if let Some(cap) = deser.container_size() {
  105         -
                            Vec::with_capacity(cap)
  106         -
                        } else {
  107         -
                            Vec::new()
  108         -
                        };
  109         -
                        deser.read_list(member, container, |mut list, deser| {
  110         -
                            list.push(crate::types::Replica::deserialize(deser)?);
  111         -
                            Ok(list)
  112         -
                        })?
         104  +
                        let mut container = Vec::new();
         105  +
                        deser.read_list(member, &mut |deser| {
         106  +
                            container.push(crate::types::Replica::deserialize(deser)?);
         107  +
                            Ok(())
         108  +
                        })?;
         109  +
                        container
  113    110   
                    });
  114    111   
                }
  115    112   
                _ => {}
  116    113   
            }
  117    114   
            Ok(())
  118    115   
        })?;
         116  +
        builder.global_table_name = builder.global_table_name.or(Some(String::new()));
         117  +
        builder.replication_group = builder.replication_group.or(Some(Vec::new()));
  119    118   
        builder
  120    119   
            .build()
  121    120   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  122    121   
    }
  123    122   
}
         123  +
impl CreateGlobalTableInput {
         124  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         125  +
    pub fn deserialize_with_response(
         126  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         127  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         128  +
        _status: u16,
         129  +
        _body: &[u8],
         130  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         131  +
        Self::deserialize(deserializer)
         132  +
    }
         133  +
}
  124    134   
impl CreateGlobalTableInput {
  125    135   
    /// Creates a new builder-style object to manufacture [`CreateGlobalTableInput`](crate::operation::create_global_table::CreateGlobalTableInput).
  126    136   
    pub fn builder() -> crate::operation::create_global_table::builders::CreateGlobalTableInputBuilder {
  127    137   
        crate::operation::create_global_table::builders::CreateGlobalTableInputBuilder::default()
  128    138   
    }
  129    139   
}
  130    140   
  131    141   
/// A builder for [`CreateGlobalTableInput`](crate::operation::create_global_table::CreateGlobalTableInput).
  132    142   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  133    143   
#[non_exhaustive]

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

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

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `CreateTable`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateTable;
    6      6   
impl CreateTable {
    7      7   
    /// Creates a new `CreateTable`
    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::create_table::CreateTableInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::create_table::CreateTableOutput::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::create_table::CreateTableInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::create_table::CreateTableOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::create_table::CreateTableError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +242,351 @@
  135    139   
                crate::operation::create_table::CreateTableError,
  136    140   
            >::new());
  137    141   
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct CreateTableResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateTableResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150         -
        let headers = response.headers();
  151         -
        let body = response.body().bytes().expect("body loaded");
  152    155   
        #[allow(unused_mut)]
  153    156   
        let mut force_error = false;
  154    157   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155         -
        let parse_result = if !success && status != 200 || force_error {
  156         -
            crate::protocol_serde::shape_create_table::de_create_table_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::create_table::CreateTableError::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::create_table::CreateTableError::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::create_table::CreateTableError::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::create_table::CreateTableError::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::create_table::CreateTableError::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  +
                _ => crate::operation::create_table::CreateTableError::generic(generic),
         277  +
            };
         278  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         279  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         280  +
            ))
  157    281   
        } else {
  158         -
            crate::protocol_serde::shape_create_table::de_create_table_http_response(status, headers, body)
  159         -
        };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         282  +
            let protocol = _cfg
         283  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         284  +
                .expect("a SharedClientProtocol is required");
         285  +
            let mut deser = protocol.deserialize_response(response, CreateTable::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         286  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         287  +
            })?;
         288  +
            let body = response.body().bytes().expect("body loaded");
         289  +
            let output = crate::operation::create_table::CreateTableOutput::deserialize_with_response(
         290  +
                &mut *deser,
         291  +
                response.headers(),
         292  +
                response.status().into(),
         293  +
                body,
         294  +
            )
         295  +
            .map_err(|e| {
         296  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         297  +
            })?;
         298  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         299  +
        }
  161    300   
    }
  162    301   
}
  163    302   
#[derive(Debug)]
  164    303   
struct CreateTableRequestSerializer;
  165    304   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for CreateTableRequestSerializer {
  166    305   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  167    306   
    fn serialize_input(
  168    307   
        &self,
  169    308   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  170    309   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  171    310   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  172    311   
        let input = input
  173    312   
            .downcast::<crate::operation::create_table::CreateTableInput>()
  174    313   
            .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::create_table::CreateTableInput,
  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::create_table::CreateTableInput,
  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.CreateTable",
  204         -
            );
  205         -
            builder
  206         -
        };
  207         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_create_table::ser_create_table_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())
         314  +
        let protocol = _cfg
         315  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         316  +
            .expect("a SharedClientProtocol is required");
         317  +
        let mut request = protocol
         318  +
            .serialize_request(&input, CreateTable::INPUT_SCHEMA, "", _cfg)
         319  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         320  +
         321  +
        return ::std::result::Result::Ok(request);
  213    322   
    }
  214    323   
}
  215    324   
#[derive(Debug)]
  216    325   
struct CreateTableEndpointParamsInterceptor;
  217    326   
  218    327   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateTableEndpointParamsInterceptor {
  219    328   
    fn name(&self) -> &'static str {
  220    329   
        "CreateTableEndpointParamsInterceptor"
  221    330   
    }
  222    331   

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

@@ -284,284 +484,484 @@
  304    304   
    "com.amazonaws.dynamodb.synthetic",
  305    305   
    "CreateTableInput",
  306    306   
);
  307    307   
static CREATETABLEINPUT_MEMBER_ATTRIBUTE_DEFINITIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  308    308   
    ::aws_smithy_schema::ShapeId::from_static(
  309    309   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$AttributeDefinitions",
  310    310   
        "com.amazonaws.dynamodb.synthetic",
  311    311   
        "CreateTableInput",
  312    312   
    ),
  313    313   
    ::aws_smithy_schema::ShapeType::List,
  314         -
    "attribute_definitions",
         314  +
    "AttributeDefinitions",
  315    315   
    0,
  316    316   
);
  317    317   
static CREATETABLEINPUT_MEMBER_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  318    318   
    ::aws_smithy_schema::ShapeId::from_static(
  319    319   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$TableName",
  320    320   
        "com.amazonaws.dynamodb.synthetic",
  321    321   
        "CreateTableInput",
  322    322   
    ),
  323    323   
    ::aws_smithy_schema::ShapeType::String,
  324         -
    "table_name",
         324  +
    "TableName",
  325    325   
    1,
  326    326   
);
  327    327   
static CREATETABLEINPUT_MEMBER_KEY_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  328    328   
    ::aws_smithy_schema::ShapeId::from_static(
  329    329   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$KeySchema",
  330    330   
        "com.amazonaws.dynamodb.synthetic",
  331    331   
        "CreateTableInput",
  332    332   
    ),
  333    333   
    ::aws_smithy_schema::ShapeType::List,
  334         -
    "key_schema",
         334  +
    "KeySchema",
  335    335   
    2,
  336    336   
);
  337    337   
static CREATETABLEINPUT_MEMBER_LOCAL_SECONDARY_INDEXES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  338    338   
    ::aws_smithy_schema::ShapeId::from_static(
  339    339   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$LocalSecondaryIndexes",
  340    340   
        "com.amazonaws.dynamodb.synthetic",
  341    341   
        "CreateTableInput",
  342    342   
    ),
  343    343   
    ::aws_smithy_schema::ShapeType::List,
  344         -
    "local_secondary_indexes",
         344  +
    "LocalSecondaryIndexes",
  345    345   
    3,
  346    346   
);
  347    347   
static CREATETABLEINPUT_MEMBER_GLOBAL_SECONDARY_INDEXES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  348    348   
    ::aws_smithy_schema::ShapeId::from_static(
  349    349   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$GlobalSecondaryIndexes",
  350    350   
        "com.amazonaws.dynamodb.synthetic",
  351    351   
        "CreateTableInput",
  352    352   
    ),
  353    353   
    ::aws_smithy_schema::ShapeType::List,
  354         -
    "global_secondary_indexes",
         354  +
    "GlobalSecondaryIndexes",
  355    355   
    4,
  356    356   
);
  357    357   
static CREATETABLEINPUT_MEMBER_BILLING_MODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  358    358   
    ::aws_smithy_schema::ShapeId::from_static(
  359    359   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$BillingMode",
  360    360   
        "com.amazonaws.dynamodb.synthetic",
  361    361   
        "CreateTableInput",
  362    362   
    ),
  363    363   
    ::aws_smithy_schema::ShapeType::String,
  364         -
    "billing_mode",
         364  +
    "BillingMode",
  365    365   
    5,
  366    366   
);
  367    367   
static CREATETABLEINPUT_MEMBER_PROVISIONED_THROUGHPUT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  368    368   
    ::aws_smithy_schema::ShapeId::from_static(
  369    369   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$ProvisionedThroughput",
  370    370   
        "com.amazonaws.dynamodb.synthetic",
  371    371   
        "CreateTableInput",
  372    372   
    ),
  373    373   
    ::aws_smithy_schema::ShapeType::Structure,
  374         -
    "provisioned_throughput",
         374  +
    "ProvisionedThroughput",
  375    375   
    6,
  376    376   
);
  377    377   
static CREATETABLEINPUT_MEMBER_STREAM_SPECIFICATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  378    378   
    ::aws_smithy_schema::ShapeId::from_static(
  379    379   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$StreamSpecification",
  380    380   
        "com.amazonaws.dynamodb.synthetic",
  381    381   
        "CreateTableInput",
  382    382   
    ),
  383    383   
    ::aws_smithy_schema::ShapeType::Structure,
  384         -
    "stream_specification",
         384  +
    "StreamSpecification",
  385    385   
    7,
  386    386   
);
  387    387   
static CREATETABLEINPUT_MEMBER_SSE_SPECIFICATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  388    388   
    ::aws_smithy_schema::ShapeId::from_static(
  389    389   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$SSESpecification",
  390    390   
        "com.amazonaws.dynamodb.synthetic",
  391    391   
        "CreateTableInput",
  392    392   
    ),
  393    393   
    ::aws_smithy_schema::ShapeType::Structure,
  394         -
    "sse_specification",
         394  +
    "SSESpecification",
  395    395   
    8,
  396    396   
);
  397    397   
static CREATETABLEINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  398    398   
    ::aws_smithy_schema::ShapeId::from_static(
  399    399   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$Tags",
  400    400   
        "com.amazonaws.dynamodb.synthetic",
  401    401   
        "CreateTableInput",
  402    402   
    ),
  403    403   
    ::aws_smithy_schema::ShapeType::List,
  404         -
    "tags",
         404  +
    "Tags",
  405    405   
    9,
  406    406   
);
  407    407   
static CREATETABLEINPUT_MEMBER_TABLE_CLASS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  408    408   
    ::aws_smithy_schema::ShapeId::from_static(
  409    409   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$TableClass",
  410    410   
        "com.amazonaws.dynamodb.synthetic",
  411    411   
        "CreateTableInput",
  412    412   
    ),
  413    413   
    ::aws_smithy_schema::ShapeType::String,
  414         -
    "table_class",
         414  +
    "TableClass",
  415    415   
    10,
  416    416   
);
  417    417   
static CREATETABLEINPUT_MEMBER_DELETION_PROTECTION_ENABLED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  418    418   
    ::aws_smithy_schema::ShapeId::from_static(
  419    419   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$DeletionProtectionEnabled",
  420    420   
        "com.amazonaws.dynamodb.synthetic",
  421    421   
        "CreateTableInput",
  422    422   
    ),
  423    423   
    ::aws_smithy_schema::ShapeType::Boolean,
  424         -
    "deletion_protection_enabled",
         424  +
    "DeletionProtectionEnabled",
  425    425   
    11,
  426    426   
);
  427    427   
static CREATETABLEINPUT_MEMBER_WARM_THROUGHPUT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  428    428   
    ::aws_smithy_schema::ShapeId::from_static(
  429    429   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$WarmThroughput",
  430    430   
        "com.amazonaws.dynamodb.synthetic",
  431    431   
        "CreateTableInput",
  432    432   
    ),
  433    433   
    ::aws_smithy_schema::ShapeType::Structure,
  434         -
    "warm_throughput",
         434  +
    "WarmThroughput",
  435    435   
    12,
  436    436   
);
  437    437   
static CREATETABLEINPUT_MEMBER_RESOURCE_POLICY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  438    438   
    ::aws_smithy_schema::ShapeId::from_static(
  439    439   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$ResourcePolicy",
  440    440   
        "com.amazonaws.dynamodb.synthetic",
  441    441   
        "CreateTableInput",
  442    442   
    ),
  443    443   
    ::aws_smithy_schema::ShapeType::String,
  444         -
    "resource_policy",
         444  +
    "ResourcePolicy",
  445    445   
    13,
  446    446   
);
  447    447   
static CREATETABLEINPUT_MEMBER_ON_DEMAND_THROUGHPUT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  448    448   
    ::aws_smithy_schema::ShapeId::from_static(
  449    449   
        "com.amazonaws.dynamodb.synthetic#CreateTableInput$OnDemandThroughput",
  450    450   
        "com.amazonaws.dynamodb.synthetic",
  451    451   
        "CreateTableInput",
  452    452   
    ),
  453    453   
    ::aws_smithy_schema::ShapeType::Structure,
  454         -
    "on_demand_throughput",
         454  +
    "OnDemandThroughput",
  455    455   
    14,
  456    456   
);
  457    457   
static CREATETABLEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  458    458   
    CREATETABLEINPUT_SCHEMA_ID,
  459    459   
    ::aws_smithy_schema::ShapeType::Structure,
  460    460   
    &[
  461    461   
        &CREATETABLEINPUT_MEMBER_ATTRIBUTE_DEFINITIONS,
  462    462   
        &CREATETABLEINPUT_MEMBER_TABLE_NAME,
  463    463   
        &CREATETABLEINPUT_MEMBER_KEY_SCHEMA,
  464    464   
        &CREATETABLEINPUT_MEMBER_LOCAL_SECONDARY_INDEXES,
@@ -548,548 +725,724 @@
  568    568   
            ser.write_string(&CREATETABLEINPUT_MEMBER_RESOURCE_POLICY, val)?;
  569    569   
        }
  570    570   
        if let Some(ref val) = self.on_demand_throughput {
  571    571   
            ser.write_struct(&CREATETABLEINPUT_MEMBER_ON_DEMAND_THROUGHPUT, val)?;
  572    572   
        }
  573    573   
        Ok(())
  574    574   
    }
  575    575   
}
  576    576   
impl CreateTableInput {
  577    577   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  578         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  579         -
        deserializer: &mut D,
         578  +
    pub fn deserialize(
         579  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  580    580   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  581    581   
        #[allow(unused_variables, unused_mut)]
  582    582   
        let mut builder = Self::builder();
  583    583   
        #[allow(
  584    584   
            unused_variables,
  585    585   
            unreachable_code,
  586    586   
            clippy::single_match,
  587    587   
            clippy::match_single_binding,
  588    588   
            clippy::diverging_sub_expression
  589    589   
        )]
  590         -
        deserializer.read_struct(&CREATETABLEINPUT_SCHEMA, (), |_, member, deser| {
         590  +
        deserializer.read_struct(&CREATETABLEINPUT_SCHEMA, &mut |member, deser| {
  591    591   
            match member.member_index() {
  592    592   
                Some(0) => {
  593    593   
                    builder.attribute_definitions = Some({
  594         -
                        let container = if let Some(cap) = deser.container_size() {
  595         -
                            Vec::with_capacity(cap)
  596         -
                        } else {
  597         -
                            Vec::new()
  598         -
                        };
  599         -
                        deser.read_list(member, container, |mut list, deser| {
  600         -
                            list.push(crate::types::AttributeDefinition::deserialize(deser)?);
  601         -
                            Ok(list)
  602         -
                        })?
         594  +
                        let mut container = Vec::new();
         595  +
                        deser.read_list(member, &mut |deser| {
         596  +
                            container.push(crate::types::AttributeDefinition::deserialize(deser)?);
         597  +
                            Ok(())
         598  +
                        })?;
         599  +
                        container
  603    600   
                    });
  604    601   
                }
  605    602   
                Some(1) => {
  606    603   
                    builder.table_name = Some(deser.read_string(member)?);
  607    604   
                }
  608    605   
                Some(2) => {
  609    606   
                    builder.key_schema = Some({
  610         -
                        let container = if let Some(cap) = deser.container_size() {
  611         -
                            Vec::with_capacity(cap)
  612         -
                        } else {
  613         -
                            Vec::new()
  614         -
                        };
  615         -
                        deser.read_list(member, container, |mut list, deser| {
  616         -
                            list.push(crate::types::KeySchemaElement::deserialize(deser)?);
  617         -
                            Ok(list)
  618         -
                        })?
         607  +
                        let mut container = Vec::new();
         608  +
                        deser.read_list(member, &mut |deser| {
         609  +
                            container.push(crate::types::KeySchemaElement::deserialize(deser)?);
         610  +
                            Ok(())
         611  +
                        })?;
         612  +
                        container
  619    613   
                    });
  620    614   
                }
  621    615   
                Some(3) => {
  622    616   
                    builder.local_secondary_indexes = Some({
  623         -
                        let container = if let Some(cap) = deser.container_size() {
  624         -
                            Vec::with_capacity(cap)
  625         -
                        } else {
  626         -
                            Vec::new()
  627         -
                        };
  628         -
                        deser.read_list(member, container, |mut list, deser| {
  629         -
                            list.push(crate::types::LocalSecondaryIndex::deserialize(deser)?);
  630         -
                            Ok(list)
  631         -
                        })?
         617  +
                        let mut container = Vec::new();
         618  +
                        deser.read_list(member, &mut |deser| {
         619  +
                            container.push(crate::types::LocalSecondaryIndex::deserialize(deser)?);
         620  +
                            Ok(())
         621  +
                        })?;
         622  +
                        container
  632    623   
                    });
  633    624   
                }
  634    625   
                Some(4) => {
  635    626   
                    builder.global_secondary_indexes = Some({
  636         -
                        let container = if let Some(cap) = deser.container_size() {
  637         -
                            Vec::with_capacity(cap)
  638         -
                        } else {
  639         -
                            Vec::new()
  640         -
                        };
  641         -
                        deser.read_list(member, container, |mut list, deser| {
  642         -
                            list.push(crate::types::GlobalSecondaryIndex::deserialize(deser)?);
  643         -
                            Ok(list)
  644         -
                        })?
         627  +
                        let mut container = Vec::new();
         628  +
                        deser.read_list(member, &mut |deser| {
         629  +
                            container.push(crate::types::GlobalSecondaryIndex::deserialize(deser)?);
         630  +
                            Ok(())
         631  +
                        })?;
         632  +
                        container
  645    633   
                    });
  646    634   
                }
  647    635   
                Some(5) => {
  648    636   
                    builder.billing_mode = Some(crate::types::BillingMode::from(deser.read_string(member)?.as_str()));
  649    637   
                }
  650    638   
                Some(6) => {
  651    639   
                    builder.provisioned_throughput = Some(crate::types::ProvisionedThroughput::deserialize(deser)?);
  652    640   
                }
  653    641   
                Some(7) => {
  654    642   
                    builder.stream_specification = Some(crate::types::StreamSpecification::deserialize(deser)?);
  655    643   
                }
  656    644   
                Some(8) => {
  657    645   
                    builder.sse_specification = Some(crate::types::SseSpecification::deserialize(deser)?);
  658    646   
                }
  659    647   
                Some(9) => {
  660    648   
                    builder.tags = Some({
  661         -
                        let container = if let Some(cap) = deser.container_size() {
  662         -
                            Vec::with_capacity(cap)
  663         -
                        } else {
  664         -
                            Vec::new()
  665         -
                        };
  666         -
                        deser.read_list(member, container, |mut list, deser| {
  667         -
                            list.push(crate::types::Tag::deserialize(deser)?);
  668         -
                            Ok(list)
  669         -
                        })?
         649  +
                        let mut container = Vec::new();
         650  +
                        deser.read_list(member, &mut |deser| {
         651  +
                            container.push(crate::types::Tag::deserialize(deser)?);
         652  +
                            Ok(())
         653  +
                        })?;
         654  +
                        container
  670    655   
                    });
  671    656   
                }
  672    657   
                Some(10) => {
  673    658   
                    builder.table_class = Some(crate::types::TableClass::from(deser.read_string(member)?.as_str()));
  674    659   
                }
  675    660   
                Some(11) => {
  676    661   
                    builder.deletion_protection_enabled = Some(deser.read_boolean(member)?);
  677    662   
                }
  678    663   
                Some(12) => {
  679    664   
                    builder.warm_throughput = Some(crate::types::WarmThroughput::deserialize(deser)?);
  680    665   
                }
  681    666   
                Some(13) => {
  682    667   
                    builder.resource_policy = Some(deser.read_string(member)?);
  683    668   
                }
  684    669   
                Some(14) => {
  685    670   
                    builder.on_demand_throughput = Some(crate::types::OnDemandThroughput::deserialize(deser)?);
  686    671   
                }
  687    672   
                _ => {}
  688    673   
            }
  689    674   
            Ok(())
  690    675   
        })?;
         676  +
        builder.attribute_definitions = builder.attribute_definitions.or(Some(Vec::new()));
         677  +
        builder.table_name = builder.table_name.or(Some(String::new()));
         678  +
        builder.key_schema = builder.key_schema.or(Some(Vec::new()));
  691    679   
        builder
  692    680   
            .build()
  693    681   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  694    682   
    }
  695    683   
}
         684  +
impl CreateTableInput {
         685  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         686  +
    pub fn deserialize_with_response(
         687  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         688  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         689  +
        _status: u16,
         690  +
        _body: &[u8],
         691  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         692  +
        Self::deserialize(deserializer)
         693  +
    }
         694  +
}
  696    695   
impl CreateTableInput {
  697    696   
    /// Creates a new builder-style object to manufacture [`CreateTableInput`](crate::operation::create_table::CreateTableInput).
  698    697   
    pub fn builder() -> crate::operation::create_table::builders::CreateTableInputBuilder {
  699    698   
        crate::operation::create_table::builders::CreateTableInputBuilder::default()
  700    699   
    }
  701    700   
}
  702    701   
  703    702   
/// A builder for [`CreateTableInput`](crate::operation::create_table::CreateTableInput).
  704    703   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  705    704   
#[non_exhaustive]