AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406 (ignoring whitespace)

Files changed:

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

@@ -21,21 +195,249 @@
   41     41   
    "com.amazonaws.s3control.synthetic",
   42     42   
    "PutStorageLensConfigurationInput",
   43     43   
);
   44     44   
static PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_CONFIG_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static(
   46     46   
        "com.amazonaws.s3control.synthetic#PutStorageLensConfigurationInput$ConfigId",
   47     47   
        "com.amazonaws.s3control.synthetic",
   48     48   
        "PutStorageLensConfigurationInput",
   49     49   
    ),
   50     50   
    ::aws_smithy_schema::ShapeType::String,
   51         -
    "config_id",
          51  +
    "ConfigId",
   52     52   
    0,
   53     53   
)
   54     54   
.with_http_label();
   55     55   
static PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.s3control.synthetic#PutStorageLensConfigurationInput$AccountId",
   58     58   
        "com.amazonaws.s3control.synthetic",
   59     59   
        "PutStorageLensConfigurationInput",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::String,
   62         -
    "account_id",
          62  +
    "AccountId",
   63     63   
    1,
   64     64   
)
   65     65   
.with_host_label()
   66     66   
.with_http_header("x-amz-account-id");
   67     67   
static PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_STORAGE_LENS_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   68     68   
    ::aws_smithy_schema::ShapeId::from_static(
   69     69   
        "com.amazonaws.s3control.synthetic#PutStorageLensConfigurationInput$StorageLensConfiguration",
   70     70   
        "com.amazonaws.s3control.synthetic",
   71     71   
        "PutStorageLensConfigurationInput",
   72     72   
    ),
   73     73   
    ::aws_smithy_schema::ShapeType::Structure,
   74         -
    "storage_lens_configuration",
          74  +
    "StorageLensConfiguration",
   75     75   
    2,
   76     76   
);
   77     77   
static PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.s3control.synthetic#PutStorageLensConfigurationInput$Tags",
   80     80   
        "com.amazonaws.s3control.synthetic",
   81     81   
        "PutStorageLensConfigurationInput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::List,
   84         -
    "tags",
          84  +
    "Tags",
   85     85   
    3,
   86     86   
);
   87     87   
static PUTSTORAGELENSCONFIGURATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   88     88   
    PUTSTORAGELENSCONFIGURATIONINPUT_SCHEMA_ID,
   89     89   
    ::aws_smithy_schema::ShapeType::Structure,
   90     90   
    &[
   91     91   
        &PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_CONFIG_ID,
   92     92   
        &PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_ACCOUNT_ID,
   93     93   
        &PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_STORAGE_LENS_CONFIGURATION,
   94     94   
        &PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_TAGS,
   95     95   
    ],
   96         -
);
          96  +
)
          97  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          98  +
    "PUT",
          99  +
    "/v20180820/storagelens/{ConfigId}",
         100  +
    None,
         101  +
));
   97    102   
impl PutStorageLensConfigurationInput {
   98    103   
    /// The schema for this shape.
   99    104   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTSTORAGELENSCONFIGURATIONINPUT_SCHEMA;
  100    105   
}
  101    106   
impl ::aws_smithy_schema::serde::SerializableStruct for PutStorageLensConfigurationInput {
  102    107   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  103    108   
    fn serialize_members(
  104    109   
        &self,
  105    110   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  106    111   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  107    112   
        if let Some(ref val) = self.config_id {
  108    113   
            ser.write_string(&PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_CONFIG_ID, val)?;
  109    114   
        }
  110    115   
        if let Some(ref val) = self.account_id {
  111    116   
            ser.write_string(&PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_ACCOUNT_ID, val)?;
  112    117   
        }
  113    118   
        if let Some(ref val) = self.storage_lens_configuration {
  114    119   
            ser.write_struct(&PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_STORAGE_LENS_CONFIGURATION, val)?;
  115    120   
        }
  116    121   
        if let Some(ref val) = self.tags {
  117    122   
            ser.write_list(
  118    123   
                &PUTSTORAGELENSCONFIGURATIONINPUT_MEMBER_TAGS,
  119    124   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  120    125   
                    for item in val {
  121    126   
                        ser.write_struct(crate::types::StorageLensTag::SCHEMA, item)?;
  122    127   
                    }
  123    128   
                    Ok(())
  124    129   
                },
  125    130   
            )?;
  126    131   
        }
  127    132   
        Ok(())
  128    133   
    }
  129    134   
}
  130    135   
impl PutStorageLensConfigurationInput {
  131    136   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  132         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  133         -
        deserializer: &mut D,
         137  +
    pub fn deserialize(
         138  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  134    139   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  135    140   
        #[allow(unused_variables, unused_mut)]
  136    141   
        let mut builder = Self::builder();
  137    142   
        #[allow(
  138    143   
            unused_variables,
  139    144   
            unreachable_code,
  140    145   
            clippy::single_match,
  141    146   
            clippy::match_single_binding,
  142    147   
            clippy::diverging_sub_expression
  143    148   
        )]
  144         -
        deserializer.read_struct(&PUTSTORAGELENSCONFIGURATIONINPUT_SCHEMA, (), |_, member, deser| {
         149  +
        deserializer.read_struct(&PUTSTORAGELENSCONFIGURATIONINPUT_SCHEMA, &mut |member, deser| {
  145    150   
            match member.member_index() {
  146    151   
                Some(0) => {
  147    152   
                    builder.config_id = Some(deser.read_string(member)?);
  148    153   
                }
  149    154   
                Some(1) => {
  150    155   
                    builder.account_id = Some(deser.read_string(member)?);
  151    156   
                }
  152    157   
                Some(2) => {
  153    158   
                    builder.storage_lens_configuration = Some(crate::types::StorageLensConfiguration::deserialize(deser)?);
  154    159   
                }
  155    160   
                Some(3) => {
  156    161   
                    builder.tags = Some({
  157         -
                        let container = if let Some(cap) = deser.container_size() {
  158         -
                            Vec::with_capacity(cap)
  159         -
                        } else {
  160         -
                            Vec::new()
  161         -
                        };
  162         -
                        deser.read_list(member, container, |mut list, deser| {
  163         -
                            list.push(crate::types::StorageLensTag::deserialize(deser)?);
  164         -
                            Ok(list)
  165         -
                        })?
         162  +
                        let mut container = Vec::new();
         163  +
                        deser.read_list(member, &mut |deser| {
         164  +
                            container.push(crate::types::StorageLensTag::deserialize(deser)?);
         165  +
                            Ok(())
         166  +
                        })?;
         167  +
                        container
         168  +
                    });
         169  +
                }
         170  +
                _ => {}
         171  +
            }
         172  +
            Ok(())
         173  +
        })?;
         174  +
        builder.config_id = builder.config_id.or(Some(String::new()));
         175  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         176  +
        builder
         177  +
            .build()
         178  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         179  +
    }
         180  +
}
         181  +
impl PutStorageLensConfigurationInput {
         182  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         183  +
    /// Header-bound members are read directly from headers, avoiding runtime
         184  +
    /// member iteration overhead. Body members are read via the deserializer.
         185  +
    pub fn deserialize_with_response(
         186  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         187  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         188  +
        _status: u16,
         189  +
        _body: &[u8],
         190  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         191  +
        #[allow(unused_variables, unused_mut)]
         192  +
        let mut builder = Self::builder();
         193  +
        if let Some(val) = headers.get("x-amz-account-id") {
         194  +
            builder.account_id = Some(val.to_string());
         195  +
        }
         196  +
        #[allow(
         197  +
            unused_variables,
         198  +
            unreachable_code,
         199  +
            clippy::single_match,
         200  +
            clippy::match_single_binding,
         201  +
            clippy::diverging_sub_expression
         202  +
        )]
         203  +
        deserializer.read_struct(&PUTSTORAGELENSCONFIGURATIONINPUT_SCHEMA, &mut |member, deser| {
         204  +
            match member.member_index() {
         205  +
                Some(0) => {
         206  +
                    builder.config_id = Some(deser.read_string(member)?);
         207  +
                }
         208  +
                Some(1) => { /* read from headers above */ }
         209  +
                Some(2) => {
         210  +
                    builder.storage_lens_configuration = Some(crate::types::StorageLensConfiguration::deserialize(deser)?);
         211  +
                }
         212  +
                Some(3) => {
         213  +
                    builder.tags = Some({
         214  +
                        let mut container = Vec::new();
         215  +
                        deser.read_list(member, &mut |deser| {
         216  +
                            container.push(crate::types::StorageLensTag::deserialize(deser)?);
         217  +
                            Ok(())
         218  +
                        })?;
         219  +
                        container
  166    220   
                    });
  167    221   
                }
  168    222   
                _ => {}
  169    223   
            }
  170    224   
            Ok(())
  171    225   
        })?;
  172    226   
        builder
  173    227   
            .build()
  174    228   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  175    229   
    }

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_storage_lens_configuration/_put_storage_lens_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 PutStorageLensConfigurationOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static PUTSTORAGELENSCONFIGURATIONOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.s3control.synthetic#PutStorageLensConfigurationOutput",
   10     10   
    "com.amazonaws.s3control.synthetic",
   11     11   
    "PutStorageLensConfigurationOutput",
   12     12   
);
          13  +
static PUTSTORAGELENSCONFIGURATIONOUTPUT_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 PUTSTORAGELENSCONFIGURATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   14     21   
    PUTSTORAGELENSCONFIGURATIONOUTPUT_SCHEMA_ID,
   15     22   
    ::aws_smithy_schema::ShapeType::Structure,
   16         -
    &[],
          23  +
    &[&PUTSTORAGELENSCONFIGURATIONOUTPUT_MEMBER__REQUEST_ID],
   17     24   
);
   18     25   
impl PutStorageLensConfigurationOutput {
   19     26   
    /// The schema for this shape.
   20     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTSTORAGELENSCONFIGURATIONOUTPUT_SCHEMA;
   21     28   
}
   22     29   
impl ::aws_smithy_schema::serde::SerializableStruct for PutStorageLensConfigurationOutput {
   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 PutStorageLensConfigurationOutput {
   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(&PUTSTORAGELENSCONFIGURATIONOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&PUTSTORAGELENSCONFIGURATIONOUTPUT_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 PutStorageLensConfigurationOutput {
          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 PutStorageLensConfigurationOutput {
   55     83   
    fn request_id(&self) -> Option<&str> {
   56     84   
        self._request_id.as_deref()
   57     85   
    }
   58     86   
}
   59     87   
impl PutStorageLensConfigurationOutput {
   60     88   
    /// Creates a new builder-style object to manufacture [`PutStorageLensConfigurationOutput`](crate::operation::put_storage_lens_configuration::PutStorageLensConfigurationOutput).
   61     89   
    pub fn builder() -> crate::operation::put_storage_lens_configuration::builders::PutStorageLensConfigurationOutputBuilder {
   62     90   
        crate::operation::put_storage_lens_configuration::builders::PutStorageLensConfigurationOutputBuilder::default()
   63     91   
    }

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

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

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

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/put_storage_lens_configuration_tagging/_put_storage_lens_configuration_tagging_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 PutStorageLensConfigurationTaggingOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static PUTSTORAGELENSCONFIGURATIONTAGGINGOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.s3control.synthetic#PutStorageLensConfigurationTaggingOutput",
   10     10   
    "com.amazonaws.s3control.synthetic",
   11     11   
    "PutStorageLensConfigurationTaggingOutput",
   12     12   
);
          13  +
static PUTSTORAGELENSCONFIGURATIONTAGGINGOUTPUT_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 PUTSTORAGELENSCONFIGURATIONTAGGINGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   14     21   
    PUTSTORAGELENSCONFIGURATIONTAGGINGOUTPUT_SCHEMA_ID,
   15     22   
    ::aws_smithy_schema::ShapeType::Structure,
   16         -
    &[],
          23  +
    &[&PUTSTORAGELENSCONFIGURATIONTAGGINGOUTPUT_MEMBER__REQUEST_ID],
   17     24   
);
   18     25   
impl PutStorageLensConfigurationTaggingOutput {
   19     26   
    /// The schema for this shape.
   20     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTSTORAGELENSCONFIGURATIONTAGGINGOUTPUT_SCHEMA;
   21     28   
}
   22     29   
impl ::aws_smithy_schema::serde::SerializableStruct for PutStorageLensConfigurationTaggingOutput {
   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 PutStorageLensConfigurationTaggingOutput {
   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(&PUTSTORAGELENSCONFIGURATIONTAGGINGOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&PUTSTORAGELENSCONFIGURATIONTAGGINGOUTPUT_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 PutStorageLensConfigurationTaggingOutput {
          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 PutStorageLensConfigurationTaggingOutput {
   55     83   
    fn request_id(&self) -> Option<&str> {
   56     84   
        self._request_id.as_deref()
   57     85   
    }
   58     86   
}
   59     87   
impl PutStorageLensConfigurationTaggingOutput {
   60     88   
    /// Creates a new builder-style object to manufacture [`PutStorageLensConfigurationTaggingOutput`](crate::operation::put_storage_lens_configuration_tagging::PutStorageLensConfigurationTaggingOutput).
   61     89   
    pub fn builder() -> crate::operation::put_storage_lens_configuration_tagging::builders::PutStorageLensConfigurationTaggingOutputBuilder {
   62     90   
        crate::operation::put_storage_lens_configuration_tagging::builders::PutStorageLensConfigurationTaggingOutputBuilder::default()
   63     91   
    }

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

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

@@ -11,11 +168,220 @@
   31     31   
    "com.amazonaws.s3control.synthetic",
   32     32   
    "SubmitMultiRegionAccessPointRoutesInput",
   33     33   
);
   34     34   
static SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   35     35   
    ::aws_smithy_schema::ShapeId::from_static(
   36     36   
        "com.amazonaws.s3control.synthetic#SubmitMultiRegionAccessPointRoutesInput$AccountId",
   37     37   
        "com.amazonaws.s3control.synthetic",
   38     38   
        "SubmitMultiRegionAccessPointRoutesInput",
   39     39   
    ),
   40     40   
    ::aws_smithy_schema::ShapeType::String,
   41         -
    "account_id",
          41  +
    "AccountId",
   42     42   
    0,
   43     43   
)
   44     44   
.with_host_label()
   45     45   
.with_http_header("x-amz-account-id");
   46     46   
static SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_MEMBER_MRAP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   47     47   
    ::aws_smithy_schema::ShapeId::from_static(
   48     48   
        "com.amazonaws.s3control.synthetic#SubmitMultiRegionAccessPointRoutesInput$Mrap",
   49     49   
        "com.amazonaws.s3control.synthetic",
   50     50   
        "SubmitMultiRegionAccessPointRoutesInput",
   51     51   
    ),
   52     52   
    ::aws_smithy_schema::ShapeType::String,
   53         -
    "mrap",
          53  +
    "Mrap",
   54     54   
    1,
   55     55   
)
   56     56   
.with_http_label();
   57     57   
static SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_MEMBER_ROUTE_UPDATES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   58     58   
    ::aws_smithy_schema::ShapeId::from_static(
   59     59   
        "com.amazonaws.s3control.synthetic#SubmitMultiRegionAccessPointRoutesInput$RouteUpdates",
   60     60   
        "com.amazonaws.s3control.synthetic",
   61     61   
        "SubmitMultiRegionAccessPointRoutesInput",
   62     62   
    ),
   63     63   
    ::aws_smithy_schema::ShapeType::List,
   64         -
    "route_updates",
          64  +
    "RouteUpdates",
   65     65   
    2,
   66     66   
);
   67     67   
static SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   68     68   
    SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_SCHEMA_ID,
   69     69   
    ::aws_smithy_schema::ShapeType::Structure,
   70     70   
    &[
   71     71   
        &SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_MEMBER_ACCOUNT_ID,
   72     72   
        &SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_MEMBER_MRAP,
   73     73   
        &SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_MEMBER_ROUTE_UPDATES,
   74     74   
    ],
   75         -
);
          75  +
)
          76  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          77  +
    "PATCH",
          78  +
    "/v20180820/mrap/instances/{Mrap+}/routes",
          79  +
    None,
          80  +
));
   76     81   
impl SubmitMultiRegionAccessPointRoutesInput {
   77     82   
    /// The schema for this shape.
   78     83   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_SCHEMA;
   79     84   
}
   80     85   
impl ::aws_smithy_schema::serde::SerializableStruct for SubmitMultiRegionAccessPointRoutesInput {
   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(&SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_MEMBER_ACCOUNT_ID, val)?;
   88     93   
        }
   89     94   
        if let Some(ref val) = self.mrap {
   90     95   
            ser.write_string(&SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_MEMBER_MRAP, val)?;
   91     96   
        }
   92     97   
        if let Some(ref val) = self.route_updates {
   93     98   
            ser.write_list(
   94     99   
                &SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_MEMBER_ROUTE_UPDATES,
   95    100   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   96    101   
                    for item in val {
   97    102   
                        ser.write_struct(crate::types::MultiRegionAccessPointRoute::SCHEMA, item)?;
   98    103   
                    }
   99    104   
                    Ok(())
  100    105   
                },
  101    106   
            )?;
  102    107   
        }
  103    108   
        Ok(())
  104    109   
    }
  105    110   
}
  106    111   
impl SubmitMultiRegionAccessPointRoutesInput {
  107    112   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  108         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  109         -
        deserializer: &mut D,
         113  +
    pub fn deserialize(
         114  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  110    115   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  111    116   
        #[allow(unused_variables, unused_mut)]
  112    117   
        let mut builder = Self::builder();
  113    118   
        #[allow(
  114    119   
            unused_variables,
  115    120   
            unreachable_code,
  116    121   
            clippy::single_match,
  117    122   
            clippy::match_single_binding,
  118    123   
            clippy::diverging_sub_expression
  119    124   
        )]
  120         -
        deserializer.read_struct(&SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_SCHEMA, (), |_, member, deser| {
         125  +
        deserializer.read_struct(&SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_SCHEMA, &mut |member, deser| {
  121    126   
            match member.member_index() {
  122    127   
                Some(0) => {
  123    128   
                    builder.account_id = Some(deser.read_string(member)?);
  124    129   
                }
  125    130   
                Some(1) => {
  126    131   
                    builder.mrap = Some(deser.read_string(member)?);
  127    132   
                }
  128    133   
                Some(2) => {
  129    134   
                    builder.route_updates = Some({
  130         -
                        let container = if let Some(cap) = deser.container_size() {
  131         -
                            Vec::with_capacity(cap)
  132         -
                        } else {
  133         -
                            Vec::new()
  134         -
                        };
  135         -
                        deser.read_list(member, container, |mut list, deser| {
  136         -
                            list.push(crate::types::MultiRegionAccessPointRoute::deserialize(deser)?);
  137         -
                            Ok(list)
  138         -
                        })?
         135  +
                        let mut container = Vec::new();
         136  +
                        deser.read_list(member, &mut |deser| {
         137  +
                            container.push(crate::types::MultiRegionAccessPointRoute::deserialize(deser)?);
         138  +
                            Ok(())
         139  +
                        })?;
         140  +
                        container
         141  +
                    });
         142  +
                }
         143  +
                _ => {}
         144  +
            }
         145  +
            Ok(())
         146  +
        })?;
         147  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         148  +
        builder.mrap = builder.mrap.or(Some(String::new()));
         149  +
        builder.route_updates = builder.route_updates.or(Some(Vec::new()));
         150  +
        builder
         151  +
            .build()
         152  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         153  +
    }
         154  +
}
         155  +
impl SubmitMultiRegionAccessPointRoutesInput {
         156  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         157  +
    /// Header-bound members are read directly from headers, avoiding runtime
         158  +
    /// member iteration overhead. Body members are read via the deserializer.
         159  +
    pub fn deserialize_with_response(
         160  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         161  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         162  +
        _status: u16,
         163  +
        _body: &[u8],
         164  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         165  +
        #[allow(unused_variables, unused_mut)]
         166  +
        let mut builder = Self::builder();
         167  +
        if let Some(val) = headers.get("x-amz-account-id") {
         168  +
            builder.account_id = Some(val.to_string());
         169  +
        }
         170  +
        #[allow(
         171  +
            unused_variables,
         172  +
            unreachable_code,
         173  +
            clippy::single_match,
         174  +
            clippy::match_single_binding,
         175  +
            clippy::diverging_sub_expression
         176  +
        )]
         177  +
        deserializer.read_struct(&SUBMITMULTIREGIONACCESSPOINTROUTESINPUT_SCHEMA, &mut |member, deser| {
         178  +
            match member.member_index() {
         179  +
                Some(0) => { /* read from headers above */ }
         180  +
                Some(1) => {
         181  +
                    builder.mrap = Some(deser.read_string(member)?);
         182  +
                }
         183  +
                Some(2) => {
         184  +
                    builder.route_updates = Some({
         185  +
                        let mut container = Vec::new();
         186  +
                        deser.read_list(member, &mut |deser| {
         187  +
                            container.push(crate::types::MultiRegionAccessPointRoute::deserialize(deser)?);
         188  +
                            Ok(())
         189  +
                        })?;
         190  +
                        container
  139    191   
                    });
  140    192   
                }
  141    193   
                _ => {}
  142    194   
            }
  143    195   
            Ok(())
  144    196   
        })?;
  145    197   
        builder
  146    198   
            .build()
  147    199   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  148    200   
    }

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/submit_multi_region_access_point_routes/_submit_multi_region_access_point_routes_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 SubmitMultiRegionAccessPointRoutesOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static SUBMITMULTIREGIONACCESSPOINTROUTESOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.s3control.synthetic#SubmitMultiRegionAccessPointRoutesOutput",
   10     10   
    "com.amazonaws.s3control.synthetic",
   11     11   
    "SubmitMultiRegionAccessPointRoutesOutput",
   12     12   
);
          13  +
static SUBMITMULTIREGIONACCESSPOINTROUTESOUTPUT_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 SUBMITMULTIREGIONACCESSPOINTROUTESOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   14     21   
    SUBMITMULTIREGIONACCESSPOINTROUTESOUTPUT_SCHEMA_ID,
   15     22   
    ::aws_smithy_schema::ShapeType::Structure,
   16         -
    &[],
          23  +
    &[&SUBMITMULTIREGIONACCESSPOINTROUTESOUTPUT_MEMBER__REQUEST_ID],
   17     24   
);
   18     25   
impl SubmitMultiRegionAccessPointRoutesOutput {
   19     26   
    /// The schema for this shape.
   20     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SUBMITMULTIREGIONACCESSPOINTROUTESOUTPUT_SCHEMA;
   21     28   
}
   22     29   
impl ::aws_smithy_schema::serde::SerializableStruct for SubmitMultiRegionAccessPointRoutesOutput {
   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 SubmitMultiRegionAccessPointRoutesOutput {
   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(&SUBMITMULTIREGIONACCESSPOINTROUTESOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&SUBMITMULTIREGIONACCESSPOINTROUTESOUTPUT_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 SubmitMultiRegionAccessPointRoutesOutput {
          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 SubmitMultiRegionAccessPointRoutesOutput {
   55     83   
    fn request_id(&self) -> Option<&str> {
   56     84   
        self._request_id.as_deref()
   57     85   
    }
   58     86   
}
   59     87   
impl SubmitMultiRegionAccessPointRoutesOutput {
   60     88   
    /// Creates a new builder-style object to manufacture [`SubmitMultiRegionAccessPointRoutesOutput`](crate::operation::submit_multi_region_access_point_routes::SubmitMultiRegionAccessPointRoutesOutput).
   61     89   
    pub fn builder() -> crate::operation::submit_multi_region_access_point_routes::builders::SubmitMultiRegionAccessPointRoutesOutputBuilder {
   62     90   
        crate::operation::submit_multi_region_access_point_routes::builders::SubmitMultiRegionAccessPointRoutesOutputBuilder::default()
   63     91   
    }

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

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

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

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/tag_resource/_tag_resource_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 TagResourceOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static TAGRESOURCEOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.s3control.synthetic#TagResourceOutput",
   10     10   
    "com.amazonaws.s3control.synthetic",
   11     11   
    "TagResourceOutput",
   12     12   
);
   13         -
static TAGRESOURCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(TAGRESOURCEOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static TAGRESOURCEOUTPUT_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 TAGRESOURCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    TAGRESOURCEOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&TAGRESOURCEOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl TagResourceOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TAGRESOURCEOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for TagResourceOutput {
   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 TagResourceOutput {
   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(&TAGRESOURCEOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&TAGRESOURCEOUTPUT_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 TagResourceOutput {
          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 TagResourceOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl TagResourceOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`TagResourceOutput`](crate::operation::tag_resource::TagResourceOutput).
   58     89   
    pub fn builder() -> crate::operation::tag_resource::builders::TagResourceOutputBuilder {
   59     90   
        crate::operation::tag_resource::builders::TagResourceOutputBuilder::default()
   60     91   
    }

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

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

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

tmp-codegen-diff/aws-sdk/sdk/s3control/src/operation/untag_resource/_untag_resource_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 UntagResourceOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static UNTAGRESOURCEOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.s3control.synthetic#UntagResourceOutput",
   10     10   
    "com.amazonaws.s3control.synthetic",
   11     11   
    "UntagResourceOutput",
   12     12   
);
   13         -
static UNTAGRESOURCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(UNTAGRESOURCEOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static UNTAGRESOURCEOUTPUT_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 UNTAGRESOURCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    UNTAGRESOURCEOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&UNTAGRESOURCEOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl UntagResourceOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UNTAGRESOURCEOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for UntagResourceOutput {
   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 UntagResourceOutput {
   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(&UNTAGRESOURCEOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&UNTAGRESOURCEOUTPUT_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 UntagResourceOutput {
          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 UntagResourceOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl UntagResourceOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`UntagResourceOutput`](crate::operation::untag_resource::UntagResourceOutput).
   58     89   
    pub fn builder() -> crate::operation::untag_resource::builders::UntagResourceOutputBuilder {
   59     90   
        crate::operation::untag_resource::builders::UntagResourceOutputBuilder::default()
   60     91   
    }

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

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

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