AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_metadata_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 `GetBucketMetadataConfiguration`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetBucketMetadataConfiguration;
    6      6   
impl GetBucketMetadataConfiguration {
    7      7   
    /// Creates a new `GetBucketMetadataConfiguration`
    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_metadata_configuration::GetBucketMetadataConfigurationInput::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_metadata_configuration::GetBucketMetadataConfigurationOutput::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_metadata_configuration::GetBucketMetadataConfigurationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -126,132 +188,195 @@
  146    152   
                .build(),
  147    153   
            );
  148    154   
  149    155   
        ::std::borrow::Cow::Owned(rcb)
  150    156   
    }
  151    157   
}
  152    158   
  153    159   
#[derive(Debug)]
  154    160   
struct GetBucketMetadataConfigurationResponseDeserializer;
  155    161   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBucketMetadataConfigurationResponseDeserializer {
  156         -
    fn deserialize_nonstreaming(
         162  +
    fn deserialize_nonstreaming_with_config(
  157    163   
        &self,
  158    164   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         165  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  159    166   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  160    167   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  161    168   
        let headers = response.headers();
  162    169   
        let body = response.body().bytes().expect("body loaded");
  163    170   
        #[allow(unused_mut)]
  164    171   
        let mut force_error = false;
  165    172   
        ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
  166    173   
        if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
  167    174   
            force_error = true;
  168    175   
        }

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_metadata_configuration/_get_bucket_metadata_configuration_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_metadata_configuration/_get_bucket_metadata_configuration_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_metadata_table_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 `GetBucketMetadataTableConfiguration`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetBucketMetadataTableConfiguration;
    6      6   
impl GetBucketMetadataTableConfiguration {
    7      7   
    /// Creates a new `GetBucketMetadataTableConfiguration`
    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_metadata_table_configuration::GetBucketMetadataTableConfigurationInput::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_metadata_table_configuration::GetBucketMetadataTableConfigurationOutput::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_metadata_table_configuration::GetBucketMetadataTableConfigurationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_bucket_metadata_table_configuration::GetBucketMetadataTableConfigurationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_bucket_metadata_table_configuration::GetBucketMetadataTableConfigurationError,
   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 GetBucketMetadataTableConfigurationResponseDeserializer;
  161    167   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBucketMetadataTableConfigurationResponseDeserializer {
  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_metadata_table_configuration/_get_bucket_metadata_table_configuration_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_metadata_table_configuration/_get_bucket_metadata_table_configuration_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_metrics_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 `GetBucketMetricsConfiguration`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetBucketMetricsConfiguration;
    6      6   
impl GetBucketMetricsConfiguration {
    7      7   
    /// Creates a new `GetBucketMetricsConfiguration`
    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_metrics_configuration::GetBucketMetricsConfigurationInput::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_metrics_configuration::GetBucketMetricsConfigurationOutput::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_metrics_configuration::GetBucketMetricsConfigurationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_bucket_metrics_configuration::GetBucketMetricsConfigurationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_bucket_metrics_configuration::GetBucketMetricsConfigurationError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -126,132 +188,195 @@
  146    152   
                .build(),
  147    153   
            );
  148    154   
  149    155   
        ::std::borrow::Cow::Owned(rcb)
  150    156   
    }
  151    157   
}
  152    158   
  153    159   
#[derive(Debug)]
  154    160   
struct GetBucketMetricsConfigurationResponseDeserializer;
  155    161   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBucketMetricsConfigurationResponseDeserializer {
  156         -
    fn deserialize_nonstreaming(
         162  +
    fn deserialize_nonstreaming_with_config(
  157    163   
        &self,
  158    164   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         165  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  159    166   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  160    167   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  161    168   
        let headers = response.headers();
  162    169   
        let body = response.body().bytes().expect("body loaded");
  163    170   
        #[allow(unused_mut)]
  164    171   
        let mut force_error = false;
  165    172   
        ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
  166    173   
        if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
  167    174   
            force_error = true;
  168    175   
        }

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_metrics_configuration/_get_bucket_metrics_configuration_input.rs

@@ -9,9 +154,201 @@
   29     29   
    "com.amazonaws.s3.synthetic",
   30     30   
    "GetBucketMetricsConfigurationInput",
   31     31   
);
   32     32   
static GETBUCKETMETRICSCONFIGURATIONINPUT_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#GetBucketMetricsConfigurationInput$Bucket",
   35     35   
        "com.amazonaws.s3.synthetic",
   36     36   
        "GetBucketMetricsConfigurationInput",
   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 GETBUCKETMETRICSCONFIGURATIONINPUT_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#GetBucketMetricsConfigurationInput$Id",
   46     46   
        "com.amazonaws.s3.synthetic",
   47     47   
        "GetBucketMetricsConfigurationInput",
   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 GETBUCKETMETRICSCONFIGURATIONINPUT_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#GetBucketMetricsConfigurationInput$ExpectedBucketOwner",
   57     57   
        "com.amazonaws.s3.synthetic",
   58     58   
        "GetBucketMetricsConfigurationInput",
   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 GETBUCKETMETRICSCONFIGURATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   66     66   
    GETBUCKETMETRICSCONFIGURATIONINPUT_SCHEMA_ID,
   67     67   
    ::aws_smithy_schema::ShapeType::Structure,
   68     68   
    &[
   69     69   
        &GETBUCKETMETRICSCONFIGURATIONINPUT_MEMBER_BUCKET,
   70     70   
        &GETBUCKETMETRICSCONFIGURATIONINPUT_MEMBER_ID,
   71     71   
        &GETBUCKETMETRICSCONFIGURATIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER,
   72     72   
    ],
   73         -
);
          73  +
)
          74  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          75  +
    "GET",
          76  +
    "/?metrics&x-id=GetBucketMetricsConfiguration",
          77  +
    None,
          78  +
));
   74     79   
impl GetBucketMetricsConfigurationInput {
   75     80   
    /// The schema for this shape.
   76     81   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETBUCKETMETRICSCONFIGURATIONINPUT_SCHEMA;
   77     82   
}
   78     83   
impl ::aws_smithy_schema::serde::SerializableStruct for GetBucketMetricsConfigurationInput {
   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(&GETBUCKETMETRICSCONFIGURATIONINPUT_MEMBER_BUCKET, val)?;
   86     91   
        }
   87     92   
        if let Some(ref val) = self.id {
   88     93   
            ser.write_string(&GETBUCKETMETRICSCONFIGURATIONINPUT_MEMBER_ID, val)?;
   89     94   
        }
   90     95   
        if let Some(ref val) = self.expected_bucket_owner {
   91     96   
            ser.write_string(&GETBUCKETMETRICSCONFIGURATIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER, val)?;
   92     97   
        }
   93     98   
        Ok(())
   94     99   
    }
   95    100   
}
   96    101   
impl GetBucketMetricsConfigurationInput {
   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(&GETBUCKETMETRICSCONFIGURATIONINPUT_SCHEMA, (), |_, member, deser| {
         115  +
        deserializer.read_struct(&GETBUCKETMETRICSCONFIGURATIONINPUT_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 GetBucketMetricsConfigurationInput {
         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(&GETBUCKETMETRICSCONFIGURATIONINPUT_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 GetBucketMetricsConfigurationInput {
  131    178   
    /// Creates a new builder-style object to manufacture [`GetBucketMetricsConfigurationInput`](crate::operation::get_bucket_metrics_configuration::GetBucketMetricsConfigurationInput).
  132    179   
    pub fn builder() -> crate::operation::get_bucket_metrics_configuration::builders::GetBucketMetricsConfigurationInputBuilder {
  133    180   
        crate::operation::get_bucket_metrics_configuration::builders::GetBucketMetricsConfigurationInputBuilder::default()
  134    181   
    }

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_metrics_configuration/_get_bucket_metrics_configuration_output.rs

@@ -1,1 +109,143 @@
   19     19   
    "com.amazonaws.s3.synthetic",
   20     20   
    "GetBucketMetricsConfigurationOutput",
   21     21   
);
   22     22   
static GETBUCKETMETRICSCONFIGURATIONOUTPUT_MEMBER_METRICS_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#GetBucketMetricsConfigurationOutput$MetricsConfiguration",
   25     25   
        "com.amazonaws.s3.synthetic",
   26     26   
        "GetBucketMetricsConfigurationOutput",
   27     27   
    ),
   28     28   
    ::aws_smithy_schema::ShapeType::Structure,
   29         -
    "metrics_configuration",
          29  +
    "MetricsConfiguration",
   30     30   
    0,
   31     31   
)
   32     32   
.with_http_payload();
          33  +
static GETBUCKETMETRICSCONFIGURATIONOUTPUT_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 GETBUCKETMETRICSCONFIGURATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   34     41   
    GETBUCKETMETRICSCONFIGURATIONOUTPUT_SCHEMA_ID,
   35     42   
    ::aws_smithy_schema::ShapeType::Structure,
   36         -
    &[&GETBUCKETMETRICSCONFIGURATIONOUTPUT_MEMBER_METRICS_CONFIGURATION],
          43  +
    &[
          44  +
        &GETBUCKETMETRICSCONFIGURATIONOUTPUT_MEMBER_METRICS_CONFIGURATION,
          45  +
        &GETBUCKETMETRICSCONFIGURATIONOUTPUT_MEMBER__REQUEST_ID,
          46  +
    ],
   37     47   
);
   38     48   
impl GetBucketMetricsConfigurationOutput {
   39     49   
    /// The schema for this shape.
   40     50   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETBUCKETMETRICSCONFIGURATIONOUTPUT_SCHEMA;
   41     51   
}
   42     52   
impl ::aws_smithy_schema::serde::SerializableStruct for GetBucketMetricsConfigurationOutput {
   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.metrics_configuration {
   49     59   
            ser.write_struct(&GETBUCKETMETRICSCONFIGURATIONOUTPUT_MEMBER_METRICS_CONFIGURATION, val)?;
   50     60   
        }
   51     61   
        Ok(())
   52     62   
    }
   53     63   
}
   54     64   
impl GetBucketMetricsConfigurationOutput {
   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(&GETBUCKETMETRICSCONFIGURATIONOUTPUT_SCHEMA, (), |_, member, deser| {
          78  +
        deserializer.read_struct(&GETBUCKETMETRICSCONFIGURATIONOUTPUT_SCHEMA, &mut |member, deser| {
   69     79   
            match member.member_index() {
   70     80   
                Some(0) => {
   71     81   
                    builder.metrics_configuration = Some(crate::types::MetricsConfiguration::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 GetBucketMetricsConfigurationOutput {
          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.metrics_configuration = Some(crate::types::MetricsConfiguration::deserialize(deserializer)?);
         110  +
        }
         111  +
        Ok(builder.build())
         112  +
    }
         113  +
}
   80    114   
impl crate::s3_request_id::RequestIdExt for GetBucketMetricsConfigurationOutput {
   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 GetBucketMetricsConfigurationOutput {
   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_notification_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 `GetBucketNotificationConfiguration`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetBucketNotificationConfiguration;
    6      6   
impl GetBucketNotificationConfiguration {
    7      7   
    /// Creates a new `GetBucketNotificationConfiguration`
    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_notification_configuration::GetBucketNotificationConfigurationInput::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_notification_configuration::GetBucketNotificationConfigurationOutput::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_notification_configuration::GetBucketNotificationConfigurationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_bucket_notification_configuration::GetBucketNotificationConfigurationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_bucket_notification_configuration::GetBucketNotificationConfigurationError,
   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 GetBucketNotificationConfigurationResponseDeserializer;
  161    167   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBucketNotificationConfigurationResponseDeserializer {
  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_notification_configuration/_get_bucket_notification_configuration_input.rs

@@ -7,7 +134,173 @@
   27     27   
    "com.amazonaws.s3.synthetic",
   28     28   
    "GetBucketNotificationConfigurationInput",
   29     29   
);
   30     30   
static GETBUCKETNOTIFICATIONCONFIGURATIONINPUT_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#GetBucketNotificationConfigurationInput$Bucket",
   33     33   
        "com.amazonaws.s3.synthetic",
   34     34   
        "GetBucketNotificationConfigurationInput",
   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 GETBUCKETNOTIFICATIONCONFIGURATIONINPUT_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#GetBucketNotificationConfigurationInput$ExpectedBucketOwner",
   44     44   
        "com.amazonaws.s3.synthetic",
   45     45   
        "GetBucketNotificationConfigurationInput",
   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 GETBUCKETNOTIFICATIONCONFIGURATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   53     53   
    GETBUCKETNOTIFICATIONCONFIGURATIONINPUT_SCHEMA_ID,
   54     54   
    ::aws_smithy_schema::ShapeType::Structure,
   55     55   
    &[
   56     56   
        &GETBUCKETNOTIFICATIONCONFIGURATIONINPUT_MEMBER_BUCKET,
   57     57   
        &GETBUCKETNOTIFICATIONCONFIGURATIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER,
   58     58   
    ],
   59         -
);
          59  +
)
          60  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("GET", "/?notification", None));
   60     61   
impl GetBucketNotificationConfigurationInput {
   61     62   
    /// The schema for this shape.
   62     63   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETBUCKETNOTIFICATIONCONFIGURATIONINPUT_SCHEMA;
   63     64   
}
   64     65   
impl ::aws_smithy_schema::serde::SerializableStruct for GetBucketNotificationConfigurationInput {
   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(&GETBUCKETNOTIFICATIONCONFIGURATIONINPUT_MEMBER_BUCKET, val)?;
   72     73   
        }
   73     74   
        if let Some(ref val) = self.expected_bucket_owner {
   74     75   
            ser.write_string(&GETBUCKETNOTIFICATIONCONFIGURATIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER, val)?;
   75     76   
        }
   76     77   
        Ok(())
   77     78   
    }
   78     79   
}
   79     80   
impl GetBucketNotificationConfigurationInput {
   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(&GETBUCKETNOTIFICATIONCONFIGURATIONINPUT_SCHEMA, (), |_, member, deser| {
          94  +
        deserializer.read_struct(&GETBUCKETNOTIFICATIONCONFIGURATIONINPUT_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 GetBucketNotificationConfigurationInput {
         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(&GETBUCKETNOTIFICATIONCONFIGURATIONINPUT_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 GetBucketNotificationConfigurationInput {
  111    150   
    /// Creates a new builder-style object to manufacture [`GetBucketNotificationConfigurationInput`](crate::operation::get_bucket_notification_configuration::GetBucketNotificationConfigurationInput).
  112    151   
    pub fn builder() -> crate::operation::get_bucket_notification_configuration::builders::GetBucketNotificationConfigurationInputBuilder {
  113    152   
        crate::operation::get_bucket_notification_configuration::builders::GetBucketNotificationConfigurationInputBuilder::default()
  114    153   
    }

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_notification_configuration/_get_bucket_notification_configuration_output.rs

@@ -24,24 +236,302 @@
   44     44   
    "com.amazonaws.s3.synthetic",
   45     45   
    "GetBucketNotificationConfigurationOutput",
   46     46   
);
   47     47   
static GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_TOPIC_CONFIGURATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   48     48   
    ::aws_smithy_schema::ShapeId::from_static(
   49     49   
        "com.amazonaws.s3.synthetic#GetBucketNotificationConfigurationOutput$TopicConfigurations",
   50     50   
        "com.amazonaws.s3.synthetic",
   51     51   
        "GetBucketNotificationConfigurationOutput",
   52     52   
    ),
   53     53   
    ::aws_smithy_schema::ShapeType::List,
   54         -
    "topic_configurations",
          54  +
    "TopicConfigurations",
   55     55   
    0,
   56     56   
)
   57     57   
.with_xml_name("TopicConfiguration")
   58     58   
.with_xml_flattened();
   59     59   
static GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_QUEUE_CONFIGURATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   60     60   
    ::aws_smithy_schema::ShapeId::from_static(
   61     61   
        "com.amazonaws.s3.synthetic#GetBucketNotificationConfigurationOutput$QueueConfigurations",
   62     62   
        "com.amazonaws.s3.synthetic",
   63     63   
        "GetBucketNotificationConfigurationOutput",
   64     64   
    ),
   65     65   
    ::aws_smithy_schema::ShapeType::List,
   66         -
    "queue_configurations",
          66  +
    "QueueConfigurations",
   67     67   
    1,
   68     68   
)
   69     69   
.with_xml_name("QueueConfiguration")
   70     70   
.with_xml_flattened();
   71     71   
static GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_LAMBDA_FUNCTION_CONFIGURATIONS: ::aws_smithy_schema::Schema =
   72     72   
    ::aws_smithy_schema::Schema::new_member(
   73     73   
        ::aws_smithy_schema::ShapeId::from_static(
   74     74   
            "com.amazonaws.s3.synthetic#GetBucketNotificationConfigurationOutput$LambdaFunctionConfigurations",
   75     75   
            "com.amazonaws.s3.synthetic",
   76     76   
            "GetBucketNotificationConfigurationOutput",
   77     77   
        ),
   78     78   
        ::aws_smithy_schema::ShapeType::List,
   79         -
        "lambda_function_configurations",
          79  +
        "LambdaFunctionConfigurations",
   80     80   
        2,
   81     81   
    )
   82     82   
    .with_xml_name("CloudFunctionConfiguration")
   83     83   
    .with_xml_flattened();
   84     84   
static GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_EVENT_BRIDGE_CONFIGURATION: ::aws_smithy_schema::Schema =
   85     85   
    ::aws_smithy_schema::Schema::new_member(
   86     86   
        ::aws_smithy_schema::ShapeId::from_static(
   87     87   
            "com.amazonaws.s3.synthetic#GetBucketNotificationConfigurationOutput$EventBridgeConfiguration",
   88     88   
            "com.amazonaws.s3.synthetic",
   89     89   
            "GetBucketNotificationConfigurationOutput",
   90     90   
        ),
   91     91   
        ::aws_smithy_schema::ShapeType::Structure,
   92         -
        "event_bridge_configuration",
          92  +
        "EventBridgeConfiguration",
   93     93   
        3,
   94     94   
    );
          95  +
static GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          96  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          97  +
    ::aws_smithy_schema::ShapeType::String,
          98  +
    "request_id",
          99  +
    4,
         100  +
)
         101  +
.with_http_header("x-amzn-requestid");
   95    102   
static GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   96    103   
    GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_SCHEMA_ID,
   97    104   
    ::aws_smithy_schema::ShapeType::Structure,
   98    105   
    &[
   99    106   
        &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_TOPIC_CONFIGURATIONS,
  100    107   
        &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_QUEUE_CONFIGURATIONS,
  101    108   
        &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_LAMBDA_FUNCTION_CONFIGURATIONS,
  102    109   
        &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_EVENT_BRIDGE_CONFIGURATION,
         110  +
        &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER__REQUEST_ID,
  103    111   
    ],
  104    112   
);
  105    113   
impl GetBucketNotificationConfigurationOutput {
  106    114   
    /// The schema for this shape.
  107    115   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_SCHEMA;
  108    116   
}
  109    117   
impl ::aws_smithy_schema::serde::SerializableStruct for GetBucketNotificationConfigurationOutput {
  110    118   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  111    119   
    fn serialize_members(
  112    120   
        &self,
  113    121   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  114    122   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  115    123   
        if let Some(ref val) = self.topic_configurations {
  116    124   
            ser.write_list(
  117    125   
                &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_TOPIC_CONFIGURATIONS,
  118    126   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  119    127   
                    for item in val {
  120    128   
                        ser.write_struct(crate::types::TopicConfiguration::SCHEMA, item)?;
  121    129   
                    }
  122    130   
                    Ok(())
  123    131   
                },
  124    132   
            )?;
  125    133   
        }
  126    134   
        if let Some(ref val) = self.queue_configurations {
  127    135   
            ser.write_list(
  128    136   
                &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_QUEUE_CONFIGURATIONS,
  129    137   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  130    138   
                    for item in val {
  131    139   
                        ser.write_struct(crate::types::QueueConfiguration::SCHEMA, item)?;
  132    140   
                    }
  133    141   
                    Ok(())
  134    142   
                },
  135    143   
            )?;
  136    144   
        }
  137    145   
        if let Some(ref val) = self.lambda_function_configurations {
  138    146   
            ser.write_list(
  139    147   
                &GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_LAMBDA_FUNCTION_CONFIGURATIONS,
  140    148   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  141    149   
                    for item in val {
  142    150   
                        ser.write_struct(crate::types::LambdaFunctionConfiguration::SCHEMA, item)?;
  143    151   
                    }
  144    152   
                    Ok(())
  145    153   
                },
  146    154   
            )?;
  147    155   
        }
  148    156   
        if let Some(ref val) = self.event_bridge_configuration {
  149    157   
            ser.write_struct(&GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_MEMBER_EVENT_BRIDGE_CONFIGURATION, val)?;
  150    158   
        }
  151    159   
        Ok(())
  152    160   
    }
  153    161   
}
  154    162   
impl GetBucketNotificationConfigurationOutput {
  155    163   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  156         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  157         -
        deserializer: &mut D,
         164  +
    pub fn deserialize(
         165  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  158    166   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  159    167   
        #[allow(unused_variables, unused_mut)]
  160    168   
        let mut builder = Self::builder();
  161    169   
        #[allow(
  162    170   
            unused_variables,
  163    171   
            unreachable_code,
  164    172   
            clippy::single_match,
  165    173   
            clippy::match_single_binding,
  166    174   
            clippy::diverging_sub_expression
  167    175   
        )]
  168         -
        deserializer.read_struct(&GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_SCHEMA, (), |_, member, deser| {
         176  +
        deserializer.read_struct(&GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_SCHEMA, &mut |member, deser| {
  169    177   
            match member.member_index() {
  170    178   
                Some(0) => {
  171    179   
                    builder.topic_configurations = Some({
  172         -
                        let container = if let Some(cap) = deser.container_size() {
  173         -
                            Vec::with_capacity(cap)
  174         -
                        } else {
  175         -
                            Vec::new()
  176         -
                        };
  177         -
                        deser.read_list(member, container, |mut list, deser| {
  178         -
                            list.push(crate::types::TopicConfiguration::deserialize(deser)?);
  179         -
                            Ok(list)
  180         -
                        })?
         180  +
                        let mut container = Vec::new();
         181  +
                        deser.read_list(member, &mut |deser| {
         182  +
                            container.push(crate::types::TopicConfiguration::deserialize(deser)?);
         183  +
                            Ok(())
         184  +
                        })?;
         185  +
                        container
  181    186   
                    });
  182    187   
                }
  183    188   
                Some(1) => {
  184    189   
                    builder.queue_configurations = Some({
  185         -
                        let container = if let Some(cap) = deser.container_size() {
  186         -
                            Vec::with_capacity(cap)
  187         -
                        } else {
  188         -
                            Vec::new()
  189         -
                        };
  190         -
                        deser.read_list(member, container, |mut list, deser| {
  191         -
                            list.push(crate::types::QueueConfiguration::deserialize(deser)?);
  192         -
                            Ok(list)
  193         -
                        })?
         190  +
                        let mut container = Vec::new();
         191  +
                        deser.read_list(member, &mut |deser| {
         192  +
                            container.push(crate::types::QueueConfiguration::deserialize(deser)?);
         193  +
                            Ok(())
         194  +
                        })?;
         195  +
                        container
  194    196   
                    });
  195    197   
                }
  196    198   
                Some(2) => {
  197    199   
                    builder.lambda_function_configurations = Some({
  198         -
                        let container = if let Some(cap) = deser.container_size() {
  199         -
                            Vec::with_capacity(cap)
  200         -
                        } else {
  201         -
                            Vec::new()
  202         -
                        };
  203         -
                        deser.read_list(member, container, |mut list, deser| {
  204         -
                            list.push(crate::types::LambdaFunctionConfiguration::deserialize(deser)?);
  205         -
                            Ok(list)
  206         -
                        })?
         200  +
                        let mut container = Vec::new();
         201  +
                        deser.read_list(member, &mut |deser| {
         202  +
                            container.push(crate::types::LambdaFunctionConfiguration::deserialize(deser)?);
         203  +
                            Ok(())
         204  +
                        })?;
         205  +
                        container
         206  +
                    });
         207  +
                }
         208  +
                Some(3) => {
         209  +
                    builder.event_bridge_configuration = Some(crate::types::EventBridgeConfiguration::deserialize(deser)?);
         210  +
                }
         211  +
                Some(4) => {
         212  +
                    builder._request_id = Some(deser.read_string(member)?);
         213  +
                }
         214  +
                _ => {}
         215  +
            }
         216  +
            Ok(())
         217  +
        })?;
         218  +
        Ok(builder.build())
         219  +
    }
         220  +
}
         221  +
impl GetBucketNotificationConfigurationOutput {
         222  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         223  +
    /// Header-bound members are read directly from headers, avoiding runtime
         224  +
    /// member iteration overhead. Body members are read via the deserializer.
         225  +
    pub fn deserialize_with_response(
         226  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         227  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         228  +
        _status: u16,
         229  +
        _body: &[u8],
         230  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         231  +
        #[allow(unused_variables, unused_mut)]
         232  +
        let mut builder = Self::builder();
         233  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         234  +
            builder._request_id = Some(val.to_string());
         235  +
        }
         236  +
        #[allow(
         237  +
            unused_variables,
         238  +
            unreachable_code,
         239  +
            clippy::single_match,
         240  +
            clippy::match_single_binding,
         241  +
            clippy::diverging_sub_expression
         242  +
        )]
         243  +
        deserializer.read_struct(&GETBUCKETNOTIFICATIONCONFIGURATIONOUTPUT_SCHEMA, &mut |member, deser| {
         244  +
            match member.member_index() {
         245  +
                Some(0) => {
         246  +
                    builder.topic_configurations = Some({
         247  +
                        let mut container = Vec::new();
         248  +
                        deser.read_list(member, &mut |deser| {
         249  +
                            container.push(crate::types::TopicConfiguration::deserialize(deser)?);
         250  +
                            Ok(())
         251  +
                        })?;
         252  +
                        container
         253  +
                    });
         254  +
                }
         255  +
                Some(1) => {
         256  +
                    builder.queue_configurations = Some({
         257  +
                        let mut container = Vec::new();
         258  +
                        deser.read_list(member, &mut |deser| {
         259  +
                            container.push(crate::types::QueueConfiguration::deserialize(deser)?);
         260  +
                            Ok(())
         261  +
                        })?;
         262  +
                        container
         263  +
                    });
         264  +
                }
         265  +
                Some(2) => {
         266  +
                    builder.lambda_function_configurations = Some({
         267  +
                        let mut container = Vec::new();
         268  +
                        deser.read_list(member, &mut |deser| {
         269  +
                            container.push(crate::types::LambdaFunctionConfiguration::deserialize(deser)?);
         270  +
                            Ok(())
         271  +
                        })?;
         272  +
                        container
  207    273   
                    });
  208    274   
                }
  209    275   
                Some(3) => {
  210    276   
                    builder.event_bridge_configuration = Some(crate::types::EventBridgeConfiguration::deserialize(deser)?);
  211    277   
                }
  212    278   
                _ => {}
  213    279   
            }
  214    280   
            Ok(())
  215    281   
        })?;
  216    282   
        Ok(builder.build())

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_ownership_controls.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 `GetBucketOwnershipControls`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetBucketOwnershipControls;
    6      6   
impl GetBucketOwnershipControls {
    7      7   
    /// Creates a new `GetBucketOwnershipControls`
    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_ownership_controls::GetBucketOwnershipControlsInput::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_ownership_controls::GetBucketOwnershipControlsOutput::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_ownership_controls::GetBucketOwnershipControlsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_bucket_ownership_controls::GetBucketOwnershipControlsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_bucket_ownership_controls::GetBucketOwnershipControlsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -126,132 +188,195 @@
  146    152   
                .build(),
  147    153   
            );
  148    154   
  149    155   
        ::std::borrow::Cow::Owned(rcb)
  150    156   
    }
  151    157   
}
  152    158   
  153    159   
#[derive(Debug)]
  154    160   
struct GetBucketOwnershipControlsResponseDeserializer;
  155    161   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBucketOwnershipControlsResponseDeserializer {
  156         -
    fn deserialize_nonstreaming(
         162  +
    fn deserialize_nonstreaming_with_config(
  157    163   
        &self,
  158    164   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         165  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  159    166   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  160    167   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  161    168   
        let headers = response.headers();
  162    169   
        let body = response.body().bytes().expect("body loaded");
  163    170   
        #[allow(unused_mut)]
  164    171   
        let mut force_error = false;
  165    172   
        ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
  166    173   
        if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
  167    174   
            force_error = true;
  168    175   
        }

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_ownership_controls/_get_bucket_ownership_controls_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_ownership_controls/_get_bucket_ownership_controls_output.rs

@@ -1,1 +109,143 @@
   19     19   
    "com.amazonaws.s3.synthetic",
   20     20   
    "GetBucketOwnershipControlsOutput",
   21     21   
);
   22     22   
static GETBUCKETOWNERSHIPCONTROLSOUTPUT_MEMBER_OWNERSHIP_CONTROLS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   23     23   
    ::aws_smithy_schema::ShapeId::from_static(
   24     24   
        "com.amazonaws.s3.synthetic#GetBucketOwnershipControlsOutput$OwnershipControls",
   25     25   
        "com.amazonaws.s3.synthetic",
   26     26   
        "GetBucketOwnershipControlsOutput",
   27     27   
    ),
   28     28   
    ::aws_smithy_schema::ShapeType::Structure,
   29         -
    "ownership_controls",
          29  +
    "OwnershipControls",
   30     30   
    0,
   31     31   
)
   32     32   
.with_http_payload();
          33  +
static GETBUCKETOWNERSHIPCONTROLSOUTPUT_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 GETBUCKETOWNERSHIPCONTROLSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   34     41   
    GETBUCKETOWNERSHIPCONTROLSOUTPUT_SCHEMA_ID,
   35     42   
    ::aws_smithy_schema::ShapeType::Structure,
   36         -
    &[&GETBUCKETOWNERSHIPCONTROLSOUTPUT_MEMBER_OWNERSHIP_CONTROLS],
          43  +
    &[
          44  +
        &GETBUCKETOWNERSHIPCONTROLSOUTPUT_MEMBER_OWNERSHIP_CONTROLS,
          45  +
        &GETBUCKETOWNERSHIPCONTROLSOUTPUT_MEMBER__REQUEST_ID,
          46  +
    ],
   37     47   
);
   38     48   
impl GetBucketOwnershipControlsOutput {
   39     49   
    /// The schema for this shape.
   40     50   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETBUCKETOWNERSHIPCONTROLSOUTPUT_SCHEMA;
   41     51   
}
   42     52   
impl ::aws_smithy_schema::serde::SerializableStruct for GetBucketOwnershipControlsOutput {
   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.ownership_controls {
   49     59   
            ser.write_struct(&GETBUCKETOWNERSHIPCONTROLSOUTPUT_MEMBER_OWNERSHIP_CONTROLS, val)?;
   50     60   
        }
   51     61   
        Ok(())
   52     62   
    }
   53     63   
}
   54     64   
impl GetBucketOwnershipControlsOutput {
   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(&GETBUCKETOWNERSHIPCONTROLSOUTPUT_SCHEMA, (), |_, member, deser| {
          78  +
        deserializer.read_struct(&GETBUCKETOWNERSHIPCONTROLSOUTPUT_SCHEMA, &mut |member, deser| {
   69     79   
            match member.member_index() {
   70     80   
                Some(0) => {
   71     81   
                    builder.ownership_controls = Some(crate::types::OwnershipControls::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 GetBucketOwnershipControlsOutput {
          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.ownership_controls = Some(crate::types::OwnershipControls::deserialize(deserializer)?);
         110  +
        }
         111  +
        Ok(builder.build())
         112  +
    }
         113  +
}
   80    114   
impl crate::s3_request_id::RequestIdExt for GetBucketOwnershipControlsOutput {
   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 GetBucketOwnershipControlsOutput {
   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_policy.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 `GetBucketPolicy`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetBucketPolicy;
    6      6   
impl GetBucketPolicy {
    7      7   
    /// Creates a new `GetBucketPolicy`
    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_policy::GetBucketPolicyInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_bucket_policy::GetBucketPolicyOutput::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_policy::GetBucketPolicyInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_bucket_policy::GetBucketPolicyOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_bucket_policy::GetBucketPolicyError,
   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 GetBucketPolicyResponseDeserializer;
  150    154   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBucketPolicyResponseDeserializer {
  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   
        }