AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/delete_bucket/_delete_bucket_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/delete_bucket/_delete_bucket_output.rs

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

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/delete_bucket_analytics_configuration/_delete_bucket_analytics_configuration_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/delete_bucket_analytics_configuration/_delete_bucket_analytics_configuration_output.rs

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

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/delete_bucket_cors/_delete_bucket_cors_input.rs

@@ -3,3 +127,166 @@
   23     23   
    "com.amazonaws.s3.synthetic",
   24     24   
    "DeleteBucketCorsInput",
   25     25   
);
   26     26   
static DELETEBUCKETCORSINPUT_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#DeleteBucketCorsInput$Bucket",
   29     29   
        "com.amazonaws.s3.synthetic",
   30     30   
        "DeleteBucketCorsInput",
   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 DELETEBUCKETCORSINPUT_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#DeleteBucketCorsInput$ExpectedBucketOwner",
   40     40   
        "com.amazonaws.s3.synthetic",
   41     41   
        "DeleteBucketCorsInput",
   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 DELETEBUCKETCORSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    DELETEBUCKETCORSINPUT_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[&DELETEBUCKETCORSINPUT_MEMBER_BUCKET, &DELETEBUCKETCORSINPUT_MEMBER_EXPECTED_BUCKET_OWNER],
   52         -
);
          52  +
)
          53  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("DELETE", "/?cors", Some(204)));
   53     54   
impl DeleteBucketCorsInput {
   54     55   
    /// The schema for this shape.
   55     56   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEBUCKETCORSINPUT_SCHEMA;
   56     57   
}
   57     58   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteBucketCorsInput {
   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(&DELETEBUCKETCORSINPUT_MEMBER_BUCKET, val)?;
   65     66   
        }
   66     67   
        if let Some(ref val) = self.expected_bucket_owner {
   67     68   
            ser.write_string(&DELETEBUCKETCORSINPUT_MEMBER_EXPECTED_BUCKET_OWNER, val)?;
   68     69   
        }
   69     70   
        Ok(())
   70     71   
    }
   71     72   
}
   72     73   
impl DeleteBucketCorsInput {
   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(&DELETEBUCKETCORSINPUT_SCHEMA, (), |_, member, deser| {
          87  +
        deserializer.read_struct(&DELETEBUCKETCORSINPUT_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 DeleteBucketCorsInput {
         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(&DELETEBUCKETCORSINPUT_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 DeleteBucketCorsInput {
  104    143   
    /// Creates a new builder-style object to manufacture [`DeleteBucketCorsInput`](crate::operation::delete_bucket_cors::DeleteBucketCorsInput).
  105    144   
    pub fn builder() -> crate::operation::delete_bucket_cors::builders::DeleteBucketCorsInputBuilder {
  106    145   
        crate::operation::delete_bucket_cors::builders::DeleteBucketCorsInputBuilder::default()
  107    146   
    }

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/delete_bucket_cors/_delete_bucket_cors_output.rs

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

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/delete_bucket_encryption/_delete_bucket_encryption_input.rs

@@ -9,9 +136,175 @@
   29     29   
    "com.amazonaws.s3.synthetic",
   30     30   
    "DeleteBucketEncryptionInput",
   31     31   
);
   32     32   
static DELETEBUCKETENCRYPTIONINPUT_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#DeleteBucketEncryptionInput$Bucket",
   35     35   
        "com.amazonaws.s3.synthetic",
   36     36   
        "DeleteBucketEncryptionInput",
   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 DELETEBUCKETENCRYPTIONINPUT_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#DeleteBucketEncryptionInput$ExpectedBucketOwner",
   46     46   
        "com.amazonaws.s3.synthetic",
   47     47   
        "DeleteBucketEncryptionInput",
   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 DELETEBUCKETENCRYPTIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   55     55   
    DELETEBUCKETENCRYPTIONINPUT_SCHEMA_ID,
   56     56   
    ::aws_smithy_schema::ShapeType::Structure,
   57     57   
    &[
   58     58   
        &DELETEBUCKETENCRYPTIONINPUT_MEMBER_BUCKET,
   59     59   
        &DELETEBUCKETENCRYPTIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER,
   60     60   
    ],
   61         -
);
          61  +
)
          62  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("DELETE", "/?encryption", Some(204)));
   62     63   
impl DeleteBucketEncryptionInput {
   63     64   
    /// The schema for this shape.
   64     65   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEBUCKETENCRYPTIONINPUT_SCHEMA;
   65     66   
}
   66     67   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteBucketEncryptionInput {
   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(&DELETEBUCKETENCRYPTIONINPUT_MEMBER_BUCKET, val)?;
   74     75   
        }
   75     76   
        if let Some(ref val) = self.expected_bucket_owner {
   76     77   
            ser.write_string(&DELETEBUCKETENCRYPTIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER, val)?;
   77     78   
        }
   78     79   
        Ok(())
   79     80   
    }
   80     81   
}
   81     82   
impl DeleteBucketEncryptionInput {
   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(&DELETEBUCKETENCRYPTIONINPUT_SCHEMA, (), |_, member, deser| {
          96  +
        deserializer.read_struct(&DELETEBUCKETENCRYPTIONINPUT_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 DeleteBucketEncryptionInput {
         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(&DELETEBUCKETENCRYPTIONINPUT_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 DeleteBucketEncryptionInput {
  113    152   
    /// Creates a new builder-style object to manufacture [`DeleteBucketEncryptionInput`](crate::operation::delete_bucket_encryption::DeleteBucketEncryptionInput).
  114    153   
    pub fn builder() -> crate::operation::delete_bucket_encryption::builders::DeleteBucketEncryptionInputBuilder {
  115    154   
        crate::operation::delete_bucket_encryption::builders::DeleteBucketEncryptionInputBuilder::default()
  116    155   
    }

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/delete_bucket_encryption/_delete_bucket_encryption_output.rs

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

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

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/delete_bucket_intelligent_tiering_configuration/_delete_bucket_intelligent_tiering_configuration_input.rs

@@ -9,9 +155,198 @@
   29     29   
    "com.amazonaws.s3.synthetic",
   30     30   
    "DeleteBucketIntelligentTieringConfigurationInput",
   31     31   
);
   32     32   
static DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_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#DeleteBucketIntelligentTieringConfigurationInput$Bucket",
   35     35   
        "com.amazonaws.s3.synthetic",
   36     36   
        "DeleteBucketIntelligentTieringConfigurationInput",
   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 DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_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#DeleteBucketIntelligentTieringConfigurationInput$Id",
   46     46   
        "com.amazonaws.s3.synthetic",
   47     47   
        "DeleteBucketIntelligentTieringConfigurationInput",
   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 DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER: ::aws_smithy_schema::Schema =
   55     55   
    ::aws_smithy_schema::Schema::new_member(
   56     56   
        ::aws_smithy_schema::ShapeId::from_static(
   57     57   
            "com.amazonaws.s3.synthetic#DeleteBucketIntelligentTieringConfigurationInput$ExpectedBucketOwner",
   58     58   
            "com.amazonaws.s3.synthetic",
   59     59   
            "DeleteBucketIntelligentTieringConfigurationInput",
   60     60   
        ),
   61     61   
        ::aws_smithy_schema::ShapeType::String,
   62         -
        "expected_bucket_owner",
          62  +
        "ExpectedBucketOwner",
   63     63   
        2,
   64     64   
    )
   65     65   
    .with_http_header("x-amz-expected-bucket-owner");
   66     66   
static DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   67     67   
    DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_SCHEMA_ID,
   68     68   
    ::aws_smithy_schema::ShapeType::Structure,
   69     69   
    &[
   70     70   
        &DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_MEMBER_BUCKET,
   71     71   
        &DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_MEMBER_ID,
   72     72   
        &DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER,
   73     73   
    ],
   74         -
);
          74  +
)
          75  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("DELETE", "/?intelligent-tiering", Some(204)));
   75     76   
impl DeleteBucketIntelligentTieringConfigurationInput {
   76     77   
    /// The schema for this shape.
   77     78   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_SCHEMA;
   78     79   
}
   79     80   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteBucketIntelligentTieringConfigurationInput {
   80     81   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   81     82   
    fn serialize_members(
   82     83   
        &self,
   83     84   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   84     85   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   85     86   
        if let Some(ref val) = self.bucket {
   86     87   
            ser.write_string(&DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_MEMBER_BUCKET, val)?;
   87     88   
        }
   88     89   
        if let Some(ref val) = self.id {
   89     90   
            ser.write_string(&DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_MEMBER_ID, val)?;
   90     91   
        }
   91     92   
        if let Some(ref val) = self.expected_bucket_owner {
   92     93   
            ser.write_string(&DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER, val)?;
   93     94   
        }
   94     95   
        Ok(())
   95     96   
    }
   96     97   
}
   97     98   
impl DeleteBucketIntelligentTieringConfigurationInput {
   98     99   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   99         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  100         -
        deserializer: &mut D,
         100  +
    pub fn deserialize(
         101  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  101    102   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  102    103   
        #[allow(unused_variables, unused_mut)]
  103    104   
        let mut builder = Self::builder();
  104    105   
        #[allow(
  105    106   
            unused_variables,
  106    107   
            unreachable_code,
  107    108   
            clippy::single_match,
  108    109   
            clippy::match_single_binding,
  109    110   
            clippy::diverging_sub_expression
  110    111   
        )]
  111         -
        deserializer.read_struct(&DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_SCHEMA, (), |_, member, deser| {
         112  +
        deserializer.read_struct(&DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_SCHEMA, &mut |member, deser| {
  112    113   
            match member.member_index() {
  113    114   
                Some(0) => {
  114    115   
                    builder.bucket = Some(deser.read_string(member)?);
  115    116   
                }
  116    117   
                Some(1) => {
  117    118   
                    builder.id = Some(deser.read_string(member)?);
  118    119   
                }
  119    120   
                Some(2) => {
  120    121   
                    builder.expected_bucket_owner = Some(deser.read_string(member)?);
  121    122   
                }
  122    123   
                _ => {}
  123    124   
            }
  124    125   
            Ok(())
  125    126   
        })?;
         127  +
        builder.bucket = builder.bucket.or(Some(String::new()));
         128  +
        builder.id = builder.id.or(Some(String::new()));
         129  +
        builder
         130  +
            .build()
         131  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         132  +
    }
         133  +
}
         134  +
impl DeleteBucketIntelligentTieringConfigurationInput {
         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-amz-expected-bucket-owner") {
         147  +
            builder.expected_bucket_owner = 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(&DELETEBUCKETINTELLIGENTTIERINGCONFIGURATIONINPUT_SCHEMA, &mut |member, deser| {
         157  +
            match member.member_index() {
         158  +
                Some(0) => {
         159  +
                    builder.bucket = Some(deser.read_string(member)?);
         160  +
                }
         161  +
                Some(1) => {
         162  +
                    builder.id = Some(deser.read_string(member)?);
         163  +
                }
         164  +
                Some(2) => { /* read from headers above */ }
         165  +
                _ => {}
         166  +
            }
         167  +
            Ok(())
         168  +
        })?;
  126    169   
        builder
  127    170   
            .build()
  128    171   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  129    172   
    }
  130    173   
}
  131    174   
impl DeleteBucketIntelligentTieringConfigurationInput {
  132    175   
    /// Creates a new builder-style object to manufacture [`DeleteBucketIntelligentTieringConfigurationInput`](crate::operation::delete_bucket_intelligent_tiering_configuration::DeleteBucketIntelligentTieringConfigurationInput).
  133    176   
    pub fn builder(
  134    177   
    ) -> crate::operation::delete_bucket_intelligent_tiering_configuration::builders::DeleteBucketIntelligentTieringConfigurationInputBuilder {
  135    178   
        crate::operation::delete_bucket_intelligent_tiering_configuration::builders::DeleteBucketIntelligentTieringConfigurationInputBuilder::default(

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/delete_bucket_intelligent_tiering_configuration/_delete_bucket_intelligent_tiering_configuration_output.rs

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

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

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/delete_bucket_inventory_configuration/_delete_bucket_inventory_configuration_input.rs

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