AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/execute_command/_execute_command_output.rs

@@ -28,28 +199,259 @@
   48     48   
    "com.amazonaws.ecs.synthetic",
   49     49   
    "ExecuteCommandOutput",
   50     50   
);
   51     51   
static EXECUTECOMMANDOUTPUT_MEMBER_CLUSTER_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   52     52   
    ::aws_smithy_schema::ShapeId::from_static(
   53     53   
        "com.amazonaws.ecs.synthetic#ExecuteCommandOutput$clusterArn",
   54     54   
        "com.amazonaws.ecs.synthetic",
   55     55   
        "ExecuteCommandOutput",
   56     56   
    ),
   57     57   
    ::aws_smithy_schema::ShapeType::String,
   58         -
    "cluster_arn",
          58  +
    "clusterArn",
   59     59   
    0,
   60     60   
);
   61     61   
static EXECUTECOMMANDOUTPUT_MEMBER_CONTAINER_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   62     62   
    ::aws_smithy_schema::ShapeId::from_static(
   63     63   
        "com.amazonaws.ecs.synthetic#ExecuteCommandOutput$containerArn",
   64     64   
        "com.amazonaws.ecs.synthetic",
   65     65   
        "ExecuteCommandOutput",
   66     66   
    ),
   67     67   
    ::aws_smithy_schema::ShapeType::String,
   68         -
    "container_arn",
          68  +
    "containerArn",
   69     69   
    1,
   70     70   
);
   71     71   
static EXECUTECOMMANDOUTPUT_MEMBER_CONTAINER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   72     72   
    ::aws_smithy_schema::ShapeId::from_static(
   73     73   
        "com.amazonaws.ecs.synthetic#ExecuteCommandOutput$containerName",
   74     74   
        "com.amazonaws.ecs.synthetic",
   75     75   
        "ExecuteCommandOutput",
   76     76   
    ),
   77     77   
    ::aws_smithy_schema::ShapeType::String,
   78         -
    "container_name",
          78  +
    "containerName",
   79     79   
    2,
   80     80   
);
   81     81   
static EXECUTECOMMANDOUTPUT_MEMBER_INTERACTIVE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   82     82   
    ::aws_smithy_schema::ShapeId::from_static(
   83     83   
        "com.amazonaws.ecs.synthetic#ExecuteCommandOutput$interactive",
   84     84   
        "com.amazonaws.ecs.synthetic",
   85     85   
        "ExecuteCommandOutput",
   86     86   
    ),
   87     87   
    ::aws_smithy_schema::ShapeType::Boolean,
   88     88   
    "interactive",
   89     89   
    3,
   90     90   
);
   91     91   
static EXECUTECOMMANDOUTPUT_MEMBER_SESSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   92     92   
    ::aws_smithy_schema::ShapeId::from_static(
   93     93   
        "com.amazonaws.ecs.synthetic#ExecuteCommandOutput$session",
   94     94   
        "com.amazonaws.ecs.synthetic",
   95     95   
        "ExecuteCommandOutput",
   96     96   
    ),
   97     97   
    ::aws_smithy_schema::ShapeType::Structure,
   98     98   
    "session",
   99     99   
    4,
  100    100   
);
  101    101   
static EXECUTECOMMANDOUTPUT_MEMBER_TASK_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  102    102   
    ::aws_smithy_schema::ShapeId::from_static(
  103    103   
        "com.amazonaws.ecs.synthetic#ExecuteCommandOutput$taskArn",
  104    104   
        "com.amazonaws.ecs.synthetic",
  105    105   
        "ExecuteCommandOutput",
  106    106   
    ),
  107    107   
    ::aws_smithy_schema::ShapeType::String,
  108         -
    "task_arn",
         108  +
    "taskArn",
  109    109   
    5,
  110    110   
);
         111  +
static EXECUTECOMMANDOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         112  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         113  +
    ::aws_smithy_schema::ShapeType::String,
         114  +
    "request_id",
         115  +
    6,
         116  +
)
         117  +
.with_http_header("x-amzn-requestid");
  111    118   
static EXECUTECOMMANDOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  112    119   
    EXECUTECOMMANDOUTPUT_SCHEMA_ID,
  113    120   
    ::aws_smithy_schema::ShapeType::Structure,
  114    121   
    &[
  115    122   
        &EXECUTECOMMANDOUTPUT_MEMBER_CLUSTER_ARN,
  116    123   
        &EXECUTECOMMANDOUTPUT_MEMBER_CONTAINER_ARN,
  117    124   
        &EXECUTECOMMANDOUTPUT_MEMBER_CONTAINER_NAME,
  118    125   
        &EXECUTECOMMANDOUTPUT_MEMBER_INTERACTIVE,
  119    126   
        &EXECUTECOMMANDOUTPUT_MEMBER_SESSION,
  120    127   
        &EXECUTECOMMANDOUTPUT_MEMBER_TASK_ARN,
         128  +
        &EXECUTECOMMANDOUTPUT_MEMBER__REQUEST_ID,
  121    129   
    ],
  122    130   
);
  123    131   
impl ExecuteCommandOutput {
  124    132   
    /// The schema for this shape.
  125    133   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &EXECUTECOMMANDOUTPUT_SCHEMA;
  126    134   
}
  127    135   
impl ::aws_smithy_schema::serde::SerializableStruct for ExecuteCommandOutput {
  128    136   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  129    137   
    fn serialize_members(
  130    138   
        &self,
  131    139   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  132    140   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  133    141   
        if let Some(ref val) = self.cluster_arn {
  134    142   
            ser.write_string(&EXECUTECOMMANDOUTPUT_MEMBER_CLUSTER_ARN, val)?;
  135    143   
        }
  136    144   
        if let Some(ref val) = self.container_arn {
  137    145   
            ser.write_string(&EXECUTECOMMANDOUTPUT_MEMBER_CONTAINER_ARN, val)?;
  138    146   
        }
  139    147   
        if let Some(ref val) = self.container_name {
  140    148   
            ser.write_string(&EXECUTECOMMANDOUTPUT_MEMBER_CONTAINER_NAME, val)?;
  141    149   
        }
  142    150   
        {
  143    151   
            let val = &self.interactive;
  144    152   
            ser.write_boolean(&EXECUTECOMMANDOUTPUT_MEMBER_INTERACTIVE, *val)?;
  145    153   
        }
  146    154   
        if let Some(ref val) = self.session {
  147    155   
            ser.write_struct(&EXECUTECOMMANDOUTPUT_MEMBER_SESSION, val)?;
  148    156   
        }
  149    157   
        if let Some(ref val) = self.task_arn {
  150    158   
            ser.write_string(&EXECUTECOMMANDOUTPUT_MEMBER_TASK_ARN, val)?;
  151    159   
        }
  152    160   
        Ok(())
  153    161   
    }
  154    162   
}
  155    163   
impl ExecuteCommandOutput {
  156    164   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  157         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  158         -
        deserializer: &mut D,
         165  +
    pub fn deserialize(
         166  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         167  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         168  +
        #[allow(unused_variables, unused_mut)]
         169  +
        let mut builder = Self::builder();
         170  +
        #[allow(
         171  +
            unused_variables,
         172  +
            unreachable_code,
         173  +
            clippy::single_match,
         174  +
            clippy::match_single_binding,
         175  +
            clippy::diverging_sub_expression
         176  +
        )]
         177  +
        deserializer.read_struct(&EXECUTECOMMANDOUTPUT_SCHEMA, &mut |member, deser| {
         178  +
            match member.member_index() {
         179  +
                Some(0) => {
         180  +
                    builder.cluster_arn = Some(deser.read_string(member)?);
         181  +
                }
         182  +
                Some(1) => {
         183  +
                    builder.container_arn = Some(deser.read_string(member)?);
         184  +
                }
         185  +
                Some(2) => {
         186  +
                    builder.container_name = Some(deser.read_string(member)?);
         187  +
                }
         188  +
                Some(3) => {
         189  +
                    builder.interactive = Some(deser.read_boolean(member)?);
         190  +
                }
         191  +
                Some(4) => {
         192  +
                    builder.session = Some(crate::types::Session::deserialize(deser)?);
         193  +
                }
         194  +
                Some(5) => {
         195  +
                    builder.task_arn = Some(deser.read_string(member)?);
         196  +
                }
         197  +
                Some(6) => {
         198  +
                    builder._request_id = Some(deser.read_string(member)?);
         199  +
                }
         200  +
                _ => {}
         201  +
            }
         202  +
            Ok(())
         203  +
        })?;
         204  +
        Ok(builder.build())
         205  +
    }
         206  +
}
         207  +
impl ExecuteCommandOutput {
         208  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         209  +
    /// Header-bound members are read directly from headers, avoiding runtime
         210  +
    /// member iteration overhead. Body members are read via the deserializer.
         211  +
    pub fn deserialize_with_response(
         212  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         213  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         214  +
        _status: u16,
         215  +
        _body: &[u8],
  159    216   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  160    217   
        #[allow(unused_variables, unused_mut)]
  161    218   
        let mut builder = Self::builder();
         219  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         220  +
            builder._request_id = Some(val.to_string());
         221  +
        }
  162    222   
        #[allow(
  163    223   
            unused_variables,
  164    224   
            unreachable_code,
  165    225   
            clippy::single_match,
  166    226   
            clippy::match_single_binding,
  167    227   
            clippy::diverging_sub_expression
  168    228   
        )]
  169         -
        deserializer.read_struct(&EXECUTECOMMANDOUTPUT_SCHEMA, (), |_, member, deser| {
         229  +
        deserializer.read_struct(&EXECUTECOMMANDOUTPUT_SCHEMA, &mut |member, deser| {
  170    230   
            match member.member_index() {
  171    231   
                Some(0) => {
  172    232   
                    builder.cluster_arn = Some(deser.read_string(member)?);
  173    233   
                }
  174    234   
                Some(1) => {
  175    235   
                    builder.container_arn = Some(deser.read_string(member)?);
  176    236   
                }
  177    237   
                Some(2) => {
  178    238   
                    builder.container_name = Some(deser.read_string(member)?);
  179    239   
                }

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/get_task_protection.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 `GetTaskProtection`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetTaskProtection;
    6      6   
impl GetTaskProtection {
    7      7   
    /// Creates a new `GetTaskProtection`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_task_protection::GetTaskProtectionInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_task_protection::GetTaskProtectionOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::get_task_protection::GetTaskProtectionInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_task_protection::GetTaskProtectionOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_task_protection::GetTaskProtectionError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +242,427 @@
  135    139   
                crate::operation::get_task_protection::GetTaskProtectionError,
  136    140   
            >::new());
  137    141   
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct GetTaskProtectionResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetTaskProtectionResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150         -
        let headers = response.headers();
  151         -
        let body = response.body().bytes().expect("body loaded");
  152    155   
        #[allow(unused_mut)]
  153    156   
        let mut force_error = false;
  154    157   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155         -
        let parse_result = if !success && status != 200 || force_error {
  156         -
            crate::protocol_serde::shape_get_task_protection::de_get_task_protection_http_error(status, headers, body)
         158  +
        if !success && status != 200 || force_error {
         159  +
            let headers = response.headers();
         160  +
            let body = response.body().bytes().expect("body loaded");
         161  +
            #[allow(unused_mut)]
         162  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         163  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         164  +
            })?;
         165  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         166  +
            let generic = generic_builder.build();
         167  +
            let error_code = match generic.code() {
         168  +
                ::std::option::Option::Some(code) => code,
         169  +
                ::std::option::Option::None => {
         170  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         171  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         172  +
                            crate::operation::get_task_protection::GetTaskProtectionError::unhandled(generic),
         173  +
                        ),
         174  +
                    ))
         175  +
                }
         176  +
            };
         177  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         178  +
            let protocol = _cfg
         179  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         180  +
                .expect("a SharedClientProtocol is required");
         181  +
            let err = match error_code {
         182  +
                "AccessDeniedException" => crate::operation::get_task_protection::GetTaskProtectionError::AccessDeniedException({
         183  +
                    let mut tmp = match protocol
         184  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         185  +
                        .and_then(|mut deser| {
         186  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         187  +
                                &mut *deser,
         188  +
                                response.headers(),
         189  +
                                response.status().into(),
         190  +
                                body,
         191  +
                            )
         192  +
                        }) {
         193  +
                        ::std::result::Result::Ok(val) => val,
         194  +
                        ::std::result::Result::Err(e) => {
         195  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         196  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         197  +
                            ))
         198  +
                        }
         199  +
                    };
         200  +
                    tmp.meta = generic;
         201  +
                    if tmp.message.is_none() {
         202  +
                        tmp.message = _error_message;
         203  +
                    }
         204  +
                    tmp
         205  +
                }),
         206  +
                "ClientException" => crate::operation::get_task_protection::GetTaskProtectionError::ClientException({
         207  +
                    let mut tmp = match protocol
         208  +
                        .deserialize_response(response, crate::types::error::ClientException::SCHEMA, _cfg)
         209  +
                        .and_then(|mut deser| {
         210  +
                            crate::types::error::ClientException::deserialize_with_response(
         211  +
                                &mut *deser,
         212  +
                                response.headers(),
         213  +
                                response.status().into(),
         214  +
                                body,
         215  +
                            )
         216  +
                        }) {
         217  +
                        ::std::result::Result::Ok(val) => val,
         218  +
                        ::std::result::Result::Err(e) => {
         219  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         220  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         221  +
                            ))
         222  +
                        }
         223  +
                    };
         224  +
                    tmp.meta = generic;
         225  +
                    if tmp.message.is_none() {
         226  +
                        tmp.message = _error_message;
         227  +
                    }
         228  +
                    tmp
         229  +
                }),
         230  +
                "ClusterNotFoundException" => crate::operation::get_task_protection::GetTaskProtectionError::ClusterNotFoundException({
         231  +
                    let mut tmp = match protocol
         232  +
                        .deserialize_response(response, crate::types::error::ClusterNotFoundException::SCHEMA, _cfg)
         233  +
                        .and_then(|mut deser| {
         234  +
                            crate::types::error::ClusterNotFoundException::deserialize_with_response(
         235  +
                                &mut *deser,
         236  +
                                response.headers(),
         237  +
                                response.status().into(),
         238  +
                                body,
         239  +
                            )
         240  +
                        }) {
         241  +
                        ::std::result::Result::Ok(val) => val,
         242  +
                        ::std::result::Result::Err(e) => {
         243  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         244  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         245  +
                            ))
         246  +
                        }
         247  +
                    };
         248  +
                    tmp.meta = generic;
         249  +
                    if tmp.message.is_none() {
         250  +
                        tmp.message = _error_message;
         251  +
                    }
         252  +
                    tmp
         253  +
                }),
         254  +
                "InvalidParameterException" => crate::operation::get_task_protection::GetTaskProtectionError::InvalidParameterException({
         255  +
                    let mut tmp = match protocol
         256  +
                        .deserialize_response(response, crate::types::error::InvalidParameterException::SCHEMA, _cfg)
         257  +
                        .and_then(|mut deser| {
         258  +
                            crate::types::error::InvalidParameterException::deserialize_with_response(
         259  +
                                &mut *deser,
         260  +
                                response.headers(),
         261  +
                                response.status().into(),
         262  +
                                body,
         263  +
                            )
         264  +
                        }) {
         265  +
                        ::std::result::Result::Ok(val) => val,
         266  +
                        ::std::result::Result::Err(e) => {
         267  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         268  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         269  +
                            ))
         270  +
                        }
         271  +
                    };
         272  +
                    tmp.meta = generic;
         273  +
                    if tmp.message.is_none() {
         274  +
                        tmp.message = _error_message;
         275  +
                    }
         276  +
                    tmp
         277  +
                }),
         278  +
                "ResourceNotFoundException" => crate::operation::get_task_protection::GetTaskProtectionError::ResourceNotFoundException({
         279  +
                    let mut tmp = match protocol
         280  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         281  +
                        .and_then(|mut deser| {
         282  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         283  +
                                &mut *deser,
         284  +
                                response.headers(),
         285  +
                                response.status().into(),
         286  +
                                body,
         287  +
                            )
         288  +
                        }) {
         289  +
                        ::std::result::Result::Ok(val) => val,
         290  +
                        ::std::result::Result::Err(e) => {
         291  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         292  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         293  +
                            ))
         294  +
                        }
         295  +
                    };
         296  +
                    tmp.meta = generic;
         297  +
                    if tmp.message.is_none() {
         298  +
                        tmp.message = _error_message;
         299  +
                    }
         300  +
                    tmp
         301  +
                }),
         302  +
                "ServerException" => crate::operation::get_task_protection::GetTaskProtectionError::ServerException({
         303  +
                    let mut tmp = match protocol
         304  +
                        .deserialize_response(response, crate::types::error::ServerException::SCHEMA, _cfg)
         305  +
                        .and_then(|mut deser| {
         306  +
                            crate::types::error::ServerException::deserialize_with_response(
         307  +
                                &mut *deser,
         308  +
                                response.headers(),
         309  +
                                response.status().into(),
         310  +
                                body,
         311  +
                            )
         312  +
                        }) {
         313  +
                        ::std::result::Result::Ok(val) => val,
         314  +
                        ::std::result::Result::Err(e) => {
         315  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         316  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         317  +
                            ))
         318  +
                        }
         319  +
                    };
         320  +
                    tmp.meta = generic;
         321  +
                    if tmp.message.is_none() {
         322  +
                        tmp.message = _error_message;
         323  +
                    }
         324  +
                    tmp
         325  +
                }),
         326  +
                "UnsupportedFeatureException" => crate::operation::get_task_protection::GetTaskProtectionError::UnsupportedFeatureException({
         327  +
                    let mut tmp = match protocol
         328  +
                        .deserialize_response(response, crate::types::error::UnsupportedFeatureException::SCHEMA, _cfg)
         329  +
                        .and_then(|mut deser| {
         330  +
                            crate::types::error::UnsupportedFeatureException::deserialize_with_response(
         331  +
                                &mut *deser,
         332  +
                                response.headers(),
         333  +
                                response.status().into(),
         334  +
                                body,
         335  +
                            )
         336  +
                        }) {
         337  +
                        ::std::result::Result::Ok(val) => val,
         338  +
                        ::std::result::Result::Err(e) => {
         339  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         340  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         341  +
                            ))
         342  +
                        }
         343  +
                    };
         344  +
                    tmp.meta = generic;
         345  +
                    if tmp.message.is_none() {
         346  +
                        tmp.message = _error_message;
         347  +
                    }
         348  +
                    tmp
         349  +
                }),
         350  +
                _ => crate::operation::get_task_protection::GetTaskProtectionError::generic(generic),
         351  +
            };
         352  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         353  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         354  +
            ))
  157    355   
        } else {
  158         -
            crate::protocol_serde::shape_get_task_protection::de_get_task_protection_http_response(status, headers, body)
  159         -
        };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         356  +
            let protocol = _cfg
         357  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         358  +
                .expect("a SharedClientProtocol is required");
         359  +
            let mut deser = protocol
         360  +
                .deserialize_response(response, GetTaskProtection::OUTPUT_SCHEMA, _cfg)
         361  +
                .map_err(|e| {
         362  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         363  +
                })?;
         364  +
            let body = response.body().bytes().expect("body loaded");
         365  +
            let output = crate::operation::get_task_protection::GetTaskProtectionOutput::deserialize_with_response(
         366  +
                &mut *deser,
         367  +
                response.headers(),
         368  +
                response.status().into(),
         369  +
                body,
         370  +
            )
         371  +
            .map_err(|e| {
         372  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         373  +
            })?;
         374  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         375  +
        }
  161    376   
    }
  162    377   
}
  163    378   
#[derive(Debug)]
  164    379   
struct GetTaskProtectionRequestSerializer;
  165    380   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetTaskProtectionRequestSerializer {
  166    381   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  167    382   
    fn serialize_input(
  168    383   
        &self,
  169    384   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  170    385   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  171    386   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  172    387   
        let input = input
  173    388   
            .downcast::<crate::operation::get_task_protection::GetTaskProtectionInput>()
  174    389   
            .expect("correct type");
  175         -
        let _header_serialization_settings = _cfg
  176         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  177         -
            .cloned()
  178         -
            .unwrap_or_default();
  179         -
        let mut request_builder = {
  180         -
            #[allow(clippy::uninlined_format_args)]
  181         -
            fn uri_base(
  182         -
                _input: &crate::operation::get_task_protection::GetTaskProtectionInput,
  183         -
                output: &mut ::std::string::String,
  184         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  185         -
                use ::std::fmt::Write as _;
  186         -
                ::std::write!(output, "/").expect("formatting should succeed");
  187         -
                ::std::result::Result::Ok(())
  188         -
            }
  189         -
            #[allow(clippy::unnecessary_wraps)]
  190         -
            fn update_http_builder(
  191         -
                input: &crate::operation::get_task_protection::GetTaskProtectionInput,
  192         -
                builder: ::http_1x::request::Builder,
  193         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  194         -
                let mut uri = ::std::string::String::new();
  195         -
                uri_base(input, &mut uri)?;
  196         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  197         -
            }
  198         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  199         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  200         -
            builder = _header_serialization_settings.set_default_header(
  201         -
                builder,
  202         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  203         -
                "AmazonEC2ContainerServiceV20141113.GetTaskProtection",
  204         -
            );
  205         -
            builder
  206         -
        };
  207         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_get_task_protection::ser_get_task_protection_input(&input)?);
  208         -
        if let Some(content_length) = body.content_length() {
  209         -
            let content_length = content_length.to_string();
  210         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  211         -
        }
  212         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         390  +
        let protocol = _cfg
         391  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         392  +
            .expect("a SharedClientProtocol is required");
         393  +
        let mut request = protocol
         394  +
            .serialize_request(&input, GetTaskProtection::INPUT_SCHEMA, "", _cfg)
         395  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         396  +
         397  +
        return ::std::result::Result::Ok(request);
  213    398   
    }
  214    399   
}
  215    400   
#[derive(Debug)]
  216    401   
struct GetTaskProtectionEndpointParamsInterceptor;
  217    402   
  218    403   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetTaskProtectionEndpointParamsInterceptor {
  219    404   
    fn name(&self) -> &'static str {
  220    405   
        "GetTaskProtectionEndpointParamsInterceptor"
  221    406   
    }
  222    407   

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/get_task_protection/_get_task_protection_input.rs

@@ -52,52 +150,152 @@
   72     72   
                    }
   73     73   
                    Ok(())
   74     74   
                },
   75     75   
            )?;
   76     76   
        }
   77     77   
        Ok(())
   78     78   
    }
   79     79   
}
   80     80   
impl GetTaskProtectionInput {
   81     81   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   82         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   83         -
        deserializer: &mut D,
          82  +
    pub fn deserialize(
          83  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   84     84   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   85     85   
        #[allow(unused_variables, unused_mut)]
   86     86   
        let mut builder = Self::builder();
   87     87   
        #[allow(
   88     88   
            unused_variables,
   89     89   
            unreachable_code,
   90     90   
            clippy::single_match,
   91     91   
            clippy::match_single_binding,
   92     92   
            clippy::diverging_sub_expression
   93     93   
        )]
   94         -
        deserializer.read_struct(&GETTASKPROTECTIONINPUT_SCHEMA, (), |_, member, deser| {
          94  +
        deserializer.read_struct(&GETTASKPROTECTIONINPUT_SCHEMA, &mut |member, deser| {
   95     95   
            match member.member_index() {
   96     96   
                Some(0) => {
   97     97   
                    builder.cluster = Some(deser.read_string(member)?);
   98     98   
                }
   99     99   
                Some(1) => {
  100         -
                    builder.tasks = Some({
  101         -
                        let container = if let Some(cap) = deser.container_size() {
  102         -
                            Vec::with_capacity(cap)
  103         -
                        } else {
  104         -
                            Vec::new()
  105         -
                        };
  106         -
                        deser.read_list(member, container, |mut list, deser| {
  107         -
                            list.push(deser.read_string(member)?);
  108         -
                            Ok(list)
  109         -
                        })?
  110         -
                    });
         100  +
                    builder.tasks = Some(deser.read_string_list(member)?);
  111    101   
                }
  112    102   
                _ => {}
  113    103   
            }
  114    104   
            Ok(())
  115    105   
        })?;
         106  +
        builder.cluster = builder.cluster.or(Some(String::new()));
  116    107   
        builder
  117    108   
            .build()
  118    109   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  119    110   
    }
  120    111   
}
         112  +
impl GetTaskProtectionInput {
         113  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         114  +
    pub fn deserialize_with_response(
         115  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         116  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         117  +
        _status: u16,
         118  +
        _body: &[u8],
         119  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         120  +
        Self::deserialize(deserializer)
         121  +
    }
         122  +
}
  121    123   
impl GetTaskProtectionInput {
  122    124   
    /// Creates a new builder-style object to manufacture [`GetTaskProtectionInput`](crate::operation::get_task_protection::GetTaskProtectionInput).
  123    125   
    pub fn builder() -> crate::operation::get_task_protection::builders::GetTaskProtectionInputBuilder {
  124    126   
        crate::operation::get_task_protection::builders::GetTaskProtectionInputBuilder::default()
  125    127   
    }
  126    128   
}
  127    129   
  128    130   
/// A builder for [`GetTaskProtectionInput`](crate::operation::get_task_protection::GetTaskProtectionInput).
  129    131   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  130    132   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/get_task_protection/_get_task_protection_output.rs

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

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

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/list_account_settings/_list_account_settings_input.rs

@@ -57,57 +235,246 @@
   77     77   
    "value",
   78     78   
    1,
   79     79   
);
   80     80   
static LISTACCOUNTSETTINGSINPUT_MEMBER_PRINCIPAL_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   81     81   
    ::aws_smithy_schema::ShapeId::from_static(
   82     82   
        "com.amazonaws.ecs.synthetic#ListAccountSettingsInput$principalArn",
   83     83   
        "com.amazonaws.ecs.synthetic",
   84     84   
        "ListAccountSettingsInput",
   85     85   
    ),
   86     86   
    ::aws_smithy_schema::ShapeType::String,
   87         -
    "principal_arn",
          87  +
    "principalArn",
   88     88   
    2,
   89     89   
);
   90     90   
static LISTACCOUNTSETTINGSINPUT_MEMBER_EFFECTIVE_SETTINGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static(
   92     92   
        "com.amazonaws.ecs.synthetic#ListAccountSettingsInput$effectiveSettings",
   93     93   
        "com.amazonaws.ecs.synthetic",
   94     94   
        "ListAccountSettingsInput",
   95     95   
    ),
   96     96   
    ::aws_smithy_schema::ShapeType::Boolean,
   97         -
    "effective_settings",
          97  +
    "effectiveSettings",
   98     98   
    3,
   99     99   
);
  100    100   
static LISTACCOUNTSETTINGSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  101    101   
    ::aws_smithy_schema::ShapeId::from_static(
  102    102   
        "com.amazonaws.ecs.synthetic#ListAccountSettingsInput$nextToken",
  103    103   
        "com.amazonaws.ecs.synthetic",
  104    104   
        "ListAccountSettingsInput",
  105    105   
    ),
  106    106   
    ::aws_smithy_schema::ShapeType::String,
  107         -
    "next_token",
         107  +
    "nextToken",
  108    108   
    4,
  109    109   
);
  110    110   
static LISTACCOUNTSETTINGSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  111    111   
    ::aws_smithy_schema::ShapeId::from_static(
  112    112   
        "com.amazonaws.ecs.synthetic#ListAccountSettingsInput$maxResults",
  113    113   
        "com.amazonaws.ecs.synthetic",
  114    114   
        "ListAccountSettingsInput",
  115    115   
    ),
  116    116   
    ::aws_smithy_schema::ShapeType::Integer,
  117         -
    "max_results",
         117  +
    "maxResults",
  118    118   
    5,
  119    119   
);
  120    120   
static LISTACCOUNTSETTINGSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  121    121   
    LISTACCOUNTSETTINGSINPUT_SCHEMA_ID,
  122    122   
    ::aws_smithy_schema::ShapeType::Structure,
  123    123   
    &[
  124    124   
        &LISTACCOUNTSETTINGSINPUT_MEMBER_NAME,
  125    125   
        &LISTACCOUNTSETTINGSINPUT_MEMBER_VALUE,
  126    126   
        &LISTACCOUNTSETTINGSINPUT_MEMBER_PRINCIPAL_ARN,
  127    127   
        &LISTACCOUNTSETTINGSINPUT_MEMBER_EFFECTIVE_SETTINGS,
  128    128   
        &LISTACCOUNTSETTINGSINPUT_MEMBER_NEXT_TOKEN,
  129    129   
        &LISTACCOUNTSETTINGSINPUT_MEMBER_MAX_RESULTS,
  130    130   
    ],
  131    131   
);
  132    132   
impl ListAccountSettingsInput {
  133    133   
    /// The schema for this shape.
  134    134   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTACCOUNTSETTINGSINPUT_SCHEMA;
  135    135   
}
  136    136   
impl ::aws_smithy_schema::serde::SerializableStruct for ListAccountSettingsInput {
  137    137   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  138    138   
    fn serialize_members(
  139    139   
        &self,
  140    140   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  141    141   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  142    142   
        if let Some(ref val) = self.name {
  143    143   
            ser.write_string(&LISTACCOUNTSETTINGSINPUT_MEMBER_NAME, val.as_str())?;
  144    144   
        }
  145    145   
        if let Some(ref val) = self.value {
  146    146   
            ser.write_string(&LISTACCOUNTSETTINGSINPUT_MEMBER_VALUE, val)?;
  147    147   
        }
  148    148   
        if let Some(ref val) = self.principal_arn {
  149    149   
            ser.write_string(&LISTACCOUNTSETTINGSINPUT_MEMBER_PRINCIPAL_ARN, val)?;
  150    150   
        }
  151    151   
        if let Some(ref val) = self.effective_settings {
  152    152   
            ser.write_boolean(&LISTACCOUNTSETTINGSINPUT_MEMBER_EFFECTIVE_SETTINGS, *val)?;
  153    153   
        }
  154    154   
        if let Some(ref val) = self.next_token {
  155    155   
            ser.write_string(&LISTACCOUNTSETTINGSINPUT_MEMBER_NEXT_TOKEN, val)?;
  156    156   
        }
  157    157   
        if let Some(ref val) = self.max_results {
  158    158   
            ser.write_integer(&LISTACCOUNTSETTINGSINPUT_MEMBER_MAX_RESULTS, *val)?;
  159    159   
        }
  160    160   
        Ok(())
  161    161   
    }
  162    162   
}
  163    163   
impl ListAccountSettingsInput {
  164    164   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  165         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  166         -
        deserializer: &mut D,
         165  +
    pub fn deserialize(
         166  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  167    167   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  168    168   
        #[allow(unused_variables, unused_mut)]
  169    169   
        let mut builder = Self::builder();
  170    170   
        #[allow(
  171    171   
            unused_variables,
  172    172   
            unreachable_code,
  173    173   
            clippy::single_match,
  174    174   
            clippy::match_single_binding,
  175    175   
            clippy::diverging_sub_expression
  176    176   
        )]
  177         -
        deserializer.read_struct(&LISTACCOUNTSETTINGSINPUT_SCHEMA, (), |_, member, deser| {
         177  +
        deserializer.read_struct(&LISTACCOUNTSETTINGSINPUT_SCHEMA, &mut |member, deser| {
  178    178   
            match member.member_index() {
  179    179   
                Some(0) => {
  180    180   
                    builder.name = Some(crate::types::SettingName::from(deser.read_string(member)?.as_str()));
  181    181   
                }
  182    182   
                Some(1) => {
  183    183   
                    builder.value = Some(deser.read_string(member)?);
  184    184   
                }
  185    185   
                Some(2) => {
  186    186   
                    builder.principal_arn = Some(deser.read_string(member)?);
  187    187   
                }
  188    188   
                Some(3) => {
  189    189   
                    builder.effective_settings = Some(deser.read_boolean(member)?);
  190    190   
                }
  191    191   
                Some(4) => {
  192    192   
                    builder.next_token = Some(deser.read_string(member)?);
  193    193   
                }
  194    194   
                Some(5) => {
  195    195   
                    builder.max_results = Some(deser.read_integer(member)?);
  196    196   
                }
  197    197   
                _ => {}
  198    198   
            }
  199    199   
            Ok(())
  200    200   
        })?;
  201    201   
        builder
  202    202   
            .build()
  203    203   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  204    204   
    }
  205    205   
}
         206  +
impl ListAccountSettingsInput {
         207  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         208  +
    pub fn deserialize_with_response(
         209  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         210  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         211  +
        _status: u16,
         212  +
        _body: &[u8],
         213  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         214  +
        Self::deserialize(deserializer)
         215  +
    }
         216  +
}
  206    217   
impl ListAccountSettingsInput {
  207    218   
    /// Creates a new builder-style object to manufacture [`ListAccountSettingsInput`](crate::operation::list_account_settings::ListAccountSettingsInput).
  208    219   
    pub fn builder() -> crate::operation::list_account_settings::builders::ListAccountSettingsInputBuilder {
  209    220   
        crate::operation::list_account_settings::builders::ListAccountSettingsInputBuilder::default()
  210    221   
    }
  211    222   
}
  212    223   
  213    224   
/// A builder for [`ListAccountSettingsInput`](crate::operation::list_account_settings::ListAccountSettingsInput).
  214    225   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  215    226   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/list_account_settings/_list_account_settings_output.rs

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

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

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/list_attributes/_list_attributes_input.rs

@@ -41,41 +229,240 @@
   61     61   
    "cluster",
   62     62   
    0,
   63     63   
);
   64     64   
static LISTATTRIBUTESINPUT_MEMBER_TARGET_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   65     65   
    ::aws_smithy_schema::ShapeId::from_static(
   66     66   
        "com.amazonaws.ecs.synthetic#ListAttributesInput$targetType",
   67     67   
        "com.amazonaws.ecs.synthetic",
   68     68   
        "ListAttributesInput",
   69     69   
    ),
   70     70   
    ::aws_smithy_schema::ShapeType::String,
   71         -
    "target_type",
          71  +
    "targetType",
   72     72   
    1,
   73     73   
);
   74     74   
static LISTATTRIBUTESINPUT_MEMBER_ATTRIBUTE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   75     75   
    ::aws_smithy_schema::ShapeId::from_static(
   76     76   
        "com.amazonaws.ecs.synthetic#ListAttributesInput$attributeName",
   77     77   
        "com.amazonaws.ecs.synthetic",
   78     78   
        "ListAttributesInput",
   79     79   
    ),
   80     80   
    ::aws_smithy_schema::ShapeType::String,
   81         -
    "attribute_name",
          81  +
    "attributeName",
   82     82   
    2,
   83     83   
);
   84     84   
static LISTATTRIBUTESINPUT_MEMBER_ATTRIBUTE_VALUE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static(
   86     86   
        "com.amazonaws.ecs.synthetic#ListAttributesInput$attributeValue",
   87     87   
        "com.amazonaws.ecs.synthetic",
   88     88   
        "ListAttributesInput",
   89     89   
    ),
   90     90   
    ::aws_smithy_schema::ShapeType::String,
   91         -
    "attribute_value",
          91  +
    "attributeValue",
   92     92   
    3,
   93     93   
);
   94     94   
static LISTATTRIBUTESINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.ecs.synthetic#ListAttributesInput$nextToken",
   97     97   
        "com.amazonaws.ecs.synthetic",
   98     98   
        "ListAttributesInput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::String,
  101         -
    "next_token",
         101  +
    "nextToken",
  102    102   
    4,
  103    103   
);
  104    104   
static LISTATTRIBUTESINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  105    105   
    ::aws_smithy_schema::ShapeId::from_static(
  106    106   
        "com.amazonaws.ecs.synthetic#ListAttributesInput$maxResults",
  107    107   
        "com.amazonaws.ecs.synthetic",
  108    108   
        "ListAttributesInput",
  109    109   
    ),
  110    110   
    ::aws_smithy_schema::ShapeType::Integer,
  111         -
    "max_results",
         111  +
    "maxResults",
  112    112   
    5,
  113    113   
);
  114    114   
static LISTATTRIBUTESINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  115    115   
    LISTATTRIBUTESINPUT_SCHEMA_ID,
  116    116   
    ::aws_smithy_schema::ShapeType::Structure,
  117    117   
    &[
  118    118   
        &LISTATTRIBUTESINPUT_MEMBER_CLUSTER,
  119    119   
        &LISTATTRIBUTESINPUT_MEMBER_TARGET_TYPE,
  120    120   
        &LISTATTRIBUTESINPUT_MEMBER_ATTRIBUTE_NAME,
  121    121   
        &LISTATTRIBUTESINPUT_MEMBER_ATTRIBUTE_VALUE,
  122    122   
        &LISTATTRIBUTESINPUT_MEMBER_NEXT_TOKEN,
  123    123   
        &LISTATTRIBUTESINPUT_MEMBER_MAX_RESULTS,
  124    124   
    ],
  125    125   
);
  126    126   
impl ListAttributesInput {
  127    127   
    /// The schema for this shape.
  128    128   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTATTRIBUTESINPUT_SCHEMA;
  129    129   
}
  130    130   
impl ::aws_smithy_schema::serde::SerializableStruct for ListAttributesInput {
  131    131   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  132    132   
    fn serialize_members(
  133    133   
        &self,
  134    134   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  135    135   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  136    136   
        if let Some(ref val) = self.cluster {
  137    137   
            ser.write_string(&LISTATTRIBUTESINPUT_MEMBER_CLUSTER, val)?;
  138    138   
        }
  139    139   
        if let Some(ref val) = self.target_type {
  140    140   
            ser.write_string(&LISTATTRIBUTESINPUT_MEMBER_TARGET_TYPE, val.as_str())?;
  141    141   
        }
  142    142   
        if let Some(ref val) = self.attribute_name {
  143    143   
            ser.write_string(&LISTATTRIBUTESINPUT_MEMBER_ATTRIBUTE_NAME, val)?;
  144    144   
        }
  145    145   
        if let Some(ref val) = self.attribute_value {
  146    146   
            ser.write_string(&LISTATTRIBUTESINPUT_MEMBER_ATTRIBUTE_VALUE, val)?;
  147    147   
        }
  148    148   
        if let Some(ref val) = self.next_token {
  149    149   
            ser.write_string(&LISTATTRIBUTESINPUT_MEMBER_NEXT_TOKEN, val)?;
  150    150   
        }
  151    151   
        if let Some(ref val) = self.max_results {
  152    152   
            ser.write_integer(&LISTATTRIBUTESINPUT_MEMBER_MAX_RESULTS, *val)?;
  153    153   
        }
  154    154   
        Ok(())
  155    155   
    }
  156    156   
}
  157    157   
impl ListAttributesInput {
  158    158   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  159         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  160         -
        deserializer: &mut D,
         159  +
    pub fn deserialize(
         160  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  161    161   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  162    162   
        #[allow(unused_variables, unused_mut)]
  163    163   
        let mut builder = Self::builder();
  164    164   
        #[allow(
  165    165   
            unused_variables,
  166    166   
            unreachable_code,
  167    167   
            clippy::single_match,
  168    168   
            clippy::match_single_binding,
  169    169   
            clippy::diverging_sub_expression
  170    170   
        )]
  171         -
        deserializer.read_struct(&LISTATTRIBUTESINPUT_SCHEMA, (), |_, member, deser| {
         171  +
        deserializer.read_struct(&LISTATTRIBUTESINPUT_SCHEMA, &mut |member, deser| {
  172    172   
            match member.member_index() {
  173    173   
                Some(0) => {
  174    174   
                    builder.cluster = Some(deser.read_string(member)?);
  175    175   
                }
  176    176   
                Some(1) => {
  177    177   
                    builder.target_type = Some(crate::types::TargetType::from(deser.read_string(member)?.as_str()));
  178    178   
                }
  179    179   
                Some(2) => {
  180    180   
                    builder.attribute_name = Some(deser.read_string(member)?);
  181    181   
                }
  182    182   
                Some(3) => {
  183    183   
                    builder.attribute_value = Some(deser.read_string(member)?);
  184    184   
                }
  185    185   
                Some(4) => {
  186    186   
                    builder.next_token = Some(deser.read_string(member)?);
  187    187   
                }
  188    188   
                Some(5) => {
  189    189   
                    builder.max_results = Some(deser.read_integer(member)?);
  190    190   
                }
  191    191   
                _ => {}
  192    192   
            }
  193    193   
            Ok(())
  194    194   
        })?;
  195    195   
        builder
  196    196   
            .build()
  197    197   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  198    198   
    }
  199    199   
}
         200  +
impl ListAttributesInput {
         201  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         202  +
    pub fn deserialize_with_response(
         203  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         204  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         205  +
        _status: u16,
         206  +
        _body: &[u8],
         207  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         208  +
        Self::deserialize(deserializer)
         209  +
    }
         210  +
}
  200    211   
impl ListAttributesInput {
  201    212   
    /// Creates a new builder-style object to manufacture [`ListAttributesInput`](crate::operation::list_attributes::ListAttributesInput).
  202    213   
    pub fn builder() -> crate::operation::list_attributes::builders::ListAttributesInputBuilder {
  203    214   
        crate::operation::list_attributes::builders::ListAttributesInputBuilder::default()
  204    215   
    }
  205    216   
}
  206    217   
  207    218   
/// A builder for [`ListAttributesInput`](crate::operation::list_attributes::ListAttributesInput).
  208    219   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  209    220   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/list_attributes/_list_attributes_output.rs

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