AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36 (ignoring whitespace)

Files changed:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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,
          98  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          99  +
        #[allow(unused_variables, unused_mut)]
         100  +
        let mut builder = Self::builder();
         101  +
        #[allow(
         102  +
            unused_variables,
         103  +
            unreachable_code,
         104  +
            clippy::single_match,
         105  +
            clippy::match_single_binding,
         106  +
            clippy::diverging_sub_expression
         107  +
        )]
         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],
   90    145   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   91    146   
        #[allow(unused_variables, unused_mut)]
   92    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  +
        }
   93    151   
        #[allow(
   94    152   
            unused_variables,
   95    153   
            unreachable_code,
   96    154   
            clippy::single_match,
   97    155   
            clippy::match_single_binding,
   98    156   
            clippy::diverging_sub_expression
   99    157   
        )]
  100         -
        deserializer.read_struct(&LISTCONFIGURATIONRECORDERSOUTPUT_SCHEMA, (), |_, member, deser| {
         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   
    > {
@@ -127,133 +257,310 @@
  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    160   
    fn deserialize_nonstreaming(
  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,
         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,
  171    253   
                )
  172         -
        };
  173         -
        crate::protocol_serde::type_erase_result(parse_result)
         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| {
  101    109   
            match member.member_index() {
  102    110   
                Some(0) => {
  103    111   
                    builder.next_token = Some(deser.read_string(member)?);
  104    112   
                }
  105    113   
                Some(1) => {
  106    114   
                    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         -
                        })?
         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| {
         159  +
            match member.member_index() {
         160  +
                Some(0) => {
         161  +
                    builder.next_token = Some(deser.read_string(member)?);
         162  +
                }
         163  +
                Some(1) => {
         164  +
                    builder.conformance_pack_compliance_scores = Some({
         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   
    > {
@@ -127,132 +253,369 @@
  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    159   
    fn deserialize_nonstreaming(
  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)
  166         -
        } else {
  167         -
            crate::protocol_serde::shape_list_discovered_resources::de_list_discovered_resources_http_response(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),
  168    293   
            };
  169         -
        crate::protocol_serde::type_erase_result(parse_result)
         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  +
            ))
         297  +
        } else {
         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