AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406 (ignoring whitespace)

Files changed:

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

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

@@ -1,1 +78,91 @@
   21     21   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   22     22   
    fn serialize_members(
   23     23   
        &self,
   24     24   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   25     25   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   26     26   
        Ok(())
   27     27   
    }
   28     28   
}
   29     29   
impl EnableOrganizationsRootCredentialsManagementInput {
   30     30   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   31         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   32         -
        deserializer: &mut D,
          31  +
    pub fn deserialize(
          32  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   33     33   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   34     34   
        #[allow(unused_variables, unused_mut)]
   35     35   
        let mut builder = Self::builder();
   36     36   
        #[allow(
   37     37   
            unused_variables,
   38     38   
            unreachable_code,
   39     39   
            clippy::single_match,
   40     40   
            clippy::match_single_binding,
   41     41   
            clippy::diverging_sub_expression
   42     42   
        )]
   43         -
        deserializer.read_struct(&ENABLEORGANIZATIONSROOTCREDENTIALSMANAGEMENTINPUT_SCHEMA, (), |_, member, deser| {
          43  +
        deserializer.read_struct(&ENABLEORGANIZATIONSROOTCREDENTIALSMANAGEMENTINPUT_SCHEMA, &mut |member, deser| {
   44     44   
            match member.member_index() {
   45     45   
                _ => {}
   46     46   
            }
   47     47   
            Ok(())
   48     48   
        })?;
   49     49   
        builder
   50     50   
            .build()
   51     51   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   52     52   
    }
   53     53   
}
          54  +
impl EnableOrganizationsRootCredentialsManagementInput {
          55  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          56  +
    pub fn deserialize_with_response(
          57  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          58  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          59  +
        _status: u16,
          60  +
        _body: &[u8],
          61  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          62  +
        Self::builder()
          63  +
            .build()
          64  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
          65  +
    }
          66  +
}
   54     67   
impl EnableOrganizationsRootCredentialsManagementInput {
   55     68   
    /// Creates a new builder-style object to manufacture [`EnableOrganizationsRootCredentialsManagementInput`](crate::operation::enable_organizations_root_credentials_management::EnableOrganizationsRootCredentialsManagementInput).
   56     69   
    pub fn builder(
   57     70   
    ) -> crate::operation::enable_organizations_root_credentials_management::builders::EnableOrganizationsRootCredentialsManagementInputBuilder {
   58     71   
        crate::operation::enable_organizations_root_credentials_management::builders::EnableOrganizationsRootCredentialsManagementInputBuilder::default()
   59     72   
    }
   60     73   
}
   61     74   
   62     75   
/// A builder for [`EnableOrganizationsRootCredentialsManagementInput`](crate::operation::enable_organizations_root_credentials_management::EnableOrganizationsRootCredentialsManagementInput).
   63     76   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]

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

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

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

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

@@ -1,1 +75,88 @@
   21     21   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   22     22   
    fn serialize_members(
   23     23   
        &self,
   24     24   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   25     25   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   26     26   
        Ok(())
   27     27   
    }
   28     28   
}
   29     29   
impl EnableOrganizationsRootSessionsInput {
   30     30   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   31         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   32         -
        deserializer: &mut D,
          31  +
    pub fn deserialize(
          32  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   33     33   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   34     34   
        #[allow(unused_variables, unused_mut)]
   35     35   
        let mut builder = Self::builder();
   36     36   
        #[allow(
   37     37   
            unused_variables,
   38     38   
            unreachable_code,
   39     39   
            clippy::single_match,
   40     40   
            clippy::match_single_binding,
   41     41   
            clippy::diverging_sub_expression
   42     42   
        )]
   43         -
        deserializer.read_struct(&ENABLEORGANIZATIONSROOTSESSIONSINPUT_SCHEMA, (), |_, member, deser| {
          43  +
        deserializer.read_struct(&ENABLEORGANIZATIONSROOTSESSIONSINPUT_SCHEMA, &mut |member, deser| {
   44     44   
            match member.member_index() {
   45     45   
                _ => {}
   46     46   
            }
   47     47   
            Ok(())
   48     48   
        })?;
   49     49   
        builder
   50     50   
            .build()
   51     51   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   52     52   
    }
   53     53   
}
          54  +
impl EnableOrganizationsRootSessionsInput {
          55  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          56  +
    pub fn deserialize_with_response(
          57  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          58  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          59  +
        _status: u16,
          60  +
        _body: &[u8],
          61  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          62  +
        Self::builder()
          63  +
            .build()
          64  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
          65  +
    }
          66  +
}
   54     67   
impl EnableOrganizationsRootSessionsInput {
   55     68   
    /// Creates a new builder-style object to manufacture [`EnableOrganizationsRootSessionsInput`](crate::operation::enable_organizations_root_sessions::EnableOrganizationsRootSessionsInput).
   56     69   
    pub fn builder() -> crate::operation::enable_organizations_root_sessions::builders::EnableOrganizationsRootSessionsInputBuilder {
   57     70   
        crate::operation::enable_organizations_root_sessions::builders::EnableOrganizationsRootSessionsInputBuilder::default()
   58     71   
    }
   59     72   
}
   60     73   
   61     74   
/// A builder for [`EnableOrganizationsRootSessionsInput`](crate::operation::enable_organizations_root_sessions::EnableOrganizationsRootSessionsInput).
   62     75   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   63     76   
#[non_exhaustive]

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

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

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

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

@@ -1,1 +72,85 @@
   18     18   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   19     19   
    fn serialize_members(
   20     20   
        &self,
   21     21   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   22     22   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   23     23   
        Ok(())
   24     24   
    }
   25     25   
}
   26     26   
impl GenerateCredentialReportInput {
   27     27   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   28         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   29         -
        deserializer: &mut D,
          28  +
    pub fn deserialize(
          29  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   30     30   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   31     31   
        #[allow(unused_variables, unused_mut)]
   32     32   
        let mut builder = Self::builder();
   33     33   
        #[allow(
   34     34   
            unused_variables,
   35     35   
            unreachable_code,
   36     36   
            clippy::single_match,
   37     37   
            clippy::match_single_binding,
   38     38   
            clippy::diverging_sub_expression
   39     39   
        )]
   40         -
        deserializer.read_struct(&GENERATECREDENTIALREPORTINPUT_SCHEMA, (), |_, member, deser| {
          40  +
        deserializer.read_struct(&GENERATECREDENTIALREPORTINPUT_SCHEMA, &mut |member, deser| {
   41     41   
            match member.member_index() {
   42     42   
                _ => {}
   43     43   
            }
   44     44   
            Ok(())
   45     45   
        })?;
   46     46   
        builder
   47     47   
            .build()
   48     48   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   49     49   
    }
   50     50   
}
          51  +
impl GenerateCredentialReportInput {
          52  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          53  +
    pub fn deserialize_with_response(
          54  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          55  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          56  +
        _status: u16,
          57  +
        _body: &[u8],
          58  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          59  +
        Self::builder()
          60  +
            .build()
          61  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
          62  +
    }
          63  +
}
   51     64   
impl GenerateCredentialReportInput {
   52     65   
    /// Creates a new builder-style object to manufacture [`GenerateCredentialReportInput`](crate::operation::generate_credential_report::GenerateCredentialReportInput).
   53     66   
    pub fn builder() -> crate::operation::generate_credential_report::builders::GenerateCredentialReportInputBuilder {
   54     67   
        crate::operation::generate_credential_report::builders::GenerateCredentialReportInputBuilder::default()
   55     68   
    }
   56     69   
}
   57     70   
   58     71   
/// A builder for [`GenerateCredentialReportInput`](crate::operation::generate_credential_report::GenerateCredentialReportInput).
   59     72   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   60     73   
#[non_exhaustive]

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

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

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

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

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

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

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

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

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

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

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

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

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