AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_abac/_get_bucket_abac_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_abac/_get_bucket_abac_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_accelerate_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 `GetBucketAccelerateConfiguration`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetBucketAccelerateConfiguration;
    6      6   
impl GetBucketAccelerateConfiguration {
    7      7   
    /// Creates a new `GetBucketAccelerateConfiguration`
    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_accelerate_configuration::GetBucketAccelerateConfigurationInput::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_accelerate_configuration::GetBucketAccelerateConfigurationOutput::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_accelerate_configuration::GetBucketAccelerateConfigurationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_bucket_accelerate_configuration::GetBucketAccelerateConfigurationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_bucket_accelerate_configuration::GetBucketAccelerateConfigurationError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -135,141 +194,201 @@
  155    161   
        ::std::borrow::Cow::Owned(rcb)
  156    162   
    }
  157    163   
}
  158    164   
  159    165   
#[derive(Debug)]
  160    166   
struct GetBucketAccelerateConfigurationResponseDeserializer;
  161    167   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBucketAccelerateConfigurationResponseDeserializer {
  162    168   
    fn deserialize_nonstreaming(
  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_accelerate_configuration/_get_bucket_accelerate_configuration_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_accelerate_configuration/_get_bucket_accelerate_configuration_output.rs

@@ -9,9 +132,181 @@
   29     29   
    "com.amazonaws.s3.synthetic",
   30     30   
    "GetBucketAccelerateConfigurationOutput",
   31     31   
);
   32     32   
static GETBUCKETACCELERATECONFIGURATIONOUTPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   33     33   
    ::aws_smithy_schema::ShapeId::from_static(
   34     34   
        "com.amazonaws.s3.synthetic#GetBucketAccelerateConfigurationOutput$Status",
   35     35   
        "com.amazonaws.s3.synthetic",
   36     36   
        "GetBucketAccelerateConfigurationOutput",
   37     37   
    ),
   38     38   
    ::aws_smithy_schema::ShapeType::String,
   39         -
    "status",
          39  +
    "Status",
   40     40   
    0,
   41     41   
);
   42     42   
static GETBUCKETACCELERATECONFIGURATIONOUTPUT_MEMBER_REQUEST_CHARGED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   43     43   
    ::aws_smithy_schema::ShapeId::from_static(
   44     44   
        "com.amazonaws.s3.synthetic#GetBucketAccelerateConfigurationOutput$RequestCharged",
   45     45   
        "com.amazonaws.s3.synthetic",
   46     46   
        "GetBucketAccelerateConfigurationOutput",
   47     47   
    ),
   48     48   
    ::aws_smithy_schema::ShapeType::String,
   49         -
    "request_charged",
          49  +
    "RequestCharged",
   50     50   
    1,
   51     51   
)
   52     52   
.with_http_header("x-amz-request-charged");
          53  +
static GETBUCKETACCELERATECONFIGURATIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          54  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          55  +
    ::aws_smithy_schema::ShapeType::String,
          56  +
    "request_id",
          57  +
    2,
          58  +
)
          59  +
.with_http_header("x-amzn-requestid");
   53     60   
static GETBUCKETACCELERATECONFIGURATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   54     61   
    GETBUCKETACCELERATECONFIGURATIONOUTPUT_SCHEMA_ID,
   55     62   
    ::aws_smithy_schema::ShapeType::Structure,
   56     63   
    &[
   57     64   
        &GETBUCKETACCELERATECONFIGURATIONOUTPUT_MEMBER_STATUS,
   58     65   
        &GETBUCKETACCELERATECONFIGURATIONOUTPUT_MEMBER_REQUEST_CHARGED,
          66  +
        &GETBUCKETACCELERATECONFIGURATIONOUTPUT_MEMBER__REQUEST_ID,
   59     67   
    ],
   60     68   
)
   61     69   
.with_xml_name("AccelerateConfiguration");
   62     70   
impl GetBucketAccelerateConfigurationOutput {
   63     71   
    /// The schema for this shape.
   64     72   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETBUCKETACCELERATECONFIGURATIONOUTPUT_SCHEMA;
   65     73   
}
   66     74   
impl ::aws_smithy_schema::serde::SerializableStruct for GetBucketAccelerateConfigurationOutput {
   67     75   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   68     76   
    fn serialize_members(
   69     77   
        &self,
   70     78   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   71     79   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   72     80   
        if let Some(ref val) = self.status {
   73     81   
            ser.write_string(&GETBUCKETACCELERATECONFIGURATIONOUTPUT_MEMBER_STATUS, val.as_str())?;
   74     82   
        }
   75     83   
        if let Some(ref val) = self.request_charged {
   76     84   
            ser.write_string(&GETBUCKETACCELERATECONFIGURATIONOUTPUT_MEMBER_REQUEST_CHARGED, val.as_str())?;
   77     85   
        }
   78     86   
        Ok(())
   79     87   
    }
   80     88   
}
   81     89   
impl GetBucketAccelerateConfigurationOutput {
   82     90   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   83         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   84         -
        deserializer: &mut D,
          91  +
    pub fn deserialize(
          92  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   85     93   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   86     94   
        #[allow(unused_variables, unused_mut)]
   87     95   
        let mut builder = Self::builder();
   88     96   
        #[allow(
   89     97   
            unused_variables,
   90     98   
            unreachable_code,
   91     99   
            clippy::single_match,
   92    100   
            clippy::match_single_binding,
   93    101   
            clippy::diverging_sub_expression
   94    102   
        )]
   95         -
        deserializer.read_struct(&GETBUCKETACCELERATECONFIGURATIONOUTPUT_SCHEMA, (), |_, member, deser| {
         103  +
        deserializer.read_struct(&GETBUCKETACCELERATECONFIGURATIONOUTPUT_SCHEMA, &mut |member, deser| {
   96    104   
            match member.member_index() {
   97    105   
                Some(0) => {
   98    106   
                    builder.status = Some(crate::types::BucketAccelerateStatus::from(deser.read_string(member)?.as_str()));
   99    107   
                }
  100    108   
                Some(1) => {
  101    109   
                    builder.request_charged = Some(crate::types::RequestCharged::from(deser.read_string(member)?.as_str()));
  102    110   
                }
         111  +
                Some(2) => {
         112  +
                    builder._request_id = Some(deser.read_string(member)?);
         113  +
                }
         114  +
                _ => {}
         115  +
            }
         116  +
            Ok(())
         117  +
        })?;
         118  +
        Ok(builder.build())
         119  +
    }
         120  +
}
         121  +
impl GetBucketAccelerateConfigurationOutput {
         122  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         123  +
    /// Header-bound members are read directly from headers, avoiding runtime
         124  +
    /// member iteration overhead. Body members are read via the deserializer.
         125  +
    pub fn deserialize_with_response(
         126  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         127  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         128  +
        _status: u16,
         129  +
        _body: &[u8],
         130  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         131  +
        #[allow(unused_variables, unused_mut)]
         132  +
        let mut builder = Self::builder();
         133  +
        if let Some(val) = headers.get("x-amz-request-charged") {
         134  +
            builder.request_charged = Some(crate::types::RequestCharged::from(val));
         135  +
        }
         136  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         137  +
            builder._request_id = Some(val.to_string());
         138  +
        }
         139  +
        #[allow(
         140  +
            unused_variables,
         141  +
            unreachable_code,
         142  +
            clippy::single_match,
         143  +
            clippy::match_single_binding,
         144  +
            clippy::diverging_sub_expression
         145  +
        )]
         146  +
        deserializer.read_struct(&GETBUCKETACCELERATECONFIGURATIONOUTPUT_SCHEMA, &mut |member, deser| {
         147  +
            match member.member_index() {
         148  +
                Some(0) => {
         149  +
                    builder.status = Some(crate::types::BucketAccelerateStatus::from(deser.read_string(member)?.as_str()));
         150  +
                }
         151  +
                Some(1) => { /* read from headers above */ }
  103    152   
                _ => {}
  104    153   
            }
  105    154   
            Ok(())
  106    155   
        })?;
  107    156   
        Ok(builder.build())
  108    157   
    }
  109    158   
}
  110    159   
impl crate::s3_request_id::RequestIdExt for GetBucketAccelerateConfigurationOutput {
  111    160   
    fn extended_request_id(&self) -> Option<&str> {
  112    161   
        self._extended_request_id.as_deref()

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_acl/_get_bucket_acl_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_acl/_get_bucket_acl_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_analytics_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 `GetBucketAnalyticsConfiguration`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetBucketAnalyticsConfiguration;
    6      6   
impl GetBucketAnalyticsConfiguration {
    7      7   
    /// Creates a new `GetBucketAnalyticsConfiguration`
    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_analytics_configuration::GetBucketAnalyticsConfigurationInput::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_analytics_configuration::GetBucketAnalyticsConfigurationOutput::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_analytics_configuration::GetBucketAnalyticsConfigurationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_bucket_analytics_configuration::GetBucketAnalyticsConfigurationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_bucket_analytics_configuration::GetBucketAnalyticsConfigurationError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -135,141 +194,201 @@
  155    161   
        ::std::borrow::Cow::Owned(rcb)
  156    162   
    }
  157    163   
}
  158    164   
  159    165   
#[derive(Debug)]
  160    166   
struct GetBucketAnalyticsConfigurationResponseDeserializer;
  161    167   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBucketAnalyticsConfigurationResponseDeserializer {
  162    168   
    fn deserialize_nonstreaming(
  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_analytics_configuration/_get_bucket_analytics_configuration_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_analytics_configuration/_get_bucket_analytics_configuration_output.rs

@@ -1,1 +109,143 @@
   19     19   
    "com.amazonaws.s3.synthetic",
   20     20   
    "GetBucketAnalyticsConfigurationOutput",
   21     21   
);
   22     22   
static GETBUCKETANALYTICSCONFIGURATIONOUTPUT_MEMBER_ANALYTICS_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#GetBucketAnalyticsConfigurationOutput$AnalyticsConfiguration",
   25     25   
        "com.amazonaws.s3.synthetic",
   26     26   
        "GetBucketAnalyticsConfigurationOutput",
   27     27   
    ),
   28     28   
    ::aws_smithy_schema::ShapeType::Structure,
   29         -
    "analytics_configuration",
          29  +
    "AnalyticsConfiguration",
   30     30   
    0,
   31     31   
)
   32     32   
.with_http_payload();
          33  +
static GETBUCKETANALYTICSCONFIGURATIONOUTPUT_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 GETBUCKETANALYTICSCONFIGURATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   34     41   
    GETBUCKETANALYTICSCONFIGURATIONOUTPUT_SCHEMA_ID,
   35     42   
    ::aws_smithy_schema::ShapeType::Structure,
   36         -
    &[&GETBUCKETANALYTICSCONFIGURATIONOUTPUT_MEMBER_ANALYTICS_CONFIGURATION],
          43  +
    &[
          44  +
        &GETBUCKETANALYTICSCONFIGURATIONOUTPUT_MEMBER_ANALYTICS_CONFIGURATION,
          45  +
        &GETBUCKETANALYTICSCONFIGURATIONOUTPUT_MEMBER__REQUEST_ID,
          46  +
    ],
   37     47   
);
   38     48   
impl GetBucketAnalyticsConfigurationOutput {
   39     49   
    /// The schema for this shape.
   40     50   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETBUCKETANALYTICSCONFIGURATIONOUTPUT_SCHEMA;
   41     51   
}
   42     52   
impl ::aws_smithy_schema::serde::SerializableStruct for GetBucketAnalyticsConfigurationOutput {
   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.analytics_configuration {
   49     59   
            ser.write_struct(&GETBUCKETANALYTICSCONFIGURATIONOUTPUT_MEMBER_ANALYTICS_CONFIGURATION, val)?;
   50     60   
        }
   51     61   
        Ok(())
   52     62   
    }
   53     63   
}
   54     64   
impl GetBucketAnalyticsConfigurationOutput {
   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(&GETBUCKETANALYTICSCONFIGURATIONOUTPUT_SCHEMA, (), |_, member, deser| {
          78  +
        deserializer.read_struct(&GETBUCKETANALYTICSCONFIGURATIONOUTPUT_SCHEMA, &mut |member, deser| {
   69     79   
            match member.member_index() {
   70     80   
                Some(0) => {
   71     81   
                    builder.analytics_configuration = Some(crate::types::AnalyticsConfiguration::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 GetBucketAnalyticsConfigurationOutput {
          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.analytics_configuration = Some(crate::types::AnalyticsConfiguration::deserialize(deserializer)?);
         110  +
        }
         111  +
        Ok(builder.build())
         112  +
    }
         113  +
}
   80    114   
impl crate::s3_request_id::RequestIdExt for GetBucketAnalyticsConfigurationOutput {
   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 GetBucketAnalyticsConfigurationOutput {
   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_cors.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 `GetBucketCors`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetBucketCors;
    6      6   
impl GetBucketCors {
    7      7   
    /// Creates a new `GetBucketCors`
    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_cors::GetBucketCorsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_bucket_cors::GetBucketCorsOutput::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_cors::GetBucketCorsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_bucket_cors::GetBucketCorsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_bucket_cors::GetBucketCorsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -124,128 +183,188 @@
  144    148   
        ::std::borrow::Cow::Owned(rcb)
  145    149   
    }
  146    150   
}
  147    151   
  148    152   
#[derive(Debug)]
  149    153   
struct GetBucketCorsResponseDeserializer;
  150    154   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBucketCorsResponseDeserializer {
  151    155   
    fn deserialize_nonstreaming(
  152    156   
        &self,
  153    157   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         158  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  154    159   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  155    160   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  156    161   
        let headers = response.headers();
  157    162   
        let body = response.body().bytes().expect("body loaded");
  158    163   
        #[allow(unused_mut)]
  159    164   
        let mut force_error = false;
  160    165   
        ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
  161    166   
        if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
  162    167   
            force_error = true;
  163    168   
        }

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_cors/_get_bucket_cors_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_bucket_cors/_get_bucket_cors_output.rs

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

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

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

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