AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c (ignoring whitespace)

Files changed:

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `GetObjectAcl`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetObjectAcl;
    6      6   
impl GetObjectAcl {
    7      7   
    /// Creates a new `GetObjectAcl`
    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_acl::GetObjectAclInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_object_acl::GetObjectAclOutput::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_acl::GetObjectAclInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_object_acl::GetObjectAclOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_object_acl::GetObjectAclError,
   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 GetObjectAclResponseDeserializer;
  150    154   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetObjectAclResponseDeserializer {
  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_acl/_get_object_acl_input.rs

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

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

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/get_object_attributes.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 `GetObjectAttributes`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetObjectAttributes;
    6      6   
impl GetObjectAttributes {
    7      7   
    /// Creates a new `GetObjectAttributes`
    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_attributes::GetObjectAttributesInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_object_attributes::GetObjectAttributesOutput::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_attributes::GetObjectAttributesInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_object_attributes::GetObjectAttributesOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_object_attributes::GetObjectAttributesError,
   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 GetObjectAttributesResponseDeserializer;
  142    146   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetObjectAttributesResponseDeserializer {
  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_attributes/_get_object_attributes_input.rs

@@ -106,106 +413,485 @@
  126    126   
    "com.amazonaws.s3.synthetic",
  127    127   
    "GetObjectAttributesInput",
  128    128   
);
  129    129   
static GETOBJECTATTRIBUTESINPUT_MEMBER_BUCKET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  130    130   
    ::aws_smithy_schema::ShapeId::from_static(
  131    131   
        "com.amazonaws.s3.synthetic#GetObjectAttributesInput$Bucket",
  132    132   
        "com.amazonaws.s3.synthetic",
  133    133   
        "GetObjectAttributesInput",
  134    134   
    ),
  135    135   
    ::aws_smithy_schema::ShapeType::String,
  136         -
    "bucket",
         136  +
    "Bucket",
  137    137   
    0,
  138    138   
)
  139    139   
.with_http_label();
  140    140   
static GETOBJECTATTRIBUTESINPUT_MEMBER_KEY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  141    141   
    ::aws_smithy_schema::ShapeId::from_static(
  142    142   
        "com.amazonaws.s3.synthetic#GetObjectAttributesInput$Key",
  143    143   
        "com.amazonaws.s3.synthetic",
  144    144   
        "GetObjectAttributesInput",
  145    145   
    ),
  146    146   
    ::aws_smithy_schema::ShapeType::String,
  147         -
    "key",
         147  +
    "Key",
  148    148   
    1,
  149    149   
)
  150    150   
.with_http_label();
  151    151   
static GETOBJECTATTRIBUTESINPUT_MEMBER_VERSION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  152    152   
    ::aws_smithy_schema::ShapeId::from_static(
  153    153   
        "com.amazonaws.s3.synthetic#GetObjectAttributesInput$VersionId",
  154    154   
        "com.amazonaws.s3.synthetic",
  155    155   
        "GetObjectAttributesInput",
  156    156   
    ),
  157    157   
    ::aws_smithy_schema::ShapeType::String,
  158         -
    "version_id",
         158  +
    "VersionId",
  159    159   
    2,
  160    160   
)
  161    161   
.with_http_query("versionId");
  162    162   
static GETOBJECTATTRIBUTESINPUT_MEMBER_MAX_PARTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  163    163   
    ::aws_smithy_schema::ShapeId::from_static(
  164    164   
        "com.amazonaws.s3.synthetic#GetObjectAttributesInput$MaxParts",
  165    165   
        "com.amazonaws.s3.synthetic",
  166    166   
        "GetObjectAttributesInput",
  167    167   
    ),
  168    168   
    ::aws_smithy_schema::ShapeType::Integer,
  169         -
    "max_parts",
         169  +
    "MaxParts",
  170    170   
    3,
  171    171   
)
  172    172   
.with_http_header("x-amz-max-parts");
  173    173   
static GETOBJECTATTRIBUTESINPUT_MEMBER_PART_NUMBER_MARKER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  174    174   
    ::aws_smithy_schema::ShapeId::from_static(
  175    175   
        "com.amazonaws.s3.synthetic#GetObjectAttributesInput$PartNumberMarker",
  176    176   
        "com.amazonaws.s3.synthetic",
  177    177   
        "GetObjectAttributesInput",
  178    178   
    ),
  179    179   
    ::aws_smithy_schema::ShapeType::String,
  180         -
    "part_number_marker",
         180  +
    "PartNumberMarker",
  181    181   
    4,
  182    182   
)
  183    183   
.with_http_header("x-amz-part-number-marker");
  184    184   
static GETOBJECTATTRIBUTESINPUT_MEMBER_SSE_CUSTOMER_ALGORITHM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  185    185   
    ::aws_smithy_schema::ShapeId::from_static(
  186    186   
        "com.amazonaws.s3.synthetic#GetObjectAttributesInput$SSECustomerAlgorithm",
  187    187   
        "com.amazonaws.s3.synthetic",
  188    188   
        "GetObjectAttributesInput",
  189    189   
    ),
  190    190   
    ::aws_smithy_schema::ShapeType::String,
  191         -
    "sse_customer_algorithm",
         191  +
    "SSECustomerAlgorithm",
  192    192   
    5,
  193    193   
)
  194    194   
.with_http_header("x-amz-server-side-encryption-customer-algorithm");
  195    195   
static GETOBJECTATTRIBUTESINPUT_MEMBER_SSE_CUSTOMER_KEY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  196    196   
    ::aws_smithy_schema::ShapeId::from_static(
  197    197   
        "com.amazonaws.s3.synthetic#GetObjectAttributesInput$SSECustomerKey",
  198    198   
        "com.amazonaws.s3.synthetic",
  199    199   
        "GetObjectAttributesInput",
  200    200   
    ),
  201    201   
    ::aws_smithy_schema::ShapeType::String,
  202         -
    "sse_customer_key",
         202  +
    "SSECustomerKey",
  203    203   
    6,
  204    204   
)
  205    205   
.with_http_header("x-amz-server-side-encryption-customer-key");
  206    206   
static GETOBJECTATTRIBUTESINPUT_MEMBER_SSE_CUSTOMER_KEY_MD5: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  207    207   
    ::aws_smithy_schema::ShapeId::from_static(
  208    208   
        "com.amazonaws.s3.synthetic#GetObjectAttributesInput$SSECustomerKeyMD5",
  209    209   
        "com.amazonaws.s3.synthetic",
  210    210   
        "GetObjectAttributesInput",
  211    211   
    ),
  212    212   
    ::aws_smithy_schema::ShapeType::String,
  213         -
    "sse_customer_key_md5",
         213  +
    "SSECustomerKeyMD5",
  214    214   
    7,
  215    215   
)
  216    216   
.with_http_header("x-amz-server-side-encryption-customer-key-MD5");
  217    217   
static GETOBJECTATTRIBUTESINPUT_MEMBER_REQUEST_PAYER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  218    218   
    ::aws_smithy_schema::ShapeId::from_static(
  219    219   
        "com.amazonaws.s3.synthetic#GetObjectAttributesInput$RequestPayer",
  220    220   
        "com.amazonaws.s3.synthetic",
  221    221   
        "GetObjectAttributesInput",
  222    222   
    ),
  223    223   
    ::aws_smithy_schema::ShapeType::String,
  224         -
    "request_payer",
         224  +
    "RequestPayer",
  225    225   
    8,
  226    226   
)
  227    227   
.with_http_header("x-amz-request-payer");
  228    228   
static GETOBJECTATTRIBUTESINPUT_MEMBER_EXPECTED_BUCKET_OWNER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  229    229   
    ::aws_smithy_schema::ShapeId::from_static(
  230    230   
        "com.amazonaws.s3.synthetic#GetObjectAttributesInput$ExpectedBucketOwner",
  231    231   
        "com.amazonaws.s3.synthetic",
  232    232   
        "GetObjectAttributesInput",
  233    233   
    ),
  234    234   
    ::aws_smithy_schema::ShapeType::String,
  235         -
    "expected_bucket_owner",
         235  +
    "ExpectedBucketOwner",
  236    236   
    9,
  237    237   
)
  238    238   
.with_http_header("x-amz-expected-bucket-owner");
  239    239   
static GETOBJECTATTRIBUTESINPUT_MEMBER_OBJECT_ATTRIBUTES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  240    240   
    ::aws_smithy_schema::ShapeId::from_static(
  241    241   
        "com.amazonaws.s3.synthetic#GetObjectAttributesInput$ObjectAttributes",
  242    242   
        "com.amazonaws.s3.synthetic",
  243    243   
        "GetObjectAttributesInput",
  244    244   
    ),
  245    245   
    ::aws_smithy_schema::ShapeType::List,
  246         -
    "object_attributes",
         246  +
    "ObjectAttributes",
  247    247   
    10,
  248    248   
)
  249    249   
.with_http_header("x-amz-object-attributes");
  250    250   
static GETOBJECTATTRIBUTESINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  251    251   
    GETOBJECTATTRIBUTESINPUT_SCHEMA_ID,
  252    252   
    ::aws_smithy_schema::ShapeType::Structure,
  253    253   
    &[
  254    254   
        &GETOBJECTATTRIBUTESINPUT_MEMBER_BUCKET,
  255    255   
        &GETOBJECTATTRIBUTESINPUT_MEMBER_KEY,
  256    256   
        &GETOBJECTATTRIBUTESINPUT_MEMBER_VERSION_ID,
  257    257   
        &GETOBJECTATTRIBUTESINPUT_MEMBER_MAX_PARTS,
  258    258   
        &GETOBJECTATTRIBUTESINPUT_MEMBER_PART_NUMBER_MARKER,
  259    259   
        &GETOBJECTATTRIBUTESINPUT_MEMBER_SSE_CUSTOMER_ALGORITHM,
  260    260   
        &GETOBJECTATTRIBUTESINPUT_MEMBER_SSE_CUSTOMER_KEY,
  261    261   
        &GETOBJECTATTRIBUTESINPUT_MEMBER_SSE_CUSTOMER_KEY_MD5,
  262    262   
        &GETOBJECTATTRIBUTESINPUT_MEMBER_REQUEST_PAYER,
  263    263   
        &GETOBJECTATTRIBUTESINPUT_MEMBER_EXPECTED_BUCKET_OWNER,
  264    264   
        &GETOBJECTATTRIBUTESINPUT_MEMBER_OBJECT_ATTRIBUTES,
  265    265   
    ],
  266         -
);
         266  +
)
         267  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("GET", "/{Key+}?attributes", None));
  267    268   
impl GetObjectAttributesInput {
  268    269   
    /// The schema for this shape.
  269    270   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETOBJECTATTRIBUTESINPUT_SCHEMA;
  270    271   
}
  271    272   
impl ::aws_smithy_schema::serde::SerializableStruct for GetObjectAttributesInput {
  272    273   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  273    274   
    fn serialize_members(
  274    275   
        &self,
  275    276   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  276    277   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  277    278   
        if let Some(ref val) = self.bucket {
  278    279   
            ser.write_string(&GETOBJECTATTRIBUTESINPUT_MEMBER_BUCKET, val)?;
  279    280   
        }
  280    281   
        if let Some(ref val) = self.key {
  281    282   
            ser.write_string(&GETOBJECTATTRIBUTESINPUT_MEMBER_KEY, val)?;
  282    283   
        }
  283    284   
        if let Some(ref val) = self.version_id {
  284    285   
            ser.write_string(&GETOBJECTATTRIBUTESINPUT_MEMBER_VERSION_ID, val)?;
  285    286   
        }
  286    287   
        if let Some(ref val) = self.max_parts {
  287    288   
            ser.write_integer(&GETOBJECTATTRIBUTESINPUT_MEMBER_MAX_PARTS, *val)?;
  288    289   
        }
  289    290   
        if let Some(ref val) = self.part_number_marker {
  290    291   
            ser.write_string(&GETOBJECTATTRIBUTESINPUT_MEMBER_PART_NUMBER_MARKER, val)?;
  291    292   
        }
  292    293   
        if let Some(ref val) = self.sse_customer_algorithm {
  293    294   
            ser.write_string(&GETOBJECTATTRIBUTESINPUT_MEMBER_SSE_CUSTOMER_ALGORITHM, val)?;
  294    295   
        }
  295    296   
        if let Some(ref val) = self.sse_customer_key {
  296    297   
            ser.write_string(&GETOBJECTATTRIBUTESINPUT_MEMBER_SSE_CUSTOMER_KEY, val)?;
  297    298   
        }
  298    299   
        if let Some(ref val) = self.sse_customer_key_md5 {
  299    300   
            ser.write_string(&GETOBJECTATTRIBUTESINPUT_MEMBER_SSE_CUSTOMER_KEY_MD5, val)?;
  300    301   
        }
  301    302   
        if let Some(ref val) = self.request_payer {
  302    303   
            ser.write_string(&GETOBJECTATTRIBUTESINPUT_MEMBER_REQUEST_PAYER, val.as_str())?;
  303    304   
        }
  304    305   
        if let Some(ref val) = self.expected_bucket_owner {
  305    306   
            ser.write_string(&GETOBJECTATTRIBUTESINPUT_MEMBER_EXPECTED_BUCKET_OWNER, val)?;
  306    307   
        }
  307    308   
        if let Some(ref val) = self.object_attributes {
  308    309   
            ser.write_list(
  309    310   
                &GETOBJECTATTRIBUTESINPUT_MEMBER_OBJECT_ATTRIBUTES,
  310    311   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  311    312   
                    for item in val {
  312    313   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item.as_str())?;
  313    314   
                    }
  314    315   
                    Ok(())
  315    316   
                },
  316    317   
            )?;
  317    318   
        }
  318    319   
        Ok(())
  319    320   
    }
  320    321   
}
  321    322   
impl GetObjectAttributesInput {
  322    323   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  323         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  324         -
        deserializer: &mut D,
         324  +
    pub fn deserialize(
         325  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  325    326   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  326    327   
        #[allow(unused_variables, unused_mut)]
  327    328   
        let mut builder = Self::builder();
  328    329   
        #[allow(
  329    330   
            unused_variables,
  330    331   
            unreachable_code,
  331    332   
            clippy::single_match,
  332    333   
            clippy::match_single_binding,
  333    334   
            clippy::diverging_sub_expression
  334    335   
        )]
  335         -
        deserializer.read_struct(&GETOBJECTATTRIBUTESINPUT_SCHEMA, (), |_, member, deser| {
         336  +
        deserializer.read_struct(&GETOBJECTATTRIBUTESINPUT_SCHEMA, &mut |member, deser| {
  336    337   
            match member.member_index() {
  337    338   
                Some(0) => {
  338    339   
                    builder.bucket = Some(deser.read_string(member)?);
  339    340   
                }
  340    341   
                Some(1) => {
  341    342   
                    builder.key = Some(deser.read_string(member)?);
  342    343   
                }
  343    344   
                Some(2) => {
  344    345   
                    builder.version_id = Some(deser.read_string(member)?);
  345    346   
                }
  346    347   
                Some(3) => {
  347    348   
                    builder.max_parts = Some(deser.read_integer(member)?);
  348    349   
                }
  349    350   
                Some(4) => {
  350    351   
                    builder.part_number_marker = Some(deser.read_string(member)?);
  351    352   
                }
  352    353   
                Some(5) => {
  353    354   
                    builder.sse_customer_algorithm = Some(deser.read_string(member)?);
  354    355   
                }
  355    356   
                Some(6) => {
  356    357   
                    builder.sse_customer_key = Some(deser.read_string(member)?);
  357    358   
                }
  358    359   
                Some(7) => {
  359    360   
                    builder.sse_customer_key_md5 = Some(deser.read_string(member)?);
  360    361   
                }
  361    362   
                Some(8) => {
  362    363   
                    builder.request_payer = Some(crate::types::RequestPayer::from(deser.read_string(member)?.as_str()));
  363    364   
                }
  364    365   
                Some(9) => {
  365    366   
                    builder.expected_bucket_owner = Some(deser.read_string(member)?);
  366    367   
                }
  367    368   
                Some(10) => {
  368    369   
                    builder.object_attributes = Some({
  369         -
                        let container = if let Some(cap) = deser.container_size() {
  370         -
                            Vec::with_capacity(cap)
  371         -
                        } else {
  372         -
                            Vec::new()
  373         -
                        };
  374         -
                        deser.read_list(member, container, |mut list, deser| {
  375         -
                            list.push(crate::types::ObjectAttributes::from(deser.read_string(member)?.as_str()));
  376         -
                            Ok(list)
  377         -
                        })?
         370  +
                        let mut container = Vec::new();
         371  +
                        deser.read_list(member, &mut |deser| {
         372  +
                            container.push(crate::types::ObjectAttributes::from(deser.read_string(member)?.as_str()));
         373  +
                            Ok(())
         374  +
                        })?;
         375  +
                        container
  378    376   
                    });
  379    377   
                }
  380    378   
                _ => {}
  381    379   
            }
  382    380   
            Ok(())
  383    381   
        })?;
         382  +
        builder.bucket = builder.bucket.or(Some(String::new()));
         383  +
        builder.key = builder.key.or(Some(String::new()));
         384  +
        builder.object_attributes = builder.object_attributes.or(Some(Vec::new()));
         385  +
        builder
         386  +
            .build()
         387  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         388  +
    }
         389  +
}
         390  +
impl GetObjectAttributesInput {
         391  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         392  +
    /// Header-bound members are read directly from headers, avoiding runtime
         393  +
    /// member iteration overhead. Body members are read via the deserializer.
         394  +
    pub fn deserialize_with_response(
         395  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         396  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         397  +
        _status: u16,
         398  +
        _body: &[u8],
         399  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         400  +
        #[allow(unused_variables, unused_mut)]
         401  +
        let mut builder = Self::builder();
         402  +
        if let Some(val) = headers.get("x-amz-max-parts") {
         403  +
            builder.max_parts = val.parse::<i32>().ok();
         404  +
        }
         405  +
        if let Some(val) = headers.get("x-amz-part-number-marker") {
         406  +
            builder.part_number_marker = Some(val.to_string());
         407  +
        }
         408  +
        if let Some(val) = headers.get("x-amz-server-side-encryption-customer-algorithm") {
         409  +
            builder.sse_customer_algorithm = Some(val.to_string());
         410  +
        }
         411  +
        if let Some(val) = headers.get("x-amz-server-side-encryption-customer-key") {
         412  +
            builder.sse_customer_key = Some(val.to_string());
         413  +
        }
         414  +
        if let Some(val) = headers.get("x-amz-server-side-encryption-customer-key-MD5") {
         415  +
            builder.sse_customer_key_md5 = Some(val.to_string());
         416  +
        }
         417  +
        if let Some(val) = headers.get("x-amz-request-payer") {
         418  +
            builder.request_payer = Some(crate::types::RequestPayer::from(val));
         419  +
        }
         420  +
        if let Some(val) = headers.get("x-amz-expected-bucket-owner") {
         421  +
            builder.expected_bucket_owner = Some(val.to_string());
         422  +
        }
         423  +
        if let Some(val) = headers.get("x-amz-object-attributes") {
         424  +
            builder.object_attributes = Some(val.split(',').map(|s| crate::types::ObjectAttributes::from(s.trim())).collect());
         425  +
        }
         426  +
        #[allow(
         427  +
            unused_variables,
         428  +
            unreachable_code,
         429  +
            clippy::single_match,
         430  +
            clippy::match_single_binding,
         431  +
            clippy::diverging_sub_expression
         432  +
        )]
         433  +
        deserializer.read_struct(&GETOBJECTATTRIBUTESINPUT_SCHEMA, &mut |member, deser| {
         434  +
            match member.member_index() {
         435  +
                Some(0) => {
         436  +
                    builder.bucket = Some(deser.read_string(member)?);
         437  +
                }
         438  +
                Some(1) => {
         439  +
                    builder.key = Some(deser.read_string(member)?);
         440  +
                }
         441  +
                Some(2) => {
         442  +
                    builder.version_id = Some(deser.read_string(member)?);
         443  +
                }
         444  +
                Some(3) => { /* read from headers above */ }
         445  +
                Some(4) => { /* read from headers above */ }
         446  +
                Some(5) => { /* read from headers above */ }
         447  +
                Some(6) => { /* read from headers above */ }
         448  +
                Some(7) => { /* read from headers above */ }
         449  +
                Some(8) => { /* read from headers above */ }
         450  +
                Some(9) => { /* read from headers above */ }
         451  +
                Some(10) => { /* read from headers above */ }
         452  +
                _ => {}
         453  +
            }
         454  +
            Ok(())
         455  +
        })?;
  384    456   
        builder
  385    457   
            .build()
  386    458   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  387    459   
    }
  388    460   
}
  389    461   
impl GetObjectAttributesInput {
  390    462   
    /// Creates a new builder-style object to manufacture [`GetObjectAttributesInput`](crate::operation::get_object_attributes::GetObjectAttributesInput).
  391    463   
    pub fn builder() -> crate::operation::get_object_attributes::builders::GetObjectAttributesInputBuilder {
  392    464   
        crate::operation::get_object_attributes::builders::GetObjectAttributesInputBuilder::default()
  393    465   
    }

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

@@ -65,65 +310,383 @@
   85     85   
    "com.amazonaws.s3.synthetic",
   86     86   
    "GetObjectAttributesOutput",
   87     87   
);
   88     88   
static GETOBJECTATTRIBUTESOUTPUT_MEMBER_DELETE_MARKER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   89     89   
    ::aws_smithy_schema::ShapeId::from_static(
   90     90   
        "com.amazonaws.s3.synthetic#GetObjectAttributesOutput$DeleteMarker",
   91     91   
        "com.amazonaws.s3.synthetic",
   92     92   
        "GetObjectAttributesOutput",
   93     93   
    ),
   94     94   
    ::aws_smithy_schema::ShapeType::Boolean,
   95         -
    "delete_marker",
          95  +
    "DeleteMarker",
   96     96   
    0,
   97     97   
)
   98     98   
.with_http_header("x-amz-delete-marker");
   99     99   
static GETOBJECTATTRIBUTESOUTPUT_MEMBER_LAST_MODIFIED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  100    100   
    ::aws_smithy_schema::ShapeId::from_static(
  101    101   
        "com.amazonaws.s3.synthetic#GetObjectAttributesOutput$LastModified",
  102    102   
        "com.amazonaws.s3.synthetic",
  103    103   
        "GetObjectAttributesOutput",
  104    104   
    ),
  105    105   
    ::aws_smithy_schema::ShapeType::Timestamp,
  106         -
    "last_modified",
         106  +
    "LastModified",
  107    107   
    1,
  108    108   
)
  109    109   
.with_http_header("Last-Modified");
  110    110   
static GETOBJECTATTRIBUTESOUTPUT_MEMBER_VERSION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  111    111   
    ::aws_smithy_schema::ShapeId::from_static(
  112    112   
        "com.amazonaws.s3.synthetic#GetObjectAttributesOutput$VersionId",
  113    113   
        "com.amazonaws.s3.synthetic",
  114    114   
        "GetObjectAttributesOutput",
  115    115   
    ),
  116    116   
    ::aws_smithy_schema::ShapeType::String,
  117         -
    "version_id",
         117  +
    "VersionId",
  118    118   
    2,
  119    119   
)
  120    120   
.with_http_header("x-amz-version-id");
  121    121   
static GETOBJECTATTRIBUTESOUTPUT_MEMBER_REQUEST_CHARGED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  122    122   
    ::aws_smithy_schema::ShapeId::from_static(
  123    123   
        "com.amazonaws.s3.synthetic#GetObjectAttributesOutput$RequestCharged",
  124    124   
        "com.amazonaws.s3.synthetic",
  125    125   
        "GetObjectAttributesOutput",
  126    126   
    ),
  127    127   
    ::aws_smithy_schema::ShapeType::String,
  128         -
    "request_charged",
         128  +
    "RequestCharged",
  129    129   
    3,
  130    130   
)
  131    131   
.with_http_header("x-amz-request-charged");
  132    132   
static GETOBJECTATTRIBUTESOUTPUT_MEMBER_E_TAG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  133    133   
    ::aws_smithy_schema::ShapeId::from_static(
  134    134   
        "com.amazonaws.s3.synthetic#GetObjectAttributesOutput$ETag",
  135    135   
        "com.amazonaws.s3.synthetic",
  136    136   
        "GetObjectAttributesOutput",
  137    137   
    ),
  138    138   
    ::aws_smithy_schema::ShapeType::String,
  139         -
    "e_tag",
         139  +
    "ETag",
  140    140   
    4,
  141    141   
);
  142    142   
static GETOBJECTATTRIBUTESOUTPUT_MEMBER_CHECKSUM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  143    143   
    ::aws_smithy_schema::ShapeId::from_static(
  144    144   
        "com.amazonaws.s3.synthetic#GetObjectAttributesOutput$Checksum",
  145    145   
        "com.amazonaws.s3.synthetic",
  146    146   
        "GetObjectAttributesOutput",
  147    147   
    ),
  148    148   
    ::aws_smithy_schema::ShapeType::Structure,
  149         -
    "checksum",
         149  +
    "Checksum",
  150    150   
    5,
  151    151   
);
  152    152   
static GETOBJECTATTRIBUTESOUTPUT_MEMBER_OBJECT_PARTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  153    153   
    ::aws_smithy_schema::ShapeId::from_static(
  154    154   
        "com.amazonaws.s3.synthetic#GetObjectAttributesOutput$ObjectParts",
  155    155   
        "com.amazonaws.s3.synthetic",
  156    156   
        "GetObjectAttributesOutput",
  157    157   
    ),
  158    158   
    ::aws_smithy_schema::ShapeType::Structure,
  159         -
    "object_parts",
         159  +
    "ObjectParts",
  160    160   
    6,
  161    161   
);
  162    162   
static GETOBJECTATTRIBUTESOUTPUT_MEMBER_STORAGE_CLASS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  163    163   
    ::aws_smithy_schema::ShapeId::from_static(
  164    164   
        "com.amazonaws.s3.synthetic#GetObjectAttributesOutput$StorageClass",
  165    165   
        "com.amazonaws.s3.synthetic",
  166    166   
        "GetObjectAttributesOutput",
  167    167   
    ),
  168    168   
    ::aws_smithy_schema::ShapeType::String,
  169         -
    "storage_class",
         169  +
    "StorageClass",
  170    170   
    7,
  171    171   
);
  172    172   
static GETOBJECTATTRIBUTESOUTPUT_MEMBER_OBJECT_SIZE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  173    173   
    ::aws_smithy_schema::ShapeId::from_static(
  174    174   
        "com.amazonaws.s3.synthetic#GetObjectAttributesOutput$ObjectSize",
  175    175   
        "com.amazonaws.s3.synthetic",
  176    176   
        "GetObjectAttributesOutput",
  177    177   
    ),
  178    178   
    ::aws_smithy_schema::ShapeType::Long,
  179         -
    "object_size",
         179  +
    "ObjectSize",
  180    180   
    8,
  181    181   
);
         182  +
static GETOBJECTATTRIBUTESOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         183  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         184  +
    ::aws_smithy_schema::ShapeType::String,
         185  +
    "request_id",
         186  +
    9,
         187  +
)
         188  +
.with_http_header("x-amzn-requestid");
  182    189   
static GETOBJECTATTRIBUTESOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  183    190   
    GETOBJECTATTRIBUTESOUTPUT_SCHEMA_ID,
  184    191   
    ::aws_smithy_schema::ShapeType::Structure,
  185    192   
    &[
  186    193   
        &GETOBJECTATTRIBUTESOUTPUT_MEMBER_DELETE_MARKER,
  187    194   
        &GETOBJECTATTRIBUTESOUTPUT_MEMBER_LAST_MODIFIED,
  188    195   
        &GETOBJECTATTRIBUTESOUTPUT_MEMBER_VERSION_ID,
  189    196   
        &GETOBJECTATTRIBUTESOUTPUT_MEMBER_REQUEST_CHARGED,
  190    197   
        &GETOBJECTATTRIBUTESOUTPUT_MEMBER_E_TAG,
  191    198   
        &GETOBJECTATTRIBUTESOUTPUT_MEMBER_CHECKSUM,
  192    199   
        &GETOBJECTATTRIBUTESOUTPUT_MEMBER_OBJECT_PARTS,
  193    200   
        &GETOBJECTATTRIBUTESOUTPUT_MEMBER_STORAGE_CLASS,
  194    201   
        &GETOBJECTATTRIBUTESOUTPUT_MEMBER_OBJECT_SIZE,
         202  +
        &GETOBJECTATTRIBUTESOUTPUT_MEMBER__REQUEST_ID,
  195    203   
    ],
  196    204   
)
  197    205   
.with_xml_name("GetObjectAttributesResponse");
  198    206   
impl GetObjectAttributesOutput {
  199    207   
    /// The schema for this shape.
  200    208   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETOBJECTATTRIBUTESOUTPUT_SCHEMA;
  201    209   
}
  202    210   
impl ::aws_smithy_schema::serde::SerializableStruct for GetObjectAttributesOutput {
  203    211   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  204    212   
    fn serialize_members(
  205    213   
        &self,
  206    214   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  207    215   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  208    216   
        if let Some(ref val) = self.delete_marker {
  209    217   
            ser.write_boolean(&GETOBJECTATTRIBUTESOUTPUT_MEMBER_DELETE_MARKER, *val)?;
  210    218   
        }
  211    219   
        if let Some(ref val) = self.last_modified {
  212    220   
            ser.write_timestamp(&GETOBJECTATTRIBUTESOUTPUT_MEMBER_LAST_MODIFIED, val)?;
  213    221   
        }
  214    222   
        if let Some(ref val) = self.version_id {
  215    223   
            ser.write_string(&GETOBJECTATTRIBUTESOUTPUT_MEMBER_VERSION_ID, val)?;
  216    224   
        }
  217    225   
        if let Some(ref val) = self.request_charged {
  218    226   
            ser.write_string(&GETOBJECTATTRIBUTESOUTPUT_MEMBER_REQUEST_CHARGED, val.as_str())?;
  219    227   
        }
  220    228   
        if let Some(ref val) = self.e_tag {
  221    229   
            ser.write_string(&GETOBJECTATTRIBUTESOUTPUT_MEMBER_E_TAG, val)?;
  222    230   
        }
  223    231   
        if let Some(ref val) = self.checksum {
  224    232   
            ser.write_struct(&GETOBJECTATTRIBUTESOUTPUT_MEMBER_CHECKSUM, val)?;
  225    233   
        }
  226    234   
        if let Some(ref val) = self.object_parts {
  227    235   
            ser.write_struct(&GETOBJECTATTRIBUTESOUTPUT_MEMBER_OBJECT_PARTS, val)?;
  228    236   
        }
  229    237   
        if let Some(ref val) = self.storage_class {
  230    238   
            ser.write_string(&GETOBJECTATTRIBUTESOUTPUT_MEMBER_STORAGE_CLASS, val.as_str())?;
  231    239   
        }
  232    240   
        if let Some(ref val) = self.object_size {
  233    241   
            ser.write_long(&GETOBJECTATTRIBUTESOUTPUT_MEMBER_OBJECT_SIZE, *val)?;
  234    242   
        }
  235    243   
        Ok(())
  236    244   
    }
  237    245   
}
  238    246   
impl GetObjectAttributesOutput {
  239    247   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  240         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  241         -
        deserializer: &mut D,
         248  +
    pub fn deserialize(
         249  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  242    250   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  243    251   
        #[allow(unused_variables, unused_mut)]
  244    252   
        let mut builder = Self::builder();
  245    253   
        #[allow(
  246    254   
            unused_variables,
  247    255   
            unreachable_code,
  248    256   
            clippy::single_match,
  249    257   
            clippy::match_single_binding,
  250    258   
            clippy::diverging_sub_expression
  251    259   
        )]
  252         -
        deserializer.read_struct(&GETOBJECTATTRIBUTESOUTPUT_SCHEMA, (), |_, member, deser| {
         260  +
        deserializer.read_struct(&GETOBJECTATTRIBUTESOUTPUT_SCHEMA, &mut |member, deser| {
  253    261   
            match member.member_index() {
  254    262   
                Some(0) => {
  255    263   
                    builder.delete_marker = Some(deser.read_boolean(member)?);
  256    264   
                }
  257    265   
                Some(1) => {
  258    266   
                    builder.last_modified = Some(deser.read_timestamp(member)?);
  259    267   
                }
  260    268   
                Some(2) => {
  261    269   
                    builder.version_id = Some(deser.read_string(member)?);
  262    270   
                }
  263    271   
                Some(3) => {
  264    272   
                    builder.request_charged = Some(crate::types::RequestCharged::from(deser.read_string(member)?.as_str()));
  265    273   
                }
  266    274   
                Some(4) => {
  267    275   
                    builder.e_tag = Some(deser.read_string(member)?);
  268    276   
                }
  269    277   
                Some(5) => {
  270    278   
                    builder.checksum = Some(crate::types::Checksum::deserialize(deser)?);
  271    279   
                }
  272    280   
                Some(6) => {
  273    281   
                    builder.object_parts = Some(crate::types::GetObjectAttributesParts::deserialize(deser)?);
  274    282   
                }
  275    283   
                Some(7) => {
  276    284   
                    builder.storage_class = Some(crate::types::StorageClass::from(deser.read_string(member)?.as_str()));
  277    285   
                }
  278    286   
                Some(8) => {
  279    287   
                    builder.object_size = Some(deser.read_long(member)?);
  280    288   
                }
         289  +
                Some(9) => {
         290  +
                    builder._request_id = Some(deser.read_string(member)?);
         291  +
                }
         292  +
                _ => {}
         293  +
            }
         294  +
            Ok(())
         295  +
        })?;
         296  +
        Ok(builder.build())
         297  +
    }
         298  +
}
         299  +
impl GetObjectAttributesOutput {
         300  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         301  +
    /// Header-bound members are read directly from headers, avoiding runtime
         302  +
    /// member iteration overhead. Body members are read via the deserializer.
         303  +
    pub fn deserialize_with_response(
         304  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         305  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         306  +
        _status: u16,
         307  +
        _body: &[u8],
         308  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         309  +
        #[allow(unused_variables, unused_mut)]
         310  +
        let mut builder = Self::builder();
         311  +
        if let Some(val) = headers.get("x-amz-delete-marker") {
         312  +
            builder.delete_marker = val.parse::<bool>().ok();
         313  +
        }
         314  +
        if let Some(val) = headers.get("Last-Modified") {
         315  +
            builder.last_modified = ::aws_smithy_types::DateTime::from_str(val, ::aws_smithy_types::date_time::Format::HttpDate).ok();
         316  +
        }
         317  +
        if let Some(val) = headers.get("x-amz-version-id") {
         318  +
            builder.version_id = Some(val.to_string());
         319  +
        }
         320  +
        if let Some(val) = headers.get("x-amz-request-charged") {
         321  +
            builder.request_charged = Some(crate::types::RequestCharged::from(val));
         322  +
        }
         323  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         324  +
            builder._request_id = Some(val.to_string());
         325  +
        }
         326  +
        #[allow(
         327  +
            unused_variables,
         328  +
            unreachable_code,
         329  +
            clippy::single_match,
         330  +
            clippy::match_single_binding,
         331  +
            clippy::diverging_sub_expression
         332  +
        )]
         333  +
        deserializer.read_struct(&GETOBJECTATTRIBUTESOUTPUT_SCHEMA, &mut |member, deser| {
         334  +
            match member.member_index() {
         335  +
                Some(0) => { /* read from headers above */ }
         336  +
                Some(1) => { /* read from headers above */ }
         337  +
                Some(2) => { /* read from headers above */ }
         338  +
                Some(3) => { /* read from headers above */ }
         339  +
                Some(4) => {
         340  +
                    builder.e_tag = Some(deser.read_string(member)?);
         341  +
                }
         342  +
                Some(5) => {
         343  +
                    builder.checksum = Some(crate::types::Checksum::deserialize(deser)?);
         344  +
                }
         345  +
                Some(6) => {
         346  +
                    builder.object_parts = Some(crate::types::GetObjectAttributesParts::deserialize(deser)?);
         347  +
                }
         348  +
                Some(7) => {
         349  +
                    builder.storage_class = Some(crate::types::StorageClass::from(deser.read_string(member)?.as_str()));
         350  +
                }
         351  +
                Some(8) => {
         352  +
                    builder.object_size = Some(deser.read_long(member)?);
         353  +
                }
  281    354   
                _ => {}
  282    355   
            }
  283    356   
            Ok(())
  284    357   
        })?;
  285    358   
        Ok(builder.build())
  286    359   
    }
  287    360   
}
  288    361   
impl crate::s3_request_id::RequestIdExt for GetObjectAttributesOutput {
  289    362   
    fn extended_request_id(&self) -> Option<&str> {
  290    363   
        self._extended_request_id.as_deref()

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   
        }