AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406

Files changed:

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

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/list_conformance_pack_compliance_scores.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 `ListConformancePackComplianceScores`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListConformancePackComplianceScores;
    6      6   
impl ListConformancePackComplianceScores {
    7      7   
    /// Creates a new `ListConformancePackComplianceScores`
    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_conformance_pack_compliance_scores::ListConformancePackComplianceScoresInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresOutput::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_conformance_pack_compliance_scores::ListConformancePackComplianceScoresInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +257,310 @@
  144    150   
                crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError,
  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 ListConformancePackComplianceScoresResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListConformancePackComplianceScoresResponseDeserializer {
  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_conformance_pack_compliance_scores::de_list_conformance_pack_compliance_scores_http_error(
  166         -
                status, headers, body,
  167         -
            )
         169  +
        if !success && status != 200 || force_error {
         170  +
            let headers = response.headers();
         171  +
            let body = response.body().bytes().expect("body loaded");
         172  +
            #[allow(unused_mut)]
         173  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         174  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         175  +
            })?;
         176  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         177  +
            let generic = generic_builder.build();
         178  +
            let error_code = match generic.code() {
         179  +
                ::std::option::Option::Some(code) => code,
         180  +
                ::std::option::Option::None => {
         181  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         182  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         183  +
                            crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError::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_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError::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_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError::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  +
"InvalidParameterValueException" => crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError::InvalidParameterValueException({
         220  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         221  +
                        .and_then(|mut deser| crate::types::error::InvalidParameterValueException::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  +
_ => crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresError::generic(generic)
         233  +
};
         234  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         235  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         236  +
            ))
  168    237   
        } else {
  169         -
            crate::protocol_serde::shape_list_conformance_pack_compliance_scores::de_list_conformance_pack_compliance_scores_http_response(
  170         -
                status, headers, body,
  171         -
            )
  172         -
        };
  173         -
        crate::protocol_serde::type_erase_result(parse_result)
         238  +
            let protocol = _cfg
         239  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         240  +
                .expect("a SharedClientProtocol is required");
         241  +
            let mut deser = protocol
         242  +
                .deserialize_response(response, ListConformancePackComplianceScores::OUTPUT_SCHEMA, _cfg)
         243  +
                .map_err(|e| {
         244  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         245  +
                })?;
         246  +
            let body = response.body().bytes().expect("body loaded");
         247  +
            let output =
         248  +
                crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresOutput::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  +
        }
  174    259   
    }
  175    260   
}
  176    261   
#[derive(Debug)]
  177    262   
struct ListConformancePackComplianceScoresRequestSerializer;
  178    263   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListConformancePackComplianceScoresRequestSerializer {
  179    264   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  180    265   
    fn serialize_input(
  181    266   
        &self,
  182    267   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  183    268   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  184    269   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  185    270   
        let input = input
  186    271   
            .downcast::<crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresInput>()
  187    272   
            .expect("correct type");
  188         -
        let _header_serialization_settings = _cfg
  189         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  190         -
            .cloned()
  191         -
            .unwrap_or_default();
  192         -
        let mut request_builder = {
  193         -
            #[allow(clippy::uninlined_format_args)]
  194         -
            fn uri_base(
  195         -
                _input: &crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresInput,
  196         -
                output: &mut ::std::string::String,
  197         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  198         -
                use ::std::fmt::Write as _;
  199         -
                ::std::write!(output, "/").expect("formatting should succeed");
  200         -
                ::std::result::Result::Ok(())
  201         -
            }
  202         -
            #[allow(clippy::unnecessary_wraps)]
  203         -
            fn update_http_builder(
  204         -
                input: &crate::operation::list_conformance_pack_compliance_scores::ListConformancePackComplianceScoresInput,
  205         -
                builder: ::http_1x::request::Builder,
  206         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  207         -
                let mut uri = ::std::string::String::new();
  208         -
                uri_base(input, &mut uri)?;
  209         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  210         -
            }
  211         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  212         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  213         -
            builder = _header_serialization_settings.set_default_header(
  214         -
                builder,
  215         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  216         -
                "StarlingDoveService.ListConformancePackComplianceScores",
  217         -
            );
  218         -
            builder
  219         -
        };
  220         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  221         -
            crate::protocol_serde::shape_list_conformance_pack_compliance_scores::ser_list_conformance_pack_compliance_scores_input(&input)?,
  222         -
        );
  223         -
        if let Some(content_length) = body.content_length() {
  224         -
            let content_length = content_length.to_string();
  225         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  226         -
        }
  227         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         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, ListConformancePackComplianceScores::INPUT_SCHEMA, "", _cfg)
         278  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         279  +
         280  +
        return ::std::result::Result::Ok(request);
  228    281   
    }
  229    282   
}
  230    283   
#[derive(Debug)]
  231    284   
struct ListConformancePackComplianceScoresEndpointParamsInterceptor;
  232    285   
  233    286   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListConformancePackComplianceScoresEndpointParamsInterceptor {
  234    287   
    fn name(&self) -> &'static str {
  235    288   
        "ListConformancePackComplianceScoresEndpointParamsInterceptor"
  236    289   
    }
  237    290   

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

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

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

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

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

@@ -1,1 +40,45 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `ListDiscoveredResources`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListDiscoveredResources;
    6      6   
impl ListDiscoveredResources {
    7      7   
    /// Creates a new `ListDiscoveredResources`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_discovered_resources::ListDiscoveredResourcesInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          15  +
        crate::operation::list_discovered_resources::ListDiscoveredResourcesOutput::SCHEMA;
   11     16   
    pub(crate) async fn orchestrate(
   12     17   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     18   
        input: crate::operation::list_discovered_resources::ListDiscoveredResourcesInput,
   14     19   
    ) -> ::std::result::Result<
   15     20   
        crate::operation::list_discovered_resources::ListDiscoveredResourcesOutput,
   16     21   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     22   
            crate::operation::list_discovered_resources::ListDiscoveredResourcesError,
   18     23   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     24   
        >,
   20     25   
    > {
@@ -124,129 +253,369 @@
  144    149   
                crate::operation::list_discovered_resources::ListDiscoveredResourcesError,
  145    150   
            >::new());
  146    151   
  147    152   
        ::std::borrow::Cow::Owned(rcb)
  148    153   
    }
  149    154   
}
  150    155   
  151    156   
#[derive(Debug)]
  152    157   
struct ListDiscoveredResourcesResponseDeserializer;
  153    158   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListDiscoveredResourcesResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         159  +
    fn deserialize_nonstreaming_with_config(
  155    160   
        &self,
  156    161   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         162  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    163   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    164   
        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    165   
        #[allow(unused_mut)]
  162    166   
        let mut force_error = false;
  163    167   
        ::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_discovered_resources::de_list_discovered_resources_http_error(status, headers, body)
         168  +
        if !success && status != 200 || force_error {
         169  +
            let headers = response.headers();
         170  +
            let body = response.body().bytes().expect("body loaded");
         171  +
            #[allow(unused_mut)]
         172  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         173  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         174  +
            })?;
         175  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         176  +
            let generic = generic_builder.build();
         177  +
            let error_code = match generic.code() {
         178  +
                ::std::option::Option::Some(code) => code,
         179  +
                ::std::option::Option::None => {
         180  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         181  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         182  +
                            crate::operation::list_discovered_resources::ListDiscoveredResourcesError::unhandled(generic),
         183  +
                        ),
         184  +
                    ))
         185  +
                }
         186  +
            };
         187  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         188  +
            let protocol = _cfg
         189  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         190  +
                .expect("a SharedClientProtocol is required");
         191  +
            let err = match error_code {
         192  +
                "InvalidLimitException" => crate::operation::list_discovered_resources::ListDiscoveredResourcesError::InvalidLimitException({
         193  +
                    let mut tmp = match protocol
         194  +
                        .deserialize_response(response, crate::types::error::InvalidLimitException::SCHEMA, _cfg)
         195  +
                        .and_then(|mut deser| {
         196  +
                            crate::types::error::InvalidLimitException::deserialize_with_response(
         197  +
                                &mut *deser,
         198  +
                                response.headers(),
         199  +
                                response.status().into(),
         200  +
                                body,
         201  +
                            )
         202  +
                        }) {
         203  +
                        ::std::result::Result::Ok(val) => val,
         204  +
                        ::std::result::Result::Err(e) => {
         205  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         206  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         207  +
                            ))
         208  +
                        }
         209  +
                    };
         210  +
                    tmp.meta = generic;
         211  +
                    if tmp.message.is_none() {
         212  +
                        tmp.message = _error_message;
         213  +
                    }
         214  +
                    tmp
         215  +
                }),
         216  +
                "InvalidNextTokenException" => {
         217  +
                    crate::operation::list_discovered_resources::ListDiscoveredResourcesError::InvalidNextTokenException({
         218  +
                        let mut tmp = match protocol
         219  +
                            .deserialize_response(response, crate::types::error::InvalidNextTokenException::SCHEMA, _cfg)
         220  +
                            .and_then(|mut deser| {
         221  +
                                crate::types::error::InvalidNextTokenException::deserialize_with_response(
         222  +
                                    &mut *deser,
         223  +
                                    response.headers(),
         224  +
                                    response.status().into(),
         225  +
                                    body,
         226  +
                                )
         227  +
                            }) {
         228  +
                            ::std::result::Result::Ok(val) => val,
         229  +
                            ::std::result::Result::Err(e) => {
         230  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         231  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         232  +
                                ))
         233  +
                            }
         234  +
                        };
         235  +
                        tmp.meta = generic;
         236  +
                        if tmp.message.is_none() {
         237  +
                            tmp.message = _error_message;
         238  +
                        }
         239  +
                        tmp
         240  +
                    })
         241  +
                }
         242  +
                "NoAvailableConfigurationRecorderException" => {
         243  +
                    crate::operation::list_discovered_resources::ListDiscoveredResourcesError::NoAvailableConfigurationRecorderException({
         244  +
                        let mut tmp = match protocol
         245  +
                            .deserialize_response(response, crate::types::error::NoAvailableConfigurationRecorderException::SCHEMA, _cfg)
         246  +
                            .and_then(|mut deser| {
         247  +
                                crate::types::error::NoAvailableConfigurationRecorderException::deserialize_with_response(
         248  +
                                    &mut *deser,
         249  +
                                    response.headers(),
         250  +
                                    response.status().into(),
         251  +
                                    body,
         252  +
                                )
         253  +
                            }) {
         254  +
                            ::std::result::Result::Ok(val) => val,
         255  +
                            ::std::result::Result::Err(e) => {
         256  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         257  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         258  +
                                ))
         259  +
                            }
         260  +
                        };
         261  +
                        tmp.meta = generic;
         262  +
                        if tmp.message.is_none() {
         263  +
                            tmp.message = _error_message;
         264  +
                        }
         265  +
                        tmp
         266  +
                    })
         267  +
                }
         268  +
                "ValidationException" => crate::operation::list_discovered_resources::ListDiscoveredResourcesError::ValidationException({
         269  +
                    let mut tmp = match protocol
         270  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         271  +
                        .and_then(|mut deser| {
         272  +
                            crate::types::error::ValidationException::deserialize_with_response(
         273  +
                                &mut *deser,
         274  +
                                response.headers(),
         275  +
                                response.status().into(),
         276  +
                                body,
         277  +
                            )
         278  +
                        }) {
         279  +
                        ::std::result::Result::Ok(val) => val,
         280  +
                        ::std::result::Result::Err(e) => {
         281  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         282  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         283  +
                            ))
         284  +
                        }
         285  +
                    };
         286  +
                    tmp.meta = generic;
         287  +
                    if tmp.message.is_none() {
         288  +
                        tmp.message = _error_message;
         289  +
                    }
         290  +
                    tmp
         291  +
                }),
         292  +
                _ => crate::operation::list_discovered_resources::ListDiscoveredResourcesError::generic(generic),
         293  +
            };
         294  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         295  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         296  +
            ))
  166    297   
        } else {
  167         -
            crate::protocol_serde::shape_list_discovered_resources::de_list_discovered_resources_http_response(status, headers, body)
  168         -
        };
  169         -
        crate::protocol_serde::type_erase_result(parse_result)
         298  +
            let protocol = _cfg
         299  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         300  +
                .expect("a SharedClientProtocol is required");
         301  +
            let mut deser = protocol
         302  +
                .deserialize_response(response, ListDiscoveredResources::OUTPUT_SCHEMA, _cfg)
         303  +
                .map_err(|e| {
         304  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         305  +
                })?;
         306  +
            let body = response.body().bytes().expect("body loaded");
         307  +
            let output = crate::operation::list_discovered_resources::ListDiscoveredResourcesOutput::deserialize_with_response(
         308  +
                &mut *deser,
         309  +
                response.headers(),
         310  +
                response.status().into(),
         311  +
                body,
         312  +
            )
         313  +
            .map_err(|e| {
         314  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         315  +
            })?;
         316  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         317  +
        }
  170    318   
    }
  171    319   
}
  172    320   
#[derive(Debug)]
  173    321   
struct ListDiscoveredResourcesRequestSerializer;
  174    322   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListDiscoveredResourcesRequestSerializer {
  175    323   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  176    324   
    fn serialize_input(
  177    325   
        &self,
  178    326   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  179    327   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  180    328   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  181    329   
        let input = input
  182    330   
            .downcast::<crate::operation::list_discovered_resources::ListDiscoveredResourcesInput>()
  183    331   
            .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_discovered_resources::ListDiscoveredResourcesInput,
  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_discovered_resources::ListDiscoveredResourcesInput,
  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.ListDiscoveredResources",
  213         -
            );
  214         -
            builder
  215         -
        };
  216         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  217         -
            crate::protocol_serde::shape_list_discovered_resources::ser_list_discovered_resources_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())
         332  +
        let protocol = _cfg
         333  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         334  +
            .expect("a SharedClientProtocol is required");
         335  +
        let mut request = protocol
         336  +
            .serialize_request(&input, ListDiscoveredResources::INPUT_SCHEMA, "", _cfg)
         337  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         338  +
         339  +
        return ::std::result::Result::Ok(request);
  224    340   
    }
  225    341   
}
  226    342   
#[derive(Debug)]
  227    343   
struct ListDiscoveredResourcesEndpointParamsInterceptor;
  228    344   
  229    345   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListDiscoveredResourcesEndpointParamsInterceptor {
  230    346   
    fn name(&self) -> &'static str {
  231    347   
        "ListDiscoveredResourcesEndpointParamsInterceptor"
  232    348   
    }
  233    349   

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

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

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

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

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

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

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

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

@@ -6,6 +140,192 @@
   26     26   
    "com.amazonaws.configservice.synthetic",
   27     27   
    "ListResourceEvaluationsOutput",
   28     28   
);
   29     29   
static LISTRESOURCEEVALUATIONSOUTPUT_MEMBER_RESOURCE_EVALUATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.configservice.synthetic#ListResourceEvaluationsOutput$ResourceEvaluations",
   32     32   
        "com.amazonaws.configservice.synthetic",
   33     33   
        "ListResourceEvaluationsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "resource_evaluations",
          36  +
    "ResourceEvaluations",
   37     37   
    0,
   38     38   
);
   39     39   
static LISTRESOURCEEVALUATIONSOUTPUT_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#ListResourceEvaluationsOutput$NextToken",
   42     42   
        "com.amazonaws.configservice.synthetic",
   43     43   
        "ListResourceEvaluationsOutput",
   44     44   
    ),
   45     45   
    ::aws_smithy_schema::ShapeType::String,
   46         -
    "next_token",
          46  +
    "NextToken",
   47     47   
    1,
   48     48   
);
          49  +
static LISTRESOURCEEVALUATIONSOUTPUT_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 LISTRESOURCEEVALUATIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    LISTRESOURCEEVALUATIONSOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52     59   
    &[
   53     60   
        &LISTRESOURCEEVALUATIONSOUTPUT_MEMBER_RESOURCE_EVALUATIONS,
   54     61   
        &LISTRESOURCEEVALUATIONSOUTPUT_MEMBER_NEXT_TOKEN,
          62  +
        &LISTRESOURCEEVALUATIONSOUTPUT_MEMBER__REQUEST_ID,
   55     63   
    ],
   56     64   
);
   57     65   
impl ListResourceEvaluationsOutput {
   58     66   
    /// The schema for this shape.
   59     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTRESOURCEEVALUATIONSOUTPUT_SCHEMA;
   60     68   
}
   61     69   
impl ::aws_smithy_schema::serde::SerializableStruct for ListResourceEvaluationsOutput {
   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_evaluations {
   68     76   
            ser.write_list(
   69     77   
                &LISTRESOURCEEVALUATIONSOUTPUT_MEMBER_RESOURCE_EVALUATIONS,
   70     78   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   71     79   
                    for item in val {
   72     80   
                        ser.write_struct(crate::types::ResourceEvaluation::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(&LISTRESOURCEEVALUATIONSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   80     88   
        }
   81     89   
        Ok(())
   82     90   
    }
   83     91   
}
   84     92   
impl ListResourceEvaluationsOutput {
   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(&LISTRESOURCEEVALUATIONSOUTPUT_SCHEMA, (), |_, member, deser| {
         106  +
        deserializer.read_struct(&LISTRESOURCEEVALUATIONSOUTPUT_SCHEMA, &mut |member, deser| {
         107  +
            match member.member_index() {
         108  +
                Some(0) => {
         109  +
                    builder.resource_evaluations = Some({
         110  +
                        let mut container = Vec::new();
         111  +
                        deser.read_list(member, &mut |deser| {
         112  +
                            container.push(crate::types::ResourceEvaluation::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 ListResourceEvaluationsOutput {
         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(&LISTRESOURCEEVALUATIONSOUTPUT_SCHEMA, &mut |member, deser| {
   99    154   
            match member.member_index() {
  100    155   
                Some(0) => {
  101    156   
                    builder.resource_evaluations = 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::ResourceEvaluation::deserialize(deser)?);
  109         -
                            Ok(list)
  110         -
                        })?
         157  +
                        let mut container = Vec::new();
         158  +
                        deser.read_list(member, &mut |deser| {
         159  +
                            container.push(crate::types::ResourceEvaluation::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_stored_queries.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 `ListStoredQueries`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListStoredQueries;
    6      6   
impl ListStoredQueries {
    7      7   
    /// Creates a new `ListStoredQueries`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_stored_queries::ListStoredQueriesInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_stored_queries::ListStoredQueriesOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::list_stored_queries::ListStoredQueriesInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_stored_queries::ListStoredQueriesOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_stored_queries::ListStoredQueriesError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +245,310 @@
  138    142   
                crate::operation::list_stored_queries::ListStoredQueriesError,
  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 ListStoredQueriesResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListStoredQueriesResponseDeserializer {
  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_list_stored_queries::de_list_stored_queries_http_error(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(
         175  +
                            crate::operation::list_stored_queries::ListStoredQueriesError::unhandled(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  +
                "InvalidNextTokenException" => crate::operation::list_stored_queries::ListStoredQueriesError::InvalidNextTokenException({
         186  +
                    let mut tmp = match protocol
         187  +
                        .deserialize_response(response, crate::types::error::InvalidNextTokenException::SCHEMA, _cfg)
         188  +
                        .and_then(|mut deser| {
         189  +
                            crate::types::error::InvalidNextTokenException::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  +
                        }
         202  +
                    };
         203  +
                    tmp.meta = generic;
         204  +
                    if tmp.message.is_none() {
         205  +
                        tmp.message = _error_message;
         206  +
                    }
         207  +
                    tmp
         208  +
                }),
         209  +
                "ValidationException" => crate::operation::list_stored_queries::ListStoredQueriesError::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::list_stored_queries::ListStoredQueriesError::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  +
            ))
  160    238   
        } else {
  161         -
            crate::protocol_serde::shape_list_stored_queries::de_list_stored_queries_http_response(status, headers, body)
  162         -
        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         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, ListStoredQueries::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::list_stored_queries::ListStoredQueriesOutput::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 ListStoredQueriesRequestSerializer;
  168    263   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListStoredQueriesRequestSerializer {
  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::list_stored_queries::ListStoredQueriesInput>()
  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::list_stored_queries::ListStoredQueriesInput,
  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::list_stored_queries::ListStoredQueriesInput,
  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.ListStoredQueries",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_list_stored_queries::ser_list_stored_queries_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, ListStoredQueries::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 ListStoredQueriesEndpointParamsInterceptor;
  220    285   
  221    286   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListStoredQueriesEndpointParamsInterceptor {
  222    287   
    fn name(&self) -> &'static str {
  223    288   
        "ListStoredQueriesEndpointParamsInterceptor"
  224    289   
    }
  225    290