AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406 (ignoring whitespace)

Files changed:

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

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

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

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

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

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

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

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

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

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

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

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `DeleteBucketPolicy`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteBucketPolicy;
    6      6   
impl DeleteBucketPolicy {
    7      7   
    /// Creates a new `DeleteBucketPolicy`
    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_policy::DeleteBucketPolicyInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::delete_bucket_policy::DeleteBucketPolicyOutput::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_policy::DeleteBucketPolicyInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::delete_bucket_policy::DeleteBucketPolicyOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::delete_bucket_policy::DeleteBucketPolicyError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::delete_bucket_policy::DeleteBucketPolicyError,
  139    143   
            >::new());
  140    144   
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct DeleteBucketPolicyResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteBucketPolicyResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153    158   
        let headers = response.headers();
  154    159   
        let body = response.body().bytes().expect("body loaded");
  155    160   
        #[allow(unused_mut)]
  156    161   
        let mut force_error = false;
  157    162   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158    163   
        let parse_result = if !success && status != 200 || force_error {
  159    164   
            crate::protocol_serde::shape_delete_bucket_policy::de_delete_bucket_policy_http_error(status, headers, body)
  160    165   
        } else {

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

@@ -25,25 +150,194 @@
   45     45   
    "com.amazonaws.s3control.synthetic",
   46     46   
    "DeleteBucketPolicyInput",
   47     47   
);
   48     48   
static DELETEBUCKETPOLICYINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   49     49   
    ::aws_smithy_schema::ShapeId::from_static(
   50     50   
        "com.amazonaws.s3control.synthetic#DeleteBucketPolicyInput$AccountId",
   51     51   
        "com.amazonaws.s3control.synthetic",
   52     52   
        "DeleteBucketPolicyInput",
   53     53   
    ),
   54     54   
    ::aws_smithy_schema::ShapeType::String,
   55         -
    "account_id",
          55  +
    "AccountId",
   56     56   
    0,
   57     57   
)
   58     58   
.with_host_label()
   59     59   
.with_http_header("x-amz-account-id");
   60     60   
static DELETEBUCKETPOLICYINPUT_MEMBER_BUCKET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   61     61   
    ::aws_smithy_schema::ShapeId::from_static(
   62     62   
        "com.amazonaws.s3control.synthetic#DeleteBucketPolicyInput$Bucket",
   63     63   
        "com.amazonaws.s3control.synthetic",
   64     64   
        "DeleteBucketPolicyInput",
   65     65   
    ),
   66     66   
    ::aws_smithy_schema::ShapeType::String,
   67         -
    "bucket",
          67  +
    "Bucket",
   68     68   
    1,
   69     69   
)
   70     70   
.with_http_label();
   71     71   
static DELETEBUCKETPOLICYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   72     72   
    DELETEBUCKETPOLICYINPUT_SCHEMA_ID,
   73     73   
    ::aws_smithy_schema::ShapeType::Structure,
   74     74   
    &[&DELETEBUCKETPOLICYINPUT_MEMBER_ACCOUNT_ID, &DELETEBUCKETPOLICYINPUT_MEMBER_BUCKET],
   75         -
);
          75  +
)
          76  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          77  +
    "DELETE",
          78  +
    "/v20180820/bucket/{Bucket}/policy",
          79  +
    None,
          80  +
));
   76     81   
impl DeleteBucketPolicyInput {
   77     82   
    /// The schema for this shape.
   78     83   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEBUCKETPOLICYINPUT_SCHEMA;
   79     84   
}
   80     85   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteBucketPolicyInput {
   81     86   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   82     87   
    fn serialize_members(
   83     88   
        &self,
   84     89   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   85     90   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   86     91   
        if let Some(ref val) = self.account_id {
   87     92   
            ser.write_string(&DELETEBUCKETPOLICYINPUT_MEMBER_ACCOUNT_ID, val)?;
   88     93   
        }
   89     94   
        if let Some(ref val) = self.bucket {
   90     95   
            ser.write_string(&DELETEBUCKETPOLICYINPUT_MEMBER_BUCKET, val)?;
   91     96   
        }
   92     97   
        Ok(())
   93     98   
    }
   94     99   
}
   95    100   
impl DeleteBucketPolicyInput {
   96    101   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   97         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   98         -
        deserializer: &mut D,
         102  +
    pub fn deserialize(
         103  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   99    104   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  100    105   
        #[allow(unused_variables, unused_mut)]
  101    106   
        let mut builder = Self::builder();
  102    107   
        #[allow(
  103    108   
            unused_variables,
  104    109   
            unreachable_code,
  105    110   
            clippy::single_match,
  106    111   
            clippy::match_single_binding,
  107    112   
            clippy::diverging_sub_expression
  108    113   
        )]
  109         -
        deserializer.read_struct(&DELETEBUCKETPOLICYINPUT_SCHEMA, (), |_, member, deser| {
         114  +
        deserializer.read_struct(&DELETEBUCKETPOLICYINPUT_SCHEMA, &mut |member, deser| {
  110    115   
            match member.member_index() {
  111    116   
                Some(0) => {
  112    117   
                    builder.account_id = Some(deser.read_string(member)?);
  113    118   
                }
  114    119   
                Some(1) => {
  115    120   
                    builder.bucket = Some(deser.read_string(member)?);
  116    121   
                }
  117    122   
                _ => {}
  118    123   
            }
  119    124   
            Ok(())
  120    125   
        })?;
         126  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         127  +
        builder.bucket = builder.bucket.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 DeleteBucketPolicyInput {
         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-account-id") {
         146  +
            builder.account_id = 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(&DELETEBUCKETPOLICYINPUT_SCHEMA, &mut |member, deser| {
         156  +
            match member.member_index() {
         157  +
                Some(0) => { /* read from headers above */ }
         158  +
                Some(1) => {
         159  +
                    builder.bucket = Some(deser.read_string(member)?);
         160  +
                }
         161  +
                _ => {}
         162  +
            }
         163  +
            Ok(())
         164  +
        })?;
  121    165   
        builder
  122    166   
            .build()
  123    167   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  124    168   
    }
  125    169   
}
  126    170   
impl DeleteBucketPolicyInput {
  127    171   
    /// Creates a new builder-style object to manufacture [`DeleteBucketPolicyInput`](crate::operation::delete_bucket_policy::DeleteBucketPolicyInput).
  128    172   
    pub fn builder() -> crate::operation::delete_bucket_policy::builders::DeleteBucketPolicyInputBuilder {
  129    173   
        crate::operation::delete_bucket_policy::builders::DeleteBucketPolicyInputBuilder::default()
  130    174   
    }

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

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

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

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

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

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

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

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

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

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

@@ -25,25 +150,194 @@
   45     45   
    "com.amazonaws.s3control.synthetic",
   46     46   
    "DeleteBucketTaggingInput",
   47     47   
);
   48     48   
static DELETEBUCKETTAGGINGINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   49     49   
    ::aws_smithy_schema::ShapeId::from_static(
   50     50   
        "com.amazonaws.s3control.synthetic#DeleteBucketTaggingInput$AccountId",
   51     51   
        "com.amazonaws.s3control.synthetic",
   52     52   
        "DeleteBucketTaggingInput",
   53     53   
    ),
   54     54   
    ::aws_smithy_schema::ShapeType::String,
   55         -
    "account_id",
          55  +
    "AccountId",
   56     56   
    0,
   57     57   
)
   58     58   
.with_host_label()
   59     59   
.with_http_header("x-amz-account-id");
   60     60   
static DELETEBUCKETTAGGINGINPUT_MEMBER_BUCKET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   61     61   
    ::aws_smithy_schema::ShapeId::from_static(
   62     62   
        "com.amazonaws.s3control.synthetic#DeleteBucketTaggingInput$Bucket",
   63     63   
        "com.amazonaws.s3control.synthetic",
   64     64   
        "DeleteBucketTaggingInput",
   65     65   
    ),
   66     66   
    ::aws_smithy_schema::ShapeType::String,
   67         -
    "bucket",
          67  +
    "Bucket",
   68     68   
    1,
   69     69   
)
   70     70   
.with_http_label();
   71     71   
static DELETEBUCKETTAGGINGINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   72     72   
    DELETEBUCKETTAGGINGINPUT_SCHEMA_ID,
   73     73   
    ::aws_smithy_schema::ShapeType::Structure,
   74     74   
    &[&DELETEBUCKETTAGGINGINPUT_MEMBER_ACCOUNT_ID, &DELETEBUCKETTAGGINGINPUT_MEMBER_BUCKET],
   75         -
);
          75  +
)
          76  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          77  +
    "DELETE",
          78  +
    "/v20180820/bucket/{Bucket}/tagging",
          79  +
    Some(204),
          80  +
));
   76     81   
impl DeleteBucketTaggingInput {
   77     82   
    /// The schema for this shape.
   78     83   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEBUCKETTAGGINGINPUT_SCHEMA;
   79     84   
}
   80     85   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteBucketTaggingInput {
   81     86   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   82     87   
    fn serialize_members(
   83     88   
        &self,
   84     89   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   85     90   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   86     91   
        if let Some(ref val) = self.account_id {
   87     92   
            ser.write_string(&DELETEBUCKETTAGGINGINPUT_MEMBER_ACCOUNT_ID, val)?;
   88     93   
        }
   89     94   
        if let Some(ref val) = self.bucket {
   90     95   
            ser.write_string(&DELETEBUCKETTAGGINGINPUT_MEMBER_BUCKET, val)?;
   91     96   
        }
   92     97   
        Ok(())
   93     98   
    }
   94     99   
}
   95    100   
impl DeleteBucketTaggingInput {
   96    101   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   97         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   98         -
        deserializer: &mut D,
         102  +
    pub fn deserialize(
         103  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   99    104   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  100    105   
        #[allow(unused_variables, unused_mut)]
  101    106   
        let mut builder = Self::builder();
  102    107   
        #[allow(
  103    108   
            unused_variables,
  104    109   
            unreachable_code,
  105    110   
            clippy::single_match,
  106    111   
            clippy::match_single_binding,
  107    112   
            clippy::diverging_sub_expression
  108    113   
        )]
  109         -
        deserializer.read_struct(&DELETEBUCKETTAGGINGINPUT_SCHEMA, (), |_, member, deser| {
         114  +
        deserializer.read_struct(&DELETEBUCKETTAGGINGINPUT_SCHEMA, &mut |member, deser| {
  110    115   
            match member.member_index() {
  111    116   
                Some(0) => {
  112    117   
                    builder.account_id = Some(deser.read_string(member)?);
  113    118   
                }
  114    119   
                Some(1) => {
  115    120   
                    builder.bucket = Some(deser.read_string(member)?);
  116    121   
                }
  117    122   
                _ => {}
  118    123   
            }
  119    124   
            Ok(())
  120    125   
        })?;
         126  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         127  +
        builder.bucket = builder.bucket.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 DeleteBucketTaggingInput {
         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-account-id") {
         146  +
            builder.account_id = 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(&DELETEBUCKETTAGGINGINPUT_SCHEMA, &mut |member, deser| {
         156  +
            match member.member_index() {
         157  +
                Some(0) => { /* read from headers above */ }
         158  +
                Some(1) => {
         159  +
                    builder.bucket = Some(deser.read_string(member)?);
         160  +
                }
         161  +
                _ => {}
         162  +
            }
         163  +
            Ok(())
         164  +
        })?;
  121    165   
        builder
  122    166   
            .build()
  123    167   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  124    168   
    }
  125    169   
}
  126    170   
impl DeleteBucketTaggingInput {
  127    171   
    /// Creates a new builder-style object to manufacture [`DeleteBucketTaggingInput`](crate::operation::delete_bucket_tagging::DeleteBucketTaggingInput).
  128    172   
    pub fn builder() -> crate::operation::delete_bucket_tagging::builders::DeleteBucketTaggingInputBuilder {
  129    173   
        crate::operation::delete_bucket_tagging::builders::DeleteBucketTaggingInputBuilder::default()
  130    174   
    }

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

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

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