AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c

Files changed:

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

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

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

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

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `UpdateRole`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UpdateRole;
    6      6   
impl UpdateRole {
    7      7   
    /// Creates a new `UpdateRole`
    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::update_role::UpdateRoleInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::update_role::UpdateRoleOutput::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::update_role::UpdateRoleInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::update_role::UpdateRoleOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::update_role::UpdateRoleError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::update_role::UpdateRoleError,
  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 UpdateRoleResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateRoleResponseDeserializer {
  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_update_role::de_update_role_http_error(status, headers, body)
  157    162   
        } else {

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

@@ -15,15 +162,174 @@
   35     35   
    "com.amazonaws.iam.synthetic",
   36     36   
    "UpdateRoleInput",
   37     37   
);
   38     38   
static UPDATEROLEINPUT_MEMBER_ROLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.iam.synthetic#UpdateRoleInput$RoleName",
   41     41   
        "com.amazonaws.iam.synthetic",
   42     42   
        "UpdateRoleInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "role_name",
          45  +
    "RoleName",
   46     46   
    0,
   47     47   
);
   48     48   
static UPDATEROLEINPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   49     49   
    ::aws_smithy_schema::ShapeId::from_static(
   50     50   
        "com.amazonaws.iam.synthetic#UpdateRoleInput$Description",
   51     51   
        "com.amazonaws.iam.synthetic",
   52     52   
        "UpdateRoleInput",
   53     53   
    ),
   54     54   
    ::aws_smithy_schema::ShapeType::String,
   55         -
    "description",
          55  +
    "Description",
   56     56   
    1,
   57     57   
);
   58     58   
static UPDATEROLEINPUT_MEMBER_MAX_SESSION_DURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   59     59   
    ::aws_smithy_schema::ShapeId::from_static(
   60     60   
        "com.amazonaws.iam.synthetic#UpdateRoleInput$MaxSessionDuration",
   61     61   
        "com.amazonaws.iam.synthetic",
   62     62   
        "UpdateRoleInput",
   63     63   
    ),
   64     64   
    ::aws_smithy_schema::ShapeType::Integer,
   65         -
    "max_session_duration",
          65  +
    "MaxSessionDuration",
   66     66   
    2,
   67     67   
);
   68     68   
static UPDATEROLEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   69     69   
    UPDATEROLEINPUT_SCHEMA_ID,
   70     70   
    ::aws_smithy_schema::ShapeType::Structure,
   71     71   
    &[
   72     72   
        &UPDATEROLEINPUT_MEMBER_ROLE_NAME,
   73     73   
        &UPDATEROLEINPUT_MEMBER_DESCRIPTION,
   74     74   
        &UPDATEROLEINPUT_MEMBER_MAX_SESSION_DURATION,
   75     75   
    ],
   76     76   
);
   77     77   
impl UpdateRoleInput {
   78     78   
    /// The schema for this shape.
   79     79   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATEROLEINPUT_SCHEMA;
   80     80   
}
   81     81   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateRoleInput {
   82     82   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   83     83   
    fn serialize_members(
   84     84   
        &self,
   85     85   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   86     86   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   87     87   
        if let Some(ref val) = self.role_name {
   88     88   
            ser.write_string(&UPDATEROLEINPUT_MEMBER_ROLE_NAME, val)?;
   89     89   
        }
   90     90   
        if let Some(ref val) = self.description {
   91     91   
            ser.write_string(&UPDATEROLEINPUT_MEMBER_DESCRIPTION, val)?;
   92     92   
        }
   93     93   
        if let Some(ref val) = self.max_session_duration {
   94     94   
            ser.write_integer(&UPDATEROLEINPUT_MEMBER_MAX_SESSION_DURATION, *val)?;
   95     95   
        }
   96     96   
        Ok(())
   97     97   
    }
   98     98   
}
   99     99   
impl UpdateRoleInput {
  100    100   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  101         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  102         -
        deserializer: &mut D,
         101  +
    pub fn deserialize(
         102  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  103    103   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  104    104   
        #[allow(unused_variables, unused_mut)]
  105    105   
        let mut builder = Self::builder();
  106    106   
        #[allow(
  107    107   
            unused_variables,
  108    108   
            unreachable_code,
  109    109   
            clippy::single_match,
  110    110   
            clippy::match_single_binding,
  111    111   
            clippy::diverging_sub_expression
  112    112   
        )]
  113         -
        deserializer.read_struct(&UPDATEROLEINPUT_SCHEMA, (), |_, member, deser| {
         113  +
        deserializer.read_struct(&UPDATEROLEINPUT_SCHEMA, &mut |member, deser| {
  114    114   
            match member.member_index() {
  115    115   
                Some(0) => {
  116    116   
                    builder.role_name = Some(deser.read_string(member)?);
  117    117   
                }
  118    118   
                Some(1) => {
  119    119   
                    builder.description = Some(deser.read_string(member)?);
  120    120   
                }
  121    121   
                Some(2) => {
  122    122   
                    builder.max_session_duration = Some(deser.read_integer(member)?);
  123    123   
                }
  124    124   
                _ => {}
  125    125   
            }
  126    126   
            Ok(())
  127    127   
        })?;
         128  +
        builder.role_name = builder.role_name.or(Some(String::new()));
  128    129   
        builder
  129    130   
            .build()
  130    131   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  131    132   
    }
  132    133   
}
         134  +
impl UpdateRoleInput {
         135  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         136  +
    pub fn deserialize_with_response(
         137  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         138  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         139  +
        _status: u16,
         140  +
        _body: &[u8],
         141  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         142  +
        Self::deserialize(deserializer)
         143  +
    }
         144  +
}
  133    145   
impl UpdateRoleInput {
  134    146   
    /// Creates a new builder-style object to manufacture [`UpdateRoleInput`](crate::operation::update_role::UpdateRoleInput).
  135    147   
    pub fn builder() -> crate::operation::update_role::builders::UpdateRoleInputBuilder {
  136    148   
        crate::operation::update_role::builders::UpdateRoleInputBuilder::default()
  137    149   
    }
  138    150   
}
  139    151   
  140    152   
/// A builder for [`UpdateRoleInput`](crate::operation::update_role::UpdateRoleInput).
  141    153   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  142    154   
#[non_exhaustive]

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

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

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/update_role_description.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 `UpdateRoleDescription`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UpdateRoleDescription;
    6      6   
impl UpdateRoleDescription {
    7      7   
    /// Creates a new `UpdateRoleDescription`
    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::update_role_description::UpdateRoleDescriptionInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::update_role_description::UpdateRoleDescriptionOutput::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::update_role_description::UpdateRoleDescriptionInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::update_role_description::UpdateRoleDescriptionOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::update_role_description::UpdateRoleDescriptionError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::update_role_description::UpdateRoleDescriptionError,
  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 UpdateRoleDescriptionResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateRoleDescriptionResponseDeserializer {
  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_update_role_description::de_update_role_description_http_error(status, headers, body)
  160    165   
        } else {

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

@@ -3,3 +133,146 @@
   23     23   
    "com.amazonaws.iam.synthetic",
   24     24   
    "UpdateRoleDescriptionInput",
   25     25   
);
   26     26   
static UPDATEROLEDESCRIPTIONINPUT_MEMBER_ROLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   27     27   
    ::aws_smithy_schema::ShapeId::from_static(
   28     28   
        "com.amazonaws.iam.synthetic#UpdateRoleDescriptionInput$RoleName",
   29     29   
        "com.amazonaws.iam.synthetic",
   30     30   
        "UpdateRoleDescriptionInput",
   31     31   
    ),
   32     32   
    ::aws_smithy_schema::ShapeType::String,
   33         -
    "role_name",
          33  +
    "RoleName",
   34     34   
    0,
   35     35   
);
   36     36   
static UPDATEROLEDESCRIPTIONINPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static(
   38     38   
        "com.amazonaws.iam.synthetic#UpdateRoleDescriptionInput$Description",
   39     39   
        "com.amazonaws.iam.synthetic",
   40     40   
        "UpdateRoleDescriptionInput",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::String,
   43         -
    "description",
          43  +
    "Description",
   44     44   
    1,
   45     45   
);
   46     46   
static UPDATEROLEDESCRIPTIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   47     47   
    UPDATEROLEDESCRIPTIONINPUT_SCHEMA_ID,
   48     48   
    ::aws_smithy_schema::ShapeType::Structure,
   49     49   
    &[
   50     50   
        &UPDATEROLEDESCRIPTIONINPUT_MEMBER_ROLE_NAME,
   51     51   
        &UPDATEROLEDESCRIPTIONINPUT_MEMBER_DESCRIPTION,
   52     52   
    ],
   53     53   
);
   54     54   
impl UpdateRoleDescriptionInput {
   55     55   
    /// The schema for this shape.
   56     56   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATEROLEDESCRIPTIONINPUT_SCHEMA;
   57     57   
}
   58     58   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateRoleDescriptionInput {
   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.role_name {
   65     65   
            ser.write_string(&UPDATEROLEDESCRIPTIONINPUT_MEMBER_ROLE_NAME, val)?;
   66     66   
        }
   67     67   
        if let Some(ref val) = self.description {
   68     68   
            ser.write_string(&UPDATEROLEDESCRIPTIONINPUT_MEMBER_DESCRIPTION, val)?;
   69     69   
        }
   70     70   
        Ok(())
   71     71   
    }
   72     72   
}
   73     73   
impl UpdateRoleDescriptionInput {
   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(&UPDATEROLEDESCRIPTIONINPUT_SCHEMA, (), |_, member, deser| {
          87  +
        deserializer.read_struct(&UPDATEROLEDESCRIPTIONINPUT_SCHEMA, &mut |member, deser| {
   88     88   
            match member.member_index() {
   89     89   
                Some(0) => {
   90     90   
                    builder.role_name = Some(deser.read_string(member)?);
   91     91   
                }
   92     92   
                Some(1) => {
   93     93   
                    builder.description = Some(deser.read_string(member)?);
   94     94   
                }
   95     95   
                _ => {}
   96     96   
            }
   97     97   
            Ok(())
   98     98   
        })?;
          99  +
        builder.role_name = builder.role_name.or(Some(String::new()));
         100  +
        builder.description = builder.description.or(Some(String::new()));
   99    101   
        builder
  100    102   
            .build()
  101    103   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  102    104   
    }
  103    105   
}
         106  +
impl UpdateRoleDescriptionInput {
         107  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         108  +
    pub fn deserialize_with_response(
         109  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         110  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         111  +
        _status: u16,
         112  +
        _body: &[u8],
         113  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         114  +
        Self::deserialize(deserializer)
         115  +
    }
         116  +
}
  104    117   
impl UpdateRoleDescriptionInput {
  105    118   
    /// Creates a new builder-style object to manufacture [`UpdateRoleDescriptionInput`](crate::operation::update_role_description::UpdateRoleDescriptionInput).
  106    119   
    pub fn builder() -> crate::operation::update_role_description::builders::UpdateRoleDescriptionInputBuilder {
  107    120   
        crate::operation::update_role_description::builders::UpdateRoleDescriptionInputBuilder::default()
  108    121   
    }
  109    122   
}
  110    123   
  111    124   
/// A builder for [`UpdateRoleDescriptionInput`](crate::operation::update_role_description::UpdateRoleDescriptionInput).
  112    125   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  113    126   
#[non_exhaustive]

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

@@ -1,1 +96,140 @@
   18     18   
    "com.amazonaws.iam.synthetic",
   19     19   
    "UpdateRoleDescriptionOutput",
   20     20   
);
   21     21   
static UPDATEROLEDESCRIPTIONOUTPUT_MEMBER_ROLE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.iam.synthetic#UpdateRoleDescriptionOutput$Role",
   24     24   
        "com.amazonaws.iam.synthetic",
   25     25   
        "UpdateRoleDescriptionOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "role",
          28  +
    "Role",
   29     29   
    0,
   30     30   
);
          31  +
static UPDATEROLEDESCRIPTIONOUTPUT_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 UPDATEROLEDESCRIPTIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     39   
    UPDATEROLEDESCRIPTIONOUTPUT_SCHEMA_ID,
   33     40   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    &[&UPDATEROLEDESCRIPTIONOUTPUT_MEMBER_ROLE],
          41  +
    &[&UPDATEROLEDESCRIPTIONOUTPUT_MEMBER_ROLE, &UPDATEROLEDESCRIPTIONOUTPUT_MEMBER__REQUEST_ID],
   35     42   
);
   36     43   
impl UpdateRoleDescriptionOutput {
   37     44   
    /// The schema for this shape.
   38     45   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATEROLEDESCRIPTIONOUTPUT_SCHEMA;
   39     46   
}
   40     47   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateRoleDescriptionOutput {
   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.role {
   47     54   
            ser.write_struct(&UPDATEROLEDESCRIPTIONOUTPUT_MEMBER_ROLE, val)?;
   48     55   
        }
   49     56   
        Ok(())
   50     57   
    }
   51     58   
}
   52     59   
impl UpdateRoleDescriptionOutput {
   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(&UPDATEROLEDESCRIPTIONOUTPUT_SCHEMA, (), |_, member, deser| {
          73  +
        deserializer.read_struct(&UPDATEROLEDESCRIPTIONOUTPUT_SCHEMA, &mut |member, deser| {
          74  +
            match member.member_index() {
          75  +
                Some(0) => {
          76  +
                    builder.role = Some(crate::types::Role::deserialize(deser)?);
          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 UpdateRoleDescriptionOutput {
          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(&UPDATEROLEDESCRIPTIONOUTPUT_SCHEMA, &mut |member, deser| {
   67    111   
            match member.member_index() {
   68    112   
                Some(0) => {
   69    113   
                    builder.role = Some(crate::types::Role::deserialize(deser)?);
   70    114   
                }
   71    115   
                _ => {}
   72    116   
            }
   73    117   
            Ok(())
   74    118   
        })?;
   75    119   
        Ok(builder.build())
   76    120   
    }

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `UpdateSAMLProvider`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UpdateSAMLProvider;
    6      6   
impl UpdateSAMLProvider {
    7      7   
    /// Creates a new `UpdateSAMLProvider`
    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::update_saml_provider::UpdateSamlProviderInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::update_saml_provider::UpdateSamlProviderOutput::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::update_saml_provider::UpdateSamlProviderInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::update_saml_provider::UpdateSamlProviderOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::update_saml_provider::UpdateSAMLProviderError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::update_saml_provider::UpdateSAMLProviderError,
  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 UpdateSAMLProviderResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateSAMLProviderResponseDeserializer {
  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_update_saml_provider::de_update_saml_provider_http_error(status, headers, body)
  157    162   
        } else {

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

@@ -34,34 +215,227 @@
   54     54   
    "com.amazonaws.iam.synthetic",
   55     55   
    "UpdateSAMLProviderInput",
   56     56   
);
   57     57   
static UPDATESAMLPROVIDERINPUT_MEMBER_SAML_METADATA_DOCUMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   58     58   
    ::aws_smithy_schema::ShapeId::from_static(
   59     59   
        "com.amazonaws.iam.synthetic#UpdateSAMLProviderInput$SAMLMetadataDocument",
   60     60   
        "com.amazonaws.iam.synthetic",
   61     61   
        "UpdateSAMLProviderInput",
   62     62   
    ),
   63     63   
    ::aws_smithy_schema::ShapeType::String,
   64         -
    "saml_metadata_document",
          64  +
    "SAMLMetadataDocument",
   65     65   
    0,
   66     66   
);
   67     67   
static UPDATESAMLPROVIDERINPUT_MEMBER_SAML_PROVIDER_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   68     68   
    ::aws_smithy_schema::ShapeId::from_static(
   69     69   
        "com.amazonaws.iam.synthetic#UpdateSAMLProviderInput$SAMLProviderArn",
   70     70   
        "com.amazonaws.iam.synthetic",
   71     71   
        "UpdateSAMLProviderInput",
   72     72   
    ),
   73     73   
    ::aws_smithy_schema::ShapeType::String,
   74         -
    "saml_provider_arn",
          74  +
    "SAMLProviderArn",
   75     75   
    1,
   76     76   
);
   77     77   
static UPDATESAMLPROVIDERINPUT_MEMBER_ASSERTION_ENCRYPTION_MODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.iam.synthetic#UpdateSAMLProviderInput$AssertionEncryptionMode",
   80     80   
        "com.amazonaws.iam.synthetic",
   81     81   
        "UpdateSAMLProviderInput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::String,
   84         -
    "assertion_encryption_mode",
          84  +
    "AssertionEncryptionMode",
   85     85   
    2,
   86     86   
);
   87     87   
static UPDATESAMLPROVIDERINPUT_MEMBER_ADD_PRIVATE_KEY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.iam.synthetic#UpdateSAMLProviderInput$AddPrivateKey",
   90     90   
        "com.amazonaws.iam.synthetic",
   91     91   
        "UpdateSAMLProviderInput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::String,
   94         -
    "add_private_key",
          94  +
    "AddPrivateKey",
   95     95   
    3,
   96     96   
);
   97     97   
static UPDATESAMLPROVIDERINPUT_MEMBER_REMOVE_PRIVATE_KEY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   98     98   
    ::aws_smithy_schema::ShapeId::from_static(
   99     99   
        "com.amazonaws.iam.synthetic#UpdateSAMLProviderInput$RemovePrivateKey",
  100    100   
        "com.amazonaws.iam.synthetic",
  101    101   
        "UpdateSAMLProviderInput",
  102    102   
    ),
  103    103   
    ::aws_smithy_schema::ShapeType::String,
  104         -
    "remove_private_key",
         104  +
    "RemovePrivateKey",
  105    105   
    4,
  106    106   
);
  107    107   
static UPDATESAMLPROVIDERINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  108    108   
    UPDATESAMLPROVIDERINPUT_SCHEMA_ID,
  109    109   
    ::aws_smithy_schema::ShapeType::Structure,
  110    110   
    &[
  111    111   
        &UPDATESAMLPROVIDERINPUT_MEMBER_SAML_METADATA_DOCUMENT,
  112    112   
        &UPDATESAMLPROVIDERINPUT_MEMBER_SAML_PROVIDER_ARN,
  113    113   
        &UPDATESAMLPROVIDERINPUT_MEMBER_ASSERTION_ENCRYPTION_MODE,
  114    114   
        &UPDATESAMLPROVIDERINPUT_MEMBER_ADD_PRIVATE_KEY,
  115    115   
        &UPDATESAMLPROVIDERINPUT_MEMBER_REMOVE_PRIVATE_KEY,
  116    116   
    ],
  117    117   
);
  118    118   
impl UpdateSamlProviderInput {
  119    119   
    /// The schema for this shape.
  120    120   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATESAMLPROVIDERINPUT_SCHEMA;
  121    121   
}
  122    122   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateSamlProviderInput {
  123    123   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  124    124   
    fn serialize_members(
  125    125   
        &self,
  126    126   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  127    127   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  128    128   
        if let Some(ref val) = self.saml_metadata_document {
  129    129   
            ser.write_string(&UPDATESAMLPROVIDERINPUT_MEMBER_SAML_METADATA_DOCUMENT, val)?;
  130    130   
        }
  131    131   
        if let Some(ref val) = self.saml_provider_arn {
  132    132   
            ser.write_string(&UPDATESAMLPROVIDERINPUT_MEMBER_SAML_PROVIDER_ARN, val)?;
  133    133   
        }
  134    134   
        if let Some(ref val) = self.assertion_encryption_mode {
  135    135   
            ser.write_string(&UPDATESAMLPROVIDERINPUT_MEMBER_ASSERTION_ENCRYPTION_MODE, val.as_str())?;
  136    136   
        }
  137    137   
        if let Some(ref val) = self.add_private_key {
  138    138   
            ser.write_string(&UPDATESAMLPROVIDERINPUT_MEMBER_ADD_PRIVATE_KEY, val)?;
  139    139   
        }
  140    140   
        if let Some(ref val) = self.remove_private_key {
  141    141   
            ser.write_string(&UPDATESAMLPROVIDERINPUT_MEMBER_REMOVE_PRIVATE_KEY, val)?;
  142    142   
        }
  143    143   
        Ok(())
  144    144   
    }
  145    145   
}
  146    146   
impl UpdateSamlProviderInput {
  147    147   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  148         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  149         -
        deserializer: &mut D,
         148  +
    pub fn deserialize(
         149  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  150    150   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  151    151   
        #[allow(unused_variables, unused_mut)]
  152    152   
        let mut builder = Self::builder();
  153    153   
        #[allow(
  154    154   
            unused_variables,
  155    155   
            unreachable_code,
  156    156   
            clippy::single_match,
  157    157   
            clippy::match_single_binding,
  158    158   
            clippy::diverging_sub_expression
  159    159   
        )]
  160         -
        deserializer.read_struct(&UPDATESAMLPROVIDERINPUT_SCHEMA, (), |_, member, deser| {
         160  +
        deserializer.read_struct(&UPDATESAMLPROVIDERINPUT_SCHEMA, &mut |member, deser| {
  161    161   
            match member.member_index() {
  162    162   
                Some(0) => {
  163    163   
                    builder.saml_metadata_document = Some(deser.read_string(member)?);
  164    164   
                }
  165    165   
                Some(1) => {
  166    166   
                    builder.saml_provider_arn = Some(deser.read_string(member)?);
  167    167   
                }
  168    168   
                Some(2) => {
  169    169   
                    builder.assertion_encryption_mode = Some(crate::types::AssertionEncryptionModeType::from(deser.read_string(member)?.as_str()));
  170    170   
                }
  171    171   
                Some(3) => {
  172    172   
                    builder.add_private_key = Some(deser.read_string(member)?);
  173    173   
                }
  174    174   
                Some(4) => {
  175    175   
                    builder.remove_private_key = Some(deser.read_string(member)?);
  176    176   
                }
  177    177   
                _ => {}
  178    178   
            }
  179    179   
            Ok(())
  180    180   
        })?;
         181  +
        builder.saml_provider_arn = builder.saml_provider_arn.or(Some(String::new()));
  181    182   
        builder
  182    183   
            .build()
  183    184   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  184    185   
    }
  185    186   
}
         187  +
impl UpdateSamlProviderInput {
         188  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         189  +
    pub fn deserialize_with_response(
         190  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         191  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         192  +
        _status: u16,
         193  +
        _body: &[u8],
         194  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         195  +
        Self::deserialize(deserializer)
         196  +
    }
         197  +
}
  186    198   
impl UpdateSamlProviderInput {
  187    199   
    /// Creates a new builder-style object to manufacture [`UpdateSamlProviderInput`](crate::operation::update_saml_provider::UpdateSamlProviderInput).
  188    200   
    pub fn builder() -> crate::operation::update_saml_provider::builders::UpdateSamlProviderInputBuilder {
  189    201   
        crate::operation::update_saml_provider::builders::UpdateSamlProviderInputBuilder::default()
  190    202   
    }
  191    203   
}
  192    204   
  193    205   
/// A builder for [`UpdateSamlProviderInput`](crate::operation::update_saml_provider::UpdateSamlProviderInput).
  194    206   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
  195    207   
#[non_exhaustive]

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

@@ -1,1 +97,144 @@
   19     19   
    "com.amazonaws.iam.synthetic",
   20     20   
    "UpdateSAMLProviderOutput",
   21     21   
);
   22     22   
static UPDATESAMLPROVIDEROUTPUT_MEMBER_SAML_PROVIDER_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   23     23   
    ::aws_smithy_schema::ShapeId::from_static(
   24     24   
        "com.amazonaws.iam.synthetic#UpdateSAMLProviderOutput$SAMLProviderArn",
   25     25   
        "com.amazonaws.iam.synthetic",
   26     26   
        "UpdateSAMLProviderOutput",
   27     27   
    ),
   28     28   
    ::aws_smithy_schema::ShapeType::String,
   29         -
    "saml_provider_arn",
          29  +
    "SAMLProviderArn",
   30     30   
    0,
   31     31   
);
          32  +
static UPDATESAMLPROVIDEROUTPUT_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 UPDATESAMLPROVIDEROUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    UPDATESAMLPROVIDEROUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&UPDATESAMLPROVIDEROUTPUT_MEMBER_SAML_PROVIDER_ARN],
          42  +
    &[
          43  +
        &UPDATESAMLPROVIDEROUTPUT_MEMBER_SAML_PROVIDER_ARN,
          44  +
        &UPDATESAMLPROVIDEROUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl UpdateSamlProviderOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATESAMLPROVIDEROUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateSamlProviderOutput {
   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.saml_provider_arn {
   48     58   
            ser.write_string(&UPDATESAMLPROVIDEROUTPUT_MEMBER_SAML_PROVIDER_ARN, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl UpdateSamlProviderOutput {
   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(&UPDATESAMLPROVIDEROUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&UPDATESAMLPROVIDEROUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.saml_provider_arn = 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 UpdateSamlProviderOutput {
          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(&UPDATESAMLPROVIDEROUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.saml_provider_arn = 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/iam/src/operation/update_server_certificate.rs

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

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

@@ -15,15 +162,174 @@
   35     35   
    "com.amazonaws.iam.synthetic",
   36     36   
    "UpdateServerCertificateInput",
   37     37   
);
   38     38   
static UPDATESERVERCERTIFICATEINPUT_MEMBER_SERVER_CERTIFICATE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.iam.synthetic#UpdateServerCertificateInput$ServerCertificateName",
   41     41   
        "com.amazonaws.iam.synthetic",
   42     42   
        "UpdateServerCertificateInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "server_certificate_name",
          45  +
    "ServerCertificateName",
   46     46   
    0,
   47     47   
);
   48     48   
static UPDATESERVERCERTIFICATEINPUT_MEMBER_NEW_PATH: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   49     49   
    ::aws_smithy_schema::ShapeId::from_static(
   50     50   
        "com.amazonaws.iam.synthetic#UpdateServerCertificateInput$NewPath",
   51     51   
        "com.amazonaws.iam.synthetic",
   52     52   
        "UpdateServerCertificateInput",
   53     53   
    ),
   54     54   
    ::aws_smithy_schema::ShapeType::String,
   55         -
    "new_path",
          55  +
    "NewPath",
   56     56   
    1,
   57     57   
);
   58     58   
static UPDATESERVERCERTIFICATEINPUT_MEMBER_NEW_SERVER_CERTIFICATE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   59     59   
    ::aws_smithy_schema::ShapeId::from_static(
   60     60   
        "com.amazonaws.iam.synthetic#UpdateServerCertificateInput$NewServerCertificateName",
   61     61   
        "com.amazonaws.iam.synthetic",
   62     62   
        "UpdateServerCertificateInput",
   63     63   
    ),
   64     64   
    ::aws_smithy_schema::ShapeType::String,
   65         -
    "new_server_certificate_name",
          65  +
    "NewServerCertificateName",
   66     66   
    2,
   67     67   
);
   68     68   
static UPDATESERVERCERTIFICATEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   69     69   
    UPDATESERVERCERTIFICATEINPUT_SCHEMA_ID,
   70     70   
    ::aws_smithy_schema::ShapeType::Structure,
   71     71   
    &[
   72     72   
        &UPDATESERVERCERTIFICATEINPUT_MEMBER_SERVER_CERTIFICATE_NAME,
   73     73   
        &UPDATESERVERCERTIFICATEINPUT_MEMBER_NEW_PATH,
   74     74   
        &UPDATESERVERCERTIFICATEINPUT_MEMBER_NEW_SERVER_CERTIFICATE_NAME,
   75     75   
    ],
   76     76   
);
   77     77   
impl UpdateServerCertificateInput {
   78     78   
    /// The schema for this shape.
   79     79   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATESERVERCERTIFICATEINPUT_SCHEMA;
   80     80   
}
   81     81   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateServerCertificateInput {
   82     82   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   83     83   
    fn serialize_members(
   84     84   
        &self,
   85     85   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   86     86   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   87     87   
        if let Some(ref val) = self.server_certificate_name {
   88     88   
            ser.write_string(&UPDATESERVERCERTIFICATEINPUT_MEMBER_SERVER_CERTIFICATE_NAME, val)?;
   89     89   
        }
   90     90   
        if let Some(ref val) = self.new_path {
   91     91   
            ser.write_string(&UPDATESERVERCERTIFICATEINPUT_MEMBER_NEW_PATH, val)?;
   92     92   
        }
   93     93   
        if let Some(ref val) = self.new_server_certificate_name {
   94     94   
            ser.write_string(&UPDATESERVERCERTIFICATEINPUT_MEMBER_NEW_SERVER_CERTIFICATE_NAME, val)?;
   95     95   
        }
   96     96   
        Ok(())
   97     97   
    }
   98     98   
}
   99     99   
impl UpdateServerCertificateInput {
  100    100   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  101         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  102         -
        deserializer: &mut D,
         101  +
    pub fn deserialize(
         102  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  103    103   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  104    104   
        #[allow(unused_variables, unused_mut)]
  105    105   
        let mut builder = Self::builder();
  106    106   
        #[allow(
  107    107   
            unused_variables,
  108    108   
            unreachable_code,
  109    109   
            clippy::single_match,
  110    110   
            clippy::match_single_binding,
  111    111   
            clippy::diverging_sub_expression
  112    112   
        )]
  113         -
        deserializer.read_struct(&UPDATESERVERCERTIFICATEINPUT_SCHEMA, (), |_, member, deser| {
         113  +
        deserializer.read_struct(&UPDATESERVERCERTIFICATEINPUT_SCHEMA, &mut |member, deser| {
  114    114   
            match member.member_index() {
  115    115   
                Some(0) => {
  116    116   
                    builder.server_certificate_name = Some(deser.read_string(member)?);
  117    117   
                }
  118    118   
                Some(1) => {
  119    119   
                    builder.new_path = Some(deser.read_string(member)?);
  120    120   
                }
  121    121   
                Some(2) => {
  122    122   
                    builder.new_server_certificate_name = Some(deser.read_string(member)?);
  123    123   
                }
  124    124   
                _ => {}
  125    125   
            }
  126    126   
            Ok(())
  127    127   
        })?;
         128  +
        builder.server_certificate_name = builder.server_certificate_name.or(Some(String::new()));
  128    129   
        builder
  129    130   
            .build()
  130    131   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  131    132   
    }
  132    133   
}
         134  +
impl UpdateServerCertificateInput {
         135  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         136  +
    pub fn deserialize_with_response(
         137  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         138  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         139  +
        _status: u16,
         140  +
        _body: &[u8],
         141  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         142  +
        Self::deserialize(deserializer)
         143  +
    }
         144  +
}
  133    145   
impl UpdateServerCertificateInput {
  134    146   
    /// Creates a new builder-style object to manufacture [`UpdateServerCertificateInput`](crate::operation::update_server_certificate::UpdateServerCertificateInput).
  135    147   
    pub fn builder() -> crate::operation::update_server_certificate::builders::UpdateServerCertificateInputBuilder {
  136    148   
        crate::operation::update_server_certificate::builders::UpdateServerCertificateInputBuilder::default()
  137    149   
    }
  138    150   
}
  139    151   
  140    152   
/// A builder for [`UpdateServerCertificateInput`](crate::operation::update_server_certificate::UpdateServerCertificateInput).
  141    153   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  142    154   
#[non_exhaustive]

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

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

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

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

@@ -13,13 +161,173 @@
   33     33   
    "com.amazonaws.iam.synthetic",
   34     34   
    "UpdateServiceSpecificCredentialInput",
   35     35   
);
   36     36   
static UPDATESERVICESPECIFICCREDENTIALINPUT_MEMBER_USER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static(
   38     38   
        "com.amazonaws.iam.synthetic#UpdateServiceSpecificCredentialInput$UserName",
   39     39   
        "com.amazonaws.iam.synthetic",
   40     40   
        "UpdateServiceSpecificCredentialInput",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::String,
   43         -
    "user_name",
          43  +
    "UserName",
   44     44   
    0,
   45     45   
);
   46     46   
static UPDATESERVICESPECIFICCREDENTIALINPUT_MEMBER_SERVICE_SPECIFIC_CREDENTIAL_ID: ::aws_smithy_schema::Schema =
   47     47   
    ::aws_smithy_schema::Schema::new_member(
   48     48   
        ::aws_smithy_schema::ShapeId::from_static(
   49     49   
            "com.amazonaws.iam.synthetic#UpdateServiceSpecificCredentialInput$ServiceSpecificCredentialId",
   50     50   
            "com.amazonaws.iam.synthetic",
   51     51   
            "UpdateServiceSpecificCredentialInput",
   52     52   
        ),
   53     53   
        ::aws_smithy_schema::ShapeType::String,
   54         -
        "service_specific_credential_id",
          54  +
        "ServiceSpecificCredentialId",
   55     55   
        1,
   56     56   
    );
   57     57   
static UPDATESERVICESPECIFICCREDENTIALINPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   58     58   
    ::aws_smithy_schema::ShapeId::from_static(
   59     59   
        "com.amazonaws.iam.synthetic#UpdateServiceSpecificCredentialInput$Status",
   60     60   
        "com.amazonaws.iam.synthetic",
   61     61   
        "UpdateServiceSpecificCredentialInput",
   62     62   
    ),
   63     63   
    ::aws_smithy_schema::ShapeType::String,
   64         -
    "status",
          64  +
    "Status",
   65     65   
    2,
   66     66   
);
   67     67   
static UPDATESERVICESPECIFICCREDENTIALINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   68     68   
    UPDATESERVICESPECIFICCREDENTIALINPUT_SCHEMA_ID,
   69     69   
    ::aws_smithy_schema::ShapeType::Structure,
   70     70   
    &[
   71     71   
        &UPDATESERVICESPECIFICCREDENTIALINPUT_MEMBER_USER_NAME,
   72     72   
        &UPDATESERVICESPECIFICCREDENTIALINPUT_MEMBER_SERVICE_SPECIFIC_CREDENTIAL_ID,
   73     73   
        &UPDATESERVICESPECIFICCREDENTIALINPUT_MEMBER_STATUS,
   74     74   
    ],
   75     75   
);
   76     76   
impl UpdateServiceSpecificCredentialInput {
   77     77   
    /// The schema for this shape.
   78     78   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATESERVICESPECIFICCREDENTIALINPUT_SCHEMA;
   79     79   
}
   80     80   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateServiceSpecificCredentialInput {
   81     81   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   82     82   
    fn serialize_members(
   83     83   
        &self,
   84     84   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   85     85   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   86     86   
        if let Some(ref val) = self.user_name {
   87     87   
            ser.write_string(&UPDATESERVICESPECIFICCREDENTIALINPUT_MEMBER_USER_NAME, val)?;
   88     88   
        }
   89     89   
        if let Some(ref val) = self.service_specific_credential_id {
   90     90   
            ser.write_string(&UPDATESERVICESPECIFICCREDENTIALINPUT_MEMBER_SERVICE_SPECIFIC_CREDENTIAL_ID, val)?;
   91     91   
        }
   92     92   
        if let Some(ref val) = self.status {
   93     93   
            ser.write_string(&UPDATESERVICESPECIFICCREDENTIALINPUT_MEMBER_STATUS, val.as_str())?;
   94     94   
        }
   95     95   
        Ok(())
   96     96   
    }
   97     97   
}
   98     98   
impl UpdateServiceSpecificCredentialInput {
   99     99   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  100         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  101         -
        deserializer: &mut D,
         100  +
    pub fn deserialize(
         101  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  102    102   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  103    103   
        #[allow(unused_variables, unused_mut)]
  104    104   
        let mut builder = Self::builder();
  105    105   
        #[allow(
  106    106   
            unused_variables,
  107    107   
            unreachable_code,
  108    108   
            clippy::single_match,
  109    109   
            clippy::match_single_binding,
  110    110   
            clippy::diverging_sub_expression
  111    111   
        )]
  112         -
        deserializer.read_struct(&UPDATESERVICESPECIFICCREDENTIALINPUT_SCHEMA, (), |_, member, deser| {
         112  +
        deserializer.read_struct(&UPDATESERVICESPECIFICCREDENTIALINPUT_SCHEMA, &mut |member, deser| {
  113    113   
            match member.member_index() {
  114    114   
                Some(0) => {
  115    115   
                    builder.user_name = Some(deser.read_string(member)?);
  116    116   
                }
  117    117   
                Some(1) => {
  118    118   
                    builder.service_specific_credential_id = Some(deser.read_string(member)?);
  119    119   
                }
  120    120   
                Some(2) => {
  121    121   
                    builder.status = Some(crate::types::StatusType::from(deser.read_string(member)?.as_str()));
  122    122   
                }
  123    123   
                _ => {}
  124    124   
            }
  125    125   
            Ok(())
  126    126   
        })?;
         127  +
        builder.service_specific_credential_id = builder.service_specific_credential_id.or(Some(String::new()));
  127    128   
        builder
  128    129   
            .build()
  129    130   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  130    131   
    }
  131    132   
}
         133  +
impl UpdateServiceSpecificCredentialInput {
         134  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         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  +
        Self::deserialize(deserializer)
         142  +
    }
         143  +
}
  132    144   
impl UpdateServiceSpecificCredentialInput {
  133    145   
    /// Creates a new builder-style object to manufacture [`UpdateServiceSpecificCredentialInput`](crate::operation::update_service_specific_credential::UpdateServiceSpecificCredentialInput).
  134    146   
    pub fn builder() -> crate::operation::update_service_specific_credential::builders::UpdateServiceSpecificCredentialInputBuilder {
  135    147   
        crate::operation::update_service_specific_credential::builders::UpdateServiceSpecificCredentialInputBuilder::default()
  136    148   
    }
  137    149   
}
  138    150   
  139    151   
/// A builder for [`UpdateServiceSpecificCredentialInput`](crate::operation::update_service_specific_credential::UpdateServiceSpecificCredentialInput).
  140    152   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  141    153   
#[non_exhaustive]