AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c

Files changed:

tmp-codegen-diff/aws-sdk/sdk/sts/src/operation/assume_role_with_saml.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 `AssumeRoleWithSAML`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct AssumeRoleWithSAML;
    6      6   
impl AssumeRoleWithSAML {
    7      7   
    /// Creates a new `AssumeRoleWithSAML`
    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::assume_role_with_saml::AssumeRoleWithSamlInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::assume_role_with_saml::AssumeRoleWithSamlOutput::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::assume_role_with_saml::AssumeRoleWithSamlInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::assume_role_with_saml::AssumeRoleWithSamlOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::assume_role_with_saml::AssumeRoleWithSAMLError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -106,110 +168,173 @@
  126    130   
                crate::operation::assume_role_with_saml::AssumeRoleWithSAMLError,
  127    131   
            >::new());
  128    132   
  129    133   
        ::std::borrow::Cow::Owned(rcb)
  130    134   
    }
  131    135   
}
  132    136   
  133    137   
#[derive(Debug)]
  134    138   
struct AssumeRoleWithSAMLResponseDeserializer;
  135    139   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for AssumeRoleWithSAMLResponseDeserializer {
  136         -
    fn deserialize_nonstreaming(
         140  +
    fn deserialize_nonstreaming_with_config(
  137    141   
        &self,
  138    142   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         143  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  139    144   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  140    145   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  141    146   
        let headers = response.headers();
  142    147   
        let body = response.body().bytes().expect("body loaded");
  143    148   
        #[allow(unused_mut)]
  144    149   
        let mut force_error = false;
  145    150   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  146    151   
        let parse_result = if !success && status != 200 || force_error {
  147    152   
            crate::protocol_serde::shape_assume_role_with_saml::de_assume_role_with_saml_http_error(status, headers, body)
  148    153   
        } else {

tmp-codegen-diff/aws-sdk/sdk/sts/src/operation/assume_role_with_saml/_assume_role_with_saml_input.rs

@@ -67,67 +283,294 @@
   87     87   
    "com.amazonaws.sts.synthetic",
   88     88   
    "AssumeRoleWithSAMLInput",
   89     89   
);
   90     90   
static ASSUMEROLEWITHSAMLINPUT_MEMBER_ROLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static(
   92     92   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLInput$RoleArn",
   93     93   
        "com.amazonaws.sts.synthetic",
   94     94   
        "AssumeRoleWithSAMLInput",
   95     95   
    ),
   96     96   
    ::aws_smithy_schema::ShapeType::String,
   97         -
    "role_arn",
          97  +
    "RoleArn",
   98     98   
    0,
   99     99   
);
  100    100   
static ASSUMEROLEWITHSAMLINPUT_MEMBER_PRINCIPAL_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  101    101   
    ::aws_smithy_schema::ShapeId::from_static(
  102    102   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLInput$PrincipalArn",
  103    103   
        "com.amazonaws.sts.synthetic",
  104    104   
        "AssumeRoleWithSAMLInput",
  105    105   
    ),
  106    106   
    ::aws_smithy_schema::ShapeType::String,
  107         -
    "principal_arn",
         107  +
    "PrincipalArn",
  108    108   
    1,
  109    109   
);
  110    110   
static ASSUMEROLEWITHSAMLINPUT_MEMBER_SAML_ASSERTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  111    111   
    ::aws_smithy_schema::ShapeId::from_static(
  112    112   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLInput$SAMLAssertion",
  113    113   
        "com.amazonaws.sts.synthetic",
  114    114   
        "AssumeRoleWithSAMLInput",
  115    115   
    ),
  116    116   
    ::aws_smithy_schema::ShapeType::String,
  117         -
    "saml_assertion",
         117  +
    "SAMLAssertion",
  118    118   
    2,
  119    119   
);
  120    120   
static ASSUMEROLEWITHSAMLINPUT_MEMBER_POLICY_ARNS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  121    121   
    ::aws_smithy_schema::ShapeId::from_static(
  122    122   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLInput$PolicyArns",
  123    123   
        "com.amazonaws.sts.synthetic",
  124    124   
        "AssumeRoleWithSAMLInput",
  125    125   
    ),
  126    126   
    ::aws_smithy_schema::ShapeType::List,
  127         -
    "policy_arns",
         127  +
    "PolicyArns",
  128    128   
    3,
  129    129   
);
  130    130   
static ASSUMEROLEWITHSAMLINPUT_MEMBER_POLICY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  131    131   
    ::aws_smithy_schema::ShapeId::from_static(
  132    132   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLInput$Policy",
  133    133   
        "com.amazonaws.sts.synthetic",
  134    134   
        "AssumeRoleWithSAMLInput",
  135    135   
    ),
  136    136   
    ::aws_smithy_schema::ShapeType::String,
  137         -
    "policy",
         137  +
    "Policy",
  138    138   
    4,
  139    139   
);
  140    140   
static ASSUMEROLEWITHSAMLINPUT_MEMBER_DURATION_SECONDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  141    141   
    ::aws_smithy_schema::ShapeId::from_static(
  142    142   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLInput$DurationSeconds",
  143    143   
        "com.amazonaws.sts.synthetic",
  144    144   
        "AssumeRoleWithSAMLInput",
  145    145   
    ),
  146    146   
    ::aws_smithy_schema::ShapeType::Integer,
  147         -
    "duration_seconds",
         147  +
    "DurationSeconds",
  148    148   
    5,
  149    149   
);
  150    150   
static ASSUMEROLEWITHSAMLINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  151    151   
    ASSUMEROLEWITHSAMLINPUT_SCHEMA_ID,
  152    152   
    ::aws_smithy_schema::ShapeType::Structure,
  153    153   
    &[
  154    154   
        &ASSUMEROLEWITHSAMLINPUT_MEMBER_ROLE_ARN,
  155    155   
        &ASSUMEROLEWITHSAMLINPUT_MEMBER_PRINCIPAL_ARN,
  156    156   
        &ASSUMEROLEWITHSAMLINPUT_MEMBER_SAML_ASSERTION,
  157    157   
        &ASSUMEROLEWITHSAMLINPUT_MEMBER_POLICY_ARNS,
  158    158   
        &ASSUMEROLEWITHSAMLINPUT_MEMBER_POLICY,
  159    159   
        &ASSUMEROLEWITHSAMLINPUT_MEMBER_DURATION_SECONDS,
  160    160   
    ],
  161    161   
);
  162    162   
impl AssumeRoleWithSamlInput {
  163    163   
    /// The schema for this shape.
  164    164   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ASSUMEROLEWITHSAMLINPUT_SCHEMA;
  165    165   
}
  166    166   
impl ::aws_smithy_schema::serde::SerializableStruct for AssumeRoleWithSamlInput {
  167    167   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  168    168   
    fn serialize_members(
  169    169   
        &self,
  170    170   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  171    171   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  172    172   
        if let Some(ref val) = self.role_arn {
  173    173   
            ser.write_string(&ASSUMEROLEWITHSAMLINPUT_MEMBER_ROLE_ARN, val)?;
  174    174   
        }
  175    175   
        if let Some(ref val) = self.principal_arn {
  176    176   
            ser.write_string(&ASSUMEROLEWITHSAMLINPUT_MEMBER_PRINCIPAL_ARN, val)?;
  177    177   
        }
  178    178   
        if let Some(ref val) = self.saml_assertion {
  179    179   
            ser.write_string(&ASSUMEROLEWITHSAMLINPUT_MEMBER_SAML_ASSERTION, val)?;
  180    180   
        }
  181    181   
        if let Some(ref val) = self.policy_arns {
  182    182   
            ser.write_list(
  183    183   
                &ASSUMEROLEWITHSAMLINPUT_MEMBER_POLICY_ARNS,
  184    184   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  185    185   
                    for item in val {
  186    186   
                        ser.write_struct(crate::types::PolicyDescriptorType::SCHEMA, item)?;
  187    187   
                    }
  188    188   
                    Ok(())
  189    189   
                },
  190    190   
            )?;
  191    191   
        }
  192    192   
        if let Some(ref val) = self.policy {
  193    193   
            ser.write_string(&ASSUMEROLEWITHSAMLINPUT_MEMBER_POLICY, val)?;
  194    194   
        }
  195    195   
        if let Some(ref val) = self.duration_seconds {
  196    196   
            ser.write_integer(&ASSUMEROLEWITHSAMLINPUT_MEMBER_DURATION_SECONDS, *val)?;
  197    197   
        }
  198    198   
        Ok(())
  199    199   
    }
  200    200   
}
  201    201   
impl AssumeRoleWithSamlInput {
  202    202   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  203         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  204         -
        deserializer: &mut D,
         203  +
    pub fn deserialize(
         204  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  205    205   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  206    206   
        #[allow(unused_variables, unused_mut)]
  207    207   
        let mut builder = Self::builder();
  208    208   
        #[allow(
  209    209   
            unused_variables,
  210    210   
            unreachable_code,
  211    211   
            clippy::single_match,
  212    212   
            clippy::match_single_binding,
  213    213   
            clippy::diverging_sub_expression
  214    214   
        )]
  215         -
        deserializer.read_struct(&ASSUMEROLEWITHSAMLINPUT_SCHEMA, (), |_, member, deser| {
         215  +
        deserializer.read_struct(&ASSUMEROLEWITHSAMLINPUT_SCHEMA, &mut |member, deser| {
  216    216   
            match member.member_index() {
  217    217   
                Some(0) => {
  218    218   
                    builder.role_arn = Some(deser.read_string(member)?);
  219    219   
                }
  220    220   
                Some(1) => {
  221    221   
                    builder.principal_arn = Some(deser.read_string(member)?);
  222    222   
                }
  223    223   
                Some(2) => {
  224    224   
                    builder.saml_assertion = Some(deser.read_string(member)?);
  225    225   
                }
  226    226   
                Some(3) => {
  227    227   
                    builder.policy_arns = Some({
  228         -
                        let container = if let Some(cap) = deser.container_size() {
  229         -
                            Vec::with_capacity(cap)
  230         -
                        } else {
  231         -
                            Vec::new()
  232         -
                        };
  233         -
                        deser.read_list(member, container, |mut list, deser| {
  234         -
                            list.push(crate::types::PolicyDescriptorType::deserialize(deser)?);
  235         -
                            Ok(list)
  236         -
                        })?
         228  +
                        let mut container = Vec::new();
         229  +
                        deser.read_list(member, &mut |deser| {
         230  +
                            container.push(crate::types::PolicyDescriptorType::deserialize(deser)?);
         231  +
                            Ok(())
         232  +
                        })?;
         233  +
                        container
  237    234   
                    });
  238    235   
                }
  239    236   
                Some(4) => {
  240    237   
                    builder.policy = Some(deser.read_string(member)?);
  241    238   
                }
  242    239   
                Some(5) => {
  243    240   
                    builder.duration_seconds = Some(deser.read_integer(member)?);
  244    241   
                }
  245    242   
                _ => {}
  246    243   
            }
  247    244   
            Ok(())
  248    245   
        })?;
         246  +
        builder.role_arn = builder.role_arn.or(Some(String::new()));
         247  +
        builder.principal_arn = builder.principal_arn.or(Some(String::new()));
         248  +
        builder.saml_assertion = builder.saml_assertion.or(Some(String::new()));
  249    249   
        builder
  250    250   
            .build()
  251    251   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  252    252   
    }
  253    253   
}
         254  +
impl AssumeRoleWithSamlInput {
         255  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         256  +
    pub fn deserialize_with_response(
         257  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         258  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         259  +
        _status: u16,
         260  +
        _body: &[u8],
         261  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         262  +
        Self::deserialize(deserializer)
         263  +
    }
         264  +
}
  254    265   
impl AssumeRoleWithSamlInput {
  255    266   
    /// Creates a new builder-style object to manufacture [`AssumeRoleWithSamlInput`](crate::operation::assume_role_with_saml::AssumeRoleWithSamlInput).
  256    267   
    pub fn builder() -> crate::operation::assume_role_with_saml::builders::AssumeRoleWithSamlInputBuilder {
  257    268   
        crate::operation::assume_role_with_saml::builders::AssumeRoleWithSamlInputBuilder::default()
  258    269   
    }
  259    270   
}
  260    271   
  261    272   
/// A builder for [`AssumeRoleWithSamlInput`](crate::operation::assume_role_with_saml::AssumeRoleWithSamlInput).
  262    273   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
  263    274   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/sts/src/operation/assume_role_with_saml/_assume_role_with_saml_output.rs

@@ -95,95 +307,376 @@
  115    115   
    "com.amazonaws.sts.synthetic",
  116    116   
    "AssumeRoleWithSAMLOutput",
  117    117   
);
  118    118   
static ASSUMEROLEWITHSAMLOUTPUT_MEMBER_CREDENTIALS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  119    119   
    ::aws_smithy_schema::ShapeId::from_static(
  120    120   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLOutput$Credentials",
  121    121   
        "com.amazonaws.sts.synthetic",
  122    122   
        "AssumeRoleWithSAMLOutput",
  123    123   
    ),
  124    124   
    ::aws_smithy_schema::ShapeType::Structure,
  125         -
    "credentials",
         125  +
    "Credentials",
  126    126   
    0,
  127    127   
);
  128    128   
static ASSUMEROLEWITHSAMLOUTPUT_MEMBER_ASSUMED_ROLE_USER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  129    129   
    ::aws_smithy_schema::ShapeId::from_static(
  130    130   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLOutput$AssumedRoleUser",
  131    131   
        "com.amazonaws.sts.synthetic",
  132    132   
        "AssumeRoleWithSAMLOutput",
  133    133   
    ),
  134    134   
    ::aws_smithy_schema::ShapeType::Structure,
  135         -
    "assumed_role_user",
         135  +
    "AssumedRoleUser",
  136    136   
    1,
  137    137   
);
  138    138   
static ASSUMEROLEWITHSAMLOUTPUT_MEMBER_PACKED_POLICY_SIZE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  139    139   
    ::aws_smithy_schema::ShapeId::from_static(
  140    140   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLOutput$PackedPolicySize",
  141    141   
        "com.amazonaws.sts.synthetic",
  142    142   
        "AssumeRoleWithSAMLOutput",
  143    143   
    ),
  144    144   
    ::aws_smithy_schema::ShapeType::Integer,
  145         -
    "packed_policy_size",
         145  +
    "PackedPolicySize",
  146    146   
    2,
  147    147   
);
  148    148   
static ASSUMEROLEWITHSAMLOUTPUT_MEMBER_SUBJECT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  149    149   
    ::aws_smithy_schema::ShapeId::from_static(
  150    150   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLOutput$Subject",
  151    151   
        "com.amazonaws.sts.synthetic",
  152    152   
        "AssumeRoleWithSAMLOutput",
  153    153   
    ),
  154    154   
    ::aws_smithy_schema::ShapeType::String,
  155         -
    "subject",
         155  +
    "Subject",
  156    156   
    3,
  157    157   
);
  158    158   
static ASSUMEROLEWITHSAMLOUTPUT_MEMBER_SUBJECT_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  159    159   
    ::aws_smithy_schema::ShapeId::from_static(
  160    160   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLOutput$SubjectType",
  161    161   
        "com.amazonaws.sts.synthetic",
  162    162   
        "AssumeRoleWithSAMLOutput",
  163    163   
    ),
  164    164   
    ::aws_smithy_schema::ShapeType::String,
  165         -
    "subject_type",
         165  +
    "SubjectType",
  166    166   
    4,
  167    167   
);
  168    168   
static ASSUMEROLEWITHSAMLOUTPUT_MEMBER_ISSUER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  169    169   
    ::aws_smithy_schema::ShapeId::from_static(
  170    170   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLOutput$Issuer",
  171    171   
        "com.amazonaws.sts.synthetic",
  172    172   
        "AssumeRoleWithSAMLOutput",
  173    173   
    ),
  174    174   
    ::aws_smithy_schema::ShapeType::String,
  175         -
    "issuer",
         175  +
    "Issuer",
  176    176   
    5,
  177    177   
);
  178    178   
static ASSUMEROLEWITHSAMLOUTPUT_MEMBER_AUDIENCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  179    179   
    ::aws_smithy_schema::ShapeId::from_static(
  180    180   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLOutput$Audience",
  181    181   
        "com.amazonaws.sts.synthetic",
  182    182   
        "AssumeRoleWithSAMLOutput",
  183    183   
    ),
  184    184   
    ::aws_smithy_schema::ShapeType::String,
  185         -
    "audience",
         185  +
    "Audience",
  186    186   
    6,
  187    187   
);
  188    188   
static ASSUMEROLEWITHSAMLOUTPUT_MEMBER_NAME_QUALIFIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  189    189   
    ::aws_smithy_schema::ShapeId::from_static(
  190    190   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLOutput$NameQualifier",
  191    191   
        "com.amazonaws.sts.synthetic",
  192    192   
        "AssumeRoleWithSAMLOutput",
  193    193   
    ),
  194    194   
    ::aws_smithy_schema::ShapeType::String,
  195         -
    "name_qualifier",
         195  +
    "NameQualifier",
  196    196   
    7,
  197    197   
);
  198    198   
static ASSUMEROLEWITHSAMLOUTPUT_MEMBER_SOURCE_IDENTITY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  199    199   
    ::aws_smithy_schema::ShapeId::from_static(
  200    200   
        "com.amazonaws.sts.synthetic#AssumeRoleWithSAMLOutput$SourceIdentity",
  201    201   
        "com.amazonaws.sts.synthetic",
  202    202   
        "AssumeRoleWithSAMLOutput",
  203    203   
    ),
  204    204   
    ::aws_smithy_schema::ShapeType::String,
  205         -
    "source_identity",
         205  +
    "SourceIdentity",
  206    206   
    8,
  207    207   
);
         208  +
static ASSUMEROLEWITHSAMLOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         209  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         210  +
    ::aws_smithy_schema::ShapeType::String,
         211  +
    "request_id",
         212  +
    9,
         213  +
)
         214  +
.with_http_header("x-amzn-requestid");
  208    215   
static ASSUMEROLEWITHSAMLOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  209    216   
    ASSUMEROLEWITHSAMLOUTPUT_SCHEMA_ID,
  210    217   
    ::aws_smithy_schema::ShapeType::Structure,
  211    218   
    &[
  212    219   
        &ASSUMEROLEWITHSAMLOUTPUT_MEMBER_CREDENTIALS,
  213    220   
        &ASSUMEROLEWITHSAMLOUTPUT_MEMBER_ASSUMED_ROLE_USER,
  214    221   
        &ASSUMEROLEWITHSAMLOUTPUT_MEMBER_PACKED_POLICY_SIZE,
  215    222   
        &ASSUMEROLEWITHSAMLOUTPUT_MEMBER_SUBJECT,
  216    223   
        &ASSUMEROLEWITHSAMLOUTPUT_MEMBER_SUBJECT_TYPE,
  217    224   
        &ASSUMEROLEWITHSAMLOUTPUT_MEMBER_ISSUER,
  218    225   
        &ASSUMEROLEWITHSAMLOUTPUT_MEMBER_AUDIENCE,
  219    226   
        &ASSUMEROLEWITHSAMLOUTPUT_MEMBER_NAME_QUALIFIER,
  220    227   
        &ASSUMEROLEWITHSAMLOUTPUT_MEMBER_SOURCE_IDENTITY,
         228  +
        &ASSUMEROLEWITHSAMLOUTPUT_MEMBER__REQUEST_ID,
  221    229   
    ],
  222    230   
);
  223    231   
impl AssumeRoleWithSamlOutput {
  224    232   
    /// The schema for this shape.
  225    233   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ASSUMEROLEWITHSAMLOUTPUT_SCHEMA;
  226    234   
}
  227    235   
impl ::aws_smithy_schema::serde::SerializableStruct for AssumeRoleWithSamlOutput {
  228    236   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  229    237   
    fn serialize_members(
  230    238   
        &self,
  231    239   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  232    240   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  233    241   
        if let Some(ref val) = self.credentials {
  234    242   
            ser.write_struct(&ASSUMEROLEWITHSAMLOUTPUT_MEMBER_CREDENTIALS, val)?;
  235    243   
        }
  236    244   
        if let Some(ref val) = self.assumed_role_user {
  237    245   
            ser.write_struct(&ASSUMEROLEWITHSAMLOUTPUT_MEMBER_ASSUMED_ROLE_USER, val)?;
  238    246   
        }
  239    247   
        if let Some(ref val) = self.packed_policy_size {
  240    248   
            ser.write_integer(&ASSUMEROLEWITHSAMLOUTPUT_MEMBER_PACKED_POLICY_SIZE, *val)?;
  241    249   
        }
  242    250   
        if let Some(ref val) = self.subject {
  243    251   
            ser.write_string(&ASSUMEROLEWITHSAMLOUTPUT_MEMBER_SUBJECT, val)?;
  244    252   
        }
  245    253   
        if let Some(ref val) = self.subject_type {
  246    254   
            ser.write_string(&ASSUMEROLEWITHSAMLOUTPUT_MEMBER_SUBJECT_TYPE, val)?;
  247    255   
        }
  248    256   
        if let Some(ref val) = self.issuer {
  249    257   
            ser.write_string(&ASSUMEROLEWITHSAMLOUTPUT_MEMBER_ISSUER, val)?;
  250    258   
        }
  251    259   
        if let Some(ref val) = self.audience {
  252    260   
            ser.write_string(&ASSUMEROLEWITHSAMLOUTPUT_MEMBER_AUDIENCE, val)?;
  253    261   
        }
  254    262   
        if let Some(ref val) = self.name_qualifier {
  255    263   
            ser.write_string(&ASSUMEROLEWITHSAMLOUTPUT_MEMBER_NAME_QUALIFIER, val)?;
  256    264   
        }
  257    265   
        if let Some(ref val) = self.source_identity {
  258    266   
            ser.write_string(&ASSUMEROLEWITHSAMLOUTPUT_MEMBER_SOURCE_IDENTITY, val)?;
  259    267   
        }
  260    268   
        Ok(())
  261    269   
    }
  262    270   
}
  263    271   
impl AssumeRoleWithSamlOutput {
  264    272   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  265         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  266         -
        deserializer: &mut D,
         273  +
    pub fn deserialize(
         274  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  267    275   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  268    276   
        #[allow(unused_variables, unused_mut)]
  269    277   
        let mut builder = Self::builder();
  270    278   
        #[allow(
  271    279   
            unused_variables,
  272    280   
            unreachable_code,
  273    281   
            clippy::single_match,
  274    282   
            clippy::match_single_binding,
  275    283   
            clippy::diverging_sub_expression
  276    284   
        )]
  277         -
        deserializer.read_struct(&ASSUMEROLEWITHSAMLOUTPUT_SCHEMA, (), |_, member, deser| {
         285  +
        deserializer.read_struct(&ASSUMEROLEWITHSAMLOUTPUT_SCHEMA, &mut |member, deser| {
         286  +
            match member.member_index() {
         287  +
                Some(0) => {
         288  +
                    builder.credentials = Some(crate::types::Credentials::deserialize(deser)?);
         289  +
                }
         290  +
                Some(1) => {
         291  +
                    builder.assumed_role_user = Some(crate::types::AssumedRoleUser::deserialize(deser)?);
         292  +
                }
         293  +
                Some(2) => {
         294  +
                    builder.packed_policy_size = Some(deser.read_integer(member)?);
         295  +
                }
         296  +
                Some(3) => {
         297  +
                    builder.subject = Some(deser.read_string(member)?);
         298  +
                }
         299  +
                Some(4) => {
         300  +
                    builder.subject_type = Some(deser.read_string(member)?);
         301  +
                }
         302  +
                Some(5) => {
         303  +
                    builder.issuer = Some(deser.read_string(member)?);
         304  +
                }
         305  +
                Some(6) => {
         306  +
                    builder.audience = Some(deser.read_string(member)?);
         307  +
                }
         308  +
                Some(7) => {
         309  +
                    builder.name_qualifier = Some(deser.read_string(member)?);
         310  +
                }
         311  +
                Some(8) => {
         312  +
                    builder.source_identity = Some(deser.read_string(member)?);
         313  +
                }
         314  +
                Some(9) => {
         315  +
                    builder._request_id = Some(deser.read_string(member)?);
         316  +
                }
         317  +
                _ => {}
         318  +
            }
         319  +
            Ok(())
         320  +
        })?;
         321  +
        Ok(builder.build())
         322  +
    }
         323  +
}
         324  +
impl AssumeRoleWithSamlOutput {
         325  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         326  +
    /// Header-bound members are read directly from headers, avoiding runtime
         327  +
    /// member iteration overhead. Body members are read via the deserializer.
         328  +
    pub fn deserialize_with_response(
         329  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         330  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         331  +
        _status: u16,
         332  +
        _body: &[u8],
         333  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         334  +
        #[allow(unused_variables, unused_mut)]
         335  +
        let mut builder = Self::builder();
         336  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         337  +
            builder._request_id = Some(val.to_string());
         338  +
        }
         339  +
        #[allow(
         340  +
            unused_variables,
         341  +
            unreachable_code,
         342  +
            clippy::single_match,
         343  +
            clippy::match_single_binding,
         344  +
            clippy::diverging_sub_expression
         345  +
        )]
         346  +
        deserializer.read_struct(&ASSUMEROLEWITHSAMLOUTPUT_SCHEMA, &mut |member, deser| {
  278    347   
            match member.member_index() {
  279    348   
                Some(0) => {
  280    349   
                    builder.credentials = Some(crate::types::Credentials::deserialize(deser)?);
  281    350   
                }
  282    351   
                Some(1) => {
  283    352   
                    builder.assumed_role_user = Some(crate::types::AssumedRoleUser::deserialize(deser)?);
  284    353   
                }
  285    354   
                Some(2) => {
  286    355   
                    builder.packed_policy_size = Some(deser.read_integer(member)?);
  287    356   
                }

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

tmp-codegen-diff/aws-sdk/sdk/sts/src/operation/assume_role_with_web_identity/_assume_role_with_web_identity_input.rs

@@ -84,84 +317,328 @@
  104    104   
    "com.amazonaws.sts.synthetic",
  105    105   
    "AssumeRoleWithWebIdentityInput",
  106    106   
);
  107    107   
static ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_ROLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  108    108   
    ::aws_smithy_schema::ShapeId::from_static(
  109    109   
        "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityInput$RoleArn",
  110    110   
        "com.amazonaws.sts.synthetic",
  111    111   
        "AssumeRoleWithWebIdentityInput",
  112    112   
    ),
  113    113   
    ::aws_smithy_schema::ShapeType::String,
  114         -
    "role_arn",
         114  +
    "RoleArn",
  115    115   
    0,
  116    116   
);
  117    117   
static ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_ROLE_SESSION_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  118    118   
    ::aws_smithy_schema::ShapeId::from_static(
  119    119   
        "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityInput$RoleSessionName",
  120    120   
        "com.amazonaws.sts.synthetic",
  121    121   
        "AssumeRoleWithWebIdentityInput",
  122    122   
    ),
  123    123   
    ::aws_smithy_schema::ShapeType::String,
  124         -
    "role_session_name",
         124  +
    "RoleSessionName",
  125    125   
    1,
  126    126   
);
  127    127   
static ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_WEB_IDENTITY_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  128    128   
    ::aws_smithy_schema::ShapeId::from_static(
  129    129   
        "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityInput$WebIdentityToken",
  130    130   
        "com.amazonaws.sts.synthetic",
  131    131   
        "AssumeRoleWithWebIdentityInput",
  132    132   
    ),
  133    133   
    ::aws_smithy_schema::ShapeType::String,
  134         -
    "web_identity_token",
         134  +
    "WebIdentityToken",
  135    135   
    2,
  136    136   
);
  137    137   
static ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_PROVIDER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  138    138   
    ::aws_smithy_schema::ShapeId::from_static(
  139    139   
        "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityInput$ProviderId",
  140    140   
        "com.amazonaws.sts.synthetic",
  141    141   
        "AssumeRoleWithWebIdentityInput",
  142    142   
    ),
  143    143   
    ::aws_smithy_schema::ShapeType::String,
  144         -
    "provider_id",
         144  +
    "ProviderId",
  145    145   
    3,
  146    146   
);
  147    147   
static ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_POLICY_ARNS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  148    148   
    ::aws_smithy_schema::ShapeId::from_static(
  149    149   
        "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityInput$PolicyArns",
  150    150   
        "com.amazonaws.sts.synthetic",
  151    151   
        "AssumeRoleWithWebIdentityInput",
  152    152   
    ),
  153    153   
    ::aws_smithy_schema::ShapeType::List,
  154         -
    "policy_arns",
         154  +
    "PolicyArns",
  155    155   
    4,
  156    156   
);
  157    157   
static ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_POLICY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  158    158   
    ::aws_smithy_schema::ShapeId::from_static(
  159    159   
        "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityInput$Policy",
  160    160   
        "com.amazonaws.sts.synthetic",
  161    161   
        "AssumeRoleWithWebIdentityInput",
  162    162   
    ),
  163    163   
    ::aws_smithy_schema::ShapeType::String,
  164         -
    "policy",
         164  +
    "Policy",
  165    165   
    5,
  166    166   
);
  167    167   
static ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_DURATION_SECONDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  168    168   
    ::aws_smithy_schema::ShapeId::from_static(
  169    169   
        "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityInput$DurationSeconds",
  170    170   
        "com.amazonaws.sts.synthetic",
  171    171   
        "AssumeRoleWithWebIdentityInput",
  172    172   
    ),
  173    173   
    ::aws_smithy_schema::ShapeType::Integer,
  174         -
    "duration_seconds",
         174  +
    "DurationSeconds",
  175    175   
    6,
  176    176   
);
  177    177   
static ASSUMEROLEWITHWEBIDENTITYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  178    178   
    ASSUMEROLEWITHWEBIDENTITYINPUT_SCHEMA_ID,
  179    179   
    ::aws_smithy_schema::ShapeType::Structure,
  180    180   
    &[
  181    181   
        &ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_ROLE_ARN,
  182    182   
        &ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_ROLE_SESSION_NAME,
  183    183   
        &ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_WEB_IDENTITY_TOKEN,
  184    184   
        &ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_PROVIDER_ID,
  185    185   
        &ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_POLICY_ARNS,
  186    186   
        &ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_POLICY,
  187    187   
        &ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_DURATION_SECONDS,
  188    188   
    ],
  189    189   
);
  190    190   
impl AssumeRoleWithWebIdentityInput {
  191    191   
    /// The schema for this shape.
  192    192   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ASSUMEROLEWITHWEBIDENTITYINPUT_SCHEMA;
  193    193   
}
  194    194   
impl ::aws_smithy_schema::serde::SerializableStruct for AssumeRoleWithWebIdentityInput {
  195    195   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  196    196   
    fn serialize_members(
  197    197   
        &self,
  198    198   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  199    199   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  200    200   
        if let Some(ref val) = self.role_arn {
  201    201   
            ser.write_string(&ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_ROLE_ARN, val)?;
  202    202   
        }
  203    203   
        if let Some(ref val) = self.role_session_name {
  204    204   
            ser.write_string(&ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_ROLE_SESSION_NAME, val)?;
  205    205   
        }
  206    206   
        if let Some(ref val) = self.web_identity_token {
  207    207   
            ser.write_string(&ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_WEB_IDENTITY_TOKEN, val)?;
  208    208   
        }
  209    209   
        if let Some(ref val) = self.provider_id {
  210    210   
            ser.write_string(&ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_PROVIDER_ID, val)?;
  211    211   
        }
  212    212   
        if let Some(ref val) = self.policy_arns {
  213    213   
            ser.write_list(
  214    214   
                &ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_POLICY_ARNS,
  215    215   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  216    216   
                    for item in val {
  217    217   
                        ser.write_struct(crate::types::PolicyDescriptorType::SCHEMA, item)?;
  218    218   
                    }
  219    219   
                    Ok(())
  220    220   
                },
  221    221   
            )?;
  222    222   
        }
  223    223   
        if let Some(ref val) = self.policy {
  224    224   
            ser.write_string(&ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_POLICY, val)?;
  225    225   
        }
  226    226   
        if let Some(ref val) = self.duration_seconds {
  227    227   
            ser.write_integer(&ASSUMEROLEWITHWEBIDENTITYINPUT_MEMBER_DURATION_SECONDS, *val)?;
  228    228   
        }
  229    229   
        Ok(())
  230    230   
    }
  231    231   
}
  232    232   
impl AssumeRoleWithWebIdentityInput {
  233    233   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  234         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  235         -
        deserializer: &mut D,
         234  +
    pub fn deserialize(
         235  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  236    236   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  237    237   
        #[allow(unused_variables, unused_mut)]
  238    238   
        let mut builder = Self::builder();
  239    239   
        #[allow(
  240    240   
            unused_variables,
  241    241   
            unreachable_code,
  242    242   
            clippy::single_match,
  243    243   
            clippy::match_single_binding,
  244    244   
            clippy::diverging_sub_expression
  245    245   
        )]
  246         -
        deserializer.read_struct(&ASSUMEROLEWITHWEBIDENTITYINPUT_SCHEMA, (), |_, member, deser| {
         246  +
        deserializer.read_struct(&ASSUMEROLEWITHWEBIDENTITYINPUT_SCHEMA, &mut |member, deser| {
  247    247   
            match member.member_index() {
  248    248   
                Some(0) => {
  249    249   
                    builder.role_arn = Some(deser.read_string(member)?);
  250    250   
                }
  251    251   
                Some(1) => {
  252    252   
                    builder.role_session_name = Some(deser.read_string(member)?);
  253    253   
                }
  254    254   
                Some(2) => {
  255    255   
                    builder.web_identity_token = Some(deser.read_string(member)?);
  256    256   
                }
  257    257   
                Some(3) => {
  258    258   
                    builder.provider_id = Some(deser.read_string(member)?);
  259    259   
                }
  260    260   
                Some(4) => {
  261    261   
                    builder.policy_arns = Some({
  262         -
                        let container = if let Some(cap) = deser.container_size() {
  263         -
                            Vec::with_capacity(cap)
  264         -
                        } else {
  265         -
                            Vec::new()
  266         -
                        };
  267         -
                        deser.read_list(member, container, |mut list, deser| {
  268         -
                            list.push(crate::types::PolicyDescriptorType::deserialize(deser)?);
  269         -
                            Ok(list)
  270         -
                        })?
         262  +
                        let mut container = Vec::new();
         263  +
                        deser.read_list(member, &mut |deser| {
         264  +
                            container.push(crate::types::PolicyDescriptorType::deserialize(deser)?);
         265  +
                            Ok(())
         266  +
                        })?;
         267  +
                        container
  271    268   
                    });
  272    269   
                }
  273    270   
                Some(5) => {
  274    271   
                    builder.policy = Some(deser.read_string(member)?);
  275    272   
                }
  276    273   
                Some(6) => {
  277    274   
                    builder.duration_seconds = Some(deser.read_integer(member)?);
  278    275   
                }
  279    276   
                _ => {}
  280    277   
            }
  281    278   
            Ok(())
  282    279   
        })?;
         280  +
        builder.role_arn = builder.role_arn.or(Some(String::new()));
         281  +
        builder.role_session_name = builder.role_session_name.or(Some(String::new()));
         282  +
        builder.web_identity_token = builder.web_identity_token.or(Some(String::new()));
  283    283   
        builder
  284    284   
            .build()
  285    285   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  286    286   
    }
  287    287   
}
         288  +
impl AssumeRoleWithWebIdentityInput {
         289  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         290  +
    pub fn deserialize_with_response(
         291  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         292  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         293  +
        _status: u16,
         294  +
        _body: &[u8],
         295  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         296  +
        Self::deserialize(deserializer)
         297  +
    }
         298  +
}
  288    299   
impl AssumeRoleWithWebIdentityInput {
  289    300   
    /// Creates a new builder-style object to manufacture [`AssumeRoleWithWebIdentityInput`](crate::operation::assume_role_with_web_identity::AssumeRoleWithWebIdentityInput).
  290    301   
    pub fn builder() -> crate::operation::assume_role_with_web_identity::builders::AssumeRoleWithWebIdentityInputBuilder {
  291    302   
        crate::operation::assume_role_with_web_identity::builders::AssumeRoleWithWebIdentityInputBuilder::default()
  292    303   
    }
  293    304   
}
  294    305   
  295    306   
/// A builder for [`AssumeRoleWithWebIdentityInput`](crate::operation::assume_role_with_web_identity::AssumeRoleWithWebIdentityInput).
  296    307   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
  297    308   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/sts/src/operation/assume_role_with_web_identity/_assume_role_with_web_identity_output.rs

@@ -57,57 +241,304 @@
   77     77   
    "com.amazonaws.sts.synthetic",
   78     78   
    "AssumeRoleWithWebIdentityOutput",
   79     79   
);
   80     80   
static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_CREDENTIALS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   81     81   
    ::aws_smithy_schema::ShapeId::from_static(
   82     82   
        "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityOutput$Credentials",
   83     83   
        "com.amazonaws.sts.synthetic",
   84     84   
        "AssumeRoleWithWebIdentityOutput",
   85     85   
    ),
   86     86   
    ::aws_smithy_schema::ShapeType::Structure,
   87         -
    "credentials",
          87  +
    "Credentials",
   88     88   
    0,
   89     89   
);
   90     90   
static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_SUBJECT_FROM_WEB_IDENTITY_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static(
   92     92   
        "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityOutput$SubjectFromWebIdentityToken",
   93     93   
        "com.amazonaws.sts.synthetic",
   94     94   
        "AssumeRoleWithWebIdentityOutput",
   95     95   
    ),
   96     96   
    ::aws_smithy_schema::ShapeType::String,
   97         -
    "subject_from_web_identity_token",
          97  +
    "SubjectFromWebIdentityToken",
   98     98   
    1,
   99     99   
);
  100    100   
static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_ASSUMED_ROLE_USER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  101    101   
    ::aws_smithy_schema::ShapeId::from_static(
  102    102   
        "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityOutput$AssumedRoleUser",
  103    103   
        "com.amazonaws.sts.synthetic",
  104    104   
        "AssumeRoleWithWebIdentityOutput",
  105    105   
    ),
  106    106   
    ::aws_smithy_schema::ShapeType::Structure,
  107         -
    "assumed_role_user",
         107  +
    "AssumedRoleUser",
  108    108   
    2,
  109    109   
);
  110    110   
static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_PACKED_POLICY_SIZE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  111    111   
    ::aws_smithy_schema::ShapeId::from_static(
  112    112   
        "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityOutput$PackedPolicySize",
  113    113   
        "com.amazonaws.sts.synthetic",
  114    114   
        "AssumeRoleWithWebIdentityOutput",
  115    115   
    ),
  116    116   
    ::aws_smithy_schema::ShapeType::Integer,
  117         -
    "packed_policy_size",
         117  +
    "PackedPolicySize",
  118    118   
    3,
  119    119   
);
  120    120   
static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_PROVIDER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  121    121   
    ::aws_smithy_schema::ShapeId::from_static(
  122    122   
        "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityOutput$Provider",
  123    123   
        "com.amazonaws.sts.synthetic",
  124    124   
        "AssumeRoleWithWebIdentityOutput",
  125    125   
    ),
  126    126   
    ::aws_smithy_schema::ShapeType::String,
  127         -
    "provider",
         127  +
    "Provider",
  128    128   
    4,
  129    129   
);
  130    130   
static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_AUDIENCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  131    131   
    ::aws_smithy_schema::ShapeId::from_static(
  132    132   
        "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityOutput$Audience",
  133    133   
        "com.amazonaws.sts.synthetic",
  134    134   
        "AssumeRoleWithWebIdentityOutput",
  135    135   
    ),
  136    136   
    ::aws_smithy_schema::ShapeType::String,
  137         -
    "audience",
         137  +
    "Audience",
  138    138   
    5,
  139    139   
);
  140    140   
static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_SOURCE_IDENTITY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  141    141   
    ::aws_smithy_schema::ShapeId::from_static(
  142    142   
        "com.amazonaws.sts.synthetic#AssumeRoleWithWebIdentityOutput$SourceIdentity",
  143    143   
        "com.amazonaws.sts.synthetic",
  144    144   
        "AssumeRoleWithWebIdentityOutput",
  145    145   
    ),
  146    146   
    ::aws_smithy_schema::ShapeType::String,
  147         -
    "source_identity",
         147  +
    "SourceIdentity",
  148    148   
    6,
  149    149   
);
         150  +
static ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         151  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         152  +
    ::aws_smithy_schema::ShapeType::String,
         153  +
    "request_id",
         154  +
    7,
         155  +
)
         156  +
.with_http_header("x-amzn-requestid");
  150    157   
static ASSUMEROLEWITHWEBIDENTITYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  151    158   
    ASSUMEROLEWITHWEBIDENTITYOUTPUT_SCHEMA_ID,
  152    159   
    ::aws_smithy_schema::ShapeType::Structure,
  153    160   
    &[
  154    161   
        &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_CREDENTIALS,
  155    162   
        &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_SUBJECT_FROM_WEB_IDENTITY_TOKEN,
  156    163   
        &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_ASSUMED_ROLE_USER,
  157    164   
        &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_PACKED_POLICY_SIZE,
  158    165   
        &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_PROVIDER,
  159    166   
        &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_AUDIENCE,
  160    167   
        &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_SOURCE_IDENTITY,
         168  +
        &ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER__REQUEST_ID,
  161    169   
    ],
  162    170   
);
  163    171   
impl AssumeRoleWithWebIdentityOutput {
  164    172   
    /// The schema for this shape.
  165    173   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ASSUMEROLEWITHWEBIDENTITYOUTPUT_SCHEMA;
  166    174   
}
  167    175   
impl ::aws_smithy_schema::serde::SerializableStruct for AssumeRoleWithWebIdentityOutput {
  168    176   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  169    177   
    fn serialize_members(
  170    178   
        &self,
  171    179   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  172    180   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  173    181   
        if let Some(ref val) = self.credentials {
  174    182   
            ser.write_struct(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_CREDENTIALS, val)?;
  175    183   
        }
  176    184   
        if let Some(ref val) = self.subject_from_web_identity_token {
  177    185   
            ser.write_string(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_SUBJECT_FROM_WEB_IDENTITY_TOKEN, val)?;
  178    186   
        }
  179    187   
        if let Some(ref val) = self.assumed_role_user {
  180    188   
            ser.write_struct(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_ASSUMED_ROLE_USER, val)?;
  181    189   
        }
  182    190   
        if let Some(ref val) = self.packed_policy_size {
  183    191   
            ser.write_integer(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_PACKED_POLICY_SIZE, *val)?;
  184    192   
        }
  185    193   
        if let Some(ref val) = self.provider {
  186    194   
            ser.write_string(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_PROVIDER, val)?;
  187    195   
        }
  188    196   
        if let Some(ref val) = self.audience {
  189    197   
            ser.write_string(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_AUDIENCE, val)?;
  190    198   
        }
  191    199   
        if let Some(ref val) = self.source_identity {
  192    200   
            ser.write_string(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_MEMBER_SOURCE_IDENTITY, val)?;
  193    201   
        }
  194    202   
        Ok(())
  195    203   
    }
  196    204   
}
  197    205   
impl AssumeRoleWithWebIdentityOutput {
  198    206   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  199         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  200         -
        deserializer: &mut D,
         207  +
    pub fn deserialize(
         208  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  201    209   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  202    210   
        #[allow(unused_variables, unused_mut)]
  203    211   
        let mut builder = Self::builder();
  204    212   
        #[allow(
  205    213   
            unused_variables,
  206    214   
            unreachable_code,
  207    215   
            clippy::single_match,
  208    216   
            clippy::match_single_binding,
  209    217   
            clippy::diverging_sub_expression
  210    218   
        )]
  211         -
        deserializer.read_struct(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_SCHEMA, (), |_, member, deser| {
         219  +
        deserializer.read_struct(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_SCHEMA, &mut |member, deser| {
         220  +
            match member.member_index() {
         221  +
                Some(0) => {
         222  +
                    builder.credentials = Some(crate::types::Credentials::deserialize(deser)?);
         223  +
                }
         224  +
                Some(1) => {
         225  +
                    builder.subject_from_web_identity_token = Some(deser.read_string(member)?);
         226  +
                }
         227  +
                Some(2) => {
         228  +
                    builder.assumed_role_user = Some(crate::types::AssumedRoleUser::deserialize(deser)?);
         229  +
                }
         230  +
                Some(3) => {
         231  +
                    builder.packed_policy_size = Some(deser.read_integer(member)?);
         232  +
                }
         233  +
                Some(4) => {
         234  +
                    builder.provider = Some(deser.read_string(member)?);
         235  +
                }
         236  +
                Some(5) => {
         237  +
                    builder.audience = Some(deser.read_string(member)?);
         238  +
                }
         239  +
                Some(6) => {
         240  +
                    builder.source_identity = Some(deser.read_string(member)?);
         241  +
                }
         242  +
                Some(7) => {
         243  +
                    builder._request_id = Some(deser.read_string(member)?);
         244  +
                }
         245  +
                _ => {}
         246  +
            }
         247  +
            Ok(())
         248  +
        })?;
         249  +
        Ok(builder.build())
         250  +
    }
         251  +
}
         252  +
impl AssumeRoleWithWebIdentityOutput {
         253  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         254  +
    /// Header-bound members are read directly from headers, avoiding runtime
         255  +
    /// member iteration overhead. Body members are read via the deserializer.
         256  +
    pub fn deserialize_with_response(
         257  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         258  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         259  +
        _status: u16,
         260  +
        _body: &[u8],
         261  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         262  +
        #[allow(unused_variables, unused_mut)]
         263  +
        let mut builder = Self::builder();
         264  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         265  +
            builder._request_id = Some(val.to_string());
         266  +
        }
         267  +
        #[allow(
         268  +
            unused_variables,
         269  +
            unreachable_code,
         270  +
            clippy::single_match,
         271  +
            clippy::match_single_binding,
         272  +
            clippy::diverging_sub_expression
         273  +
        )]
         274  +
        deserializer.read_struct(&ASSUMEROLEWITHWEBIDENTITYOUTPUT_SCHEMA, &mut |member, deser| {
  212    275   
            match member.member_index() {
  213    276   
                Some(0) => {
  214    277   
                    builder.credentials = Some(crate::types::Credentials::deserialize(deser)?);
  215    278   
                }
  216    279   
                Some(1) => {
  217    280   
                    builder.subject_from_web_identity_token = Some(deser.read_string(member)?);
  218    281   
                }
  219    282   
                Some(2) => {
  220    283   
                    builder.assumed_role_user = Some(crate::types::AssumedRoleUser::deserialize(deser)?);
  221    284   
                }

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

tmp-codegen-diff/aws-sdk/sdk/sts/src/operation/assume_root/_assume_root_input.rs

@@ -35,35 +182,194 @@
   55     55   
    "com.amazonaws.sts.synthetic",
   56     56   
    "AssumeRootInput",
   57     57   
);
   58     58   
static ASSUMEROOTINPUT_MEMBER_TARGET_PRINCIPAL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   59     59   
    ::aws_smithy_schema::ShapeId::from_static(
   60     60   
        "com.amazonaws.sts.synthetic#AssumeRootInput$TargetPrincipal",
   61     61   
        "com.amazonaws.sts.synthetic",
   62     62   
        "AssumeRootInput",
   63     63   
    ),
   64     64   
    ::aws_smithy_schema::ShapeType::String,
   65         -
    "target_principal",
          65  +
    "TargetPrincipal",
   66     66   
    0,
   67     67   
);
   68     68   
static ASSUMEROOTINPUT_MEMBER_TASK_POLICY_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   69     69   
    ::aws_smithy_schema::ShapeId::from_static(
   70     70   
        "com.amazonaws.sts.synthetic#AssumeRootInput$TaskPolicyArn",
   71     71   
        "com.amazonaws.sts.synthetic",
   72     72   
        "AssumeRootInput",
   73     73   
    ),
   74     74   
    ::aws_smithy_schema::ShapeType::Structure,
   75         -
    "task_policy_arn",
          75  +
    "TaskPolicyArn",
   76     76   
    1,
   77     77   
);
   78     78   
static ASSUMEROOTINPUT_MEMBER_DURATION_SECONDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   79     79   
    ::aws_smithy_schema::ShapeId::from_static(
   80     80   
        "com.amazonaws.sts.synthetic#AssumeRootInput$DurationSeconds",
   81     81   
        "com.amazonaws.sts.synthetic",
   82     82   
        "AssumeRootInput",
   83     83   
    ),
   84     84   
    ::aws_smithy_schema::ShapeType::Integer,
   85         -
    "duration_seconds",
          85  +
    "DurationSeconds",
   86     86   
    2,
   87     87   
);
   88     88   
static ASSUMEROOTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   89     89   
    ASSUMEROOTINPUT_SCHEMA_ID,
   90     90   
    ::aws_smithy_schema::ShapeType::Structure,
   91     91   
    &[
   92     92   
        &ASSUMEROOTINPUT_MEMBER_TARGET_PRINCIPAL,
   93     93   
        &ASSUMEROOTINPUT_MEMBER_TASK_POLICY_ARN,
   94     94   
        &ASSUMEROOTINPUT_MEMBER_DURATION_SECONDS,
   95     95   
    ],
   96     96   
);
   97     97   
impl AssumeRootInput {
   98     98   
    /// The schema for this shape.
   99     99   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ASSUMEROOTINPUT_SCHEMA;
  100    100   
}
  101    101   
impl ::aws_smithy_schema::serde::SerializableStruct for AssumeRootInput {
  102    102   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  103    103   
    fn serialize_members(
  104    104   
        &self,
  105    105   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  106    106   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  107    107   
        if let Some(ref val) = self.target_principal {
  108    108   
            ser.write_string(&ASSUMEROOTINPUT_MEMBER_TARGET_PRINCIPAL, val)?;
  109    109   
        }
  110    110   
        if let Some(ref val) = self.task_policy_arn {
  111    111   
            ser.write_struct(&ASSUMEROOTINPUT_MEMBER_TASK_POLICY_ARN, val)?;
  112    112   
        }
  113    113   
        if let Some(ref val) = self.duration_seconds {
  114    114   
            ser.write_integer(&ASSUMEROOTINPUT_MEMBER_DURATION_SECONDS, *val)?;
  115    115   
        }
  116    116   
        Ok(())
  117    117   
    }
  118    118   
}
  119    119   
impl AssumeRootInput {
  120    120   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  121         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  122         -
        deserializer: &mut D,
         121  +
    pub fn deserialize(
         122  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  123    123   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  124    124   
        #[allow(unused_variables, unused_mut)]
  125    125   
        let mut builder = Self::builder();
  126    126   
        #[allow(
  127    127   
            unused_variables,
  128    128   
            unreachable_code,
  129    129   
            clippy::single_match,
  130    130   
            clippy::match_single_binding,
  131    131   
            clippy::diverging_sub_expression
  132    132   
        )]
  133         -
        deserializer.read_struct(&ASSUMEROOTINPUT_SCHEMA, (), |_, member, deser| {
         133  +
        deserializer.read_struct(&ASSUMEROOTINPUT_SCHEMA, &mut |member, deser| {
  134    134   
            match member.member_index() {
  135    135   
                Some(0) => {
  136    136   
                    builder.target_principal = Some(deser.read_string(member)?);
  137    137   
                }
  138    138   
                Some(1) => {
  139    139   
                    builder.task_policy_arn = Some(crate::types::PolicyDescriptorType::deserialize(deser)?);
  140    140   
                }
  141    141   
                Some(2) => {
  142    142   
                    builder.duration_seconds = Some(deser.read_integer(member)?);
  143    143   
                }
  144    144   
                _ => {}
  145    145   
            }
  146    146   
            Ok(())
  147    147   
        })?;
         148  +
        builder.target_principal = builder.target_principal.or(Some(String::new()));
  148    149   
        builder
  149    150   
            .build()
  150    151   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  151    152   
    }
  152    153   
}
         154  +
impl AssumeRootInput {
         155  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         156  +
    pub fn deserialize_with_response(
         157  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         158  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         159  +
        _status: u16,
         160  +
        _body: &[u8],
         161  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         162  +
        Self::deserialize(deserializer)
         163  +
    }
         164  +
}
  153    165   
impl AssumeRootInput {
  154    166   
    /// Creates a new builder-style object to manufacture [`AssumeRootInput`](crate::operation::assume_root::AssumeRootInput).
  155    167   
    pub fn builder() -> crate::operation::assume_root::builders::AssumeRootInputBuilder {
  156    168   
        crate::operation::assume_root::builders::AssumeRootInputBuilder::default()
  157    169   
    }
  158    170   
}
  159    171   
  160    172   
/// A builder for [`AssumeRootInput`](crate::operation::assume_root::AssumeRootInput).
  161    173   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  162    174   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/sts/src/operation/assume_root/_assume_root_output.rs

@@ -21,21 +132,183 @@
   41     41   
    "com.amazonaws.sts.synthetic",
   42     42   
    "AssumeRootOutput",
   43     43   
);
   44     44   
static ASSUMEROOTOUTPUT_MEMBER_CREDENTIALS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static(
   46     46   
        "com.amazonaws.sts.synthetic#AssumeRootOutput$Credentials",
   47     47   
        "com.amazonaws.sts.synthetic",
   48     48   
        "AssumeRootOutput",
   49     49   
    ),
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51         -
    "credentials",
          51  +
    "Credentials",
   52     52   
    0,
   53     53   
);
   54     54   
static ASSUMEROOTOUTPUT_MEMBER_SOURCE_IDENTITY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   55     55   
    ::aws_smithy_schema::ShapeId::from_static(
   56     56   
        "com.amazonaws.sts.synthetic#AssumeRootOutput$SourceIdentity",
   57     57   
        "com.amazonaws.sts.synthetic",
   58     58   
        "AssumeRootOutput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::String,
   61         -
    "source_identity",
          61  +
    "SourceIdentity",
   62     62   
    1,
   63     63   
);
          64  +
static ASSUMEROOTOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          65  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          66  +
    ::aws_smithy_schema::ShapeType::String,
          67  +
    "request_id",
          68  +
    2,
          69  +
)
          70  +
.with_http_header("x-amzn-requestid");
   64     71   
static ASSUMEROOTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   65     72   
    ASSUMEROOTOUTPUT_SCHEMA_ID,
   66     73   
    ::aws_smithy_schema::ShapeType::Structure,
   67         -
    &[&ASSUMEROOTOUTPUT_MEMBER_CREDENTIALS, &ASSUMEROOTOUTPUT_MEMBER_SOURCE_IDENTITY],
          74  +
    &[
          75  +
        &ASSUMEROOTOUTPUT_MEMBER_CREDENTIALS,
          76  +
        &ASSUMEROOTOUTPUT_MEMBER_SOURCE_IDENTITY,
          77  +
        &ASSUMEROOTOUTPUT_MEMBER__REQUEST_ID,
          78  +
    ],
   68     79   
);
   69     80   
impl AssumeRootOutput {
   70     81   
    /// The schema for this shape.
   71     82   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ASSUMEROOTOUTPUT_SCHEMA;
   72     83   
}
   73     84   
impl ::aws_smithy_schema::serde::SerializableStruct for AssumeRootOutput {
   74     85   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   75     86   
    fn serialize_members(
   76     87   
        &self,
   77     88   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   78     89   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   79     90   
        if let Some(ref val) = self.credentials {
   80     91   
            ser.write_struct(&ASSUMEROOTOUTPUT_MEMBER_CREDENTIALS, val)?;
   81     92   
        }
   82     93   
        if let Some(ref val) = self.source_identity {
   83     94   
            ser.write_string(&ASSUMEROOTOUTPUT_MEMBER_SOURCE_IDENTITY, val)?;
   84     95   
        }
   85     96   
        Ok(())
   86     97   
    }
   87     98   
}
   88     99   
impl AssumeRootOutput {
   89    100   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   90         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   91         -
        deserializer: &mut D,
         101  +
    pub fn deserialize(
         102  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         103  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         104  +
        #[allow(unused_variables, unused_mut)]
         105  +
        let mut builder = Self::builder();
         106  +
        #[allow(
         107  +
            unused_variables,
         108  +
            unreachable_code,
         109  +
            clippy::single_match,
         110  +
            clippy::match_single_binding,
         111  +
            clippy::diverging_sub_expression
         112  +
        )]
         113  +
        deserializer.read_struct(&ASSUMEROOTOUTPUT_SCHEMA, &mut |member, deser| {
         114  +
            match member.member_index() {
         115  +
                Some(0) => {
         116  +
                    builder.credentials = Some(crate::types::Credentials::deserialize(deser)?);
         117  +
                }
         118  +
                Some(1) => {
         119  +
                    builder.source_identity = Some(deser.read_string(member)?);
         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 AssumeRootOutput {
         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],
   92    140   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   93    141   
        #[allow(unused_variables, unused_mut)]
   94    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  +
        }
   95    146   
        #[allow(
   96    147   
            unused_variables,
   97    148   
            unreachable_code,
   98    149   
            clippy::single_match,
   99    150   
            clippy::match_single_binding,
  100    151   
            clippy::diverging_sub_expression
  101    152   
        )]
  102         -
        deserializer.read_struct(&ASSUMEROOTOUTPUT_SCHEMA, (), |_, member, deser| {
         153  +
        deserializer.read_struct(&ASSUMEROOTOUTPUT_SCHEMA, &mut |member, deser| {
  103    154   
            match member.member_index() {
  104    155   
                Some(0) => {
  105    156   
                    builder.credentials = Some(crate::types::Credentials::deserialize(deser)?);
  106    157   
                }
  107    158   
                Some(1) => {
  108    159   
                    builder.source_identity = Some(deser.read_string(member)?);
  109    160   
                }
  110    161   
                _ => {}
  111    162   
            }
  112    163   
            Ok(())

tmp-codegen-diff/aws-sdk/sdk/sts/src/operation/decode_authorization_message.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 `DecodeAuthorizationMessage`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DecodeAuthorizationMessage;
    6      6   
impl DecodeAuthorizationMessage {
    7      7   
    /// Creates a new `DecodeAuthorizationMessage`
    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::decode_authorization_message::DecodeAuthorizationMessageInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::decode_authorization_message::DecodeAuthorizationMessageOutput::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::decode_authorization_message::DecodeAuthorizationMessageInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::decode_authorization_message::DecodeAuthorizationMessageOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::decode_authorization_message::DecodeAuthorizationMessageError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::decode_authorization_message::DecodeAuthorizationMessageError,
  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 DecodeAuthorizationMessageResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DecodeAuthorizationMessageResponseDeserializer {
  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_decode_authorization_message::de_decode_authorization_message_http_error(status, headers, body)
  160    167   
        } else {

tmp-codegen-diff/aws-sdk/sdk/sts/src/operation/decode_authorization_message/_decode_authorization_message_input.rs

@@ -1,1 +108,120 @@
   17     17   
    "com.amazonaws.sts.synthetic",
   18     18   
    "DecodeAuthorizationMessageInput",
   19     19   
);
   20     20   
static DECODEAUTHORIZATIONMESSAGEINPUT_MEMBER_ENCODED_MESSAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   21     21   
    ::aws_smithy_schema::ShapeId::from_static(
   22     22   
        "com.amazonaws.sts.synthetic#DecodeAuthorizationMessageInput$EncodedMessage",
   23     23   
        "com.amazonaws.sts.synthetic",
   24     24   
        "DecodeAuthorizationMessageInput",
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::String,
   27         -
    "encoded_message",
          27  +
    "EncodedMessage",
   28     28   
    0,
   29     29   
);
   30     30   
static DECODEAUTHORIZATIONMESSAGEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   31     31   
    DECODEAUTHORIZATIONMESSAGEINPUT_SCHEMA_ID,
   32     32   
    ::aws_smithy_schema::ShapeType::Structure,
   33     33   
    &[&DECODEAUTHORIZATIONMESSAGEINPUT_MEMBER_ENCODED_MESSAGE],
   34     34   
);
   35     35   
impl DecodeAuthorizationMessageInput {
   36     36   
    /// The schema for this shape.
   37     37   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DECODEAUTHORIZATIONMESSAGEINPUT_SCHEMA;
   38     38   
}
   39     39   
impl ::aws_smithy_schema::serde::SerializableStruct for DecodeAuthorizationMessageInput {
   40     40   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   41     41   
    fn serialize_members(
   42     42   
        &self,
   43     43   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   44     44   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   45     45   
        if let Some(ref val) = self.encoded_message {
   46     46   
            ser.write_string(&DECODEAUTHORIZATIONMESSAGEINPUT_MEMBER_ENCODED_MESSAGE, val)?;
   47     47   
        }
   48     48   
        Ok(())
   49     49   
    }
   50     50   
}
   51     51   
impl DecodeAuthorizationMessageInput {
   52     52   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   53         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   54         -
        deserializer: &mut D,
          53  +
    pub fn deserialize(
          54  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   55     55   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   56     56   
        #[allow(unused_variables, unused_mut)]
   57     57   
        let mut builder = Self::builder();
   58     58   
        #[allow(
   59     59   
            unused_variables,
   60     60   
            unreachable_code,
   61     61   
            clippy::single_match,
   62     62   
            clippy::match_single_binding,
   63     63   
            clippy::diverging_sub_expression
   64     64   
        )]
   65         -
        deserializer.read_struct(&DECODEAUTHORIZATIONMESSAGEINPUT_SCHEMA, (), |_, member, deser| {
          65  +
        deserializer.read_struct(&DECODEAUTHORIZATIONMESSAGEINPUT_SCHEMA, &mut |member, deser| {
   66     66   
            match member.member_index() {
   67     67   
                Some(0) => {
   68     68   
                    builder.encoded_message = Some(deser.read_string(member)?);
   69     69   
                }
   70     70   
                _ => {}
   71     71   
            }
   72     72   
            Ok(())
   73     73   
        })?;
          74  +
        builder.encoded_message = builder.encoded_message.or(Some(String::new()));
   74     75   
        builder
   75     76   
            .build()
   76     77   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   77     78   
    }
   78     79   
}
          80  +
impl DecodeAuthorizationMessageInput {
          81  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          82  +
    pub fn deserialize_with_response(
          83  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          84  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          85  +
        _status: u16,
          86  +
        _body: &[u8],
          87  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          88  +
        Self::deserialize(deserializer)
          89  +
    }
          90  +
}
   79     91   
impl DecodeAuthorizationMessageInput {
   80     92   
    /// Creates a new builder-style object to manufacture [`DecodeAuthorizationMessageInput`](crate::operation::decode_authorization_message::DecodeAuthorizationMessageInput).
   81     93   
    pub fn builder() -> crate::operation::decode_authorization_message::builders::DecodeAuthorizationMessageInputBuilder {
   82     94   
        crate::operation::decode_authorization_message::builders::DecodeAuthorizationMessageInputBuilder::default()
   83     95   
    }
   84     96   
}
   85     97   
   86     98   
/// A builder for [`DecodeAuthorizationMessageInput`](crate::operation::decode_authorization_message::DecodeAuthorizationMessageInput).
   87     99   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   88    100   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/sts/src/operation/decode_authorization_message/_decode_authorization_message_output.rs

@@ -1,1 +97,144 @@
   19     19   
    "com.amazonaws.sts.synthetic",
   20     20   
    "DecodeAuthorizationMessageOutput",
   21     21   
);
   22     22   
static DECODEAUTHORIZATIONMESSAGEOUTPUT_MEMBER_DECODED_MESSAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   23     23   
    ::aws_smithy_schema::ShapeId::from_static(
   24     24   
        "com.amazonaws.sts.synthetic#DecodeAuthorizationMessageOutput$DecodedMessage",
   25     25   
        "com.amazonaws.sts.synthetic",
   26     26   
        "DecodeAuthorizationMessageOutput",
   27     27   
    ),
   28     28   
    ::aws_smithy_schema::ShapeType::String,
   29         -
    "decoded_message",
          29  +
    "DecodedMessage",
   30     30   
    0,
   31     31   
);
          32  +
static DECODEAUTHORIZATIONMESSAGEOUTPUT_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 DECODEAUTHORIZATIONMESSAGEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    DECODEAUTHORIZATIONMESSAGEOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&DECODEAUTHORIZATIONMESSAGEOUTPUT_MEMBER_DECODED_MESSAGE],
          42  +
    &[
          43  +
        &DECODEAUTHORIZATIONMESSAGEOUTPUT_MEMBER_DECODED_MESSAGE,
          44  +
        &DECODEAUTHORIZATIONMESSAGEOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl DecodeAuthorizationMessageOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DECODEAUTHORIZATIONMESSAGEOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for DecodeAuthorizationMessageOutput {
   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.decoded_message {
   48     58   
            ser.write_string(&DECODEAUTHORIZATIONMESSAGEOUTPUT_MEMBER_DECODED_MESSAGE, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl DecodeAuthorizationMessageOutput {
   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(&DECODEAUTHORIZATIONMESSAGEOUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&DECODEAUTHORIZATIONMESSAGEOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.decoded_message = Some(deser.read_string(member)?);
          81  +
                }
          82  +
                Some(1) => {
          83  +
                    builder._request_id = Some(deser.read_string(member)?);
          84  +
                }
          85  +
                _ => {}
          86  +
            }
          87  +
            Ok(())
          88  +
        })?;
          89  +
        Ok(builder.build())
          90  +
    }
          91  +
}
          92  +
impl DecodeAuthorizationMessageOutput {
          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  +
        #[allow(
         108  +
            unused_variables,
         109  +
            unreachable_code,
         110  +
            clippy::single_match,
         111  +
            clippy::match_single_binding,
         112  +
            clippy::diverging_sub_expression
         113  +
        )]
         114  +
        deserializer.read_struct(&DECODEAUTHORIZATIONMESSAGEOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.decoded_message = Some(deser.read_string(member)?);
   71    118   
                }
   72    119   
                _ => {}
   73    120   
            }
   74    121   
            Ok(())
   75    122   
        })?;
   76    123   
        Ok(builder.build())
   77    124   
    }

tmp-codegen-diff/aws-sdk/sdk/sts/src/operation/get_access_key_info.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 `GetAccessKeyInfo`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetAccessKeyInfo;
    6      6   
impl GetAccessKeyInfo {
    7      7   
    /// Creates a new `GetAccessKeyInfo`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_access_key_info::GetAccessKeyInfoInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_access_key_info::GetAccessKeyInfoOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::get_access_key_info::GetAccessKeyInfoInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_access_key_info::GetAccessKeyInfoOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_access_key_info::GetAccessKeyInfoError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::get_access_key_info::GetAccessKeyInfoError,
  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 GetAccessKeyInfoResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetAccessKeyInfoResponseDeserializer {
  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_get_access_key_info::de_get_access_key_info_http_error(status, headers, body)
  157    162   
        } else {

tmp-codegen-diff/aws-sdk/sdk/sts/src/operation/get_access_key_info/_get_access_key_info_input.rs

@@ -1,1 +110,122 @@
   19     19   
    "com.amazonaws.sts.synthetic",
   20     20   
    "GetAccessKeyInfoInput",
   21     21   
);
   22     22   
static GETACCESSKEYINFOINPUT_MEMBER_ACCESS_KEY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   23     23   
    ::aws_smithy_schema::ShapeId::from_static(
   24     24   
        "com.amazonaws.sts.synthetic#GetAccessKeyInfoInput$AccessKeyId",
   25     25   
        "com.amazonaws.sts.synthetic",
   26     26   
        "GetAccessKeyInfoInput",
   27     27   
    ),
   28     28   
    ::aws_smithy_schema::ShapeType::String,
   29         -
    "access_key_id",
          29  +
    "AccessKeyId",
   30     30   
    0,
   31     31   
);
   32     32   
static GETACCESSKEYINFOINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     33   
    GETACCESSKEYINFOINPUT_SCHEMA_ID,
   34     34   
    ::aws_smithy_schema::ShapeType::Structure,
   35     35   
    &[&GETACCESSKEYINFOINPUT_MEMBER_ACCESS_KEY_ID],
   36     36   
);
   37     37   
impl GetAccessKeyInfoInput {
   38     38   
    /// The schema for this shape.
   39     39   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETACCESSKEYINFOINPUT_SCHEMA;
   40     40   
}
   41     41   
impl ::aws_smithy_schema::serde::SerializableStruct for GetAccessKeyInfoInput {
   42     42   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   43     43   
    fn serialize_members(
   44     44   
        &self,
   45     45   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   46     46   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   47     47   
        if let Some(ref val) = self.access_key_id {
   48     48   
            ser.write_string(&GETACCESSKEYINFOINPUT_MEMBER_ACCESS_KEY_ID, val)?;
   49     49   
        }
   50     50   
        Ok(())
   51     51   
    }
   52     52   
}
   53     53   
impl GetAccessKeyInfoInput {
   54     54   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   55         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   56         -
        deserializer: &mut D,
          55  +
    pub fn deserialize(
          56  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   57     57   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   58     58   
        #[allow(unused_variables, unused_mut)]
   59     59   
        let mut builder = Self::builder();
   60     60   
        #[allow(
   61     61   
            unused_variables,
   62     62   
            unreachable_code,
   63     63   
            clippy::single_match,
   64     64   
            clippy::match_single_binding,
   65     65   
            clippy::diverging_sub_expression
   66     66   
        )]
   67         -
        deserializer.read_struct(&GETACCESSKEYINFOINPUT_SCHEMA, (), |_, member, deser| {
          67  +
        deserializer.read_struct(&GETACCESSKEYINFOINPUT_SCHEMA, &mut |member, deser| {
   68     68   
            match member.member_index() {
   69     69   
                Some(0) => {
   70     70   
                    builder.access_key_id = Some(deser.read_string(member)?);
   71     71   
                }
   72     72   
                _ => {}
   73     73   
            }
   74     74   
            Ok(())
   75     75   
        })?;
          76  +
        builder.access_key_id = builder.access_key_id.or(Some(String::new()));
   76     77   
        builder
   77     78   
            .build()
   78     79   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   79     80   
    }
   80     81   
}
          82  +
impl GetAccessKeyInfoInput {
          83  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          84  +
    pub fn deserialize_with_response(
          85  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          86  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          87  +
        _status: u16,
          88  +
        _body: &[u8],
          89  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          90  +
        Self::deserialize(deserializer)
          91  +
    }
          92  +
}
   81     93   
impl GetAccessKeyInfoInput {
   82     94   
    /// Creates a new builder-style object to manufacture [`GetAccessKeyInfoInput`](crate::operation::get_access_key_info::GetAccessKeyInfoInput).
   83     95   
    pub fn builder() -> crate::operation::get_access_key_info::builders::GetAccessKeyInfoInputBuilder {
   84     96   
        crate::operation::get_access_key_info::builders::GetAccessKeyInfoInputBuilder::default()
   85     97   
    }
   86     98   
}
   87     99   
   88    100   
/// A builder for [`GetAccessKeyInfoInput`](crate::operation::get_access_key_info::GetAccessKeyInfoInput).
   89    101   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   90    102   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/sts/src/operation/get_access_key_info/_get_access_key_info_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/sts/src/operation/get_caller_identity.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 `GetCallerIdentity`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetCallerIdentity;
    6      6   
impl GetCallerIdentity {
    7      7   
    /// Creates a new `GetCallerIdentity`
    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_caller_identity::GetCallerIdentityInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_caller_identity::GetCallerIdentityOutput::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_caller_identity::GetCallerIdentityInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_caller_identity::GetCallerIdentityOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_caller_identity::GetCallerIdentityError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::get_caller_identity::GetCallerIdentityError,
  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 GetCallerIdentityResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetCallerIdentityResponseDeserializer {
  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_get_caller_identity::de_get_caller_identity_http_error(status, headers, body)
  157    162   
        } else {