AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_encryption/_get_bucket_encryption_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_intelligent_tiering_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 `GetBucketIntelligentTieringConfiguration`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetBucketIntelligentTieringConfiguration;
    6      6   
impl GetBucketIntelligentTieringConfiguration {
    7      7   
    /// Creates a new `GetBucketIntelligentTieringConfiguration`
    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::get_bucket_intelligent_tiering_configuration::GetBucketIntelligentTieringConfigurationInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_bucket_intelligent_tiering_configuration::GetBucketIntelligentTieringConfigurationOutput::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::get_bucket_intelligent_tiering_configuration::GetBucketIntelligentTieringConfigurationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_bucket_intelligent_tiering_configuration::GetBucketIntelligentTieringConfigurationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_bucket_intelligent_tiering_configuration::GetBucketIntelligentTieringConfigurationError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -132,138 +194,201 @@
  152    158   
                .build(),
  153    159   
            );
  154    160   
  155    161   
        ::std::borrow::Cow::Owned(rcb)
  156    162   
    }
  157    163   
}
  158    164   
  159    165   
#[derive(Debug)]
  160    166   
struct GetBucketIntelligentTieringConfigurationResponseDeserializer;
  161    167   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBucketIntelligentTieringConfigurationResponseDeserializer {
  162         -
    fn deserialize_nonstreaming(
         168  +
    fn deserialize_nonstreaming_with_config(
  163    169   
        &self,
  164    170   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         171  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  165    172   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  166    173   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  167    174   
        let headers = response.headers();
  168    175   
        let body = response.body().bytes().expect("body loaded");
  169    176   
        #[allow(unused_mut)]
  170    177   
        let mut force_error = false;
  171    178   
        ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
  172    179   
        if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
  173    180   
            force_error = true;
  174    181   
        }

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_intelligent_tiering_configuration/_get_bucket_intelligent_tiering_configuration_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_intelligent_tiering_configuration/_get_bucket_intelligent_tiering_configuration_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_inventory_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 `GetBucketInventoryConfiguration`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetBucketInventoryConfiguration;
    6      6   
impl GetBucketInventoryConfiguration {
    7      7   
    /// Creates a new `GetBucketInventoryConfiguration`
    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::get_bucket_inventory_configuration::GetBucketInventoryConfigurationInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_bucket_inventory_configuration::GetBucketInventoryConfigurationOutput::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::get_bucket_inventory_configuration::GetBucketInventoryConfigurationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_bucket_inventory_configuration::GetBucketInventoryConfigurationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_bucket_inventory_configuration::GetBucketInventoryConfigurationError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -133,139 +195,202 @@
  153    159   
                .build(),
  154    160   
            );
  155    161   
  156    162   
        ::std::borrow::Cow::Owned(rcb)
  157    163   
    }
  158    164   
}
  159    165   
  160    166   
#[derive(Debug)]
  161    167   
struct GetBucketInventoryConfigurationResponseDeserializer;
  162    168   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBucketInventoryConfigurationResponseDeserializer {
  163         -
    fn deserialize_nonstreaming(
         169  +
    fn deserialize_nonstreaming_with_config(
  164    170   
        &self,
  165    171   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         172  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  166    173   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  167    174   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  168    175   
        let headers = response.headers();
  169    176   
        let body = response.body().bytes().expect("body loaded");
  170    177   
        #[allow(unused_mut)]
  171    178   
        let mut force_error = false;
  172    179   
        ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
  173    180   
        if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
  174    181   
            force_error = true;
  175    182   
        }

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_inventory_configuration/_get_bucket_inventory_configuration_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_inventory_configuration/_get_bucket_inventory_configuration_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_lifecycle_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 `GetBucketLifecycleConfiguration`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetBucketLifecycleConfiguration;
    6      6   
impl GetBucketLifecycleConfiguration {
    7      7   
    /// Creates a new `GetBucketLifecycleConfiguration`
    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::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationOutput::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::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -132,138 +194,201 @@
  152    158   
                .build(),
  153    159   
            );
  154    160   
  155    161   
        ::std::borrow::Cow::Owned(rcb)
  156    162   
    }
  157    163   
}
  158    164   
  159    165   
#[derive(Debug)]
  160    166   
struct GetBucketLifecycleConfigurationResponseDeserializer;
  161    167   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBucketLifecycleConfigurationResponseDeserializer {
  162         -
    fn deserialize_nonstreaming(
         168  +
    fn deserialize_nonstreaming_with_config(
  163    169   
        &self,
  164    170   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         171  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  165    172   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  166    173   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  167    174   
        let headers = response.headers();
  168    175   
        let body = response.body().bytes().expect("body loaded");
  169    176   
        #[allow(unused_mut)]
  170    177   
        let mut force_error = false;
  171    178   
        ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
  172    179   
        if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
  173    180   
            force_error = true;
  174    181   
        }

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_lifecycle_configuration/_get_bucket_lifecycle_configuration_input.rs

@@ -7,7 +134,173 @@
   27     27   
    "com.amazonaws.s3.synthetic",
   28     28   
    "GetBucketLifecycleConfigurationInput",
   29     29   
);
   30     30   
static GETBUCKETLIFECYCLECONFIGURATIONINPUT_MEMBER_BUCKET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static(
   32     32   
        "com.amazonaws.s3.synthetic#GetBucketLifecycleConfigurationInput$Bucket",
   33     33   
        "com.amazonaws.s3.synthetic",
   34     34   
        "GetBucketLifecycleConfigurationInput",
   35     35   
    ),
   36     36   
    ::aws_smithy_schema::ShapeType::String,
   37         -
    "bucket",
          37  +
    "Bucket",
   38     38   
    0,
   39     39   
)
   40     40   
.with_http_label();
   41     41   
static GETBUCKETLIFECYCLECONFIGURATIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   42     42   
    ::aws_smithy_schema::ShapeId::from_static(
   43     43   
        "com.amazonaws.s3.synthetic#GetBucketLifecycleConfigurationInput$ExpectedBucketOwner",
   44     44   
        "com.amazonaws.s3.synthetic",
   45     45   
        "GetBucketLifecycleConfigurationInput",
   46     46   
    ),
   47     47   
    ::aws_smithy_schema::ShapeType::String,
   48         -
    "expected_bucket_owner",
          48  +
    "ExpectedBucketOwner",
   49     49   
    1,
   50     50   
)
   51     51   
.with_http_header("x-amz-expected-bucket-owner");
   52     52   
static GETBUCKETLIFECYCLECONFIGURATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   53     53   
    GETBUCKETLIFECYCLECONFIGURATIONINPUT_SCHEMA_ID,
   54     54   
    ::aws_smithy_schema::ShapeType::Structure,
   55     55   
    &[
   56     56   
        &GETBUCKETLIFECYCLECONFIGURATIONINPUT_MEMBER_BUCKET,
   57     57   
        &GETBUCKETLIFECYCLECONFIGURATIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER,
   58     58   
    ],
   59         -
);
          59  +
)
          60  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("GET", "/?lifecycle", None));
   60     61   
impl GetBucketLifecycleConfigurationInput {
   61     62   
    /// The schema for this shape.
   62     63   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETBUCKETLIFECYCLECONFIGURATIONINPUT_SCHEMA;
   63     64   
}
   64     65   
impl ::aws_smithy_schema::serde::SerializableStruct for GetBucketLifecycleConfigurationInput {
   65     66   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   66     67   
    fn serialize_members(
   67     68   
        &self,
   68     69   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   69     70   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   70     71   
        if let Some(ref val) = self.bucket {
   71     72   
            ser.write_string(&GETBUCKETLIFECYCLECONFIGURATIONINPUT_MEMBER_BUCKET, val)?;
   72     73   
        }
   73     74   
        if let Some(ref val) = self.expected_bucket_owner {
   74     75   
            ser.write_string(&GETBUCKETLIFECYCLECONFIGURATIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER, val)?;
   75     76   
        }
   76     77   
        Ok(())
   77     78   
    }
   78     79   
}
   79     80   
impl GetBucketLifecycleConfigurationInput {
   80     81   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   81         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   82         -
        deserializer: &mut D,
          82  +
    pub fn deserialize(
          83  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   83     84   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   84     85   
        #[allow(unused_variables, unused_mut)]
   85     86   
        let mut builder = Self::builder();
   86     87   
        #[allow(
   87     88   
            unused_variables,
   88     89   
            unreachable_code,
   89     90   
            clippy::single_match,
   90     91   
            clippy::match_single_binding,
   91     92   
            clippy::diverging_sub_expression
   92     93   
        )]
   93         -
        deserializer.read_struct(&GETBUCKETLIFECYCLECONFIGURATIONINPUT_SCHEMA, (), |_, member, deser| {
          94  +
        deserializer.read_struct(&GETBUCKETLIFECYCLECONFIGURATIONINPUT_SCHEMA, &mut |member, deser| {
   94     95   
            match member.member_index() {
   95     96   
                Some(0) => {
   96     97   
                    builder.bucket = Some(deser.read_string(member)?);
   97     98   
                }
   98     99   
                Some(1) => {
   99    100   
                    builder.expected_bucket_owner = Some(deser.read_string(member)?);
  100    101   
                }
  101    102   
                _ => {}
  102    103   
            }
  103    104   
            Ok(())
  104    105   
        })?;
         106  +
        builder.bucket = builder.bucket.or(Some(String::new()));
         107  +
        builder
         108  +
            .build()
         109  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         110  +
    }
         111  +
}
         112  +
impl GetBucketLifecycleConfigurationInput {
         113  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         114  +
    /// Header-bound members are read directly from headers, avoiding runtime
         115  +
    /// member iteration overhead. Body members are read via the deserializer.
         116  +
    pub fn deserialize_with_response(
         117  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         118  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         119  +
        _status: u16,
         120  +
        _body: &[u8],
         121  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         122  +
        #[allow(unused_variables, unused_mut)]
         123  +
        let mut builder = Self::builder();
         124  +
        if let Some(val) = headers.get("x-amz-expected-bucket-owner") {
         125  +
            builder.expected_bucket_owner = Some(val.to_string());
         126  +
        }
         127  +
        #[allow(
         128  +
            unused_variables,
         129  +
            unreachable_code,
         130  +
            clippy::single_match,
         131  +
            clippy::match_single_binding,
         132  +
            clippy::diverging_sub_expression
         133  +
        )]
         134  +
        deserializer.read_struct(&GETBUCKETLIFECYCLECONFIGURATIONINPUT_SCHEMA, &mut |member, deser| {
         135  +
            match member.member_index() {
         136  +
                Some(0) => {
         137  +
                    builder.bucket = Some(deser.read_string(member)?);
         138  +
                }
         139  +
                Some(1) => { /* read from headers above */ }
         140  +
                _ => {}
         141  +
            }
         142  +
            Ok(())
         143  +
        })?;
  105    144   
        builder
  106    145   
            .build()
  107    146   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  108    147   
    }
  109    148   
}
  110    149   
impl GetBucketLifecycleConfigurationInput {
  111    150   
    /// Creates a new builder-style object to manufacture [`GetBucketLifecycleConfigurationInput`](crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationInput).
  112    151   
    pub fn builder() -> crate::operation::get_bucket_lifecycle_configuration::builders::GetBucketLifecycleConfigurationInputBuilder {
  113    152   
        crate::operation::get_bucket_lifecycle_configuration::builders::GetBucketLifecycleConfigurationInputBuilder::default()
  114    153   
    }

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_lifecycle_configuration/_get_bucket_lifecycle_configuration_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_location.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 `GetBucketLocation`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetBucketLocation;
    6      6   
impl GetBucketLocation {
    7      7   
    /// Creates a new `GetBucketLocation`
    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::get_bucket_location::GetBucketLocationInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_bucket_location::GetBucketLocationOutput::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::get_bucket_location::GetBucketLocationInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_bucket_location::GetBucketLocationOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_bucket_location::GetBucketLocationError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -113,117 +175,180 @@
  133    137   
                                            ::std::borrow::Cow::Owned(transient_errors)
  134    138   
                                            }).build());
  135    139   
  136    140   
        ::std::borrow::Cow::Owned(rcb)
  137    141   
    }
  138    142   
}
  139    143   
  140    144   
#[derive(Debug)]
  141    145   
struct GetBucketLocationResponseDeserializer;
  142    146   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBucketLocationResponseDeserializer {
  143         -
    fn deserialize_nonstreaming(
         147  +
    fn deserialize_nonstreaming_with_config(
  144    148   
        &self,
  145    149   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         150  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  146    151   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  147    152   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  148    153   
        let headers = response.headers();
  149    154   
        let body = response.body().bytes().expect("body loaded");
  150    155   
        #[allow(unused_mut)]
  151    156   
        let mut force_error = false;
  152    157   
        ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
  153    158   
        if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
  154    159   
            force_error = true;
  155    160   
        }
@@ -280,285 +340,349 @@
  300    305   
            .expect("the config must have a deserializer");
  301    306   
  302    307   
        let parsed = de.deserialize_streaming(&mut http_response);
  303    308   
        let parsed = parsed.unwrap_or_else(|| {
  304    309   
            let http_response = http_response.map(|body| {
  305    310   
                ::aws_smithy_types::body::SdkBody::from(::bytes::Bytes::copy_from_slice(&::aws_smithy_protocol_test::decode_body_data(
  306    311   
                    body.bytes().unwrap(),
  307    312   
                    ::aws_smithy_protocol_test::MediaType::from("application/xml"),
  308    313   
                )))
  309    314   
            });
  310         -
            de.deserialize_nonstreaming(&http_response)
         315  +
            // Build a config bag with the protocol for schema-based deserialization
         316  +
            #[allow(unused_mut)]
         317  +
            let mut test_cfg = ::aws_smithy_types::config_bag::ConfigBag::base();
         318  +
         319  +
            de.deserialize_nonstreaming_with_config(&http_response, &test_cfg)
  311    320   
        });
  312    321   
        let parsed = parsed
  313    322   
            .expect("should be successful response")
  314    323   
            .downcast::<crate::operation::get_bucket_location::GetBucketLocationOutput>()
  315    324   
            .unwrap();
  316    325   
        ::pretty_assertions::assert_eq!(
  317    326   
            parsed.location_constraint,
  318    327   
            expected_output.location_constraint,
  319    328   
            "Unexpected value for `location_constraint`"
  320    329   
        );

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_location/_get_bucket_location_input.rs

@@ -7,7 +134,173 @@
   27     27   
    "com.amazonaws.s3.synthetic",
   28     28   
    "GetBucketLocationInput",
   29     29   
);
   30     30   
static GETBUCKETLOCATIONINPUT_MEMBER_BUCKET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static(
   32     32   
        "com.amazonaws.s3.synthetic#GetBucketLocationInput$Bucket",
   33     33   
        "com.amazonaws.s3.synthetic",
   34     34   
        "GetBucketLocationInput",
   35     35   
    ),
   36     36   
    ::aws_smithy_schema::ShapeType::String,
   37         -
    "bucket",
          37  +
    "Bucket",
   38     38   
    0,
   39     39   
)
   40     40   
.with_http_label();
   41     41   
static GETBUCKETLOCATIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   42     42   
    ::aws_smithy_schema::ShapeId::from_static(
   43     43   
        "com.amazonaws.s3.synthetic#GetBucketLocationInput$ExpectedBucketOwner",
   44     44   
        "com.amazonaws.s3.synthetic",
   45     45   
        "GetBucketLocationInput",
   46     46   
    ),
   47     47   
    ::aws_smithy_schema::ShapeType::String,
   48         -
    "expected_bucket_owner",
          48  +
    "ExpectedBucketOwner",
   49     49   
    1,
   50     50   
)
   51     51   
.with_http_header("x-amz-expected-bucket-owner");
   52     52   
static GETBUCKETLOCATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   53     53   
    GETBUCKETLOCATIONINPUT_SCHEMA_ID,
   54     54   
    ::aws_smithy_schema::ShapeType::Structure,
   55     55   
    &[
   56     56   
        &GETBUCKETLOCATIONINPUT_MEMBER_BUCKET,
   57     57   
        &GETBUCKETLOCATIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER,
   58     58   
    ],
   59         -
);
          59  +
)
          60  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("GET", "/?location", None));
   60     61   
impl GetBucketLocationInput {
   61     62   
    /// The schema for this shape.
   62     63   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETBUCKETLOCATIONINPUT_SCHEMA;
   63     64   
}
   64     65   
impl ::aws_smithy_schema::serde::SerializableStruct for GetBucketLocationInput {
   65     66   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   66     67   
    fn serialize_members(
   67     68   
        &self,
   68     69   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   69     70   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   70     71   
        if let Some(ref val) = self.bucket {
   71     72   
            ser.write_string(&GETBUCKETLOCATIONINPUT_MEMBER_BUCKET, val)?;
   72     73   
        }
   73     74   
        if let Some(ref val) = self.expected_bucket_owner {
   74     75   
            ser.write_string(&GETBUCKETLOCATIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER, val)?;
   75     76   
        }
   76     77   
        Ok(())
   77     78   
    }
   78     79   
}
   79     80   
impl GetBucketLocationInput {
   80     81   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   81         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   82         -
        deserializer: &mut D,
          82  +
    pub fn deserialize(
          83  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   83     84   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   84     85   
        #[allow(unused_variables, unused_mut)]
   85     86   
        let mut builder = Self::builder();
   86     87   
        #[allow(
   87     88   
            unused_variables,
   88     89   
            unreachable_code,
   89     90   
            clippy::single_match,
   90     91   
            clippy::match_single_binding,
   91     92   
            clippy::diverging_sub_expression
   92     93   
        )]
   93         -
        deserializer.read_struct(&GETBUCKETLOCATIONINPUT_SCHEMA, (), |_, member, deser| {
          94  +
        deserializer.read_struct(&GETBUCKETLOCATIONINPUT_SCHEMA, &mut |member, deser| {
   94     95   
            match member.member_index() {
   95     96   
                Some(0) => {
   96     97   
                    builder.bucket = Some(deser.read_string(member)?);
   97     98   
                }
   98     99   
                Some(1) => {
   99    100   
                    builder.expected_bucket_owner = Some(deser.read_string(member)?);
  100    101   
                }
  101    102   
                _ => {}
  102    103   
            }
  103    104   
            Ok(())
  104    105   
        })?;
         106  +
        builder.bucket = builder.bucket.or(Some(String::new()));
         107  +
        builder
         108  +
            .build()
         109  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         110  +
    }
         111  +
}
         112  +
impl GetBucketLocationInput {
         113  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         114  +
    /// Header-bound members are read directly from headers, avoiding runtime
         115  +
    /// member iteration overhead. Body members are read via the deserializer.
         116  +
    pub fn deserialize_with_response(
         117  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         118  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         119  +
        _status: u16,
         120  +
        _body: &[u8],
         121  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         122  +
        #[allow(unused_variables, unused_mut)]
         123  +
        let mut builder = Self::builder();
         124  +
        if let Some(val) = headers.get("x-amz-expected-bucket-owner") {
         125  +
            builder.expected_bucket_owner = Some(val.to_string());
         126  +
        }
         127  +
        #[allow(
         128  +
            unused_variables,
         129  +
            unreachable_code,
         130  +
            clippy::single_match,
         131  +
            clippy::match_single_binding,
         132  +
            clippy::diverging_sub_expression
         133  +
        )]
         134  +
        deserializer.read_struct(&GETBUCKETLOCATIONINPUT_SCHEMA, &mut |member, deser| {
         135  +
            match member.member_index() {
         136  +
                Some(0) => {
         137  +
                    builder.bucket = Some(deser.read_string(member)?);
         138  +
                }
         139  +
                Some(1) => { /* read from headers above */ }
         140  +
                _ => {}
         141  +
            }
         142  +
            Ok(())
         143  +
        })?;
  105    144   
        builder
  106    145   
            .build()
  107    146   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  108    147   
    }
  109    148   
}
  110    149   
impl GetBucketLocationInput {
  111    150   
    /// Creates a new builder-style object to manufacture [`GetBucketLocationInput`](crate::operation::get_bucket_location::GetBucketLocationInput).
  112    151   
    pub fn builder() -> crate::operation::get_bucket_location::builders::GetBucketLocationInputBuilder {
  113    152   
        crate::operation::get_bucket_location::builders::GetBucketLocationInputBuilder::default()
  114    153   
    }

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_location/_get_bucket_location_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_logging.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 `GetBucketLogging`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetBucketLogging;
    6      6   
impl GetBucketLogging {
    7      7   
    /// Creates a new `GetBucketLogging`
    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::get_bucket_logging::GetBucketLoggingInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_bucket_logging::GetBucketLoggingOutput::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::get_bucket_logging::GetBucketLoggingInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_bucket_logging::GetBucketLoggingOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_bucket_logging::GetBucketLoggingError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -121,125 +183,188 @@
  141    145   
                    .build(),
  142    146   
            );
  143    147   
  144    148   
        ::std::borrow::Cow::Owned(rcb)
  145    149   
    }
  146    150   
}
  147    151   
  148    152   
#[derive(Debug)]
  149    153   
struct GetBucketLoggingResponseDeserializer;
  150    154   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBucketLoggingResponseDeserializer {
  151         -
    fn deserialize_nonstreaming(
         155  +
    fn deserialize_nonstreaming_with_config(
  152    156   
        &self,
  153    157   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         158  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  154    159   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  155    160   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  156    161   
        let headers = response.headers();
  157    162   
        let body = response.body().bytes().expect("body loaded");
  158    163   
        #[allow(unused_mut)]
  159    164   
        let mut force_error = false;
  160    165   
        ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
  161    166   
        if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
  162    167   
            force_error = true;
  163    168   
        }

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_logging/_get_bucket_logging_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_logging/_get_bucket_logging_output.rs

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