AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12 (ignoring whitespace)

Files changed:

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

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

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

@@ -1,1 +96,143 @@
   18     18   
    "com.amazonaws.configservice.synthetic",
   19     19   
    "PutRetentionConfigurationOutput",
   20     20   
);
   21     21   
static PUTRETENTIONCONFIGURATIONOUTPUT_MEMBER_RETENTION_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.configservice.synthetic#PutRetentionConfigurationOutput$RetentionConfiguration",
   24     24   
        "com.amazonaws.configservice.synthetic",
   25     25   
        "PutRetentionConfigurationOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "retention_configuration",
          28  +
    "RetentionConfiguration",
   29     29   
    0,
   30     30   
);
          31  +
static PUTRETENTIONCONFIGURATIONOUTPUT_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 PUTRETENTIONCONFIGURATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     39   
    PUTRETENTIONCONFIGURATIONOUTPUT_SCHEMA_ID,
   33     40   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    &[&PUTRETENTIONCONFIGURATIONOUTPUT_MEMBER_RETENTION_CONFIGURATION],
          41  +
    &[
          42  +
        &PUTRETENTIONCONFIGURATIONOUTPUT_MEMBER_RETENTION_CONFIGURATION,
          43  +
        &PUTRETENTIONCONFIGURATIONOUTPUT_MEMBER__REQUEST_ID,
          44  +
    ],
   35     45   
);
   36     46   
impl PutRetentionConfigurationOutput {
   37     47   
    /// The schema for this shape.
   38     48   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTRETENTIONCONFIGURATIONOUTPUT_SCHEMA;
   39     49   
}
   40     50   
impl ::aws_smithy_schema::serde::SerializableStruct for PutRetentionConfigurationOutput {
   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.retention_configuration {
   47     57   
            ser.write_struct(&PUTRETENTIONCONFIGURATIONOUTPUT_MEMBER_RETENTION_CONFIGURATION, val)?;
   48     58   
        }
   49     59   
        Ok(())
   50     60   
    }
   51     61   
}
   52     62   
impl PutRetentionConfigurationOutput {
   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(&PUTRETENTIONCONFIGURATIONOUTPUT_SCHEMA, (), |_, member, deser| {
          76  +
        deserializer.read_struct(&PUTRETENTIONCONFIGURATIONOUTPUT_SCHEMA, &mut |member, deser| {
          77  +
            match member.member_index() {
          78  +
                Some(0) => {
          79  +
                    builder.retention_configuration = Some(crate::types::RetentionConfiguration::deserialize(deser)?);
          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 PutRetentionConfigurationOutput {
          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(&PUTRETENTIONCONFIGURATIONOUTPUT_SCHEMA, &mut |member, deser| {
   67    114   
            match member.member_index() {
   68    115   
                Some(0) => {
   69    116   
                    builder.retention_configuration = Some(crate::types::RetentionConfiguration::deserialize(deser)?);
   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/put_service_linked_configuration_recorder.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 `PutServiceLinkedConfigurationRecorder`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutServiceLinkedConfigurationRecorder;
    6      6   
impl PutServiceLinkedConfigurationRecorder {
    7      7   
    /// Creates a new `PutServiceLinkedConfigurationRecorder`
    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::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderOutput::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::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +257,325 @@
  144    150   
                crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError,
  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 PutServiceLinkedConfigurationRecorderResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutServiceLinkedConfigurationRecorderResponseDeserializer {
  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_put_service_linked_configuration_recorder::de_put_service_linked_configuration_recorder_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::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError::unhandled(
         184  +
                                generic,
         185  +
                            ),
         186  +
                        ),
         187  +
                    ))
         188  +
                }
         189  +
            };
         190  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         191  +
            let protocol = _cfg
         192  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         193  +
                .expect("a SharedClientProtocol is required");
         194  +
            let err = match error_code {
         195  +
"ConflictException" => crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError::ConflictException({
         196  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::ConflictException::SCHEMA, _cfg)
         197  +
                        .and_then(|mut deser| crate::types::error::ConflictException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         198  +
                    {
         199  +
                        ::std::result::Result::Ok(val) => val,
         200  +
                        ::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))),
         201  +
                    };
         202  +
                    tmp.meta = generic;
         203  +
if tmp.message.is_none() {
         204  +
                                tmp.message = _error_message;
         205  +
                            }
         206  +
tmp
         207  +
}),
         208  +
"InsufficientPermissionsException" => crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError::InsufficientPermissionsException({
         209  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::InsufficientPermissionsException::SCHEMA, _cfg)
         210  +
                        .and_then(|mut deser| crate::types::error::InsufficientPermissionsException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         211  +
                    {
         212  +
                        ::std::result::Result::Ok(val) => val,
         213  +
                        ::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))),
         214  +
                    };
         215  +
                    tmp.meta = generic;
         216  +
if tmp.message.is_none() {
         217  +
                                tmp.message = _error_message;
         218  +
                            }
         219  +
tmp
         220  +
}),
         221  +
"LimitExceededException" => crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError::LimitExceededException({
         222  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::LimitExceededException::SCHEMA, _cfg)
         223  +
                        .and_then(|mut deser| crate::types::error::LimitExceededException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         224  +
                    {
         225  +
                        ::std::result::Result::Ok(val) => val,
         226  +
                        ::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))),
         227  +
                    };
         228  +
                    tmp.meta = generic;
         229  +
if tmp.message.is_none() {
         230  +
                                tmp.message = _error_message;
         231  +
                            }
         232  +
tmp
         233  +
}),
         234  +
"ValidationException" => crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError::ValidationException({
         235  +
let mut tmp = match protocol.deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         236  +
                        .and_then(|mut deser| crate::types::error::ValidationException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
         237  +
                    {
         238  +
                        ::std::result::Result::Ok(val) => val,
         239  +
                        ::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))),
         240  +
                    };
         241  +
                    tmp.meta = generic;
         242  +
if tmp.message.is_none() {
         243  +
                                tmp.message = _error_message;
         244  +
                            }
         245  +
tmp
         246  +
}),
         247  +
_ => crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderError::generic(generic)
         248  +
};
         249  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         250  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         251  +
            ))
  168    252   
        } else {
  169         -
            crate::protocol_serde::shape_put_service_linked_configuration_recorder::de_put_service_linked_configuration_recorder_http_response(
  170         -
                status, headers, body,
         253  +
            let protocol = _cfg
         254  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         255  +
                .expect("a SharedClientProtocol is required");
         256  +
            let mut deser = protocol
         257  +
                .deserialize_response(response, PutServiceLinkedConfigurationRecorder::OUTPUT_SCHEMA, _cfg)
         258  +
                .map_err(|e| {
         259  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         260  +
                })?;
         261  +
            let body = response.body().bytes().expect("body loaded");
         262  +
            let output =
         263  +
                crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderOutput::deserialize_with_response(
         264  +
                    &mut *deser,
         265  +
                    response.headers(),
         266  +
                    response.status().into(),
         267  +
                    body,
  171    268   
                )
  172         -
        };
  173         -
        crate::protocol_serde::type_erase_result(parse_result)
         269  +
                .map_err(|e| {
         270  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         271  +
                })?;
         272  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         273  +
        }
  174    274   
    }
  175    275   
}
  176    276   
#[derive(Debug)]
  177    277   
struct PutServiceLinkedConfigurationRecorderRequestSerializer;
  178    278   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for PutServiceLinkedConfigurationRecorderRequestSerializer {
  179    279   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  180    280   
    fn serialize_input(
  181    281   
        &self,
  182    282   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  183    283   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  184    284   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  185    285   
        let input = input
  186    286   
            .downcast::<crate::operation::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderInput>()
  187    287   
            .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::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderInput,
  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::put_service_linked_configuration_recorder::PutServiceLinkedConfigurationRecorderInput,
  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.PutServiceLinkedConfigurationRecorder",
  217         -
            );
  218         -
            builder
  219         -
        };
  220         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  221         -
            crate::protocol_serde::shape_put_service_linked_configuration_recorder::ser_put_service_linked_configuration_recorder_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())
         288  +
        let protocol = _cfg
         289  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         290  +
            .expect("a SharedClientProtocol is required");
         291  +
        let mut request = protocol
         292  +
            .serialize_request(&input, PutServiceLinkedConfigurationRecorder::INPUT_SCHEMA, "", _cfg)
         293  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         294  +
         295  +
        return ::std::result::Result::Ok(request);
  228    296   
    }
  229    297   
}
  230    298   
#[derive(Debug)]
  231    299   
struct PutServiceLinkedConfigurationRecorderEndpointParamsInterceptor;
  232    300   
  233    301   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutServiceLinkedConfigurationRecorderEndpointParamsInterceptor {
  234    302   
    fn name(&self) -> &'static str {
  235    303   
        "PutServiceLinkedConfigurationRecorderEndpointParamsInterceptor"
  236    304   
    }
  237    305   

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

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

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

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

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

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

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/select_aggregate_resource_config.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 `SelectAggregateResourceConfig`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct SelectAggregateResourceConfig;
    6      6   
impl SelectAggregateResourceConfig {
    7      7   
    /// Creates a new `SelectAggregateResourceConfig`
    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::select_aggregate_resource_config::SelectAggregateResourceConfigInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigOutput::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::select_aggregate_resource_config::SelectAggregateResourceConfigInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +253,374 @@
  144    150   
                crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError,
  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 SelectAggregateResourceConfigResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for SelectAggregateResourceConfigResponseDeserializer {
  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_select_aggregate_resource_config::de_select_aggregate_resource_config_http_error(status, headers, body)
  166         -
        } else {
  167         -
            crate::protocol_serde::shape_select_aggregate_resource_config::de_select_aggregate_resource_config_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::select_aggregate_resource_config::SelectAggregateResourceConfigError::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  +
                "InvalidExpressionException" => {
         194  +
                    crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError::InvalidExpressionException({
         195  +
                        let mut tmp = match protocol
         196  +
                            .deserialize_response(response, crate::types::error::InvalidExpressionException::SCHEMA, _cfg)
         197  +
                            .and_then(|mut deser| {
         198  +
                                crate::types::error::InvalidExpressionException::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  +
                            }
  168    211   
                        };
  169         -
        crate::protocol_serde::type_erase_result(parse_result)
         212  +
                        tmp.meta = generic;
         213  +
                        if tmp.message.is_none() {
         214  +
                            tmp.message = _error_message;
         215  +
                        }
         216  +
                        tmp
         217  +
                    })
         218  +
                }
         219  +
                "InvalidLimitException" => {
         220  +
                    crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError::InvalidLimitException({
         221  +
                        let mut tmp = match protocol
         222  +
                            .deserialize_response(response, crate::types::error::InvalidLimitException::SCHEMA, _cfg)
         223  +
                            .and_then(|mut deser| {
         224  +
                                crate::types::error::InvalidLimitException::deserialize_with_response(
         225  +
                                    &mut *deser,
         226  +
                                    response.headers(),
         227  +
                                    response.status().into(),
         228  +
                                    body,
         229  +
                                )
         230  +
                            }) {
         231  +
                            ::std::result::Result::Ok(val) => val,
         232  +
                            ::std::result::Result::Err(e) => {
         233  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         234  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         235  +
                                ))
         236  +
                            }
         237  +
                        };
         238  +
                        tmp.meta = generic;
         239  +
                        if tmp.message.is_none() {
         240  +
                            tmp.message = _error_message;
         241  +
                        }
         242  +
                        tmp
         243  +
                    })
         244  +
                }
         245  +
                "InvalidNextTokenException" => {
         246  +
                    crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError::InvalidNextTokenException({
         247  +
                        let mut tmp = match protocol
         248  +
                            .deserialize_response(response, crate::types::error::InvalidNextTokenException::SCHEMA, _cfg)
         249  +
                            .and_then(|mut deser| {
         250  +
                                crate::types::error::InvalidNextTokenException::deserialize_with_response(
         251  +
                                    &mut *deser,
         252  +
                                    response.headers(),
         253  +
                                    response.status().into(),
         254  +
                                    body,
         255  +
                                )
         256  +
                            }) {
         257  +
                            ::std::result::Result::Ok(val) => val,
         258  +
                            ::std::result::Result::Err(e) => {
         259  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         260  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         261  +
                                ))
         262  +
                            }
         263  +
                        };
         264  +
                        tmp.meta = generic;
         265  +
                        if tmp.message.is_none() {
         266  +
                            tmp.message = _error_message;
         267  +
                        }
         268  +
                        tmp
         269  +
                    })
         270  +
                }
         271  +
                "NoSuchConfigurationAggregatorException" => {
         272  +
                    crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError::NoSuchConfigurationAggregatorException({
         273  +
                        let mut tmp = match protocol
         274  +
                            .deserialize_response(response, crate::types::error::NoSuchConfigurationAggregatorException::SCHEMA, _cfg)
         275  +
                            .and_then(|mut deser| {
         276  +
                                crate::types::error::NoSuchConfigurationAggregatorException::deserialize_with_response(
         277  +
                                    &mut *deser,
         278  +
                                    response.headers(),
         279  +
                                    response.status().into(),
         280  +
                                    body,
         281  +
                                )
         282  +
                            }) {
         283  +
                            ::std::result::Result::Ok(val) => val,
         284  +
                            ::std::result::Result::Err(e) => {
         285  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         286  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         287  +
                                ))
         288  +
                            }
         289  +
                        };
         290  +
                        tmp.meta = generic;
         291  +
                        if tmp.message.is_none() {
         292  +
                            tmp.message = _error_message;
         293  +
                        }
         294  +
                        tmp
         295  +
                    })
         296  +
                }
         297  +
                _ => crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigError::generic(generic),
         298  +
            };
         299  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         300  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         301  +
            ))
         302  +
        } else {
         303  +
            let protocol = _cfg
         304  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         305  +
                .expect("a SharedClientProtocol is required");
         306  +
            let mut deser = protocol
         307  +
                .deserialize_response(response, SelectAggregateResourceConfig::OUTPUT_SCHEMA, _cfg)
         308  +
                .map_err(|e| {
         309  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         310  +
                })?;
         311  +
            let body = response.body().bytes().expect("body loaded");
         312  +
            let output = crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigOutput::deserialize_with_response(
         313  +
                &mut *deser,
         314  +
                response.headers(),
         315  +
                response.status().into(),
         316  +
                body,
         317  +
            )
         318  +
            .map_err(|e| {
         319  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         320  +
            })?;
         321  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         322  +
        }
  170    323   
    }
  171    324   
}
  172    325   
#[derive(Debug)]
  173    326   
struct SelectAggregateResourceConfigRequestSerializer;
  174    327   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for SelectAggregateResourceConfigRequestSerializer {
  175    328   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  176    329   
    fn serialize_input(
  177    330   
        &self,
  178    331   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  179    332   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  180    333   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  181    334   
        let input = input
  182    335   
            .downcast::<crate::operation::select_aggregate_resource_config::SelectAggregateResourceConfigInput>()
  183    336   
            .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::select_aggregate_resource_config::SelectAggregateResourceConfigInput,
  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::select_aggregate_resource_config::SelectAggregateResourceConfigInput,
  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.SelectAggregateResourceConfig",
  213         -
            );
  214         -
            builder
  215         -
        };
  216         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  217         -
            crate::protocol_serde::shape_select_aggregate_resource_config::ser_select_aggregate_resource_config_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())
         337  +
        let protocol = _cfg
         338  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         339  +
            .expect("a SharedClientProtocol is required");
         340  +
        let mut request = protocol
         341  +
            .serialize_request(&input, SelectAggregateResourceConfig::INPUT_SCHEMA, "", _cfg)
         342  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         343  +
         344  +
        return ::std::result::Result::Ok(request);
  224    345   
    }
  225    346   
}
  226    347   
#[derive(Debug)]
  227    348   
struct SelectAggregateResourceConfigEndpointParamsInterceptor;
  228    349   
  229    350   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for SelectAggregateResourceConfigEndpointParamsInterceptor {
  230    351   
    fn name(&self) -> &'static str {
  231    352   
        "SelectAggregateResourceConfigEndpointParamsInterceptor"
  232    353   
    }
  233    354   

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/select_resource_config.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 `SelectResourceConfig`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct SelectResourceConfig;
    6      6   
impl SelectResourceConfig {
    7      7   
    /// Creates a new `SelectResourceConfig`
    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::select_resource_config::SelectResourceConfigInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::select_resource_config::SelectResourceConfigOutput::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::select_resource_config::SelectResourceConfigInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::select_resource_config::SelectResourceConfigOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::select_resource_config::SelectResourceConfigError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -124,128 +253,340 @@
  144    148   
                crate::operation::select_resource_config::SelectResourceConfigError,
  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 SelectResourceConfigResponseDeserializer;
  153    157   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for SelectResourceConfigResponseDeserializer {
  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_select_resource_config::de_select_resource_config_http_error(status, headers, body)
  166         -
        } else {
  167         -
            crate::protocol_serde::shape_select_resource_config::de_select_resource_config_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::select_resource_config::SelectResourceConfigError::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  +
                "InvalidExpressionException" => crate::operation::select_resource_config::SelectResourceConfigError::InvalidExpressionException({
         192  +
                    let mut tmp = match protocol
         193  +
                        .deserialize_response(response, crate::types::error::InvalidExpressionException::SCHEMA, _cfg)
         194  +
                        .and_then(|mut deser| {
         195  +
                            crate::types::error::InvalidExpressionException::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  +
                        }
         208  +
                    };
         209  +
                    tmp.meta = generic;
         210  +
                    if tmp.message.is_none() {
         211  +
                        tmp.message = _error_message;
         212  +
                    }
         213  +
                    tmp
         214  +
                }),
         215  +
                "InvalidLimitException" => crate::operation::select_resource_config::SelectResourceConfigError::InvalidLimitException({
         216  +
                    let mut tmp = match protocol
         217  +
                        .deserialize_response(response, crate::types::error::InvalidLimitException::SCHEMA, _cfg)
         218  +
                        .and_then(|mut deser| {
         219  +
                            crate::types::error::InvalidLimitException::deserialize_with_response(
         220  +
                                &mut *deser,
         221  +
                                response.headers(),
         222  +
                                response.status().into(),
         223  +
                                body,
         224  +
                            )
         225  +
                        }) {
         226  +
                        ::std::result::Result::Ok(val) => val,
         227  +
                        ::std::result::Result::Err(e) => {
         228  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         229  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         230  +
                            ))
         231  +
                        }
  168    232   
                    };
  169         -
        crate::protocol_serde::type_erase_result(parse_result)
         233  +
                    tmp.meta = generic;
         234  +
                    if tmp.message.is_none() {
         235  +
                        tmp.message = _error_message;
         236  +
                    }
         237  +
                    tmp
         238  +
                }),
         239  +
                "InvalidNextTokenException" => crate::operation::select_resource_config::SelectResourceConfigError::InvalidNextTokenException({
         240  +
                    let mut tmp = match protocol
         241  +
                        .deserialize_response(response, crate::types::error::InvalidNextTokenException::SCHEMA, _cfg)
         242  +
                        .and_then(|mut deser| {
         243  +
                            crate::types::error::InvalidNextTokenException::deserialize_with_response(
         244  +
                                &mut *deser,
         245  +
                                response.headers(),
         246  +
                                response.status().into(),
         247  +
                                body,
         248  +
                            )
         249  +
                        }) {
         250  +
                        ::std::result::Result::Ok(val) => val,
         251  +
                        ::std::result::Result::Err(e) => {
         252  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         253  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         254  +
                            ))
         255  +
                        }
         256  +
                    };
         257  +
                    tmp.meta = generic;
         258  +
                    if tmp.message.is_none() {
         259  +
                        tmp.message = _error_message;
         260  +
                    }
         261  +
                    tmp
         262  +
                }),
         263  +
                _ => crate::operation::select_resource_config::SelectResourceConfigError::generic(generic),
         264  +
            };
         265  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         266  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         267  +
            ))
         268  +
        } else {
         269  +
            let protocol = _cfg
         270  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         271  +
                .expect("a SharedClientProtocol is required");
         272  +
            let mut deser = protocol
         273  +
                .deserialize_response(response, SelectResourceConfig::OUTPUT_SCHEMA, _cfg)
         274  +
                .map_err(|e| {
         275  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         276  +
                })?;
         277  +
            let body = response.body().bytes().expect("body loaded");
         278  +
            let output = crate::operation::select_resource_config::SelectResourceConfigOutput::deserialize_with_response(
         279  +
                &mut *deser,
         280  +
                response.headers(),
         281  +
                response.status().into(),
         282  +
                body,
         283  +
            )
         284  +
            .map_err(|e| {
         285  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         286  +
            })?;
         287  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         288  +
        }
  170    289   
    }
  171    290   
}
  172    291   
#[derive(Debug)]
  173    292   
struct SelectResourceConfigRequestSerializer;
  174    293   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for SelectResourceConfigRequestSerializer {
  175    294   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  176    295   
    fn serialize_input(
  177    296   
        &self,
  178    297   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  179    298   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  180    299   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  181    300   
        let input = input
  182    301   
            .downcast::<crate::operation::select_resource_config::SelectResourceConfigInput>()
  183    302   
            .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::select_resource_config::SelectResourceConfigInput,
  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::select_resource_config::SelectResourceConfigInput,
  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.SelectResourceConfig",
  213         -
            );
  214         -
            builder
  215         -
        };
  216         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_select_resource_config::ser_select_resource_config_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())
         303  +
        let protocol = _cfg
         304  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         305  +
            .expect("a SharedClientProtocol is required");
         306  +
        let mut request = protocol
         307  +
            .serialize_request(&input, SelectResourceConfig::INPUT_SCHEMA, "", _cfg)
         308  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         309  +
         310  +
        return ::std::result::Result::Ok(request);
  224    311   
    }
  225    312   
}
  226    313   
#[derive(Debug)]
  227    314   
struct SelectResourceConfigEndpointParamsInterceptor;
  228    315   
  229    316   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for SelectResourceConfigEndpointParamsInterceptor {
  230    317   
    fn name(&self) -> &'static str {
  231    318   
        "SelectResourceConfigEndpointParamsInterceptor"
  232    319   
    }
  233    320