AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406 (ignoring whitespace)

Files changed:

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

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

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

@@ -7,7 +141,193 @@
   27     27   
    "com.amazonaws.configservice.synthetic",
   28     28   
    "GetResourceConfigHistoryOutput",
   29     29   
);
   30     30   
static GETRESOURCECONFIGHISTORYOUTPUT_MEMBER_CONFIGURATION_ITEMS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   31     31   
    ::aws_smithy_schema::ShapeId::from_static(
   32     32   
        "com.amazonaws.configservice.synthetic#GetResourceConfigHistoryOutput$configurationItems",
   33     33   
        "com.amazonaws.configservice.synthetic",
   34     34   
        "GetResourceConfigHistoryOutput",
   35     35   
    ),
   36     36   
    ::aws_smithy_schema::ShapeType::List,
   37         -
    "configuration_items",
          37  +
    "configurationItems",
   38     38   
    0,
   39     39   
);
   40     40   
static GETRESOURCECONFIGHISTORYOUTPUT_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#GetResourceConfigHistoryOutput$nextToken",
   43     43   
        "com.amazonaws.configservice.synthetic",
   44     44   
        "GetResourceConfigHistoryOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::String,
   47         -
    "next_token",
          47  +
    "nextToken",
   48     48   
    1,
   49     49   
);
          50  +
static GETRESOURCECONFIGHISTORYOUTPUT_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 GETRESOURCECONFIGHISTORYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   51     58   
    GETRESOURCECONFIGHISTORYOUTPUT_SCHEMA_ID,
   52     59   
    ::aws_smithy_schema::ShapeType::Structure,
   53     60   
    &[
   54     61   
        &GETRESOURCECONFIGHISTORYOUTPUT_MEMBER_CONFIGURATION_ITEMS,
   55     62   
        &GETRESOURCECONFIGHISTORYOUTPUT_MEMBER_NEXT_TOKEN,
          63  +
        &GETRESOURCECONFIGHISTORYOUTPUT_MEMBER__REQUEST_ID,
   56     64   
    ],
   57     65   
);
   58     66   
impl GetResourceConfigHistoryOutput {
   59     67   
    /// The schema for this shape.
   60     68   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETRESOURCECONFIGHISTORYOUTPUT_SCHEMA;
   61     69   
}
   62     70   
impl ::aws_smithy_schema::serde::SerializableStruct for GetResourceConfigHistoryOutput {
   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.configuration_items {
   69     77   
            ser.write_list(
   70     78   
                &GETRESOURCECONFIGHISTORYOUTPUT_MEMBER_CONFIGURATION_ITEMS,
   71     79   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   72     80   
                    for item in val {
   73     81   
                        ser.write_struct(crate::types::ConfigurationItem::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(&GETRESOURCECONFIGHISTORYOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   81     89   
        }
   82     90   
        Ok(())
   83     91   
    }
   84     92   
}
   85     93   
impl GetResourceConfigHistoryOutput {
   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(&GETRESOURCECONFIGHISTORYOUTPUT_SCHEMA, (), |_, member, deser| {
         107  +
        deserializer.read_struct(&GETRESOURCECONFIGHISTORYOUTPUT_SCHEMA, &mut |member, deser| {
  100    108   
            match member.member_index() {
  101    109   
                Some(0) => {
  102    110   
                    builder.configuration_items = 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::ConfigurationItem::deserialize(deser)?);
  110         -
                            Ok(list)
  111         -
                        })?
         111  +
                        let mut container = Vec::new();
         112  +
                        deser.read_list(member, &mut |deser| {
         113  +
                            container.push(crate::types::ConfigurationItem::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 GetResourceConfigHistoryOutput {
         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(&GETRESOURCECONFIGHISTORYOUTPUT_SCHEMA, &mut |member, deser| {
         155  +
            match member.member_index() {
         156  +
                Some(0) => {
         157  +
                    builder.configuration_items = Some({
         158  +
                        let mut container = Vec::new();
         159  +
                        deser.read_list(member, &mut |deser| {
         160  +
                            container.push(crate::types::ConfigurationItem::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/get_resource_evaluation_summary.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 `GetResourceEvaluationSummary`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetResourceEvaluationSummary;
    6      6   
impl GetResourceEvaluationSummary {
    7      7   
    /// Creates a new `GetResourceEvaluationSummary`
    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::get_resource_evaluation_summary::GetResourceEvaluationSummaryInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_resource_evaluation_summary::GetResourceEvaluationSummaryOutput::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::get_resource_evaluation_summary::GetResourceEvaluationSummaryInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_resource_evaluation_summary::GetResourceEvaluationSummaryOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_resource_evaluation_summary::GetResourceEvaluationSummaryError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +253,296 @@
  144    150   
                crate::operation::get_resource_evaluation_summary::GetResourceEvaluationSummaryError,
  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 GetResourceEvaluationSummaryResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetResourceEvaluationSummaryResponseDeserializer {
  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_get_resource_evaluation_summary::de_get_resource_evaluation_summary_http_error(status, headers, body)
  166         -
        } else {
  167         -
            crate::protocol_serde::shape_get_resource_evaluation_summary::de_get_resource_evaluation_summary_http_response(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::get_resource_evaluation_summary::GetResourceEvaluationSummaryError::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  +
                "ResourceNotFoundException" => {
         194  +
                    crate::operation::get_resource_evaluation_summary::GetResourceEvaluationSummaryError::ResourceNotFoundException({
         195  +
                        let mut tmp = match protocol
         196  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         197  +
                            .and_then(|mut deser| {
         198  +
                                crate::types::error::ResourceNotFoundException::deserialize_with_response(
         199  +
                                    &mut *deser,
         200  +
                                    response.headers(),
         201  +
                                    response.status().into(),
         202  +
                                    body,
         203  +
                                )
         204  +
                            }) {
         205  +
                            ::std::result::Result::Ok(val) => val,
         206  +
                            ::std::result::Result::Err(e) => {
         207  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         208  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         209  +
                                ))
         210  +
                            }
         211  +
                        };
         212  +
                        tmp.meta = generic;
         213  +
                        if tmp.message.is_none() {
         214  +
                            tmp.message = _error_message;
         215  +
                        }
         216  +
                        tmp
         217  +
                    })
         218  +
                }
         219  +
                _ => crate::operation::get_resource_evaluation_summary::GetResourceEvaluationSummaryError::generic(generic),
  168    220   
            };
  169         -
        crate::protocol_serde::type_erase_result(parse_result)
         221  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         222  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         223  +
            ))
         224  +
        } else {
         225  +
            let protocol = _cfg
         226  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         227  +
                .expect("a SharedClientProtocol is required");
         228  +
            let mut deser = protocol
         229  +
                .deserialize_response(response, GetResourceEvaluationSummary::OUTPUT_SCHEMA, _cfg)
         230  +
                .map_err(|e| {
         231  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         232  +
                })?;
         233  +
            let body = response.body().bytes().expect("body loaded");
         234  +
            let output = crate::operation::get_resource_evaluation_summary::GetResourceEvaluationSummaryOutput::deserialize_with_response(
         235  +
                &mut *deser,
         236  +
                response.headers(),
         237  +
                response.status().into(),
         238  +
                body,
         239  +
            )
         240  +
            .map_err(|e| {
         241  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         242  +
            })?;
         243  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         244  +
        }
  170    245   
    }
  171    246   
}
  172    247   
#[derive(Debug)]
  173    248   
struct GetResourceEvaluationSummaryRequestSerializer;
  174    249   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetResourceEvaluationSummaryRequestSerializer {
  175    250   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  176    251   
    fn serialize_input(
  177    252   
        &self,
  178    253   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  179    254   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  180    255   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  181    256   
        let input = input
  182    257   
            .downcast::<crate::operation::get_resource_evaluation_summary::GetResourceEvaluationSummaryInput>()
  183    258   
            .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::get_resource_evaluation_summary::GetResourceEvaluationSummaryInput,
  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::get_resource_evaluation_summary::GetResourceEvaluationSummaryInput,
  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.GetResourceEvaluationSummary",
  213         -
            );
  214         -
            builder
  215         -
        };
  216         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  217         -
            crate::protocol_serde::shape_get_resource_evaluation_summary::ser_get_resource_evaluation_summary_input(&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())
         259  +
        let protocol = _cfg
         260  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         261  +
            .expect("a SharedClientProtocol is required");
         262  +
        let mut request = protocol
         263  +
            .serialize_request(&input, GetResourceEvaluationSummary::INPUT_SCHEMA, "", _cfg)
         264  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         265  +
         266  +
        return ::std::result::Result::Ok(request);
  224    267   
    }
  225    268   
}
  226    269   
#[derive(Debug)]
  227    270   
struct GetResourceEvaluationSummaryEndpointParamsInterceptor;
  228    271   
  229    272   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetResourceEvaluationSummaryEndpointParamsInterceptor {
  230    273   
    fn name(&self) -> &'static str {
  231    274   
        "GetResourceEvaluationSummaryEndpointParamsInterceptor"
  232    275   
    }
  233    276   

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

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

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

@@ -34,34 +218,281 @@
   54     54   
    "com.amazonaws.configservice.synthetic",
   55     55   
    "GetResourceEvaluationSummaryOutput",
   56     56   
);
   57     57   
static GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_RESOURCE_EVALUATION_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#GetResourceEvaluationSummaryOutput$ResourceEvaluationId",
   60     60   
        "com.amazonaws.configservice.synthetic",
   61     61   
        "GetResourceEvaluationSummaryOutput",
   62     62   
    ),
   63     63   
    ::aws_smithy_schema::ShapeType::String,
   64         -
    "resource_evaluation_id",
          64  +
    "ResourceEvaluationId",
   65     65   
    0,
   66     66   
);
   67     67   
static GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_EVALUATION_MODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   68     68   
    ::aws_smithy_schema::ShapeId::from_static(
   69     69   
        "com.amazonaws.configservice.synthetic#GetResourceEvaluationSummaryOutput$EvaluationMode",
   70     70   
        "com.amazonaws.configservice.synthetic",
   71     71   
        "GetResourceEvaluationSummaryOutput",
   72     72   
    ),
   73     73   
    ::aws_smithy_schema::ShapeType::String,
   74         -
    "evaluation_mode",
          74  +
    "EvaluationMode",
   75     75   
    1,
   76     76   
);
   77     77   
static GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_EVALUATION_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.configservice.synthetic#GetResourceEvaluationSummaryOutput$EvaluationStatus",
   80     80   
        "com.amazonaws.configservice.synthetic",
   81     81   
        "GetResourceEvaluationSummaryOutput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::Structure,
   84         -
    "evaluation_status",
          84  +
    "EvaluationStatus",
   85     85   
    2,
   86     86   
);
   87     87   
static GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_EVALUATION_START_TIMESTAMP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.configservice.synthetic#GetResourceEvaluationSummaryOutput$EvaluationStartTimestamp",
   90     90   
        "com.amazonaws.configservice.synthetic",
   91     91   
        "GetResourceEvaluationSummaryOutput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::Timestamp,
   94         -
    "evaluation_start_timestamp",
          94  +
    "EvaluationStartTimestamp",
   95     95   
    3,
   96     96   
);
   97     97   
static GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_COMPLIANCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   98     98   
    ::aws_smithy_schema::ShapeId::from_static(
   99     99   
        "com.amazonaws.configservice.synthetic#GetResourceEvaluationSummaryOutput$Compliance",
  100    100   
        "com.amazonaws.configservice.synthetic",
  101    101   
        "GetResourceEvaluationSummaryOutput",
  102    102   
    ),
  103    103   
    ::aws_smithy_schema::ShapeType::String,
  104         -
    "compliance",
         104  +
    "Compliance",
  105    105   
    4,
  106    106   
);
  107    107   
static GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_EVALUATION_CONTEXT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  108    108   
    ::aws_smithy_schema::ShapeId::from_static(
  109    109   
        "com.amazonaws.configservice.synthetic#GetResourceEvaluationSummaryOutput$EvaluationContext",
  110    110   
        "com.amazonaws.configservice.synthetic",
  111    111   
        "GetResourceEvaluationSummaryOutput",
  112    112   
    ),
  113    113   
    ::aws_smithy_schema::ShapeType::Structure,
  114         -
    "evaluation_context",
         114  +
    "EvaluationContext",
  115    115   
    5,
  116    116   
);
  117    117   
static GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_RESOURCE_DETAILS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  118    118   
    ::aws_smithy_schema::ShapeId::from_static(
  119    119   
        "com.amazonaws.configservice.synthetic#GetResourceEvaluationSummaryOutput$ResourceDetails",
  120    120   
        "com.amazonaws.configservice.synthetic",
  121    121   
        "GetResourceEvaluationSummaryOutput",
  122    122   
    ),
  123    123   
    ::aws_smithy_schema::ShapeType::Structure,
  124         -
    "resource_details",
         124  +
    "ResourceDetails",
  125    125   
    6,
  126    126   
);
         127  +
static GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         128  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         129  +
    ::aws_smithy_schema::ShapeType::String,
         130  +
    "request_id",
         131  +
    7,
         132  +
)
         133  +
.with_http_header("x-amzn-requestid");
  127    134   
static GETRESOURCEEVALUATIONSUMMARYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  128    135   
    GETRESOURCEEVALUATIONSUMMARYOUTPUT_SCHEMA_ID,
  129    136   
    ::aws_smithy_schema::ShapeType::Structure,
  130    137   
    &[
  131    138   
        &GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_RESOURCE_EVALUATION_ID,
  132    139   
        &GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_EVALUATION_MODE,
  133    140   
        &GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_EVALUATION_STATUS,
  134    141   
        &GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_EVALUATION_START_TIMESTAMP,
  135    142   
        &GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_COMPLIANCE,
  136    143   
        &GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_EVALUATION_CONTEXT,
  137    144   
        &GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_RESOURCE_DETAILS,
         145  +
        &GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER__REQUEST_ID,
  138    146   
    ],
  139    147   
);
  140    148   
impl GetResourceEvaluationSummaryOutput {
  141    149   
    /// The schema for this shape.
  142    150   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETRESOURCEEVALUATIONSUMMARYOUTPUT_SCHEMA;
  143    151   
}
  144    152   
impl ::aws_smithy_schema::serde::SerializableStruct for GetResourceEvaluationSummaryOutput {
  145    153   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  146    154   
    fn serialize_members(
  147    155   
        &self,
  148    156   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  149    157   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  150    158   
        if let Some(ref val) = self.resource_evaluation_id {
  151    159   
            ser.write_string(&GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_RESOURCE_EVALUATION_ID, val)?;
  152    160   
        }
  153    161   
        if let Some(ref val) = self.evaluation_mode {
  154    162   
            ser.write_string(&GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_EVALUATION_MODE, val.as_str())?;
  155    163   
        }
  156    164   
        if let Some(ref val) = self.evaluation_status {
  157    165   
            ser.write_struct(&GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_EVALUATION_STATUS, val)?;
  158    166   
        }
  159    167   
        if let Some(ref val) = self.evaluation_start_timestamp {
  160    168   
            ser.write_timestamp(&GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_EVALUATION_START_TIMESTAMP, val)?;
  161    169   
        }
  162    170   
        if let Some(ref val) = self.compliance {
  163    171   
            ser.write_string(&GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_COMPLIANCE, val.as_str())?;
  164    172   
        }
  165    173   
        if let Some(ref val) = self.evaluation_context {
  166    174   
            ser.write_struct(&GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_EVALUATION_CONTEXT, val)?;
  167    175   
        }
  168    176   
        if let Some(ref val) = self.resource_details {
  169    177   
            ser.write_struct(&GETRESOURCEEVALUATIONSUMMARYOUTPUT_MEMBER_RESOURCE_DETAILS, val)?;
  170    178   
        }
  171    179   
        Ok(())
  172    180   
    }
  173    181   
}
  174    182   
impl GetResourceEvaluationSummaryOutput {
  175    183   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  176         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  177         -
        deserializer: &mut D,
         184  +
    pub fn deserialize(
         185  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  178    186   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  179    187   
        #[allow(unused_variables, unused_mut)]
  180    188   
        let mut builder = Self::builder();
  181    189   
        #[allow(
  182    190   
            unused_variables,
  183    191   
            unreachable_code,
  184    192   
            clippy::single_match,
  185    193   
            clippy::match_single_binding,
  186    194   
            clippy::diverging_sub_expression
  187    195   
        )]
  188         -
        deserializer.read_struct(&GETRESOURCEEVALUATIONSUMMARYOUTPUT_SCHEMA, (), |_, member, deser| {
         196  +
        deserializer.read_struct(&GETRESOURCEEVALUATIONSUMMARYOUTPUT_SCHEMA, &mut |member, deser| {
         197  +
            match member.member_index() {
         198  +
                Some(0) => {
         199  +
                    builder.resource_evaluation_id = Some(deser.read_string(member)?);
         200  +
                }
         201  +
                Some(1) => {
         202  +
                    builder.evaluation_mode = Some(crate::types::EvaluationMode::from(deser.read_string(member)?.as_str()));
         203  +
                }
         204  +
                Some(2) => {
         205  +
                    builder.evaluation_status = Some(crate::types::EvaluationStatus::deserialize(deser)?);
         206  +
                }
         207  +
                Some(3) => {
         208  +
                    builder.evaluation_start_timestamp = Some(deser.read_timestamp(member)?);
         209  +
                }
         210  +
                Some(4) => {
         211  +
                    builder.compliance = Some(crate::types::ComplianceType::from(deser.read_string(member)?.as_str()));
         212  +
                }
         213  +
                Some(5) => {
         214  +
                    builder.evaluation_context = Some(crate::types::EvaluationContext::deserialize(deser)?);
         215  +
                }
         216  +
                Some(6) => {
         217  +
                    builder.resource_details = Some(crate::types::ResourceDetails::deserialize(deser)?);
         218  +
                }
         219  +
                Some(7) => {
         220  +
                    builder._request_id = Some(deser.read_string(member)?);
         221  +
                }
         222  +
                _ => {}
         223  +
            }
         224  +
            Ok(())
         225  +
        })?;
         226  +
        Ok(builder.build())
         227  +
    }
         228  +
}
         229  +
impl GetResourceEvaluationSummaryOutput {
         230  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         231  +
    /// Header-bound members are read directly from headers, avoiding runtime
         232  +
    /// member iteration overhead. Body members are read via the deserializer.
         233  +
    pub fn deserialize_with_response(
         234  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         235  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         236  +
        _status: u16,
         237  +
        _body: &[u8],
         238  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         239  +
        #[allow(unused_variables, unused_mut)]
         240  +
        let mut builder = Self::builder();
         241  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         242  +
            builder._request_id = Some(val.to_string());
         243  +
        }
         244  +
        #[allow(
         245  +
            unused_variables,
         246  +
            unreachable_code,
         247  +
            clippy::single_match,
         248  +
            clippy::match_single_binding,
         249  +
            clippy::diverging_sub_expression
         250  +
        )]
         251  +
        deserializer.read_struct(&GETRESOURCEEVALUATIONSUMMARYOUTPUT_SCHEMA, &mut |member, deser| {
  189    252   
            match member.member_index() {
  190    253   
                Some(0) => {
  191    254   
                    builder.resource_evaluation_id = Some(deser.read_string(member)?);
  192    255   
                }
  193    256   
                Some(1) => {
  194    257   
                    builder.evaluation_mode = Some(crate::types::EvaluationMode::from(deser.read_string(member)?.as_str()));
  195    258   
                }
  196    259   
                Some(2) => {
  197    260   
                    builder.evaluation_status = Some(crate::types::EvaluationStatus::deserialize(deser)?);
  198    261   
                }

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

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/list_aggregate_discovered_resources.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 `ListAggregateDiscoveredResources`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListAggregateDiscoveredResources;
    6      6   
impl ListAggregateDiscoveredResources {
    7      7   
    /// Creates a new `ListAggregateDiscoveredResources`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +255,322 @@
  144    150   
                crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError,
  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 ListAggregateDiscoveredResourcesResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListAggregateDiscoveredResourcesResponseDeserializer {
  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_list_aggregate_discovered_resources::de_list_aggregate_discovered_resources_http_error(status, headers, body)
         169  +
        if !success && status != 200 || force_error {
         170  +
            let headers = response.headers();
         171  +
            let body = response.body().bytes().expect("body loaded");
         172  +
            #[allow(unused_mut)]
         173  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         174  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         175  +
            })?;
         176  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         177  +
            let generic = generic_builder.build();
         178  +
            let error_code = match generic.code() {
         179  +
                ::std::option::Option::Some(code) => code,
         180  +
                ::std::option::Option::None => {
         181  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         182  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         183  +
                            crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError::unhandled(generic),
         184  +
                        ),
         185  +
                    ))
         186  +
                }
         187  +
            };
         188  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         189  +
            let protocol = _cfg
         190  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         191  +
                .expect("a SharedClientProtocol is required");
         192  +
            let err = match error_code {
         193  +
"InvalidLimitException" => crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError::InvalidLimitException({
         194  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidLimitException::SCHEMA, _cfg)
         195  +
                        .and_then(|mut deser| crate::types::error::InvalidLimitException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         196  +
                    {
         197  +
                        ::std::result::Result::Ok(val) => val,
         198  +
                        ::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))),
         199  +
                    };
         200  +
                    tmp.meta = generic;
         201  +
if tmp.message.is_none() {
         202  +
                                tmp.message = _error_message;
         203  +
                            }
         204  +
tmp
         205  +
}),
         206  +
"InvalidNextTokenException" => crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError::InvalidNextTokenException({
         207  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidNextTokenException::SCHEMA, _cfg)
         208  +
                        .and_then(|mut deser| crate::types::error::InvalidNextTokenException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         209  +
                    {
         210  +
                        ::std::result::Result::Ok(val) => val,
         211  +
                        ::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))),
         212  +
                    };
         213  +
                    tmp.meta = generic;
         214  +
if tmp.message.is_none() {
         215  +
                                tmp.message = _error_message;
         216  +
                            }
         217  +
tmp
         218  +
}),
         219  +
"NoSuchConfigurationAggregatorException" => crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError::NoSuchConfigurationAggregatorException({
         220  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::NoSuchConfigurationAggregatorException::SCHEMA, _cfg)
         221  +
                        .and_then(|mut deser| crate::types::error::NoSuchConfigurationAggregatorException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         222  +
                    {
         223  +
                        ::std::result::Result::Ok(val) => val,
         224  +
                        ::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))),
         225  +
                    };
         226  +
                    tmp.meta = generic;
         227  +
if tmp.message.is_none() {
         228  +
                                tmp.message = _error_message;
         229  +
                            }
         230  +
tmp
         231  +
}),
         232  +
"ValidationException" => crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError::ValidationException({
         233  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         234  +
                        .and_then(|mut deser| crate::types::error::ValidationException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         235  +
                    {
         236  +
                        ::std::result::Result::Ok(val) => val,
         237  +
                        ::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))),
         238  +
                    };
         239  +
                    tmp.meta = generic;
         240  +
if tmp.message.is_none() {
         241  +
                                tmp.message = _error_message;
         242  +
                            }
         243  +
tmp
         244  +
}),
         245  +
_ => crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesError::generic(generic)
         246  +
};
         247  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         248  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         249  +
            ))
  166    250   
        } else {
  167         -
            crate::protocol_serde::shape_list_aggregate_discovered_resources::de_list_aggregate_discovered_resources_http_response(
  168         -
                status, headers, body,
         251  +
            let protocol = _cfg
         252  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         253  +
                .expect("a SharedClientProtocol is required");
         254  +
            let mut deser = protocol
         255  +
                .deserialize_response(response, ListAggregateDiscoveredResources::OUTPUT_SCHEMA, _cfg)
         256  +
                .map_err(|e| {
         257  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         258  +
                })?;
         259  +
            let body = response.body().bytes().expect("body loaded");
         260  +
            let output = crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesOutput::deserialize_with_response(
         261  +
                &mut *deser,
         262  +
                response.headers(),
         263  +
                response.status().into(),
         264  +
                body,
  169    265   
            )
  170         -
        };
  171         -
        crate::protocol_serde::type_erase_result(parse_result)
         266  +
            .map_err(|e| {
         267  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         268  +
            })?;
         269  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         270  +
        }
  172    271   
    }
  173    272   
}
  174    273   
#[derive(Debug)]
  175    274   
struct ListAggregateDiscoveredResourcesRequestSerializer;
  176    275   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListAggregateDiscoveredResourcesRequestSerializer {
  177    276   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  178    277   
    fn serialize_input(
  179    278   
        &self,
  180    279   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  181    280   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  182    281   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  183    282   
        let input = input
  184    283   
            .downcast::<crate::operation::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesInput>()
  185    284   
            .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::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesInput,
  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::list_aggregate_discovered_resources::ListAggregateDiscoveredResourcesInput,
  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.ListAggregateDiscoveredResources",
  215         -
            );
  216         -
            builder
  217         -
        };
  218         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  219         -
            crate::protocol_serde::shape_list_aggregate_discovered_resources::ser_list_aggregate_discovered_resources_input(&input)?,
  220         -
        );
  221         -
        if let Some(content_length) = body.content_length() {
  222         -
            let content_length = content_length.to_string();
  223         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  224         -
        }
  225         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         285  +
        let protocol = _cfg
         286  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         287  +
            .expect("a SharedClientProtocol is required");
         288  +
        let mut request = protocol
         289  +
            .serialize_request(&input, ListAggregateDiscoveredResources::INPUT_SCHEMA, "", _cfg)
         290  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         291  +
         292  +
        return ::std::result::Result::Ok(request);
  226    293   
    }
  227    294   
}
  228    295   
#[derive(Debug)]
  229    296   
struct ListAggregateDiscoveredResourcesEndpointParamsInterceptor;
  230    297   
  231    298   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListAggregateDiscoveredResourcesEndpointParamsInterceptor {
  232    299   
    fn name(&self) -> &'static str {
  233    300   
        "ListAggregateDiscoveredResourcesEndpointParamsInterceptor"
  234    301   
    }
  235    302   

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/list_configuration_recorders.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 `ListConfigurationRecorders`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListConfigurationRecorders;
    6      6   
impl ListConfigurationRecorders {
    7      7   
    /// Creates a new `ListConfigurationRecorders`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::list_configuration_recorders::ListConfigurationRecordersInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::list_configuration_recorders::ListConfigurationRecordersOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::list_configuration_recorders::ListConfigurationRecordersInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::list_configuration_recorders::ListConfigurationRecordersOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::list_configuration_recorders::ListConfigurationRecordersError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +253,294 @@
  144    150   
                crate::operation::list_configuration_recorders::ListConfigurationRecordersError,
  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 ListConfigurationRecordersResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListConfigurationRecordersResponseDeserializer {
  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_list_configuration_recorders::de_list_configuration_recorders_http_error(status, headers, body)
  166         -
        } else {
  167         -
            crate::protocol_serde::shape_list_configuration_recorders::de_list_configuration_recorders_http_response(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::list_configuration_recorders::ListConfigurationRecordersError::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  +
                "ValidationException" => crate::operation::list_configuration_recorders::ListConfigurationRecordersError::ValidationException({
         194  +
                    let mut tmp = match protocol
         195  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         196  +
                        .and_then(|mut deser| {
         197  +
                            crate::types::error::ValidationException::deserialize_with_response(
         198  +
                                &mut *deser,
         199  +
                                response.headers(),
         200  +
                                response.status().into(),
         201  +
                                body,
         202  +
                            )
         203  +
                        }) {
         204  +
                        ::std::result::Result::Ok(val) => val,
         205  +
                        ::std::result::Result::Err(e) => {
         206  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         207  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         208  +
                            ))
         209  +
                        }
  168    210   
                    };
  169         -
        crate::protocol_serde::type_erase_result(parse_result)
         211  +
                    tmp.meta = generic;
         212  +
                    if tmp.message.is_none() {
         213  +
                        tmp.message = _error_message;
         214  +
                    }
         215  +
                    tmp
         216  +
                }),
         217  +
                _ => crate::operation::list_configuration_recorders::ListConfigurationRecordersError::generic(generic),
         218  +
            };
         219  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         220  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         221  +
            ))
         222  +
        } else {
         223  +
            let protocol = _cfg
         224  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         225  +
                .expect("a SharedClientProtocol is required");
         226  +
            let mut deser = protocol
         227  +
                .deserialize_response(response, ListConfigurationRecorders::OUTPUT_SCHEMA, _cfg)
         228  +
                .map_err(|e| {
         229  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         230  +
                })?;
         231  +
            let body = response.body().bytes().expect("body loaded");
         232  +
            let output = crate::operation::list_configuration_recorders::ListConfigurationRecordersOutput::deserialize_with_response(
         233  +
                &mut *deser,
         234  +
                response.headers(),
         235  +
                response.status().into(),
         236  +
                body,
         237  +
            )
         238  +
            .map_err(|e| {
         239  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         240  +
            })?;
         241  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         242  +
        }
  170    243   
    }
  171    244   
}
  172    245   
#[derive(Debug)]
  173    246   
struct ListConfigurationRecordersRequestSerializer;
  174    247   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListConfigurationRecordersRequestSerializer {
  175    248   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  176    249   
    fn serialize_input(
  177    250   
        &self,
  178    251   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  179    252   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  180    253   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  181    254   
        let input = input
  182    255   
            .downcast::<crate::operation::list_configuration_recorders::ListConfigurationRecordersInput>()
  183    256   
            .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::list_configuration_recorders::ListConfigurationRecordersInput,
  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::list_configuration_recorders::ListConfigurationRecordersInput,
  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.ListConfigurationRecorders",
  213         -
            );
  214         -
            builder
  215         -
        };
  216         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  217         -
            crate::protocol_serde::shape_list_configuration_recorders::ser_list_configuration_recorders_input(&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())
         257  +
        let protocol = _cfg
         258  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         259  +
            .expect("a SharedClientProtocol is required");
         260  +
        let mut request = protocol
         261  +
            .serialize_request(&input, ListConfigurationRecorders::INPUT_SCHEMA, "", _cfg)
         262  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         263  +
         264  +
        return ::std::result::Result::Ok(request);
  224    265   
    }
  225    266   
}
  226    267   
#[derive(Debug)]
  227    268   
struct ListConfigurationRecordersEndpointParamsInterceptor;
  228    269   
  229    270   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListConfigurationRecordersEndpointParamsInterceptor {
  230    271   
    fn name(&self) -> &'static str {
  231    272   
        "ListConfigurationRecordersEndpointParamsInterceptor"
  232    273   
    }
  233    274   

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

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