AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/list_account_aliases.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 `ListAccountAliases`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListAccountAliases;
    6      6   
impl ListAccountAliases {
    7      7   
    /// Creates a new `ListAccountAliases`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_account_aliases::ListAccountAliasesInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_account_aliases::ListAccountAliasesOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::list_account_aliases::ListAccountAliasesInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_account_aliases::ListAccountAliasesOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_account_aliases::ListAccountAliasesError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +177,182 @@
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct ListAccountAliasesResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListAccountAliasesResponseDeserializer {
  145    149   
    fn deserialize_nonstreaming(
  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_list_account_aliases::de_list_account_aliases_http_error(status, headers, body)
  157    162   
        } else {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -39,39 +237,249 @@
   59     59   
    "com.amazonaws.iam.synthetic",
   60     60   
    "ListEntitiesForPolicyInput",
   61     61   
);
   62     62   
static LISTENTITIESFORPOLICYINPUT_MEMBER_POLICY_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   63     63   
    ::aws_smithy_schema::ShapeId::from_static(
   64     64   
        "com.amazonaws.iam.synthetic#ListEntitiesForPolicyInput$PolicyArn",
   65     65   
        "com.amazonaws.iam.synthetic",
   66     66   
        "ListEntitiesForPolicyInput",
   67     67   
    ),
   68     68   
    ::aws_smithy_schema::ShapeType::String,
   69         -
    "policy_arn",
          69  +
    "PolicyArn",
   70     70   
    0,
   71     71   
);
   72     72   
static LISTENTITIESFORPOLICYINPUT_MEMBER_ENTITY_FILTER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   73     73   
    ::aws_smithy_schema::ShapeId::from_static(
   74     74   
        "com.amazonaws.iam.synthetic#ListEntitiesForPolicyInput$EntityFilter",
   75     75   
        "com.amazonaws.iam.synthetic",
   76     76   
        "ListEntitiesForPolicyInput",
   77     77   
    ),
   78     78   
    ::aws_smithy_schema::ShapeType::String,
   79         -
    "entity_filter",
          79  +
    "EntityFilter",
   80     80   
    1,
   81     81   
);
   82     82   
static LISTENTITIESFORPOLICYINPUT_MEMBER_PATH_PREFIX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   83     83   
    ::aws_smithy_schema::ShapeId::from_static(
   84     84   
        "com.amazonaws.iam.synthetic#ListEntitiesForPolicyInput$PathPrefix",
   85     85   
        "com.amazonaws.iam.synthetic",
   86     86   
        "ListEntitiesForPolicyInput",
   87     87   
    ),
   88     88   
    ::aws_smithy_schema::ShapeType::String,
   89         -
    "path_prefix",
          89  +
    "PathPrefix",
   90     90   
    2,
   91     91   
);
   92     92   
static LISTENTITIESFORPOLICYINPUT_MEMBER_POLICY_USAGE_FILTER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   93     93   
    ::aws_smithy_schema::ShapeId::from_static(
   94     94   
        "com.amazonaws.iam.synthetic#ListEntitiesForPolicyInput$PolicyUsageFilter",
   95     95   
        "com.amazonaws.iam.synthetic",
   96     96   
        "ListEntitiesForPolicyInput",
   97     97   
    ),
   98     98   
    ::aws_smithy_schema::ShapeType::String,
   99         -
    "policy_usage_filter",
          99  +
    "PolicyUsageFilter",
  100    100   
    3,
  101    101   
);
  102    102   
static LISTENTITIESFORPOLICYINPUT_MEMBER_MARKER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  103    103   
    ::aws_smithy_schema::ShapeId::from_static(
  104    104   
        "com.amazonaws.iam.synthetic#ListEntitiesForPolicyInput$Marker",
  105    105   
        "com.amazonaws.iam.synthetic",
  106    106   
        "ListEntitiesForPolicyInput",
  107    107   
    ),
  108    108   
    ::aws_smithy_schema::ShapeType::String,
  109         -
    "marker",
         109  +
    "Marker",
  110    110   
    4,
  111    111   
);
  112    112   
static LISTENTITIESFORPOLICYINPUT_MEMBER_MAX_ITEMS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  113    113   
    ::aws_smithy_schema::ShapeId::from_static(
  114    114   
        "com.amazonaws.iam.synthetic#ListEntitiesForPolicyInput$MaxItems",
  115    115   
        "com.amazonaws.iam.synthetic",
  116    116   
        "ListEntitiesForPolicyInput",
  117    117   
    ),
  118    118   
    ::aws_smithy_schema::ShapeType::Integer,
  119         -
    "max_items",
         119  +
    "MaxItems",
  120    120   
    5,
  121    121   
);
  122    122   
static LISTENTITIESFORPOLICYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  123    123   
    LISTENTITIESFORPOLICYINPUT_SCHEMA_ID,
  124    124   
    ::aws_smithy_schema::ShapeType::Structure,
  125    125   
    &[
  126    126   
        &LISTENTITIESFORPOLICYINPUT_MEMBER_POLICY_ARN,
  127    127   
        &LISTENTITIESFORPOLICYINPUT_MEMBER_ENTITY_FILTER,
  128    128   
        &LISTENTITIESFORPOLICYINPUT_MEMBER_PATH_PREFIX,
  129    129   
        &LISTENTITIESFORPOLICYINPUT_MEMBER_POLICY_USAGE_FILTER,
  130    130   
        &LISTENTITIESFORPOLICYINPUT_MEMBER_MARKER,
  131    131   
        &LISTENTITIESFORPOLICYINPUT_MEMBER_MAX_ITEMS,
  132    132   
    ],
  133    133   
);
  134    134   
impl ListEntitiesForPolicyInput {
  135    135   
    /// The schema for this shape.
  136    136   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTENTITIESFORPOLICYINPUT_SCHEMA;
  137    137   
}
  138    138   
impl ::aws_smithy_schema::serde::SerializableStruct for ListEntitiesForPolicyInput {
  139    139   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  140    140   
    fn serialize_members(
  141    141   
        &self,
  142    142   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  143    143   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  144    144   
        if let Some(ref val) = self.policy_arn {
  145    145   
            ser.write_string(&LISTENTITIESFORPOLICYINPUT_MEMBER_POLICY_ARN, val)?;
  146    146   
        }
  147    147   
        if let Some(ref val) = self.entity_filter {
  148    148   
            ser.write_string(&LISTENTITIESFORPOLICYINPUT_MEMBER_ENTITY_FILTER, val.as_str())?;
  149    149   
        }
  150    150   
        if let Some(ref val) = self.path_prefix {
  151    151   
            ser.write_string(&LISTENTITIESFORPOLICYINPUT_MEMBER_PATH_PREFIX, val)?;
  152    152   
        }
  153    153   
        if let Some(ref val) = self.policy_usage_filter {
  154    154   
            ser.write_string(&LISTENTITIESFORPOLICYINPUT_MEMBER_POLICY_USAGE_FILTER, val.as_str())?;
  155    155   
        }
  156    156   
        if let Some(ref val) = self.marker {
  157    157   
            ser.write_string(&LISTENTITIESFORPOLICYINPUT_MEMBER_MARKER, val)?;
  158    158   
        }
  159    159   
        if let Some(ref val) = self.max_items {
  160    160   
            ser.write_integer(&LISTENTITIESFORPOLICYINPUT_MEMBER_MAX_ITEMS, *val)?;
  161    161   
        }
  162    162   
        Ok(())
  163    163   
    }
  164    164   
}
  165    165   
impl ListEntitiesForPolicyInput {
  166    166   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  167         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  168         -
        deserializer: &mut D,
         167  +
    pub fn deserialize(
         168  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  169    169   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  170    170   
        #[allow(unused_variables, unused_mut)]
  171    171   
        let mut builder = Self::builder();
  172    172   
        #[allow(
  173    173   
            unused_variables,
  174    174   
            unreachable_code,
  175    175   
            clippy::single_match,
  176    176   
            clippy::match_single_binding,
  177    177   
            clippy::diverging_sub_expression
  178    178   
        )]
  179         -
        deserializer.read_struct(&LISTENTITIESFORPOLICYINPUT_SCHEMA, (), |_, member, deser| {
         179  +
        deserializer.read_struct(&LISTENTITIESFORPOLICYINPUT_SCHEMA, &mut |member, deser| {
  180    180   
            match member.member_index() {
  181    181   
                Some(0) => {
  182    182   
                    builder.policy_arn = Some(deser.read_string(member)?);
  183    183   
                }
  184    184   
                Some(1) => {
  185    185   
                    builder.entity_filter = Some(crate::types::EntityType::from(deser.read_string(member)?.as_str()));
  186    186   
                }
  187    187   
                Some(2) => {
  188    188   
                    builder.path_prefix = Some(deser.read_string(member)?);
  189    189   
                }
  190    190   
                Some(3) => {
  191    191   
                    builder.policy_usage_filter = Some(crate::types::PolicyUsageType::from(deser.read_string(member)?.as_str()));
  192    192   
                }
  193    193   
                Some(4) => {
  194    194   
                    builder.marker = Some(deser.read_string(member)?);
  195    195   
                }
  196    196   
                Some(5) => {
  197    197   
                    builder.max_items = Some(deser.read_integer(member)?);
  198    198   
                }
  199    199   
                _ => {}
  200    200   
            }
  201    201   
            Ok(())
  202    202   
        })?;
         203  +
        builder.policy_arn = builder.policy_arn.or(Some(String::new()));
  203    204   
        builder
  204    205   
            .build()
  205    206   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  206    207   
    }
  207    208   
}
         209  +
impl ListEntitiesForPolicyInput {
         210  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         211  +
    pub fn deserialize_with_response(
         212  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         213  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         214  +
        _status: u16,
         215  +
        _body: &[u8],
         216  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         217  +
        Self::deserialize(deserializer)
         218  +
    }
         219  +
}
  208    220   
impl ListEntitiesForPolicyInput {
  209    221   
    /// Creates a new builder-style object to manufacture [`ListEntitiesForPolicyInput`](crate::operation::list_entities_for_policy::ListEntitiesForPolicyInput).
  210    222   
    pub fn builder() -> crate::operation::list_entities_for_policy::builders::ListEntitiesForPolicyInputBuilder {
  211    223   
        crate::operation::list_entities_for_policy::builders::ListEntitiesForPolicyInputBuilder::default()
  212    224   
    }
  213    225   
}
  214    226   
  215    227   
/// A builder for [`ListEntitiesForPolicyInput`](crate::operation::list_entities_for_policy::ListEntitiesForPolicyInput).
  216    228   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  217    229   
#[non_exhaustive]

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

@@ -29,29 +248,317 @@
   49     49   
    "com.amazonaws.iam.synthetic",
   50     50   
    "ListEntitiesForPolicyOutput",
   51     51   
);
   52     52   
static LISTENTITIESFORPOLICYOUTPUT_MEMBER_POLICY_GROUPS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   53     53   
    ::aws_smithy_schema::ShapeId::from_static(
   54     54   
        "com.amazonaws.iam.synthetic#ListEntitiesForPolicyOutput$PolicyGroups",
   55     55   
        "com.amazonaws.iam.synthetic",
   56     56   
        "ListEntitiesForPolicyOutput",
   57     57   
    ),
   58     58   
    ::aws_smithy_schema::ShapeType::List,
   59         -
    "policy_groups",
          59  +
    "PolicyGroups",
   60     60   
    0,
   61     61   
);
   62     62   
static LISTENTITIESFORPOLICYOUTPUT_MEMBER_POLICY_USERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   63     63   
    ::aws_smithy_schema::ShapeId::from_static(
   64     64   
        "com.amazonaws.iam.synthetic#ListEntitiesForPolicyOutput$PolicyUsers",
   65     65   
        "com.amazonaws.iam.synthetic",
   66     66   
        "ListEntitiesForPolicyOutput",
   67     67   
    ),
   68     68   
    ::aws_smithy_schema::ShapeType::List,
   69         -
    "policy_users",
          69  +
    "PolicyUsers",
   70     70   
    1,
   71     71   
);
   72     72   
static LISTENTITIESFORPOLICYOUTPUT_MEMBER_POLICY_ROLES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   73     73   
    ::aws_smithy_schema::ShapeId::from_static(
   74     74   
        "com.amazonaws.iam.synthetic#ListEntitiesForPolicyOutput$PolicyRoles",
   75     75   
        "com.amazonaws.iam.synthetic",
   76     76   
        "ListEntitiesForPolicyOutput",
   77     77   
    ),
   78     78   
    ::aws_smithy_schema::ShapeType::List,
   79         -
    "policy_roles",
          79  +
    "PolicyRoles",
   80     80   
    2,
   81     81   
);
   82     82   
static LISTENTITIESFORPOLICYOUTPUT_MEMBER_IS_TRUNCATED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   83     83   
    ::aws_smithy_schema::ShapeId::from_static(
   84     84   
        "com.amazonaws.iam.synthetic#ListEntitiesForPolicyOutput$IsTruncated",
   85     85   
        "com.amazonaws.iam.synthetic",
   86     86   
        "ListEntitiesForPolicyOutput",
   87     87   
    ),
   88     88   
    ::aws_smithy_schema::ShapeType::Boolean,
   89         -
    "is_truncated",
          89  +
    "IsTruncated",
   90     90   
    3,
   91     91   
);
   92     92   
static LISTENTITIESFORPOLICYOUTPUT_MEMBER_MARKER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   93     93   
    ::aws_smithy_schema::ShapeId::from_static(
   94     94   
        "com.amazonaws.iam.synthetic#ListEntitiesForPolicyOutput$Marker",
   95     95   
        "com.amazonaws.iam.synthetic",
   96     96   
        "ListEntitiesForPolicyOutput",
   97     97   
    ),
   98     98   
    ::aws_smithy_schema::ShapeType::String,
   99         -
    "marker",
          99  +
    "Marker",
  100    100   
    4,
  101    101   
);
         102  +
static LISTENTITIESFORPOLICYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         103  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         104  +
    ::aws_smithy_schema::ShapeType::String,
         105  +
    "request_id",
         106  +
    5,
         107  +
)
         108  +
.with_http_header("x-amzn-requestid");
  102    109   
static LISTENTITIESFORPOLICYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  103    110   
    LISTENTITIESFORPOLICYOUTPUT_SCHEMA_ID,
  104    111   
    ::aws_smithy_schema::ShapeType::Structure,
  105    112   
    &[
  106    113   
        &LISTENTITIESFORPOLICYOUTPUT_MEMBER_POLICY_GROUPS,
  107    114   
        &LISTENTITIESFORPOLICYOUTPUT_MEMBER_POLICY_USERS,
  108    115   
        &LISTENTITIESFORPOLICYOUTPUT_MEMBER_POLICY_ROLES,
  109    116   
        &LISTENTITIESFORPOLICYOUTPUT_MEMBER_IS_TRUNCATED,
  110    117   
        &LISTENTITIESFORPOLICYOUTPUT_MEMBER_MARKER,
         118  +
        &LISTENTITIESFORPOLICYOUTPUT_MEMBER__REQUEST_ID,
  111    119   
    ],
  112    120   
);
  113    121   
impl ListEntitiesForPolicyOutput {
  114    122   
    /// The schema for this shape.
  115    123   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTENTITIESFORPOLICYOUTPUT_SCHEMA;
  116    124   
}
  117    125   
impl ::aws_smithy_schema::serde::SerializableStruct for ListEntitiesForPolicyOutput {
  118    126   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  119    127   
    fn serialize_members(
  120    128   
        &self,
  121    129   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  122    130   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  123    131   
        if let Some(ref val) = self.policy_groups {
  124    132   
            ser.write_list(
  125    133   
                &LISTENTITIESFORPOLICYOUTPUT_MEMBER_POLICY_GROUPS,
  126    134   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  127    135   
                    for item in val {
  128    136   
                        ser.write_struct(crate::types::PolicyGroup::SCHEMA, item)?;
  129    137   
                    }
  130    138   
                    Ok(())
  131    139   
                },
  132    140   
            )?;
  133    141   
        }
  134    142   
        if let Some(ref val) = self.policy_users {
  135    143   
            ser.write_list(
  136    144   
                &LISTENTITIESFORPOLICYOUTPUT_MEMBER_POLICY_USERS,
  137    145   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  138    146   
                    for item in val {
  139    147   
                        ser.write_struct(crate::types::PolicyUser::SCHEMA, item)?;
  140    148   
                    }
  141    149   
                    Ok(())
  142    150   
                },
  143    151   
            )?;
  144    152   
        }
  145    153   
        if let Some(ref val) = self.policy_roles {
  146    154   
            ser.write_list(
  147    155   
                &LISTENTITIESFORPOLICYOUTPUT_MEMBER_POLICY_ROLES,
  148    156   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  149    157   
                    for item in val {
  150    158   
                        ser.write_struct(crate::types::PolicyRole::SCHEMA, item)?;
  151    159   
                    }
  152    160   
                    Ok(())
  153    161   
                },
  154    162   
            )?;
  155    163   
        }
  156    164   
        {
  157    165   
            let val = &self.is_truncated;
  158    166   
            ser.write_boolean(&LISTENTITIESFORPOLICYOUTPUT_MEMBER_IS_TRUNCATED, *val)?;
  159    167   
        }
  160    168   
        if let Some(ref val) = self.marker {
  161    169   
            ser.write_string(&LISTENTITIESFORPOLICYOUTPUT_MEMBER_MARKER, val)?;
  162    170   
        }
  163    171   
        Ok(())
  164    172   
    }
  165    173   
}
  166    174   
impl ListEntitiesForPolicyOutput {
  167    175   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  168         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  169         -
        deserializer: &mut D,
         176  +
    pub fn deserialize(
         177  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         178  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         179  +
        #[allow(unused_variables, unused_mut)]
         180  +
        let mut builder = Self::builder();
         181  +
        #[allow(
         182  +
            unused_variables,
         183  +
            unreachable_code,
         184  +
            clippy::single_match,
         185  +
            clippy::match_single_binding,
         186  +
            clippy::diverging_sub_expression
         187  +
        )]
         188  +
        deserializer.read_struct(&LISTENTITIESFORPOLICYOUTPUT_SCHEMA, &mut |member, deser| {
         189  +
            match member.member_index() {
         190  +
                Some(0) => {
         191  +
                    builder.policy_groups = Some({
         192  +
                        let mut container = Vec::new();
         193  +
                        deser.read_list(member, &mut |deser| {
         194  +
                            container.push(crate::types::PolicyGroup::deserialize(deser)?);
         195  +
                            Ok(())
         196  +
                        })?;
         197  +
                        container
         198  +
                    });
         199  +
                }
         200  +
                Some(1) => {
         201  +
                    builder.policy_users = Some({
         202  +
                        let mut container = Vec::new();
         203  +
                        deser.read_list(member, &mut |deser| {
         204  +
                            container.push(crate::types::PolicyUser::deserialize(deser)?);
         205  +
                            Ok(())
         206  +
                        })?;
         207  +
                        container
         208  +
                    });
         209  +
                }
         210  +
                Some(2) => {
         211  +
                    builder.policy_roles = Some({
         212  +
                        let mut container = Vec::new();
         213  +
                        deser.read_list(member, &mut |deser| {
         214  +
                            container.push(crate::types::PolicyRole::deserialize(deser)?);
         215  +
                            Ok(())
         216  +
                        })?;
         217  +
                        container
         218  +
                    });
         219  +
                }
         220  +
                Some(3) => {
         221  +
                    builder.is_truncated = Some(deser.read_boolean(member)?);
         222  +
                }
         223  +
                Some(4) => {
         224  +
                    builder.marker = Some(deser.read_string(member)?);
         225  +
                }
         226  +
                Some(5) => {
         227  +
                    builder._request_id = Some(deser.read_string(member)?);
         228  +
                }
         229  +
                _ => {}
         230  +
            }
         231  +
            Ok(())
         232  +
        })?;
         233  +
        Ok(builder.build())
         234  +
    }
         235  +
}
         236  +
impl ListEntitiesForPolicyOutput {
         237  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         238  +
    /// Header-bound members are read directly from headers, avoiding runtime
         239  +
    /// member iteration overhead. Body members are read via the deserializer.
         240  +
    pub fn deserialize_with_response(
         241  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         242  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         243  +
        _status: u16,
         244  +
        _body: &[u8],
  170    245   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  171    246   
        #[allow(unused_variables, unused_mut)]
  172    247   
        let mut builder = Self::builder();
         248  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         249  +
            builder._request_id = Some(val.to_string());
         250  +
        }
  173    251   
        #[allow(
  174    252   
            unused_variables,
  175    253   
            unreachable_code,
  176    254   
            clippy::single_match,
  177    255   
            clippy::match_single_binding,
  178    256   
            clippy::diverging_sub_expression
  179    257   
        )]
  180         -
        deserializer.read_struct(&LISTENTITIESFORPOLICYOUTPUT_SCHEMA, (), |_, member, deser| {
         258  +
        deserializer.read_struct(&LISTENTITIESFORPOLICYOUTPUT_SCHEMA, &mut |member, deser| {
  181    259   
            match member.member_index() {
  182    260   
                Some(0) => {
  183    261   
                    builder.policy_groups = Some({
  184         -
                        let container = if let Some(cap) = deser.container_size() {
  185         -
                            Vec::with_capacity(cap)
  186         -
                        } else {
  187         -
                            Vec::new()
  188         -
                        };
  189         -
                        deser.read_list(member, container, |mut list, deser| {
  190         -
                            list.push(crate::types::PolicyGroup::deserialize(deser)?);
  191         -
                            Ok(list)
  192         -
                        })?
         262  +
                        let mut container = Vec::new();
         263  +
                        deser.read_list(member, &mut |deser| {
         264  +
                            container.push(crate::types::PolicyGroup::deserialize(deser)?);
         265  +
                            Ok(())
         266  +
                        })?;
         267  +
                        container
  193    268   
                    });
  194    269   
                }
  195    270   
                Some(1) => {
  196    271   
                    builder.policy_users = Some({
  197         -
                        let container = if let Some(cap) = deser.container_size() {
  198         -
                            Vec::with_capacity(cap)
  199         -
                        } else {
  200         -
                            Vec::new()
  201         -
                        };
  202         -
                        deser.read_list(member, container, |mut list, deser| {
  203         -
                            list.push(crate::types::PolicyUser::deserialize(deser)?);
  204         -
                            Ok(list)
  205         -
                        })?
         272  +
                        let mut container = Vec::new();
         273  +
                        deser.read_list(member, &mut |deser| {
         274  +
                            container.push(crate::types::PolicyUser::deserialize(deser)?);
         275  +
                            Ok(())
         276  +
                        })?;
         277  +
                        container
  206    278   
                    });
  207    279   
                }
  208    280   
                Some(2) => {
  209    281   
                    builder.policy_roles = Some({
  210         -
                        let container = if let Some(cap) = deser.container_size() {
  211         -
                            Vec::with_capacity(cap)
  212         -
                        } else {
  213         -
                            Vec::new()
  214         -
                        };
  215         -
                        deser.read_list(member, container, |mut list, deser| {
  216         -
                            list.push(crate::types::PolicyRole::deserialize(deser)?);
  217         -
                            Ok(list)
  218         -
                        })?
         282  +
                        let mut container = Vec::new();
         283  +
                        deser.read_list(member, &mut |deser| {
         284  +
                            container.push(crate::types::PolicyRole::deserialize(deser)?);
         285  +
                            Ok(())
         286  +
                        })?;
         287  +
                        container
  219    288   
                    });
  220    289   
                }
  221    290   
                Some(3) => {
  222    291   
                    builder.is_truncated = Some(deser.read_boolean(member)?);
  223    292   
                }
  224    293   
                Some(4) => {
  225    294   
                    builder.marker = Some(deser.read_string(member)?);
  226    295   
                }
  227    296   
                _ => {}
  228    297   
            }

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/list_group_policies.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 `ListGroupPolicies`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListGroupPolicies;
    6      6   
impl ListGroupPolicies {
    7      7   
    /// Creates a new `ListGroupPolicies`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_group_policies::ListGroupPoliciesInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_group_policies::ListGroupPoliciesOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::list_group_policies::ListGroupPoliciesInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_group_policies::ListGroupPoliciesOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_group_policies::ListGroupPoliciesError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +177,182 @@
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct ListGroupPoliciesResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListGroupPoliciesResponseDeserializer {
  145    149   
    fn deserialize_nonstreaming(
  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_list_group_policies::de_list_group_policies_http_error(status, headers, body)
  157    162   
        } else {