AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_compliance_by_resource/_describe_compliance_by_resource_input.rs

@@ -24,24 +223,231 @@
   44     44   
    "com.amazonaws.configservice.synthetic",
   45     45   
    "DescribeComplianceByResourceInput",
   46     46   
);
   47     47   
static DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_RESOURCE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   48     48   
    ::aws_smithy_schema::ShapeId::from_static(
   49     49   
        "com.amazonaws.configservice.synthetic#DescribeComplianceByResourceInput$ResourceType",
   50     50   
        "com.amazonaws.configservice.synthetic",
   51     51   
        "DescribeComplianceByResourceInput",
   52     52   
    ),
   53     53   
    ::aws_smithy_schema::ShapeType::String,
   54         -
    "resource_type",
          54  +
    "ResourceType",
   55     55   
    0,
   56     56   
);
   57     57   
static DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_RESOURCE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   58     58   
    ::aws_smithy_schema::ShapeId::from_static(
   59     59   
        "com.amazonaws.configservice.synthetic#DescribeComplianceByResourceInput$ResourceId",
   60     60   
        "com.amazonaws.configservice.synthetic",
   61     61   
        "DescribeComplianceByResourceInput",
   62     62   
    ),
   63     63   
    ::aws_smithy_schema::ShapeType::String,
   64         -
    "resource_id",
          64  +
    "ResourceId",
   65     65   
    1,
   66     66   
);
   67     67   
static DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_COMPLIANCE_TYPES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   68     68   
    ::aws_smithy_schema::ShapeId::from_static(
   69     69   
        "com.amazonaws.configservice.synthetic#DescribeComplianceByResourceInput$ComplianceTypes",
   70     70   
        "com.amazonaws.configservice.synthetic",
   71     71   
        "DescribeComplianceByResourceInput",
   72     72   
    ),
   73     73   
    ::aws_smithy_schema::ShapeType::List,
   74         -
    "compliance_types",
          74  +
    "ComplianceTypes",
   75     75   
    2,
   76     76   
);
   77     77   
static DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.configservice.synthetic#DescribeComplianceByResourceInput$Limit",
   80     80   
        "com.amazonaws.configservice.synthetic",
   81     81   
        "DescribeComplianceByResourceInput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::Integer,
   84         -
    "limit",
          84  +
    "Limit",
   85     85   
    3,
   86     86   
);
   87     87   
static DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.configservice.synthetic#DescribeComplianceByResourceInput$NextToken",
   90     90   
        "com.amazonaws.configservice.synthetic",
   91     91   
        "DescribeComplianceByResourceInput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::String,
   94         -
    "next_token",
          94  +
    "NextToken",
   95     95   
    4,
   96     96   
);
   97     97   
static DESCRIBECOMPLIANCEBYRESOURCEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   98     98   
    DESCRIBECOMPLIANCEBYRESOURCEINPUT_SCHEMA_ID,
   99     99   
    ::aws_smithy_schema::ShapeType::Structure,
  100    100   
    &[
  101    101   
        &DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_RESOURCE_TYPE,
  102    102   
        &DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_RESOURCE_ID,
  103    103   
        &DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_COMPLIANCE_TYPES,
  104    104   
        &DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_LIMIT,
  105    105   
        &DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_NEXT_TOKEN,
  106    106   
    ],
  107    107   
);
  108    108   
impl DescribeComplianceByResourceInput {
  109    109   
    /// The schema for this shape.
  110    110   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBECOMPLIANCEBYRESOURCEINPUT_SCHEMA;
  111    111   
}
  112    112   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeComplianceByResourceInput {
  113    113   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  114    114   
    fn serialize_members(
  115    115   
        &self,
  116    116   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  117    117   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  118    118   
        if let Some(ref val) = self.resource_type {
  119    119   
            ser.write_string(&DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_RESOURCE_TYPE, val)?;
  120    120   
        }
  121    121   
        if let Some(ref val) = self.resource_id {
  122    122   
            ser.write_string(&DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_RESOURCE_ID, val)?;
  123    123   
        }
  124    124   
        if let Some(ref val) = self.compliance_types {
  125    125   
            ser.write_list(
  126    126   
                &DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_COMPLIANCE_TYPES,
  127    127   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  128    128   
                    for item in val {
  129    129   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item.as_str())?;
  130    130   
                    }
  131    131   
                    Ok(())
  132    132   
                },
  133    133   
            )?;
  134    134   
        }
  135    135   
        if let Some(ref val) = self.limit {
  136    136   
            ser.write_integer(&DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_LIMIT, *val)?;
  137    137   
        }
  138    138   
        if let Some(ref val) = self.next_token {
  139    139   
            ser.write_string(&DESCRIBECOMPLIANCEBYRESOURCEINPUT_MEMBER_NEXT_TOKEN, val)?;
  140    140   
        }
  141    141   
        Ok(())
  142    142   
    }
  143    143   
}
  144    144   
impl DescribeComplianceByResourceInput {
  145    145   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  146         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  147         -
        deserializer: &mut D,
         146  +
    pub fn deserialize(
         147  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  148    148   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  149    149   
        #[allow(unused_variables, unused_mut)]
  150    150   
        let mut builder = Self::builder();
  151    151   
        #[allow(
  152    152   
            unused_variables,
  153    153   
            unreachable_code,
  154    154   
            clippy::single_match,
  155    155   
            clippy::match_single_binding,
  156    156   
            clippy::diverging_sub_expression
  157    157   
        )]
  158         -
        deserializer.read_struct(&DESCRIBECOMPLIANCEBYRESOURCEINPUT_SCHEMA, (), |_, member, deser| {
         158  +
        deserializer.read_struct(&DESCRIBECOMPLIANCEBYRESOURCEINPUT_SCHEMA, &mut |member, deser| {
  159    159   
            match member.member_index() {
  160    160   
                Some(0) => {
  161    161   
                    builder.resource_type = Some(deser.read_string(member)?);
  162    162   
                }
  163    163   
                Some(1) => {
  164    164   
                    builder.resource_id = Some(deser.read_string(member)?);
  165    165   
                }
  166    166   
                Some(2) => {
  167    167   
                    builder.compliance_types = Some({
  168         -
                        let container = if let Some(cap) = deser.container_size() {
  169         -
                            Vec::with_capacity(cap)
  170         -
                        } else {
  171         -
                            Vec::new()
  172         -
                        };
  173         -
                        deser.read_list(member, container, |mut list, deser| {
  174         -
                            list.push(crate::types::ComplianceType::from(deser.read_string(member)?.as_str()));
  175         -
                            Ok(list)
  176         -
                        })?
         168  +
                        let mut container = Vec::new();
         169  +
                        deser.read_list(member, &mut |deser| {
         170  +
                            container.push(crate::types::ComplianceType::from(deser.read_string(member)?.as_str()));
         171  +
                            Ok(())
         172  +
                        })?;
         173  +
                        container
  177    174   
                    });
  178    175   
                }
  179    176   
                Some(3) => {
  180    177   
                    builder.limit = Some(deser.read_integer(member)?);
  181    178   
                }
  182    179   
                Some(4) => {
  183    180   
                    builder.next_token = Some(deser.read_string(member)?);
  184    181   
                }
  185    182   
                _ => {}
  186    183   
            }
  187    184   
            Ok(())
  188    185   
        })?;
  189    186   
        builder
  190    187   
            .build()
  191    188   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  192    189   
    }
  193    190   
}
         191  +
impl DescribeComplianceByResourceInput {
         192  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         193  +
    pub fn deserialize_with_response(
         194  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         195  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         196  +
        _status: u16,
         197  +
        _body: &[u8],
         198  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         199  +
        Self::deserialize(deserializer)
         200  +
    }
         201  +
}
  194    202   
impl DescribeComplianceByResourceInput {
  195    203   
    /// Creates a new builder-style object to manufacture [`DescribeComplianceByResourceInput`](crate::operation::describe_compliance_by_resource::DescribeComplianceByResourceInput).
  196    204   
    pub fn builder() -> crate::operation::describe_compliance_by_resource::builders::DescribeComplianceByResourceInputBuilder {
  197    205   
        crate::operation::describe_compliance_by_resource::builders::DescribeComplianceByResourceInputBuilder::default()
  198    206   
    }
  199    207   
}
  200    208   
  201    209   
/// A builder for [`DescribeComplianceByResourceInput`](crate::operation::describe_compliance_by_resource::DescribeComplianceByResourceInput).
  202    210   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  203    211   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_compliance_by_resource/_describe_compliance_by_resource_output.rs

@@ -7,7 +141,193 @@
   27     27   
    "com.amazonaws.configservice.synthetic",
   28     28   
    "DescribeComplianceByResourceOutput",
   29     29   
);
   30     30   
static DESCRIBECOMPLIANCEBYRESOURCEOUTPUT_MEMBER_COMPLIANCE_BY_RESOURCES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static(
   32     32   
        "com.amazonaws.configservice.synthetic#DescribeComplianceByResourceOutput$ComplianceByResources",
   33     33   
        "com.amazonaws.configservice.synthetic",
   34     34   
        "DescribeComplianceByResourceOutput",
   35     35   
    ),
   36     36   
    ::aws_smithy_schema::ShapeType::List,
   37         -
    "compliance_by_resources",
          37  +
    "ComplianceByResources",
   38     38   
    0,
   39     39   
);
   40     40   
static DESCRIBECOMPLIANCEBYRESOURCEOUTPUT_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#DescribeComplianceByResourceOutput$NextToken",
   43     43   
        "com.amazonaws.configservice.synthetic",
   44     44   
        "DescribeComplianceByResourceOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::String,
   47         -
    "next_token",
          47  +
    "NextToken",
   48     48   
    1,
   49     49   
);
          50  +
static DESCRIBECOMPLIANCEBYRESOURCEOUTPUT_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 DESCRIBECOMPLIANCEBYRESOURCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   51     58   
    DESCRIBECOMPLIANCEBYRESOURCEOUTPUT_SCHEMA_ID,
   52     59   
    ::aws_smithy_schema::ShapeType::Structure,
   53     60   
    &[
   54     61   
        &DESCRIBECOMPLIANCEBYRESOURCEOUTPUT_MEMBER_COMPLIANCE_BY_RESOURCES,
   55     62   
        &DESCRIBECOMPLIANCEBYRESOURCEOUTPUT_MEMBER_NEXT_TOKEN,
          63  +
        &DESCRIBECOMPLIANCEBYRESOURCEOUTPUT_MEMBER__REQUEST_ID,
   56     64   
    ],
   57     65   
);
   58     66   
impl DescribeComplianceByResourceOutput {
   59     67   
    /// The schema for this shape.
   60     68   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBECOMPLIANCEBYRESOURCEOUTPUT_SCHEMA;
   61     69   
}
   62     70   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeComplianceByResourceOutput {
   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.compliance_by_resources {
   69     77   
            ser.write_list(
   70     78   
                &DESCRIBECOMPLIANCEBYRESOURCEOUTPUT_MEMBER_COMPLIANCE_BY_RESOURCES,
   71     79   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   72     80   
                    for item in val {
   73     81   
                        ser.write_struct(crate::types::ComplianceByResource::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(&DESCRIBECOMPLIANCEBYRESOURCEOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   81     89   
        }
   82     90   
        Ok(())
   83     91   
    }
   84     92   
}
   85     93   
impl DescribeComplianceByResourceOutput {
   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(&DESCRIBECOMPLIANCEBYRESOURCEOUTPUT_SCHEMA, (), |_, member, deser| {
         107  +
        deserializer.read_struct(&DESCRIBECOMPLIANCEBYRESOURCEOUTPUT_SCHEMA, &mut |member, deser| {
  100    108   
            match member.member_index() {
  101    109   
                Some(0) => {
  102    110   
                    builder.compliance_by_resources = 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::ComplianceByResource::deserialize(deser)?);
  110         -
                            Ok(list)
  111         -
                        })?
         111  +
                        let mut container = Vec::new();
         112  +
                        deser.read_list(member, &mut |deser| {
         113  +
                            container.push(crate::types::ComplianceByResource::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 DescribeComplianceByResourceOutput {
         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(&DESCRIBECOMPLIANCEBYRESOURCEOUTPUT_SCHEMA, &mut |member, deser| {
         155  +
            match member.member_index() {
         156  +
                Some(0) => {
         157  +
                    builder.compliance_by_resources = Some({
         158  +
                        let mut container = Vec::new();
         159  +
                        deser.read_list(member, &mut |deser| {
         160  +
                            container.push(crate::types::ComplianceByResource::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_config_rule_evaluation_status.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 `DescribeConfigRuleEvaluationStatus`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeConfigRuleEvaluationStatus;
    6      6   
impl DescribeConfigRuleEvaluationStatus {
    7      7   
    /// Creates a new `DescribeConfigRuleEvaluationStatus`
    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_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusOutput::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_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +257,351 @@
  144    150   
                crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError,
  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 DescribeConfigRuleEvaluationStatusResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeConfigRuleEvaluationStatusResponseDeserializer {
  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_config_rule_evaluation_status::de_describe_config_rule_evaluation_status_http_error(
  166         -
                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_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError::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  +
                "InvalidNextTokenException" => {
         194  +
                    crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError::InvalidNextTokenException({
         195  +
                        let mut tmp = match protocol
         196  +
                            .deserialize_response(response, crate::types::error::InvalidNextTokenException::SCHEMA, _cfg)
         197  +
                            .and_then(|mut deser| {
         198  +
                                crate::types::error::InvalidNextTokenException::deserialize_with_response(
         199  +
                                    &mut *deser,
         200  +
                                    response.headers(),
         201  +
                                    response.status().into(),
         202  +
                                    body,
  167    203   
                                )
  168         -
        } else {
  169         -
            crate::protocol_serde::shape_describe_config_rule_evaluation_status::de_describe_config_rule_evaluation_status_http_response(
  170         -
                status, headers, body,
         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  +
                "InvalidParameterValueException" => {
         220  +
                    crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError::InvalidParameterValueException(
         221  +
                        {
         222  +
                            let mut tmp = match protocol
         223  +
                                .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         224  +
                                .and_then(|mut deser| {
         225  +
                                    crate::types::error::InvalidParameterValueException::deserialize_with_response(
         226  +
                                        &mut *deser,
         227  +
                                        response.headers(),
         228  +
                                        response.status().into(),
         229  +
                                        body,
         230  +
                                    )
         231  +
                                }) {
         232  +
                                ::std::result::Result::Ok(val) => val,
         233  +
                                ::std::result::Result::Err(e) => {
         234  +
                                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         235  +
                                        ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         236  +
                                    ))
         237  +
                                }
         238  +
                            };
         239  +
                            tmp.meta = generic;
         240  +
                            if tmp.message.is_none() {
         241  +
                                tmp.message = _error_message;
         242  +
                            }
         243  +
                            tmp
         244  +
                        },
         245  +
                    )
         246  +
                }
         247  +
                "NoSuchConfigRuleException" => {
         248  +
                    crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError::NoSuchConfigRuleException({
         249  +
                        let mut tmp = match protocol
         250  +
                            .deserialize_response(response, crate::types::error::NoSuchConfigRuleException::SCHEMA, _cfg)
         251  +
                            .and_then(|mut deser| {
         252  +
                                crate::types::error::NoSuchConfigRuleException::deserialize_with_response(
         253  +
                                    &mut *deser,
         254  +
                                    response.headers(),
         255  +
                                    response.status().into(),
         256  +
                                    body,
  171    257   
                                )
         258  +
                            }) {
         259  +
                            ::std::result::Result::Ok(val) => val,
         260  +
                            ::std::result::Result::Err(e) => {
         261  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         262  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         263  +
                                ))
         264  +
                            }
  172    265   
                        };
  173         -
        crate::protocol_serde::type_erase_result(parse_result)
         266  +
                        tmp.meta = generic;
         267  +
                        if tmp.message.is_none() {
         268  +
                            tmp.message = _error_message;
         269  +
                        }
         270  +
                        tmp
         271  +
                    })
         272  +
                }
         273  +
                _ => crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusError::generic(generic),
         274  +
            };
         275  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         276  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         277  +
            ))
         278  +
        } else {
         279  +
            let protocol = _cfg
         280  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         281  +
                .expect("a SharedClientProtocol is required");
         282  +
            let mut deser = protocol
         283  +
                .deserialize_response(response, DescribeConfigRuleEvaluationStatus::OUTPUT_SCHEMA, _cfg)
         284  +
                .map_err(|e| {
         285  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         286  +
                })?;
         287  +
            let body = response.body().bytes().expect("body loaded");
         288  +
            let output =
         289  +
                crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusOutput::deserialize_with_response(
         290  +
                    &mut *deser,
         291  +
                    response.headers(),
         292  +
                    response.status().into(),
         293  +
                    body,
         294  +
                )
         295  +
                .map_err(|e| {
         296  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         297  +
                })?;
         298  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         299  +
        }
  174    300   
    }
  175    301   
}
  176    302   
#[derive(Debug)]
  177    303   
struct DescribeConfigRuleEvaluationStatusRequestSerializer;
  178    304   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeConfigRuleEvaluationStatusRequestSerializer {
  179    305   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  180    306   
    fn serialize_input(
  181    307   
        &self,
  182    308   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  183    309   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  184    310   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  185    311   
        let input = input
  186    312   
            .downcast::<crate::operation::describe_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusInput>()
  187    313   
            .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_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusInput,
  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_config_rule_evaluation_status::DescribeConfigRuleEvaluationStatusInput,
  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.DescribeConfigRuleEvaluationStatus",
  217         -
            );
  218         -
            builder
  219         -
        };
  220         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  221         -
            crate::protocol_serde::shape_describe_config_rule_evaluation_status::ser_describe_config_rule_evaluation_status_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())
         314  +
        let protocol = _cfg
         315  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         316  +
            .expect("a SharedClientProtocol is required");
         317  +
        let mut request = protocol
         318  +
            .serialize_request(&input, DescribeConfigRuleEvaluationStatus::INPUT_SCHEMA, "", _cfg)
         319  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         320  +
         321  +
        return ::std::result::Result::Ok(request);
  228    322   
    }
  229    323   
}
  230    324   
#[derive(Debug)]
  231    325   
struct DescribeConfigRuleEvaluationStatusEndpointParamsInterceptor;
  232    326   
  233    327   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeConfigRuleEvaluationStatusEndpointParamsInterceptor {
  234    328   
    fn name(&self) -> &'static str {
  235    329   
        "DescribeConfigRuleEvaluationStatusEndpointParamsInterceptor"
  236    330   
    }
  237    331   

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_config_rule_evaluation_status/_describe_config_rule_evaluation_status_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_config_rule_evaluation_status/_describe_config_rule_evaluation_status_output.rs

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

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

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_config_rules/_describe_config_rules_input.rs

@@ -12,12 +177,178 @@
   32     32   
    "com.amazonaws.configservice.synthetic",
   33     33   
    "DescribeConfigRulesInput",
   34     34   
);
   35     35   
static DESCRIBECONFIGRULESINPUT_MEMBER_CONFIG_RULE_NAMES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   36     36   
    ::aws_smithy_schema::ShapeId::from_static(
   37     37   
        "com.amazonaws.configservice.synthetic#DescribeConfigRulesInput$ConfigRuleNames",
   38     38   
        "com.amazonaws.configservice.synthetic",
   39     39   
        "DescribeConfigRulesInput",
   40     40   
    ),
   41     41   
    ::aws_smithy_schema::ShapeType::List,
   42         -
    "config_rule_names",
          42  +
    "ConfigRuleNames",
   43     43   
    0,
   44     44   
);
   45     45   
static DESCRIBECONFIGRULESINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   46     46   
    ::aws_smithy_schema::ShapeId::from_static(
   47     47   
        "com.amazonaws.configservice.synthetic#DescribeConfigRulesInput$NextToken",
   48     48   
        "com.amazonaws.configservice.synthetic",
   49     49   
        "DescribeConfigRulesInput",
   50     50   
    ),
   51     51   
    ::aws_smithy_schema::ShapeType::String,
   52         -
    "next_token",
          52  +
    "NextToken",
   53     53   
    1,
   54     54   
);
   55     55   
static DESCRIBECONFIGRULESINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.configservice.synthetic#DescribeConfigRulesInput$Filters",
   58     58   
        "com.amazonaws.configservice.synthetic",
   59     59   
        "DescribeConfigRulesInput",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::Structure,
   62         -
    "filters",
          62  +
    "Filters",
   63     63   
    2,
   64     64   
);
   65     65   
static DESCRIBECONFIGRULESINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   66     66   
    DESCRIBECONFIGRULESINPUT_SCHEMA_ID,
   67     67   
    ::aws_smithy_schema::ShapeType::Structure,
   68     68   
    &[
   69     69   
        &DESCRIBECONFIGRULESINPUT_MEMBER_CONFIG_RULE_NAMES,
   70     70   
        &DESCRIBECONFIGRULESINPUT_MEMBER_NEXT_TOKEN,
   71     71   
        &DESCRIBECONFIGRULESINPUT_MEMBER_FILTERS,
   72     72   
    ],
   73     73   
);
   74     74   
impl DescribeConfigRulesInput {
   75     75   
    /// The schema for this shape.
   76     76   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBECONFIGRULESINPUT_SCHEMA;
   77     77   
}
   78     78   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeConfigRulesInput {
   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.config_rule_names {
   85     85   
            ser.write_list(
   86     86   
                &DESCRIBECONFIGRULESINPUT_MEMBER_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.next_token {
   96     96   
            ser.write_string(&DESCRIBECONFIGRULESINPUT_MEMBER_NEXT_TOKEN, val)?;
   97     97   
        }
   98     98   
        if let Some(ref val) = self.filters {
   99     99   
            ser.write_struct(&DESCRIBECONFIGRULESINPUT_MEMBER_FILTERS, val)?;
  100    100   
        }
  101    101   
        Ok(())
  102    102   
    }
  103    103   
}
  104    104   
impl DescribeConfigRulesInput {
  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(&DESCRIBECONFIGRULESINPUT_SCHEMA, (), |_, member, deser| {
         118  +
        deserializer.read_struct(&DESCRIBECONFIGRULESINPUT_SCHEMA, &mut |member, deser| {
  119    119   
            match member.member_index() {
  120    120   
                Some(0) => {
  121         -
                    builder.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.config_rule_names = Some(deser.read_string_list(member)?);
  132    122   
                }
  133    123   
                Some(1) => {
  134    124   
                    builder.next_token = Some(deser.read_string(member)?);
  135    125   
                }
  136    126   
                Some(2) => {
  137    127   
                    builder.filters = Some(crate::types::DescribeConfigRulesFilters::deserialize(deser)?);
  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 DescribeConfigRulesInput {
         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 DescribeConfigRulesInput {
  149    150   
    /// Creates a new builder-style object to manufacture [`DescribeConfigRulesInput`](crate::operation::describe_config_rules::DescribeConfigRulesInput).
  150    151   
    pub fn builder() -> crate::operation::describe_config_rules::builders::DescribeConfigRulesInputBuilder {
  151    152   
        crate::operation::describe_config_rules::builders::DescribeConfigRulesInputBuilder::default()
  152    153   
    }
  153    154   
}
  154    155   
  155    156   
/// A builder for [`DescribeConfigRulesInput`](crate::operation::describe_config_rules::DescribeConfigRulesInput).
  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_config_rules/_describe_config_rules_output.rs

@@ -7,7 +141,193 @@
   27     27   
    "com.amazonaws.configservice.synthetic",
   28     28   
    "DescribeConfigRulesOutput",
   29     29   
);
   30     30   
static DESCRIBECONFIGRULESOUTPUT_MEMBER_CONFIG_RULES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static(
   32     32   
        "com.amazonaws.configservice.synthetic#DescribeConfigRulesOutput$ConfigRules",
   33     33   
        "com.amazonaws.configservice.synthetic",
   34     34   
        "DescribeConfigRulesOutput",
   35     35   
    ),
   36     36   
    ::aws_smithy_schema::ShapeType::List,
   37         -
    "config_rules",
          37  +
    "ConfigRules",
   38     38   
    0,
   39     39   
);
   40     40   
static DESCRIBECONFIGRULESOUTPUT_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#DescribeConfigRulesOutput$NextToken",
   43     43   
        "com.amazonaws.configservice.synthetic",
   44     44   
        "DescribeConfigRulesOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::String,
   47         -
    "next_token",
          47  +
    "NextToken",
   48     48   
    1,
   49     49   
);
          50  +
static DESCRIBECONFIGRULESOUTPUT_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 DESCRIBECONFIGRULESOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   51     58   
    DESCRIBECONFIGRULESOUTPUT_SCHEMA_ID,
   52     59   
    ::aws_smithy_schema::ShapeType::Structure,
   53     60   
    &[
   54     61   
        &DESCRIBECONFIGRULESOUTPUT_MEMBER_CONFIG_RULES,
   55     62   
        &DESCRIBECONFIGRULESOUTPUT_MEMBER_NEXT_TOKEN,
          63  +
        &DESCRIBECONFIGRULESOUTPUT_MEMBER__REQUEST_ID,
   56     64   
    ],
   57     65   
);
   58     66   
impl DescribeConfigRulesOutput {
   59     67   
    /// The schema for this shape.
   60     68   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBECONFIGRULESOUTPUT_SCHEMA;
   61     69   
}
   62     70   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeConfigRulesOutput {
   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.config_rules {
   69     77   
            ser.write_list(
   70     78   
                &DESCRIBECONFIGRULESOUTPUT_MEMBER_CONFIG_RULES,
   71     79   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   72     80   
                    for item in val {
   73     81   
                        ser.write_struct(crate::types::ConfigRule::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(&DESCRIBECONFIGRULESOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   81     89   
        }
   82     90   
        Ok(())
   83     91   
    }
   84     92   
}
   85     93   
impl DescribeConfigRulesOutput {
   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(&DESCRIBECONFIGRULESOUTPUT_SCHEMA, (), |_, member, deser| {
         107  +
        deserializer.read_struct(&DESCRIBECONFIGRULESOUTPUT_SCHEMA, &mut |member, deser| {
  100    108   
            match member.member_index() {
  101    109   
                Some(0) => {
  102    110   
                    builder.config_rules = 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::ConfigRule::deserialize(deser)?);
  110         -
                            Ok(list)
  111         -
                        })?
         111  +
                        let mut container = Vec::new();
         112  +
                        deser.read_list(member, &mut |deser| {
         113  +
                            container.push(crate::types::ConfigRule::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 DescribeConfigRulesOutput {
         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(&DESCRIBECONFIGRULESOUTPUT_SCHEMA, &mut |member, deser| {
         155  +
            match member.member_index() {
         156  +
                Some(0) => {
         157  +
                    builder.config_rules = Some({
         158  +
                        let mut container = Vec::new();
         159  +
                        deser.read_list(member, &mut |deser| {
         160  +
                            container.push(crate::types::ConfigRule::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_configuration_aggregator_sources_status.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 `DescribeConfigurationAggregatorSourcesStatus`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeConfigurationAggregatorSourcesStatus;
    6      6   
impl DescribeConfigurationAggregatorSourcesStatus {
    7      7   
    /// Creates a new `DescribeConfigurationAggregatorSourcesStatus`
    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_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusOutput::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_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -126,132 +253,315 @@
  146    152   
                    crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError,
  147    153   
                >::new());
  148    154   
  149    155   
        ::std::borrow::Cow::Owned(rcb)
  150    156   
    }
  151    157   
}
  152    158   
  153    159   
#[derive(Debug)]
  154    160   
struct DescribeConfigurationAggregatorSourcesStatusResponseDeserializer;
  155    161   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeConfigurationAggregatorSourcesStatusResponseDeserializer {
  156         -
    fn deserialize_nonstreaming(
         162  +
    fn deserialize_nonstreaming_with_config(
  157    163   
        &self,
  158    164   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         165  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  159    166   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  160    167   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  161         -
        let headers = response.headers();
  162         -
        let body = response.body().bytes().expect("body loaded");
  163    168   
        #[allow(unused_mut)]
  164    169   
        let mut force_error = false;
  165    170   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  166         -
        let parse_result = if !success && status != 200 || force_error {
  167         -
            crate::protocol_serde::shape_describe_configuration_aggregator_sources_status::de_describe_configuration_aggregator_sources_status_http_error(status, headers, body)
  168         -
        } else {
  169         -
            crate::protocol_serde::shape_describe_configuration_aggregator_sources_status::de_describe_configuration_aggregator_sources_status_http_response(status, headers, body)
         171  +
        if !success && status != 200 || force_error {
         172  +
            let headers = response.headers();
         173  +
            let body = response.body().bytes().expect("body loaded");
         174  +
            #[allow(unused_mut)]
         175  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         176  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         177  +
            })?;
         178  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         179  +
            let generic = generic_builder.build();
         180  +
            let error_code = match generic.code() {
         181  +
                    ::std::option::Option::Some(code) => code,
         182  +
                    ::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_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError::unhandled(generic)))),
         183  +
                };
         184  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         185  +
            let protocol = _cfg
         186  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         187  +
                .expect("a SharedClientProtocol is required");
         188  +
            let err = match error_code {
         189  +
"InvalidLimitException" => crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError::InvalidLimitException({
         190  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidLimitException::SCHEMA, _cfg)
         191  +
                        .and_then(|mut deser| crate::types::error::InvalidLimitException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         192  +
                    {
         193  +
                        ::std::result::Result::Ok(val) => val,
         194  +
                        ::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))),
         195  +
                    };
         196  +
                    tmp.meta = generic;
         197  +
if tmp.message.is_none() {
         198  +
                                tmp.message = _error_message;
         199  +
                            }
         200  +
tmp
         201  +
}),
         202  +
"InvalidNextTokenException" => crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError::InvalidNextTokenException({
         203  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidNextTokenException::SCHEMA, _cfg)
         204  +
                        .and_then(|mut deser| crate::types::error::InvalidNextTokenException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         205  +
                    {
         206  +
                        ::std::result::Result::Ok(val) => val,
         207  +
                        ::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))),
         208  +
                    };
         209  +
                    tmp.meta = generic;
         210  +
if tmp.message.is_none() {
         211  +
                                tmp.message = _error_message;
         212  +
                            }
         213  +
tmp
         214  +
}),
         215  +
"InvalidParameterValueException" => crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError::InvalidParameterValueException({
         216  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         217  +
                        .and_then(|mut deser| crate::types::error::InvalidParameterValueException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         218  +
                    {
         219  +
                        ::std::result::Result::Ok(val) => val,
         220  +
                        ::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))),
         221  +
                    };
         222  +
                    tmp.meta = generic;
         223  +
if tmp.message.is_none() {
         224  +
                                tmp.message = _error_message;
         225  +
                            }
         226  +
tmp
         227  +
}),
         228  +
"NoSuchConfigurationAggregatorException" => crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError::NoSuchConfigurationAggregatorException({
         229  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::NoSuchConfigurationAggregatorException::SCHEMA, _cfg)
         230  +
                        .and_then(|mut deser| crate::types::error::NoSuchConfigurationAggregatorException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         231  +
                    {
         232  +
                        ::std::result::Result::Ok(val) => val,
         233  +
                        ::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))),
  170    234   
                    };
  171         -
        crate::protocol_serde::type_erase_result(parse_result)
         235  +
                    tmp.meta = generic;
         236  +
if tmp.message.is_none() {
         237  +
                                tmp.message = _error_message;
         238  +
                            }
         239  +
tmp
         240  +
}),
         241  +
_ => crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusError::generic(generic)
         242  +
};
         243  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         244  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         245  +
            ))
         246  +
        } else {
         247  +
            let protocol = _cfg
         248  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         249  +
                .expect("a SharedClientProtocol is required");
         250  +
            let mut deser = protocol
         251  +
                .deserialize_response(response, DescribeConfigurationAggregatorSourcesStatus::OUTPUT_SCHEMA, _cfg)
         252  +
                .map_err(|e| {
         253  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         254  +
                })?;
         255  +
            let body = response.body().bytes().expect("body loaded");
         256  +
            let output = crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusOutput::deserialize_with_response(
         257  +
                    &mut *deser,
         258  +
                    response.headers(),
         259  +
                    response.status().into(),
         260  +
                    body,
         261  +
                ).map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
         262  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         263  +
        }
  172    264   
    }
  173    265   
}
  174    266   
#[derive(Debug)]
  175    267   
struct DescribeConfigurationAggregatorSourcesStatusRequestSerializer;
  176    268   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeConfigurationAggregatorSourcesStatusRequestSerializer {
  177    269   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  178    270   
    fn serialize_input(
  179    271   
        &self,
  180    272   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  181    273   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  182    274   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  183    275   
        let input = input
  184    276   
            .downcast::<crate::operation::describe_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusInput>()
  185    277   
            .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_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusInput,
  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_configuration_aggregator_sources_status::DescribeConfigurationAggregatorSourcesStatusInput,
  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.DescribeConfigurationAggregatorSourcesStatus",
  215         -
            );
  216         -
            builder
  217         -
        };
  218         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_describe_configuration_aggregator_sources_status::ser_describe_configuration_aggregator_sources_status_input(&input)?);
  219         -
        if let Some(content_length) = body.content_length() {
  220         -
            let content_length = content_length.to_string();
  221         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  222         -
        }
  223         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         278  +
        let protocol = _cfg
         279  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         280  +
            .expect("a SharedClientProtocol is required");
         281  +
        let mut request = protocol
         282  +
            .serialize_request(&input, DescribeConfigurationAggregatorSourcesStatus::INPUT_SCHEMA, "", _cfg)
         283  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         284  +
         285  +
        return ::std::result::Result::Ok(request);
  224    286   
    }
  225    287   
}
  226    288   
#[derive(Debug)]
  227    289   
struct DescribeConfigurationAggregatorSourcesStatusEndpointParamsInterceptor;
  228    290   
  229    291   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeConfigurationAggregatorSourcesStatusEndpointParamsInterceptor {
  230    292   
    fn name(&self) -> &'static str {
  231    293   
        "DescribeConfigurationAggregatorSourcesStatusEndpointParamsInterceptor"
  232    294   
    }
  233    295   

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_configuration_aggregator_sources_status/_describe_configuration_aggregator_sources_status_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_configuration_aggregator_sources_status/_describe_configuration_aggregator_sources_status_output.rs

@@ -7,7 +141,193 @@
   27     27   
    "DescribeConfigurationAggregatorSourcesStatusOutput",
   28     28   
);
   29     29   
static DESCRIBECONFIGURATIONAGGREGATORSOURCESSTATUSOUTPUT_MEMBER_AGGREGATED_SOURCE_STATUS_LIST: ::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#DescribeConfigurationAggregatorSourcesStatusOutput$AggregatedSourceStatusList",
   33     33   
            "com.amazonaws.configservice.synthetic",
   34     34   
            "DescribeConfigurationAggregatorSourcesStatusOutput",
   35     35   
        ),
   36     36   
        ::aws_smithy_schema::ShapeType::List,
   37         -
        "aggregated_source_status_list",
          37  +
        "AggregatedSourceStatusList",
   38     38   
        0,
   39     39   
    );
   40     40   
static DESCRIBECONFIGURATIONAGGREGATORSOURCESSTATUSOUTPUT_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#DescribeConfigurationAggregatorSourcesStatusOutput$NextToken",
   43     43   
        "com.amazonaws.configservice.synthetic",
   44     44   
        "DescribeConfigurationAggregatorSourcesStatusOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::String,
   47         -
    "next_token",
          47  +
    "NextToken",
   48     48   
    1,
   49     49   
);
          50  +
static DESCRIBECONFIGURATIONAGGREGATORSOURCESSTATUSOUTPUT_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 DESCRIBECONFIGURATIONAGGREGATORSOURCESSTATUSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   51     58   
    DESCRIBECONFIGURATIONAGGREGATORSOURCESSTATUSOUTPUT_SCHEMA_ID,
   52     59   
    ::aws_smithy_schema::ShapeType::Structure,
   53     60   
    &[
   54     61   
        &DESCRIBECONFIGURATIONAGGREGATORSOURCESSTATUSOUTPUT_MEMBER_AGGREGATED_SOURCE_STATUS_LIST,
   55     62   
        &DESCRIBECONFIGURATIONAGGREGATORSOURCESSTATUSOUTPUT_MEMBER_NEXT_TOKEN,
          63  +
        &DESCRIBECONFIGURATIONAGGREGATORSOURCESSTATUSOUTPUT_MEMBER__REQUEST_ID,
   56     64   
    ],
   57     65   
);
   58     66   
impl DescribeConfigurationAggregatorSourcesStatusOutput {
   59     67   
    /// The schema for this shape.
   60     68   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBECONFIGURATIONAGGREGATORSOURCESSTATUSOUTPUT_SCHEMA;
   61     69   
}
   62     70   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeConfigurationAggregatorSourcesStatusOutput {
   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.aggregated_source_status_list {
   69     77   
            ser.write_list(
   70     78   
                &DESCRIBECONFIGURATIONAGGREGATORSOURCESSTATUSOUTPUT_MEMBER_AGGREGATED_SOURCE_STATUS_LIST,
   71     79   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   72     80   
                    for item in val {
   73     81   
                        ser.write_struct(crate::types::AggregatedSourceStatus::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(&DESCRIBECONFIGURATIONAGGREGATORSOURCESSTATUSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   81     89   
        }
   82     90   
        Ok(())
   83     91   
    }
   84     92   
}
   85     93   
impl DescribeConfigurationAggregatorSourcesStatusOutput {
   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(&DESCRIBECONFIGURATIONAGGREGATORSOURCESSTATUSOUTPUT_SCHEMA, (), |_, member, deser| {
         107  +
        deserializer.read_struct(&DESCRIBECONFIGURATIONAGGREGATORSOURCESSTATUSOUTPUT_SCHEMA, &mut |member, deser| {
  100    108   
            match member.member_index() {
  101    109   
                Some(0) => {
  102    110   
                    builder.aggregated_source_status_list = 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::AggregatedSourceStatus::deserialize(deser)?);
  110         -
                            Ok(list)
  111         -
                        })?
         111  +
                        let mut container = Vec::new();
         112  +
                        deser.read_list(member, &mut |deser| {
         113  +
                            container.push(crate::types::AggregatedSourceStatus::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 DescribeConfigurationAggregatorSourcesStatusOutput {
         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(&DESCRIBECONFIGURATIONAGGREGATORSOURCESSTATUSOUTPUT_SCHEMA, &mut |member, deser| {
         155  +
            match member.member_index() {
         156  +
                Some(0) => {
         157  +
                    builder.aggregated_source_status_list = Some({
         158  +
                        let mut container = Vec::new();
         159  +
                        deser.read_list(member, &mut |deser| {
         160  +
                            container.push(crate::types::AggregatedSourceStatus::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())