AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_multi_region_access_point_policy.rs

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `PutMultiRegionAccessPointPolicy`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutMultiRegionAccessPointPolicy;
    6      6   
impl PutMultiRegionAccessPointPolicy {
    7      7   
    /// Creates a new `PutMultiRegionAccessPointPolicy`
    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 =
          13  +
        crate::operation::put_multi_region_access_point_policy::PutMultiRegionAccessPointPolicyInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::put_multi_region_access_point_policy::PutMultiRegionAccessPointPolicyOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::put_multi_region_access_point_policy::PutMultiRegionAccessPointPolicyInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::put_multi_region_access_point_policy::PutMultiRegionAccessPointPolicyOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::put_multi_region_access_point_policy::PutMultiRegionAccessPointPolicyError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -134,140 +196,203 @@
  154    160   
                crate::operation::put_multi_region_access_point_policy::PutMultiRegionAccessPointPolicyError,
  155    161   
            >::new());
  156    162   
  157    163   
        ::std::borrow::Cow::Owned(rcb)
  158    164   
    }
  159    165   
}
  160    166   
  161    167   
#[derive(Debug)]
  162    168   
struct PutMultiRegionAccessPointPolicyResponseDeserializer;
  163    169   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutMultiRegionAccessPointPolicyResponseDeserializer {
  164         -
    fn deserialize_nonstreaming(
         170  +
    fn deserialize_nonstreaming_with_config(
  165    171   
        &self,
  166    172   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         173  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  167    174   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  168    175   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  169    176   
        let headers = response.headers();
  170    177   
        let body = response.body().bytes().expect("body loaded");
  171    178   
        #[allow(unused_mut)]
  172    179   
        let mut force_error = false;
  173    180   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  174    181   
        let parse_result = if !success && status != 200 || force_error {
  175    182   
            crate::protocol_serde::shape_put_multi_region_access_point_policy::de_put_multi_region_access_point_policy_http_error(
  176    183   
                status, headers, body,

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_multi_region_access_point_policy/_put_multi_region_access_point_policy_input.rs

@@ -9,9 +153,200 @@
   29     29   
    "com.amazonaws.s3control.synthetic",
   30     30   
    "PutMultiRegionAccessPointPolicyInput",
   31     31   
);
   32     32   
static PUTMULTIREGIONACCESSPOINTPOLICYINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   33     33   
    ::aws_smithy_schema::ShapeId::from_static(
   34     34   
        "com.amazonaws.s3control.synthetic#PutMultiRegionAccessPointPolicyInput$AccountId",
   35     35   
        "com.amazonaws.s3control.synthetic",
   36     36   
        "PutMultiRegionAccessPointPolicyInput",
   37     37   
    ),
   38     38   
    ::aws_smithy_schema::ShapeType::String,
   39         -
    "account_id",
          39  +
    "AccountId",
   40     40   
    0,
   41     41   
)
   42     42   
.with_host_label()
   43     43   
.with_http_header("x-amz-account-id");
   44     44   
static PUTMULTIREGIONACCESSPOINTPOLICYINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static(
   46     46   
        "com.amazonaws.s3control.synthetic#PutMultiRegionAccessPointPolicyInput$ClientToken",
   47     47   
        "com.amazonaws.s3control.synthetic",
   48     48   
        "PutMultiRegionAccessPointPolicyInput",
   49     49   
    ),
   50     50   
    ::aws_smithy_schema::ShapeType::String,
   51         -
    "client_token",
          51  +
    "ClientToken",
   52     52   
    1,
   53     53   
);
   54     54   
static PUTMULTIREGIONACCESSPOINTPOLICYINPUT_MEMBER_DETAILS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   55     55   
    ::aws_smithy_schema::ShapeId::from_static(
   56     56   
        "com.amazonaws.s3control.synthetic#PutMultiRegionAccessPointPolicyInput$Details",
   57     57   
        "com.amazonaws.s3control.synthetic",
   58     58   
        "PutMultiRegionAccessPointPolicyInput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::Structure,
   61         -
    "details",
          61  +
    "Details",
   62     62   
    2,
   63     63   
);
   64     64   
static PUTMULTIREGIONACCESSPOINTPOLICYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   65     65   
    PUTMULTIREGIONACCESSPOINTPOLICYINPUT_SCHEMA_ID,
   66     66   
    ::aws_smithy_schema::ShapeType::Structure,
   67     67   
    &[
   68     68   
        &PUTMULTIREGIONACCESSPOINTPOLICYINPUT_MEMBER_ACCOUNT_ID,
   69     69   
        &PUTMULTIREGIONACCESSPOINTPOLICYINPUT_MEMBER_CLIENT_TOKEN,
   70     70   
        &PUTMULTIREGIONACCESSPOINTPOLICYINPUT_MEMBER_DETAILS,
   71     71   
    ],
   72         -
);
          72  +
)
          73  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          74  +
    "POST",
          75  +
    "/v20180820/async-requests/mrap/put-policy",
          76  +
    None,
          77  +
));
   73     78   
impl PutMultiRegionAccessPointPolicyInput {
   74     79   
    /// The schema for this shape.
   75     80   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTMULTIREGIONACCESSPOINTPOLICYINPUT_SCHEMA;
   76     81   
}
   77     82   
impl ::aws_smithy_schema::serde::SerializableStruct for PutMultiRegionAccessPointPolicyInput {
   78     83   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   79     84   
    fn serialize_members(
   80     85   
        &self,
   81     86   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   82     87   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   83     88   
        if let Some(ref val) = self.account_id {
   84     89   
            ser.write_string(&PUTMULTIREGIONACCESSPOINTPOLICYINPUT_MEMBER_ACCOUNT_ID, val)?;
   85     90   
        }
   86     91   
        if let Some(ref val) = self.client_token {
   87     92   
            ser.write_string(&PUTMULTIREGIONACCESSPOINTPOLICYINPUT_MEMBER_CLIENT_TOKEN, val)?;
   88     93   
        }
   89     94   
        if let Some(ref val) = self.details {
   90     95   
            ser.write_struct(&PUTMULTIREGIONACCESSPOINTPOLICYINPUT_MEMBER_DETAILS, val)?;
   91     96   
        }
   92     97   
        Ok(())
   93     98   
    }
   94     99   
}
   95    100   
impl PutMultiRegionAccessPointPolicyInput {
   96    101   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   97         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   98         -
        deserializer: &mut D,
         102  +
    pub fn deserialize(
         103  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   99    104   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  100    105   
        #[allow(unused_variables, unused_mut)]
  101    106   
        let mut builder = Self::builder();
  102    107   
        #[allow(
  103    108   
            unused_variables,
  104    109   
            unreachable_code,
  105    110   
            clippy::single_match,
  106    111   
            clippy::match_single_binding,
  107    112   
            clippy::diverging_sub_expression
  108    113   
        )]
  109         -
        deserializer.read_struct(&PUTMULTIREGIONACCESSPOINTPOLICYINPUT_SCHEMA, (), |_, member, deser| {
         114  +
        deserializer.read_struct(&PUTMULTIREGIONACCESSPOINTPOLICYINPUT_SCHEMA, &mut |member, deser| {
  110    115   
            match member.member_index() {
  111    116   
                Some(0) => {
  112    117   
                    builder.account_id = Some(deser.read_string(member)?);
  113    118   
                }
  114    119   
                Some(1) => {
  115    120   
                    builder.client_token = Some(deser.read_string(member)?);
  116    121   
                }
  117    122   
                Some(2) => {
  118    123   
                    builder.details = Some(crate::types::PutMultiRegionAccessPointPolicyInput::deserialize(deser)?);
  119    124   
                }
  120    125   
                _ => {}
  121    126   
            }
  122    127   
            Ok(())
  123    128   
        })?;
         129  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         130  +
        builder.client_token = builder.client_token.or(Some(String::new()));
         131  +
        builder
         132  +
            .build()
         133  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         134  +
    }
         135  +
}
         136  +
impl PutMultiRegionAccessPointPolicyInput {
         137  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         138  +
    /// Header-bound members are read directly from headers, avoiding runtime
         139  +
    /// member iteration overhead. Body members are read via the deserializer.
         140  +
    pub fn deserialize_with_response(
         141  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         142  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         143  +
        _status: u16,
         144  +
        _body: &[u8],
         145  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         146  +
        #[allow(unused_variables, unused_mut)]
         147  +
        let mut builder = Self::builder();
         148  +
        if let Some(val) = headers.get("x-amz-account-id") {
         149  +
            builder.account_id = Some(val.to_string());
         150  +
        }
         151  +
        #[allow(
         152  +
            unused_variables,
         153  +
            unreachable_code,
         154  +
            clippy::single_match,
         155  +
            clippy::match_single_binding,
         156  +
            clippy::diverging_sub_expression
         157  +
        )]
         158  +
        deserializer.read_struct(&PUTMULTIREGIONACCESSPOINTPOLICYINPUT_SCHEMA, &mut |member, deser| {
         159  +
            match member.member_index() {
         160  +
                Some(0) => { /* read from headers above */ }
         161  +
                Some(1) => {
         162  +
                    builder.client_token = Some(deser.read_string(member)?);
         163  +
                }
         164  +
                Some(2) => {
         165  +
                    builder.details = Some(crate::types::PutMultiRegionAccessPointPolicyInput::deserialize(deser)?);
         166  +
                }
         167  +
                _ => {}
         168  +
            }
         169  +
            Ok(())
         170  +
        })?;
  124    171   
        builder
  125    172   
            .build()
  126    173   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  127    174   
    }
  128    175   
}
  129    176   
impl PutMultiRegionAccessPointPolicyInput {
  130    177   
    /// Creates a new builder-style object to manufacture [`PutMultiRegionAccessPointPolicyInput`](crate::operation::put_multi_region_access_point_policy::PutMultiRegionAccessPointPolicyInput).
  131    178   
    pub fn builder() -> crate::operation::put_multi_region_access_point_policy::builders::PutMultiRegionAccessPointPolicyInputBuilder {
  132    179   
        crate::operation::put_multi_region_access_point_policy::builders::PutMultiRegionAccessPointPolicyInputBuilder::default()
  133    180   
    }

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_multi_region_access_point_policy/_put_multi_region_access_point_policy_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_public_access_block.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 `PutPublicAccessBlock`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutPublicAccessBlock;
    6      6   
impl PutPublicAccessBlock {
    7      7   
    /// Creates a new `PutPublicAccessBlock`
    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::put_public_access_block::PutPublicAccessBlockInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::put_public_access_block::PutPublicAccessBlockOutput::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::put_public_access_block::PutPublicAccessBlockInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::put_public_access_block::PutPublicAccessBlockOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::put_public_access_block::PutPublicAccessBlockError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::put_public_access_block::PutPublicAccessBlockError,
  139    143   
            >::new());
  140    144   
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct PutPublicAccessBlockResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutPublicAccessBlockResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153    158   
        let headers = response.headers();
  154    159   
        let body = response.body().bytes().expect("body loaded");
  155    160   
        #[allow(unused_mut)]
  156    161   
        let mut force_error = false;
  157    162   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158    163   
        let parse_result = if !success && status != 200 || force_error {
  159    164   
            crate::protocol_serde::shape_put_public_access_block::de_put_public_access_block_http_error(status, headers, body)
  160    165   
        } else {

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_public_access_block/_put_public_access_block_input.rs

@@ -3,3 +132,161 @@
   23     23   
    "com.amazonaws.s3control.synthetic",
   24     24   
    "PutPublicAccessBlockInput",
   25     25   
);
   26     26   
static PUTPUBLICACCESSBLOCKINPUT_MEMBER_PUBLIC_ACCESS_BLOCK_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   27     27   
    ::aws_smithy_schema::ShapeId::from_static(
   28     28   
        "com.amazonaws.s3control.synthetic#PutPublicAccessBlockInput$PublicAccessBlockConfiguration",
   29     29   
        "com.amazonaws.s3control.synthetic",
   30     30   
        "PutPublicAccessBlockInput",
   31     31   
    ),
   32     32   
    ::aws_smithy_schema::ShapeType::Structure,
   33         -
    "public_access_block_configuration",
          33  +
    "PublicAccessBlockConfiguration",
   34     34   
    0,
   35     35   
)
   36     36   
.with_xml_name("PublicAccessBlockConfiguration")
   37     37   
.with_http_payload();
   38     38   
static PUTPUBLICACCESSBLOCKINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.s3control.synthetic#PutPublicAccessBlockInput$AccountId",
   41     41   
        "com.amazonaws.s3control.synthetic",
   42     42   
        "PutPublicAccessBlockInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "account_id",
          45  +
    "AccountId",
   46     46   
    1,
   47     47   
)
   48     48   
.with_host_label()
   49     49   
.with_http_header("x-amz-account-id");
   50     50   
static PUTPUBLICACCESSBLOCKINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   51     51   
    PUTPUBLICACCESSBLOCKINPUT_SCHEMA_ID,
   52     52   
    ::aws_smithy_schema::ShapeType::Structure,
   53     53   
    &[
   54     54   
        &PUTPUBLICACCESSBLOCKINPUT_MEMBER_PUBLIC_ACCESS_BLOCK_CONFIGURATION,
   55     55   
        &PUTPUBLICACCESSBLOCKINPUT_MEMBER_ACCOUNT_ID,
   56     56   
    ],
   57         -
);
          57  +
)
          58  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          59  +
    "PUT",
          60  +
    "/v20180820/configuration/publicAccessBlock",
          61  +
    None,
          62  +
));
   58     63   
impl PutPublicAccessBlockInput {
   59     64   
    /// The schema for this shape.
   60     65   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTPUBLICACCESSBLOCKINPUT_SCHEMA;
   61     66   
}
   62     67   
impl ::aws_smithy_schema::serde::SerializableStruct for PutPublicAccessBlockInput {
   63     68   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   64     69   
    fn serialize_members(
   65     70   
        &self,
   66     71   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   67     72   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   68     73   
        if let Some(ref val) = self.public_access_block_configuration {
   69     74   
            ser.write_struct(&PUTPUBLICACCESSBLOCKINPUT_MEMBER_PUBLIC_ACCESS_BLOCK_CONFIGURATION, val)?;
   70     75   
        }
   71     76   
        if let Some(ref val) = self.account_id {
   72     77   
            ser.write_string(&PUTPUBLICACCESSBLOCKINPUT_MEMBER_ACCOUNT_ID, val)?;
   73     78   
        }
   74     79   
        Ok(())
   75     80   
    }
   76     81   
}
   77     82   
impl PutPublicAccessBlockInput {
   78     83   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   79         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   80         -
        deserializer: &mut D,
          84  +
    pub fn deserialize(
          85  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   81     86   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   82     87   
        #[allow(unused_variables, unused_mut)]
   83     88   
        let mut builder = Self::builder();
   84     89   
        #[allow(
   85     90   
            unused_variables,
   86     91   
            unreachable_code,
   87     92   
            clippy::single_match,
   88     93   
            clippy::match_single_binding,
   89     94   
            clippy::diverging_sub_expression
   90     95   
        )]
   91         -
        deserializer.read_struct(&PUTPUBLICACCESSBLOCKINPUT_SCHEMA, (), |_, member, deser| {
          96  +
        deserializer.read_struct(&PUTPUBLICACCESSBLOCKINPUT_SCHEMA, &mut |member, deser| {
   92     97   
            match member.member_index() {
   93     98   
                Some(0) => {
   94     99   
                    builder.public_access_block_configuration = Some(crate::types::PublicAccessBlockConfiguration::deserialize(deser)?);
   95    100   
                }
   96    101   
                Some(1) => {
   97    102   
                    builder.account_id = Some(deser.read_string(member)?);
   98    103   
                }
   99    104   
                _ => {}
  100    105   
            }
  101    106   
            Ok(())
  102    107   
        })?;
         108  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         109  +
        builder
         110  +
            .build()
         111  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         112  +
    }
         113  +
}
         114  +
impl PutPublicAccessBlockInput {
         115  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         116  +
    /// Header-bound members are read directly from headers, avoiding runtime
         117  +
    /// member iteration overhead. Body members are read via the deserializer.
         118  +
    pub fn deserialize_with_response(
         119  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         120  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         121  +
        _status: u16,
         122  +
        body: &[u8],
         123  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         124  +
        #[allow(unused_variables, unused_mut)]
         125  +
        let mut builder = Self::builder();
         126  +
        if let Some(val) = headers.get("x-amz-account-id") {
         127  +
            builder.account_id = Some(val.to_string());
         128  +
        }
         129  +
        if !body.is_empty() {
         130  +
            builder.public_access_block_configuration = Some(crate::types::PublicAccessBlockConfiguration::deserialize(deserializer)?);
         131  +
        }
  103    132   
        builder
  104    133   
            .build()
  105    134   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  106    135   
    }
  107    136   
}
  108    137   
impl PutPublicAccessBlockInput {
  109    138   
    /// Creates a new builder-style object to manufacture [`PutPublicAccessBlockInput`](crate::operation::put_public_access_block::PutPublicAccessBlockInput).
  110    139   
    pub fn builder() -> crate::operation::put_public_access_block::builders::PutPublicAccessBlockInputBuilder {
  111    140   
        crate::operation::put_public_access_block::builders::PutPublicAccessBlockInputBuilder::default()
  112    141   
    }

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_public_access_block/_put_public_access_block_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_storage_lens_configuration.rs

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `PutStorageLensConfiguration`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutStorageLensConfiguration;
    6      6   
impl PutStorageLensConfiguration {
    7      7   
    /// Creates a new `PutStorageLensConfiguration`
    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 =
          13  +
        crate::operation::put_storage_lens_configuration::PutStorageLensConfigurationInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::put_storage_lens_configuration::PutStorageLensConfigurationOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::put_storage_lens_configuration::PutStorageLensConfigurationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::put_storage_lens_configuration::PutStorageLensConfigurationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::put_storage_lens_configuration::PutStorageLensConfigurationError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::put_storage_lens_configuration::PutStorageLensConfigurationError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct PutStorageLensConfigurationResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutStorageLensConfigurationResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159    166   
        let headers = response.headers();
  160    167   
        let body = response.body().bytes().expect("body loaded");
  161    168   
        #[allow(unused_mut)]
  162    169   
        let mut force_error = false;
  163    170   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164    171   
        let parse_result = if !success && status != 200 || force_error {
  165    172   
            crate::protocol_serde::shape_put_storage_lens_configuration::de_put_storage_lens_configuration_http_error(status, headers, body)
  166    173   
        } else {

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_storage_lens_configuration/_put_storage_lens_configuration_input.rs

@@ -21,21 +195,249 @@
   41     41   
    "com.amazonaws.s3control.synthetic",
   42     42   
    "PutStorageLensConfigurationInput",
   43     43   
);
   44     44   
static PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_CONFIG_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static(
   46     46   
        "com.amazonaws.s3control.synthetic#PutStorageLensConfigurationInput$ConfigId",
   47     47   
        "com.amazonaws.s3control.synthetic",
   48     48   
        "PutStorageLensConfigurationInput",
   49     49   
    ),
   50     50   
    ::aws_smithy_schema::ShapeType::String,
   51         -
    "config_id",
          51  +
    "ConfigId",
   52     52   
    0,
   53     53   
)
   54     54   
.with_http_label();
   55     55   
static PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.s3control.synthetic#PutStorageLensConfigurationInput$AccountId",
   58     58   
        "com.amazonaws.s3control.synthetic",
   59     59   
        "PutStorageLensConfigurationInput",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::String,
   62         -
    "account_id",
          62  +
    "AccountId",
   63     63   
    1,
   64     64   
)
   65     65   
.with_host_label()
   66     66   
.with_http_header("x-amz-account-id");
   67     67   
static PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_STORAGE_LENS_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   68     68   
    ::aws_smithy_schema::ShapeId::from_static(
   69     69   
        "com.amazonaws.s3control.synthetic#PutStorageLensConfigurationInput$StorageLensConfiguration",
   70     70   
        "com.amazonaws.s3control.synthetic",
   71     71   
        "PutStorageLensConfigurationInput",
   72     72   
    ),
   73     73   
    ::aws_smithy_schema::ShapeType::Structure,
   74         -
    "storage_lens_configuration",
          74  +
    "StorageLensConfiguration",
   75     75   
    2,
   76     76   
);
   77     77   
static PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.s3control.synthetic#PutStorageLensConfigurationInput$Tags",
   80     80   
        "com.amazonaws.s3control.synthetic",
   81     81   
        "PutStorageLensConfigurationInput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::List,
   84         -
    "tags",
          84  +
    "Tags",
   85     85   
    3,
   86     86   
);
   87     87   
static PUTSTORAGELENSCONFIGURATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   88     88   
    PUTSTORAGELENSCONFIGURATIONINPUT_SCHEMA_ID,
   89     89   
    ::aws_smithy_schema::ShapeType::Structure,
   90     90   
    &[
   91     91   
        &PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_CONFIG_ID,
   92     92   
        &PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_ACCOUNT_ID,
   93     93   
        &PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_STORAGE_LENS_CONFIGURATION,
   94     94   
        &PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_TAGS,
   95     95   
    ],
   96         -
);
          96  +
)
          97  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          98  +
    "PUT",
          99  +
    "/v20180820/storagelens/{ConfigId}",
         100  +
    None,
         101  +
));
   97    102   
impl PutStorageLensConfigurationInput {
   98    103   
    /// The schema for this shape.
   99    104   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTSTORAGELENSCONFIGURATIONINPUT_SCHEMA;
  100    105   
}
  101    106   
impl ::aws_smithy_schema::serde::SerializableStruct for PutStorageLensConfigurationInput {
  102    107   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  103    108   
    fn serialize_members(
  104    109   
        &self,
  105    110   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  106    111   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  107    112   
        if let Some(ref val) = self.config_id {
  108    113   
            ser.write_string(&PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_CONFIG_ID, val)?;
  109    114   
        }
  110    115   
        if let Some(ref val) = self.account_id {
  111    116   
            ser.write_string(&PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_ACCOUNT_ID, val)?;
  112    117   
        }
  113    118   
        if let Some(ref val) = self.storage_lens_configuration {
  114    119   
            ser.write_struct(&PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_STORAGE_LENS_CONFIGURATION, val)?;
  115    120   
        }
  116    121   
        if let Some(ref val) = self.tags {
  117    122   
            ser.write_list(
  118    123   
                &PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_TAGS,
  119    124   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  120    125   
                    for item in val {
  121    126   
                        ser.write_struct(crate::types::StorageLensTag::SCHEMA, item)?;
  122    127   
                    }
  123    128   
                    Ok(())
  124    129   
                },
  125    130   
            )?;
  126    131   
        }
  127    132   
        Ok(())
  128    133   
    }
  129    134   
}
  130    135   
impl PutStorageLensConfigurationInput {
  131    136   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  132         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  133         -
        deserializer: &mut D,
         137  +
    pub fn deserialize(
         138  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  134    139   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  135    140   
        #[allow(unused_variables, unused_mut)]
  136    141   
        let mut builder = Self::builder();
  137    142   
        #[allow(
  138    143   
            unused_variables,
  139    144   
            unreachable_code,
  140    145   
            clippy::single_match,
  141    146   
            clippy::match_single_binding,
  142    147   
            clippy::diverging_sub_expression
  143    148   
        )]
  144         -
        deserializer.read_struct(&PUTSTORAGELENSCONFIGURATIONINPUT_SCHEMA, (), |_, member, deser| {
         149  +
        deserializer.read_struct(&PUTSTORAGELENSCONFIGURATIONINPUT_SCHEMA, &mut |member, deser| {
  145    150   
            match member.member_index() {
  146    151   
                Some(0) => {
  147    152   
                    builder.config_id = Some(deser.read_string(member)?);
  148    153   
                }
  149    154   
                Some(1) => {
  150    155   
                    builder.account_id = Some(deser.read_string(member)?);
  151    156   
                }
  152    157   
                Some(2) => {
  153    158   
                    builder.storage_lens_configuration = Some(crate::types::StorageLensConfiguration::deserialize(deser)?);
  154    159   
                }
  155    160   
                Some(3) => {
  156    161   
                    builder.tags = Some({
  157         -
                        let container = if let Some(cap) = deser.container_size() {
  158         -
                            Vec::with_capacity(cap)
  159         -
                        } else {
  160         -
                            Vec::new()
  161         -
                        };
  162         -
                        deser.read_list(member, container, |mut list, deser| {
  163         -
                            list.push(crate::types::StorageLensTag::deserialize(deser)?);
  164         -
                            Ok(list)
  165         -
                        })?
         162  +
                        let mut container = Vec::new();
         163  +
                        deser.read_list(member, &mut |deser| {
         164  +
                            container.push(crate::types::StorageLensTag::deserialize(deser)?);
         165  +
                            Ok(())
         166  +
                        })?;
         167  +
                        container
         168  +
                    });
         169  +
                }
         170  +
                _ => {}
         171  +
            }
         172  +
            Ok(())
         173  +
        })?;
         174  +
        builder.config_id = builder.config_id.or(Some(String::new()));
         175  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         176  +
        builder
         177  +
            .build()
         178  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         179  +
    }
         180  +
}
         181  +
impl PutStorageLensConfigurationInput {
         182  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         183  +
    /// Header-bound members are read directly from headers, avoiding runtime
         184  +
    /// member iteration overhead. Body members are read via the deserializer.
         185  +
    pub fn deserialize_with_response(
         186  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         187  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         188  +
        _status: u16,
         189  +
        _body: &[u8],
         190  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         191  +
        #[allow(unused_variables, unused_mut)]
         192  +
        let mut builder = Self::builder();
         193  +
        if let Some(val) = headers.get("x-amz-account-id") {
         194  +
            builder.account_id = Some(val.to_string());
         195  +
        }
         196  +
        #[allow(
         197  +
            unused_variables,
         198  +
            unreachable_code,
         199  +
            clippy::single_match,
         200  +
            clippy::match_single_binding,
         201  +
            clippy::diverging_sub_expression
         202  +
        )]
         203  +
        deserializer.read_struct(&PUTSTORAGELENSCONFIGURATIONINPUT_SCHEMA, &mut |member, deser| {
         204  +
            match member.member_index() {
         205  +
                Some(0) => {
         206  +
                    builder.config_id = Some(deser.read_string(member)?);
         207  +
                }
         208  +
                Some(1) => { /* read from headers above */ }
         209  +
                Some(2) => {
         210  +
                    builder.storage_lens_configuration = Some(crate::types::StorageLensConfiguration::deserialize(deser)?);
         211  +
                }
         212  +
                Some(3) => {
         213  +
                    builder.tags = Some({
         214  +
                        let mut container = Vec::new();
         215  +
                        deser.read_list(member, &mut |deser| {
         216  +
                            container.push(crate::types::StorageLensTag::deserialize(deser)?);
         217  +
                            Ok(())
         218  +
                        })?;
         219  +
                        container
  166    220   
                    });
  167    221   
                }
  168    222   
                _ => {}
  169    223   
            }
  170    224   
            Ok(())
  171    225   
        })?;
  172    226   
        builder
  173    227   
            .build()
  174    228   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  175    229   
    }

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_storage_lens_configuration/_put_storage_lens_configuration_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_storage_lens_configuration_tagging.rs

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `PutStorageLensConfigurationTagging`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutStorageLensConfigurationTagging;
    6      6   
impl PutStorageLensConfigurationTagging {
    7      7   
    /// Creates a new `PutStorageLensConfigurationTagging`
    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 =
          13  +
        crate::operation::put_storage_lens_configuration_tagging::PutStorageLensConfigurationTaggingInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::put_storage_lens_configuration_tagging::PutStorageLensConfigurationTaggingOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::put_storage_lens_configuration_tagging::PutStorageLensConfigurationTaggingInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::put_storage_lens_configuration_tagging::PutStorageLensConfigurationTaggingOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::put_storage_lens_configuration_tagging::PutStorageLensConfigurationTaggingError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::put_storage_lens_configuration_tagging::PutStorageLensConfigurationTaggingError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct PutStorageLensConfigurationTaggingResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutStorageLensConfigurationTaggingResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159    166   
        let headers = response.headers();
  160    167   
        let body = response.body().bytes().expect("body loaded");
  161    168   
        #[allow(unused_mut)]
  162    169   
        let mut force_error = false;
  163    170   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164    171   
        let parse_result = if !success && status != 200 || force_error {
  165    172   
            crate::protocol_serde::shape_put_storage_lens_configuration_tagging::de_put_storage_lens_configuration_tagging_http_error(
  166    173   
                status, headers, body,

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_storage_lens_configuration_tagging/_put_storage_lens_configuration_tagging_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_storage_lens_configuration_tagging/_put_storage_lens_configuration_tagging_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/submit_multi_region_access_point_routes.rs

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `SubmitMultiRegionAccessPointRoutes`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct SubmitMultiRegionAccessPointRoutes;
    6      6   
impl SubmitMultiRegionAccessPointRoutes {
    7      7   
    /// Creates a new `SubmitMultiRegionAccessPointRoutes`
    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 =
          13  +
        crate::operation::submit_multi_region_access_point_routes::SubmitMultiRegionAccessPointRoutesInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::submit_multi_region_access_point_routes::SubmitMultiRegionAccessPointRoutesOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::submit_multi_region_access_point_routes::SubmitMultiRegionAccessPointRoutesInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::submit_multi_region_access_point_routes::SubmitMultiRegionAccessPointRoutesOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::submit_multi_region_access_point_routes::SubmitMultiRegionAccessPointRoutesError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::submit_multi_region_access_point_routes::SubmitMultiRegionAccessPointRoutesError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct SubmitMultiRegionAccessPointRoutesResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for SubmitMultiRegionAccessPointRoutesResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159    166   
        let headers = response.headers();
  160    167   
        let body = response.body().bytes().expect("body loaded");
  161    168   
        #[allow(unused_mut)]
  162    169   
        let mut force_error = false;
  163    170   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164    171   
        let parse_result = if !success && status != 200 || force_error {
  165    172   
            crate::protocol_serde::shape_submit_multi_region_access_point_routes::de_submit_multi_region_access_point_routes_http_error(
  166    173   
                status, headers, body,

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/submit_multi_region_access_point_routes/_submit_multi_region_access_point_routes_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/submit_multi_region_access_point_routes/_submit_multi_region_access_point_routes_output.rs

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

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `TagResource`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct TagResource;
    6      6   
impl TagResource {
    7      7   
    /// Creates a new `TagResource`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::tag_resource::TagResourceInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::tag_resource::TagResourceOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::tag_resource::TagResourceInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::tag_resource::TagResourceOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::tag_resource::TagResourceError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::tag_resource::TagResourceError,
  136    140   
            >::new());
  137    141   
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct TagResourceResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for TagResourceResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150    155   
        let headers = response.headers();
  151    156   
        let body = response.body().bytes().expect("body loaded");
  152    157   
        #[allow(unused_mut)]
  153    158   
        let mut force_error = false;
  154    159   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155    160   
        let parse_result = if !success && status != 204 || force_error {
  156    161   
            crate::protocol_serde::shape_tag_resource::de_tag_resource_http_error(status, headers, body)
  157    162   
        } else {