AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/get_conformance_pack_compliance_details.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 `GetConformancePackComplianceDetails`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetConformancePackComplianceDetails;
    6      6   
impl GetConformancePackComplianceDetails {
    7      7   
    /// Creates a new `GetConformancePackComplianceDetails`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +257,336 @@
  144    150   
                crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError,
  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 GetConformancePackComplianceDetailsResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetConformancePackComplianceDetailsResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159         -
        let headers = response.headers();
  160         -
        let body = response.body().bytes().expect("body loaded");
  161    166   
        #[allow(unused_mut)]
  162    167   
        let mut force_error = false;
  163    168   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164         -
        let parse_result = if !success && status != 200 || force_error {
  165         -
            crate::protocol_serde::shape_get_conformance_pack_compliance_details::de_get_conformance_pack_compliance_details_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::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError::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::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError::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::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError::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::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError::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::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError::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::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError::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::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsError::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_get_conformance_pack_compliance_details::de_get_conformance_pack_compliance_details_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, GetConformancePackComplianceDetails::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 =
         274  +
                crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsOutput::deserialize_with_response(
         275  +
                    &mut *deser,
         276  +
                    response.headers(),
         277  +
                    response.status().into(),
         278  +
                    body,
  171    279   
                )
  172         -
        };
  173         -
        crate::protocol_serde::type_erase_result(parse_result)
         280  +
                .map_err(|e| {
         281  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         282  +
                })?;
         283  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         284  +
        }
  174    285   
    }
  175    286   
}
  176    287   
#[derive(Debug)]
  177    288   
struct GetConformancePackComplianceDetailsRequestSerializer;
  178    289   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetConformancePackComplianceDetailsRequestSerializer {
  179    290   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  180    291   
    fn serialize_input(
  181    292   
        &self,
  182    293   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  183    294   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  184    295   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  185    296   
        let input = input
  186    297   
            .downcast::<crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsInput>()
  187    298   
            .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::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsInput,
  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::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsInput,
  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.GetConformancePackComplianceDetails",
  217         -
            );
  218         -
            builder
  219         -
        };
  220         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  221         -
            crate::protocol_serde::shape_get_conformance_pack_compliance_details::ser_get_conformance_pack_compliance_details_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())
         299  +
        let protocol = _cfg
         300  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         301  +
            .expect("a SharedClientProtocol is required");
         302  +
        let mut request = protocol
         303  +
            .serialize_request(&input, GetConformancePackComplianceDetails::INPUT_SCHEMA, "", _cfg)
         304  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         305  +
         306  +
        return ::std::result::Result::Ok(request);
  228    307   
    }
  229    308   
}
  230    309   
#[derive(Debug)]
  231    310   
struct GetConformancePackComplianceDetailsEndpointParamsInterceptor;
  232    311   
  233    312   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetConformancePackComplianceDetailsEndpointParamsInterceptor {
  234    313   
    fn name(&self) -> &'static str {
  235    314   
        "GetConformancePackComplianceDetailsEndpointParamsInterceptor"
  236    315   
    }
  237    316   

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

@@ -15,15 +179,191 @@
   35     35   
    "com.amazonaws.configservice.synthetic",
   36     36   
    "GetConformancePackComplianceDetailsInput",
   37     37   
);
   38     38   
static GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_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#GetConformancePackComplianceDetailsInput$ConformancePackName",
   41     41   
        "com.amazonaws.configservice.synthetic",
   42     42   
        "GetConformancePackComplianceDetailsInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "conformance_pack_name",
          45  +
    "ConformancePackName",
   46     46   
    0,
   47     47   
);
   48     48   
static GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_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#GetConformancePackComplianceDetailsInput$Filters",
   51     51   
        "com.amazonaws.configservice.synthetic",
   52     52   
        "GetConformancePackComplianceDetailsInput",
   53     53   
    ),
   54     54   
    ::aws_smithy_schema::ShapeType::Structure,
   55         -
    "filters",
          55  +
    "Filters",
   56     56   
    1,
   57     57   
);
   58     58   
static GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_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#GetConformancePackComplianceDetailsInput$Limit",
   61     61   
        "com.amazonaws.configservice.synthetic",
   62     62   
        "GetConformancePackComplianceDetailsInput",
   63     63   
    ),
   64     64   
    ::aws_smithy_schema::ShapeType::Integer,
   65         -
    "limit",
          65  +
    "Limit",
   66     66   
    2,
   67     67   
);
   68     68   
static GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_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#GetConformancePackComplianceDetailsInput$NextToken",
   71     71   
        "com.amazonaws.configservice.synthetic",
   72     72   
        "GetConformancePackComplianceDetailsInput",
   73     73   
    ),
   74     74   
    ::aws_smithy_schema::ShapeType::String,
   75         -
    "next_token",
          75  +
    "NextToken",
   76     76   
    3,
   77     77   
);
   78     78   
static GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   79     79   
    GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_SCHEMA_ID,
   80     80   
    ::aws_smithy_schema::ShapeType::Structure,
   81     81   
    &[
   82     82   
        &GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_MEMBER_CONFORMANCE_PACK_NAME,
   83     83   
        &GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_MEMBER_FILTERS,
   84     84   
        &GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_MEMBER_LIMIT,
   85     85   
        &GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_MEMBER_NEXT_TOKEN,
   86     86   
    ],
   87     87   
);
   88     88   
impl GetConformancePackComplianceDetailsInput {
   89     89   
    /// The schema for this shape.
   90     90   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_SCHEMA;
   91     91   
}
   92     92   
impl ::aws_smithy_schema::serde::SerializableStruct for GetConformancePackComplianceDetailsInput {
   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(&GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_MEMBER_CONFORMANCE_PACK_NAME, val)?;
  100    100   
        }
  101    101   
        if let Some(ref val) = self.filters {
  102    102   
            ser.write_struct(&GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_MEMBER_FILTERS, val)?;
  103    103   
        }
  104    104   
        if let Some(ref val) = self.limit {
  105    105   
            ser.write_integer(&GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_MEMBER_LIMIT, *val)?;
  106    106   
        }
  107    107   
        if let Some(ref val) = self.next_token {
  108    108   
            ser.write_string(&GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_MEMBER_NEXT_TOKEN, val)?;
  109    109   
        }
  110    110   
        Ok(())
  111    111   
    }
  112    112   
}
  113    113   
impl GetConformancePackComplianceDetailsInput {
  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(&GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_SCHEMA, (), |_, member, deser| {
         127  +
        deserializer.read_struct(&GETCONFORMANCEPACKCOMPLIANCEDETAILSINPUT_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::ConformancePackEvaluationFilters::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 GetConformancePackComplianceDetailsInput {
         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 GetConformancePackComplianceDetailsInput {
  151    163   
    /// Creates a new builder-style object to manufacture [`GetConformancePackComplianceDetailsInput`](crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsInput).
  152    164   
    pub fn builder() -> crate::operation::get_conformance_pack_compliance_details::builders::GetConformancePackComplianceDetailsInputBuilder {
  153    165   
        crate::operation::get_conformance_pack_compliance_details::builders::GetConformancePackComplianceDetailsInputBuilder::default()
  154    166   
    }
  155    167   
}
  156    168   
  157    169   
/// A builder for [`GetConformancePackComplianceDetailsInput`](crate::operation::get_conformance_pack_compliance_details::GetConformancePackComplianceDetailsInput).
  158    170   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  159    171   
#[non_exhaustive]

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

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

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

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `GetConformancePackComplianceSummary`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetConformancePackComplianceSummary;
    6      6   
impl GetConformancePackComplianceSummary {
    7      7   
    /// Creates a new `GetConformancePackComplianceSummary`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +257,310 @@
  144    150   
                crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError,
  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 GetConformancePackComplianceSummaryResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetConformancePackComplianceSummaryResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159         -
        let headers = response.headers();
  160         -
        let body = response.body().bytes().expect("body loaded");
  161    166   
        #[allow(unused_mut)]
  162    167   
        let mut force_error = false;
  163    168   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164         -
        let parse_result = if !success && status != 200 || force_error {
  165         -
            crate::protocol_serde::shape_get_conformance_pack_compliance_summary::de_get_conformance_pack_compliance_summary_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::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError::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::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError::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::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError::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  +
"NoSuchConformancePackException" => crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError::NoSuchConformancePackException({
         220  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::NoSuchConformancePackException::SCHEMA, _cfg)
         221  +
                        .and_then(|mut deser| crate::types::error::NoSuchConformancePackException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         222  +
                    {
         223  +
                        ::std::result::Result::Ok(val) => val,
         224  +
                        ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
         225  +
                    };
         226  +
                    tmp.meta = generic;
         227  +
if tmp.message.is_none() {
         228  +
                                tmp.message = _error_message;
         229  +
                            }
         230  +
tmp
         231  +
}),
         232  +
_ => crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryError::generic(generic)
         233  +
};
         234  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         235  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         236  +
            ))
  168    237   
        } else {
  169         -
            crate::protocol_serde::shape_get_conformance_pack_compliance_summary::de_get_conformance_pack_compliance_summary_http_response(
  170         -
                status, headers, body,
         238  +
            let protocol = _cfg
         239  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         240  +
                .expect("a SharedClientProtocol is required");
         241  +
            let mut deser = protocol
         242  +
                .deserialize_response(response, GetConformancePackComplianceSummary::OUTPUT_SCHEMA, _cfg)
         243  +
                .map_err(|e| {
         244  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         245  +
                })?;
         246  +
            let body = response.body().bytes().expect("body loaded");
         247  +
            let output =
         248  +
                crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryOutput::deserialize_with_response(
         249  +
                    &mut *deser,
         250  +
                    response.headers(),
         251  +
                    response.status().into(),
         252  +
                    body,
  171    253   
                )
  172         -
        };
  173         -
        crate::protocol_serde::type_erase_result(parse_result)
         254  +
                .map_err(|e| {
         255  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         256  +
                })?;
         257  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         258  +
        }
  174    259   
    }
  175    260   
}
  176    261   
#[derive(Debug)]
  177    262   
struct GetConformancePackComplianceSummaryRequestSerializer;
  178    263   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetConformancePackComplianceSummaryRequestSerializer {
  179    264   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  180    265   
    fn serialize_input(
  181    266   
        &self,
  182    267   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  183    268   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  184    269   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  185    270   
        let input = input
  186    271   
            .downcast::<crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryInput>()
  187    272   
            .expect("correct type");
  188         -
        let _header_serialization_settings = _cfg
  189         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  190         -
            .cloned()
  191         -
            .unwrap_or_default();
  192         -
        let mut request_builder = {
  193         -
            #[allow(clippy::uninlined_format_args)]
  194         -
            fn uri_base(
  195         -
                _input: &crate::operation::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryInput,
  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::get_conformance_pack_compliance_summary::GetConformancePackComplianceSummaryInput,
  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.GetConformancePackComplianceSummary",
  217         -
            );
  218         -
            builder
  219         -
        };
  220         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  221         -
            crate::protocol_serde::shape_get_conformance_pack_compliance_summary::ser_get_conformance_pack_compliance_summary_input(&input)?,
  222         -
        );
  223         -
        if let Some(content_length) = body.content_length() {
  224         -
            let content_length = content_length.to_string();
  225         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  226         -
        }
  227         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         273  +
        let protocol = _cfg
         274  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         275  +
            .expect("a SharedClientProtocol is required");
         276  +
        let mut request = protocol
         277  +
            .serialize_request(&input, GetConformancePackComplianceSummary::INPUT_SCHEMA, "", _cfg)
         278  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         279  +
         280  +
        return ::std::result::Result::Ok(request);
  228    281   
    }
  229    282   
}
  230    283   
#[derive(Debug)]
  231    284   
struct GetConformancePackComplianceSummaryEndpointParamsInterceptor;
  232    285   
  233    286   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetConformancePackComplianceSummaryEndpointParamsInterceptor {
  234    287   
    fn name(&self) -> &'static str {
  235    288   
        "GetConformancePackComplianceSummaryEndpointParamsInterceptor"
  236    289   
    }
  237    290   

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

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

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

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

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

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

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

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

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

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

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

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

@@ -17,17 +182,183 @@
   37     37   
    "com.amazonaws.configservice.synthetic",
   38     38   
    "GetDiscoveredResourceCountsInput",
   39     39   
);
   40     40   
static GETDISCOVEREDRESOURCECOUNTSINPUT_MEMBER_RESOURCE_TYPES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.configservice.synthetic#GetDiscoveredResourceCountsInput$resourceTypes",
   43     43   
        "com.amazonaws.configservice.synthetic",
   44     44   
        "GetDiscoveredResourceCountsInput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::List,
   47         -
    "resource_types",
          47  +
    "resourceTypes",
   48     48   
    0,
   49     49   
);
   50     50   
static GETDISCOVEREDRESOURCECOUNTSINPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   51     51   
    ::aws_smithy_schema::ShapeId::from_static(
   52     52   
        "com.amazonaws.configservice.synthetic#GetDiscoveredResourceCountsInput$limit",
   53     53   
        "com.amazonaws.configservice.synthetic",
   54     54   
        "GetDiscoveredResourceCountsInput",
   55     55   
    ),
   56     56   
    ::aws_smithy_schema::ShapeType::Integer,
   57     57   
    "limit",
   58     58   
    1,
   59     59   
);
   60     60   
static GETDISCOVEREDRESOURCECOUNTSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   61     61   
    ::aws_smithy_schema::ShapeId::from_static(
   62     62   
        "com.amazonaws.configservice.synthetic#GetDiscoveredResourceCountsInput$nextToken",
   63     63   
        "com.amazonaws.configservice.synthetic",
   64     64   
        "GetDiscoveredResourceCountsInput",
   65     65   
    ),
   66     66   
    ::aws_smithy_schema::ShapeType::String,
   67         -
    "next_token",
          67  +
    "nextToken",
   68     68   
    2,
   69     69   
);
   70     70   
static GETDISCOVEREDRESOURCECOUNTSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   71     71   
    GETDISCOVEREDRESOURCECOUNTSINPUT_SCHEMA_ID,
   72     72   
    ::aws_smithy_schema::ShapeType::Structure,
   73     73   
    &[
   74     74   
        &GETDISCOVEREDRESOURCECOUNTSINPUT_MEMBER_RESOURCE_TYPES,
   75     75   
        &GETDISCOVEREDRESOURCECOUNTSINPUT_MEMBER_LIMIT,
   76     76   
        &GETDISCOVEREDRESOURCECOUNTSINPUT_MEMBER_NEXT_TOKEN,
   77     77   
    ],
   78     78   
);
   79     79   
impl GetDiscoveredResourceCountsInput {
   80     80   
    /// The schema for this shape.
   81     81   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETDISCOVEREDRESOURCECOUNTSINPUT_SCHEMA;
   82     82   
}
   83     83   
impl ::aws_smithy_schema::serde::SerializableStruct for GetDiscoveredResourceCountsInput {
   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.resource_types {
   90     90   
            ser.write_list(
   91     91   
                &GETDISCOVEREDRESOURCECOUNTSINPUT_MEMBER_RESOURCE_TYPES,
   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.limit {
  101    101   
            ser.write_integer(&GETDISCOVEREDRESOURCECOUNTSINPUT_MEMBER_LIMIT, *val)?;
  102    102   
        }
  103    103   
        if let Some(ref val) = self.next_token {
  104    104   
            ser.write_string(&GETDISCOVEREDRESOURCECOUNTSINPUT_MEMBER_NEXT_TOKEN, val)?;
  105    105   
        }
  106    106   
        Ok(())
  107    107   
    }
  108    108   
}
  109    109   
impl GetDiscoveredResourceCountsInput {
  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(&GETDISCOVEREDRESOURCECOUNTSINPUT_SCHEMA, (), |_, member, deser| {
         123  +
        deserializer.read_struct(&GETDISCOVEREDRESOURCECOUNTSINPUT_SCHEMA, &mut |member, deser| {
  124    124   
            match member.member_index() {
  125    125   
                Some(0) => {
  126         -
                    builder.resource_types = 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.resource_types = Some(deser.read_string_list(member)?);
  137    127   
                }
  138    128   
                Some(1) => {
  139    129   
                    builder.limit = Some(deser.read_integer(member)?);
  140    130   
                }
  141    131   
                Some(2) => {
  142    132   
                    builder.next_token = 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 GetDiscoveredResourceCountsInput {
         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 GetDiscoveredResourceCountsInput {
  154    155   
    /// Creates a new builder-style object to manufacture [`GetDiscoveredResourceCountsInput`](crate::operation::get_discovered_resource_counts::GetDiscoveredResourceCountsInput).
  155    156   
    pub fn builder() -> crate::operation::get_discovered_resource_counts::builders::GetDiscoveredResourceCountsInputBuilder {
  156    157   
        crate::operation::get_discovered_resource_counts::builders::GetDiscoveredResourceCountsInputBuilder::default()
  157    158   
    }
  158    159   
}
  159    160   
  160    161   
/// A builder for [`GetDiscoveredResourceCountsInput`](crate::operation::get_discovered_resource_counts::GetDiscoveredResourceCountsInput).
  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/get_discovered_resource_counts/_get_discovered_resource_counts_output.rs

@@ -30,30 +182,237 @@
   50     50   
    "com.amazonaws.configservice.synthetic",
   51     51   
    "GetDiscoveredResourceCountsOutput",
   52     52   
);
   53     53   
static GETDISCOVEREDRESOURCECOUNTSOUTPUT_MEMBER_TOTAL_DISCOVERED_RESOURCES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   54     54   
    ::aws_smithy_schema::ShapeId::from_static(
   55     55   
        "com.amazonaws.configservice.synthetic#GetDiscoveredResourceCountsOutput$totalDiscoveredResources",
   56     56   
        "com.amazonaws.configservice.synthetic",
   57     57   
        "GetDiscoveredResourceCountsOutput",
   58     58   
    ),
   59     59   
    ::aws_smithy_schema::ShapeType::Long,
   60         -
    "total_discovered_resources",
          60  +
    "totalDiscoveredResources",
   61     61   
    0,
   62     62   
);
   63     63   
static GETDISCOVEREDRESOURCECOUNTSOUTPUT_MEMBER_RESOURCE_COUNTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   64     64   
    ::aws_smithy_schema::ShapeId::from_static(
   65     65   
        "com.amazonaws.configservice.synthetic#GetDiscoveredResourceCountsOutput$resourceCounts",
   66     66   
        "com.amazonaws.configservice.synthetic",
   67     67   
        "GetDiscoveredResourceCountsOutput",
   68     68   
    ),
   69     69   
    ::aws_smithy_schema::ShapeType::List,
   70         -
    "resource_counts",
          70  +
    "resourceCounts",
   71     71   
    1,
   72     72   
);
   73     73   
static GETDISCOVEREDRESOURCECOUNTSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   74     74   
    ::aws_smithy_schema::ShapeId::from_static(
   75     75   
        "com.amazonaws.configservice.synthetic#GetDiscoveredResourceCountsOutput$nextToken",
   76     76   
        "com.amazonaws.configservice.synthetic",
   77     77   
        "GetDiscoveredResourceCountsOutput",
   78     78   
    ),
   79     79   
    ::aws_smithy_schema::ShapeType::String,
   80         -
    "next_token",
          80  +
    "nextToken",
   81     81   
    2,
   82     82   
);
          83  +
static GETDISCOVEREDRESOURCECOUNTSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          84  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          85  +
    ::aws_smithy_schema::ShapeType::String,
          86  +
    "request_id",
          87  +
    3,
          88  +
)
          89  +
.with_http_header("x-amzn-requestid");
   83     90   
static GETDISCOVEREDRESOURCECOUNTSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   84     91   
    GETDISCOVEREDRESOURCECOUNTSOUTPUT_SCHEMA_ID,
   85     92   
    ::aws_smithy_schema::ShapeType::Structure,
   86     93   
    &[
   87     94   
        &GETDISCOVEREDRESOURCECOUNTSOUTPUT_MEMBER_TOTAL_DISCOVERED_RESOURCES,
   88     95   
        &GETDISCOVEREDRESOURCECOUNTSOUTPUT_MEMBER_RESOURCE_COUNTS,
   89     96   
        &GETDISCOVEREDRESOURCECOUNTSOUTPUT_MEMBER_NEXT_TOKEN,
          97  +
        &GETDISCOVEREDRESOURCECOUNTSOUTPUT_MEMBER__REQUEST_ID,
   90     98   
    ],
   91     99   
);
   92    100   
impl GetDiscoveredResourceCountsOutput {
   93    101   
    /// The schema for this shape.
   94    102   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETDISCOVEREDRESOURCECOUNTSOUTPUT_SCHEMA;
   95    103   
}
   96    104   
impl ::aws_smithy_schema::serde::SerializableStruct for GetDiscoveredResourceCountsOutput {
   97    105   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   98    106   
    fn serialize_members(
   99    107   
        &self,
  100    108   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  101    109   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  102    110   
        {
  103    111   
            let val = &self.total_discovered_resources;
  104    112   
            ser.write_long(&GETDISCOVEREDRESOURCECOUNTSOUTPUT_MEMBER_TOTAL_DISCOVERED_RESOURCES, *val)?;
  105    113   
        }
  106    114   
        if let Some(ref val) = self.resource_counts {
  107    115   
            ser.write_list(
  108    116   
                &GETDISCOVEREDRESOURCECOUNTSOUTPUT_MEMBER_RESOURCE_COUNTS,
  109    117   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  110    118   
                    for item in val {
  111    119   
                        ser.write_struct(crate::types::ResourceCount::SCHEMA, item)?;
  112    120   
                    }
  113    121   
                    Ok(())
  114    122   
                },
  115    123   
            )?;
  116    124   
        }
  117    125   
        if let Some(ref val) = self.next_token {
  118    126   
            ser.write_string(&GETDISCOVEREDRESOURCECOUNTSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
  119    127   
        }
  120    128   
        Ok(())
  121    129   
    }
  122    130   
}
  123    131   
impl GetDiscoveredResourceCountsOutput {
  124    132   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  125         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  126         -
        deserializer: &mut D,
         133  +
    pub fn deserialize(
         134  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         135  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         136  +
        #[allow(unused_variables, unused_mut)]
         137  +
        let mut builder = Self::builder();
         138  +
        #[allow(
         139  +
            unused_variables,
         140  +
            unreachable_code,
         141  +
            clippy::single_match,
         142  +
            clippy::match_single_binding,
         143  +
            clippy::diverging_sub_expression
         144  +
        )]
         145  +
        deserializer.read_struct(&GETDISCOVEREDRESOURCECOUNTSOUTPUT_SCHEMA, &mut |member, deser| {
         146  +
            match member.member_index() {
         147  +
                Some(0) => {
         148  +
                    builder.total_discovered_resources = Some(deser.read_long(member)?);
         149  +
                }
         150  +
                Some(1) => {
         151  +
                    builder.resource_counts = Some({
         152  +
                        let mut container = Vec::new();
         153  +
                        deser.read_list(member, &mut |deser| {
         154  +
                            container.push(crate::types::ResourceCount::deserialize(deser)?);
         155  +
                            Ok(())
         156  +
                        })?;
         157  +
                        container
         158  +
                    });
         159  +
                }
         160  +
                Some(2) => {
         161  +
                    builder.next_token = Some(deser.read_string(member)?);
         162  +
                }
         163  +
                Some(3) => {
         164  +
                    builder._request_id = Some(deser.read_string(member)?);
         165  +
                }
         166  +
                _ => {}
         167  +
            }
         168  +
            Ok(())
         169  +
        })?;
         170  +
        Ok(builder.build())
         171  +
    }
         172  +
}
         173  +
impl GetDiscoveredResourceCountsOutput {
         174  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         175  +
    /// Header-bound members are read directly from headers, avoiding runtime
         176  +
    /// member iteration overhead. Body members are read via the deserializer.
         177  +
    pub fn deserialize_with_response(
         178  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         179  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         180  +
        _status: u16,
         181  +
        _body: &[u8],
  127    182   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  128    183   
        #[allow(unused_variables, unused_mut)]
  129    184   
        let mut builder = Self::builder();
         185  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         186  +
            builder._request_id = Some(val.to_string());
         187  +
        }
  130    188   
        #[allow(
  131    189   
            unused_variables,
  132    190   
            unreachable_code,
  133    191   
            clippy::single_match,
  134    192   
            clippy::match_single_binding,
  135    193   
            clippy::diverging_sub_expression
  136    194   
        )]
  137         -
        deserializer.read_struct(&GETDISCOVEREDRESOURCECOUNTSOUTPUT_SCHEMA, (), |_, member, deser| {
         195  +
        deserializer.read_struct(&GETDISCOVEREDRESOURCECOUNTSOUTPUT_SCHEMA, &mut |member, deser| {
  138    196   
            match member.member_index() {
  139    197   
                Some(0) => {
  140    198   
                    builder.total_discovered_resources = Some(deser.read_long(member)?);
  141    199   
                }
  142    200   
                Some(1) => {
  143    201   
                    builder.resource_counts = Some({
  144         -
                        let container = if let Some(cap) = deser.container_size() {
  145         -
                            Vec::with_capacity(cap)
  146         -
                        } else {
  147         -
                            Vec::new()
  148         -
                        };
  149         -
                        deser.read_list(member, container, |mut list, deser| {
  150         -
                            list.push(crate::types::ResourceCount::deserialize(deser)?);
  151         -
                            Ok(list)
  152         -
                        })?
         202  +
                        let mut container = Vec::new();
         203  +
                        deser.read_list(member, &mut |deser| {
         204  +
                            container.push(crate::types::ResourceCount::deserialize(deser)?);
         205  +
                            Ok(())
         206  +
                        })?;
         207  +
                        container
  153    208   
                    });
  154    209   
                }
  155    210   
                Some(2) => {
  156    211   
                    builder.next_token = Some(deser.read_string(member)?);
  157    212   
                }
  158    213   
                _ => {}
  159    214   
            }
  160    215   
            Ok(())
  161    216   
        })?;
  162    217   
        Ok(builder.build())