AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406

Files changed:

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

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/initiate_vault_lock/_initiate_vault_lock_input.rs

@@ -10,10 +155,182 @@
   30     30   
    "com.amazonaws.glacier.synthetic",
   31     31   
    "InitiateVaultLockInput",
   32     32   
);
   33     33   
static INITIATEVAULTLOCKINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   34     34   
    ::aws_smithy_schema::ShapeId::from_static(
   35     35   
        "com.amazonaws.glacier.synthetic#InitiateVaultLockInput$accountId",
   36     36   
        "com.amazonaws.glacier.synthetic",
   37     37   
        "InitiateVaultLockInput",
   38     38   
    ),
   39     39   
    ::aws_smithy_schema::ShapeType::String,
   40         -
    "account_id",
          40  +
    "accountId",
   41     41   
    0,
   42     42   
)
   43     43   
.with_http_label();
   44     44   
static INITIATEVAULTLOCKINPUT_MEMBER_VAULT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static(
   46     46   
        "com.amazonaws.glacier.synthetic#InitiateVaultLockInput$vaultName",
   47     47   
        "com.amazonaws.glacier.synthetic",
   48     48   
        "InitiateVaultLockInput",
   49     49   
    ),
   50     50   
    ::aws_smithy_schema::ShapeType::String,
   51         -
    "vault_name",
          51  +
    "vaultName",
   52     52   
    1,
   53     53   
)
   54     54   
.with_http_label();
   55     55   
static INITIATEVAULTLOCKINPUT_MEMBER_POLICY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.glacier.synthetic#InitiateVaultLockInput$policy",
   58     58   
        "com.amazonaws.glacier.synthetic",
   59     59   
        "InitiateVaultLockInput",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::Structure,
   62     62   
    "policy",
   63     63   
    2,
   64     64   
)
   65     65   
.with_http_payload();
   66     66   
static INITIATEVAULTLOCKINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   67     67   
    INITIATEVAULTLOCKINPUT_SCHEMA_ID,
   68     68   
    ::aws_smithy_schema::ShapeType::Structure,
   69     69   
    &[
   70     70   
        &INITIATEVAULTLOCKINPUT_MEMBER_ACCOUNT_ID,
   71     71   
        &INITIATEVAULTLOCKINPUT_MEMBER_VAULT_NAME,
   72     72   
        &INITIATEVAULTLOCKINPUT_MEMBER_POLICY,
   73     73   
    ],
   74         -
);
          74  +
)
          75  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          76  +
    "POST",
          77  +
    "/{accountId}/vaults/{vaultName}/lock-policy",
          78  +
    Some(201),
          79  +
));
   75     80   
impl InitiateVaultLockInput {
   76     81   
    /// The schema for this shape.
   77     82   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &INITIATEVAULTLOCKINPUT_SCHEMA;
   78     83   
}
   79     84   
impl ::aws_smithy_schema::serde::SerializableStruct for InitiateVaultLockInput {
   80     85   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   81     86   
    fn serialize_members(
   82     87   
        &self,
   83     88   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   84     89   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   85     90   
        if let Some(ref val) = self.account_id {
   86     91   
            ser.write_string(&INITIATEVAULTLOCKINPUT_MEMBER_ACCOUNT_ID, val)?;
   87     92   
        }
   88     93   
        if let Some(ref val) = self.vault_name {
   89     94   
            ser.write_string(&INITIATEVAULTLOCKINPUT_MEMBER_VAULT_NAME, val)?;
   90     95   
        }
   91     96   
        if let Some(ref val) = self.policy {
   92     97   
            ser.write_struct(&INITIATEVAULTLOCKINPUT_MEMBER_POLICY, val)?;
   93     98   
        }
   94     99   
        Ok(())
   95    100   
    }
   96    101   
}
   97    102   
impl InitiateVaultLockInput {
   98    103   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   99         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  100         -
        deserializer: &mut D,
         104  +
    pub fn deserialize(
         105  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  101    106   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  102    107   
        #[allow(unused_variables, unused_mut)]
  103    108   
        let mut builder = Self::builder();
  104    109   
        #[allow(
  105    110   
            unused_variables,
  106    111   
            unreachable_code,
  107    112   
            clippy::single_match,
  108    113   
            clippy::match_single_binding,
  109    114   
            clippy::diverging_sub_expression
  110    115   
        )]
  111         -
        deserializer.read_struct(&INITIATEVAULTLOCKINPUT_SCHEMA, (), |_, member, deser| {
         116  +
        deserializer.read_struct(&INITIATEVAULTLOCKINPUT_SCHEMA, &mut |member, deser| {
  112    117   
            match member.member_index() {
  113    118   
                Some(0) => {
  114    119   
                    builder.account_id = Some(deser.read_string(member)?);
  115    120   
                }
  116    121   
                Some(1) => {
  117    122   
                    builder.vault_name = Some(deser.read_string(member)?);
  118    123   
                }
  119    124   
                Some(2) => {
  120    125   
                    builder.policy = Some(crate::types::VaultLockPolicy::deserialize(deser)?);
  121    126   
                }
  122    127   
                _ => {}
  123    128   
            }
  124    129   
            Ok(())
  125    130   
        })?;
         131  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         132  +
        builder.vault_name = builder.vault_name.or(Some(String::new()));
         133  +
        builder
         134  +
            .build()
         135  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         136  +
    }
         137  +
}
         138  +
impl InitiateVaultLockInput {
         139  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         140  +
    /// Header-bound members are read directly from headers, avoiding runtime
         141  +
    /// member iteration overhead. Body members are read via the deserializer.
         142  +
    pub fn deserialize_with_response(
         143  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         144  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         145  +
        _status: u16,
         146  +
        body: &[u8],
         147  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         148  +
        #[allow(unused_variables, unused_mut)]
         149  +
        let mut builder = Self::builder();
         150  +
        if !body.is_empty() {
         151  +
            builder.policy = Some(crate::types::VaultLockPolicy::deserialize(deserializer)?);
         152  +
        }
  126    153   
        builder
  127    154   
            .build()
  128    155   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  129    156   
    }
  130    157   
}
  131    158   
impl crate::glacier_interceptors::GlacierAccountId for InitiateVaultLockInput {
  132    159   
    fn account_id_mut(&mut self) -> &mut Option<String> {
  133    160   
        &mut self.account_id
  134    161   
    }
  135    162   
}

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/initiate_vault_lock/_initiate_vault_lock_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/list_jobs.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 `ListJobs`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListJobs;
    6      6   
impl ListJobs {
    7      7   
    /// Creates a new `ListJobs`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_jobs::ListJobsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_jobs::ListJobsOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::list_jobs::ListJobsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_jobs::ListJobsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_jobs::ListJobsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -114,118 +286,348 @@
  134    138   
                crate::operation::list_jobs::ListJobsError,
  135    139   
            >::new());
  136    140   
  137    141   
        ::std::borrow::Cow::Owned(rcb)
  138    142   
    }
  139    143   
}
  140    144   
  141    145   
#[derive(Debug)]
  142    146   
struct ListJobsResponseDeserializer;
  143    147   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListJobsResponseDeserializer {
  144         -
    fn deserialize_nonstreaming(
         148  +
    fn deserialize_nonstreaming_with_config(
  145    149   
        &self,
  146    150   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         151  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  147    152   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  148    153   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  149         -
        let headers = response.headers();
  150         -
        let body = response.body().bytes().expect("body loaded");
  151    154   
        #[allow(unused_mut)]
  152    155   
        let mut force_error = false;
  153    156   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  154         -
        let parse_result = if !success && status != 200 || force_error {
  155         -
            crate::protocol_serde::shape_list_jobs::de_list_jobs_http_error(status, headers, body)
         157  +
        if !success && status != 200 || force_error {
         158  +
            let headers = response.headers();
         159  +
            let body = response.body().bytes().expect("body loaded");
         160  +
            #[allow(unused_mut)]
         161  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         162  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         163  +
            })?;
         164  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         165  +
            let generic = generic_builder.build();
         166  +
            let error_code = match generic.code() {
         167  +
                ::std::option::Option::Some(code) => code,
         168  +
                ::std::option::Option::None => {
         169  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         170  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::list_jobs::ListJobsError::unhandled(generic)),
         171  +
                    ))
         172  +
                }
         173  +
            };
         174  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         175  +
            let protocol = _cfg
         176  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         177  +
                .expect("a SharedClientProtocol is required");
         178  +
            let err = match error_code {
         179  +
                "InvalidParameterValueException" => crate::operation::list_jobs::ListJobsError::InvalidParameterValueException({
         180  +
                    let mut tmp = match protocol
         181  +
                        .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         182  +
                        .and_then(|mut deser| {
         183  +
                            crate::types::error::InvalidParameterValueException::deserialize_with_response(
         184  +
                                &mut *deser,
         185  +
                                response.headers(),
         186  +
                                response.status().into(),
         187  +
                                body,
         188  +
                            )
         189  +
                        }) {
         190  +
                        ::std::result::Result::Ok(val) => val,
         191  +
                        ::std::result::Result::Err(e) => {
         192  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         193  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         194  +
                            ))
         195  +
                        }
         196  +
                    };
         197  +
                    tmp.meta = generic;
         198  +
                    if tmp.message.is_none() {
         199  +
                        tmp.message = _error_message;
         200  +
                    }
         201  +
                    tmp
         202  +
                }),
         203  +
                "MissingParameterValueException" => crate::operation::list_jobs::ListJobsError::MissingParameterValueException({
         204  +
                    let mut tmp = match protocol
         205  +
                        .deserialize_response(response, crate::types::error::MissingParameterValueException::SCHEMA, _cfg)
         206  +
                        .and_then(|mut deser| {
         207  +
                            crate::types::error::MissingParameterValueException::deserialize_with_response(
         208  +
                                &mut *deser,
         209  +
                                response.headers(),
         210  +
                                response.status().into(),
         211  +
                                body,
         212  +
                            )
         213  +
                        }) {
         214  +
                        ::std::result::Result::Ok(val) => val,
         215  +
                        ::std::result::Result::Err(e) => {
         216  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         217  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         218  +
                            ))
         219  +
                        }
         220  +
                    };
         221  +
                    tmp.meta = generic;
         222  +
                    if tmp.message.is_none() {
         223  +
                        tmp.message = _error_message;
         224  +
                    }
         225  +
                    tmp
         226  +
                }),
         227  +
                "ResourceNotFoundException" => crate::operation::list_jobs::ListJobsError::ResourceNotFoundException({
         228  +
                    let mut tmp = match protocol
         229  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         230  +
                        .and_then(|mut deser| {
         231  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         232  +
                                &mut *deser,
         233  +
                                response.headers(),
         234  +
                                response.status().into(),
         235  +
                                body,
         236  +
                            )
         237  +
                        }) {
         238  +
                        ::std::result::Result::Ok(val) => val,
         239  +
                        ::std::result::Result::Err(e) => {
         240  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         241  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         242  +
                            ))
         243  +
                        }
         244  +
                    };
         245  +
                    tmp.meta = generic;
         246  +
                    if tmp.message.is_none() {
         247  +
                        tmp.message = _error_message;
         248  +
                    }
         249  +
                    tmp
         250  +
                }),
         251  +
                "ServiceUnavailableException" => crate::operation::list_jobs::ListJobsError::ServiceUnavailableException({
         252  +
                    let mut tmp = match protocol
         253  +
                        .deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
         254  +
                        .and_then(|mut deser| {
         255  +
                            crate::types::error::ServiceUnavailableException::deserialize_with_response(
         256  +
                                &mut *deser,
         257  +
                                response.headers(),
         258  +
                                response.status().into(),
         259  +
                                body,
         260  +
                            )
         261  +
                        }) {
         262  +
                        ::std::result::Result::Ok(val) => val,
         263  +
                        ::std::result::Result::Err(e) => {
         264  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         265  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         266  +
                            ))
         267  +
                        }
         268  +
                    };
         269  +
                    tmp.meta = generic;
         270  +
                    if tmp.message.is_none() {
         271  +
                        tmp.message = _error_message;
         272  +
                    }
         273  +
                    tmp
         274  +
                }),
         275  +
                _ => crate::operation::list_jobs::ListJobsError::generic(generic),
         276  +
            };
         277  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         278  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         279  +
            ))
  156    280   
        } else {
  157         -
            crate::protocol_serde::shape_list_jobs::de_list_jobs_http_response(status, headers, body)
  158         -
        };
  159         -
        crate::protocol_serde::type_erase_result(parse_result)
         281  +
            let protocol = _cfg
         282  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         283  +
                .expect("a SharedClientProtocol is required");
         284  +
            let mut deser = protocol.deserialize_response(response, ListJobs::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         285  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         286  +
            })?;
         287  +
            let body = response.body().bytes().expect("body loaded");
         288  +
            let output = crate::operation::list_jobs::ListJobsOutput::deserialize_with_response(
         289  +
                &mut *deser,
         290  +
                response.headers(),
         291  +
                response.status().into(),
         292  +
                body,
         293  +
            )
         294  +
            .map_err(|e| {
         295  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         296  +
            })?;
         297  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         298  +
        }
  160    299   
    }
  161    300   
}
  162    301   
#[derive(Debug)]
  163    302   
struct ListJobsRequestSerializer;
  164    303   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListJobsRequestSerializer {
  165    304   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  166    305   
    fn serialize_input(
  167    306   
        &self,
  168    307   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  169    308   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  170    309   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  171    310   
        let input = input.downcast::<crate::operation::list_jobs::ListJobsInput>().expect("correct type");
  172         -
        let _header_serialization_settings = _cfg
  173         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  174         -
            .cloned()
  175         -
            .unwrap_or_default();
  176         -
        let mut request_builder = {
  177         -
            #[allow(clippy::uninlined_format_args)]
  178         -
            fn uri_base(
  179         -
                _input: &crate::operation::list_jobs::ListJobsInput,
  180         -
                output: &mut ::std::string::String,
  181         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  182         -
                use ::std::fmt::Write as _;
  183         -
                let input_1 = &_input.account_id;
  184         -
                let input_1 = input_1
  185         -
                    .as_ref()
  186         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("account_id", "cannot be empty or unset"))?;
  187         -
                let account_id = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  188         -
                if account_id.is_empty() {
  189         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  190         -
                        "account_id",
  191         -
                        "cannot be empty or unset",
  192         -
                    ));
  193         -
                }
  194         -
                let input_2 = &_input.vault_name;
  195         -
                let input_2 = input_2
  196         -
                    .as_ref()
  197         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("vault_name", "cannot be empty or unset"))?;
  198         -
                let vault_name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  199         -
                if vault_name.is_empty() {
  200         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  201         -
                        "vault_name",
  202         -
                        "cannot be empty or unset",
  203         -
                    ));
  204         -
                }
  205         -
                ::std::write!(
  206         -
                    output,
  207         -
                    "/{accountId}/vaults/{vaultName}/jobs",
  208         -
                    accountId = account_id,
  209         -
                    vaultName = vault_name
  210         -
                )
  211         -
                .expect("formatting should succeed");
  212         -
                ::std::result::Result::Ok(())
  213         -
            }
  214         -
            fn uri_query(
  215         -
                _input: &crate::operation::list_jobs::ListJobsInput,
  216         -
                mut output: &mut ::std::string::String,
  217         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  218         -
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  219         -
                if let ::std::option::Option::Some(inner_3) = &_input.limit {
  220         -
                    {
  221         -
                        query.push_kv("limit", ::aws_smithy_types::primitive::Encoder::from(*inner_3).encode());
  222         -
                    }
  223         -
                }
  224         -
                if let ::std::option::Option::Some(inner_4) = &_input.marker {
  225         -
                    {
  226         -
                        query.push_kv("marker", &::aws_smithy_http::query::fmt_string(inner_4));
  227         -
                    }
  228         -
                }
  229         -
                if let ::std::option::Option::Some(inner_5) = &_input.statuscode {
  230         -
                    {
  231         -
                        query.push_kv("statuscode", &::aws_smithy_http::query::fmt_string(inner_5));
  232         -
                    }
  233         -
                }
  234         -
                if let ::std::option::Option::Some(inner_6) = &_input.completed {
  235         -
                    {
  236         -
                        query.push_kv("completed", &::aws_smithy_http::query::fmt_string(inner_6));
  237         -
                    }
  238         -
                }
  239         -
                ::std::result::Result::Ok(())
  240         -
            }
  241         -
            #[allow(clippy::unnecessary_wraps)]
  242         -
            fn update_http_builder(
  243         -
                input: &crate::operation::list_jobs::ListJobsInput,
  244         -
                builder: ::http_1x::request::Builder,
  245         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  246         -
                let mut uri = ::std::string::String::new();
  247         -
                uri_base(input, &mut uri)?;
  248         -
                uri_query(input, &mut uri)?;
  249         -
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  250         -
            }
  251         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  252         -
            builder
  253         -
        };
  254         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
         311  +
        let protocol = _cfg
         312  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         313  +
            .expect("a SharedClientProtocol is required");
         314  +
        let mut request = protocol
         315  +
            .serialize_request(&input, ListJobs::INPUT_SCHEMA, "", _cfg)
         316  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  255    317   
  256         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         318  +
        return ::std::result::Result::Ok(request);
  257    319   
    }
  258    320   
}
  259    321   
#[derive(Debug)]
  260    322   
struct ListJobsEndpointParamsInterceptor;
  261    323   
  262    324   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListJobsEndpointParamsInterceptor {
  263    325   
    fn name(&self) -> &'static str {
  264    326   
        "ListJobsEndpointParamsInterceptor"
  265    327   
    }
  266    328   

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/list_jobs/_list_jobs_input.rs

@@ -28,28 +232,250 @@
   48     48   
    "com.amazonaws.glacier.synthetic",
   49     49   
    "ListJobsInput",
   50     50   
);
   51     51   
static LISTJOBSINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   52     52   
    ::aws_smithy_schema::ShapeId::from_static(
   53     53   
        "com.amazonaws.glacier.synthetic#ListJobsInput$accountId",
   54     54   
        "com.amazonaws.glacier.synthetic",
   55     55   
        "ListJobsInput",
   56     56   
    ),
   57     57   
    ::aws_smithy_schema::ShapeType::String,
   58         -
    "account_id",
          58  +
    "accountId",
   59     59   
    0,
   60     60   
)
   61     61   
.with_http_label();
   62     62   
static LISTJOBSINPUT_MEMBER_VAULT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   63     63   
    ::aws_smithy_schema::ShapeId::from_static(
   64     64   
        "com.amazonaws.glacier.synthetic#ListJobsInput$vaultName",
   65     65   
        "com.amazonaws.glacier.synthetic",
   66     66   
        "ListJobsInput",
   67     67   
    ),
   68     68   
    ::aws_smithy_schema::ShapeType::String,
   69         -
    "vault_name",
          69  +
    "vaultName",
   70     70   
    1,
   71     71   
)
   72     72   
.with_http_label();
   73     73   
static LISTJOBSINPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   74     74   
    ::aws_smithy_schema::ShapeId::from_static(
   75     75   
        "com.amazonaws.glacier.synthetic#ListJobsInput$limit",
   76     76   
        "com.amazonaws.glacier.synthetic",
   77     77   
        "ListJobsInput",
   78     78   
    ),
   79     79   
    ::aws_smithy_schema::ShapeType::Integer,
   80     80   
    "limit",
   81     81   
    2,
   82     82   
)
   83     83   
.with_http_query("limit");
   84     84   
static LISTJOBSINPUT_MEMBER_MARKER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static(
   86     86   
        "com.amazonaws.glacier.synthetic#ListJobsInput$marker",
   87     87   
        "com.amazonaws.glacier.synthetic",
   88     88   
        "ListJobsInput",
   89     89   
    ),
   90     90   
    ::aws_smithy_schema::ShapeType::String,
   91     91   
    "marker",
   92     92   
    3,
   93     93   
)
   94     94   
.with_http_query("marker");
   95     95   
static LISTJOBSINPUT_MEMBER_STATUSCODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   96     96   
    ::aws_smithy_schema::ShapeId::from_static(
   97     97   
        "com.amazonaws.glacier.synthetic#ListJobsInput$statuscode",
   98     98   
        "com.amazonaws.glacier.synthetic",
   99     99   
        "ListJobsInput",
  100    100   
    ),
  101    101   
    ::aws_smithy_schema::ShapeType::String,
  102    102   
    "statuscode",
  103    103   
    4,
  104    104   
)
  105    105   
.with_http_query("statuscode");
  106    106   
static LISTJOBSINPUT_MEMBER_COMPLETED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  107    107   
    ::aws_smithy_schema::ShapeId::from_static(
  108    108   
        "com.amazonaws.glacier.synthetic#ListJobsInput$completed",
  109    109   
        "com.amazonaws.glacier.synthetic",
  110    110   
        "ListJobsInput",
  111    111   
    ),
  112    112   
    ::aws_smithy_schema::ShapeType::String,
  113    113   
    "completed",
  114    114   
    5,
  115    115   
)
  116    116   
.with_http_query("completed");
  117    117   
static LISTJOBSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  118    118   
    LISTJOBSINPUT_SCHEMA_ID,
  119    119   
    ::aws_smithy_schema::ShapeType::Structure,
  120    120   
    &[
  121    121   
        &LISTJOBSINPUT_MEMBER_ACCOUNT_ID,
  122    122   
        &LISTJOBSINPUT_MEMBER_VAULT_NAME,
  123    123   
        &LISTJOBSINPUT_MEMBER_LIMIT,
  124    124   
        &LISTJOBSINPUT_MEMBER_MARKER,
  125    125   
        &LISTJOBSINPUT_MEMBER_STATUSCODE,
  126    126   
        &LISTJOBSINPUT_MEMBER_COMPLETED,
  127    127   
    ],
  128         -
);
         128  +
)
         129  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
         130  +
    "GET",
         131  +
    "/{accountId}/vaults/{vaultName}/jobs",
         132  +
    None,
         133  +
));
  129    134   
impl ListJobsInput {
  130    135   
    /// The schema for this shape.
  131    136   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTJOBSINPUT_SCHEMA;
  132    137   
}
  133    138   
impl ::aws_smithy_schema::serde::SerializableStruct for ListJobsInput {
  134    139   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  135    140   
    fn serialize_members(
  136    141   
        &self,
  137    142   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  138    143   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  139    144   
        if let Some(ref val) = self.account_id {
  140    145   
            ser.write_string(&LISTJOBSINPUT_MEMBER_ACCOUNT_ID, val)?;
  141    146   
        }
  142    147   
        if let Some(ref val) = self.vault_name {
  143    148   
            ser.write_string(&LISTJOBSINPUT_MEMBER_VAULT_NAME, val)?;
  144    149   
        }
  145    150   
        if let Some(ref val) = self.limit {
  146    151   
            ser.write_integer(&LISTJOBSINPUT_MEMBER_LIMIT, *val)?;
  147    152   
        }
  148    153   
        if let Some(ref val) = self.marker {
  149    154   
            ser.write_string(&LISTJOBSINPUT_MEMBER_MARKER, val)?;
  150    155   
        }
  151    156   
        if let Some(ref val) = self.statuscode {
  152    157   
            ser.write_string(&LISTJOBSINPUT_MEMBER_STATUSCODE, val)?;
  153    158   
        }
  154    159   
        if let Some(ref val) = self.completed {
  155    160   
            ser.write_string(&LISTJOBSINPUT_MEMBER_COMPLETED, val)?;
  156    161   
        }
  157    162   
        Ok(())
  158    163   
    }
  159    164   
}
  160    165   
impl ListJobsInput {
  161    166   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  162         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  163         -
        deserializer: &mut D,
         167  +
    pub fn deserialize(
         168  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  164    169   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  165    170   
        #[allow(unused_variables, unused_mut)]
  166    171   
        let mut builder = Self::builder();
  167    172   
        #[allow(
  168    173   
            unused_variables,
  169    174   
            unreachable_code,
  170    175   
            clippy::single_match,
  171    176   
            clippy::match_single_binding,
  172    177   
            clippy::diverging_sub_expression
  173    178   
        )]
  174         -
        deserializer.read_struct(&LISTJOBSINPUT_SCHEMA, (), |_, member, deser| {
         179  +
        deserializer.read_struct(&LISTJOBSINPUT_SCHEMA, &mut |member, deser| {
  175    180   
            match member.member_index() {
  176    181   
                Some(0) => {
  177    182   
                    builder.account_id = Some(deser.read_string(member)?);
  178    183   
                }
  179    184   
                Some(1) => {
  180    185   
                    builder.vault_name = Some(deser.read_string(member)?);
  181    186   
                }
  182    187   
                Some(2) => {
  183    188   
                    builder.limit = Some(deser.read_integer(member)?);
  184    189   
                }
  185    190   
                Some(3) => {
  186    191   
                    builder.marker = Some(deser.read_string(member)?);
  187    192   
                }
  188    193   
                Some(4) => {
  189    194   
                    builder.statuscode = Some(deser.read_string(member)?);
  190    195   
                }
  191    196   
                Some(5) => {
  192    197   
                    builder.completed = Some(deser.read_string(member)?);
  193    198   
                }
  194    199   
                _ => {}
  195    200   
            }
  196    201   
            Ok(())
  197    202   
        })?;
         203  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         204  +
        builder.vault_name = builder.vault_name.or(Some(String::new()));
  198    205   
        builder
  199    206   
            .build()
  200    207   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  201    208   
    }
  202    209   
}
         210  +
impl ListJobsInput {
         211  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         212  +
    pub fn deserialize_with_response(
         213  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         214  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         215  +
        _status: u16,
         216  +
        _body: &[u8],
         217  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         218  +
        Self::deserialize(deserializer)
         219  +
    }
         220  +
}
  203    221   
impl crate::glacier_interceptors::GlacierAccountId for ListJobsInput {
  204    222   
    fn account_id_mut(&mut self) -> &mut Option<String> {
  205    223   
        &mut self.account_id
  206    224   
    }
  207    225   
}
  208    226   
impl ListJobsInput {
  209    227   
    /// Creates a new builder-style object to manufacture [`ListJobsInput`](crate::operation::list_jobs::ListJobsInput).
  210    228   
    pub fn builder() -> crate::operation::list_jobs::builders::ListJobsInputBuilder {
  211    229   
        crate::operation::list_jobs::builders::ListJobsInputBuilder::default()
  212    230   
    }

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/list_jobs/_list_jobs_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/list_multipart_uploads.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 `ListMultipartUploads`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListMultipartUploads;
    6      6   
impl ListMultipartUploads {
    7      7   
    /// Creates a new `ListMultipartUploads`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_multipart_uploads::ListMultipartUploadsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_multipart_uploads::ListMultipartUploadsOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::list_multipart_uploads::ListMultipartUploadsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_multipart_uploads::ListMultipartUploadsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_multipart_uploads::ListMultipartUploadsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -121,125 +285,365 @@
  141    145   
                crate::operation::list_multipart_uploads::ListMultipartUploadsError,
  142    146   
            >::new());
  143    147   
  144    148   
        ::std::borrow::Cow::Owned(rcb)
  145    149   
    }
  146    150   
}
  147    151   
  148    152   
#[derive(Debug)]
  149    153   
struct ListMultipartUploadsResponseDeserializer;
  150    154   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListMultipartUploadsResponseDeserializer {
  151         -
    fn deserialize_nonstreaming(
         155  +
    fn deserialize_nonstreaming_with_config(
  152    156   
        &self,
  153    157   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         158  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  154    159   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  155    160   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  156         -
        let headers = response.headers();
  157         -
        let body = response.body().bytes().expect("body loaded");
  158    161   
        #[allow(unused_mut)]
  159    162   
        let mut force_error = false;
  160    163   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  161         -
        let parse_result = if !success && status != 200 || force_error {
  162         -
            crate::protocol_serde::shape_list_multipart_uploads::de_list_multipart_uploads_http_error(status, headers, body)
         164  +
        if !success && status != 200 || force_error {
         165  +
            let headers = response.headers();
         166  +
            let body = response.body().bytes().expect("body loaded");
         167  +
            #[allow(unused_mut)]
         168  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         169  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         170  +
            })?;
         171  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         172  +
            let generic = generic_builder.build();
         173  +
            let error_code = match generic.code() {
         174  +
                ::std::option::Option::Some(code) => code,
         175  +
                ::std::option::Option::None => {
         176  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         177  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         178  +
                            crate::operation::list_multipart_uploads::ListMultipartUploadsError::unhandled(generic),
         179  +
                        ),
         180  +
                    ))
         181  +
                }
         182  +
            };
         183  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         184  +
            let protocol = _cfg
         185  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         186  +
                .expect("a SharedClientProtocol is required");
         187  +
            let err = match error_code {
         188  +
                "InvalidParameterValueException" => {
         189  +
                    crate::operation::list_multipart_uploads::ListMultipartUploadsError::InvalidParameterValueException({
         190  +
                        let mut tmp = match protocol
         191  +
                            .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         192  +
                            .and_then(|mut deser| {
         193  +
                                crate::types::error::InvalidParameterValueException::deserialize_with_response(
         194  +
                                    &mut *deser,
         195  +
                                    response.headers(),
         196  +
                                    response.status().into(),
         197  +
                                    body,
         198  +
                                )
         199  +
                            }) {
         200  +
                            ::std::result::Result::Ok(val) => val,
         201  +
                            ::std::result::Result::Err(e) => {
         202  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         203  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         204  +
                                ))
         205  +
                            }
         206  +
                        };
         207  +
                        tmp.meta = generic;
         208  +
                        if tmp.message.is_none() {
         209  +
                            tmp.message = _error_message;
         210  +
                        }
         211  +
                        tmp
         212  +
                    })
         213  +
                }
         214  +
                "MissingParameterValueException" => {
         215  +
                    crate::operation::list_multipart_uploads::ListMultipartUploadsError::MissingParameterValueException({
         216  +
                        let mut tmp = match protocol
         217  +
                            .deserialize_response(response, crate::types::error::MissingParameterValueException::SCHEMA, _cfg)
         218  +
                            .and_then(|mut deser| {
         219  +
                                crate::types::error::MissingParameterValueException::deserialize_with_response(
         220  +
                                    &mut *deser,
         221  +
                                    response.headers(),
         222  +
                                    response.status().into(),
         223  +
                                    body,
         224  +
                                )
         225  +
                            }) {
         226  +
                            ::std::result::Result::Ok(val) => val,
         227  +
                            ::std::result::Result::Err(e) => {
         228  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         229  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         230  +
                                ))
         231  +
                            }
         232  +
                        };
         233  +
                        tmp.meta = generic;
         234  +
                        if tmp.message.is_none() {
         235  +
                            tmp.message = _error_message;
         236  +
                        }
         237  +
                        tmp
         238  +
                    })
         239  +
                }
         240  +
                "ResourceNotFoundException" => crate::operation::list_multipart_uploads::ListMultipartUploadsError::ResourceNotFoundException({
         241  +
                    let mut tmp = match protocol
         242  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         243  +
                        .and_then(|mut deser| {
         244  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         245  +
                                &mut *deser,
         246  +
                                response.headers(),
         247  +
                                response.status().into(),
         248  +
                                body,
         249  +
                            )
         250  +
                        }) {
         251  +
                        ::std::result::Result::Ok(val) => val,
         252  +
                        ::std::result::Result::Err(e) => {
         253  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         254  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         255  +
                            ))
         256  +
                        }
         257  +
                    };
         258  +
                    tmp.meta = generic;
         259  +
                    if tmp.message.is_none() {
         260  +
                        tmp.message = _error_message;
         261  +
                    }
         262  +
                    tmp
         263  +
                }),
         264  +
                "ServiceUnavailableException" => crate::operation::list_multipart_uploads::ListMultipartUploadsError::ServiceUnavailableException({
         265  +
                    let mut tmp = match protocol
         266  +
                        .deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
         267  +
                        .and_then(|mut deser| {
         268  +
                            crate::types::error::ServiceUnavailableException::deserialize_with_response(
         269  +
                                &mut *deser,
         270  +
                                response.headers(),
         271  +
                                response.status().into(),
         272  +
                                body,
         273  +
                            )
         274  +
                        }) {
         275  +
                        ::std::result::Result::Ok(val) => val,
         276  +
                        ::std::result::Result::Err(e) => {
         277  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         278  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         279  +
                            ))
         280  +
                        }
         281  +
                    };
         282  +
                    tmp.meta = generic;
         283  +
                    if tmp.message.is_none() {
         284  +
                        tmp.message = _error_message;
         285  +
                    }
         286  +
                    tmp
         287  +
                }),
         288  +
                _ => crate::operation::list_multipart_uploads::ListMultipartUploadsError::generic(generic),
         289  +
            };
         290  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         291  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         292  +
            ))
  163    293   
        } else {
  164         -
            crate::protocol_serde::shape_list_multipart_uploads::de_list_multipart_uploads_http_response(status, headers, body)
  165         -
        };
  166         -
        crate::protocol_serde::type_erase_result(parse_result)
         294  +
            let protocol = _cfg
         295  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         296  +
                .expect("a SharedClientProtocol is required");
         297  +
            let mut deser = protocol
         298  +
                .deserialize_response(response, ListMultipartUploads::OUTPUT_SCHEMA, _cfg)
         299  +
                .map_err(|e| {
         300  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         301  +
                })?;
         302  +
            let body = response.body().bytes().expect("body loaded");
         303  +
            let output = crate::operation::list_multipart_uploads::ListMultipartUploadsOutput::deserialize_with_response(
         304  +
                &mut *deser,
         305  +
                response.headers(),
         306  +
                response.status().into(),
         307  +
                body,
         308  +
            )
         309  +
            .map_err(|e| {
         310  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         311  +
            })?;
         312  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         313  +
        }
  167    314   
    }
  168    315   
}
  169    316   
#[derive(Debug)]
  170    317   
struct ListMultipartUploadsRequestSerializer;
  171    318   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListMultipartUploadsRequestSerializer {
  172    319   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  173    320   
    fn serialize_input(
  174    321   
        &self,
  175    322   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  176    323   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  177    324   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  178    325   
        let input = input
  179    326   
            .downcast::<crate::operation::list_multipart_uploads::ListMultipartUploadsInput>()
  180    327   
            .expect("correct type");
  181         -
        let _header_serialization_settings = _cfg
  182         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  183         -
            .cloned()
  184         -
            .unwrap_or_default();
  185         -
        let mut request_builder = {
  186         -
            #[allow(clippy::uninlined_format_args)]
  187         -
            fn uri_base(
  188         -
                _input: &crate::operation::list_multipart_uploads::ListMultipartUploadsInput,
  189         -
                output: &mut ::std::string::String,
  190         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  191         -
                use ::std::fmt::Write as _;
  192         -
                let input_1 = &_input.account_id;
  193         -
                let input_1 = input_1
  194         -
                    .as_ref()
  195         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("account_id", "cannot be empty or unset"))?;
  196         -
                let account_id = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  197         -
                if account_id.is_empty() {
  198         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  199         -
                        "account_id",
  200         -
                        "cannot be empty or unset",
  201         -
                    ));
  202         -
                }
  203         -
                let input_2 = &_input.vault_name;
  204         -
                let input_2 = input_2
  205         -
                    .as_ref()
  206         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("vault_name", "cannot be empty or unset"))?;
  207         -
                let vault_name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  208         -
                if vault_name.is_empty() {
  209         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  210         -
                        "vault_name",
  211         -
                        "cannot be empty or unset",
  212         -
                    ));
  213         -
                }
  214         -
                ::std::write!(
  215         -
                    output,
  216         -
                    "/{accountId}/vaults/{vaultName}/multipart-uploads",
  217         -
                    accountId = account_id,
  218         -
                    vaultName = vault_name
  219         -
                )
  220         -
                .expect("formatting should succeed");
  221         -
                ::std::result::Result::Ok(())
  222         -
            }
  223         -
            fn uri_query(
  224         -
                _input: &crate::operation::list_multipart_uploads::ListMultipartUploadsInput,
  225         -
                mut output: &mut ::std::string::String,
  226         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  227         -
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  228         -
                if let ::std::option::Option::Some(inner_3) = &_input.limit {
  229         -
                    {
  230         -
                        query.push_kv("limit", ::aws_smithy_types::primitive::Encoder::from(*inner_3).encode());
  231         -
                    }
  232         -
                }
  233         -
                if let ::std::option::Option::Some(inner_4) = &_input.marker {
  234         -
                    {
  235         -
                        query.push_kv("marker", &::aws_smithy_http::query::fmt_string(inner_4));
  236         -
                    }
  237         -
                }
  238         -
                ::std::result::Result::Ok(())
  239         -
            }
  240         -
            #[allow(clippy::unnecessary_wraps)]
  241         -
            fn update_http_builder(
  242         -
                input: &crate::operation::list_multipart_uploads::ListMultipartUploadsInput,
  243         -
                builder: ::http_1x::request::Builder,
  244         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  245         -
                let mut uri = ::std::string::String::new();
  246         -
                uri_base(input, &mut uri)?;
  247         -
                uri_query(input, &mut uri)?;
  248         -
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  249         -
            }
  250         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  251         -
            builder
  252         -
        };
  253         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
         328  +
        let protocol = _cfg
         329  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         330  +
            .expect("a SharedClientProtocol is required");
         331  +
        let mut request = protocol
         332  +
            .serialize_request(&input, ListMultipartUploads::INPUT_SCHEMA, "", _cfg)
         333  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  254    334   
  255         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         335  +
        return ::std::result::Result::Ok(request);
  256    336   
    }
  257    337   
}
  258    338   
#[derive(Debug)]
  259    339   
struct ListMultipartUploadsEndpointParamsInterceptor;
  260    340   
  261    341   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListMultipartUploadsEndpointParamsInterceptor {
  262    342   
    fn name(&self) -> &'static str {
  263    343   
        "ListMultipartUploadsEndpointParamsInterceptor"
  264    344   
    }
  265    345   

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/list_multipart_uploads/_list_multipart_uploads_input.rs

@@ -16,16 +184,202 @@
   36     36   
    "com.amazonaws.glacier.synthetic",
   37     37   
    "ListMultipartUploadsInput",
   38     38   
);
   39     39   
static LISTMULTIPARTUPLOADSINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   40     40   
    ::aws_smithy_schema::ShapeId::from_static(
   41     41   
        "com.amazonaws.glacier.synthetic#ListMultipartUploadsInput$accountId",
   42     42   
        "com.amazonaws.glacier.synthetic",
   43     43   
        "ListMultipartUploadsInput",
   44     44   
    ),
   45     45   
    ::aws_smithy_schema::ShapeType::String,
   46         -
    "account_id",
          46  +
    "accountId",
   47     47   
    0,
   48     48   
)
   49     49   
.with_http_label();
   50     50   
static LISTMULTIPARTUPLOADSINPUT_MEMBER_VAULT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   51     51   
    ::aws_smithy_schema::ShapeId::from_static(
   52     52   
        "com.amazonaws.glacier.synthetic#ListMultipartUploadsInput$vaultName",
   53     53   
        "com.amazonaws.glacier.synthetic",
   54     54   
        "ListMultipartUploadsInput",
   55     55   
    ),
   56     56   
    ::aws_smithy_schema::ShapeType::String,
   57         -
    "vault_name",
          57  +
    "vaultName",
   58     58   
    1,
   59     59   
)
   60     60   
.with_http_label();
   61     61   
static LISTMULTIPARTUPLOADSINPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   62     62   
    ::aws_smithy_schema::ShapeId::from_static(
   63     63   
        "com.amazonaws.glacier.synthetic#ListMultipartUploadsInput$limit",
   64     64   
        "com.amazonaws.glacier.synthetic",
   65     65   
        "ListMultipartUploadsInput",
   66     66   
    ),
   67     67   
    ::aws_smithy_schema::ShapeType::Integer,
   68     68   
    "limit",
   69     69   
    2,
   70     70   
)
   71     71   
.with_http_query("limit");
   72     72   
static LISTMULTIPARTUPLOADSINPUT_MEMBER_MARKER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   73     73   
    ::aws_smithy_schema::ShapeId::from_static(
   74     74   
        "com.amazonaws.glacier.synthetic#ListMultipartUploadsInput$marker",
   75     75   
        "com.amazonaws.glacier.synthetic",
   76     76   
        "ListMultipartUploadsInput",
   77     77   
    ),
   78     78   
    ::aws_smithy_schema::ShapeType::String,
   79     79   
    "marker",
   80     80   
    3,
   81     81   
)
   82     82   
.with_http_query("marker");
   83     83   
static LISTMULTIPARTUPLOADSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   84     84   
    LISTMULTIPARTUPLOADSINPUT_SCHEMA_ID,
   85     85   
    ::aws_smithy_schema::ShapeType::Structure,
   86     86   
    &[
   87     87   
        &LISTMULTIPARTUPLOADSINPUT_MEMBER_ACCOUNT_ID,
   88     88   
        &LISTMULTIPARTUPLOADSINPUT_MEMBER_VAULT_NAME,
   89     89   
        &LISTMULTIPARTUPLOADSINPUT_MEMBER_LIMIT,
   90     90   
        &LISTMULTIPARTUPLOADSINPUT_MEMBER_MARKER,
   91     91   
    ],
   92         -
);
          92  +
)
          93  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          94  +
    "GET",
          95  +
    "/{accountId}/vaults/{vaultName}/multipart-uploads",
          96  +
    None,
          97  +
));
   93     98   
impl ListMultipartUploadsInput {
   94     99   
    /// The schema for this shape.
   95    100   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTMULTIPARTUPLOADSINPUT_SCHEMA;
   96    101   
}
   97    102   
impl ::aws_smithy_schema::serde::SerializableStruct for ListMultipartUploadsInput {
   98    103   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   99    104   
    fn serialize_members(
  100    105   
        &self,
  101    106   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  102    107   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  103    108   
        if let Some(ref val) = self.account_id {
  104    109   
            ser.write_string(&LISTMULTIPARTUPLOADSINPUT_MEMBER_ACCOUNT_ID, val)?;
  105    110   
        }
  106    111   
        if let Some(ref val) = self.vault_name {
  107    112   
            ser.write_string(&LISTMULTIPARTUPLOADSINPUT_MEMBER_VAULT_NAME, val)?;
  108    113   
        }
  109    114   
        if let Some(ref val) = self.limit {
  110    115   
            ser.write_integer(&LISTMULTIPARTUPLOADSINPUT_MEMBER_LIMIT, *val)?;
  111    116   
        }
  112    117   
        if let Some(ref val) = self.marker {
  113    118   
            ser.write_string(&LISTMULTIPARTUPLOADSINPUT_MEMBER_MARKER, val)?;
  114    119   
        }
  115    120   
        Ok(())
  116    121   
    }
  117    122   
}
  118    123   
impl ListMultipartUploadsInput {
  119    124   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  120         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  121         -
        deserializer: &mut D,
         125  +
    pub fn deserialize(
         126  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  122    127   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  123    128   
        #[allow(unused_variables, unused_mut)]
  124    129   
        let mut builder = Self::builder();
  125    130   
        #[allow(
  126    131   
            unused_variables,
  127    132   
            unreachable_code,
  128    133   
            clippy::single_match,
  129    134   
            clippy::match_single_binding,
  130    135   
            clippy::diverging_sub_expression
  131    136   
        )]
  132         -
        deserializer.read_struct(&LISTMULTIPARTUPLOADSINPUT_SCHEMA, (), |_, member, deser| {
         137  +
        deserializer.read_struct(&LISTMULTIPARTUPLOADSINPUT_SCHEMA, &mut |member, deser| {
  133    138   
            match member.member_index() {
  134    139   
                Some(0) => {
  135    140   
                    builder.account_id = Some(deser.read_string(member)?);
  136    141   
                }
  137    142   
                Some(1) => {
  138    143   
                    builder.vault_name = Some(deser.read_string(member)?);
  139    144   
                }
  140    145   
                Some(2) => {
  141    146   
                    builder.limit = Some(deser.read_integer(member)?);
  142    147   
                }
  143    148   
                Some(3) => {
  144    149   
                    builder.marker = Some(deser.read_string(member)?);
  145    150   
                }
  146    151   
                _ => {}
  147    152   
            }
  148    153   
            Ok(())
  149    154   
        })?;
         155  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         156  +
        builder.vault_name = builder.vault_name.or(Some(String::new()));
  150    157   
        builder
  151    158   
            .build()
  152    159   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  153    160   
    }
  154    161   
}
         162  +
impl ListMultipartUploadsInput {
         163  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         164  +
    pub fn deserialize_with_response(
         165  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         166  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         167  +
        _status: u16,
         168  +
        _body: &[u8],
         169  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         170  +
        Self::deserialize(deserializer)
         171  +
    }
         172  +
}
  155    173   
impl crate::glacier_interceptors::GlacierAccountId for ListMultipartUploadsInput {
  156    174   
    fn account_id_mut(&mut self) -> &mut Option<String> {
  157    175   
        &mut self.account_id
  158    176   
    }
  159    177   
}
  160    178   
impl ListMultipartUploadsInput {
  161    179   
    /// Creates a new builder-style object to manufacture [`ListMultipartUploadsInput`](crate::operation::list_multipart_uploads::ListMultipartUploadsInput).
  162    180   
    pub fn builder() -> crate::operation::list_multipart_uploads::builders::ListMultipartUploadsInputBuilder {
  163    181   
        crate::operation::list_multipart_uploads::builders::ListMultipartUploadsInputBuilder::default()
  164    182   
    }

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/list_multipart_uploads/_list_multipart_uploads_output.rs

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