AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/get_access_grants_instance_for_prefix.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 `GetAccessGrantsInstanceForPrefix`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetAccessGrantsInstanceForPrefix;
    6      6   
impl GetAccessGrantsInstanceForPrefix {
    7      7   
    /// Creates a new `GetAccessGrantsInstanceForPrefix`
    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_access_grants_instance_for_prefix::GetAccessGrantsInstanceForPrefixInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_access_grants_instance_for_prefix::GetAccessGrantsInstanceForPrefixOutput::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_access_grants_instance_for_prefix::GetAccessGrantsInstanceForPrefixInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_access_grants_instance_for_prefix::GetAccessGrantsInstanceForPrefixOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_access_grants_instance_for_prefix::GetAccessGrantsInstanceForPrefixError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::get_access_grants_instance_for_prefix::GetAccessGrantsInstanceForPrefixError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct GetAccessGrantsInstanceForPrefixResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetAccessGrantsInstanceForPrefixResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159    166   
        let headers = response.headers();
  160    167   
        let body = response.body().bytes().expect("body loaded");
  161    168   
        #[allow(unused_mut)]
  162    169   
        let mut force_error = false;
  163    170   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164    171   
        let parse_result = if !success && status != 200 || force_error {
  165    172   
            crate::protocol_serde::shape_get_access_grants_instance_for_prefix::de_get_access_grants_instance_for_prefix_http_error(
  166    173   
                status, headers, body,

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/get_access_grants_instance_resource_policy.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 `GetAccessGrantsInstanceResourcePolicy`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetAccessGrantsInstanceResourcePolicy;
    6      6   
impl GetAccessGrantsInstanceResourcePolicy {
    7      7   
    /// Creates a new `GetAccessGrantsInstanceResourcePolicy`
    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_access_grants_instance_resource_policy::GetAccessGrantsInstanceResourcePolicyInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_access_grants_instance_resource_policy::GetAccessGrantsInstanceResourcePolicyOutput::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_access_grants_instance_resource_policy::GetAccessGrantsInstanceResourcePolicyInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_access_grants_instance_resource_policy::GetAccessGrantsInstanceResourcePolicyOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_access_grants_instance_resource_policy::GetAccessGrantsInstanceResourcePolicyError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::get_access_grants_instance_resource_policy::GetAccessGrantsInstanceResourcePolicyError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct GetAccessGrantsInstanceResourcePolicyResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetAccessGrantsInstanceResourcePolicyResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159    166   
        let headers = response.headers();
  160    167   
        let body = response.body().bytes().expect("body loaded");
  161    168   
        #[allow(unused_mut)]
  162    169   
        let mut force_error = false;
  163    170   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164    171   
        let parse_result = if !success && status != 200 || force_error {
  165    172   
            crate::protocol_serde::shape_get_access_grants_instance_resource_policy::de_get_access_grants_instance_resource_policy_http_error(
  166    173   
                status, headers, body,

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

@@ -1,1 +105,131 @@
   17     17   
    "com.amazonaws.s3control.synthetic",
   18     18   
    "GetAccessGrantsInstanceResourcePolicyInput",
   19     19   
);
   20     20   
static GETACCESSGRANTSINSTANCERESOURCEPOLICYINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   21     21   
    ::aws_smithy_schema::ShapeId::from_static(
   22     22   
        "com.amazonaws.s3control.synthetic#GetAccessGrantsInstanceResourcePolicyInput$AccountId",
   23     23   
        "com.amazonaws.s3control.synthetic",
   24     24   
        "GetAccessGrantsInstanceResourcePolicyInput",
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::String,
   27         -
    "account_id",
          27  +
    "AccountId",
   28     28   
    0,
   29     29   
)
   30     30   
.with_host_label()
   31     31   
.with_http_header("x-amz-account-id");
   32     32   
static GETACCESSGRANTSINSTANCERESOURCEPOLICYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     33   
    GETACCESSGRANTSINSTANCERESOURCEPOLICYINPUT_SCHEMA_ID,
   34     34   
    ::aws_smithy_schema::ShapeType::Structure,
   35     35   
    &[&GETACCESSGRANTSINSTANCERESOURCEPOLICYINPUT_MEMBER_ACCOUNT_ID],
   36         -
);
          36  +
)
          37  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          38  +
    "GET",
          39  +
    "/v20180820/accessgrantsinstance/resourcepolicy",
          40  +
    None,
          41  +
));
   37     42   
impl GetAccessGrantsInstanceResourcePolicyInput {
   38     43   
    /// The schema for this shape.
   39     44   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETACCESSGRANTSINSTANCERESOURCEPOLICYINPUT_SCHEMA;
   40     45   
}
   41     46   
impl ::aws_smithy_schema::serde::SerializableStruct for GetAccessGrantsInstanceResourcePolicyInput {
   42     47   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   43     48   
    fn serialize_members(
   44     49   
        &self,
   45     50   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   46     51   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   47     52   
        if let Some(ref val) = self.account_id {
   48     53   
            ser.write_string(&GETACCESSGRANTSINSTANCERESOURCEPOLICYINPUT_MEMBER_ACCOUNT_ID, val)?;
   49     54   
        }
   50     55   
        Ok(())
   51     56   
    }
   52     57   
}
   53     58   
impl GetAccessGrantsInstanceResourcePolicyInput {
   54     59   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   55         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   56         -
        deserializer: &mut D,
          60  +
    pub fn deserialize(
          61  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   57     62   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   58     63   
        #[allow(unused_variables, unused_mut)]
   59     64   
        let mut builder = Self::builder();
   60     65   
        #[allow(
   61     66   
            unused_variables,
   62     67   
            unreachable_code,
   63     68   
            clippy::single_match,
   64     69   
            clippy::match_single_binding,
   65     70   
            clippy::diverging_sub_expression
   66     71   
        )]
   67         -
        deserializer.read_struct(&GETACCESSGRANTSINSTANCERESOURCEPOLICYINPUT_SCHEMA, (), |_, member, deser| {
          72  +
        deserializer.read_struct(&GETACCESSGRANTSINSTANCERESOURCEPOLICYINPUT_SCHEMA, &mut |member, deser| {
   68     73   
            match member.member_index() {
   69     74   
                Some(0) => {
   70     75   
                    builder.account_id = Some(deser.read_string(member)?);
   71     76   
                }
   72     77   
                _ => {}
   73     78   
            }
   74     79   
            Ok(())
   75     80   
        })?;
          81  +
        builder.account_id = builder.account_id.or(Some(String::new()));
          82  +
        builder
          83  +
            .build()
          84  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
          85  +
    }
          86  +
}
          87  +
impl GetAccessGrantsInstanceResourcePolicyInput {
          88  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          89  +
    /// Header-bound members are read directly from headers, avoiding runtime
          90  +
    /// member iteration overhead. Body members are read via the deserializer.
          91  +
    pub fn deserialize_with_response(
          92  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          93  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          94  +
        _status: u16,
          95  +
        _body: &[u8],
          96  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          97  +
        #[allow(unused_variables, unused_mut)]
          98  +
        let mut builder = Self::builder();
          99  +
        if let Some(val) = headers.get("x-amz-account-id") {
         100  +
            builder.account_id = Some(val.to_string());
         101  +
        }
   76    102   
        builder
   77    103   
            .build()
   78    104   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   79    105   
    }
   80    106   
}
   81    107   
impl GetAccessGrantsInstanceResourcePolicyInput {
   82    108   
    /// Creates a new builder-style object to manufacture [`GetAccessGrantsInstanceResourcePolicyInput`](crate::operation::get_access_grants_instance_resource_policy::GetAccessGrantsInstanceResourcePolicyInput).
   83    109   
    pub fn builder() -> crate::operation::get_access_grants_instance_resource_policy::builders::GetAccessGrantsInstanceResourcePolicyInputBuilder {
   84    110   
        crate::operation::get_access_grants_instance_resource_policy::builders::GetAccessGrantsInstanceResourcePolicyInputBuilder::default()
   85    111   
    }

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

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

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

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

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

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

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

@@ -22,22 +178,235 @@
   42     42   
    "com.amazonaws.s3control.synthetic",
   43     43   
    "GetAccessGrantsLocationOutput",
   44     44   
);
   45     45   
static GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_CREATED_AT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   46     46   
    ::aws_smithy_schema::ShapeId::from_static(
   47     47   
        "com.amazonaws.s3control.synthetic#GetAccessGrantsLocationOutput$CreatedAt",
   48     48   
        "com.amazonaws.s3control.synthetic",
   49     49   
        "GetAccessGrantsLocationOutput",
   50     50   
    ),
   51     51   
    ::aws_smithy_schema::ShapeType::Timestamp,
   52         -
    "created_at",
          52  +
    "CreatedAt",
   53     53   
    0,
   54     54   
);
   55     55   
static GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_ACCESS_GRANTS_LOCATION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.s3control.synthetic#GetAccessGrantsLocationOutput$AccessGrantsLocationId",
   58     58   
        "com.amazonaws.s3control.synthetic",
   59     59   
        "GetAccessGrantsLocationOutput",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::String,
   62         -
    "access_grants_location_id",
          62  +
    "AccessGrantsLocationId",
   63     63   
    1,
   64     64   
);
   65     65   
static GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_ACCESS_GRANTS_LOCATION_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   66     66   
    ::aws_smithy_schema::ShapeId::from_static(
   67     67   
        "com.amazonaws.s3control.synthetic#GetAccessGrantsLocationOutput$AccessGrantsLocationArn",
   68     68   
        "com.amazonaws.s3control.synthetic",
   69     69   
        "GetAccessGrantsLocationOutput",
   70     70   
    ),
   71     71   
    ::aws_smithy_schema::ShapeType::String,
   72         -
    "access_grants_location_arn",
          72  +
    "AccessGrantsLocationArn",
   73     73   
    2,
   74     74   
);
   75     75   
static GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_LOCATION_SCOPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   76     76   
    ::aws_smithy_schema::ShapeId::from_static(
   77     77   
        "com.amazonaws.s3control.synthetic#GetAccessGrantsLocationOutput$LocationScope",
   78     78   
        "com.amazonaws.s3control.synthetic",
   79     79   
        "GetAccessGrantsLocationOutput",
   80     80   
    ),
   81     81   
    ::aws_smithy_schema::ShapeType::String,
   82         -
    "location_scope",
          82  +
    "LocationScope",
   83     83   
    3,
   84     84   
);
   85     85   
static GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_IAM_ROLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   86     86   
    ::aws_smithy_schema::ShapeId::from_static(
   87     87   
        "com.amazonaws.s3control.synthetic#GetAccessGrantsLocationOutput$IAMRoleArn",
   88     88   
        "com.amazonaws.s3control.synthetic",
   89     89   
        "GetAccessGrantsLocationOutput",
   90     90   
    ),
   91     91   
    ::aws_smithy_schema::ShapeType::String,
   92         -
    "iam_role_arn",
          92  +
    "IAMRoleArn",
   93     93   
    4,
   94     94   
);
          95  +
static GETACCESSGRANTSLOCATIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          96  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          97  +
    ::aws_smithy_schema::ShapeType::String,
          98  +
    "request_id",
          99  +
    5,
         100  +
)
         101  +
.with_http_header("x-amzn-requestid");
   95    102   
static GETACCESSGRANTSLOCATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   96    103   
    GETACCESSGRANTSLOCATIONOUTPUT_SCHEMA_ID,
   97    104   
    ::aws_smithy_schema::ShapeType::Structure,
   98    105   
    &[
   99    106   
        &GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_CREATED_AT,
  100    107   
        &GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_ACCESS_GRANTS_LOCATION_ID,
  101    108   
        &GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_ACCESS_GRANTS_LOCATION_ARN,
  102    109   
        &GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_LOCATION_SCOPE,
  103    110   
        &GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_IAM_ROLE_ARN,
         111  +
        &GETACCESSGRANTSLOCATIONOUTPUT_MEMBER__REQUEST_ID,
  104    112   
    ],
  105    113   
);
  106    114   
impl GetAccessGrantsLocationOutput {
  107    115   
    /// The schema for this shape.
  108    116   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETACCESSGRANTSLOCATIONOUTPUT_SCHEMA;
  109    117   
}
  110    118   
impl ::aws_smithy_schema::serde::SerializableStruct for GetAccessGrantsLocationOutput {
  111    119   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  112    120   
    fn serialize_members(
  113    121   
        &self,
  114    122   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  115    123   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  116    124   
        if let Some(ref val) = self.created_at {
  117    125   
            ser.write_timestamp(&GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_CREATED_AT, val)?;
  118    126   
        }
  119    127   
        if let Some(ref val) = self.access_grants_location_id {
  120    128   
            ser.write_string(&GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_ACCESS_GRANTS_LOCATION_ID, val)?;
  121    129   
        }
  122    130   
        if let Some(ref val) = self.access_grants_location_arn {
  123    131   
            ser.write_string(&GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_ACCESS_GRANTS_LOCATION_ARN, val)?;
  124    132   
        }
  125    133   
        if let Some(ref val) = self.location_scope {
  126    134   
            ser.write_string(&GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_LOCATION_SCOPE, val)?;
  127    135   
        }
  128    136   
        if let Some(ref val) = self.iam_role_arn {
  129    137   
            ser.write_string(&GETACCESSGRANTSLOCATIONOUTPUT_MEMBER_IAM_ROLE_ARN, val)?;
  130    138   
        }
  131    139   
        Ok(())
  132    140   
    }
  133    141   
}
  134    142   
impl GetAccessGrantsLocationOutput {
  135    143   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  136         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  137         -
        deserializer: &mut D,
         144  +
    pub fn deserialize(
         145  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  138    146   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  139    147   
        #[allow(unused_variables, unused_mut)]
  140    148   
        let mut builder = Self::builder();
  141    149   
        #[allow(
  142    150   
            unused_variables,
  143    151   
            unreachable_code,
  144    152   
            clippy::single_match,
  145    153   
            clippy::match_single_binding,
  146    154   
            clippy::diverging_sub_expression
  147    155   
        )]
  148         -
        deserializer.read_struct(&GETACCESSGRANTSLOCATIONOUTPUT_SCHEMA, (), |_, member, deser| {
         156  +
        deserializer.read_struct(&GETACCESSGRANTSLOCATIONOUTPUT_SCHEMA, &mut |member, deser| {
         157  +
            match member.member_index() {
         158  +
                Some(0) => {
         159  +
                    builder.created_at = Some(deser.read_timestamp(member)?);
         160  +
                }
         161  +
                Some(1) => {
         162  +
                    builder.access_grants_location_id = Some(deser.read_string(member)?);
         163  +
                }
         164  +
                Some(2) => {
         165  +
                    builder.access_grants_location_arn = Some(deser.read_string(member)?);
         166  +
                }
         167  +
                Some(3) => {
         168  +
                    builder.location_scope = Some(deser.read_string(member)?);
         169  +
                }
         170  +
                Some(4) => {
         171  +
                    builder.iam_role_arn = Some(deser.read_string(member)?);
         172  +
                }
         173  +
                Some(5) => {
         174  +
                    builder._request_id = Some(deser.read_string(member)?);
         175  +
                }
         176  +
                _ => {}
         177  +
            }
         178  +
            Ok(())
         179  +
        })?;
         180  +
        Ok(builder.build())
         181  +
    }
         182  +
}
         183  +
impl GetAccessGrantsLocationOutput {
         184  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         185  +
    /// Header-bound members are read directly from headers, avoiding runtime
         186  +
    /// member iteration overhead. Body members are read via the deserializer.
         187  +
    pub fn deserialize_with_response(
         188  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         189  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         190  +
        _status: u16,
         191  +
        _body: &[u8],
         192  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         193  +
        #[allow(unused_variables, unused_mut)]
         194  +
        let mut builder = Self::builder();
         195  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         196  +
            builder._request_id = Some(val.to_string());
         197  +
        }
         198  +
        #[allow(
         199  +
            unused_variables,
         200  +
            unreachable_code,
         201  +
            clippy::single_match,
         202  +
            clippy::match_single_binding,
         203  +
            clippy::diverging_sub_expression
         204  +
        )]
         205  +
        deserializer.read_struct(&GETACCESSGRANTSLOCATIONOUTPUT_SCHEMA, &mut |member, deser| {
  149    206   
            match member.member_index() {
  150    207   
                Some(0) => {
  151    208   
                    builder.created_at = Some(deser.read_timestamp(member)?);
  152    209   
                }
  153    210   
                Some(1) => {
  154    211   
                    builder.access_grants_location_id = Some(deser.read_string(member)?);
  155    212   
                }
  156    213   
                Some(2) => {
  157    214   
                    builder.access_grants_location_arn = Some(deser.read_string(member)?);
  158    215   
                }

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

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

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

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

@@ -72,72 +260,268 @@
   92     92   
    "com.amazonaws.s3control.synthetic",
   93     93   
    "GetAccessPointOutput",
   94     94   
);
   95     95   
static GETACCESSPOINTOUTPUT_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   96     96   
    ::aws_smithy_schema::ShapeId::from_static(
   97     97   
        "com.amazonaws.s3control.synthetic#GetAccessPointOutput$Name",
   98     98   
        "com.amazonaws.s3control.synthetic",
   99     99   
        "GetAccessPointOutput",
  100    100   
    ),
  101    101   
    ::aws_smithy_schema::ShapeType::String,
  102         -
    "name",
         102  +
    "Name",
  103    103   
    0,
  104    104   
);
  105    105   
static GETACCESSPOINTOUTPUT_MEMBER_BUCKET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  106    106   
    ::aws_smithy_schema::ShapeId::from_static(
  107    107   
        "com.amazonaws.s3control.synthetic#GetAccessPointOutput$Bucket",
  108    108   
        "com.amazonaws.s3control.synthetic",
  109    109   
        "GetAccessPointOutput",
  110    110   
    ),
  111    111   
    ::aws_smithy_schema::ShapeType::String,
  112         -
    "bucket",
         112  +
    "Bucket",
  113    113   
    1,
  114    114   
);
  115    115   
static GETACCESSPOINTOUTPUT_MEMBER_NETWORK_ORIGIN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  116    116   
    ::aws_smithy_schema::ShapeId::from_static(
  117    117   
        "com.amazonaws.s3control.synthetic#GetAccessPointOutput$NetworkOrigin",
  118    118   
        "com.amazonaws.s3control.synthetic",
  119    119   
        "GetAccessPointOutput",
  120    120   
    ),
  121    121   
    ::aws_smithy_schema::ShapeType::String,
  122         -
    "network_origin",
         122  +
    "NetworkOrigin",
  123    123   
    2,
  124    124   
);
  125    125   
static GETACCESSPOINTOUTPUT_MEMBER_VPC_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  126    126   
    ::aws_smithy_schema::ShapeId::from_static(
  127    127   
        "com.amazonaws.s3control.synthetic#GetAccessPointOutput$VpcConfiguration",
  128    128   
        "com.amazonaws.s3control.synthetic",
  129    129   
        "GetAccessPointOutput",
  130    130   
    ),
  131    131   
    ::aws_smithy_schema::ShapeType::Structure,
  132         -
    "vpc_configuration",
         132  +
    "VpcConfiguration",
  133    133   
    3,
  134    134   
);
  135    135   
static GETACCESSPOINTOUTPUT_MEMBER_PUBLIC_ACCESS_BLOCK_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  136    136   
    ::aws_smithy_schema::ShapeId::from_static(
  137    137   
        "com.amazonaws.s3control.synthetic#GetAccessPointOutput$PublicAccessBlockConfiguration",
  138    138   
        "com.amazonaws.s3control.synthetic",
  139    139   
        "GetAccessPointOutput",
  140    140   
    ),
  141    141   
    ::aws_smithy_schema::ShapeType::Structure,
  142         -
    "public_access_block_configuration",
         142  +
    "PublicAccessBlockConfiguration",
  143    143   
    4,
  144    144   
);
  145    145   
static GETACCESSPOINTOUTPUT_MEMBER_CREATION_DATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  146    146   
    ::aws_smithy_schema::ShapeId::from_static(
  147    147   
        "com.amazonaws.s3control.synthetic#GetAccessPointOutput$CreationDate",
  148    148   
        "com.amazonaws.s3control.synthetic",
  149    149   
        "GetAccessPointOutput",
  150    150   
    ),
  151    151   
    ::aws_smithy_schema::ShapeType::Timestamp,
  152         -
    "creation_date",
         152  +
    "CreationDate",
  153    153   
    5,
  154    154   
);
  155    155   
static GETACCESSPOINTOUTPUT_MEMBER_ALIAS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  156    156   
    ::aws_smithy_schema::ShapeId::from_static(
  157    157   
        "com.amazonaws.s3control.synthetic#GetAccessPointOutput$Alias",
  158    158   
        "com.amazonaws.s3control.synthetic",
  159    159   
        "GetAccessPointOutput",
  160    160   
    ),
  161    161   
    ::aws_smithy_schema::ShapeType::String,
  162         -
    "alias",
         162  +
    "Alias",
  163    163   
    6,
  164    164   
);
  165    165   
static GETACCESSPOINTOUTPUT_MEMBER_ACCESS_POINT_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  166    166   
    ::aws_smithy_schema::ShapeId::from_static(
  167    167   
        "com.amazonaws.s3control.synthetic#GetAccessPointOutput$AccessPointArn",
  168    168   
        "com.amazonaws.s3control.synthetic",
  169    169   
        "GetAccessPointOutput",
  170    170   
    ),
  171    171   
    ::aws_smithy_schema::ShapeType::String,
  172         -
    "access_point_arn",
         172  +
    "AccessPointArn",
  173    173   
    7,
  174    174   
);
  175    175   
static GETACCESSPOINTOUTPUT_MEMBER_ENDPOINTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  176    176   
    ::aws_smithy_schema::ShapeId::from_static(
  177    177   
        "com.amazonaws.s3control.synthetic#GetAccessPointOutput$Endpoints",
  178    178   
        "com.amazonaws.s3control.synthetic",
  179    179   
        "GetAccessPointOutput",
  180    180   
    ),
  181    181   
    ::aws_smithy_schema::ShapeType::Map,
  182         -
    "endpoints",
         182  +
    "Endpoints",
  183    183   
    8,
  184    184   
);
  185    185   
static GETACCESSPOINTOUTPUT_MEMBER_BUCKET_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  186    186   
    ::aws_smithy_schema::ShapeId::from_static(
  187    187   
        "com.amazonaws.s3control.synthetic#GetAccessPointOutput$BucketAccountId",
  188    188   
        "com.amazonaws.s3control.synthetic",
  189    189   
        "GetAccessPointOutput",
  190    190   
    ),
  191    191   
    ::aws_smithy_schema::ShapeType::String,
  192         -
    "bucket_account_id",
         192  +
    "BucketAccountId",
  193    193   
    9,
  194    194   
);
  195    195   
static GETACCESSPOINTOUTPUT_MEMBER_DATA_SOURCE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  196    196   
    ::aws_smithy_schema::ShapeId::from_static(
  197    197   
        "com.amazonaws.s3control.synthetic#GetAccessPointOutput$DataSourceId",
  198    198   
        "com.amazonaws.s3control.synthetic",
  199    199   
        "GetAccessPointOutput",
  200    200   
    ),
  201    201   
    ::aws_smithy_schema::ShapeType::String,
  202         -
    "data_source_id",
         202  +
    "DataSourceId",
  203    203   
    10,
  204    204   
);
  205    205   
static GETACCESSPOINTOUTPUT_MEMBER_DATA_SOURCE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  206    206   
    ::aws_smithy_schema::ShapeId::from_static(
  207    207   
        "com.amazonaws.s3control.synthetic#GetAccessPointOutput$DataSourceType",
  208    208   
        "com.amazonaws.s3control.synthetic",
  209    209   
        "GetAccessPointOutput",
  210    210   
    ),
  211    211   
    ::aws_smithy_schema::ShapeType::String,
  212         -
    "data_source_type",
         212  +
    "DataSourceType",
  213    213   
    11,
  214    214   
);
         215  +
static GETACCESSPOINTOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         216  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         217  +
    ::aws_smithy_schema::ShapeType::String,
         218  +
    "request_id",
         219  +
    12,
         220  +
)
         221  +
.with_http_header("x-amzn-requestid");
  215    222   
static GETACCESSPOINTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  216    223   
    GETACCESSPOINTOUTPUT_SCHEMA_ID,
  217    224   
    ::aws_smithy_schema::ShapeType::Structure,
  218    225   
    &[
  219    226   
        &GETACCESSPOINTOUTPUT_MEMBER_NAME,
  220    227   
        &GETACCESSPOINTOUTPUT_MEMBER_BUCKET,
  221    228   
        &GETACCESSPOINTOUTPUT_MEMBER_NETWORK_ORIGIN,
  222    229   
        &GETACCESSPOINTOUTPUT_MEMBER_VPC_CONFIGURATION,
  223    230   
        &GETACCESSPOINTOUTPUT_MEMBER_PUBLIC_ACCESS_BLOCK_CONFIGURATION,
  224    231   
        &GETACCESSPOINTOUTPUT_MEMBER_CREATION_DATE,
  225    232   
        &GETACCESSPOINTOUTPUT_MEMBER_ALIAS,
  226    233   
        &GETACCESSPOINTOUTPUT_MEMBER_ACCESS_POINT_ARN,
  227    234   
        &GETACCESSPOINTOUTPUT_MEMBER_ENDPOINTS,
  228    235   
        &GETACCESSPOINTOUTPUT_MEMBER_BUCKET_ACCOUNT_ID,
  229    236   
        &GETACCESSPOINTOUTPUT_MEMBER_DATA_SOURCE_ID,
  230    237   
        &GETACCESSPOINTOUTPUT_MEMBER_DATA_SOURCE_TYPE,
         238  +
        &GETACCESSPOINTOUTPUT_MEMBER__REQUEST_ID,
  231    239   
    ],
  232    240   
);
  233    241   
impl GetAccessPointOutput {
  234    242   
    /// The schema for this shape.
  235    243   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETACCESSPOINTOUTPUT_SCHEMA;
  236    244   
}
  237    245   
impl ::aws_smithy_schema::serde::SerializableStruct for GetAccessPointOutput {
  238    246   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  239    247   
    fn serialize_members(
  240    248   
        &self,
@@ -263,271 +372,440 @@
  283    291   
            ser.write_string(&GETACCESSPOINTOUTPUT_MEMBER_DATA_SOURCE_ID, val)?;
  284    292   
        }
  285    293   
        if let Some(ref val) = self.data_source_type {
  286    294   
            ser.write_string(&GETACCESSPOINTOUTPUT_MEMBER_DATA_SOURCE_TYPE, val)?;
  287    295   
        }
  288    296   
        Ok(())
  289    297   
    }
  290    298   
}
  291    299   
impl GetAccessPointOutput {
  292    300   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  293         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  294         -
        deserializer: &mut D,
         301  +
    pub fn deserialize(
         302  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  295    303   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  296    304   
        #[allow(unused_variables, unused_mut)]
  297    305   
        let mut builder = Self::builder();
  298    306   
        #[allow(
  299    307   
            unused_variables,
  300    308   
            unreachable_code,
  301    309   
            clippy::single_match,
  302    310   
            clippy::match_single_binding,
  303    311   
            clippy::diverging_sub_expression
  304    312   
        )]
  305         -
        deserializer.read_struct(&GETACCESSPOINTOUTPUT_SCHEMA, (), |_, member, deser| {
         313  +
        deserializer.read_struct(&GETACCESSPOINTOUTPUT_SCHEMA, &mut |member, deser| {
         314  +
            match member.member_index() {
         315  +
                Some(0) => {
         316  +
                    builder.name = Some(deser.read_string(member)?);
         317  +
                }
         318  +
                Some(1) => {
         319  +
                    builder.bucket = Some(deser.read_string(member)?);
         320  +
                }
         321  +
                Some(2) => {
         322  +
                    builder.network_origin = Some(crate::types::NetworkOrigin::from(deser.read_string(member)?.as_str()));
         323  +
                }
         324  +
                Some(3) => {
         325  +
                    builder.vpc_configuration = Some(crate::types::VpcConfiguration::deserialize(deser)?);
         326  +
                }
         327  +
                Some(4) => {
         328  +
                    builder.public_access_block_configuration = Some(crate::types::PublicAccessBlockConfiguration::deserialize(deser)?);
         329  +
                }
         330  +
                Some(5) => {
         331  +
                    builder.creation_date = Some(deser.read_timestamp(member)?);
         332  +
                }
         333  +
                Some(6) => {
         334  +
                    builder.alias = Some(deser.read_string(member)?);
         335  +
                }
         336  +
                Some(7) => {
         337  +
                    builder.access_point_arn = Some(deser.read_string(member)?);
         338  +
                }
         339  +
                Some(8) => {
         340  +
                    builder.endpoints = Some(deser.read_string_string_map(member)?);
         341  +
                }
         342  +
                Some(9) => {
         343  +
                    builder.bucket_account_id = Some(deser.read_string(member)?);
         344  +
                }
         345  +
                Some(10) => {
         346  +
                    builder.data_source_id = Some(deser.read_string(member)?);
         347  +
                }
         348  +
                Some(11) => {
         349  +
                    builder.data_source_type = Some(deser.read_string(member)?);
         350  +
                }
         351  +
                Some(12) => {
         352  +
                    builder._request_id = Some(deser.read_string(member)?);
         353  +
                }
         354  +
                _ => {}
         355  +
            }
         356  +
            Ok(())
         357  +
        })?;
         358  +
        Ok(builder.build())
         359  +
    }
         360  +
}
         361  +
impl GetAccessPointOutput {
         362  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         363  +
    /// Header-bound members are read directly from headers, avoiding runtime
         364  +
    /// member iteration overhead. Body members are read via the deserializer.
         365  +
    pub fn deserialize_with_response(
         366  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         367  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         368  +
        _status: u16,
         369  +
        _body: &[u8],
         370  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         371  +
        #[allow(unused_variables, unused_mut)]
         372  +
        let mut builder = Self::builder();
         373  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         374  +
            builder._request_id = Some(val.to_string());
         375  +
        }
         376  +
        #[allow(
         377  +
            unused_variables,
         378  +
            unreachable_code,
         379  +
            clippy::single_match,
         380  +
            clippy::match_single_binding,
         381  +
            clippy::diverging_sub_expression
         382  +
        )]
         383  +
        deserializer.read_struct(&GETACCESSPOINTOUTPUT_SCHEMA, &mut |member, deser| {
  306    384   
            match member.member_index() {
  307    385   
                Some(0) => {
  308    386   
                    builder.name = Some(deser.read_string(member)?);
  309    387   
                }
  310    388   
                Some(1) => {
  311    389   
                    builder.bucket = Some(deser.read_string(member)?);
  312    390   
                }
  313    391   
                Some(2) => {
  314    392   
                    builder.network_origin = Some(crate::types::NetworkOrigin::from(deser.read_string(member)?.as_str()));
  315    393   
                }
  316    394   
                Some(3) => {
  317    395   
                    builder.vpc_configuration = Some(crate::types::VpcConfiguration::deserialize(deser)?);
  318    396   
                }
  319    397   
                Some(4) => {
  320    398   
                    builder.public_access_block_configuration = Some(crate::types::PublicAccessBlockConfiguration::deserialize(deser)?);
  321    399   
                }
  322    400   
                Some(5) => {
  323    401   
                    builder.creation_date = Some(deser.read_timestamp(member)?);
  324    402   
                }
  325    403   
                Some(6) => {
  326    404   
                    builder.alias = Some(deser.read_string(member)?);
  327    405   
                }
  328    406   
                Some(7) => {
  329    407   
                    builder.access_point_arn = Some(deser.read_string(member)?);
  330    408   
                }
  331    409   
                Some(8) => {
  332         -
                    builder.endpoints = Some({
  333         -
                        let container = if let Some(cap) = deser.container_size() {
  334         -
                            std::collections::HashMap::with_capacity(cap)
  335         -
                        } else {
  336         -
                            std::collections::HashMap::new()
  337         -
                        };
  338         -
                        deser.read_map(member, container, |mut map, key, deser| {
  339         -
                            map.insert(key, deser.read_string(member)?);
  340         -
                            Ok(map)
  341         -
                        })?
  342         -
                    });
         410  +
                    builder.endpoints = Some(deser.read_string_string_map(member)?);
  343    411   
                }
  344    412   
                Some(9) => {
  345    413   
                    builder.bucket_account_id = Some(deser.read_string(member)?);
  346    414   
                }
  347    415   
                Some(10) => {
  348    416   
                    builder.data_source_id = Some(deser.read_string(member)?);
  349    417   
                }
  350    418   
                Some(11) => {
  351    419   
                    builder.data_source_type = Some(deser.read_string(member)?);
  352    420   
                }

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/get_access_point_configuration_for_object_lambda.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 `GetAccessPointConfigurationForObjectLambda`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetAccessPointConfigurationForObjectLambda;
    6      6   
impl GetAccessPointConfigurationForObjectLambda {
    7      7   
    /// Creates a new `GetAccessPointConfigurationForObjectLambda`
    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_access_point_configuration_for_object_lambda::GetAccessPointConfigurationForObjectLambdaInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_access_point_configuration_for_object_lambda::GetAccessPointConfigurationForObjectLambdaOutput::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_access_point_configuration_for_object_lambda::GetAccessPointConfigurationForObjectLambdaInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_access_point_configuration_for_object_lambda::GetAccessPointConfigurationForObjectLambdaOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_access_point_configuration_for_object_lambda::GetAccessPointConfigurationForObjectLambdaError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -125,131 +187,194 @@
  145    151   
                    crate::operation::get_access_point_configuration_for_object_lambda::GetAccessPointConfigurationForObjectLambdaError,
  146    152   
                >::new());
  147    153   
  148    154   
        ::std::borrow::Cow::Owned(rcb)
  149    155   
    }
  150    156   
}
  151    157   
  152    158   
#[derive(Debug)]
  153    159   
struct GetAccessPointConfigurationForObjectLambdaResponseDeserializer;
  154    160   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetAccessPointConfigurationForObjectLambdaResponseDeserializer {
  155         -
    fn deserialize_nonstreaming(
         161  +
    fn deserialize_nonstreaming_with_config(
  156    162   
        &self,
  157    163   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         164  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  158    165   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  159    166   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  160    167   
        let headers = response.headers();
  161    168   
        let body = response.body().bytes().expect("body loaded");
  162    169   
        #[allow(unused_mut)]
  163    170   
        let mut force_error = false;
  164    171   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  165    172   
        let parse_result = if !success && status != 200 || force_error {
  166    173   
            crate::protocol_serde::shape_get_access_point_configuration_for_object_lambda::de_get_access_point_configuration_for_object_lambda_http_error(status, headers, body)
  167    174   
        } else {

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

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

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

@@ -1,1 +96,143 @@
   18     18   
    "com.amazonaws.s3control.synthetic",
   19     19   
    "GetAccessPointConfigurationForObjectLambdaOutput",
   20     20   
);
   21     21   
static GETACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAOUTPUT_MEMBER_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.s3control.synthetic#GetAccessPointConfigurationForObjectLambdaOutput$Configuration",
   24     24   
        "com.amazonaws.s3control.synthetic",
   25     25   
        "GetAccessPointConfigurationForObjectLambdaOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "configuration",
          28  +
    "Configuration",
   29     29   
    0,
   30     30   
);
          31  +
static GETACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          32  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          33  +
    ::aws_smithy_schema::ShapeType::String,
          34  +
    "request_id",
          35  +
    1,
          36  +
)
          37  +
.with_http_header("x-amzn-requestid");
   31     38   
static GETACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     39   
    GETACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAOUTPUT_SCHEMA_ID,
   33     40   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    &[&GETACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAOUTPUT_MEMBER_CONFIGURATION],
          41  +
    &[
          42  +
        &GETACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAOUTPUT_MEMBER_CONFIGURATION,
          43  +
        &GETACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAOUTPUT_MEMBER__REQUEST_ID,
          44  +
    ],
   35     45   
);
   36     46   
impl GetAccessPointConfigurationForObjectLambdaOutput {
   37     47   
    /// The schema for this shape.
   38     48   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAOUTPUT_SCHEMA;
   39     49   
}
   40     50   
impl ::aws_smithy_schema::serde::SerializableStruct for GetAccessPointConfigurationForObjectLambdaOutput {
   41     51   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   42     52   
    fn serialize_members(
   43     53   
        &self,
   44     54   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   45     55   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   46     56   
        if let Some(ref val) = self.configuration {
   47     57   
            ser.write_struct(&GETACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAOUTPUT_MEMBER_CONFIGURATION, val)?;
   48     58   
        }
   49     59   
        Ok(())
   50     60   
    }
   51     61   
}
   52     62   
impl GetAccessPointConfigurationForObjectLambdaOutput {
   53     63   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   54         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   55         -
        deserializer: &mut D,
          64  +
    pub fn deserialize(
          65  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   56     66   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   57     67   
        #[allow(unused_variables, unused_mut)]
   58     68   
        let mut builder = Self::builder();
   59     69   
        #[allow(
   60     70   
            unused_variables,
   61     71   
            unreachable_code,
   62     72   
            clippy::single_match,
   63     73   
            clippy::match_single_binding,
   64     74   
            clippy::diverging_sub_expression
   65     75   
        )]
   66         -
        deserializer.read_struct(&GETACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAOUTPUT_SCHEMA, (), |_, member, deser| {
          76  +
        deserializer.read_struct(&GETACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAOUTPUT_SCHEMA, &mut |member, deser| {
          77  +
            match member.member_index() {
          78  +
                Some(0) => {
          79  +
                    builder.configuration = Some(crate::types::ObjectLambdaConfiguration::deserialize(deser)?);
          80  +
                }
          81  +
                Some(1) => {
          82  +
                    builder._request_id = Some(deser.read_string(member)?);
          83  +
                }
          84  +
                _ => {}
          85  +
            }
          86  +
            Ok(())
          87  +
        })?;
          88  +
        Ok(builder.build())
          89  +
    }
          90  +
}
          91  +
impl GetAccessPointConfigurationForObjectLambdaOutput {
          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  +
        #[allow(
         107  +
            unused_variables,
         108  +
            unreachable_code,
         109  +
            clippy::single_match,
         110  +
            clippy::match_single_binding,
         111  +
            clippy::diverging_sub_expression
         112  +
        )]
         113  +
        deserializer.read_struct(&GETACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAOUTPUT_SCHEMA, &mut |member, deser| {
   67    114   
            match member.member_index() {
   68    115   
                Some(0) => {
   69    116   
                    builder.configuration = Some(crate::types::ObjectLambdaConfiguration::deserialize(deser)?);
   70    117   
                }
   71    118   
                _ => {}
   72    119   
            }
   73    120   
            Ok(())
   74    121   
        })?;
   75    122   
        Ok(builder.build())
   76    123   
    }

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/get_access_point_for_object_lambda.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 `GetAccessPointForObjectLambda`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetAccessPointForObjectLambda;
    6      6   
impl GetAccessPointForObjectLambda {
    7      7   
    /// Creates a new `GetAccessPointForObjectLambda`
    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_access_point_for_object_lambda::GetAccessPointForObjectLambdaInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_access_point_for_object_lambda::GetAccessPointForObjectLambdaOutput::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_access_point_for_object_lambda::GetAccessPointForObjectLambdaInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_access_point_for_object_lambda::GetAccessPointForObjectLambdaOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_access_point_for_object_lambda::GetAccessPointForObjectLambdaError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::get_access_point_for_object_lambda::GetAccessPointForObjectLambdaError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct GetAccessPointForObjectLambdaResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetAccessPointForObjectLambdaResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159    166   
        let headers = response.headers();
  160    167   
        let body = response.body().bytes().expect("body loaded");
  161    168   
        #[allow(unused_mut)]
  162    169   
        let mut force_error = false;
  163    170   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164    171   
        let parse_result = if !success && status != 200 || force_error {
  165    172   
            crate::protocol_serde::shape_get_access_point_for_object_lambda::de_get_access_point_for_object_lambda_http_error(status, headers, body)
  166    173   
        } else {