AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_object_legal_hold.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 `GetObjectLegalHold`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetObjectLegalHold;
    6      6   
impl GetObjectLegalHold {
    7      7   
    /// Creates a new `GetObjectLegalHold`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_object_legal_hold::GetObjectLegalHoldInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_object_legal_hold::GetObjectLegalHoldOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::get_object_legal_hold::GetObjectLegalHoldInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_object_legal_hold::GetObjectLegalHoldOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_object_legal_hold::GetObjectLegalHoldError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -113,117 +175,180 @@
  133    137   
                                            ::std::borrow::Cow::Owned(transient_errors)
  134    138   
                                            }).build());
  135    139   
  136    140   
        ::std::borrow::Cow::Owned(rcb)
  137    141   
    }
  138    142   
}
  139    143   
  140    144   
#[derive(Debug)]
  141    145   
struct GetObjectLegalHoldResponseDeserializer;
  142    146   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetObjectLegalHoldResponseDeserializer {
  143         -
    fn deserialize_nonstreaming(
         147  +
    fn deserialize_nonstreaming_with_config(
  144    148   
        &self,
  145    149   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         150  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  146    151   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  147    152   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  148    153   
        let headers = response.headers();
  149    154   
        let body = response.body().bytes().expect("body loaded");
  150    155   
        #[allow(unused_mut)]
  151    156   
        let mut force_error = false;
  152    157   
        ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
  153    158   
        if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
  154    159   
            force_error = true;
  155    160   
        }

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

@@ -27,27 +208,258 @@
   47     47   
    "com.amazonaws.s3.synthetic",
   48     48   
    "GetObjectLegalHoldInput",
   49     49   
);
   50     50   
static GETOBJECTLEGALHOLDINPUT_MEMBER_BUCKET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   51     51   
    ::aws_smithy_schema::ShapeId::from_static(
   52     52   
        "com.amazonaws.s3.synthetic#GetObjectLegalHoldInput$Bucket",
   53     53   
        "com.amazonaws.s3.synthetic",
   54     54   
        "GetObjectLegalHoldInput",
   55     55   
    ),
   56     56   
    ::aws_smithy_schema::ShapeType::String,
   57         -
    "bucket",
          57  +
    "Bucket",
   58     58   
    0,
   59     59   
)
   60     60   
.with_http_label();
   61     61   
static GETOBJECTLEGALHOLDINPUT_MEMBER_KEY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   62     62   
    ::aws_smithy_schema::ShapeId::from_static(
   63     63   
        "com.amazonaws.s3.synthetic#GetObjectLegalHoldInput$Key",
   64     64   
        "com.amazonaws.s3.synthetic",
   65     65   
        "GetObjectLegalHoldInput",
   66     66   
    ),
   67     67   
    ::aws_smithy_schema::ShapeType::String,
   68         -
    "key",
          68  +
    "Key",
   69     69   
    1,
   70     70   
)
   71     71   
.with_http_label();
   72     72   
static GETOBJECTLEGALHOLDINPUT_MEMBER_VERSION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   73     73   
    ::aws_smithy_schema::ShapeId::from_static(
   74     74   
        "com.amazonaws.s3.synthetic#GetObjectLegalHoldInput$VersionId",
   75     75   
        "com.amazonaws.s3.synthetic",
   76     76   
        "GetObjectLegalHoldInput",
   77     77   
    ),
   78     78   
    ::aws_smithy_schema::ShapeType::String,
   79         -
    "version_id",
          79  +
    "VersionId",
   80     80   
    2,
   81     81   
)
   82     82   
.with_http_query("versionId");
   83     83   
static GETOBJECTLEGALHOLDINPUT_MEMBER_REQUEST_PAYER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   84     84   
    ::aws_smithy_schema::ShapeId::from_static(
   85     85   
        "com.amazonaws.s3.synthetic#GetObjectLegalHoldInput$RequestPayer",
   86     86   
        "com.amazonaws.s3.synthetic",
   87     87   
        "GetObjectLegalHoldInput",
   88     88   
    ),
   89     89   
    ::aws_smithy_schema::ShapeType::String,
   90         -
    "request_payer",
          90  +
    "RequestPayer",
   91     91   
    3,
   92     92   
)
   93     93   
.with_http_header("x-amz-request-payer");
   94     94   
static GETOBJECTLEGALHOLDINPUT_MEMBER_EXPECTED_BUCKET_OWNER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.s3.synthetic#GetObjectLegalHoldInput$ExpectedBucketOwner",
   97     97   
        "com.amazonaws.s3.synthetic",
   98     98   
        "GetObjectLegalHoldInput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::String,
  101         -
    "expected_bucket_owner",
         101  +
    "ExpectedBucketOwner",
  102    102   
    4,
  103    103   
)
  104    104   
.with_http_header("x-amz-expected-bucket-owner");
  105    105   
static GETOBJECTLEGALHOLDINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  106    106   
    GETOBJECTLEGALHOLDINPUT_SCHEMA_ID,
  107    107   
    ::aws_smithy_schema::ShapeType::Structure,
  108    108   
    &[
  109    109   
        &GETOBJECTLEGALHOLDINPUT_MEMBER_BUCKET,
  110    110   
        &GETOBJECTLEGALHOLDINPUT_MEMBER_KEY,
  111    111   
        &GETOBJECTLEGALHOLDINPUT_MEMBER_VERSION_ID,
  112    112   
        &GETOBJECTLEGALHOLDINPUT_MEMBER_REQUEST_PAYER,
  113    113   
        &GETOBJECTLEGALHOLDINPUT_MEMBER_EXPECTED_BUCKET_OWNER,
  114    114   
    ],
  115         -
);
         115  +
)
         116  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("GET", "/{Key+}?legal-hold", None));
  116    117   
impl GetObjectLegalHoldInput {
  117    118   
    /// The schema for this shape.
  118    119   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETOBJECTLEGALHOLDINPUT_SCHEMA;
  119    120   
}
  120    121   
impl ::aws_smithy_schema::serde::SerializableStruct for GetObjectLegalHoldInput {
  121    122   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  122    123   
    fn serialize_members(
  123    124   
        &self,
  124    125   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  125    126   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  126    127   
        if let Some(ref val) = self.bucket {
  127    128   
            ser.write_string(&GETOBJECTLEGALHOLDINPUT_MEMBER_BUCKET, val)?;
  128    129   
        }
  129    130   
        if let Some(ref val) = self.key {
  130    131   
            ser.write_string(&GETOBJECTLEGALHOLDINPUT_MEMBER_KEY, val)?;
  131    132   
        }
  132    133   
        if let Some(ref val) = self.version_id {
  133    134   
            ser.write_string(&GETOBJECTLEGALHOLDINPUT_MEMBER_VERSION_ID, val)?;
  134    135   
        }
  135    136   
        if let Some(ref val) = self.request_payer {
  136    137   
            ser.write_string(&GETOBJECTLEGALHOLDINPUT_MEMBER_REQUEST_PAYER, val.as_str())?;
  137    138   
        }
  138    139   
        if let Some(ref val) = self.expected_bucket_owner {
  139    140   
            ser.write_string(&GETOBJECTLEGALHOLDINPUT_MEMBER_EXPECTED_BUCKET_OWNER, val)?;
  140    141   
        }
  141    142   
        Ok(())
  142    143   
    }
  143    144   
}
  144    145   
impl GetObjectLegalHoldInput {
  145    146   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  146         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  147         -
        deserializer: &mut D,
         147  +
    pub fn deserialize(
         148  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  148    149   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  149    150   
        #[allow(unused_variables, unused_mut)]
  150    151   
        let mut builder = Self::builder();
  151    152   
        #[allow(
  152    153   
            unused_variables,
  153    154   
            unreachable_code,
  154    155   
            clippy::single_match,
  155    156   
            clippy::match_single_binding,
  156    157   
            clippy::diverging_sub_expression
  157    158   
        )]
  158         -
        deserializer.read_struct(&GETOBJECTLEGALHOLDINPUT_SCHEMA, (), |_, member, deser| {
         159  +
        deserializer.read_struct(&GETOBJECTLEGALHOLDINPUT_SCHEMA, &mut |member, deser| {
  159    160   
            match member.member_index() {
  160    161   
                Some(0) => {
  161    162   
                    builder.bucket = Some(deser.read_string(member)?);
  162    163   
                }
  163    164   
                Some(1) => {
  164    165   
                    builder.key = Some(deser.read_string(member)?);
  165    166   
                }
  166    167   
                Some(2) => {
  167    168   
                    builder.version_id = Some(deser.read_string(member)?);
  168    169   
                }
  169    170   
                Some(3) => {
  170    171   
                    builder.request_payer = Some(crate::types::RequestPayer::from(deser.read_string(member)?.as_str()));
  171    172   
                }
  172    173   
                Some(4) => {
  173    174   
                    builder.expected_bucket_owner = Some(deser.read_string(member)?);
  174    175   
                }
  175    176   
                _ => {}
  176    177   
            }
  177    178   
            Ok(())
  178    179   
        })?;
         180  +
        builder.bucket = builder.bucket.or(Some(String::new()));
         181  +
        builder.key = builder.key.or(Some(String::new()));
         182  +
        builder
         183  +
            .build()
         184  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         185  +
    }
         186  +
}
         187  +
impl GetObjectLegalHoldInput {
         188  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         189  +
    /// Header-bound members are read directly from headers, avoiding runtime
         190  +
    /// member iteration overhead. Body members are read via the deserializer.
         191  +
    pub fn deserialize_with_response(
         192  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         193  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         194  +
        _status: u16,
         195  +
        _body: &[u8],
         196  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         197  +
        #[allow(unused_variables, unused_mut)]
         198  +
        let mut builder = Self::builder();
         199  +
        if let Some(val) = headers.get("x-amz-request-payer") {
         200  +
            builder.request_payer = Some(crate::types::RequestPayer::from(val));
         201  +
        }
         202  +
        if let Some(val) = headers.get("x-amz-expected-bucket-owner") {
         203  +
            builder.expected_bucket_owner = Some(val.to_string());
         204  +
        }
         205  +
        #[allow(
         206  +
            unused_variables,
         207  +
            unreachable_code,
         208  +
            clippy::single_match,
         209  +
            clippy::match_single_binding,
         210  +
            clippy::diverging_sub_expression
         211  +
        )]
         212  +
        deserializer.read_struct(&GETOBJECTLEGALHOLDINPUT_SCHEMA, &mut |member, deser| {
         213  +
            match member.member_index() {
         214  +
                Some(0) => {
         215  +
                    builder.bucket = Some(deser.read_string(member)?);
         216  +
                }
         217  +
                Some(1) => {
         218  +
                    builder.key = Some(deser.read_string(member)?);
         219  +
                }
         220  +
                Some(2) => {
         221  +
                    builder.version_id = Some(deser.read_string(member)?);
         222  +
                }
         223  +
                Some(3) => { /* read from headers above */ }
         224  +
                Some(4) => { /* read from headers above */ }
         225  +
                _ => {}
         226  +
            }
         227  +
            Ok(())
         228  +
        })?;
  179    229   
        builder
  180    230   
            .build()
  181    231   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  182    232   
    }
  183    233   
}
  184    234   
impl GetObjectLegalHoldInput {
  185    235   
    /// Creates a new builder-style object to manufacture [`GetObjectLegalHoldInput`](crate::operation::get_object_legal_hold::GetObjectLegalHoldInput).
  186    236   
    pub fn builder() -> crate::operation::get_object_legal_hold::builders::GetObjectLegalHoldInputBuilder {
  187    237   
        crate::operation::get_object_legal_hold::builders::GetObjectLegalHoldInputBuilder::default()
  188    238   
    }

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

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

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

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_object_retention.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 `GetObjectRetention`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetObjectRetention;
    6      6   
impl GetObjectRetention {
    7      7   
    /// Creates a new `GetObjectRetention`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_object_retention::GetObjectRetentionInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_object_retention::GetObjectRetentionOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::get_object_retention::GetObjectRetentionInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_object_retention::GetObjectRetentionOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_object_retention::GetObjectRetentionError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -113,117 +175,180 @@
  133    137   
                                            ::std::borrow::Cow::Owned(transient_errors)
  134    138   
                                            }).build());
  135    139   
  136    140   
        ::std::borrow::Cow::Owned(rcb)
  137    141   
    }
  138    142   
}
  139    143   
  140    144   
#[derive(Debug)]
  141    145   
struct GetObjectRetentionResponseDeserializer;
  142    146   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetObjectRetentionResponseDeserializer {
  143         -
    fn deserialize_nonstreaming(
         147  +
    fn deserialize_nonstreaming_with_config(
  144    148   
        &self,
  145    149   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         150  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  146    151   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  147    152   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  148    153   
        let headers = response.headers();
  149    154   
        let body = response.body().bytes().expect("body loaded");
  150    155   
        #[allow(unused_mut)]
  151    156   
        let mut force_error = false;
  152    157   
        ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
  153    158   
        if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
  154    159   
            force_error = true;
  155    160   
        }

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

@@ -27,27 +208,258 @@
   47     47   
    "com.amazonaws.s3.synthetic",
   48     48   
    "GetObjectRetentionInput",
   49     49   
);
   50     50   
static GETOBJECTRETENTIONINPUT_MEMBER_BUCKET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   51     51   
    ::aws_smithy_schema::ShapeId::from_static(
   52     52   
        "com.amazonaws.s3.synthetic#GetObjectRetentionInput$Bucket",
   53     53   
        "com.amazonaws.s3.synthetic",
   54     54   
        "GetObjectRetentionInput",
   55     55   
    ),
   56     56   
    ::aws_smithy_schema::ShapeType::String,
   57         -
    "bucket",
          57  +
    "Bucket",
   58     58   
    0,
   59     59   
)
   60     60   
.with_http_label();
   61     61   
static GETOBJECTRETENTIONINPUT_MEMBER_KEY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   62     62   
    ::aws_smithy_schema::ShapeId::from_static(
   63     63   
        "com.amazonaws.s3.synthetic#GetObjectRetentionInput$Key",
   64     64   
        "com.amazonaws.s3.synthetic",
   65     65   
        "GetObjectRetentionInput",
   66     66   
    ),
   67     67   
    ::aws_smithy_schema::ShapeType::String,
   68         -
    "key",
          68  +
    "Key",
   69     69   
    1,
   70     70   
)
   71     71   
.with_http_label();
   72     72   
static GETOBJECTRETENTIONINPUT_MEMBER_VERSION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   73     73   
    ::aws_smithy_schema::ShapeId::from_static(
   74     74   
        "com.amazonaws.s3.synthetic#GetObjectRetentionInput$VersionId",
   75     75   
        "com.amazonaws.s3.synthetic",
   76     76   
        "GetObjectRetentionInput",
   77     77   
    ),
   78     78   
    ::aws_smithy_schema::ShapeType::String,
   79         -
    "version_id",
          79  +
    "VersionId",
   80     80   
    2,
   81     81   
)
   82     82   
.with_http_query("versionId");
   83     83   
static GETOBJECTRETENTIONINPUT_MEMBER_REQUEST_PAYER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   84     84   
    ::aws_smithy_schema::ShapeId::from_static(
   85     85   
        "com.amazonaws.s3.synthetic#GetObjectRetentionInput$RequestPayer",
   86     86   
        "com.amazonaws.s3.synthetic",
   87     87   
        "GetObjectRetentionInput",
   88     88   
    ),
   89     89   
    ::aws_smithy_schema::ShapeType::String,
   90         -
    "request_payer",
          90  +
    "RequestPayer",
   91     91   
    3,
   92     92   
)
   93     93   
.with_http_header("x-amz-request-payer");
   94     94   
static GETOBJECTRETENTIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.s3.synthetic#GetObjectRetentionInput$ExpectedBucketOwner",
   97     97   
        "com.amazonaws.s3.synthetic",
   98     98   
        "GetObjectRetentionInput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::String,
  101         -
    "expected_bucket_owner",
         101  +
    "ExpectedBucketOwner",
  102    102   
    4,
  103    103   
)
  104    104   
.with_http_header("x-amz-expected-bucket-owner");
  105    105   
static GETOBJECTRETENTIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  106    106   
    GETOBJECTRETENTIONINPUT_SCHEMA_ID,
  107    107   
    ::aws_smithy_schema::ShapeType::Structure,
  108    108   
    &[
  109    109   
        &GETOBJECTRETENTIONINPUT_MEMBER_BUCKET,
  110    110   
        &GETOBJECTRETENTIONINPUT_MEMBER_KEY,
  111    111   
        &GETOBJECTRETENTIONINPUT_MEMBER_VERSION_ID,
  112    112   
        &GETOBJECTRETENTIONINPUT_MEMBER_REQUEST_PAYER,
  113    113   
        &GETOBJECTRETENTIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER,
  114    114   
    ],
  115         -
);
         115  +
)
         116  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("GET", "/{Key+}?retention", None));
  116    117   
impl GetObjectRetentionInput {
  117    118   
    /// The schema for this shape.
  118    119   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETOBJECTRETENTIONINPUT_SCHEMA;
  119    120   
}
  120    121   
impl ::aws_smithy_schema::serde::SerializableStruct for GetObjectRetentionInput {
  121    122   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  122    123   
    fn serialize_members(
  123    124   
        &self,
  124    125   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  125    126   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  126    127   
        if let Some(ref val) = self.bucket {
  127    128   
            ser.write_string(&GETOBJECTRETENTIONINPUT_MEMBER_BUCKET, val)?;
  128    129   
        }
  129    130   
        if let Some(ref val) = self.key {
  130    131   
            ser.write_string(&GETOBJECTRETENTIONINPUT_MEMBER_KEY, val)?;
  131    132   
        }
  132    133   
        if let Some(ref val) = self.version_id {
  133    134   
            ser.write_string(&GETOBJECTRETENTIONINPUT_MEMBER_VERSION_ID, val)?;
  134    135   
        }
  135    136   
        if let Some(ref val) = self.request_payer {
  136    137   
            ser.write_string(&GETOBJECTRETENTIONINPUT_MEMBER_REQUEST_PAYER, val.as_str())?;
  137    138   
        }
  138    139   
        if let Some(ref val) = self.expected_bucket_owner {
  139    140   
            ser.write_string(&GETOBJECTRETENTIONINPUT_MEMBER_EXPECTED_BUCKET_OWNER, val)?;
  140    141   
        }
  141    142   
        Ok(())
  142    143   
    }
  143    144   
}
  144    145   
impl GetObjectRetentionInput {
  145    146   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  146         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  147         -
        deserializer: &mut D,
         147  +
    pub fn deserialize(
         148  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  148    149   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  149    150   
        #[allow(unused_variables, unused_mut)]
  150    151   
        let mut builder = Self::builder();
  151    152   
        #[allow(
  152    153   
            unused_variables,
  153    154   
            unreachable_code,
  154    155   
            clippy::single_match,
  155    156   
            clippy::match_single_binding,
  156    157   
            clippy::diverging_sub_expression
  157    158   
        )]
  158         -
        deserializer.read_struct(&GETOBJECTRETENTIONINPUT_SCHEMA, (), |_, member, deser| {
         159  +
        deserializer.read_struct(&GETOBJECTRETENTIONINPUT_SCHEMA, &mut |member, deser| {
  159    160   
            match member.member_index() {
  160    161   
                Some(0) => {
  161    162   
                    builder.bucket = Some(deser.read_string(member)?);
  162    163   
                }
  163    164   
                Some(1) => {
  164    165   
                    builder.key = Some(deser.read_string(member)?);
  165    166   
                }
  166    167   
                Some(2) => {
  167    168   
                    builder.version_id = Some(deser.read_string(member)?);
  168    169   
                }
  169    170   
                Some(3) => {
  170    171   
                    builder.request_payer = Some(crate::types::RequestPayer::from(deser.read_string(member)?.as_str()));
  171    172   
                }
  172    173   
                Some(4) => {
  173    174   
                    builder.expected_bucket_owner = Some(deser.read_string(member)?);
  174    175   
                }
  175    176   
                _ => {}
  176    177   
            }
  177    178   
            Ok(())
  178    179   
        })?;
         180  +
        builder.bucket = builder.bucket.or(Some(String::new()));
         181  +
        builder.key = builder.key.or(Some(String::new()));
         182  +
        builder
         183  +
            .build()
         184  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         185  +
    }
         186  +
}
         187  +
impl GetObjectRetentionInput {
         188  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         189  +
    /// Header-bound members are read directly from headers, avoiding runtime
         190  +
    /// member iteration overhead. Body members are read via the deserializer.
         191  +
    pub fn deserialize_with_response(
         192  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         193  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         194  +
        _status: u16,
         195  +
        _body: &[u8],
         196  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         197  +
        #[allow(unused_variables, unused_mut)]
         198  +
        let mut builder = Self::builder();
         199  +
        if let Some(val) = headers.get("x-amz-request-payer") {
         200  +
            builder.request_payer = Some(crate::types::RequestPayer::from(val));
         201  +
        }
         202  +
        if let Some(val) = headers.get("x-amz-expected-bucket-owner") {
         203  +
            builder.expected_bucket_owner = Some(val.to_string());
         204  +
        }
         205  +
        #[allow(
         206  +
            unused_variables,
         207  +
            unreachable_code,
         208  +
            clippy::single_match,
         209  +
            clippy::match_single_binding,
         210  +
            clippy::diverging_sub_expression
         211  +
        )]
         212  +
        deserializer.read_struct(&GETOBJECTRETENTIONINPUT_SCHEMA, &mut |member, deser| {
         213  +
            match member.member_index() {
         214  +
                Some(0) => {
         215  +
                    builder.bucket = Some(deser.read_string(member)?);
         216  +
                }
         217  +
                Some(1) => {
         218  +
                    builder.key = Some(deser.read_string(member)?);
         219  +
                }
         220  +
                Some(2) => {
         221  +
                    builder.version_id = Some(deser.read_string(member)?);
         222  +
                }
         223  +
                Some(3) => { /* read from headers above */ }
         224  +
                Some(4) => { /* read from headers above */ }
         225  +
                _ => {}
         226  +
            }
         227  +
            Ok(())
         228  +
        })?;
  179    229   
        builder
  180    230   
            .build()
  181    231   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  182    232   
    }
  183    233   
}
  184    234   
impl GetObjectRetentionInput {
  185    235   
    /// Creates a new builder-style object to manufacture [`GetObjectRetentionInput`](crate::operation::get_object_retention::GetObjectRetentionInput).
  186    236   
    pub fn builder() -> crate::operation::get_object_retention::builders::GetObjectRetentionInputBuilder {
  187    237   
        crate::operation::get_object_retention::builders::GetObjectRetentionInputBuilder::default()
  188    238   
    }

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

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_object_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 `GetObjectTagging`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetObjectTagging;
    6      6   
impl GetObjectTagging {
    7      7   
    /// Creates a new `GetObjectTagging`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_object_tagging::GetObjectTaggingInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_object_tagging::GetObjectTaggingOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::get_object_tagging::GetObjectTaggingInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_object_tagging::GetObjectTaggingOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_object_tagging::GetObjectTaggingError,
   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 GetObjectTaggingResponseDeserializer;
  150    154   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetObjectTaggingResponseDeserializer {
  151         -
    fn deserialize_nonstreaming(
         155  +
    fn deserialize_nonstreaming_with_config(
  152    156   
        &self,
  153    157   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         158  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  154    159   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  155    160   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  156    161   
        let headers = response.headers();
  157    162   
        let body = response.body().bytes().expect("body loaded");
  158    163   
        #[allow(unused_mut)]
  159    164   
        let mut force_error = false;
  160    165   
        ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
  161    166   
        if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
  162    167   
            force_error = true;
  163    168   
        }

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

@@ -29,29 +210,260 @@
   49     49   
    "com.amazonaws.s3.synthetic",
   50     50   
    "GetObjectTaggingInput",
   51     51   
);
   52     52   
static GETOBJECTTAGGINGINPUT_MEMBER_BUCKET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   53     53   
    ::aws_smithy_schema::ShapeId::from_static(
   54     54   
        "com.amazonaws.s3.synthetic#GetObjectTaggingInput$Bucket",
   55     55   
        "com.amazonaws.s3.synthetic",
   56     56   
        "GetObjectTaggingInput",
   57     57   
    ),
   58     58   
    ::aws_smithy_schema::ShapeType::String,
   59         -
    "bucket",
          59  +
    "Bucket",
   60     60   
    0,
   61     61   
)
   62     62   
.with_http_label();
   63     63   
static GETOBJECTTAGGINGINPUT_MEMBER_KEY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   64     64   
    ::aws_smithy_schema::ShapeId::from_static(
   65     65   
        "com.amazonaws.s3.synthetic#GetObjectTaggingInput$Key",
   66     66   
        "com.amazonaws.s3.synthetic",
   67     67   
        "GetObjectTaggingInput",
   68     68   
    ),
   69     69   
    ::aws_smithy_schema::ShapeType::String,
   70         -
    "key",
          70  +
    "Key",
   71     71   
    1,
   72     72   
)
   73     73   
.with_http_label();
   74     74   
static GETOBJECTTAGGINGINPUT_MEMBER_VERSION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   75     75   
    ::aws_smithy_schema::ShapeId::from_static(
   76     76   
        "com.amazonaws.s3.synthetic#GetObjectTaggingInput$VersionId",
   77     77   
        "com.amazonaws.s3.synthetic",
   78     78   
        "GetObjectTaggingInput",
   79     79   
    ),
   80     80   
    ::aws_smithy_schema::ShapeType::String,
   81         -
    "version_id",
          81  +
    "VersionId",
   82     82   
    2,
   83     83   
)
   84     84   
.with_http_query("versionId");
   85     85   
static GETOBJECTTAGGINGINPUT_MEMBER_EXPECTED_BUCKET_OWNER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   86     86   
    ::aws_smithy_schema::ShapeId::from_static(
   87     87   
        "com.amazonaws.s3.synthetic#GetObjectTaggingInput$ExpectedBucketOwner",
   88     88   
        "com.amazonaws.s3.synthetic",
   89     89   
        "GetObjectTaggingInput",
   90     90   
    ),
   91     91   
    ::aws_smithy_schema::ShapeType::String,
   92         -
    "expected_bucket_owner",
          92  +
    "ExpectedBucketOwner",
   93     93   
    3,
   94     94   
)
   95     95   
.with_http_header("x-amz-expected-bucket-owner");
   96     96   
static GETOBJECTTAGGINGINPUT_MEMBER_REQUEST_PAYER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   97     97   
    ::aws_smithy_schema::ShapeId::from_static(
   98     98   
        "com.amazonaws.s3.synthetic#GetObjectTaggingInput$RequestPayer",
   99     99   
        "com.amazonaws.s3.synthetic",
  100    100   
        "GetObjectTaggingInput",
  101    101   
    ),
  102    102   
    ::aws_smithy_schema::ShapeType::String,
  103         -
    "request_payer",
         103  +
    "RequestPayer",
  104    104   
    4,
  105    105   
)
  106    106   
.with_http_header("x-amz-request-payer");
  107    107   
static GETOBJECTTAGGINGINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  108    108   
    GETOBJECTTAGGINGINPUT_SCHEMA_ID,
  109    109   
    ::aws_smithy_schema::ShapeType::Structure,
  110    110   
    &[
  111    111   
        &GETOBJECTTAGGINGINPUT_MEMBER_BUCKET,
  112    112   
        &GETOBJECTTAGGINGINPUT_MEMBER_KEY,
  113    113   
        &GETOBJECTTAGGINGINPUT_MEMBER_VERSION_ID,
  114    114   
        &GETOBJECTTAGGINGINPUT_MEMBER_EXPECTED_BUCKET_OWNER,
  115    115   
        &GETOBJECTTAGGINGINPUT_MEMBER_REQUEST_PAYER,
  116    116   
    ],
  117         -
);
         117  +
)
         118  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("GET", "/{Key+}?tagging", None));
  118    119   
impl GetObjectTaggingInput {
  119    120   
    /// The schema for this shape.
  120    121   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETOBJECTTAGGINGINPUT_SCHEMA;
  121    122   
}
  122    123   
impl ::aws_smithy_schema::serde::SerializableStruct for GetObjectTaggingInput {
  123    124   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  124    125   
    fn serialize_members(
  125    126   
        &self,
  126    127   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  127    128   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  128    129   
        if let Some(ref val) = self.bucket {
  129    130   
            ser.write_string(&GETOBJECTTAGGINGINPUT_MEMBER_BUCKET, val)?;
  130    131   
        }
  131    132   
        if let Some(ref val) = self.key {
  132    133   
            ser.write_string(&GETOBJECTTAGGINGINPUT_MEMBER_KEY, val)?;
  133    134   
        }
  134    135   
        if let Some(ref val) = self.version_id {
  135    136   
            ser.write_string(&GETOBJECTTAGGINGINPUT_MEMBER_VERSION_ID, val)?;
  136    137   
        }
  137    138   
        if let Some(ref val) = self.expected_bucket_owner {
  138    139   
            ser.write_string(&GETOBJECTTAGGINGINPUT_MEMBER_EXPECTED_BUCKET_OWNER, val)?;
  139    140   
        }
  140    141   
        if let Some(ref val) = self.request_payer {
  141    142   
            ser.write_string(&GETOBJECTTAGGINGINPUT_MEMBER_REQUEST_PAYER, val.as_str())?;
  142    143   
        }
  143    144   
        Ok(())
  144    145   
    }
  145    146   
}
  146    147   
impl GetObjectTaggingInput {
  147    148   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  148         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  149         -
        deserializer: &mut D,
         149  +
    pub fn deserialize(
         150  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  150    151   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  151    152   
        #[allow(unused_variables, unused_mut)]
  152    153   
        let mut builder = Self::builder();
  153    154   
        #[allow(
  154    155   
            unused_variables,
  155    156   
            unreachable_code,
  156    157   
            clippy::single_match,
  157    158   
            clippy::match_single_binding,
  158    159   
            clippy::diverging_sub_expression
  159    160   
        )]
  160         -
        deserializer.read_struct(&GETOBJECTTAGGINGINPUT_SCHEMA, (), |_, member, deser| {
         161  +
        deserializer.read_struct(&GETOBJECTTAGGINGINPUT_SCHEMA, &mut |member, deser| {
  161    162   
            match member.member_index() {
  162    163   
                Some(0) => {
  163    164   
                    builder.bucket = Some(deser.read_string(member)?);
  164    165   
                }
  165    166   
                Some(1) => {
  166    167   
                    builder.key = Some(deser.read_string(member)?);
  167    168   
                }
  168    169   
                Some(2) => {
  169    170   
                    builder.version_id = Some(deser.read_string(member)?);
  170    171   
                }
  171    172   
                Some(3) => {
  172    173   
                    builder.expected_bucket_owner = Some(deser.read_string(member)?);
  173    174   
                }
  174    175   
                Some(4) => {
  175    176   
                    builder.request_payer = Some(crate::types::RequestPayer::from(deser.read_string(member)?.as_str()));
  176    177   
                }
  177    178   
                _ => {}
  178    179   
            }
  179    180   
            Ok(())
  180    181   
        })?;
         182  +
        builder.bucket = builder.bucket.or(Some(String::new()));
         183  +
        builder.key = builder.key.or(Some(String::new()));
         184  +
        builder
         185  +
            .build()
         186  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         187  +
    }
         188  +
}
         189  +
impl GetObjectTaggingInput {
         190  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         191  +
    /// Header-bound members are read directly from headers, avoiding runtime
         192  +
    /// member iteration overhead. Body members are read via the deserializer.
         193  +
    pub fn deserialize_with_response(
         194  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         195  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         196  +
        _status: u16,
         197  +
        _body: &[u8],
         198  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         199  +
        #[allow(unused_variables, unused_mut)]
         200  +
        let mut builder = Self::builder();
         201  +
        if let Some(val) = headers.get("x-amz-expected-bucket-owner") {
         202  +
            builder.expected_bucket_owner = Some(val.to_string());
         203  +
        }
         204  +
        if let Some(val) = headers.get("x-amz-request-payer") {
         205  +
            builder.request_payer = Some(crate::types::RequestPayer::from(val));
         206  +
        }
         207  +
        #[allow(
         208  +
            unused_variables,
         209  +
            unreachable_code,
         210  +
            clippy::single_match,
         211  +
            clippy::match_single_binding,
         212  +
            clippy::diverging_sub_expression
         213  +
        )]
         214  +
        deserializer.read_struct(&GETOBJECTTAGGINGINPUT_SCHEMA, &mut |member, deser| {
         215  +
            match member.member_index() {
         216  +
                Some(0) => {
         217  +
                    builder.bucket = Some(deser.read_string(member)?);
         218  +
                }
         219  +
                Some(1) => {
         220  +
                    builder.key = Some(deser.read_string(member)?);
         221  +
                }
         222  +
                Some(2) => {
         223  +
                    builder.version_id = Some(deser.read_string(member)?);
         224  +
                }
         225  +
                Some(3) => { /* read from headers above */ }
         226  +
                Some(4) => { /* read from headers above */ }
         227  +
                _ => {}
         228  +
            }
         229  +
            Ok(())
         230  +
        })?;
  181    231   
        builder
  182    232   
            .build()
  183    233   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  184    234   
    }
  185    235   
}
  186    236   
impl GetObjectTaggingInput {
  187    237   
    /// Creates a new builder-style object to manufacture [`GetObjectTaggingInput`](crate::operation::get_object_tagging::GetObjectTaggingInput).
  188    238   
    pub fn builder() -> crate::operation::get_object_tagging::builders::GetObjectTaggingInputBuilder {
  189    239   
        crate::operation::get_object_tagging::builders::GetObjectTaggingInputBuilder::default()
  190    240   
    }

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

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_object_torrent.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 `GetObjectTorrent`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetObjectTorrent;
    6      6   
impl GetObjectTorrent {
    7      7   
    /// Creates a new `GetObjectTorrent`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_object_torrent::GetObjectTorrentInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_object_torrent::GetObjectTorrentOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::get_object_torrent::GetObjectTorrentInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_object_torrent::GetObjectTorrentOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_object_torrent::GetObjectTorrentError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -139,143 +201,206 @@
  159    163   
  160    164   
        // If this is an error, defer to the non-streaming parser
  161    165   
        if (!response.status().is_success() && response.status().as_u16() != 200) || force_error {
  162    166   
            return ::std::option::Option::None;
  163    167   
        }
  164    168   
        ::std::option::Option::Some(crate::protocol_serde::type_erase_result(
  165    169   
            crate::protocol_serde::shape_get_object_torrent::de_get_object_torrent_http_response(response),
  166    170   
        ))
  167    171   
    }
  168    172   
  169         -
    fn deserialize_nonstreaming(
         173  +
    fn deserialize_nonstreaming_with_config(
  170    174   
        &self,
  171    175   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         176  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  172    177   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  173    178   
        // For streaming operations, we only hit this case if its an error
  174    179   
        let body = response.body().bytes().expect("body loaded");
  175    180   
        crate::protocol_serde::type_erase_result(crate::protocol_serde::shape_get_object_torrent::de_get_object_torrent_http_error(
  176    181   
            response.status().as_u16(),
  177    182   
            response.headers(),
  178    183   
            body,
  179    184   
        ))
  180    185   
    }
  181    186   
}

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_public_access_block.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 `GetPublicAccessBlock`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetPublicAccessBlock;
    6      6   
impl GetPublicAccessBlock {
    7      7   
    /// Creates a new `GetPublicAccessBlock`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_public_access_block::GetPublicAccessBlockInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_public_access_block::GetPublicAccessBlockOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::get_public_access_block::GetPublicAccessBlockInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_public_access_block::GetPublicAccessBlockOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_public_access_block::GetPublicAccessBlockError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -116,120 +178,183 @@
  136    140   
                                            ::std::borrow::Cow::Owned(transient_errors)
  137    141   
                                            }).build());
  138    142   
  139    143   
        ::std::borrow::Cow::Owned(rcb)
  140    144   
    }
  141    145   
}
  142    146   
  143    147   
#[derive(Debug)]
  144    148   
struct GetPublicAccessBlockResponseDeserializer;
  145    149   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetPublicAccessBlockResponseDeserializer {
  146         -
    fn deserialize_nonstreaming(
         150  +
    fn deserialize_nonstreaming_with_config(
  147    151   
        &self,
  148    152   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         153  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  149    154   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  150    155   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  151    156   
        let headers = response.headers();
  152    157   
        let body = response.body().bytes().expect("body loaded");
  153    158   
        #[allow(unused_mut)]
  154    159   
        let mut force_error = false;
  155    160   
        ::tracing::debug!(extended_request_id = ?crate::s3_request_id::RequestIdExt::extended_request_id(response));
  156    161   
        if matches!(crate::rest_xml_unwrapped_errors::body_is_error(body), Ok(true)) {
  157    162   
            force_error = true;
  158    163   
        }