AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c

Files changed:

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_delivery_channels/_describe_delivery_channels_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_delivery_channels/_describe_delivery_channels_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_organization_config_rule_statuses.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 `DescribeOrganizationConfigRuleStatuses`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeOrganizationConfigRuleStatuses;
    6      6   
impl DescribeOrganizationConfigRuleStatuses {
    7      7   
    /// Creates a new `DescribeOrganizationConfigRuleStatuses`
    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::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesOutput::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::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +257,321 @@
  144    150   
                crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct DescribeOrganizationConfigRuleStatusesResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeOrganizationConfigRuleStatusesResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159         -
        let headers = response.headers();
  160         -
        let body = response.body().bytes().expect("body loaded");
  161    166   
        #[allow(unused_mut)]
  162    167   
        let mut force_error = false;
  163    168   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164         -
        let parse_result = if !success && status != 200 || force_error {
  165         -
            crate::protocol_serde::shape_describe_organization_config_rule_statuses::de_describe_organization_config_rule_statuses_http_error(
  166         -
                status, headers, body,
  167         -
            )
         169  +
        if !success && status != 200 || force_error {
         170  +
            let headers = response.headers();
         171  +
            let body = response.body().bytes().expect("body loaded");
         172  +
            #[allow(unused_mut)]
         173  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         174  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         175  +
            })?;
         176  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         177  +
            let generic = generic_builder.build();
         178  +
            let error_code = match generic.code() {
         179  +
                ::std::option::Option::Some(code) => code,
         180  +
                ::std::option::Option::None => {
         181  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         182  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         183  +
                            crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError::unhandled(
         184  +
                                generic,
         185  +
                            ),
         186  +
                        ),
         187  +
                    ))
         188  +
                }
         189  +
            };
         190  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         191  +
            let protocol = _cfg
         192  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         193  +
                .expect("a SharedClientProtocol is required");
         194  +
            let err = match error_code {
         195  +
"InvalidLimitException" => crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError::InvalidLimitException({
         196  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidLimitException::SCHEMA, _cfg)
         197  +
                        .and_then(|mut deser| crate::types::error::InvalidLimitException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         198  +
                    {
         199  +
                        ::std::result::Result::Ok(val) => val,
         200  +
                        ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
         201  +
                    };
         202  +
                    tmp.meta = generic;
         203  +
if tmp.message.is_none() {
         204  +
                                tmp.message = _error_message;
         205  +
                            }
         206  +
tmp
         207  +
}),
         208  +
"InvalidNextTokenException" => crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError::InvalidNextTokenException({
         209  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidNextTokenException::SCHEMA, _cfg)
         210  +
                        .and_then(|mut deser| crate::types::error::InvalidNextTokenException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         211  +
                    {
         212  +
                        ::std::result::Result::Ok(val) => val,
         213  +
                        ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
         214  +
                    };
         215  +
                    tmp.meta = generic;
         216  +
if tmp.message.is_none() {
         217  +
                                tmp.message = _error_message;
         218  +
                            }
         219  +
tmp
         220  +
}),
         221  +
"NoSuchOrganizationConfigRuleException" => crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError::NoSuchOrganizationConfigRuleException({
         222  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::NoSuchOrganizationConfigRuleException::SCHEMA, _cfg)
         223  +
                        .and_then(|mut deser| crate::types::error::NoSuchOrganizationConfigRuleException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         224  +
                    {
         225  +
                        ::std::result::Result::Ok(val) => val,
         226  +
                        ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
         227  +
                    };
         228  +
                    tmp.meta = generic;
         229  +
if tmp.message.is_none() {
         230  +
                                tmp.message = _error_message;
         231  +
                            }
         232  +
tmp
         233  +
}),
         234  +
"OrganizationAccessDeniedException" => crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError::OrganizationAccessDeniedException({
         235  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::OrganizationAccessDeniedException::SCHEMA, _cfg)
         236  +
                        .and_then(|mut deser| crate::types::error::OrganizationAccessDeniedException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         237  +
                    {
         238  +
                        ::std::result::Result::Ok(val) => val,
         239  +
                        ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
         240  +
                    };
         241  +
                    tmp.meta = generic;
         242  +
if tmp.message.is_none() {
         243  +
                                tmp.message = _error_message;
         244  +
                            }
         245  +
tmp
         246  +
}),
         247  +
_ => crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesError::generic(generic)
         248  +
};
         249  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         250  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         251  +
            ))
  168    252   
        } else {
  169         -
            crate::protocol_serde::shape_describe_organization_config_rule_statuses::de_describe_organization_config_rule_statuses_http_response(
  170         -
                status, headers, body,
  171         -
            )
  172         -
        };
  173         -
        crate::protocol_serde::type_erase_result(parse_result)
         253  +
            let protocol = _cfg
         254  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         255  +
                .expect("a SharedClientProtocol is required");
         256  +
            let mut deser = protocol
         257  +
                .deserialize_response(response, DescribeOrganizationConfigRuleStatuses::OUTPUT_SCHEMA, _cfg)
         258  +
                .map_err(|e| {
         259  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         260  +
                })?;
         261  +
            let body = response.body().bytes().expect("body loaded");
         262  +
            let output = crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesOutput::deserialize_with_response(
         263  +
                    &mut *deser,
         264  +
                    response.headers(),
         265  +
                    response.status().into(),
         266  +
                    body,
         267  +
                ).map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
         268  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         269  +
        }
  174    270   
    }
  175    271   
}
  176    272   
#[derive(Debug)]
  177    273   
struct DescribeOrganizationConfigRuleStatusesRequestSerializer;
  178    274   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeOrganizationConfigRuleStatusesRequestSerializer {
  179    275   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  180    276   
    fn serialize_input(
  181    277   
        &self,
  182    278   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  183    279   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  184    280   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  185    281   
        let input = input
  186    282   
            .downcast::<crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesInput>()
  187    283   
            .expect("correct type");
  188         -
        let _header_serialization_settings = _cfg
  189         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  190         -
            .cloned()
  191         -
            .unwrap_or_default();
  192         -
        let mut request_builder = {
  193         -
            #[allow(clippy::uninlined_format_args)]
  194         -
            fn uri_base(
  195         -
                _input: &crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesInput,
  196         -
                output: &mut ::std::string::String,
  197         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  198         -
                use ::std::fmt::Write as _;
  199         -
                ::std::write!(output, "/").expect("formatting should succeed");
  200         -
                ::std::result::Result::Ok(())
  201         -
            }
  202         -
            #[allow(clippy::unnecessary_wraps)]
  203         -
            fn update_http_builder(
  204         -
                input: &crate::operation::describe_organization_config_rule_statuses::DescribeOrganizationConfigRuleStatusesInput,
  205         -
                builder: ::http_1x::request::Builder,
  206         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  207         -
                let mut uri = ::std::string::String::new();
  208         -
                uri_base(input, &mut uri)?;
  209         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  210         -
            }
  211         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  212         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  213         -
            builder = _header_serialization_settings.set_default_header(
  214         -
                builder,
  215         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  216         -
                "StarlingDoveService.DescribeOrganizationConfigRuleStatuses",
  217         -
            );
  218         -
            builder
  219         -
        };
  220         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  221         -
            crate::protocol_serde::shape_describe_organization_config_rule_statuses::ser_describe_organization_config_rule_statuses_input(&input)?,
  222         -
        );
  223         -
        if let Some(content_length) = body.content_length() {
  224         -
            let content_length = content_length.to_string();
  225         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  226         -
        }
  227         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         284  +
        let protocol = _cfg
         285  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         286  +
            .expect("a SharedClientProtocol is required");
         287  +
        let mut request = protocol
         288  +
            .serialize_request(&input, DescribeOrganizationConfigRuleStatuses::INPUT_SCHEMA, "", _cfg)
         289  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         290  +
         291  +
        return ::std::result::Result::Ok(request);
  228    292   
    }
  229    293   
}
  230    294   
#[derive(Debug)]
  231    295   
struct DescribeOrganizationConfigRuleStatusesEndpointParamsInterceptor;
  232    296   
  233    297   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeOrganizationConfigRuleStatusesEndpointParamsInterceptor {
  234    298   
    fn name(&self) -> &'static str {
  235    299   
        "DescribeOrganizationConfigRuleStatusesEndpointParamsInterceptor"
  236    300   
    }
  237    301   

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_organization_config_rule_statuses/_describe_organization_config_rule_statuses_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_organization_config_rule_statuses/_describe_organization_config_rule_statuses_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_organization_config_rules.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 `DescribeOrganizationConfigRules`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeOrganizationConfigRules;
    6      6   
impl DescribeOrganizationConfigRules {
    7      7   
    /// Creates a new `DescribeOrganizationConfigRules`
    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::describe_organization_config_rules::DescribeOrganizationConfigRulesInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesOutput::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::describe_organization_config_rules::DescribeOrganizationConfigRulesInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +255,376 @@
  144    150   
                crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct DescribeOrganizationConfigRulesResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeOrganizationConfigRulesResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159         -
        let headers = response.headers();
  160         -
        let body = response.body().bytes().expect("body loaded");
  161    166   
        #[allow(unused_mut)]
  162    167   
        let mut force_error = false;
  163    168   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164         -
        let parse_result = if !success && status != 200 || force_error {
  165         -
            crate::protocol_serde::shape_describe_organization_config_rules::de_describe_organization_config_rules_http_error(status, headers, body)
         169  +
        if !success && status != 200 || force_error {
         170  +
            let headers = response.headers();
         171  +
            let body = response.body().bytes().expect("body loaded");
         172  +
            #[allow(unused_mut)]
         173  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         174  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         175  +
            })?;
         176  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         177  +
            let generic = generic_builder.build();
         178  +
            let error_code = match generic.code() {
         179  +
                ::std::option::Option::Some(code) => code,
         180  +
                ::std::option::Option::None => {
         181  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         182  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         183  +
                            crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError::unhandled(generic),
         184  +
                        ),
         185  +
                    ))
         186  +
                }
         187  +
            };
         188  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         189  +
            let protocol = _cfg
         190  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         191  +
                .expect("a SharedClientProtocol is required");
         192  +
            let err = match error_code {
         193  +
                "InvalidLimitException" => {
         194  +
                    crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError::InvalidLimitException({
         195  +
                        let mut tmp = match protocol
         196  +
                            .deserialize_response(response, crate::types::error::InvalidLimitException::SCHEMA, _cfg)
         197  +
                            .and_then(|mut deser| {
         198  +
                                crate::types::error::InvalidLimitException::deserialize_with_response(
         199  +
                                    &mut *deser,
         200  +
                                    response.headers(),
         201  +
                                    response.status().into(),
         202  +
                                    body,
         203  +
                                )
         204  +
                            }) {
         205  +
                            ::std::result::Result::Ok(val) => val,
         206  +
                            ::std::result::Result::Err(e) => {
         207  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         208  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         209  +
                                ))
         210  +
                            }
         211  +
                        };
         212  +
                        tmp.meta = generic;
         213  +
                        if tmp.message.is_none() {
         214  +
                            tmp.message = _error_message;
         215  +
                        }
         216  +
                        tmp
         217  +
                    })
         218  +
                }
         219  +
                "InvalidNextTokenException" => {
         220  +
                    crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError::InvalidNextTokenException({
         221  +
                        let mut tmp = match protocol
         222  +
                            .deserialize_response(response, crate::types::error::InvalidNextTokenException::SCHEMA, _cfg)
         223  +
                            .and_then(|mut deser| {
         224  +
                                crate::types::error::InvalidNextTokenException::deserialize_with_response(
         225  +
                                    &mut *deser,
         226  +
                                    response.headers(),
         227  +
                                    response.status().into(),
         228  +
                                    body,
         229  +
                                )
         230  +
                            }) {
         231  +
                            ::std::result::Result::Ok(val) => val,
         232  +
                            ::std::result::Result::Err(e) => {
         233  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         234  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         235  +
                                ))
         236  +
                            }
         237  +
                        };
         238  +
                        tmp.meta = generic;
         239  +
                        if tmp.message.is_none() {
         240  +
                            tmp.message = _error_message;
         241  +
                        }
         242  +
                        tmp
         243  +
                    })
         244  +
                }
         245  +
                "NoSuchOrganizationConfigRuleException" => {
         246  +
                    crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError::NoSuchOrganizationConfigRuleException(
         247  +
                        {
         248  +
                            let mut tmp = match protocol
         249  +
                                .deserialize_response(response, crate::types::error::NoSuchOrganizationConfigRuleException::SCHEMA, _cfg)
         250  +
                                .and_then(|mut deser| {
         251  +
                                    crate::types::error::NoSuchOrganizationConfigRuleException::deserialize_with_response(
         252  +
                                        &mut *deser,
         253  +
                                        response.headers(),
         254  +
                                        response.status().into(),
         255  +
                                        body,
         256  +
                                    )
         257  +
                                }) {
         258  +
                                ::std::result::Result::Ok(val) => val,
         259  +
                                ::std::result::Result::Err(e) => {
         260  +
                                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         261  +
                                        ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         262  +
                                    ))
         263  +
                                }
         264  +
                            };
         265  +
                            tmp.meta = generic;
         266  +
                            if tmp.message.is_none() {
         267  +
                                tmp.message = _error_message;
         268  +
                            }
         269  +
                            tmp
         270  +
                        },
         271  +
                    )
         272  +
                }
         273  +
                "OrganizationAccessDeniedException" => {
         274  +
                    crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError::OrganizationAccessDeniedException({
         275  +
                        let mut tmp = match protocol
         276  +
                            .deserialize_response(response, crate::types::error::OrganizationAccessDeniedException::SCHEMA, _cfg)
         277  +
                            .and_then(|mut deser| {
         278  +
                                crate::types::error::OrganizationAccessDeniedException::deserialize_with_response(
         279  +
                                    &mut *deser,
         280  +
                                    response.headers(),
         281  +
                                    response.status().into(),
         282  +
                                    body,
         283  +
                                )
         284  +
                            }) {
         285  +
                            ::std::result::Result::Ok(val) => val,
         286  +
                            ::std::result::Result::Err(e) => {
         287  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         288  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         289  +
                                ))
         290  +
                            }
         291  +
                        };
         292  +
                        tmp.meta = generic;
         293  +
                        if tmp.message.is_none() {
         294  +
                            tmp.message = _error_message;
         295  +
                        }
         296  +
                        tmp
         297  +
                    })
         298  +
                }
         299  +
                _ => crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesError::generic(generic),
         300  +
            };
         301  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         302  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         303  +
            ))
  166    304   
        } else {
  167         -
            crate::protocol_serde::shape_describe_organization_config_rules::de_describe_organization_config_rules_http_response(
  168         -
                status, headers, body,
         305  +
            let protocol = _cfg
         306  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         307  +
                .expect("a SharedClientProtocol is required");
         308  +
            let mut deser = protocol
         309  +
                .deserialize_response(response, DescribeOrganizationConfigRules::OUTPUT_SCHEMA, _cfg)
         310  +
                .map_err(|e| {
         311  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         312  +
                })?;
         313  +
            let body = response.body().bytes().expect("body loaded");
         314  +
            let output = crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesOutput::deserialize_with_response(
         315  +
                &mut *deser,
         316  +
                response.headers(),
         317  +
                response.status().into(),
         318  +
                body,
  169    319   
            )
  170         -
        };
  171         -
        crate::protocol_serde::type_erase_result(parse_result)
         320  +
            .map_err(|e| {
         321  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         322  +
            })?;
         323  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         324  +
        }
  172    325   
    }
  173    326   
}
  174    327   
#[derive(Debug)]
  175    328   
struct DescribeOrganizationConfigRulesRequestSerializer;
  176    329   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeOrganizationConfigRulesRequestSerializer {
  177    330   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  178    331   
    fn serialize_input(
  179    332   
        &self,
  180    333   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  181    334   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  182    335   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  183    336   
        let input = input
  184    337   
            .downcast::<crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesInput>()
  185    338   
            .expect("correct type");
  186         -
        let _header_serialization_settings = _cfg
  187         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  188         -
            .cloned()
  189         -
            .unwrap_or_default();
  190         -
        let mut request_builder = {
  191         -
            #[allow(clippy::uninlined_format_args)]
  192         -
            fn uri_base(
  193         -
                _input: &crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesInput,
  194         -
                output: &mut ::std::string::String,
  195         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  196         -
                use ::std::fmt::Write as _;
  197         -
                ::std::write!(output, "/").expect("formatting should succeed");
  198         -
                ::std::result::Result::Ok(())
  199         -
            }
  200         -
            #[allow(clippy::unnecessary_wraps)]
  201         -
            fn update_http_builder(
  202         -
                input: &crate::operation::describe_organization_config_rules::DescribeOrganizationConfigRulesInput,
  203         -
                builder: ::http_1x::request::Builder,
  204         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  205         -
                let mut uri = ::std::string::String::new();
  206         -
                uri_base(input, &mut uri)?;
  207         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  208         -
            }
  209         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  210         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  211         -
            builder = _header_serialization_settings.set_default_header(
  212         -
                builder,
  213         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  214         -
                "StarlingDoveService.DescribeOrganizationConfigRules",
  215         -
            );
  216         -
            builder
  217         -
        };
  218         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  219         -
            crate::protocol_serde::shape_describe_organization_config_rules::ser_describe_organization_config_rules_input(&input)?,
  220         -
        );
  221         -
        if let Some(content_length) = body.content_length() {
  222         -
            let content_length = content_length.to_string();
  223         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  224         -
        }
  225         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         339  +
        let protocol = _cfg
         340  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         341  +
            .expect("a SharedClientProtocol is required");
         342  +
        let mut request = protocol
         343  +
            .serialize_request(&input, DescribeOrganizationConfigRules::INPUT_SCHEMA, "", _cfg)
         344  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         345  +
         346  +
        return ::std::result::Result::Ok(request);
  226    347   
    }
  227    348   
}
  228    349   
#[derive(Debug)]
  229    350   
struct DescribeOrganizationConfigRulesEndpointParamsInterceptor;
  230    351   
  231    352   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeOrganizationConfigRulesEndpointParamsInterceptor {
  232    353   
    fn name(&self) -> &'static str {
  233    354   
        "DescribeOrganizationConfigRulesEndpointParamsInterceptor"
  234    355   
    }
  235    356   

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_organization_config_rules/_describe_organization_config_rules_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_organization_config_rules/_describe_organization_config_rules_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_organization_conformance_pack_statuses.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 `DescribeOrganizationConformancePackStatuses`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeOrganizationConformancePackStatuses;
    6      6   
impl DescribeOrganizationConformancePackStatuses {
    7      7   
    /// Creates a new `DescribeOrganizationConformancePackStatuses`
    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::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesOutput::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::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -125,131 +256,314 @@
  145    151   
                    crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError,
  146    152   
                >::new());
  147    153   
  148    154   
        ::std::borrow::Cow::Owned(rcb)
  149    155   
    }
  150    156   
}
  151    157   
  152    158   
#[derive(Debug)]
  153    159   
struct DescribeOrganizationConformancePackStatusesResponseDeserializer;
  154    160   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeOrganizationConformancePackStatusesResponseDeserializer {
  155         -
    fn deserialize_nonstreaming(
         161  +
    fn deserialize_nonstreaming_with_config(
  156    162   
        &self,
  157    163   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         164  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  158    165   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  159    166   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  160         -
        let headers = response.headers();
  161         -
        let body = response.body().bytes().expect("body loaded");
  162    167   
        #[allow(unused_mut)]
  163    168   
        let mut force_error = false;
  164    169   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  165         -
        let parse_result = if !success && status != 200 || force_error {
  166         -
            crate::protocol_serde::shape_describe_organization_conformance_pack_statuses::de_describe_organization_conformance_pack_statuses_http_error(status, headers, body)
         170  +
        if !success && status != 200 || force_error {
         171  +
            let headers = response.headers();
         172  +
            let body = response.body().bytes().expect("body loaded");
         173  +
            #[allow(unused_mut)]
         174  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         175  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         176  +
            })?;
         177  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         178  +
            let generic = generic_builder.build();
         179  +
            let error_code = match generic.code() {
         180  +
                    ::std::option::Option::Some(code) => code,
         181  +
                    ::std::option::Option::None => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError::unhandled(generic)))),
         182  +
                };
         183  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         184  +
            let protocol = _cfg
         185  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         186  +
                .expect("a SharedClientProtocol is required");
         187  +
            let err = match error_code {
         188  +
"InvalidLimitException" => crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError::InvalidLimitException({
         189  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidLimitException::SCHEMA, _cfg)
         190  +
                        .and_then(|mut deser| crate::types::error::InvalidLimitException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         191  +
                    {
         192  +
                        ::std::result::Result::Ok(val) => val,
         193  +
                        ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
         194  +
                    };
         195  +
                    tmp.meta = generic;
         196  +
if tmp.message.is_none() {
         197  +
                                tmp.message = _error_message;
         198  +
                            }
         199  +
tmp
         200  +
}),
         201  +
"InvalidNextTokenException" => crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError::InvalidNextTokenException({
         202  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidNextTokenException::SCHEMA, _cfg)
         203  +
                        .and_then(|mut deser| crate::types::error::InvalidNextTokenException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         204  +
                    {
         205  +
                        ::std::result::Result::Ok(val) => val,
         206  +
                        ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
         207  +
                    };
         208  +
                    tmp.meta = generic;
         209  +
if tmp.message.is_none() {
         210  +
                                tmp.message = _error_message;
         211  +
                            }
         212  +
tmp
         213  +
}),
         214  +
"NoSuchOrganizationConformancePackException" => crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError::NoSuchOrganizationConformancePackException({
         215  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::NoSuchOrganizationConformancePackException::SCHEMA, _cfg)
         216  +
                        .and_then(|mut deser| crate::types::error::NoSuchOrganizationConformancePackException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         217  +
                    {
         218  +
                        ::std::result::Result::Ok(val) => val,
         219  +
                        ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
         220  +
                    };
         221  +
                    tmp.meta = generic;
         222  +
if tmp.message.is_none() {
         223  +
                                tmp.message = _error_message;
         224  +
                            }
         225  +
tmp
         226  +
}),
         227  +
"OrganizationAccessDeniedException" => crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError::OrganizationAccessDeniedException({
         228  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::OrganizationAccessDeniedException::SCHEMA, _cfg)
         229  +
                        .and_then(|mut deser| crate::types::error::OrganizationAccessDeniedException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         230  +
                    {
         231  +
                        ::std::result::Result::Ok(val) => val,
         232  +
                        ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
         233  +
                    };
         234  +
                    tmp.meta = generic;
         235  +
if tmp.message.is_none() {
         236  +
                                tmp.message = _error_message;
         237  +
                            }
         238  +
tmp
         239  +
}),
         240  +
_ => crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesError::generic(generic)
         241  +
};
         242  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         243  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         244  +
            ))
  167    245   
        } else {
  168         -
            crate::protocol_serde::shape_describe_organization_conformance_pack_statuses::de_describe_organization_conformance_pack_statuses_http_response(status, headers, body)
  169         -
        };
  170         -
        crate::protocol_serde::type_erase_result(parse_result)
         246  +
            let protocol = _cfg
         247  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         248  +
                .expect("a SharedClientProtocol is required");
         249  +
            let mut deser = protocol
         250  +
                .deserialize_response(response, DescribeOrganizationConformancePackStatuses::OUTPUT_SCHEMA, _cfg)
         251  +
                .map_err(|e| {
         252  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         253  +
                })?;
         254  +
            let body = response.body().bytes().expect("body loaded");
         255  +
            let output = crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesOutput::deserialize_with_response(
         256  +
                    &mut *deser,
         257  +
                    response.headers(),
         258  +
                    response.status().into(),
         259  +
                    body,
         260  +
                ).map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
         261  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         262  +
        }
  171    263   
    }
  172    264   
}
  173    265   
#[derive(Debug)]
  174    266   
struct DescribeOrganizationConformancePackStatusesRequestSerializer;
  175    267   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeOrganizationConformancePackStatusesRequestSerializer {
  176    268   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  177    269   
    fn serialize_input(
  178    270   
        &self,
  179    271   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  180    272   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  181    273   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  182    274   
        let input = input
  183    275   
            .downcast::<crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesInput>()
  184    276   
            .expect("correct type");
  185         -
        let _header_serialization_settings = _cfg
  186         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  187         -
            .cloned()
  188         -
            .unwrap_or_default();
  189         -
        let mut request_builder = {
  190         -
            #[allow(clippy::uninlined_format_args)]
  191         -
            fn uri_base(
  192         -
                _input: &crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesInput,
  193         -
                output: &mut ::std::string::String,
  194         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  195         -
                use ::std::fmt::Write as _;
  196         -
                ::std::write!(output, "/").expect("formatting should succeed");
  197         -
                ::std::result::Result::Ok(())
  198         -
            }
  199         -
            #[allow(clippy::unnecessary_wraps)]
  200         -
            fn update_http_builder(
  201         -
                input: &crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesInput,
  202         -
                builder: ::http_1x::request::Builder,
  203         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  204         -
                let mut uri = ::std::string::String::new();
  205         -
                uri_base(input, &mut uri)?;
  206         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  207         -
            }
  208         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  209         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  210         -
            builder = _header_serialization_settings.set_default_header(
  211         -
                builder,
  212         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  213         -
                "StarlingDoveService.DescribeOrganizationConformancePackStatuses",
  214         -
            );
  215         -
            builder
  216         -
        };
  217         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  218         -
            crate::protocol_serde::shape_describe_organization_conformance_pack_statuses::ser_describe_organization_conformance_pack_statuses_input(
  219         -
                &input,
  220         -
            )?,
  221         -
        );
  222         -
        if let Some(content_length) = body.content_length() {
  223         -
            let content_length = content_length.to_string();
  224         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  225         -
        }
  226         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         277  +
        let protocol = _cfg
         278  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         279  +
            .expect("a SharedClientProtocol is required");
         280  +
        let mut request = protocol
         281  +
            .serialize_request(&input, DescribeOrganizationConformancePackStatuses::INPUT_SCHEMA, "", _cfg)
         282  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         283  +
         284  +
        return ::std::result::Result::Ok(request);
  227    285   
    }
  228    286   
}
  229    287   
#[derive(Debug)]
  230    288   
struct DescribeOrganizationConformancePackStatusesEndpointParamsInterceptor;
  231    289   
  232    290   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeOrganizationConformancePackStatusesEndpointParamsInterceptor {
  233    291   
    fn name(&self) -> &'static str {
  234    292   
        "DescribeOrganizationConformancePackStatusesEndpointParamsInterceptor"
  235    293   
    }
  236    294   

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_organization_conformance_pack_statuses/_describe_organization_conformance_pack_statuses_input.rs

@@ -12,12 +177,178 @@
   32     32   
    "DescribeOrganizationConformancePackStatusesInput",
   33     33   
);
   34     34   
static DESCRIBEORGANIZATIONCONFORMANCEPACKSTATUSESINPUT_MEMBER_ORGANIZATION_CONFORMANCE_PACK_NAMES: ::aws_smithy_schema::Schema =
   35     35   
    ::aws_smithy_schema::Schema::new_member(
   36     36   
        ::aws_smithy_schema::ShapeId::from_static(
   37     37   
            "com.amazonaws.configservice.synthetic#DescribeOrganizationConformancePackStatusesInput$OrganizationConformancePackNames",
   38     38   
            "com.amazonaws.configservice.synthetic",
   39     39   
            "DescribeOrganizationConformancePackStatusesInput",
   40     40   
        ),
   41     41   
        ::aws_smithy_schema::ShapeType::List,
   42         -
        "organization_conformance_pack_names",
          42  +
        "OrganizationConformancePackNames",
   43     43   
        0,
   44     44   
    );
   45     45   
static DESCRIBEORGANIZATIONCONFORMANCEPACKSTATUSESINPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   46     46   
    ::aws_smithy_schema::ShapeId::from_static(
   47     47   
        "com.amazonaws.configservice.synthetic#DescribeOrganizationConformancePackStatusesInput$Limit",
   48     48   
        "com.amazonaws.configservice.synthetic",
   49     49   
        "DescribeOrganizationConformancePackStatusesInput",
   50     50   
    ),
   51     51   
    ::aws_smithy_schema::ShapeType::Integer,
   52         -
    "limit",
          52  +
    "Limit",
   53     53   
    1,
   54     54   
);
   55     55   
static DESCRIBEORGANIZATIONCONFORMANCEPACKSTATUSESINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.configservice.synthetic#DescribeOrganizationConformancePackStatusesInput$NextToken",
   58     58   
        "com.amazonaws.configservice.synthetic",
   59     59   
        "DescribeOrganizationConformancePackStatusesInput",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::String,
   62         -
    "next_token",
          62  +
    "NextToken",
   63     63   
    2,
   64     64   
);
   65     65   
static DESCRIBEORGANIZATIONCONFORMANCEPACKSTATUSESINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   66     66   
    DESCRIBEORGANIZATIONCONFORMANCEPACKSTATUSESINPUT_SCHEMA_ID,
   67     67   
    ::aws_smithy_schema::ShapeType::Structure,
   68     68   
    &[
   69     69   
        &DESCRIBEORGANIZATIONCONFORMANCEPACKSTATUSESINPUT_MEMBER_ORGANIZATION_CONFORMANCE_PACK_NAMES,
   70     70   
        &DESCRIBEORGANIZATIONCONFORMANCEPACKSTATUSESINPUT_MEMBER_LIMIT,
   71     71   
        &DESCRIBEORGANIZATIONCONFORMANCEPACKSTATUSESINPUT_MEMBER_NEXT_TOKEN,
   72     72   
    ],
   73     73   
);
   74     74   
impl DescribeOrganizationConformancePackStatusesInput {
   75     75   
    /// The schema for this shape.
   76     76   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEORGANIZATIONCONFORMANCEPACKSTATUSESINPUT_SCHEMA;
   77     77   
}
   78     78   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeOrganizationConformancePackStatusesInput {
   79     79   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   80     80   
    fn serialize_members(
   81     81   
        &self,
   82     82   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   83     83   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   84     84   
        if let Some(ref val) = self.organization_conformance_pack_names {
   85     85   
            ser.write_list(
   86     86   
                &DESCRIBEORGANIZATIONCONFORMANCEPACKSTATUSESINPUT_MEMBER_ORGANIZATION_CONFORMANCE_PACK_NAMES,
   87     87   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   88     88   
                    for item in val {
   89     89   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
   90     90   
                    }
   91     91   
                    Ok(())
   92     92   
                },
   93     93   
            )?;
   94     94   
        }
   95     95   
        if let Some(ref val) = self.limit {
   96     96   
            ser.write_integer(&DESCRIBEORGANIZATIONCONFORMANCEPACKSTATUSESINPUT_MEMBER_LIMIT, *val)?;
   97     97   
        }
   98     98   
        if let Some(ref val) = self.next_token {
   99     99   
            ser.write_string(&DESCRIBEORGANIZATIONCONFORMANCEPACKSTATUSESINPUT_MEMBER_NEXT_TOKEN, val)?;
  100    100   
        }
  101    101   
        Ok(())
  102    102   
    }
  103    103   
}
  104    104   
impl DescribeOrganizationConformancePackStatusesInput {
  105    105   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  106         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  107         -
        deserializer: &mut D,
         106  +
    pub fn deserialize(
         107  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  108    108   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  109    109   
        #[allow(unused_variables, unused_mut)]
  110    110   
        let mut builder = Self::builder();
  111    111   
        #[allow(
  112    112   
            unused_variables,
  113    113   
            unreachable_code,
  114    114   
            clippy::single_match,
  115    115   
            clippy::match_single_binding,
  116    116   
            clippy::diverging_sub_expression
  117    117   
        )]
  118         -
        deserializer.read_struct(&DESCRIBEORGANIZATIONCONFORMANCEPACKSTATUSESINPUT_SCHEMA, (), |_, member, deser| {
         118  +
        deserializer.read_struct(&DESCRIBEORGANIZATIONCONFORMANCEPACKSTATUSESINPUT_SCHEMA, &mut |member, deser| {
  119    119   
            match member.member_index() {
  120    120   
                Some(0) => {
  121         -
                    builder.organization_conformance_pack_names = Some({
  122         -
                        let container = if let Some(cap) = deser.container_size() {
  123         -
                            Vec::with_capacity(cap)
  124         -
                        } else {
  125         -
                            Vec::new()
  126         -
                        };
  127         -
                        deser.read_list(member, container, |mut list, deser| {
  128         -
                            list.push(deser.read_string(member)?);
  129         -
                            Ok(list)
  130         -
                        })?
  131         -
                    });
         121  +
                    builder.organization_conformance_pack_names = Some(deser.read_string_list(member)?);
  132    122   
                }
  133    123   
                Some(1) => {
  134    124   
                    builder.limit = Some(deser.read_integer(member)?);
  135    125   
                }
  136    126   
                Some(2) => {
  137    127   
                    builder.next_token = Some(deser.read_string(member)?);
  138    128   
                }
  139    129   
                _ => {}
  140    130   
            }
  141    131   
            Ok(())
  142    132   
        })?;
  143    133   
        builder
  144    134   
            .build()
  145    135   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  146    136   
    }
  147    137   
}
         138  +
impl DescribeOrganizationConformancePackStatusesInput {
         139  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         140  +
    pub fn deserialize_with_response(
         141  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         142  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         143  +
        _status: u16,
         144  +
        _body: &[u8],
         145  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         146  +
        Self::deserialize(deserializer)
         147  +
    }
         148  +
}
  148    149   
impl DescribeOrganizationConformancePackStatusesInput {
  149    150   
    /// Creates a new builder-style object to manufacture [`DescribeOrganizationConformancePackStatusesInput`](crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesInput).
  150    151   
    pub fn builder(
  151    152   
    ) -> crate::operation::describe_organization_conformance_pack_statuses::builders::DescribeOrganizationConformancePackStatusesInputBuilder {
  152    153   
        crate::operation::describe_organization_conformance_pack_statuses::builders::DescribeOrganizationConformancePackStatusesInputBuilder::default(
  153    154   
        )
  154    155   
    }
  155    156   
}
  156    157   
  157    158   
/// A builder for [`DescribeOrganizationConformancePackStatusesInput`](crate::operation::describe_organization_conformance_pack_statuses::DescribeOrganizationConformancePackStatusesInput).

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_organization_conformance_pack_statuses/_describe_organization_conformance_pack_statuses_output.rs

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