AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36 (ignoring whitespace)

Files changed:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -71,71 +307,368 @@
   91     91   
    "com.amazonaws.s3control.synthetic",
   92     92   
    "ListAccessGrantsInput",
   93     93   
);
   94     94   
static LISTACCESSGRANTSINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.s3control.synthetic#ListAccessGrantsInput$AccountId",
   97     97   
        "com.amazonaws.s3control.synthetic",
   98     98   
        "ListAccessGrantsInput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::String,
  101         -
    "account_id",
         101  +
    "AccountId",
  102    102   
    0,
  103    103   
)
  104    104   
.with_host_label()
  105    105   
.with_http_header("x-amz-account-id");
  106    106   
static LISTACCESSGRANTSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  107    107   
    ::aws_smithy_schema::ShapeId::from_static(
  108    108   
        "com.amazonaws.s3control.synthetic#ListAccessGrantsInput$NextToken",
  109    109   
        "com.amazonaws.s3control.synthetic",
  110    110   
        "ListAccessGrantsInput",
  111    111   
    ),
  112    112   
    ::aws_smithy_schema::ShapeType::String,
  113         -
    "next_token",
         113  +
    "NextToken",
  114    114   
    1,
  115    115   
)
  116    116   
.with_http_query("nextToken");
  117    117   
static LISTACCESSGRANTSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  118    118   
    ::aws_smithy_schema::ShapeId::from_static(
  119    119   
        "com.amazonaws.s3control.synthetic#ListAccessGrantsInput$MaxResults",
  120    120   
        "com.amazonaws.s3control.synthetic",
  121    121   
        "ListAccessGrantsInput",
  122    122   
    ),
  123    123   
    ::aws_smithy_schema::ShapeType::Integer,
  124         -
    "max_results",
         124  +
    "MaxResults",
  125    125   
    2,
  126    126   
)
  127    127   
.with_http_query("maxResults");
  128    128   
static LISTACCESSGRANTSINPUT_MEMBER_GRANTEE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  129    129   
    ::aws_smithy_schema::ShapeId::from_static(
  130    130   
        "com.amazonaws.s3control.synthetic#ListAccessGrantsInput$GranteeType",
  131    131   
        "com.amazonaws.s3control.synthetic",
  132    132   
        "ListAccessGrantsInput",
  133    133   
    ),
  134    134   
    ::aws_smithy_schema::ShapeType::String,
  135         -
    "grantee_type",
         135  +
    "GranteeType",
  136    136   
    3,
  137    137   
)
  138    138   
.with_http_query("granteetype");
  139    139   
static LISTACCESSGRANTSINPUT_MEMBER_GRANTEE_IDENTIFIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  140    140   
    ::aws_smithy_schema::ShapeId::from_static(
  141    141   
        "com.amazonaws.s3control.synthetic#ListAccessGrantsInput$GranteeIdentifier",
  142    142   
        "com.amazonaws.s3control.synthetic",
  143    143   
        "ListAccessGrantsInput",
  144    144   
    ),
  145    145   
    ::aws_smithy_schema::ShapeType::String,
  146         -
    "grantee_identifier",
         146  +
    "GranteeIdentifier",
  147    147   
    4,
  148    148   
)
  149    149   
.with_http_query("granteeidentifier");
  150    150   
static LISTACCESSGRANTSINPUT_MEMBER_PERMISSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  151    151   
    ::aws_smithy_schema::ShapeId::from_static(
  152    152   
        "com.amazonaws.s3control.synthetic#ListAccessGrantsInput$Permission",
  153    153   
        "com.amazonaws.s3control.synthetic",
  154    154   
        "ListAccessGrantsInput",
  155    155   
    ),
  156    156   
    ::aws_smithy_schema::ShapeType::String,
  157         -
    "permission",
         157  +
    "Permission",
  158    158   
    5,
  159    159   
)
  160    160   
.with_http_query("permission");
  161    161   
static LISTACCESSGRANTSINPUT_MEMBER_GRANT_SCOPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  162    162   
    ::aws_smithy_schema::ShapeId::from_static(
  163    163   
        "com.amazonaws.s3control.synthetic#ListAccessGrantsInput$GrantScope",
  164    164   
        "com.amazonaws.s3control.synthetic",
  165    165   
        "ListAccessGrantsInput",
  166    166   
    ),
  167    167   
    ::aws_smithy_schema::ShapeType::String,
  168         -
    "grant_scope",
         168  +
    "GrantScope",
  169    169   
    6,
  170    170   
)
  171    171   
.with_http_query("grantscope");
  172    172   
static LISTACCESSGRANTSINPUT_MEMBER_APPLICATION_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  173    173   
    ::aws_smithy_schema::ShapeId::from_static(
  174    174   
        "com.amazonaws.s3control.synthetic#ListAccessGrantsInput$ApplicationArn",
  175    175   
        "com.amazonaws.s3control.synthetic",
  176    176   
        "ListAccessGrantsInput",
  177    177   
    ),
  178    178   
    ::aws_smithy_schema::ShapeType::String,
  179         -
    "application_arn",
         179  +
    "ApplicationArn",
  180    180   
    7,
  181    181   
)
  182    182   
.with_http_query("application_arn");
  183    183   
static LISTACCESSGRANTSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  184    184   
    LISTACCESSGRANTSINPUT_SCHEMA_ID,
  185    185   
    ::aws_smithy_schema::ShapeType::Structure,
  186    186   
    &[
  187    187   
        &LISTACCESSGRANTSINPUT_MEMBER_ACCOUNT_ID,
  188    188   
        &LISTACCESSGRANTSINPUT_MEMBER_NEXT_TOKEN,
  189    189   
        &LISTACCESSGRANTSINPUT_MEMBER_MAX_RESULTS,
  190    190   
        &LISTACCESSGRANTSINPUT_MEMBER_GRANTEE_TYPE,
  191    191   
        &LISTACCESSGRANTSINPUT_MEMBER_GRANTEE_IDENTIFIER,
  192    192   
        &LISTACCESSGRANTSINPUT_MEMBER_PERMISSION,
  193    193   
        &LISTACCESSGRANTSINPUT_MEMBER_GRANT_SCOPE,
  194    194   
        &LISTACCESSGRANTSINPUT_MEMBER_APPLICATION_ARN,
  195    195   
    ],
  196         -
);
         196  +
)
         197  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
         198  +
    "GET",
         199  +
    "/v20180820/accessgrantsinstance/grants",
         200  +
    None,
         201  +
));
  197    202   
impl ListAccessGrantsInput {
  198    203   
    /// The schema for this shape.
  199    204   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTACCESSGRANTSINPUT_SCHEMA;
  200    205   
}
  201    206   
impl ::aws_smithy_schema::serde::SerializableStruct for ListAccessGrantsInput {
  202    207   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  203    208   
    fn serialize_members(
  204    209   
        &self,
  205    210   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  206    211   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  207    212   
        if let Some(ref val) = self.account_id {
  208    213   
            ser.write_string(&LISTACCESSGRANTSINPUT_MEMBER_ACCOUNT_ID, val)?;
  209    214   
        }
  210    215   
        if let Some(ref val) = self.next_token {
  211    216   
            ser.write_string(&LISTACCESSGRANTSINPUT_MEMBER_NEXT_TOKEN, val)?;
  212    217   
        }
  213    218   
        if let Some(ref val) = self.max_results {
  214    219   
            ser.write_integer(&LISTACCESSGRANTSINPUT_MEMBER_MAX_RESULTS, *val)?;
  215    220   
        }
  216    221   
        if let Some(ref val) = self.grantee_type {
  217    222   
            ser.write_string(&LISTACCESSGRANTSINPUT_MEMBER_GRANTEE_TYPE, val.as_str())?;
  218    223   
        }
  219    224   
        if let Some(ref val) = self.grantee_identifier {
  220    225   
            ser.write_string(&LISTACCESSGRANTSINPUT_MEMBER_GRANTEE_IDENTIFIER, val)?;
  221    226   
        }
  222    227   
        if let Some(ref val) = self.permission {
  223    228   
            ser.write_string(&LISTACCESSGRANTSINPUT_MEMBER_PERMISSION, val.as_str())?;
  224    229   
        }
  225    230   
        if let Some(ref val) = self.grant_scope {
  226    231   
            ser.write_string(&LISTACCESSGRANTSINPUT_MEMBER_GRANT_SCOPE, val)?;
  227    232   
        }
  228    233   
        if let Some(ref val) = self.application_arn {
  229    234   
            ser.write_string(&LISTACCESSGRANTSINPUT_MEMBER_APPLICATION_ARN, val)?;
  230    235   
        }
  231    236   
        Ok(())
  232    237   
    }
  233    238   
}
  234    239   
impl ListAccessGrantsInput {
  235    240   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  236         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  237         -
        deserializer: &mut D,
         241  +
    pub fn deserialize(
         242  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  238    243   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  239    244   
        #[allow(unused_variables, unused_mut)]
  240    245   
        let mut builder = Self::builder();
  241    246   
        #[allow(
  242    247   
            unused_variables,
  243    248   
            unreachable_code,
  244    249   
            clippy::single_match,
  245    250   
            clippy::match_single_binding,
  246    251   
            clippy::diverging_sub_expression
  247    252   
        )]
  248         -
        deserializer.read_struct(&LISTACCESSGRANTSINPUT_SCHEMA, (), |_, member, deser| {
         253  +
        deserializer.read_struct(&LISTACCESSGRANTSINPUT_SCHEMA, &mut |member, deser| {
  249    254   
            match member.member_index() {
  250    255   
                Some(0) => {
  251    256   
                    builder.account_id = Some(deser.read_string(member)?);
  252    257   
                }
  253    258   
                Some(1) => {
  254    259   
                    builder.next_token = Some(deser.read_string(member)?);
  255    260   
                }
  256    261   
                Some(2) => {
  257    262   
                    builder.max_results = Some(deser.read_integer(member)?);
  258    263   
                }
  259    264   
                Some(3) => {
  260    265   
                    builder.grantee_type = Some(crate::types::GranteeType::from(deser.read_string(member)?.as_str()));
  261    266   
                }
  262    267   
                Some(4) => {
  263    268   
                    builder.grantee_identifier = Some(deser.read_string(member)?);
  264    269   
                }
  265    270   
                Some(5) => {
  266    271   
                    builder.permission = Some(crate::types::Permission::from(deser.read_string(member)?.as_str()));
  267    272   
                }
  268    273   
                Some(6) => {
  269    274   
                    builder.grant_scope = Some(deser.read_string(member)?);
  270    275   
                }
  271    276   
                Some(7) => {
  272    277   
                    builder.application_arn = Some(deser.read_string(member)?);
  273    278   
                }
  274    279   
                _ => {}
  275    280   
            }
  276    281   
            Ok(())
  277    282   
        })?;
         283  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         284  +
        builder
         285  +
            .build()
         286  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         287  +
    }
         288  +
}
         289  +
impl ListAccessGrantsInput {
         290  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         291  +
    /// Header-bound members are read directly from headers, avoiding runtime
         292  +
    /// member iteration overhead. Body members are read via the deserializer.
         293  +
    pub fn deserialize_with_response(
         294  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         295  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         296  +
        _status: u16,
         297  +
        _body: &[u8],
         298  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         299  +
        #[allow(unused_variables, unused_mut)]
         300  +
        let mut builder = Self::builder();
         301  +
        if let Some(val) = headers.get("x-amz-account-id") {
         302  +
            builder.account_id = Some(val.to_string());
         303  +
        }
         304  +
        #[allow(
         305  +
            unused_variables,
         306  +
            unreachable_code,
         307  +
            clippy::single_match,
         308  +
            clippy::match_single_binding,
         309  +
            clippy::diverging_sub_expression
         310  +
        )]
         311  +
        deserializer.read_struct(&LISTACCESSGRANTSINPUT_SCHEMA, &mut |member, deser| {
         312  +
            match member.member_index() {
         313  +
                Some(0) => { /* read from headers above */ }
         314  +
                Some(1) => {
         315  +
                    builder.next_token = Some(deser.read_string(member)?);
         316  +
                }
         317  +
                Some(2) => {
         318  +
                    builder.max_results = Some(deser.read_integer(member)?);
         319  +
                }
         320  +
                Some(3) => {
         321  +
                    builder.grantee_type = Some(crate::types::GranteeType::from(deser.read_string(member)?.as_str()));
         322  +
                }
         323  +
                Some(4) => {
         324  +
                    builder.grantee_identifier = Some(deser.read_string(member)?);
         325  +
                }
         326  +
                Some(5) => {
         327  +
                    builder.permission = Some(crate::types::Permission::from(deser.read_string(member)?.as_str()));
         328  +
                }
         329  +
                Some(6) => {
         330  +
                    builder.grant_scope = Some(deser.read_string(member)?);
         331  +
                }
         332  +
                Some(7) => {
         333  +
                    builder.application_arn = Some(deser.read_string(member)?);
         334  +
                }
         335  +
                _ => {}
         336  +
            }
         337  +
            Ok(())
         338  +
        })?;
  278    339   
        builder
  279    340   
            .build()
  280    341   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  281    342   
    }
  282    343   
}
  283    344   
impl ListAccessGrantsInput {
  284    345   
    /// Creates a new builder-style object to manufacture [`ListAccessGrantsInput`](crate::operation::list_access_grants::ListAccessGrantsInput).
  285    346   
    pub fn builder() -> crate::operation::list_access_grants::builders::ListAccessGrantsInputBuilder {
  286    347   
        crate::operation::list_access_grants::builders::ListAccessGrantsInputBuilder::default()
  287    348   
    }

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

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

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

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

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

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

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

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

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

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

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

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