AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/list_task_definitions/_list_task_definitions_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/list_task_definitions/_list_task_definitions_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/list_tasks.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 `ListTasks`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListTasks;
    6      6   
impl ListTasks {
    7      7   
    /// Creates a new `ListTasks`
    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_tasks::ListTasksInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_tasks::ListTasksOutput::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_tasks::ListTasksInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_tasks::ListTasksOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_tasks::ListTasksError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +240,373 @@
  135    139   
                crate::operation::list_tasks::ListTasksError,
  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 ListTasksResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListTasksResponseDeserializer {
  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_tasks::de_list_tasks_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_tasks::ListTasksError::unhandled(generic)),
         172  +
                    ))
         173  +
                }
         174  +
            };
         175  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         176  +
            let protocol = _cfg
         177  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         178  +
                .expect("a SharedClientProtocol is required");
         179  +
            let err = match error_code {
         180  +
                "ClientException" => crate::operation::list_tasks::ListTasksError::ClientException({
         181  +
                    let mut tmp = match protocol
         182  +
                        .deserialize_response(response, crate::types::error::ClientException::SCHEMA, _cfg)
         183  +
                        .and_then(|mut deser| {
         184  +
                            crate::types::error::ClientException::deserialize_with_response(
         185  +
                                &mut *deser,
         186  +
                                response.headers(),
         187  +
                                response.status().into(),
         188  +
                                body,
         189  +
                            )
         190  +
                        }) {
         191  +
                        ::std::result::Result::Ok(val) => val,
         192  +
                        ::std::result::Result::Err(e) => {
         193  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         194  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         195  +
                            ))
         196  +
                        }
         197  +
                    };
         198  +
                    tmp.meta = generic;
         199  +
                    if tmp.message.is_none() {
         200  +
                        tmp.message = _error_message;
         201  +
                    }
         202  +
                    tmp
         203  +
                }),
         204  +
                "ClusterNotFoundException" => crate::operation::list_tasks::ListTasksError::ClusterNotFoundException({
         205  +
                    let mut tmp = match protocol
         206  +
                        .deserialize_response(response, crate::types::error::ClusterNotFoundException::SCHEMA, _cfg)
         207  +
                        .and_then(|mut deser| {
         208  +
                            crate::types::error::ClusterNotFoundException::deserialize_with_response(
         209  +
                                &mut *deser,
         210  +
                                response.headers(),
         211  +
                                response.status().into(),
         212  +
                                body,
         213  +
                            )
         214  +
                        }) {
         215  +
                        ::std::result::Result::Ok(val) => val,
         216  +
                        ::std::result::Result::Err(e) => {
         217  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         218  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         219  +
                            ))
         220  +
                        }
         221  +
                    };
         222  +
                    tmp.meta = generic;
         223  +
                    if tmp.message.is_none() {
         224  +
                        tmp.message = _error_message;
         225  +
                    }
         226  +
                    tmp
         227  +
                }),
         228  +
                "InvalidParameterException" => crate::operation::list_tasks::ListTasksError::InvalidParameterException({
         229  +
                    let mut tmp = match protocol
         230  +
                        .deserialize_response(response, crate::types::error::InvalidParameterException::SCHEMA, _cfg)
         231  +
                        .and_then(|mut deser| {
         232  +
                            crate::types::error::InvalidParameterException::deserialize_with_response(
         233  +
                                &mut *deser,
         234  +
                                response.headers(),
         235  +
                                response.status().into(),
         236  +
                                body,
         237  +
                            )
         238  +
                        }) {
         239  +
                        ::std::result::Result::Ok(val) => val,
         240  +
                        ::std::result::Result::Err(e) => {
         241  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         242  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         243  +
                            ))
         244  +
                        }
         245  +
                    };
         246  +
                    tmp.meta = generic;
         247  +
                    if tmp.message.is_none() {
         248  +
                        tmp.message = _error_message;
         249  +
                    }
         250  +
                    tmp
         251  +
                }),
         252  +
                "ServerException" => crate::operation::list_tasks::ListTasksError::ServerException({
         253  +
                    let mut tmp = match protocol
         254  +
                        .deserialize_response(response, crate::types::error::ServerException::SCHEMA, _cfg)
         255  +
                        .and_then(|mut deser| {
         256  +
                            crate::types::error::ServerException::deserialize_with_response(
         257  +
                                &mut *deser,
         258  +
                                response.headers(),
         259  +
                                response.status().into(),
         260  +
                                body,
         261  +
                            )
         262  +
                        }) {
         263  +
                        ::std::result::Result::Ok(val) => val,
         264  +
                        ::std::result::Result::Err(e) => {
         265  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         266  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         267  +
                            ))
         268  +
                        }
         269  +
                    };
         270  +
                    tmp.meta = generic;
         271  +
                    if tmp.message.is_none() {
         272  +
                        tmp.message = _error_message;
         273  +
                    }
         274  +
                    tmp
         275  +
                }),
         276  +
                "ServiceNotFoundException" => crate::operation::list_tasks::ListTasksError::ServiceNotFoundException({
         277  +
                    let mut tmp = match protocol
         278  +
                        .deserialize_response(response, crate::types::error::ServiceNotFoundException::SCHEMA, _cfg)
         279  +
                        .and_then(|mut deser| {
         280  +
                            crate::types::error::ServiceNotFoundException::deserialize_with_response(
         281  +
                                &mut *deser,
         282  +
                                response.headers(),
         283  +
                                response.status().into(),
         284  +
                                body,
         285  +
                            )
         286  +
                        }) {
         287  +
                        ::std::result::Result::Ok(val) => val,
         288  +
                        ::std::result::Result::Err(e) => {
         289  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         290  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         291  +
                            ))
         292  +
                        }
         293  +
                    };
         294  +
                    tmp.meta = generic;
         295  +
                    if tmp.message.is_none() {
         296  +
                        tmp.message = _error_message;
         297  +
                    }
         298  +
                    tmp
         299  +
                }),
         300  +
                _ => crate::operation::list_tasks::ListTasksError::generic(generic),
         301  +
            };
         302  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         303  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         304  +
            ))
  157    305   
        } else {
  158         -
            crate::protocol_serde::shape_list_tasks::de_list_tasks_http_response(status, headers, body)
  159         -
        };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         306  +
            let protocol = _cfg
         307  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         308  +
                .expect("a SharedClientProtocol is required");
         309  +
            let mut deser = protocol.deserialize_response(response, ListTasks::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         310  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         311  +
            })?;
         312  +
            let body = response.body().bytes().expect("body loaded");
         313  +
            let output = crate::operation::list_tasks::ListTasksOutput::deserialize_with_response(
         314  +
                &mut *deser,
         315  +
                response.headers(),
         316  +
                response.status().into(),
         317  +
                body,
         318  +
            )
         319  +
            .map_err(|e| {
         320  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         321  +
            })?;
         322  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         323  +
        }
  161    324   
    }
  162    325   
}
  163    326   
#[derive(Debug)]
  164    327   
struct ListTasksRequestSerializer;
  165    328   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListTasksRequestSerializer {
  166    329   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  167    330   
    fn serialize_input(
  168    331   
        &self,
  169    332   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  170    333   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  171    334   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  172    335   
        let input = input.downcast::<crate::operation::list_tasks::ListTasksInput>().expect("correct type");
  173         -
        let _header_serialization_settings = _cfg
  174         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  175         -
            .cloned()
  176         -
            .unwrap_or_default();
  177         -
        let mut request_builder = {
  178         -
            #[allow(clippy::uninlined_format_args)]
  179         -
            fn uri_base(
  180         -
                _input: &crate::operation::list_tasks::ListTasksInput,
  181         -
                output: &mut ::std::string::String,
  182         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  183         -
                use ::std::fmt::Write as _;
  184         -
                ::std::write!(output, "/").expect("formatting should succeed");
  185         -
                ::std::result::Result::Ok(())
  186         -
            }
  187         -
            #[allow(clippy::unnecessary_wraps)]
  188         -
            fn update_http_builder(
  189         -
                input: &crate::operation::list_tasks::ListTasksInput,
  190         -
                builder: ::http_1x::request::Builder,
  191         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  192         -
                let mut uri = ::std::string::String::new();
  193         -
                uri_base(input, &mut uri)?;
  194         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  195         -
            }
  196         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  197         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  198         -
            builder = _header_serialization_settings.set_default_header(
  199         -
                builder,
  200         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  201         -
                "AmazonEC2ContainerServiceV20141113.ListTasks",
  202         -
            );
  203         -
            builder
  204         -
        };
  205         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_list_tasks::ser_list_tasks_input(&input)?);
  206         -
        if let Some(content_length) = body.content_length() {
  207         -
            let content_length = content_length.to_string();
  208         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  209         -
        }
  210         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         336  +
        let protocol = _cfg
         337  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         338  +
            .expect("a SharedClientProtocol is required");
         339  +
        let mut request = protocol
         340  +
            .serialize_request(&input, ListTasks::INPUT_SCHEMA, "", _cfg)
         341  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         342  +
         343  +
        return ::std::result::Result::Ok(request);
  211    344   
    }
  212    345   
}
  213    346   
#[derive(Debug)]
  214    347   
struct ListTasksEndpointParamsInterceptor;
  215    348   
  216    349   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListTasksEndpointParamsInterceptor {
  217    350   
    fn name(&self) -> &'static str {
  218    351   
        "ListTasksEndpointParamsInterceptor"
  219    352   
    }
  220    353   

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/list_tasks/_list_tasks_input.rs

@@ -65,65 +304,315 @@
   85     85   
    "cluster",
   86     86   
    0,
   87     87   
);
   88     88   
static LISTTASKSINPUT_MEMBER_CONTAINER_INSTANCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   89     89   
    ::aws_smithy_schema::ShapeId::from_static(
   90     90   
        "com.amazonaws.ecs.synthetic#ListTasksInput$containerInstance",
   91     91   
        "com.amazonaws.ecs.synthetic",
   92     92   
        "ListTasksInput",
   93     93   
    ),
   94     94   
    ::aws_smithy_schema::ShapeType::String,
   95         -
    "container_instance",
          95  +
    "containerInstance",
   96     96   
    1,
   97     97   
);
   98     98   
static LISTTASKSINPUT_MEMBER_FAMILY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   99     99   
    ::aws_smithy_schema::ShapeId::from_static(
  100    100   
        "com.amazonaws.ecs.synthetic#ListTasksInput$family",
  101    101   
        "com.amazonaws.ecs.synthetic",
  102    102   
        "ListTasksInput",
  103    103   
    ),
  104    104   
    ::aws_smithy_schema::ShapeType::String,
  105    105   
    "family",
  106    106   
    2,
  107    107   
);
  108    108   
static LISTTASKSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  109    109   
    ::aws_smithy_schema::ShapeId::from_static(
  110    110   
        "com.amazonaws.ecs.synthetic#ListTasksInput$nextToken",
  111    111   
        "com.amazonaws.ecs.synthetic",
  112    112   
        "ListTasksInput",
  113    113   
    ),
  114    114   
    ::aws_smithy_schema::ShapeType::String,
  115         -
    "next_token",
         115  +
    "nextToken",
  116    116   
    3,
  117    117   
);
  118    118   
static LISTTASKSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  119    119   
    ::aws_smithy_schema::ShapeId::from_static(
  120    120   
        "com.amazonaws.ecs.synthetic#ListTasksInput$maxResults",
  121    121   
        "com.amazonaws.ecs.synthetic",
  122    122   
        "ListTasksInput",
  123    123   
    ),
  124    124   
    ::aws_smithy_schema::ShapeType::Integer,
  125         -
    "max_results",
         125  +
    "maxResults",
  126    126   
    4,
  127    127   
);
  128    128   
static LISTTASKSINPUT_MEMBER_STARTED_BY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  129    129   
    ::aws_smithy_schema::ShapeId::from_static(
  130    130   
        "com.amazonaws.ecs.synthetic#ListTasksInput$startedBy",
  131    131   
        "com.amazonaws.ecs.synthetic",
  132    132   
        "ListTasksInput",
  133    133   
    ),
  134    134   
    ::aws_smithy_schema::ShapeType::String,
  135         -
    "started_by",
         135  +
    "startedBy",
  136    136   
    5,
  137    137   
);
  138    138   
static LISTTASKSINPUT_MEMBER_SERVICE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  139    139   
    ::aws_smithy_schema::ShapeId::from_static(
  140    140   
        "com.amazonaws.ecs.synthetic#ListTasksInput$serviceName",
  141    141   
        "com.amazonaws.ecs.synthetic",
  142    142   
        "ListTasksInput",
  143    143   
    ),
  144    144   
    ::aws_smithy_schema::ShapeType::String,
  145         -
    "service_name",
         145  +
    "serviceName",
  146    146   
    6,
  147    147   
);
  148    148   
static LISTTASKSINPUT_MEMBER_DESIRED_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  149    149   
    ::aws_smithy_schema::ShapeId::from_static(
  150    150   
        "com.amazonaws.ecs.synthetic#ListTasksInput$desiredStatus",
  151    151   
        "com.amazonaws.ecs.synthetic",
  152    152   
        "ListTasksInput",
  153    153   
    ),
  154    154   
    ::aws_smithy_schema::ShapeType::String,
  155         -
    "desired_status",
         155  +
    "desiredStatus",
  156    156   
    7,
  157    157   
);
  158    158   
static LISTTASKSINPUT_MEMBER_LAUNCH_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  159    159   
    ::aws_smithy_schema::ShapeId::from_static(
  160    160   
        "com.amazonaws.ecs.synthetic#ListTasksInput$launchType",
  161    161   
        "com.amazonaws.ecs.synthetic",
  162    162   
        "ListTasksInput",
  163    163   
    ),
  164    164   
    ::aws_smithy_schema::ShapeType::String,
  165         -
    "launch_type",
         165  +
    "launchType",
  166    166   
    8,
  167    167   
);
  168    168   
static LISTTASKSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  169    169   
    LISTTASKSINPUT_SCHEMA_ID,
  170    170   
    ::aws_smithy_schema::ShapeType::Structure,
  171    171   
    &[
  172    172   
        &LISTTASKSINPUT_MEMBER_CLUSTER,
  173    173   
        &LISTTASKSINPUT_MEMBER_CONTAINER_INSTANCE,
  174    174   
        &LISTTASKSINPUT_MEMBER_FAMILY,
  175    175   
        &LISTTASKSINPUT_MEMBER_NEXT_TOKEN,
  176    176   
        &LISTTASKSINPUT_MEMBER_MAX_RESULTS,
  177    177   
        &LISTTASKSINPUT_MEMBER_STARTED_BY,
  178    178   
        &LISTTASKSINPUT_MEMBER_SERVICE_NAME,
  179    179   
        &LISTTASKSINPUT_MEMBER_DESIRED_STATUS,
  180    180   
        &LISTTASKSINPUT_MEMBER_LAUNCH_TYPE,
  181    181   
    ],
  182    182   
);
  183    183   
impl ListTasksInput {
  184    184   
    /// The schema for this shape.
  185    185   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTTASKSINPUT_SCHEMA;
  186    186   
}
  187    187   
impl ::aws_smithy_schema::serde::SerializableStruct for ListTasksInput {
  188    188   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  189    189   
    fn serialize_members(
  190    190   
        &self,
  191    191   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  192    192   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  193    193   
        if let Some(ref val) = self.cluster {
  194    194   
            ser.write_string(&LISTTASKSINPUT_MEMBER_CLUSTER, val)?;
  195    195   
        }
  196    196   
        if let Some(ref val) = self.container_instance {
  197    197   
            ser.write_string(&LISTTASKSINPUT_MEMBER_CONTAINER_INSTANCE, val)?;
  198    198   
        }
  199    199   
        if let Some(ref val) = self.family {
  200    200   
            ser.write_string(&LISTTASKSINPUT_MEMBER_FAMILY, val)?;
  201    201   
        }
  202    202   
        if let Some(ref val) = self.next_token {
  203    203   
            ser.write_string(&LISTTASKSINPUT_MEMBER_NEXT_TOKEN, val)?;
  204    204   
        }
  205    205   
        if let Some(ref val) = self.max_results {
  206    206   
            ser.write_integer(&LISTTASKSINPUT_MEMBER_MAX_RESULTS, *val)?;
  207    207   
        }
  208    208   
        if let Some(ref val) = self.started_by {
  209    209   
            ser.write_string(&LISTTASKSINPUT_MEMBER_STARTED_BY, val)?;
  210    210   
        }
  211    211   
        if let Some(ref val) = self.service_name {
  212    212   
            ser.write_string(&LISTTASKSINPUT_MEMBER_SERVICE_NAME, val)?;
  213    213   
        }
  214    214   
        if let Some(ref val) = self.desired_status {
  215    215   
            ser.write_string(&LISTTASKSINPUT_MEMBER_DESIRED_STATUS, val.as_str())?;
  216    216   
        }
  217    217   
        if let Some(ref val) = self.launch_type {
  218    218   
            ser.write_string(&LISTTASKSINPUT_MEMBER_LAUNCH_TYPE, val.as_str())?;
  219    219   
        }
  220    220   
        Ok(())
  221    221   
    }
  222    222   
}
  223    223   
impl ListTasksInput {
  224    224   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  225         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  226         -
        deserializer: &mut D,
         225  +
    pub fn deserialize(
         226  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  227    227   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  228    228   
        #[allow(unused_variables, unused_mut)]
  229    229   
        let mut builder = Self::builder();
  230    230   
        #[allow(
  231    231   
            unused_variables,
  232    232   
            unreachable_code,
  233    233   
            clippy::single_match,
  234    234   
            clippy::match_single_binding,
  235    235   
            clippy::diverging_sub_expression
  236    236   
        )]
  237         -
        deserializer.read_struct(&LISTTASKSINPUT_SCHEMA, (), |_, member, deser| {
         237  +
        deserializer.read_struct(&LISTTASKSINPUT_SCHEMA, &mut |member, deser| {
  238    238   
            match member.member_index() {
  239    239   
                Some(0) => {
  240    240   
                    builder.cluster = Some(deser.read_string(member)?);
  241    241   
                }
  242    242   
                Some(1) => {
  243    243   
                    builder.container_instance = Some(deser.read_string(member)?);
  244    244   
                }
  245    245   
                Some(2) => {
  246    246   
                    builder.family = Some(deser.read_string(member)?);
  247    247   
                }
  248    248   
                Some(3) => {
  249    249   
                    builder.next_token = Some(deser.read_string(member)?);
  250    250   
                }
  251    251   
                Some(4) => {
  252    252   
                    builder.max_results = Some(deser.read_integer(member)?);
  253    253   
                }
  254    254   
                Some(5) => {
  255    255   
                    builder.started_by = Some(deser.read_string(member)?);
  256    256   
                }
  257    257   
                Some(6) => {
  258    258   
                    builder.service_name = Some(deser.read_string(member)?);
  259    259   
                }
  260    260   
                Some(7) => {
  261    261   
                    builder.desired_status = Some(crate::types::DesiredStatus::from(deser.read_string(member)?.as_str()));
  262    262   
                }
  263    263   
                Some(8) => {
  264    264   
                    builder.launch_type = Some(crate::types::LaunchType::from(deser.read_string(member)?.as_str()));
  265    265   
                }
  266    266   
                _ => {}
  267    267   
            }
  268    268   
            Ok(())
  269    269   
        })?;
  270    270   
        builder
  271    271   
            .build()
  272    272   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  273    273   
    }
  274    274   
}
         275  +
impl ListTasksInput {
         276  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         277  +
    pub fn deserialize_with_response(
         278  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         279  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         280  +
        _status: u16,
         281  +
        _body: &[u8],
         282  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         283  +
        Self::deserialize(deserializer)
         284  +
    }
         285  +
}
  275    286   
impl ListTasksInput {
  276    287   
    /// Creates a new builder-style object to manufacture [`ListTasksInput`](crate::operation::list_tasks::ListTasksInput).
  277    288   
    pub fn builder() -> crate::operation::list_tasks::builders::ListTasksInputBuilder {
  278    289   
        crate::operation::list_tasks::builders::ListTasksInputBuilder::default()
  279    290   
    }
  280    291   
}
  281    292   
  282    293   
/// A builder for [`ListTasksInput`](crate::operation::list_tasks::ListTasksInput).
  283    294   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  284    295   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/list_tasks/_list_tasks_output.rs

@@ -6,6 +138,179 @@
   26     26   
    "com.amazonaws.ecs.synthetic",
   27     27   
    "ListTasksOutput",
   28     28   
);
   29     29   
static LISTTASKSOUTPUT_MEMBER_TASK_ARNS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ecs.synthetic#ListTasksOutput$taskArns",
   32     32   
        "com.amazonaws.ecs.synthetic",
   33     33   
        "ListTasksOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "task_arns",
          36  +
    "taskArns",
   37     37   
    0,
   38     38   
);
   39     39   
static LISTTASKSOUTPUT_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#ListTasksOutput$nextToken",
   42     42   
        "com.amazonaws.ecs.synthetic",
   43     43   
        "ListTasksOutput",
   44     44   
    ),
   45     45   
    ::aws_smithy_schema::ShapeType::String,
   46         -
    "next_token",
          46  +
    "nextToken",
   47     47   
    1,
   48     48   
);
          49  +
static LISTTASKSOUTPUT_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 LISTTASKSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    LISTTASKSOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52         -
    &[&LISTTASKSOUTPUT_MEMBER_TASK_ARNS, &LISTTASKSOUTPUT_MEMBER_NEXT_TOKEN],
          59  +
    &[
          60  +
        &LISTTASKSOUTPUT_MEMBER_TASK_ARNS,
          61  +
        &LISTTASKSOUTPUT_MEMBER_NEXT_TOKEN,
          62  +
        &LISTTASKSOUTPUT_MEMBER__REQUEST_ID,
          63  +
    ],
   53     64   
);
   54     65   
impl ListTasksOutput {
   55     66   
    /// The schema for this shape.
   56     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTTASKSOUTPUT_SCHEMA;
   57     68   
}
   58     69   
impl ::aws_smithy_schema::serde::SerializableStruct for ListTasksOutput {
   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.task_arns {
   65     76   
            ser.write_list(
   66     77   
                &LISTTASKSOUTPUT_MEMBER_TASK_ARNS,
   67     78   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   68     79   
                    for item in val {
   69     80   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, 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(&LISTTASKSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   77     88   
        }
   78     89   
        Ok(())
   79     90   
    }
   80     91   
}
   81     92   
impl ListTasksOutput {
   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(&LISTTASKSOUTPUT_SCHEMA, (), |_, member, deser| {
         106  +
        deserializer.read_struct(&LISTTASKSOUTPUT_SCHEMA, &mut |member, deser| {
         107  +
            match member.member_index() {
         108  +
                Some(0) => {
         109  +
                    builder.task_arns = Some(deser.read_string_list(member)?);
         110  +
                }
         111  +
                Some(1) => {
         112  +
                    builder.next_token = Some(deser.read_string(member)?);
         113  +
                }
         114  +
                Some(2) => {
         115  +
                    builder._request_id = Some(deser.read_string(member)?);
         116  +
                }
         117  +
                _ => {}
         118  +
            }
         119  +
            Ok(())
         120  +
        })?;
         121  +
        Ok(builder.build())
         122  +
    }
         123  +
}
         124  +
impl ListTasksOutput {
         125  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         126  +
    /// Header-bound members are read directly from headers, avoiding runtime
         127  +
    /// member iteration overhead. Body members are read via the deserializer.
         128  +
    pub fn deserialize_with_response(
         129  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         130  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         131  +
        _status: u16,
         132  +
        _body: &[u8],
         133  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         134  +
        #[allow(unused_variables, unused_mut)]
         135  +
        let mut builder = Self::builder();
         136  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         137  +
            builder._request_id = Some(val.to_string());
         138  +
        }
         139  +
        #[allow(
         140  +
            unused_variables,
         141  +
            unreachable_code,
         142  +
            clippy::single_match,
         143  +
            clippy::match_single_binding,
         144  +
            clippy::diverging_sub_expression
         145  +
        )]
         146  +
        deserializer.read_struct(&LISTTASKSOUTPUT_SCHEMA, &mut |member, deser| {
   96    147   
            match member.member_index() {
   97    148   
                Some(0) => {
   98         -
                    builder.task_arns = 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(deser.read_string(member)?);
  106         -
                            Ok(list)
  107         -
                        })?
  108         -
                    });
         149  +
                    builder.task_arns = Some(deser.read_string_list(member)?);
  109    150   
                }
  110    151   
                Some(1) => {
  111    152   
                    builder.next_token = Some(deser.read_string(member)?);
  112    153   
                }
  113    154   
                _ => {}
  114    155   
            }
  115    156   
            Ok(())
  116    157   
        })?;
  117    158   
        Ok(builder.build())
  118    159   
    }

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/put_account_setting.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 `PutAccountSetting`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutAccountSetting;
    6      6   
impl PutAccountSetting {
    7      7   
    /// Creates a new `PutAccountSetting`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::put_account_setting::PutAccountSettingInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::put_account_setting::PutAccountSettingOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::put_account_setting::PutAccountSettingInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::put_account_setting::PutAccountSettingOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::put_account_setting::PutAccountSettingError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +242,331 @@
  135    139   
                crate::operation::put_account_setting::PutAccountSettingError,
  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 PutAccountSettingResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutAccountSettingResponseDeserializer {
  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_put_account_setting::de_put_account_setting_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::put_account_setting::PutAccountSettingError::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  +
                "ClientException" => crate::operation::put_account_setting::PutAccountSettingError::ClientException({
         183  +
                    let mut tmp = match protocol
         184  +
                        .deserialize_response(response, crate::types::error::ClientException::SCHEMA, _cfg)
         185  +
                        .and_then(|mut deser| {
         186  +
                            crate::types::error::ClientException::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::put_account_setting::PutAccountSettingError::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  +
                "ServerException" => crate::operation::put_account_setting::PutAccountSettingError::ServerException({
         231  +
                    let mut tmp = match protocol
         232  +
                        .deserialize_response(response, crate::types::error::ServerException::SCHEMA, _cfg)
         233  +
                        .and_then(|mut deser| {
         234  +
                            crate::types::error::ServerException::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  +
                _ => crate::operation::put_account_setting::PutAccountSettingError::generic(generic),
         255  +
            };
         256  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         257  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         258  +
            ))
  157    259   
        } else {
  158         -
            crate::protocol_serde::shape_put_account_setting::de_put_account_setting_http_response(status, headers, body)
  159         -
        };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         260  +
            let protocol = _cfg
         261  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         262  +
                .expect("a SharedClientProtocol is required");
         263  +
            let mut deser = protocol
         264  +
                .deserialize_response(response, PutAccountSetting::OUTPUT_SCHEMA, _cfg)
         265  +
                .map_err(|e| {
         266  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         267  +
                })?;
         268  +
            let body = response.body().bytes().expect("body loaded");
         269  +
            let output = crate::operation::put_account_setting::PutAccountSettingOutput::deserialize_with_response(
         270  +
                &mut *deser,
         271  +
                response.headers(),
         272  +
                response.status().into(),
         273  +
                body,
         274  +
            )
         275  +
            .map_err(|e| {
         276  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         277  +
            })?;
         278  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         279  +
        }
  161    280   
    }
  162    281   
}
  163    282   
#[derive(Debug)]
  164    283   
struct PutAccountSettingRequestSerializer;
  165    284   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for PutAccountSettingRequestSerializer {
  166    285   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  167    286   
    fn serialize_input(
  168    287   
        &self,
  169    288   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  170    289   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  171    290   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  172    291   
        let input = input
  173    292   
            .downcast::<crate::operation::put_account_setting::PutAccountSettingInput>()
  174    293   
            .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::put_account_setting::PutAccountSettingInput,
  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::put_account_setting::PutAccountSettingInput,
  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.PutAccountSetting",
  204         -
            );
  205         -
            builder
  206         -
        };
  207         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_put_account_setting::ser_put_account_setting_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())
         294  +
        let protocol = _cfg
         295  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         296  +
            .expect("a SharedClientProtocol is required");
         297  +
        let mut request = protocol
         298  +
            .serialize_request(&input, PutAccountSetting::INPUT_SCHEMA, "", _cfg)
         299  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         300  +
         301  +
        return ::std::result::Result::Ok(request);
  213    302   
    }
  214    303   
}
  215    304   
#[derive(Debug)]
  216    305   
struct PutAccountSettingEndpointParamsInterceptor;
  217    306   
  218    307   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutAccountSettingEndpointParamsInterceptor {
  219    308   
    fn name(&self) -> &'static str {
  220    309   
        "PutAccountSettingEndpointParamsInterceptor"
  221    310   
    }
  222    311   

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/put_account_setting/_put_account_setting_input.rs

@@ -123,123 +250,262 @@
  143    143   
    "value",
  144    144   
    1,
  145    145   
);
  146    146   
static PUTACCOUNTSETTINGINPUT_MEMBER_PRINCIPAL_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  147    147   
    ::aws_smithy_schema::ShapeId::from_static(
  148    148   
        "com.amazonaws.ecs.synthetic#PutAccountSettingInput$principalArn",
  149    149   
        "com.amazonaws.ecs.synthetic",
  150    150   
        "PutAccountSettingInput",
  151    151   
    ),
  152    152   
    ::aws_smithy_schema::ShapeType::String,
  153         -
    "principal_arn",
         153  +
    "principalArn",
  154    154   
    2,
  155    155   
);
  156    156   
static PUTACCOUNTSETTINGINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  157    157   
    PUTACCOUNTSETTINGINPUT_SCHEMA_ID,
  158    158   
    ::aws_smithy_schema::ShapeType::Structure,
  159    159   
    &[
  160    160   
        &PUTACCOUNTSETTINGINPUT_MEMBER_NAME,
  161    161   
        &PUTACCOUNTSETTINGINPUT_MEMBER_VALUE,
  162    162   
        &PUTACCOUNTSETTINGINPUT_MEMBER_PRINCIPAL_ARN,
  163    163   
    ],
  164    164   
);
  165    165   
impl PutAccountSettingInput {
  166    166   
    /// The schema for this shape.
  167    167   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTACCOUNTSETTINGINPUT_SCHEMA;
  168    168   
}
  169    169   
impl ::aws_smithy_schema::serde::SerializableStruct for PutAccountSettingInput {
  170    170   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  171    171   
    fn serialize_members(
  172    172   
        &self,
  173    173   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  174    174   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  175    175   
        if let Some(ref val) = self.name {
  176    176   
            ser.write_string(&PUTACCOUNTSETTINGINPUT_MEMBER_NAME, val.as_str())?;
  177    177   
        }
  178    178   
        if let Some(ref val) = self.value {
  179    179   
            ser.write_string(&PUTACCOUNTSETTINGINPUT_MEMBER_VALUE, val)?;
  180    180   
        }
  181    181   
        if let Some(ref val) = self.principal_arn {
  182    182   
            ser.write_string(&PUTACCOUNTSETTINGINPUT_MEMBER_PRINCIPAL_ARN, val)?;
  183    183   
        }
  184    184   
        Ok(())
  185    185   
    }
  186    186   
}
  187    187   
impl PutAccountSettingInput {
  188    188   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  189         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  190         -
        deserializer: &mut D,
         189  +
    pub fn deserialize(
         190  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  191    191   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  192    192   
        #[allow(unused_variables, unused_mut)]
  193    193   
        let mut builder = Self::builder();
  194    194   
        #[allow(
  195    195   
            unused_variables,
  196    196   
            unreachable_code,
  197    197   
            clippy::single_match,
  198    198   
            clippy::match_single_binding,
  199    199   
            clippy::diverging_sub_expression
  200    200   
        )]
  201         -
        deserializer.read_struct(&PUTACCOUNTSETTINGINPUT_SCHEMA, (), |_, member, deser| {
         201  +
        deserializer.read_struct(&PUTACCOUNTSETTINGINPUT_SCHEMA, &mut |member, deser| {
  202    202   
            match member.member_index() {
  203    203   
                Some(0) => {
  204    204   
                    builder.name = Some(crate::types::SettingName::from(deser.read_string(member)?.as_str()));
  205    205   
                }
  206    206   
                Some(1) => {
  207    207   
                    builder.value = Some(deser.read_string(member)?);
  208    208   
                }
  209    209   
                Some(2) => {
  210    210   
                    builder.principal_arn = Some(deser.read_string(member)?);
  211    211   
                }
  212    212   
                _ => {}
  213    213   
            }
  214    214   
            Ok(())
  215    215   
        })?;
         216  +
        builder.value = builder.value.or(Some(String::new()));
  216    217   
        builder
  217    218   
            .build()
  218    219   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  219    220   
    }
  220    221   
}
         222  +
impl PutAccountSettingInput {
         223  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         224  +
    pub fn deserialize_with_response(
         225  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         226  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         227  +
        _status: u16,
         228  +
        _body: &[u8],
         229  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         230  +
        Self::deserialize(deserializer)
         231  +
    }
         232  +
}
  221    233   
impl PutAccountSettingInput {
  222    234   
    /// Creates a new builder-style object to manufacture [`PutAccountSettingInput`](crate::operation::put_account_setting::PutAccountSettingInput).
  223    235   
    pub fn builder() -> crate::operation::put_account_setting::builders::PutAccountSettingInputBuilder {
  224    236   
        crate::operation::put_account_setting::builders::PutAccountSettingInputBuilder::default()
  225    237   
    }
  226    238   
}
  227    239   
  228    240   
/// A builder for [`PutAccountSettingInput`](crate::operation::put_account_setting::PutAccountSettingInput).
  229    241   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  230    242   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/put_account_setting/_put_account_setting_output.rs

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/put_account_setting_default/_put_account_setting_default_input.rs

@@ -132,132 +220,232 @@
  152    152   
            ser.write_string(&PUTACCOUNTSETTINGDEFAULTINPUT_MEMBER_NAME, val.as_str())?;
  153    153   
        }
  154    154   
        if let Some(ref val) = self.value {
  155    155   
            ser.write_string(&PUTACCOUNTSETTINGDEFAULTINPUT_MEMBER_VALUE, val)?;
  156    156   
        }
  157    157   
        Ok(())
  158    158   
    }
  159    159   
}
  160    160   
impl PutAccountSettingDefaultInput {
  161    161   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  162         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  163         -
        deserializer: &mut D,
         162  +
    pub fn deserialize(
         163  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  164    164   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  165    165   
        #[allow(unused_variables, unused_mut)]
  166    166   
        let mut builder = Self::builder();
  167    167   
        #[allow(
  168    168   
            unused_variables,
  169    169   
            unreachable_code,
  170    170   
            clippy::single_match,
  171    171   
            clippy::match_single_binding,
  172    172   
            clippy::diverging_sub_expression
  173    173   
        )]
  174         -
        deserializer.read_struct(&PUTACCOUNTSETTINGDEFAULTINPUT_SCHEMA, (), |_, member, deser| {
         174  +
        deserializer.read_struct(&PUTACCOUNTSETTINGDEFAULTINPUT_SCHEMA, &mut |member, deser| {
  175    175   
            match member.member_index() {
  176    176   
                Some(0) => {
  177    177   
                    builder.name = Some(crate::types::SettingName::from(deser.read_string(member)?.as_str()));
  178    178   
                }
  179    179   
                Some(1) => {
  180    180   
                    builder.value = Some(deser.read_string(member)?);
  181    181   
                }
  182    182   
                _ => {}
  183    183   
            }
  184    184   
            Ok(())
  185    185   
        })?;
         186  +
        builder.value = builder.value.or(Some(String::new()));
  186    187   
        builder
  187    188   
            .build()
  188    189   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  189    190   
    }
  190    191   
}
         192  +
impl PutAccountSettingDefaultInput {
         193  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         194  +
    pub fn deserialize_with_response(
         195  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         196  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         197  +
        _status: u16,
         198  +
        _body: &[u8],
         199  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         200  +
        Self::deserialize(deserializer)
         201  +
    }
         202  +
}
  191    203   
impl PutAccountSettingDefaultInput {
  192    204   
    /// Creates a new builder-style object to manufacture [`PutAccountSettingDefaultInput`](crate::operation::put_account_setting_default::PutAccountSettingDefaultInput).
  193    205   
    pub fn builder() -> crate::operation::put_account_setting_default::builders::PutAccountSettingDefaultInputBuilder {
  194    206   
        crate::operation::put_account_setting_default::builders::PutAccountSettingDefaultInputBuilder::default()
  195    207   
    }
  196    208   
}
  197    209   
  198    210   
/// A builder for [`PutAccountSettingDefaultInput`](crate::operation::put_account_setting_default::PutAccountSettingDefaultInput).
  199    211   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  200    212   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/put_account_setting_default/_put_account_setting_default_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/put_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 `PutAttributes`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutAttributes;
    6      6   
impl PutAttributes {
    7      7   
    /// Creates a new `PutAttributes`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::put_attributes::PutAttributesInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::put_attributes::PutAttributesOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::put_attributes::PutAttributesInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::put_attributes::PutAttributesOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::put_attributes::PutAttributesError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +242,351 @@
  135    139   
                crate::operation::put_attributes::PutAttributesError,
  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 PutAttributesResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutAttributesResponseDeserializer {
  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_put_attributes::de_put_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::put_attributes::PutAttributesError::unhandled(generic)),
         172  +
                    ))
         173  +
                }
         174  +
            };
         175  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         176  +
            let protocol = _cfg
         177  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         178  +
                .expect("a SharedClientProtocol is required");
         179  +
            let err = match error_code {
         180  +
                "AttributeLimitExceededException" => crate::operation::put_attributes::PutAttributesError::AttributeLimitExceededException({
         181  +
                    let mut tmp = match protocol
         182  +
                        .deserialize_response(response, crate::types::error::AttributeLimitExceededException::SCHEMA, _cfg)
         183  +
                        .and_then(|mut deser| {
         184  +
                            crate::types::error::AttributeLimitExceededException::deserialize_with_response(
         185  +
                                &mut *deser,
         186  +
                                response.headers(),
         187  +
                                response.status().into(),
         188  +
                                body,
         189  +
                            )
         190  +
                        }) {
         191  +
                        ::std::result::Result::Ok(val) => val,
         192  +
                        ::std::result::Result::Err(e) => {
         193  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         194  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         195  +
                            ))
         196  +
                        }
         197  +
                    };
         198  +
                    tmp.meta = generic;
         199  +
                    if tmp.message.is_none() {
         200  +
                        tmp.message = _error_message;
         201  +
                    }
         202  +
                    tmp
         203  +
                }),
         204  +
                "ClusterNotFoundException" => crate::operation::put_attributes::PutAttributesError::ClusterNotFoundException({
         205  +
                    let mut tmp = match protocol
         206  +
                        .deserialize_response(response, crate::types::error::ClusterNotFoundException::SCHEMA, _cfg)
         207  +
                        .and_then(|mut deser| {
         208  +
                            crate::types::error::ClusterNotFoundException::deserialize_with_response(
         209  +
                                &mut *deser,
         210  +
                                response.headers(),
         211  +
                                response.status().into(),
         212  +
                                body,
         213  +
                            )
         214  +
                        }) {
         215  +
                        ::std::result::Result::Ok(val) => val,
         216  +
                        ::std::result::Result::Err(e) => {
         217  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         218  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         219  +
                            ))
         220  +
                        }
         221  +
                    };
         222  +
                    tmp.meta = generic;
         223  +
                    if tmp.message.is_none() {
         224  +
                        tmp.message = _error_message;
         225  +
                    }
         226  +
                    tmp
         227  +
                }),
         228  +
                "InvalidParameterException" => crate::operation::put_attributes::PutAttributesError::InvalidParameterException({
         229  +
                    let mut tmp = match protocol
         230  +
                        .deserialize_response(response, crate::types::error::InvalidParameterException::SCHEMA, _cfg)
         231  +
                        .and_then(|mut deser| {
         232  +
                            crate::types::error::InvalidParameterException::deserialize_with_response(
         233  +
                                &mut *deser,
         234  +
                                response.headers(),
         235  +
                                response.status().into(),
         236  +
                                body,
         237  +
                            )
         238  +
                        }) {
         239  +
                        ::std::result::Result::Ok(val) => val,
         240  +
                        ::std::result::Result::Err(e) => {
         241  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         242  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         243  +
                            ))
         244  +
                        }
         245  +
                    };
         246  +
                    tmp.meta = generic;
         247  +
                    if tmp.message.is_none() {
         248  +
                        tmp.message = _error_message;
         249  +
                    }
         250  +
                    tmp
         251  +
                }),
         252  +
                "TargetNotFoundException" => crate::operation::put_attributes::PutAttributesError::TargetNotFoundException({
         253  +
                    let mut tmp = match protocol
         254  +
                        .deserialize_response(response, crate::types::error::TargetNotFoundException::SCHEMA, _cfg)
         255  +
                        .and_then(|mut deser| {
         256  +
                            crate::types::error::TargetNotFoundException::deserialize_with_response(
         257  +
                                &mut *deser,
         258  +
                                response.headers(),
         259  +
                                response.status().into(),
         260  +
                                body,
         261  +
                            )
         262  +
                        }) {
         263  +
                        ::std::result::Result::Ok(val) => val,
         264  +
                        ::std::result::Result::Err(e) => {
         265  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         266  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         267  +
                            ))
         268  +
                        }
         269  +
                    };
         270  +
                    tmp.meta = generic;
         271  +
                    if tmp.message.is_none() {
         272  +
                        tmp.message = _error_message;
         273  +
                    }
         274  +
                    tmp
         275  +
                }),
         276  +
                _ => crate::operation::put_attributes::PutAttributesError::generic(generic),
         277  +
            };
         278  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         279  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         280  +
            ))
  157    281   
        } else {
  158         -
            crate::protocol_serde::shape_put_attributes::de_put_attributes_http_response(status, headers, body)
  159         -
        };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         282  +
            let protocol = _cfg
         283  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         284  +
                .expect("a SharedClientProtocol is required");
         285  +
            let mut deser = protocol.deserialize_response(response, PutAttributes::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         286  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         287  +
            })?;
         288  +
            let body = response.body().bytes().expect("body loaded");
         289  +
            let output = crate::operation::put_attributes::PutAttributesOutput::deserialize_with_response(
         290  +
                &mut *deser,
         291  +
                response.headers(),
         292  +
                response.status().into(),
         293  +
                body,
         294  +
            )
         295  +
            .map_err(|e| {
         296  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         297  +
            })?;
         298  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         299  +
        }
  161    300   
    }
  162    301   
}
  163    302   
#[derive(Debug)]
  164    303   
struct PutAttributesRequestSerializer;
  165    304   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for PutAttributesRequestSerializer {
  166    305   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  167    306   
    fn serialize_input(
  168    307   
        &self,
  169    308   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  170    309   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  171    310   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  172    311   
        let input = input
  173    312   
            .downcast::<crate::operation::put_attributes::PutAttributesInput>()
  174    313   
            .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::put_attributes::PutAttributesInput,
  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::put_attributes::PutAttributesInput,
  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.PutAttributes",
  204         -
            );
  205         -
            builder
  206         -
        };
  207         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_put_attributes::ser_put_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())
         314  +
        let protocol = _cfg
         315  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         316  +
            .expect("a SharedClientProtocol is required");
         317  +
        let mut request = protocol
         318  +
            .serialize_request(&input, PutAttributes::INPUT_SCHEMA, "", _cfg)
         319  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         320  +
         321  +
        return ::std::result::Result::Ok(request);
  213    322   
    }
  214    323   
}
  215    324   
#[derive(Debug)]
  216    325   
struct PutAttributesEndpointParamsInterceptor;
  217    326   
  218    327   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutAttributesEndpointParamsInterceptor {
  219    328   
    fn name(&self) -> &'static str {
  220    329   
        "PutAttributesEndpointParamsInterceptor"
  221    330   
    }
  222    331