AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36

Files changed:

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

@@ -10,10 +138,189 @@
   30     30   
    "com.amazonaws.s3control.synthetic",
   31     31   
    "PutAccessGrantsInstanceResourcePolicyOutput",
   32     32   
);
   33     33   
static PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_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#PutAccessGrantsInstanceResourcePolicyOutput$Policy",
   36     36   
        "com.amazonaws.s3control.synthetic",
   37     37   
        "PutAccessGrantsInstanceResourcePolicyOutput",
   38     38   
    ),
   39     39   
    ::aws_smithy_schema::ShapeType::String,
   40         -
    "policy",
          40  +
    "Policy",
   41     41   
    0,
   42     42   
);
   43     43   
static PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_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#PutAccessGrantsInstanceResourcePolicyOutput$Organization",
   46     46   
        "com.amazonaws.s3control.synthetic",
   47     47   
        "PutAccessGrantsInstanceResourcePolicyOutput",
   48     48   
    ),
   49     49   
    ::aws_smithy_schema::ShapeType::String,
   50         -
    "organization",
          50  +
    "Organization",
   51     51   
    1,
   52     52   
);
   53     53   
static PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_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#PutAccessGrantsInstanceResourcePolicyOutput$CreatedAt",
   56     56   
        "com.amazonaws.s3control.synthetic",
   57     57   
        "PutAccessGrantsInstanceResourcePolicyOutput",
   58     58   
    ),
   59     59   
    ::aws_smithy_schema::ShapeType::Timestamp,
   60         -
    "created_at",
          60  +
    "CreatedAt",
   61     61   
    2,
   62     62   
);
          63  +
static PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_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 PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   64     71   
    PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_SCHEMA_ID,
   65     72   
    ::aws_smithy_schema::ShapeType::Structure,
   66     73   
    &[
   67     74   
        &PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_MEMBER_POLICY,
   68     75   
        &PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_MEMBER_ORGANIZATION,
   69     76   
        &PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_MEMBER_CREATED_AT,
          77  +
        &PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_MEMBER__REQUEST_ID,
   70     78   
    ],
   71     79   
);
   72     80   
impl PutAccessGrantsInstanceResourcePolicyOutput {
   73     81   
    /// The schema for this shape.
   74     82   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_SCHEMA;
   75     83   
}
   76     84   
impl ::aws_smithy_schema::serde::SerializableStruct for PutAccessGrantsInstanceResourcePolicyOutput {
   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(&PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_MEMBER_POLICY, val)?;
   84     92   
        }
   85     93   
        if let Some(ref val) = self.organization {
   86     94   
            ser.write_string(&PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_MEMBER_ORGANIZATION, val)?;
   87     95   
        }
   88     96   
        if let Some(ref val) = self.created_at {
   89     97   
            ser.write_timestamp(&PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_MEMBER_CREATED_AT, val)?;
   90     98   
        }
   91     99   
        Ok(())
   92    100   
    }
   93    101   
}
   94    102   
impl PutAccessGrantsInstanceResourcePolicyOutput {
   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(&PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_SCHEMA, (), |_, member, deser| {
         116  +
        deserializer.read_struct(&PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_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 PutAccessGrantsInstanceResourcePolicyOutput {
         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(&PUTACCESSGRANTSINSTANCERESOURCEPOLICYOUTPUT_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/put_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 `PutAccessPointConfigurationForObjectLambda`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutAccessPointConfigurationForObjectLambda;
    6      6   
impl PutAccessPointConfigurationForObjectLambda {
    7      7   
    /// Creates a new `PutAccessPointConfigurationForObjectLambda`
    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::put_access_point_configuration_for_object_lambda::PutAccessPointConfigurationForObjectLambdaInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::put_access_point_configuration_for_object_lambda::PutAccessPointConfigurationForObjectLambdaOutput::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::put_access_point_configuration_for_object_lambda::PutAccessPointConfigurationForObjectLambdaInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::put_access_point_configuration_for_object_lambda::PutAccessPointConfigurationForObjectLambdaOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::put_access_point_configuration_for_object_lambda::PutAccessPointConfigurationForObjectLambdaError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -128,134 +187,194 @@
  148    154   
        ::std::borrow::Cow::Owned(rcb)
  149    155   
    }
  150    156   
}
  151    157   
  152    158   
#[derive(Debug)]
  153    159   
struct PutAccessPointConfigurationForObjectLambdaResponseDeserializer;
  154    160   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutAccessPointConfigurationForObjectLambdaResponseDeserializer {
  155    161   
    fn deserialize_nonstreaming(
  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_put_access_point_configuration_for_object_lambda::de_put_access_point_configuration_for_object_lambda_http_error(status, headers, body)
  167    174   
        } else {

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

@@ -9,9 +154,201 @@
   29     29   
    "com.amazonaws.s3control.synthetic",
   30     30   
    "PutAccessPointConfigurationForObjectLambdaInput",
   31     31   
);
   32     32   
static PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   33     33   
    ::aws_smithy_schema::ShapeId::from_static(
   34     34   
        "com.amazonaws.s3control.synthetic#PutAccessPointConfigurationForObjectLambdaInput$AccountId",
   35     35   
        "com.amazonaws.s3control.synthetic",
   36     36   
        "PutAccessPointConfigurationForObjectLambdaInput",
   37     37   
    ),
   38     38   
    ::aws_smithy_schema::ShapeType::String,
   39         -
    "account_id",
          39  +
    "AccountId",
   40     40   
    0,
   41     41   
)
   42     42   
.with_host_label()
   43     43   
.with_http_header("x-amz-account-id");
   44     44   
static PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static(
   46     46   
        "com.amazonaws.s3control.synthetic#PutAccessPointConfigurationForObjectLambdaInput$Name",
   47     47   
        "com.amazonaws.s3control.synthetic",
   48     48   
        "PutAccessPointConfigurationForObjectLambdaInput",
   49     49   
    ),
   50     50   
    ::aws_smithy_schema::ShapeType::String,
   51         -
    "name",
          51  +
    "Name",
   52     52   
    1,
   53     53   
)
   54     54   
.with_http_label();
   55     55   
static PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.s3control.synthetic#PutAccessPointConfigurationForObjectLambdaInput$Configuration",
   58     58   
        "com.amazonaws.s3control.synthetic",
   59     59   
        "PutAccessPointConfigurationForObjectLambdaInput",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::Structure,
   62         -
    "configuration",
          62  +
    "Configuration",
   63     63   
    2,
   64     64   
);
   65     65   
static PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   66     66   
    PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_SCHEMA_ID,
   67     67   
    ::aws_smithy_schema::ShapeType::Structure,
   68     68   
    &[
   69     69   
        &PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_ACCOUNT_ID,
   70     70   
        &PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_NAME,
   71     71   
        &PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_CONFIGURATION,
   72     72   
    ],
   73         -
);
          73  +
)
          74  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          75  +
    "PUT",
          76  +
    "/v20180820/accesspointforobjectlambda/{Name}/configuration",
          77  +
    None,
          78  +
));
   74     79   
impl PutAccessPointConfigurationForObjectLambdaInput {
   75     80   
    /// The schema for this shape.
   76     81   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_SCHEMA;
   77     82   
}
   78     83   
impl ::aws_smithy_schema::serde::SerializableStruct for PutAccessPointConfigurationForObjectLambdaInput {
   79     84   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   80     85   
    fn serialize_members(
   81     86   
        &self,
   82     87   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   83     88   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   84     89   
        if let Some(ref val) = self.account_id {
   85     90   
            ser.write_string(&PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_ACCOUNT_ID, val)?;
   86     91   
        }
   87     92   
        if let Some(ref val) = self.name {
   88     93   
            ser.write_string(&PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_NAME, val)?;
   89     94   
        }
   90     95   
        if let Some(ref val) = self.configuration {
   91     96   
            ser.write_struct(&PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_MEMBER_CONFIGURATION, val)?;
   92     97   
        }
   93     98   
        Ok(())
   94     99   
    }
   95    100   
}
   96    101   
impl PutAccessPointConfigurationForObjectLambdaInput {
   97    102   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   98         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   99         -
        deserializer: &mut D,
         103  +
    pub fn deserialize(
         104  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  100    105   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  101    106   
        #[allow(unused_variables, unused_mut)]
  102    107   
        let mut builder = Self::builder();
  103    108   
        #[allow(
  104    109   
            unused_variables,
  105    110   
            unreachable_code,
  106    111   
            clippy::single_match,
  107    112   
            clippy::match_single_binding,
  108    113   
            clippy::diverging_sub_expression
  109    114   
        )]
  110         -
        deserializer.read_struct(&PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_SCHEMA, (), |_, member, deser| {
         115  +
        deserializer.read_struct(&PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_SCHEMA, &mut |member, deser| {
  111    116   
            match member.member_index() {
  112    117   
                Some(0) => {
  113    118   
                    builder.account_id = Some(deser.read_string(member)?);
  114    119   
                }
  115    120   
                Some(1) => {
  116    121   
                    builder.name = Some(deser.read_string(member)?);
  117    122   
                }
  118    123   
                Some(2) => {
  119    124   
                    builder.configuration = Some(crate::types::ObjectLambdaConfiguration::deserialize(deser)?);
  120    125   
                }
  121    126   
                _ => {}
  122    127   
            }
  123    128   
            Ok(())
  124    129   
        })?;
         130  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         131  +
        builder.name = builder.name.or(Some(String::new()));
         132  +
        builder
         133  +
            .build()
         134  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         135  +
    }
         136  +
}
         137  +
impl PutAccessPointConfigurationForObjectLambdaInput {
         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-amz-account-id") {
         150  +
            builder.account_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(&PUTACCESSPOINTCONFIGURATIONFOROBJECTLAMBDAINPUT_SCHEMA, &mut |member, deser| {
         160  +
            match member.member_index() {
         161  +
                Some(0) => { /* read from headers above */ }
         162  +
                Some(1) => {
         163  +
                    builder.name = Some(deser.read_string(member)?);
         164  +
                }
         165  +
                Some(2) => {
         166  +
                    builder.configuration = Some(crate::types::ObjectLambdaConfiguration::deserialize(deser)?);
         167  +
                }
         168  +
                _ => {}
         169  +
            }
         170  +
            Ok(())
         171  +
        })?;
  125    172   
        builder
  126    173   
            .build()
  127    174   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  128    175   
    }
  129    176   
}
  130    177   
impl PutAccessPointConfigurationForObjectLambdaInput {
  131    178   
    /// Creates a new builder-style object to manufacture [`PutAccessPointConfigurationForObjectLambdaInput`](crate::operation::put_access_point_configuration_for_object_lambda::PutAccessPointConfigurationForObjectLambdaInput).
  132    179   
    pub fn builder(
  133    180   
    ) -> crate::operation::put_access_point_configuration_for_object_lambda::builders::PutAccessPointConfigurationForObjectLambdaInputBuilder {
  134    181   
        crate::operation::put_access_point_configuration_for_object_lambda::builders::PutAccessPointConfigurationForObjectLambdaInputBuilder::default(

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

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

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `PutAccessPointPolicy`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutAccessPointPolicy;
    6      6   
impl PutAccessPointPolicy {
    7      7   
    /// Creates a new `PutAccessPointPolicy`
    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::put_access_point_policy::PutAccessPointPolicyInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::put_access_point_policy::PutAccessPointPolicyOutput::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::put_access_point_policy::PutAccessPointPolicyInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::put_access_point_policy::PutAccessPointPolicyOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::put_access_point_policy::PutAccessPointPolicyError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -121,125 +180,185 @@
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct PutAccessPointPolicyResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutAccessPointPolicyResponseDeserializer {
  148    152   
    fn deserialize_nonstreaming(
  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_put_access_point_policy::de_put_access_point_policy_http_error(status, headers, body)
  160    165   
        } else {

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_access_point_policy_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 `PutAccessPointPolicyForObjectLambda`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutAccessPointPolicyForObjectLambda;
    6      6   
impl PutAccessPointPolicyForObjectLambda {
    7      7   
    /// Creates a new `PutAccessPointPolicyForObjectLambda`
    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::put_access_point_policy_for_object_lambda::PutAccessPointPolicyForObjectLambdaInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::put_access_point_policy_for_object_lambda::PutAccessPointPolicyForObjectLambdaOutput::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::put_access_point_policy_for_object_lambda::PutAccessPointPolicyForObjectLambdaInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::put_access_point_policy_for_object_lambda::PutAccessPointPolicyForObjectLambdaOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::put_access_point_policy_for_object_lambda::PutAccessPointPolicyForObjectLambdaError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -127,133 +186,193 @@
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct PutAccessPointPolicyForObjectLambdaResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutAccessPointPolicyForObjectLambdaResponseDeserializer {
  154    160   
    fn deserialize_nonstreaming(
  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_put_access_point_policy_for_object_lambda::de_put_access_point_policy_for_object_lambda_http_error(
  166    173   
                status, headers, body,

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_access_point_scope.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 `PutAccessPointScope`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutAccessPointScope;
    6      6   
impl PutAccessPointScope {
    7      7   
    /// Creates a new `PutAccessPointScope`
    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::put_access_point_scope::PutAccessPointScopeInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::put_access_point_scope::PutAccessPointScopeOutput::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::put_access_point_scope::PutAccessPointScopeInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::put_access_point_scope::PutAccessPointScopeOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::put_access_point_scope::PutAccessPointScopeError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -121,125 +180,185 @@
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct PutAccessPointScopeResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutAccessPointScopeResponseDeserializer {
  148    152   
    fn deserialize_nonstreaming(
  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_put_access_point_scope::de_put_access_point_scope_http_error(status, headers, body)
  160    165   
        } else {

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

@@ -9,9 +154,201 @@
   29     29   
    "com.amazonaws.s3control.synthetic",
   30     30   
    "PutAccessPointScopeInput",
   31     31   
);
   32     32   
static PUTACCESSPOINTSCOPEINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   33     33   
    ::aws_smithy_schema::ShapeId::from_static(
   34     34   
        "com.amazonaws.s3control.synthetic#PutAccessPointScopeInput$AccountId",
   35     35   
        "com.amazonaws.s3control.synthetic",
   36     36   
        "PutAccessPointScopeInput",
   37     37   
    ),
   38     38   
    ::aws_smithy_schema::ShapeType::String,
   39         -
    "account_id",
          39  +
    "AccountId",
   40     40   
    0,
   41     41   
)
   42     42   
.with_host_label()
   43     43   
.with_http_header("x-amz-account-id");
   44     44   
static PUTACCESSPOINTSCOPEINPUT_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static(
   46     46   
        "com.amazonaws.s3control.synthetic#PutAccessPointScopeInput$Name",
   47     47   
        "com.amazonaws.s3control.synthetic",
   48     48   
        "PutAccessPointScopeInput",
   49     49   
    ),
   50     50   
    ::aws_smithy_schema::ShapeType::String,
   51         -
    "name",
          51  +
    "Name",
   52     52   
    1,
   53     53   
)
   54     54   
.with_http_label();
   55     55   
static PUTACCESSPOINTSCOPEINPUT_MEMBER_SCOPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.s3control.synthetic#PutAccessPointScopeInput$Scope",
   58     58   
        "com.amazonaws.s3control.synthetic",
   59     59   
        "PutAccessPointScopeInput",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::Structure,
   62         -
    "scope",
          62  +
    "Scope",
   63     63   
    2,
   64     64   
);
   65     65   
static PUTACCESSPOINTSCOPEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   66     66   
    PUTACCESSPOINTSCOPEINPUT_SCHEMA_ID,
   67     67   
    ::aws_smithy_schema::ShapeType::Structure,
   68     68   
    &[
   69     69   
        &PUTACCESSPOINTSCOPEINPUT_MEMBER_ACCOUNT_ID,
   70     70   
        &PUTACCESSPOINTSCOPEINPUT_MEMBER_NAME,
   71     71   
        &PUTACCESSPOINTSCOPEINPUT_MEMBER_SCOPE,
   72     72   
    ],
   73         -
);
          73  +
)
          74  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          75  +
    "PUT",
          76  +
    "/v20180820/accesspoint/{Name}/scope",
          77  +
    None,
          78  +
));
   74     79   
impl PutAccessPointScopeInput {
   75     80   
    /// The schema for this shape.
   76     81   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTACCESSPOINTSCOPEINPUT_SCHEMA;
   77     82   
}
   78     83   
impl ::aws_smithy_schema::serde::SerializableStruct for PutAccessPointScopeInput {
   79     84   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   80     85   
    fn serialize_members(
   81     86   
        &self,
   82     87   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   83     88   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   84     89   
        if let Some(ref val) = self.account_id {
   85     90   
            ser.write_string(&PUTACCESSPOINTSCOPEINPUT_MEMBER_ACCOUNT_ID, val)?;
   86     91   
        }
   87     92   
        if let Some(ref val) = self.name {
   88     93   
            ser.write_string(&PUTACCESSPOINTSCOPEINPUT_MEMBER_NAME, val)?;
   89     94   
        }
   90     95   
        if let Some(ref val) = self.scope {
   91     96   
            ser.write_struct(&PUTACCESSPOINTSCOPEINPUT_MEMBER_SCOPE, val)?;
   92     97   
        }
   93     98   
        Ok(())
   94     99   
    }
   95    100   
}
   96    101   
impl PutAccessPointScopeInput {
   97    102   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   98         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   99         -
        deserializer: &mut D,
         103  +
    pub fn deserialize(
         104  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  100    105   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  101    106   
        #[allow(unused_variables, unused_mut)]
  102    107   
        let mut builder = Self::builder();
  103    108   
        #[allow(
  104    109   
            unused_variables,
  105    110   
            unreachable_code,
  106    111   
            clippy::single_match,
  107    112   
            clippy::match_single_binding,
  108    113   
            clippy::diverging_sub_expression
  109    114   
        )]
  110         -
        deserializer.read_struct(&PUTACCESSPOINTSCOPEINPUT_SCHEMA, (), |_, member, deser| {
         115  +
        deserializer.read_struct(&PUTACCESSPOINTSCOPEINPUT_SCHEMA, &mut |member, deser| {
  111    116   
            match member.member_index() {
  112    117   
                Some(0) => {
  113    118   
                    builder.account_id = Some(deser.read_string(member)?);
  114    119   
                }
  115    120   
                Some(1) => {
  116    121   
                    builder.name = Some(deser.read_string(member)?);
  117    122   
                }
  118    123   
                Some(2) => {
  119    124   
                    builder.scope = Some(crate::types::Scope::deserialize(deser)?);
  120    125   
                }
  121    126   
                _ => {}
  122    127   
            }
  123    128   
            Ok(())
  124    129   
        })?;
         130  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         131  +
        builder.name = builder.name.or(Some(String::new()));
         132  +
        builder
         133  +
            .build()
         134  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         135  +
    }
         136  +
}
         137  +
impl PutAccessPointScopeInput {
         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-amz-account-id") {
         150  +
            builder.account_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(&PUTACCESSPOINTSCOPEINPUT_SCHEMA, &mut |member, deser| {
         160  +
            match member.member_index() {
         161  +
                Some(0) => { /* read from headers above */ }
         162  +
                Some(1) => {
         163  +
                    builder.name = Some(deser.read_string(member)?);
         164  +
                }
         165  +
                Some(2) => {
         166  +
                    builder.scope = Some(crate::types::Scope::deserialize(deser)?);
         167  +
                }
         168  +
                _ => {}
         169  +
            }
         170  +
            Ok(())
         171  +
        })?;
  125    172   
        builder
  126    173   
            .build()
  127    174   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  128    175   
    }
  129    176   
}
  130    177   
impl PutAccessPointScopeInput {
  131    178   
    /// Creates a new builder-style object to manufacture [`PutAccessPointScopeInput`](crate::operation::put_access_point_scope::PutAccessPointScopeInput).
  132    179   
    pub fn builder() -> crate::operation::put_access_point_scope::builders::PutAccessPointScopeInputBuilder {
  133    180   
        crate::operation::put_access_point_scope::builders::PutAccessPointScopeInputBuilder::default()
  134    181   
    }

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

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

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

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `PutBucketLifecycleConfiguration`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutBucketLifecycleConfiguration;
    6      6   
impl PutBucketLifecycleConfiguration {
    7      7   
    /// Creates a new `PutBucketLifecycleConfiguration`
    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::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationOutput::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::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -127,133 +186,193 @@
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct PutBucketLifecycleConfigurationResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutBucketLifecycleConfigurationResponseDeserializer {
  154    160   
    fn deserialize_nonstreaming(
  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_put_bucket_lifecycle_configuration::de_put_bucket_lifecycle_configuration_http_error(status, headers, body)
  166    173   
        } else {

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

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

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

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