AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12

Files changed:

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

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/tag_instance_profile/_tag_instance_profile_input.rs

@@ -7,7 +155,165 @@
   27     27   
    "com.amazonaws.iam.synthetic",
   28     28   
    "TagInstanceProfileInput",
   29     29   
);
   30     30   
static TAGINSTANCEPROFILEINPUT_MEMBER_INSTANCE_PROFILE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static(
   32     32   
        "com.amazonaws.iam.synthetic#TagInstanceProfileInput$InstanceProfileName",
   33     33   
        "com.amazonaws.iam.synthetic",
   34     34   
        "TagInstanceProfileInput",
   35     35   
    ),
   36     36   
    ::aws_smithy_schema::ShapeType::String,
   37         -
    "instance_profile_name",
          37  +
    "InstanceProfileName",
   38     38   
    0,
   39     39   
);
   40     40   
static TAGINSTANCEPROFILEINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.iam.synthetic#TagInstanceProfileInput$Tags",
   43     43   
        "com.amazonaws.iam.synthetic",
   44     44   
        "TagInstanceProfileInput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::List,
   47         -
    "tags",
          47  +
    "Tags",
   48     48   
    1,
   49     49   
);
   50     50   
static TAGINSTANCEPROFILEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   51     51   
    TAGINSTANCEPROFILEINPUT_SCHEMA_ID,
   52     52   
    ::aws_smithy_schema::ShapeType::Structure,
   53     53   
    &[
   54     54   
        &TAGINSTANCEPROFILEINPUT_MEMBER_INSTANCE_PROFILE_NAME,
   55     55   
        &TAGINSTANCEPROFILEINPUT_MEMBER_TAGS,
   56     56   
    ],
   57     57   
);
   58     58   
impl TagInstanceProfileInput {
   59     59   
    /// The schema for this shape.
   60     60   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TAGINSTANCEPROFILEINPUT_SCHEMA;
   61     61   
}
   62     62   
impl ::aws_smithy_schema::serde::SerializableStruct for TagInstanceProfileInput {
   63     63   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   64     64   
    fn serialize_members(
   65     65   
        &self,
   66     66   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   67     67   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   68     68   
        if let Some(ref val) = self.instance_profile_name {
   69     69   
            ser.write_string(&TAGINSTANCEPROFILEINPUT_MEMBER_INSTANCE_PROFILE_NAME, val)?;
   70     70   
        }
   71     71   
        if let Some(ref val) = self.tags {
   72     72   
            ser.write_list(
   73     73   
                &TAGINSTANCEPROFILEINPUT_MEMBER_TAGS,
   74     74   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   75     75   
                    for item in val {
   76     76   
                        ser.write_struct(crate::types::Tag::SCHEMA, item)?;
   77     77   
                    }
   78     78   
                    Ok(())
   79     79   
                },
   80     80   
            )?;
   81     81   
        }
   82     82   
        Ok(())
   83     83   
    }
   84     84   
}
   85     85   
impl TagInstanceProfileInput {
   86     86   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   87         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   88         -
        deserializer: &mut D,
          87  +
    pub fn deserialize(
          88  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   89     89   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   90     90   
        #[allow(unused_variables, unused_mut)]
   91     91   
        let mut builder = Self::builder();
   92     92   
        #[allow(
   93     93   
            unused_variables,
   94     94   
            unreachable_code,
   95     95   
            clippy::single_match,
   96     96   
            clippy::match_single_binding,
   97     97   
            clippy::diverging_sub_expression
   98     98   
        )]
   99         -
        deserializer.read_struct(&TAGINSTANCEPROFILEINPUT_SCHEMA, (), |_, member, deser| {
          99  +
        deserializer.read_struct(&TAGINSTANCEPROFILEINPUT_SCHEMA, &mut |member, deser| {
  100    100   
            match member.member_index() {
  101    101   
                Some(0) => {
  102    102   
                    builder.instance_profile_name = Some(deser.read_string(member)?);
  103    103   
                }
  104    104   
                Some(1) => {
  105    105   
                    builder.tags = Some({
  106         -
                        let container = if let Some(cap) = deser.container_size() {
  107         -
                            Vec::with_capacity(cap)
  108         -
                        } else {
  109         -
                            Vec::new()
  110         -
                        };
  111         -
                        deser.read_list(member, container, |mut list, deser| {
  112         -
                            list.push(crate::types::Tag::deserialize(deser)?);
  113         -
                            Ok(list)
  114         -
                        })?
         106  +
                        let mut container = Vec::new();
         107  +
                        deser.read_list(member, &mut |deser| {
         108  +
                            container.push(crate::types::Tag::deserialize(deser)?);
         109  +
                            Ok(())
         110  +
                        })?;
         111  +
                        container
  115    112   
                    });
  116    113   
                }
  117    114   
                _ => {}
  118    115   
            }
  119    116   
            Ok(())
  120    117   
        })?;
         118  +
        builder.instance_profile_name = builder.instance_profile_name.or(Some(String::new()));
         119  +
        builder.tags = builder.tags.or(Some(Vec::new()));
  121    120   
        builder
  122    121   
            .build()
  123    122   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  124    123   
    }
  125    124   
}
         125  +
impl TagInstanceProfileInput {
         126  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         127  +
    pub fn deserialize_with_response(
         128  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         129  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         130  +
        _status: u16,
         131  +
        _body: &[u8],
         132  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         133  +
        Self::deserialize(deserializer)
         134  +
    }
         135  +
}
  126    136   
impl TagInstanceProfileInput {
  127    137   
    /// Creates a new builder-style object to manufacture [`TagInstanceProfileInput`](crate::operation::tag_instance_profile::TagInstanceProfileInput).
  128    138   
    pub fn builder() -> crate::operation::tag_instance_profile::builders::TagInstanceProfileInputBuilder {
  129    139   
        crate::operation::tag_instance_profile::builders::TagInstanceProfileInputBuilder::default()
  130    140   
    }
  131    141   
}
  132    142   
  133    143   
/// A builder for [`TagInstanceProfileInput`](crate::operation::tag_instance_profile::TagInstanceProfileInput).
  134    144   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  135    145   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/tag_instance_profile/_tag_instance_profile_output.rs

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

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

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/tag_mfa_device/_tag_mfa_device_input.rs

@@ -7,7 +152,162 @@
   27     27   
    "com.amazonaws.iam.synthetic",
   28     28   
    "TagMFADeviceInput",
   29     29   
);
   30     30   
static TAGMFADEVICEINPUT_MEMBER_SERIAL_NUMBER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static(
   32     32   
        "com.amazonaws.iam.synthetic#TagMFADeviceInput$SerialNumber",
   33     33   
        "com.amazonaws.iam.synthetic",
   34     34   
        "TagMFADeviceInput",
   35     35   
    ),
   36     36   
    ::aws_smithy_schema::ShapeType::String,
   37         -
    "serial_number",
          37  +
    "SerialNumber",
   38     38   
    0,
   39     39   
);
   40     40   
static TAGMFADEVICEINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.iam.synthetic#TagMFADeviceInput$Tags",
   43     43   
        "com.amazonaws.iam.synthetic",
   44     44   
        "TagMFADeviceInput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::List,
   47         -
    "tags",
          47  +
    "Tags",
   48     48   
    1,
   49     49   
);
   50     50   
static TAGMFADEVICEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   51     51   
    TAGMFADEVICEINPUT_SCHEMA_ID,
   52     52   
    ::aws_smithy_schema::ShapeType::Structure,
   53     53   
    &[&TAGMFADEVICEINPUT_MEMBER_SERIAL_NUMBER, &TAGMFADEVICEINPUT_MEMBER_TAGS],
   54     54   
);
   55     55   
impl TagMfaDeviceInput {
   56     56   
    /// The schema for this shape.
   57     57   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TAGMFADEVICEINPUT_SCHEMA;
   58     58   
}
   59     59   
impl ::aws_smithy_schema::serde::SerializableStruct for TagMfaDeviceInput {
   60     60   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   61     61   
    fn serialize_members(
   62     62   
        &self,
   63     63   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   64     64   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   65     65   
        if let Some(ref val) = self.serial_number {
   66     66   
            ser.write_string(&TAGMFADEVICEINPUT_MEMBER_SERIAL_NUMBER, val)?;
   67     67   
        }
   68     68   
        if let Some(ref val) = self.tags {
   69     69   
            ser.write_list(
   70     70   
                &TAGMFADEVICEINPUT_MEMBER_TAGS,
   71     71   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   72     72   
                    for item in val {
   73     73   
                        ser.write_struct(crate::types::Tag::SCHEMA, item)?;
   74     74   
                    }
   75     75   
                    Ok(())
   76     76   
                },
   77     77   
            )?;
   78     78   
        }
   79     79   
        Ok(())
   80     80   
    }
   81     81   
}
   82     82   
impl TagMfaDeviceInput {
   83     83   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   84         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   85         -
        deserializer: &mut D,
          84  +
    pub fn deserialize(
          85  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   86     86   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   87     87   
        #[allow(unused_variables, unused_mut)]
   88     88   
        let mut builder = Self::builder();
   89     89   
        #[allow(
   90     90   
            unused_variables,
   91     91   
            unreachable_code,
   92     92   
            clippy::single_match,
   93     93   
            clippy::match_single_binding,
   94     94   
            clippy::diverging_sub_expression
   95     95   
        )]
   96         -
        deserializer.read_struct(&TAGMFADEVICEINPUT_SCHEMA, (), |_, member, deser| {
          96  +
        deserializer.read_struct(&TAGMFADEVICEINPUT_SCHEMA, &mut |member, deser| {
   97     97   
            match member.member_index() {
   98     98   
                Some(0) => {
   99     99   
                    builder.serial_number = Some(deser.read_string(member)?);
  100    100   
                }
  101    101   
                Some(1) => {
  102    102   
                    builder.tags = Some({
  103         -
                        let container = if let Some(cap) = deser.container_size() {
  104         -
                            Vec::with_capacity(cap)
  105         -
                        } else {
  106         -
                            Vec::new()
  107         -
                        };
  108         -
                        deser.read_list(member, container, |mut list, deser| {
  109         -
                            list.push(crate::types::Tag::deserialize(deser)?);
  110         -
                            Ok(list)
  111         -
                        })?
         103  +
                        let mut container = Vec::new();
         104  +
                        deser.read_list(member, &mut |deser| {
         105  +
                            container.push(crate::types::Tag::deserialize(deser)?);
         106  +
                            Ok(())
         107  +
                        })?;
         108  +
                        container
  112    109   
                    });
  113    110   
                }
  114    111   
                _ => {}
  115    112   
            }
  116    113   
            Ok(())
  117    114   
        })?;
         115  +
        builder.serial_number = builder.serial_number.or(Some(String::new()));
         116  +
        builder.tags = builder.tags.or(Some(Vec::new()));
  118    117   
        builder
  119    118   
            .build()
  120    119   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  121    120   
    }
  122    121   
}
         122  +
impl TagMfaDeviceInput {
         123  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         124  +
    pub fn deserialize_with_response(
         125  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         126  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         127  +
        _status: u16,
         128  +
        _body: &[u8],
         129  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         130  +
        Self::deserialize(deserializer)
         131  +
    }
         132  +
}
  123    133   
impl TagMfaDeviceInput {
  124    134   
    /// Creates a new builder-style object to manufacture [`TagMfaDeviceInput`](crate::operation::tag_mfa_device::TagMfaDeviceInput).
  125    135   
    pub fn builder() -> crate::operation::tag_mfa_device::builders::TagMfaDeviceInputBuilder {
  126    136   
        crate::operation::tag_mfa_device::builders::TagMfaDeviceInputBuilder::default()
  127    137   
    }
  128    138   
}
  129    139   
  130    140   
/// A builder for [`TagMfaDeviceInput`](crate::operation::tag_mfa_device::TagMfaDeviceInput).
  131    141   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  132    142   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/tag_mfa_device/_tag_mfa_device_output.rs

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

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

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/tag_open_id_connect_provider/_tag_open_id_connect_provider_input.rs

@@ -7,7 +155,165 @@
   27     27   
    "com.amazonaws.iam.synthetic",
   28     28   
    "TagOpenIDConnectProviderInput",
   29     29   
);
   30     30   
static TAGOPENIDCONNECTPROVIDERINPUT_MEMBER_OPEN_ID_CONNECT_PROVIDER_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static(
   32     32   
        "com.amazonaws.iam.synthetic#TagOpenIDConnectProviderInput$OpenIDConnectProviderArn",
   33     33   
        "com.amazonaws.iam.synthetic",
   34     34   
        "TagOpenIDConnectProviderInput",
   35     35   
    ),
   36     36   
    ::aws_smithy_schema::ShapeType::String,
   37         -
    "open_id_connect_provider_arn",
          37  +
    "OpenIDConnectProviderArn",
   38     38   
    0,
   39     39   
);
   40     40   
static TAGOPENIDCONNECTPROVIDERINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.iam.synthetic#TagOpenIDConnectProviderInput$Tags",
   43     43   
        "com.amazonaws.iam.synthetic",
   44     44   
        "TagOpenIDConnectProviderInput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::List,
   47         -
    "tags",
          47  +
    "Tags",
   48     48   
    1,
   49     49   
);
   50     50   
static TAGOPENIDCONNECTPROVIDERINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   51     51   
    TAGOPENIDCONNECTPROVIDERINPUT_SCHEMA_ID,
   52     52   
    ::aws_smithy_schema::ShapeType::Structure,
   53     53   
    &[
   54     54   
        &TAGOPENIDCONNECTPROVIDERINPUT_MEMBER_OPEN_ID_CONNECT_PROVIDER_ARN,
   55     55   
        &TAGOPENIDCONNECTPROVIDERINPUT_MEMBER_TAGS,
   56     56   
    ],
   57     57   
);
   58     58   
impl TagOpenIdConnectProviderInput {
   59     59   
    /// The schema for this shape.
   60     60   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TAGOPENIDCONNECTPROVIDERINPUT_SCHEMA;
   61     61   
}
   62     62   
impl ::aws_smithy_schema::serde::SerializableStruct for TagOpenIdConnectProviderInput {
   63     63   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   64     64   
    fn serialize_members(
   65     65   
        &self,
   66     66   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   67     67   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   68     68   
        if let Some(ref val) = self.open_id_connect_provider_arn {
   69     69   
            ser.write_string(&TAGOPENIDCONNECTPROVIDERINPUT_MEMBER_OPEN_ID_CONNECT_PROVIDER_ARN, val)?;
   70     70   
        }
   71     71   
        if let Some(ref val) = self.tags {
   72     72   
            ser.write_list(
   73     73   
                &TAGOPENIDCONNECTPROVIDERINPUT_MEMBER_TAGS,
   74     74   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   75     75   
                    for item in val {
   76     76   
                        ser.write_struct(crate::types::Tag::SCHEMA, item)?;
   77     77   
                    }
   78     78   
                    Ok(())
   79     79   
                },
   80     80   
            )?;
   81     81   
        }
   82     82   
        Ok(())
   83     83   
    }
   84     84   
}
   85     85   
impl TagOpenIdConnectProviderInput {
   86     86   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   87         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   88         -
        deserializer: &mut D,
          87  +
    pub fn deserialize(
          88  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   89     89   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   90     90   
        #[allow(unused_variables, unused_mut)]
   91     91   
        let mut builder = Self::builder();
   92     92   
        #[allow(
   93     93   
            unused_variables,
   94     94   
            unreachable_code,
   95     95   
            clippy::single_match,
   96     96   
            clippy::match_single_binding,
   97     97   
            clippy::diverging_sub_expression
   98     98   
        )]
   99         -
        deserializer.read_struct(&TAGOPENIDCONNECTPROVIDERINPUT_SCHEMA, (), |_, member, deser| {
          99  +
        deserializer.read_struct(&TAGOPENIDCONNECTPROVIDERINPUT_SCHEMA, &mut |member, deser| {
  100    100   
            match member.member_index() {
  101    101   
                Some(0) => {
  102    102   
                    builder.open_id_connect_provider_arn = Some(deser.read_string(member)?);
  103    103   
                }
  104    104   
                Some(1) => {
  105    105   
                    builder.tags = Some({
  106         -
                        let container = if let Some(cap) = deser.container_size() {
  107         -
                            Vec::with_capacity(cap)
  108         -
                        } else {
  109         -
                            Vec::new()
  110         -
                        };
  111         -
                        deser.read_list(member, container, |mut list, deser| {
  112         -
                            list.push(crate::types::Tag::deserialize(deser)?);
  113         -
                            Ok(list)
  114         -
                        })?
         106  +
                        let mut container = Vec::new();
         107  +
                        deser.read_list(member, &mut |deser| {
         108  +
                            container.push(crate::types::Tag::deserialize(deser)?);
         109  +
                            Ok(())
         110  +
                        })?;
         111  +
                        container
  115    112   
                    });
  116    113   
                }
  117    114   
                _ => {}
  118    115   
            }
  119    116   
            Ok(())
  120    117   
        })?;
         118  +
        builder.open_id_connect_provider_arn = builder.open_id_connect_provider_arn.or(Some(String::new()));
         119  +
        builder.tags = builder.tags.or(Some(Vec::new()));
  121    120   
        builder
  122    121   
            .build()
  123    122   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  124    123   
    }
  125    124   
}
         125  +
impl TagOpenIdConnectProviderInput {
         126  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         127  +
    pub fn deserialize_with_response(
         128  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         129  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         130  +
        _status: u16,
         131  +
        _body: &[u8],
         132  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         133  +
        Self::deserialize(deserializer)
         134  +
    }
         135  +
}
  126    136   
impl TagOpenIdConnectProviderInput {
  127    137   
    /// Creates a new builder-style object to manufacture [`TagOpenIdConnectProviderInput`](crate::operation::tag_open_id_connect_provider::TagOpenIdConnectProviderInput).
  128    138   
    pub fn builder() -> crate::operation::tag_open_id_connect_provider::builders::TagOpenIdConnectProviderInputBuilder {
  129    139   
        crate::operation::tag_open_id_connect_provider::builders::TagOpenIdConnectProviderInputBuilder::default()
  130    140   
    }
  131    141   
}
  132    142   
  133    143   
/// A builder for [`TagOpenIdConnectProviderInput`](crate::operation::tag_open_id_connect_provider::TagOpenIdConnectProviderInput).
  134    144   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  135    145   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/tag_open_id_connect_provider/_tag_open_id_connect_provider_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/tag_policy.rs

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `TagPolicy`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct TagPolicy;
    6      6   
impl TagPolicy {
    7      7   
    /// Creates a new `TagPolicy`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::tag_policy::TagPolicyInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::tag_policy::TagPolicyOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::tag_policy::TagPolicyInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::tag_policy::TagPolicyOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::tag_policy::TagPolicyError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::tag_policy::TagPolicyError,
  136    140   
            >::new());
  137    141   
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct TagPolicyResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for TagPolicyResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150    155   
        let headers = response.headers();
  151    156   
        let body = response.body().bytes().expect("body loaded");
  152    157   
        #[allow(unused_mut)]
  153    158   
        let mut force_error = false;
  154    159   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155    160   
        let parse_result = if !success && status != 200 || force_error {
  156    161   
            crate::protocol_serde::shape_tag_policy::de_tag_policy_http_error(status, headers, body)
  157    162   
        } else {

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/tag_policy/_tag_policy_input.rs

@@ -7,7 +152,162 @@
   27     27   
    "com.amazonaws.iam.synthetic",
   28     28   
    "TagPolicyInput",
   29     29   
);
   30     30   
static TAGPOLICYINPUT_MEMBER_POLICY_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static(
   32     32   
        "com.amazonaws.iam.synthetic#TagPolicyInput$PolicyArn",
   33     33   
        "com.amazonaws.iam.synthetic",
   34     34   
        "TagPolicyInput",
   35     35   
    ),
   36     36   
    ::aws_smithy_schema::ShapeType::String,
   37         -
    "policy_arn",
          37  +
    "PolicyArn",
   38     38   
    0,
   39     39   
);
   40     40   
static TAGPOLICYINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.iam.synthetic#TagPolicyInput$Tags",
   43     43   
        "com.amazonaws.iam.synthetic",
   44     44   
        "TagPolicyInput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::List,
   47         -
    "tags",
          47  +
    "Tags",
   48     48   
    1,
   49     49   
);
   50     50   
static TAGPOLICYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   51     51   
    TAGPOLICYINPUT_SCHEMA_ID,
   52     52   
    ::aws_smithy_schema::ShapeType::Structure,
   53     53   
    &[&TAGPOLICYINPUT_MEMBER_POLICY_ARN, &TAGPOLICYINPUT_MEMBER_TAGS],
   54     54   
);
   55     55   
impl TagPolicyInput {
   56     56   
    /// The schema for this shape.
   57     57   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TAGPOLICYINPUT_SCHEMA;
   58     58   
}
   59     59   
impl ::aws_smithy_schema::serde::SerializableStruct for TagPolicyInput {
   60     60   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   61     61   
    fn serialize_members(
   62     62   
        &self,
   63     63   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   64     64   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   65     65   
        if let Some(ref val) = self.policy_arn {
   66     66   
            ser.write_string(&TAGPOLICYINPUT_MEMBER_POLICY_ARN, val)?;
   67     67   
        }
   68     68   
        if let Some(ref val) = self.tags {
   69     69   
            ser.write_list(
   70     70   
                &TAGPOLICYINPUT_MEMBER_TAGS,
   71     71   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   72     72   
                    for item in val {
   73     73   
                        ser.write_struct(crate::types::Tag::SCHEMA, item)?;
   74     74   
                    }
   75     75   
                    Ok(())
   76     76   
                },
   77     77   
            )?;
   78     78   
        }
   79     79   
        Ok(())
   80     80   
    }
   81     81   
}
   82     82   
impl TagPolicyInput {
   83     83   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   84         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   85         -
        deserializer: &mut D,
          84  +
    pub fn deserialize(
          85  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   86     86   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   87     87   
        #[allow(unused_variables, unused_mut)]
   88     88   
        let mut builder = Self::builder();
   89     89   
        #[allow(
   90     90   
            unused_variables,
   91     91   
            unreachable_code,
   92     92   
            clippy::single_match,
   93     93   
            clippy::match_single_binding,
   94     94   
            clippy::diverging_sub_expression
   95     95   
        )]
   96         -
        deserializer.read_struct(&TAGPOLICYINPUT_SCHEMA, (), |_, member, deser| {
          96  +
        deserializer.read_struct(&TAGPOLICYINPUT_SCHEMA, &mut |member, deser| {
   97     97   
            match member.member_index() {
   98     98   
                Some(0) => {
   99     99   
                    builder.policy_arn = Some(deser.read_string(member)?);
  100    100   
                }
  101    101   
                Some(1) => {
  102    102   
                    builder.tags = Some({
  103         -
                        let container = if let Some(cap) = deser.container_size() {
  104         -
                            Vec::with_capacity(cap)
  105         -
                        } else {
  106         -
                            Vec::new()
  107         -
                        };
  108         -
                        deser.read_list(member, container, |mut list, deser| {
  109         -
                            list.push(crate::types::Tag::deserialize(deser)?);
  110         -
                            Ok(list)
  111         -
                        })?
         103  +
                        let mut container = Vec::new();
         104  +
                        deser.read_list(member, &mut |deser| {
         105  +
                            container.push(crate::types::Tag::deserialize(deser)?);
         106  +
                            Ok(())
         107  +
                        })?;
         108  +
                        container
  112    109   
                    });
  113    110   
                }
  114    111   
                _ => {}
  115    112   
            }
  116    113   
            Ok(())
  117    114   
        })?;
         115  +
        builder.policy_arn = builder.policy_arn.or(Some(String::new()));
         116  +
        builder.tags = builder.tags.or(Some(Vec::new()));
  118    117   
        builder
  119    118   
            .build()
  120    119   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  121    120   
    }
  122    121   
}
         122  +
impl TagPolicyInput {
         123  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         124  +
    pub fn deserialize_with_response(
         125  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         126  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         127  +
        _status: u16,
         128  +
        _body: &[u8],
         129  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         130  +
        Self::deserialize(deserializer)
         131  +
    }
         132  +
}
  123    133   
impl TagPolicyInput {
  124    134   
    /// Creates a new builder-style object to manufacture [`TagPolicyInput`](crate::operation::tag_policy::TagPolicyInput).
  125    135   
    pub fn builder() -> crate::operation::tag_policy::builders::TagPolicyInputBuilder {
  126    136   
        crate::operation::tag_policy::builders::TagPolicyInputBuilder::default()
  127    137   
    }
  128    138   
}
  129    139   
  130    140   
/// A builder for [`TagPolicyInput`](crate::operation::tag_policy::TagPolicyInput).
  131    141   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  132    142   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/tag_policy/_tag_policy_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/tag_role.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 `TagRole`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct TagRole;
    6      6   
impl TagRole {
    7      7   
    /// Creates a new `TagRole`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::tag_role::TagRoleInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::tag_role::TagRoleOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::tag_role::TagRoleInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::tag_role::TagRoleOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::tag_role::TagRoleError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -111,115 +173,178 @@
  131    135   
                crate::operation::tag_role::TagRoleError,
  132    136   
            >::new());
  133    137   
  134    138   
        ::std::borrow::Cow::Owned(rcb)
  135    139   
    }
  136    140   
}
  137    141   
  138    142   
#[derive(Debug)]
  139    143   
struct TagRoleResponseDeserializer;
  140    144   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for TagRoleResponseDeserializer {
  141         -
    fn deserialize_nonstreaming(
         145  +
    fn deserialize_nonstreaming_with_config(
  142    146   
        &self,
  143    147   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         148  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  144    149   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  145    150   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  146    151   
        let headers = response.headers();
  147    152   
        let body = response.body().bytes().expect("body loaded");
  148    153   
        #[allow(unused_mut)]
  149    154   
        let mut force_error = false;
  150    155   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  151    156   
        let parse_result = if !success && status != 200 || force_error {
  152    157   
            crate::protocol_serde::shape_tag_role::de_tag_role_http_error(status, headers, body)
  153    158   
        } else {

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/tag_role/_tag_role_input.rs

@@ -4,4 +146,156 @@
   24     24   
}
   25     25   
static TAGROLEINPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
   26     26   
    ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.iam.synthetic#TagRoleInput", "com.amazonaws.iam.synthetic", "TagRoleInput");
   27     27   
static TAGROLEINPUT_MEMBER_ROLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   28     28   
    ::aws_smithy_schema::ShapeId::from_static(
   29     29   
        "com.amazonaws.iam.synthetic#TagRoleInput$RoleName",
   30     30   
        "com.amazonaws.iam.synthetic",
   31     31   
        "TagRoleInput",
   32     32   
    ),
   33     33   
    ::aws_smithy_schema::ShapeType::String,
   34         -
    "role_name",
          34  +
    "RoleName",
   35     35   
    0,
   36     36   
);
   37     37   
static TAGROLEINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   38     38   
    ::aws_smithy_schema::ShapeId::from_static(
   39     39   
        "com.amazonaws.iam.synthetic#TagRoleInput$Tags",
   40     40   
        "com.amazonaws.iam.synthetic",
   41     41   
        "TagRoleInput",
   42     42   
    ),
   43     43   
    ::aws_smithy_schema::ShapeType::List,
   44         -
    "tags",
          44  +
    "Tags",
   45     45   
    1,
   46     46   
);
   47     47   
static TAGROLEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   48     48   
    TAGROLEINPUT_SCHEMA_ID,
   49     49   
    ::aws_smithy_schema::ShapeType::Structure,
   50     50   
    &[&TAGROLEINPUT_MEMBER_ROLE_NAME, &TAGROLEINPUT_MEMBER_TAGS],
   51     51   
);
   52     52   
impl TagRoleInput {
   53     53   
    /// The schema for this shape.
   54     54   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TAGROLEINPUT_SCHEMA;
   55     55   
}
   56     56   
impl ::aws_smithy_schema::serde::SerializableStruct for TagRoleInput {
   57     57   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   58     58   
    fn serialize_members(
   59     59   
        &self,
   60     60   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   61     61   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   62     62   
        if let Some(ref val) = self.role_name {
   63     63   
            ser.write_string(&TAGROLEINPUT_MEMBER_ROLE_NAME, val)?;
   64     64   
        }
   65     65   
        if let Some(ref val) = self.tags {
   66     66   
            ser.write_list(&TAGROLEINPUT_MEMBER_TAGS, &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   67     67   
                for item in val {
   68     68   
                    ser.write_struct(crate::types::Tag::SCHEMA, item)?;
   69     69   
                }
   70     70   
                Ok(())
   71     71   
            })?;
   72     72   
        }
   73     73   
        Ok(())
   74     74   
    }
   75     75   
}
   76     76   
impl TagRoleInput {
   77     77   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   78         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   79         -
        deserializer: &mut D,
          78  +
    pub fn deserialize(
          79  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   80     80   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   81     81   
        #[allow(unused_variables, unused_mut)]
   82     82   
        let mut builder = Self::builder();
   83     83   
        #[allow(
   84     84   
            unused_variables,
   85     85   
            unreachable_code,
   86     86   
            clippy::single_match,
   87     87   
            clippy::match_single_binding,
   88     88   
            clippy::diverging_sub_expression
   89     89   
        )]
   90         -
        deserializer.read_struct(&TAGROLEINPUT_SCHEMA, (), |_, member, deser| {
          90  +
        deserializer.read_struct(&TAGROLEINPUT_SCHEMA, &mut |member, deser| {
   91     91   
            match member.member_index() {
   92     92   
                Some(0) => {
   93     93   
                    builder.role_name = Some(deser.read_string(member)?);
   94     94   
                }
   95     95   
                Some(1) => {
   96     96   
                    builder.tags = Some({
   97         -
                        let container = if let Some(cap) = deser.container_size() {
   98         -
                            Vec::with_capacity(cap)
   99         -
                        } else {
  100         -
                            Vec::new()
  101         -
                        };
  102         -
                        deser.read_list(member, container, |mut list, deser| {
  103         -
                            list.push(crate::types::Tag::deserialize(deser)?);
  104         -
                            Ok(list)
  105         -
                        })?
          97  +
                        let mut container = Vec::new();
          98  +
                        deser.read_list(member, &mut |deser| {
          99  +
                            container.push(crate::types::Tag::deserialize(deser)?);
         100  +
                            Ok(())
         101  +
                        })?;
         102  +
                        container
  106    103   
                    });
  107    104   
                }
  108    105   
                _ => {}
  109    106   
            }
  110    107   
            Ok(())
  111    108   
        })?;
         109  +
        builder.role_name = builder.role_name.or(Some(String::new()));
         110  +
        builder.tags = builder.tags.or(Some(Vec::new()));
  112    111   
        builder
  113    112   
            .build()
  114    113   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  115    114   
    }
  116    115   
}
         116  +
impl TagRoleInput {
         117  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         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  +
        Self::deserialize(deserializer)
         125  +
    }
         126  +
}
  117    127   
impl TagRoleInput {
  118    128   
    /// Creates a new builder-style object to manufacture [`TagRoleInput`](crate::operation::tag_role::TagRoleInput).
  119    129   
    pub fn builder() -> crate::operation::tag_role::builders::TagRoleInputBuilder {
  120    130   
        crate::operation::tag_role::builders::TagRoleInputBuilder::default()
  121    131   
    }
  122    132   
}
  123    133   
  124    134   
/// A builder for [`TagRoleInput`](crate::operation::tag_role::TagRoleInput).
  125    135   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  126    136   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/tag_role/_tag_role_output.rs

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

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