AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045

Files changed:

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_configuration_aggregators.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 `DescribeConfigurationAggregators`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeConfigurationAggregators;
    6      6   
impl DescribeConfigurationAggregators {
    7      7   
    /// Creates a new `DescribeConfigurationAggregators`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +255,322 @@
  144    150   
                crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct DescribeConfigurationAggregatorsResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeConfigurationAggregatorsResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159         -
        let headers = response.headers();
  160         -
        let body = response.body().bytes().expect("body loaded");
  161    166   
        #[allow(unused_mut)]
  162    167   
        let mut force_error = false;
  163    168   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164         -
        let parse_result = if !success && status != 200 || force_error {
  165         -
            crate::protocol_serde::shape_describe_configuration_aggregators::de_describe_configuration_aggregators_http_error(status, headers, body)
         169  +
        if !success && status != 200 || force_error {
         170  +
            let headers = response.headers();
         171  +
            let body = response.body().bytes().expect("body loaded");
         172  +
            #[allow(unused_mut)]
         173  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         174  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         175  +
            })?;
         176  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         177  +
            let generic = generic_builder.build();
         178  +
            let error_code = match generic.code() {
         179  +
                ::std::option::Option::Some(code) => code,
         180  +
                ::std::option::Option::None => {
         181  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         182  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         183  +
                            crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsError::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::describe_configuration_aggregators::DescribeConfigurationAggregatorsError::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::describe_configuration_aggregators::DescribeConfigurationAggregatorsError::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::describe_configuration_aggregators::DescribeConfigurationAggregatorsError::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  +
"NoSuchConfigurationAggregatorException" => crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsError::NoSuchConfigurationAggregatorException({
         233  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::NoSuchConfigurationAggregatorException::SCHEMA, _cfg)
         234  +
                        .and_then(|mut deser| crate::types::error::NoSuchConfigurationAggregatorException::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::describe_configuration_aggregators::DescribeConfigurationAggregatorsError::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_describe_configuration_aggregators::de_describe_configuration_aggregators_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, DescribeConfigurationAggregators::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::describe_configuration_aggregators::DescribeConfigurationAggregatorsOutput::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 DescribeConfigurationAggregatorsRequestSerializer;
  176    275   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeConfigurationAggregatorsRequestSerializer {
  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::describe_configuration_aggregators::DescribeConfigurationAggregatorsInput>()
  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::describe_configuration_aggregators::DescribeConfigurationAggregatorsInput,
  194         -
                output: &mut ::std::string::String,
  195         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  196         -
                use ::std::fmt::Write as _;
  197         -
                ::std::write!(output, "/").expect("formatting should succeed");
  198         -
                ::std::result::Result::Ok(())
  199         -
            }
  200         -
            #[allow(clippy::unnecessary_wraps)]
  201         -
            fn update_http_builder(
  202         -
                input: &crate::operation::describe_configuration_aggregators::DescribeConfigurationAggregatorsInput,
  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.DescribeConfigurationAggregators",
  215         -
            );
  216         -
            builder
  217         -
        };
  218         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  219         -
            crate::protocol_serde::shape_describe_configuration_aggregators::ser_describe_configuration_aggregators_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, DescribeConfigurationAggregators::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 DescribeConfigurationAggregatorsEndpointParamsInterceptor;
  230    297   
  231    298   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeConfigurationAggregatorsEndpointParamsInterceptor {
  232    299   
    fn name(&self) -> &'static str {
  233    300   
        "DescribeConfigurationAggregatorsEndpointParamsInterceptor"
  234    301   
    }
  235    302   

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

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

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

@@ -6,6 +140,192 @@
   26     26   
    "com.amazonaws.configservice.synthetic",
   27     27   
    "DescribeConfigurationAggregatorsOutput",
   28     28   
);
   29     29   
static DESCRIBECONFIGURATIONAGGREGATORSOUTPUT_MEMBER_CONFIGURATION_AGGREGATORS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.configservice.synthetic#DescribeConfigurationAggregatorsOutput$ConfigurationAggregators",
   32     32   
        "com.amazonaws.configservice.synthetic",
   33     33   
        "DescribeConfigurationAggregatorsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "configuration_aggregators",
          36  +
    "ConfigurationAggregators",
   37     37   
    0,
   38     38   
);
   39     39   
static DESCRIBECONFIGURATIONAGGREGATORSOUTPUT_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#DescribeConfigurationAggregatorsOutput$NextToken",
   42     42   
        "com.amazonaws.configservice.synthetic",
   43     43   
        "DescribeConfigurationAggregatorsOutput",
   44     44   
    ),
   45     45   
    ::aws_smithy_schema::ShapeType::String,
   46         -
    "next_token",
          46  +
    "NextToken",
   47     47   
    1,
   48     48   
);
          49  +
static DESCRIBECONFIGURATIONAGGREGATORSOUTPUT_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 DESCRIBECONFIGURATIONAGGREGATORSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    DESCRIBECONFIGURATIONAGGREGATORSOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52     59   
    &[
   53     60   
        &DESCRIBECONFIGURATIONAGGREGATORSOUTPUT_MEMBER_CONFIGURATION_AGGREGATORS,
   54     61   
        &DESCRIBECONFIGURATIONAGGREGATORSOUTPUT_MEMBER_NEXT_TOKEN,
          62  +
        &DESCRIBECONFIGURATIONAGGREGATORSOUTPUT_MEMBER__REQUEST_ID,
   55     63   
    ],
   56     64   
);
   57     65   
impl DescribeConfigurationAggregatorsOutput {
   58     66   
    /// The schema for this shape.
   59     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBECONFIGURATIONAGGREGATORSOUTPUT_SCHEMA;
   60     68   
}
   61     69   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeConfigurationAggregatorsOutput {
   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.configuration_aggregators {
   68     76   
            ser.write_list(
   69     77   
                &DESCRIBECONFIGURATIONAGGREGATORSOUTPUT_MEMBER_CONFIGURATION_AGGREGATORS,
   70     78   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   71     79   
                    for item in val {
   72     80   
                        ser.write_struct(crate::types::ConfigurationAggregator::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(&DESCRIBECONFIGURATIONAGGREGATORSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   80     88   
        }
   81     89   
        Ok(())
   82     90   
    }
   83     91   
}
   84     92   
impl DescribeConfigurationAggregatorsOutput {
   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(&DESCRIBECONFIGURATIONAGGREGATORSOUTPUT_SCHEMA, (), |_, member, deser| {
         106  +
        deserializer.read_struct(&DESCRIBECONFIGURATIONAGGREGATORSOUTPUT_SCHEMA, &mut |member, deser| {
         107  +
            match member.member_index() {
         108  +
                Some(0) => {
         109  +
                    builder.configuration_aggregators = Some({
         110  +
                        let mut container = Vec::new();
         111  +
                        deser.read_list(member, &mut |deser| {
         112  +
                            container.push(crate::types::ConfigurationAggregator::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 DescribeConfigurationAggregatorsOutput {
         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(&DESCRIBECONFIGURATIONAGGREGATORSOUTPUT_SCHEMA, &mut |member, deser| {
   99    154   
            match member.member_index() {
  100    155   
                Some(0) => {
  101    156   
                    builder.configuration_aggregators = 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::ConfigurationAggregator::deserialize(deser)?);
  109         -
                            Ok(list)
  110         -
                        })?
         157  +
                        let mut container = Vec::new();
         158  +
                        deser.read_list(member, &mut |deser| {
         159  +
                            container.push(crate::types::ConfigurationAggregator::deserialize(deser)?);
         160  +
                            Ok(())
         161  +
                        })?;
         162  +
                        container
  111    163   
                    });
  112    164   
                }
  113    165   
                Some(1) => {
  114    166   
                    builder.next_token = Some(deser.read_string(member)?);
  115    167   
                }
  116    168   
                _ => {}
  117    169   
            }
  118    170   
            Ok(())
  119    171   
        })?;
  120    172   
        Ok(builder.build())

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

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

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_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 `DescribeConfigurationRecorders`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeConfigurationRecorders;
    6      6   
impl DescribeConfigurationRecorders {
    7      7   
    /// Creates a new `DescribeConfigurationRecorders`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +253,322 @@
  144    150   
                crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct DescribeConfigurationRecordersResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeConfigurationRecordersResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159         -
        let headers = response.headers();
  160         -
        let body = response.body().bytes().expect("body loaded");
  161    166   
        #[allow(unused_mut)]
  162    167   
        let mut force_error = false;
  163    168   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164         -
        let parse_result = if !success && status != 200 || force_error {
  165         -
            crate::protocol_serde::shape_describe_configuration_recorders::de_describe_configuration_recorders_http_error(status, headers, body)
         169  +
        if !success && status != 200 || force_error {
         170  +
            let headers = response.headers();
         171  +
            let body = response.body().bytes().expect("body loaded");
         172  +
            #[allow(unused_mut)]
         173  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         174  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         175  +
            })?;
         176  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         177  +
            let generic = generic_builder.build();
         178  +
            let error_code = match generic.code() {
         179  +
                ::std::option::Option::Some(code) => code,
         180  +
                ::std::option::Option::None => {
         181  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         182  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         183  +
                            crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersError::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  +
                "NoSuchConfigurationRecorderException" => {
         194  +
                    crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersError::NoSuchConfigurationRecorderException({
         195  +
                        let mut tmp = match protocol
         196  +
                            .deserialize_response(response, crate::types::error::NoSuchConfigurationRecorderException::SCHEMA, _cfg)
         197  +
                            .and_then(|mut deser| {
         198  +
                                crate::types::error::NoSuchConfigurationRecorderException::deserialize_with_response(
         199  +
                                    &mut *deser,
         200  +
                                    response.headers(),
         201  +
                                    response.status().into(),
         202  +
                                    body,
         203  +
                                )
         204  +
                            }) {
         205  +
                            ::std::result::Result::Ok(val) => val,
         206  +
                            ::std::result::Result::Err(e) => {
         207  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         208  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         209  +
                                ))
         210  +
                            }
         211  +
                        };
         212  +
                        tmp.meta = generic;
         213  +
                        if tmp.message.is_none() {
         214  +
                            tmp.message = _error_message;
         215  +
                        }
         216  +
                        tmp
         217  +
                    })
         218  +
                }
         219  +
                "ValidationException" => {
         220  +
                    crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersError::ValidationException({
         221  +
                        let mut tmp = match protocol
         222  +
                            .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         223  +
                            .and_then(|mut deser| {
         224  +
                                crate::types::error::ValidationException::deserialize_with_response(
         225  +
                                    &mut *deser,
         226  +
                                    response.headers(),
         227  +
                                    response.status().into(),
         228  +
                                    body,
         229  +
                                )
         230  +
                            }) {
         231  +
                            ::std::result::Result::Ok(val) => val,
         232  +
                            ::std::result::Result::Err(e) => {
         233  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         234  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         235  +
                                ))
         236  +
                            }
         237  +
                        };
         238  +
                        tmp.meta = generic;
         239  +
                        if tmp.message.is_none() {
         240  +
                            tmp.message = _error_message;
         241  +
                        }
         242  +
                        tmp
         243  +
                    })
         244  +
                }
         245  +
                _ => crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersError::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_describe_configuration_recorders::de_describe_configuration_recorders_http_response(status, headers, body)
  168         -
        };
  169         -
        crate::protocol_serde::type_erase_result(parse_result)
         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, DescribeConfigurationRecorders::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::describe_configuration_recorders::DescribeConfigurationRecordersOutput::deserialize_with_response(
         261  +
                &mut *deser,
         262  +
                response.headers(),
         263  +
                response.status().into(),
         264  +
                body,
         265  +
            )
         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  +
        }
  170    271   
    }
  171    272   
}
  172    273   
#[derive(Debug)]
  173    274   
struct DescribeConfigurationRecordersRequestSerializer;
  174    275   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeConfigurationRecordersRequestSerializer {
  175    276   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  176    277   
    fn serialize_input(
  177    278   
        &self,
  178    279   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  179    280   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  180    281   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  181    282   
        let input = input
  182    283   
            .downcast::<crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersInput>()
  183    284   
            .expect("correct type");
  184         -
        let _header_serialization_settings = _cfg
  185         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  186         -
            .cloned()
  187         -
            .unwrap_or_default();
  188         -
        let mut request_builder = {
  189         -
            #[allow(clippy::uninlined_format_args)]
  190         -
            fn uri_base(
  191         -
                _input: &crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersInput,
  192         -
                output: &mut ::std::string::String,
  193         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  194         -
                use ::std::fmt::Write as _;
  195         -
                ::std::write!(output, "/").expect("formatting should succeed");
  196         -
                ::std::result::Result::Ok(())
  197         -
            }
  198         -
            #[allow(clippy::unnecessary_wraps)]
  199         -
            fn update_http_builder(
  200         -
                input: &crate::operation::describe_configuration_recorders::DescribeConfigurationRecordersInput,
  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.DescribeConfigurationRecorders",
  213         -
            );
  214         -
            builder
  215         -
        };
  216         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  217         -
            crate::protocol_serde::shape_describe_configuration_recorders::ser_describe_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())
         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, DescribeConfigurationRecorders::INPUT_SCHEMA, "", _cfg)
         290  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         291  +
         292  +
        return ::std::result::Result::Ok(request);
  224    293   
    }
  225    294   
}
  226    295   
#[derive(Debug)]
  227    296   
struct DescribeConfigurationRecordersEndpointParamsInterceptor;
  228    297   
  229    298   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeConfigurationRecordersEndpointParamsInterceptor {
  230    299   
    fn name(&self) -> &'static str {
  231    300   
        "DescribeConfigurationRecordersEndpointParamsInterceptor"
  232    301   
    }
  233    302   

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/describe_conformance_pack_compliance.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 `DescribeConformancePackCompliance`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeConformancePackCompliance;
    6      6   
impl DescribeConformancePackCompliance {
    7      7   
    /// Creates a new `DescribeConformancePackCompliance`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +257,335 @@
  144    150   
                crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct DescribeConformancePackComplianceResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeConformancePackComplianceResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159         -
        let headers = response.headers();
  160         -
        let body = response.body().bytes().expect("body loaded");
  161    166   
        #[allow(unused_mut)]
  162    167   
        let mut force_error = false;
  163    168   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164         -
        let parse_result = if !success && status != 200 || force_error {
  165         -
            crate::protocol_serde::shape_describe_conformance_pack_compliance::de_describe_conformance_pack_compliance_http_error(
  166         -
                status, headers, body,
  167         -
            )
         169  +
        if !success && status != 200 || force_error {
         170  +
            let headers = response.headers();
         171  +
            let body = response.body().bytes().expect("body loaded");
         172  +
            #[allow(unused_mut)]
         173  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         174  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         175  +
            })?;
         176  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         177  +
            let generic = generic_builder.build();
         178  +
            let error_code = match generic.code() {
         179  +
                ::std::option::Option::Some(code) => code,
         180  +
                ::std::option::Option::None => {
         181  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         182  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         183  +
                            crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError::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::describe_conformance_pack_compliance::DescribeConformancePackComplianceError::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::describe_conformance_pack_compliance::DescribeConformancePackComplianceError::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::describe_conformance_pack_compliance::DescribeConformancePackComplianceError::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  +
"NoSuchConfigRuleInConformancePackException" => crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError::NoSuchConfigRuleInConformancePackException({
         233  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::NoSuchConfigRuleInConformancePackException::SCHEMA, _cfg)
         234  +
                        .and_then(|mut deser| crate::types::error::NoSuchConfigRuleInConformancePackException::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  +
"NoSuchConformancePackException" => crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError::NoSuchConformancePackException({
         246  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::NoSuchConformancePackException::SCHEMA, _cfg)
         247  +
                        .and_then(|mut deser| crate::types::error::NoSuchConformancePackException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         248  +
                    {
         249  +
                        ::std::result::Result::Ok(val) => val,
         250  +
                        ::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))),
         251  +
                    };
         252  +
                    tmp.meta = generic;
         253  +
if tmp.message.is_none() {
         254  +
                                tmp.message = _error_message;
         255  +
                            }
         256  +
tmp
         257  +
}),
         258  +
_ => crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceError::generic(generic)
         259  +
};
         260  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         261  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         262  +
            ))
  168    263   
        } else {
  169         -
            crate::protocol_serde::shape_describe_conformance_pack_compliance::de_describe_conformance_pack_compliance_http_response(
  170         -
                status, headers, body,
         264  +
            let protocol = _cfg
         265  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         266  +
                .expect("a SharedClientProtocol is required");
         267  +
            let mut deser = protocol
         268  +
                .deserialize_response(response, DescribeConformancePackCompliance::OUTPUT_SCHEMA, _cfg)
         269  +
                .map_err(|e| {
         270  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         271  +
                })?;
         272  +
            let body = response.body().bytes().expect("body loaded");
         273  +
            let output = crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceOutput::deserialize_with_response(
         274  +
                &mut *deser,
         275  +
                response.headers(),
         276  +
                response.status().into(),
         277  +
                body,
  171    278   
            )
  172         -
        };
  173         -
        crate::protocol_serde::type_erase_result(parse_result)
         279  +
            .map_err(|e| {
         280  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         281  +
            })?;
         282  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         283  +
        }
  174    284   
    }
  175    285   
}
  176    286   
#[derive(Debug)]
  177    287   
struct DescribeConformancePackComplianceRequestSerializer;
  178    288   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeConformancePackComplianceRequestSerializer {
  179    289   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  180    290   
    fn serialize_input(
  181    291   
        &self,
  182    292   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  183    293   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  184    294   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  185    295   
        let input = input
  186    296   
            .downcast::<crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceInput>()
  187    297   
            .expect("correct type");
  188         -
        let _header_serialization_settings = _cfg
  189         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  190         -
            .cloned()
  191         -
            .unwrap_or_default();
  192         -
        let mut request_builder = {
  193         -
            #[allow(clippy::uninlined_format_args)]
  194         -
            fn uri_base(
  195         -
                _input: &crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceInput,
  196         -
                output: &mut ::std::string::String,
  197         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  198         -
                use ::std::fmt::Write as _;
  199         -
                ::std::write!(output, "/").expect("formatting should succeed");
  200         -
                ::std::result::Result::Ok(())
  201         -
            }
  202         -
            #[allow(clippy::unnecessary_wraps)]
  203         -
            fn update_http_builder(
  204         -
                input: &crate::operation::describe_conformance_pack_compliance::DescribeConformancePackComplianceInput,
  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.DescribeConformancePackCompliance",
  217         -
            );
  218         -
            builder
  219         -
        };
  220         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  221         -
            crate::protocol_serde::shape_describe_conformance_pack_compliance::ser_describe_conformance_pack_compliance_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())
         298  +
        let protocol = _cfg
         299  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         300  +
            .expect("a SharedClientProtocol is required");
         301  +
        let mut request = protocol
         302  +
            .serialize_request(&input, DescribeConformancePackCompliance::INPUT_SCHEMA, "", _cfg)
         303  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         304  +
         305  +
        return ::std::result::Result::Ok(request);
  228    306   
    }
  229    307   
}
  230    308   
#[derive(Debug)]
  231    309   
struct DescribeConformancePackComplianceEndpointParamsInterceptor;
  232    310   
  233    311   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeConformancePackComplianceEndpointParamsInterceptor {
  234    312   
    fn name(&self) -> &'static str {
  235    313   
        "DescribeConformancePackComplianceEndpointParamsInterceptor"
  236    314   
    }
  237    315   

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

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