AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12

Files changed:

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/put_cluster_capacity_providers.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 `PutClusterCapacityProviders`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutClusterCapacityProviders;
    6      6   
impl PutClusterCapacityProviders {
    7      7   
    /// Creates a new `PutClusterCapacityProviders`
    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_cluster_capacity_providers::PutClusterCapacityProvidersInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersOutput::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_cluster_capacity_providers::PutClusterCapacityProvidersInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +247,416 @@
  138    144   
                crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError,
  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 PutClusterCapacityProvidersResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutClusterCapacityProvidersResponseDeserializer {
  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_cluster_capacity_providers::de_put_cluster_capacity_providers_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_cluster_capacity_providers::PutClusterCapacityProvidersError::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_cluster_capacity_providers::PutClusterCapacityProvidersError::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  +
                "ClusterNotFoundException" => {
         212  +
                    crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError::ClusterNotFoundException({
         213  +
                        let mut tmp = match protocol
         214  +
                            .deserialize_response(response, crate::types::error::ClusterNotFoundException::SCHEMA, _cfg)
         215  +
                            .and_then(|mut deser| {
         216  +
                                crate::types::error::ClusterNotFoundException::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  +
                "InvalidParameterException" => {
         238  +
                    crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError::InvalidParameterException({
         239  +
                        let mut tmp = match protocol
         240  +
                            .deserialize_response(response, crate::types::error::InvalidParameterException::SCHEMA, _cfg)
         241  +
                            .and_then(|mut deser| {
         242  +
                                crate::types::error::InvalidParameterException::deserialize_with_response(
         243  +
                                    &mut *deser,
         244  +
                                    response.headers(),
         245  +
                                    response.status().into(),
         246  +
                                    body,
         247  +
                                )
         248  +
                            }) {
         249  +
                            ::std::result::Result::Ok(val) => val,
         250  +
                            ::std::result::Result::Err(e) => {
         251  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         252  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         253  +
                                ))
         254  +
                            }
         255  +
                        };
         256  +
                        tmp.meta = generic;
         257  +
                        if tmp.message.is_none() {
         258  +
                            tmp.message = _error_message;
         259  +
                        }
         260  +
                        tmp
         261  +
                    })
         262  +
                }
         263  +
                "ResourceInUseException" => {
         264  +
                    crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError::ResourceInUseException({
         265  +
                        let mut tmp = match protocol
         266  +
                            .deserialize_response(response, crate::types::error::ResourceInUseException::SCHEMA, _cfg)
         267  +
                            .and_then(|mut deser| {
         268  +
                                crate::types::error::ResourceInUseException::deserialize_with_response(
         269  +
                                    &mut *deser,
         270  +
                                    response.headers(),
         271  +
                                    response.status().into(),
         272  +
                                    body,
         273  +
                                )
         274  +
                            }) {
         275  +
                            ::std::result::Result::Ok(val) => val,
         276  +
                            ::std::result::Result::Err(e) => {
         277  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         278  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         279  +
                                ))
         280  +
                            }
         281  +
                        };
         282  +
                        tmp.meta = generic;
         283  +
                        if tmp.message.is_none() {
         284  +
                            tmp.message = _error_message;
         285  +
                        }
         286  +
                        tmp
         287  +
                    })
         288  +
                }
         289  +
                "ServerException" => crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError::ServerException({
         290  +
                    let mut tmp = match protocol
         291  +
                        .deserialize_response(response, crate::types::error::ServerException::SCHEMA, _cfg)
         292  +
                        .and_then(|mut deser| {
         293  +
                            crate::types::error::ServerException::deserialize_with_response(
         294  +
                                &mut *deser,
         295  +
                                response.headers(),
         296  +
                                response.status().into(),
         297  +
                                body,
         298  +
                            )
         299  +
                        }) {
         300  +
                        ::std::result::Result::Ok(val) => val,
         301  +
                        ::std::result::Result::Err(e) => {
         302  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         303  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         304  +
                            ))
         305  +
                        }
         306  +
                    };
         307  +
                    tmp.meta = generic;
         308  +
                    if tmp.message.is_none() {
         309  +
                        tmp.message = _error_message;
         310  +
                    }
         311  +
                    tmp
         312  +
                }),
         313  +
                "UpdateInProgressException" => {
         314  +
                    crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError::UpdateInProgressException({
         315  +
                        let mut tmp = match protocol
         316  +
                            .deserialize_response(response, crate::types::error::UpdateInProgressException::SCHEMA, _cfg)
         317  +
                            .and_then(|mut deser| {
         318  +
                                crate::types::error::UpdateInProgressException::deserialize_with_response(
         319  +
                                    &mut *deser,
         320  +
                                    response.headers(),
         321  +
                                    response.status().into(),
         322  +
                                    body,
         323  +
                                )
         324  +
                            }) {
         325  +
                            ::std::result::Result::Ok(val) => val,
         326  +
                            ::std::result::Result::Err(e) => {
         327  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         328  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         329  +
                                ))
         330  +
                            }
         331  +
                        };
         332  +
                        tmp.meta = generic;
         333  +
                        if tmp.message.is_none() {
         334  +
                            tmp.message = _error_message;
         335  +
                        }
         336  +
                        tmp
         337  +
                    })
         338  +
                }
         339  +
                _ => crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError::generic(generic),
         340  +
            };
         341  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         342  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         343  +
            ))
  160    344   
        } else {
  161         -
            crate::protocol_serde::shape_put_cluster_capacity_providers::de_put_cluster_capacity_providers_http_response(status, headers, body)
  162         -
        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         345  +
            let protocol = _cfg
         346  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         347  +
                .expect("a SharedClientProtocol is required");
         348  +
            let mut deser = protocol
         349  +
                .deserialize_response(response, PutClusterCapacityProviders::OUTPUT_SCHEMA, _cfg)
         350  +
                .map_err(|e| {
         351  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         352  +
                })?;
         353  +
            let body = response.body().bytes().expect("body loaded");
         354  +
            let output = crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersOutput::deserialize_with_response(
         355  +
                &mut *deser,
         356  +
                response.headers(),
         357  +
                response.status().into(),
         358  +
                body,
         359  +
            )
         360  +
            .map_err(|e| {
         361  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         362  +
            })?;
         363  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         364  +
        }
  164    365   
    }
  165    366   
}
  166    367   
#[derive(Debug)]
  167    368   
struct PutClusterCapacityProvidersRequestSerializer;
  168    369   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for PutClusterCapacityProvidersRequestSerializer {
  169    370   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    371   
    fn serialize_input(
  171    372   
        &self,
  172    373   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    374   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    375   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    376   
        let input = input
  176    377   
            .downcast::<crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersInput>()
  177    378   
            .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_cluster_capacity_providers::PutClusterCapacityProvidersInput,
  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_cluster_capacity_providers::PutClusterCapacityProvidersInput,
  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.PutClusterCapacityProviders",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  211         -
            crate::protocol_serde::shape_put_cluster_capacity_providers::ser_put_cluster_capacity_providers_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())
         379  +
        let protocol = _cfg
         380  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         381  +
            .expect("a SharedClientProtocol is required");
         382  +
        let mut request = protocol
         383  +
            .serialize_request(&input, PutClusterCapacityProviders::INPUT_SCHEMA, "", _cfg)
         384  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         385  +
         386  +
        return ::std::result::Result::Ok(request);
  218    387   
    }
  219    388   
}
  220    389   
#[derive(Debug)]
  221    390   
struct PutClusterCapacityProvidersEndpointParamsInterceptor;
  222    391   
  223    392   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutClusterCapacityProvidersEndpointParamsInterceptor {
  224    393   
    fn name(&self) -> &'static str {
  225    394   
        "PutClusterCapacityProvidersEndpointParamsInterceptor"
  226    395   
    }
  227    396   

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

@@ -35,35 +209,210 @@
   55     55   
    "cluster",
   56     56   
    0,
   57     57   
);
   58     58   
static PUTCLUSTERCAPACITYPROVIDERSINPUT_MEMBER_CAPACITY_PROVIDERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   59     59   
    ::aws_smithy_schema::ShapeId::from_static(
   60     60   
        "com.amazonaws.ecs.synthetic#PutClusterCapacityProvidersInput$capacityProviders",
   61     61   
        "com.amazonaws.ecs.synthetic",
   62     62   
        "PutClusterCapacityProvidersInput",
   63     63   
    ),
   64     64   
    ::aws_smithy_schema::ShapeType::List,
   65         -
    "capacity_providers",
          65  +
    "capacityProviders",
   66     66   
    1,
   67     67   
);
   68     68   
static PUTCLUSTERCAPACITYPROVIDERSINPUT_MEMBER_DEFAULT_CAPACITY_PROVIDER_STRATEGY: ::aws_smithy_schema::Schema =
   69     69   
    ::aws_smithy_schema::Schema::new_member(
   70     70   
        ::aws_smithy_schema::ShapeId::from_static(
   71     71   
            "com.amazonaws.ecs.synthetic#PutClusterCapacityProvidersInput$defaultCapacityProviderStrategy",
   72     72   
            "com.amazonaws.ecs.synthetic",
   73     73   
            "PutClusterCapacityProvidersInput",
   74     74   
        ),
   75     75   
        ::aws_smithy_schema::ShapeType::List,
   76         -
        "default_capacity_provider_strategy",
          76  +
        "defaultCapacityProviderStrategy",
   77     77   
        2,
   78     78   
    );
   79     79   
static PUTCLUSTERCAPACITYPROVIDERSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   80     80   
    PUTCLUSTERCAPACITYPROVIDERSINPUT_SCHEMA_ID,
   81     81   
    ::aws_smithy_schema::ShapeType::Structure,
   82     82   
    &[
   83     83   
        &PUTCLUSTERCAPACITYPROVIDERSINPUT_MEMBER_CLUSTER,
   84     84   
        &PUTCLUSTERCAPACITYPROVIDERSINPUT_MEMBER_CAPACITY_PROVIDERS,
   85     85   
        &PUTCLUSTERCAPACITYPROVIDERSINPUT_MEMBER_DEFAULT_CAPACITY_PROVIDER_STRATEGY,
   86     86   
    ],
   87     87   
);
   88     88   
impl PutClusterCapacityProvidersInput {
   89     89   
    /// The schema for this shape.
   90     90   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTCLUSTERCAPACITYPROVIDERSINPUT_SCHEMA;
   91     91   
}
   92     92   
impl ::aws_smithy_schema::serde::SerializableStruct for PutClusterCapacityProvidersInput {
   93     93   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   94     94   
    fn serialize_members(
   95     95   
        &self,
   96     96   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   97     97   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   98     98   
        if let Some(ref val) = self.cluster {
   99     99   
            ser.write_string(&PUTCLUSTERCAPACITYPROVIDERSINPUT_MEMBER_CLUSTER, val)?;
  100    100   
        }
  101    101   
        if let Some(ref val) = self.capacity_providers {
  102    102   
            ser.write_list(
  103    103   
                &PUTCLUSTERCAPACITYPROVIDERSINPUT_MEMBER_CAPACITY_PROVIDERS,
  104    104   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  105    105   
                    for item in val {
  106    106   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
  107    107   
                    }
  108    108   
                    Ok(())
  109    109   
                },
  110    110   
            )?;
  111    111   
        }
  112    112   
        if let Some(ref val) = self.default_capacity_provider_strategy {
  113    113   
            ser.write_list(
  114    114   
                &PUTCLUSTERCAPACITYPROVIDERSINPUT_MEMBER_DEFAULT_CAPACITY_PROVIDER_STRATEGY,
  115    115   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  116    116   
                    for item in val {
  117    117   
                        ser.write_struct(crate::types::CapacityProviderStrategyItem::SCHEMA, item)?;
  118    118   
                    }
  119    119   
                    Ok(())
  120    120   
                },
  121    121   
            )?;
  122    122   
        }
  123    123   
        Ok(())
  124    124   
    }
  125    125   
}
  126    126   
impl PutClusterCapacityProvidersInput {
  127    127   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  128         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  129         -
        deserializer: &mut D,
         128  +
    pub fn deserialize(
         129  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  130    130   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  131    131   
        #[allow(unused_variables, unused_mut)]
  132    132   
        let mut builder = Self::builder();
  133    133   
        #[allow(
  134    134   
            unused_variables,
  135    135   
            unreachable_code,
  136    136   
            clippy::single_match,
  137    137   
            clippy::match_single_binding,
  138    138   
            clippy::diverging_sub_expression
  139    139   
        )]
  140         -
        deserializer.read_struct(&PUTCLUSTERCAPACITYPROVIDERSINPUT_SCHEMA, (), |_, member, deser| {
         140  +
        deserializer.read_struct(&PUTCLUSTERCAPACITYPROVIDERSINPUT_SCHEMA, &mut |member, deser| {
  141    141   
            match member.member_index() {
  142    142   
                Some(0) => {
  143    143   
                    builder.cluster = Some(deser.read_string(member)?);
  144    144   
                }
  145    145   
                Some(1) => {
  146         -
                    builder.capacity_providers = Some({
  147         -
                        let container = if let Some(cap) = deser.container_size() {
  148         -
                            Vec::with_capacity(cap)
  149         -
                        } else {
  150         -
                            Vec::new()
  151         -
                        };
  152         -
                        deser.read_list(member, container, |mut list, deser| {
  153         -
                            list.push(deser.read_string(member)?);
  154         -
                            Ok(list)
  155         -
                        })?
  156         -
                    });
         146  +
                    builder.capacity_providers = Some(deser.read_string_list(member)?);
  157    147   
                }
  158    148   
                Some(2) => {
  159    149   
                    builder.default_capacity_provider_strategy = Some({
  160         -
                        let container = if let Some(cap) = deser.container_size() {
  161         -
                            Vec::with_capacity(cap)
  162         -
                        } else {
  163         -
                            Vec::new()
  164         -
                        };
  165         -
                        deser.read_list(member, container, |mut list, deser| {
  166         -
                            list.push(crate::types::CapacityProviderStrategyItem::deserialize(deser)?);
  167         -
                            Ok(list)
  168         -
                        })?
         150  +
                        let mut container = Vec::new();
         151  +
                        deser.read_list(member, &mut |deser| {
         152  +
                            container.push(crate::types::CapacityProviderStrategyItem::deserialize(deser)?);
         153  +
                            Ok(())
         154  +
                        })?;
         155  +
                        container
  169    156   
                    });
  170    157   
                }
  171    158   
                _ => {}
  172    159   
            }
  173    160   
            Ok(())
  174    161   
        })?;
         162  +
        builder.cluster = builder.cluster.or(Some(String::new()));
         163  +
        builder.capacity_providers = builder.capacity_providers.or(Some(Vec::new()));
         164  +
        builder.default_capacity_provider_strategy = builder.default_capacity_provider_strategy.or(Some(Vec::new()));
  175    165   
        builder
  176    166   
            .build()
  177    167   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  178    168   
    }
  179    169   
}
         170  +
impl PutClusterCapacityProvidersInput {
         171  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         172  +
    pub fn deserialize_with_response(
         173  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         174  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         175  +
        _status: u16,
         176  +
        _body: &[u8],
         177  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         178  +
        Self::deserialize(deserializer)
         179  +
    }
         180  +
}
  180    181   
impl PutClusterCapacityProvidersInput {
  181    182   
    /// Creates a new builder-style object to manufacture [`PutClusterCapacityProvidersInput`](crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersInput).
  182    183   
    pub fn builder() -> crate::operation::put_cluster_capacity_providers::builders::PutClusterCapacityProvidersInputBuilder {
  183    184   
        crate::operation::put_cluster_capacity_providers::builders::PutClusterCapacityProvidersInputBuilder::default()
  184    185   
    }
  185    186   
}
  186    187   
  187    188   
/// A builder for [`PutClusterCapacityProvidersInput`](crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersInput).
  188    189   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  189    190   
#[non_exhaustive]

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

@@ -1,1 +96,143 @@
   21     21   
static PUTCLUSTERCAPACITYPROVIDERSOUTPUT_MEMBER_CLUSTER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ecs.synthetic#PutClusterCapacityProvidersOutput$cluster",
   24     24   
        "com.amazonaws.ecs.synthetic",
   25     25   
        "PutClusterCapacityProvidersOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28     28   
    "cluster",
   29     29   
    0,
   30     30   
);
          31  +
static PUTCLUSTERCAPACITYPROVIDERSOUTPUT_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 PUTCLUSTERCAPACITYPROVIDERSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     39   
    PUTCLUSTERCAPACITYPROVIDERSOUTPUT_SCHEMA_ID,
   33     40   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    &[&PUTCLUSTERCAPACITYPROVIDERSOUTPUT_MEMBER_CLUSTER],
          41  +
    &[
          42  +
        &PUTCLUSTERCAPACITYPROVIDERSOUTPUT_MEMBER_CLUSTER,
          43  +
        &PUTCLUSTERCAPACITYPROVIDERSOUTPUT_MEMBER__REQUEST_ID,
          44  +
    ],
   35     45   
);
   36     46   
impl PutClusterCapacityProvidersOutput {
   37     47   
    /// The schema for this shape.
   38     48   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTCLUSTERCAPACITYPROVIDERSOUTPUT_SCHEMA;
   39     49   
}
   40     50   
impl ::aws_smithy_schema::serde::SerializableStruct for PutClusterCapacityProvidersOutput {
   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.cluster {
   47     57   
            ser.write_struct(&PUTCLUSTERCAPACITYPROVIDERSOUTPUT_MEMBER_CLUSTER, val)?;
   48     58   
        }
   49     59   
        Ok(())
   50     60   
    }
   51     61   
}
   52     62   
impl PutClusterCapacityProvidersOutput {
   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(&PUTCLUSTERCAPACITYPROVIDERSOUTPUT_SCHEMA, (), |_, member, deser| {
          76  +
        deserializer.read_struct(&PUTCLUSTERCAPACITYPROVIDERSOUTPUT_SCHEMA, &mut |member, deser| {
          77  +
            match member.member_index() {
          78  +
                Some(0) => {
          79  +
                    builder.cluster = Some(crate::types::Cluster::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 PutClusterCapacityProvidersOutput {
          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(&PUTCLUSTERCAPACITYPROVIDERSOUTPUT_SCHEMA, &mut |member, deser| {
   67    114   
            match member.member_index() {
   68    115   
                Some(0) => {
   69    116   
                    builder.cluster = Some(crate::types::Cluster::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/register_container_instance.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 `RegisterContainerInstance`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct RegisterContainerInstance;
    6      6   
impl RegisterContainerInstance {
    7      7   
    /// Creates a new `RegisterContainerInstance`
    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::register_container_instance::RegisterContainerInstanceInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::register_container_instance::RegisterContainerInstanceOutput::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::register_container_instance::RegisterContainerInstanceInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::register_container_instance::RegisterContainerInstanceOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::register_container_instance::RegisterContainerInstanceError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +247,338 @@
  138    144   
                crate::operation::register_container_instance::RegisterContainerInstanceError,
  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 RegisterContainerInstanceResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for RegisterContainerInstanceResponseDeserializer {
  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_register_container_instance::de_register_container_instance_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::register_container_instance::RegisterContainerInstanceError::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::register_container_instance::RegisterContainerInstanceError::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::register_container_instance::RegisterContainerInstanceError::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::register_container_instance::RegisterContainerInstanceError::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::register_container_instance::RegisterContainerInstanceError::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_register_container_instance::de_register_container_instance_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, RegisterContainerInstance::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::register_container_instance::RegisterContainerInstanceOutput::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 RegisterContainerInstanceRequestSerializer;
  168    291   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for RegisterContainerInstanceRequestSerializer {
  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::register_container_instance::RegisterContainerInstanceInput>()
  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::register_container_instance::RegisterContainerInstanceInput,
  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::register_container_instance::RegisterContainerInstanceInput,
  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.RegisterContainerInstance",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  211         -
            crate::protocol_serde::shape_register_container_instance::ser_register_container_instance_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, RegisterContainerInstance::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 RegisterContainerInstanceEndpointParamsInterceptor;
  222    313   
  223    314   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for RegisterContainerInstanceEndpointParamsInterceptor {
  224    315   
    fn name(&self) -> &'static str {
  225    316   
        "RegisterContainerInstanceEndpointParamsInterceptor"
  226    317   
    }
  227    318   

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

@@ -97,97 +218,218 @@
  117    117   
    "cluster",
  118    118   
    0,
  119    119   
);
  120    120   
static REGISTERCONTAINERINSTANCEINPUT_MEMBER_INSTANCE_IDENTITY_DOCUMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  121    121   
    ::aws_smithy_schema::ShapeId::from_static(
  122    122   
        "com.amazonaws.ecs.synthetic#RegisterContainerInstanceInput$instanceIdentityDocument",
  123    123   
        "com.amazonaws.ecs.synthetic",
  124    124   
        "RegisterContainerInstanceInput",
  125    125   
    ),
  126    126   
    ::aws_smithy_schema::ShapeType::String,
  127         -
    "instance_identity_document",
         127  +
    "instanceIdentityDocument",
  128    128   
    1,
  129    129   
);
  130    130   
static REGISTERCONTAINERINSTANCEINPUT_MEMBER_INSTANCE_IDENTITY_DOCUMENT_SIGNATURE: ::aws_smithy_schema::Schema =
  131    131   
    ::aws_smithy_schema::Schema::new_member(
  132    132   
        ::aws_smithy_schema::ShapeId::from_static(
  133    133   
            "com.amazonaws.ecs.synthetic#RegisterContainerInstanceInput$instanceIdentityDocumentSignature",
  134    134   
            "com.amazonaws.ecs.synthetic",
  135    135   
            "RegisterContainerInstanceInput",
  136    136   
        ),
  137    137   
        ::aws_smithy_schema::ShapeType::String,
  138         -
        "instance_identity_document_signature",
         138  +
        "instanceIdentityDocumentSignature",
  139    139   
        2,
  140    140   
    );
  141    141   
static REGISTERCONTAINERINSTANCEINPUT_MEMBER_TOTAL_RESOURCES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  142    142   
    ::aws_smithy_schema::ShapeId::from_static(
  143    143   
        "com.amazonaws.ecs.synthetic#RegisterContainerInstanceInput$totalResources",
  144    144   
        "com.amazonaws.ecs.synthetic",
  145    145   
        "RegisterContainerInstanceInput",
  146    146   
    ),
  147    147   
    ::aws_smithy_schema::ShapeType::List,
  148         -
    "total_resources",
         148  +
    "totalResources",
  149    149   
    3,
  150    150   
);
  151    151   
static REGISTERCONTAINERINSTANCEINPUT_MEMBER_VERSION_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  152    152   
    ::aws_smithy_schema::ShapeId::from_static(
  153    153   
        "com.amazonaws.ecs.synthetic#RegisterContainerInstanceInput$versionInfo",
  154    154   
        "com.amazonaws.ecs.synthetic",
  155    155   
        "RegisterContainerInstanceInput",
  156    156   
    ),
  157    157   
    ::aws_smithy_schema::ShapeType::Structure,
  158         -
    "version_info",
         158  +
    "versionInfo",
  159    159   
    4,
  160    160   
);
  161    161   
static REGISTERCONTAINERINSTANCEINPUT_MEMBER_CONTAINER_INSTANCE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  162    162   
    ::aws_smithy_schema::ShapeId::from_static(
  163    163   
        "com.amazonaws.ecs.synthetic#RegisterContainerInstanceInput$containerInstanceArn",
  164    164   
        "com.amazonaws.ecs.synthetic",
  165    165   
        "RegisterContainerInstanceInput",
  166    166   
    ),
  167    167   
    ::aws_smithy_schema::ShapeType::String,
  168         -
    "container_instance_arn",
         168  +
    "containerInstanceArn",
  169    169   
    5,
  170    170   
);
  171    171   
static REGISTERCONTAINERINSTANCEINPUT_MEMBER_ATTRIBUTES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  172    172   
    ::aws_smithy_schema::ShapeId::from_static(
  173    173   
        "com.amazonaws.ecs.synthetic#RegisterContainerInstanceInput$attributes",
  174    174   
        "com.amazonaws.ecs.synthetic",
  175    175   
        "RegisterContainerInstanceInput",
  176    176   
    ),
  177    177   
    ::aws_smithy_schema::ShapeType::List,
  178    178   
    "attributes",
  179    179   
    6,
  180    180   
);
  181    181   
static REGISTERCONTAINERINSTANCEINPUT_MEMBER_PLATFORM_DEVICES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  182    182   
    ::aws_smithy_schema::ShapeId::from_static(
  183    183   
        "com.amazonaws.ecs.synthetic#RegisterContainerInstanceInput$platformDevices",
  184    184   
        "com.amazonaws.ecs.synthetic",
  185    185   
        "RegisterContainerInstanceInput",
  186    186   
    ),
  187    187   
    ::aws_smithy_schema::ShapeType::List,
  188         -
    "platform_devices",
         188  +
    "platformDevices",
  189    189   
    7,
  190    190   
);
  191    191   
static REGISTERCONTAINERINSTANCEINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  192    192   
    ::aws_smithy_schema::ShapeId::from_static(
  193    193   
        "com.amazonaws.ecs.synthetic#RegisterContainerInstanceInput$tags",
  194    194   
        "com.amazonaws.ecs.synthetic",
  195    195   
        "RegisterContainerInstanceInput",
  196    196   
    ),
  197    197   
    ::aws_smithy_schema::ShapeType::List,
  198    198   
    "tags",
@@ -260,260 +409,408 @@
  280    280   
                    }
  281    281   
                    Ok(())
  282    282   
                },
  283    283   
            )?;
  284    284   
        }
  285    285   
        Ok(())
  286    286   
    }
  287    287   
}
  288    288   
impl RegisterContainerInstanceInput {
  289    289   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  290         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  291         -
        deserializer: &mut D,
         290  +
    pub fn deserialize(
         291  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  292    292   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  293    293   
        #[allow(unused_variables, unused_mut)]
  294    294   
        let mut builder = Self::builder();
  295    295   
        #[allow(
  296    296   
            unused_variables,
  297    297   
            unreachable_code,
  298    298   
            clippy::single_match,
  299    299   
            clippy::match_single_binding,
  300    300   
            clippy::diverging_sub_expression
  301    301   
        )]
  302         -
        deserializer.read_struct(&REGISTERCONTAINERINSTANCEINPUT_SCHEMA, (), |_, member, deser| {
         302  +
        deserializer.read_struct(&REGISTERCONTAINERINSTANCEINPUT_SCHEMA, &mut |member, deser| {
  303    303   
            match member.member_index() {
  304    304   
                Some(0) => {
  305    305   
                    builder.cluster = Some(deser.read_string(member)?);
  306    306   
                }
  307    307   
                Some(1) => {
  308    308   
                    builder.instance_identity_document = Some(deser.read_string(member)?);
  309    309   
                }
  310    310   
                Some(2) => {
  311    311   
                    builder.instance_identity_document_signature = Some(deser.read_string(member)?);
  312    312   
                }
  313    313   
                Some(3) => {
  314    314   
                    builder.total_resources = Some({
  315         -
                        let container = if let Some(cap) = deser.container_size() {
  316         -
                            Vec::with_capacity(cap)
  317         -
                        } else {
  318         -
                            Vec::new()
  319         -
                        };
  320         -
                        deser.read_list(member, container, |mut list, deser| {
  321         -
                            list.push(crate::types::Resource::deserialize(deser)?);
  322         -
                            Ok(list)
  323         -
                        })?
         315  +
                        let mut container = Vec::new();
         316  +
                        deser.read_list(member, &mut |deser| {
         317  +
                            container.push(crate::types::Resource::deserialize(deser)?);
         318  +
                            Ok(())
         319  +
                        })?;
         320  +
                        container
  324    321   
                    });
  325    322   
                }
  326    323   
                Some(4) => {
  327    324   
                    builder.version_info = Some(crate::types::VersionInfo::deserialize(deser)?);
  328    325   
                }
  329    326   
                Some(5) => {
  330    327   
                    builder.container_instance_arn = Some(deser.read_string(member)?);
  331    328   
                }
  332    329   
                Some(6) => {
  333    330   
                    builder.attributes = Some({
  334         -
                        let container = if let Some(cap) = deser.container_size() {
  335         -
                            Vec::with_capacity(cap)
  336         -
                        } else {
  337         -
                            Vec::new()
  338         -
                        };
  339         -
                        deser.read_list(member, container, |mut list, deser| {
  340         -
                            list.push(crate::types::Attribute::deserialize(deser)?);
  341         -
                            Ok(list)
  342         -
                        })?
         331  +
                        let mut container = Vec::new();
         332  +
                        deser.read_list(member, &mut |deser| {
         333  +
                            container.push(crate::types::Attribute::deserialize(deser)?);
         334  +
                            Ok(())
         335  +
                        })?;
         336  +
                        container
  343    337   
                    });
  344    338   
                }
  345    339   
                Some(7) => {
  346    340   
                    builder.platform_devices = Some({
  347         -
                        let container = if let Some(cap) = deser.container_size() {
  348         -
                            Vec::with_capacity(cap)
  349         -
                        } else {
  350         -
                            Vec::new()
  351         -
                        };
  352         -
                        deser.read_list(member, container, |mut list, deser| {
  353         -
                            list.push(crate::types::PlatformDevice::deserialize(deser)?);
  354         -
                            Ok(list)
  355         -
                        })?
         341  +
                        let mut container = Vec::new();
         342  +
                        deser.read_list(member, &mut |deser| {
         343  +
                            container.push(crate::types::PlatformDevice::deserialize(deser)?);
         344  +
                            Ok(())
         345  +
                        })?;
         346  +
                        container
  356    347   
                    });
  357    348   
                }
  358    349   
                Some(8) => {
  359    350   
                    builder.tags = Some({
  360         -
                        let container = if let Some(cap) = deser.container_size() {
  361         -
                            Vec::with_capacity(cap)
  362         -
                        } else {
  363         -
                            Vec::new()
  364         -
                        };
  365         -
                        deser.read_list(member, container, |mut list, deser| {
  366         -
                            list.push(crate::types::Tag::deserialize(deser)?);
  367         -
                            Ok(list)
  368         -
                        })?
         351  +
                        let mut container = Vec::new();
         352  +
                        deser.read_list(member, &mut |deser| {
         353  +
                            container.push(crate::types::Tag::deserialize(deser)?);
         354  +
                            Ok(())
         355  +
                        })?;
         356  +
                        container
  369    357   
                    });
  370    358   
                }
  371    359   
                _ => {}
  372    360   
            }
  373    361   
            Ok(())
  374    362   
        })?;
  375    363   
        builder
  376    364   
            .build()
  377    365   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  378    366   
    }
  379    367   
}
         368  +
impl RegisterContainerInstanceInput {
         369  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         370  +
    pub fn deserialize_with_response(
         371  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         372  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         373  +
        _status: u16,
         374  +
        _body: &[u8],
         375  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         376  +
        Self::deserialize(deserializer)
         377  +
    }
         378  +
}
  380    379   
impl RegisterContainerInstanceInput {
  381    380   
    /// Creates a new builder-style object to manufacture [`RegisterContainerInstanceInput`](crate::operation::register_container_instance::RegisterContainerInstanceInput).
  382    381   
    pub fn builder() -> crate::operation::register_container_instance::builders::RegisterContainerInstanceInputBuilder {
  383    382   
        crate::operation::register_container_instance::builders::RegisterContainerInstanceInputBuilder::default()
  384    383   
    }
  385    384   
}
  386    385   
  387    386   
/// A builder for [`RegisterContainerInstanceInput`](crate::operation::register_container_instance::RegisterContainerInstanceInput).
  388    387   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  389    388   
#[non_exhaustive]

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

@@ -1,1 +96,143 @@
   18     18   
    "com.amazonaws.ecs.synthetic",
   19     19   
    "RegisterContainerInstanceOutput",
   20     20   
);
   21     21   
static REGISTERCONTAINERINSTANCEOUTPUT_MEMBER_CONTAINER_INSTANCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ecs.synthetic#RegisterContainerInstanceOutput$containerInstance",
   24     24   
        "com.amazonaws.ecs.synthetic",
   25     25   
        "RegisterContainerInstanceOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "container_instance",
          28  +
    "containerInstance",
   29     29   
    0,
   30     30   
);
          31  +
static REGISTERCONTAINERINSTANCEOUTPUT_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 REGISTERCONTAINERINSTANCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     39   
    REGISTERCONTAINERINSTANCEOUTPUT_SCHEMA_ID,
   33     40   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    &[&REGISTERCONTAINERINSTANCEOUTPUT_MEMBER_CONTAINER_INSTANCE],
          41  +
    &[
          42  +
        &REGISTERCONTAINERINSTANCEOUTPUT_MEMBER_CONTAINER_INSTANCE,
          43  +
        &REGISTERCONTAINERINSTANCEOUTPUT_MEMBER__REQUEST_ID,
          44  +
    ],
   35     45   
);
   36     46   
impl RegisterContainerInstanceOutput {
   37     47   
    /// The schema for this shape.
   38     48   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REGISTERCONTAINERINSTANCEOUTPUT_SCHEMA;
   39     49   
}
   40     50   
impl ::aws_smithy_schema::serde::SerializableStruct for RegisterContainerInstanceOutput {
   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.container_instance {
   47     57   
            ser.write_struct(&REGISTERCONTAINERINSTANCEOUTPUT_MEMBER_CONTAINER_INSTANCE, val)?;
   48     58   
        }
   49     59   
        Ok(())
   50     60   
    }
   51     61   
}
   52     62   
impl RegisterContainerInstanceOutput {
   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(&REGISTERCONTAINERINSTANCEOUTPUT_SCHEMA, (), |_, member, deser| {
          76  +
        deserializer.read_struct(&REGISTERCONTAINERINSTANCEOUTPUT_SCHEMA, &mut |member, deser| {
          77  +
            match member.member_index() {
          78  +
                Some(0) => {
          79  +
                    builder.container_instance = Some(crate::types::ContainerInstance::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 RegisterContainerInstanceOutput {
          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(&REGISTERCONTAINERINSTANCEOUTPUT_SCHEMA, &mut |member, deser| {
   67    114   
            match member.member_index() {
   68    115   
                Some(0) => {
   69    116   
                    builder.container_instance = Some(crate::types::ContainerInstance::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/register_task_definition.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 `RegisterTaskDefinition`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct RegisterTaskDefinition;
    6      6   
impl RegisterTaskDefinition {
    7      7   
    /// Creates a new `RegisterTaskDefinition`
    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::register_task_definition::RegisterTaskDefinitionInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::register_task_definition::RegisterTaskDefinitionOutput::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::register_task_definition::RegisterTaskDefinitionInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::register_task_definition::RegisterTaskDefinitionOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::register_task_definition::RegisterTaskDefinitionError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +247,334 @@
  138    142   
                crate::operation::register_task_definition::RegisterTaskDefinitionError,
  139    143   
            >::new());
  140    144   
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct RegisterTaskDefinitionResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for RegisterTaskDefinitionResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153         -
        let headers = response.headers();
  154         -
        let body = response.body().bytes().expect("body loaded");
  155    158   
        #[allow(unused_mut)]
  156    159   
        let mut force_error = false;
  157    160   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158         -
        let parse_result = if !success && status != 200 || force_error {
  159         -
            crate::protocol_serde::shape_register_task_definition::de_register_task_definition_http_error(status, headers, body)
         161  +
        if !success && status != 200 || force_error {
         162  +
            let headers = response.headers();
         163  +
            let body = response.body().bytes().expect("body loaded");
         164  +
            #[allow(unused_mut)]
         165  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         166  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         167  +
            })?;
         168  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         169  +
            let generic = generic_builder.build();
         170  +
            let error_code = match generic.code() {
         171  +
                ::std::option::Option::Some(code) => code,
         172  +
                ::std::option::Option::None => {
         173  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         174  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         175  +
                            crate::operation::register_task_definition::RegisterTaskDefinitionError::unhandled(generic),
         176  +
                        ),
         177  +
                    ))
         178  +
                }
         179  +
            };
         180  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         181  +
            let protocol = _cfg
         182  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         183  +
                .expect("a SharedClientProtocol is required");
         184  +
            let err = match error_code {
         185  +
                "ClientException" => crate::operation::register_task_definition::RegisterTaskDefinitionError::ClientException({
         186  +
                    let mut tmp = match protocol
         187  +
                        .deserialize_response(response, crate::types::error::ClientException::SCHEMA, _cfg)
         188  +
                        .and_then(|mut deser| {
         189  +
                            crate::types::error::ClientException::deserialize_with_response(
         190  +
                                &mut *deser,
         191  +
                                response.headers(),
         192  +
                                response.status().into(),
         193  +
                                body,
         194  +
                            )
         195  +
                        }) {
         196  +
                        ::std::result::Result::Ok(val) => val,
         197  +
                        ::std::result::Result::Err(e) => {
         198  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         199  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         200  +
                            ))
         201  +
                        }
         202  +
                    };
         203  +
                    tmp.meta = generic;
         204  +
                    if tmp.message.is_none() {
         205  +
                        tmp.message = _error_message;
         206  +
                    }
         207  +
                    tmp
         208  +
                }),
         209  +
                "InvalidParameterException" => crate::operation::register_task_definition::RegisterTaskDefinitionError::InvalidParameterException({
         210  +
                    let mut tmp = match protocol
         211  +
                        .deserialize_response(response, crate::types::error::InvalidParameterException::SCHEMA, _cfg)
         212  +
                        .and_then(|mut deser| {
         213  +
                            crate::types::error::InvalidParameterException::deserialize_with_response(
         214  +
                                &mut *deser,
         215  +
                                response.headers(),
         216  +
                                response.status().into(),
         217  +
                                body,
         218  +
                            )
         219  +
                        }) {
         220  +
                        ::std::result::Result::Ok(val) => val,
         221  +
                        ::std::result::Result::Err(e) => {
         222  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         223  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         224  +
                            ))
         225  +
                        }
         226  +
                    };
         227  +
                    tmp.meta = generic;
         228  +
                    if tmp.message.is_none() {
         229  +
                        tmp.message = _error_message;
         230  +
                    }
         231  +
                    tmp
         232  +
                }),
         233  +
                "ServerException" => crate::operation::register_task_definition::RegisterTaskDefinitionError::ServerException({
         234  +
                    let mut tmp = match protocol
         235  +
                        .deserialize_response(response, crate::types::error::ServerException::SCHEMA, _cfg)
         236  +
                        .and_then(|mut deser| {
         237  +
                            crate::types::error::ServerException::deserialize_with_response(
         238  +
                                &mut *deser,
         239  +
                                response.headers(),
         240  +
                                response.status().into(),
         241  +
                                body,
         242  +
                            )
         243  +
                        }) {
         244  +
                        ::std::result::Result::Ok(val) => val,
         245  +
                        ::std::result::Result::Err(e) => {
         246  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         247  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         248  +
                            ))
         249  +
                        }
         250  +
                    };
         251  +
                    tmp.meta = generic;
         252  +
                    if tmp.message.is_none() {
         253  +
                        tmp.message = _error_message;
         254  +
                    }
         255  +
                    tmp
         256  +
                }),
         257  +
                _ => crate::operation::register_task_definition::RegisterTaskDefinitionError::generic(generic),
         258  +
            };
         259  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         260  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         261  +
            ))
  160    262   
        } else {
  161         -
            crate::protocol_serde::shape_register_task_definition::de_register_task_definition_http_response(status, headers, body)
  162         -
        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         263  +
            let protocol = _cfg
         264  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         265  +
                .expect("a SharedClientProtocol is required");
         266  +
            let mut deser = protocol
         267  +
                .deserialize_response(response, RegisterTaskDefinition::OUTPUT_SCHEMA, _cfg)
         268  +
                .map_err(|e| {
         269  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         270  +
                })?;
         271  +
            let body = response.body().bytes().expect("body loaded");
         272  +
            let output = crate::operation::register_task_definition::RegisterTaskDefinitionOutput::deserialize_with_response(
         273  +
                &mut *deser,
         274  +
                response.headers(),
         275  +
                response.status().into(),
         276  +
                body,
         277  +
            )
         278  +
            .map_err(|e| {
         279  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         280  +
            })?;
         281  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         282  +
        }
  164    283   
    }
  165    284   
}
  166    285   
#[derive(Debug)]
  167    286   
struct RegisterTaskDefinitionRequestSerializer;
  168    287   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for RegisterTaskDefinitionRequestSerializer {
  169    288   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    289   
    fn serialize_input(
  171    290   
        &self,
  172    291   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    292   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    293   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    294   
        let input = input
  176    295   
            .downcast::<crate::operation::register_task_definition::RegisterTaskDefinitionInput>()
  177    296   
            .expect("correct type");
  178         -
        let _header_serialization_settings = _cfg
  179         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  180         -
            .cloned()
  181         -
            .unwrap_or_default();
  182         -
        let mut request_builder = {
  183         -
            #[allow(clippy::uninlined_format_args)]
  184         -
            fn uri_base(
  185         -
                _input: &crate::operation::register_task_definition::RegisterTaskDefinitionInput,
  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::register_task_definition::RegisterTaskDefinitionInput,
  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.RegisterTaskDefinition",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  211         -
            crate::protocol_serde::shape_register_task_definition::ser_register_task_definition_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())
         297  +
        let protocol = _cfg
         298  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         299  +
            .expect("a SharedClientProtocol is required");
         300  +
        let mut request = protocol
         301  +
            .serialize_request(&input, RegisterTaskDefinition::INPUT_SCHEMA, "", _cfg)
         302  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         303  +
         304  +
        return ::std::result::Result::Ok(request);
  218    305   
    }
  219    306   
}
  220    307   
#[derive(Debug)]
  221    308   
struct RegisterTaskDefinitionEndpointParamsInterceptor;
  222    309   
  223    310   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for RegisterTaskDefinitionEndpointParamsInterceptor {
  224    311   
    fn name(&self) -> &'static str {
  225    312   
        "RegisterTaskDefinitionEndpointParamsInterceptor"
  226    313   
    }
  227    314   

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

@@ -275,275 +495,495 @@
  295    295   
    "family",
  296    296   
    0,
  297    297   
);
  298    298   
static REGISTERTASKDEFINITIONINPUT_MEMBER_TASK_ROLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  299    299   
    ::aws_smithy_schema::ShapeId::from_static(
  300    300   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$taskRoleArn",
  301    301   
        "com.amazonaws.ecs.synthetic",
  302    302   
        "RegisterTaskDefinitionInput",
  303    303   
    ),
  304    304   
    ::aws_smithy_schema::ShapeType::String,
  305         -
    "task_role_arn",
         305  +
    "taskRoleArn",
  306    306   
    1,
  307    307   
);
  308    308   
static REGISTERTASKDEFINITIONINPUT_MEMBER_EXECUTION_ROLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  309    309   
    ::aws_smithy_schema::ShapeId::from_static(
  310    310   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$executionRoleArn",
  311    311   
        "com.amazonaws.ecs.synthetic",
  312    312   
        "RegisterTaskDefinitionInput",
  313    313   
    ),
  314    314   
    ::aws_smithy_schema::ShapeType::String,
  315         -
    "execution_role_arn",
         315  +
    "executionRoleArn",
  316    316   
    2,
  317    317   
);
  318    318   
static REGISTERTASKDEFINITIONINPUT_MEMBER_NETWORK_MODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  319    319   
    ::aws_smithy_schema::ShapeId::from_static(
  320    320   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$networkMode",
  321    321   
        "com.amazonaws.ecs.synthetic",
  322    322   
        "RegisterTaskDefinitionInput",
  323    323   
    ),
  324    324   
    ::aws_smithy_schema::ShapeType::String,
  325         -
    "network_mode",
         325  +
    "networkMode",
  326    326   
    3,
  327    327   
);
  328    328   
static REGISTERTASKDEFINITIONINPUT_MEMBER_CONTAINER_DEFINITIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  329    329   
    ::aws_smithy_schema::ShapeId::from_static(
  330    330   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$containerDefinitions",
  331    331   
        "com.amazonaws.ecs.synthetic",
  332    332   
        "RegisterTaskDefinitionInput",
  333    333   
    ),
  334    334   
    ::aws_smithy_schema::ShapeType::List,
  335         -
    "container_definitions",
         335  +
    "containerDefinitions",
  336    336   
    4,
  337    337   
);
  338    338   
static REGISTERTASKDEFINITIONINPUT_MEMBER_VOLUMES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  339    339   
    ::aws_smithy_schema::ShapeId::from_static(
  340    340   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$volumes",
  341    341   
        "com.amazonaws.ecs.synthetic",
  342    342   
        "RegisterTaskDefinitionInput",
  343    343   
    ),
  344    344   
    ::aws_smithy_schema::ShapeType::List,
  345    345   
    "volumes",
  346    346   
    5,
  347    347   
);
  348    348   
static REGISTERTASKDEFINITIONINPUT_MEMBER_PLACEMENT_CONSTRAINTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  349    349   
    ::aws_smithy_schema::ShapeId::from_static(
  350    350   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$placementConstraints",
  351    351   
        "com.amazonaws.ecs.synthetic",
  352    352   
        "RegisterTaskDefinitionInput",
  353    353   
    ),
  354    354   
    ::aws_smithy_schema::ShapeType::List,
  355         -
    "placement_constraints",
         355  +
    "placementConstraints",
  356    356   
    6,
  357    357   
);
  358    358   
static REGISTERTASKDEFINITIONINPUT_MEMBER_REQUIRES_COMPATIBILITIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  359    359   
    ::aws_smithy_schema::ShapeId::from_static(
  360    360   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$requiresCompatibilities",
  361    361   
        "com.amazonaws.ecs.synthetic",
  362    362   
        "RegisterTaskDefinitionInput",
  363    363   
    ),
  364    364   
    ::aws_smithy_schema::ShapeType::List,
  365         -
    "requires_compatibilities",
         365  +
    "requiresCompatibilities",
  366    366   
    7,
  367    367   
);
  368    368   
static REGISTERTASKDEFINITIONINPUT_MEMBER_CPU: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  369    369   
    ::aws_smithy_schema::ShapeId::from_static(
  370    370   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$cpu",
  371    371   
        "com.amazonaws.ecs.synthetic",
  372    372   
        "RegisterTaskDefinitionInput",
  373    373   
    ),
  374    374   
    ::aws_smithy_schema::ShapeType::String,
  375    375   
    "cpu",
  376    376   
    8,
  377    377   
);
  378    378   
static REGISTERTASKDEFINITIONINPUT_MEMBER_MEMORY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  379    379   
    ::aws_smithy_schema::ShapeId::from_static(
  380    380   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$memory",
  381    381   
        "com.amazonaws.ecs.synthetic",
  382    382   
        "RegisterTaskDefinitionInput",
  383    383   
    ),
  384    384   
    ::aws_smithy_schema::ShapeType::String,
  385    385   
    "memory",
  386    386   
    9,
  387    387   
);
  388    388   
static REGISTERTASKDEFINITIONINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  389    389   
    ::aws_smithy_schema::ShapeId::from_static(
  390    390   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$tags",
  391    391   
        "com.amazonaws.ecs.synthetic",
  392    392   
        "RegisterTaskDefinitionInput",
  393    393   
    ),
  394    394   
    ::aws_smithy_schema::ShapeType::List,
  395    395   
    "tags",
  396    396   
    10,
  397    397   
);
  398    398   
static REGISTERTASKDEFINITIONINPUT_MEMBER_PID_MODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  399    399   
    ::aws_smithy_schema::ShapeId::from_static(
  400    400   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$pidMode",
  401    401   
        "com.amazonaws.ecs.synthetic",
  402    402   
        "RegisterTaskDefinitionInput",
  403    403   
    ),
  404    404   
    ::aws_smithy_schema::ShapeType::String,
  405         -
    "pid_mode",
         405  +
    "pidMode",
  406    406   
    11,
  407    407   
);
  408    408   
static REGISTERTASKDEFINITIONINPUT_MEMBER_IPC_MODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  409    409   
    ::aws_smithy_schema::ShapeId::from_static(
  410    410   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$ipcMode",
  411    411   
        "com.amazonaws.ecs.synthetic",
  412    412   
        "RegisterTaskDefinitionInput",
  413    413   
    ),
  414    414   
    ::aws_smithy_schema::ShapeType::String,
  415         -
    "ipc_mode",
         415  +
    "ipcMode",
  416    416   
    12,
  417    417   
);
  418    418   
static REGISTERTASKDEFINITIONINPUT_MEMBER_PROXY_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  419    419   
    ::aws_smithy_schema::ShapeId::from_static(
  420    420   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$proxyConfiguration",
  421    421   
        "com.amazonaws.ecs.synthetic",
  422    422   
        "RegisterTaskDefinitionInput",
  423    423   
    ),
  424    424   
    ::aws_smithy_schema::ShapeType::Structure,
  425         -
    "proxy_configuration",
         425  +
    "proxyConfiguration",
  426    426   
    13,
  427    427   
);
  428    428   
static REGISTERTASKDEFINITIONINPUT_MEMBER_INFERENCE_ACCELERATORS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  429    429   
    ::aws_smithy_schema::ShapeId::from_static(
  430    430   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$inferenceAccelerators",
  431    431   
        "com.amazonaws.ecs.synthetic",
  432    432   
        "RegisterTaskDefinitionInput",
  433    433   
    ),
  434    434   
    ::aws_smithy_schema::ShapeType::List,
  435         -
    "inference_accelerators",
         435  +
    "inferenceAccelerators",
  436    436   
    14,
  437    437   
);
  438    438   
static REGISTERTASKDEFINITIONINPUT_MEMBER_EPHEMERAL_STORAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  439    439   
    ::aws_smithy_schema::ShapeId::from_static(
  440    440   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$ephemeralStorage",
  441    441   
        "com.amazonaws.ecs.synthetic",
  442    442   
        "RegisterTaskDefinitionInput",
  443    443   
    ),
  444    444   
    ::aws_smithy_schema::ShapeType::Structure,
  445         -
    "ephemeral_storage",
         445  +
    "ephemeralStorage",
  446    446   
    15,
  447    447   
);
  448    448   
static REGISTERTASKDEFINITIONINPUT_MEMBER_RUNTIME_PLATFORM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  449    449   
    ::aws_smithy_schema::ShapeId::from_static(
  450    450   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$runtimePlatform",
  451    451   
        "com.amazonaws.ecs.synthetic",
  452    452   
        "RegisterTaskDefinitionInput",
  453    453   
    ),
  454    454   
    ::aws_smithy_schema::ShapeType::Structure,
  455         -
    "runtime_platform",
         455  +
    "runtimePlatform",
  456    456   
    16,
  457    457   
);
  458    458   
static REGISTERTASKDEFINITIONINPUT_MEMBER_ENABLE_FAULT_INJECTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  459    459   
    ::aws_smithy_schema::ShapeId::from_static(
  460    460   
        "com.amazonaws.ecs.synthetic#RegisterTaskDefinitionInput$enableFaultInjection",
  461    461   
        "com.amazonaws.ecs.synthetic",
  462    462   
        "RegisterTaskDefinitionInput",
  463    463   
    ),
  464    464   
    ::aws_smithy_schema::ShapeType::Boolean,
  465         -
    "enable_fault_injection",
         465  +
    "enableFaultInjection",
  466    466   
    17,
  467    467   
);
  468    468   
static REGISTERTASKDEFINITIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  469    469   
    REGISTERTASKDEFINITIONINPUT_SCHEMA_ID,
  470    470   
    ::aws_smithy_schema::ShapeType::Structure,
  471    471   
    &[
  472    472   
        &REGISTERTASKDEFINITIONINPUT_MEMBER_FAMILY,
  473    473   
        &REGISTERTASKDEFINITIONINPUT_MEMBER_TASK_ROLE_ARN,
  474    474   
        &REGISTERTASKDEFINITIONINPUT_MEMBER_EXECUTION_ROLE_ARN,
  475    475   
        &REGISTERTASKDEFINITIONINPUT_MEMBER_NETWORK_MODE,
@@ -579,579 +775,770 @@
  599    599   
            ser.write_struct(&REGISTERTASKDEFINITIONINPUT_MEMBER_RUNTIME_PLATFORM, val)?;
  600    600   
        }
  601    601   
        if let Some(ref val) = self.enable_fault_injection {
  602    602   
            ser.write_boolean(&REGISTERTASKDEFINITIONINPUT_MEMBER_ENABLE_FAULT_INJECTION, *val)?;
  603    603   
        }
  604    604   
        Ok(())
  605    605   
    }
  606    606   
}
  607    607   
impl RegisterTaskDefinitionInput {
  608    608   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  609         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  610         -
        deserializer: &mut D,
         609  +
    pub fn deserialize(
         610  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  611    611   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  612    612   
        #[allow(unused_variables, unused_mut)]
  613    613   
        let mut builder = Self::builder();
  614    614   
        #[allow(
  615    615   
            unused_variables,
  616    616   
            unreachable_code,
  617    617   
            clippy::single_match,
  618    618   
            clippy::match_single_binding,
  619    619   
            clippy::diverging_sub_expression
  620    620   
        )]
  621         -
        deserializer.read_struct(&REGISTERTASKDEFINITIONINPUT_SCHEMA, (), |_, member, deser| {
         621  +
        deserializer.read_struct(&REGISTERTASKDEFINITIONINPUT_SCHEMA, &mut |member, deser| {
  622    622   
            match member.member_index() {
  623    623   
                Some(0) => {
  624    624   
                    builder.family = Some(deser.read_string(member)?);
  625    625   
                }
  626    626   
                Some(1) => {
  627    627   
                    builder.task_role_arn = Some(deser.read_string(member)?);
  628    628   
                }
  629    629   
                Some(2) => {
  630    630   
                    builder.execution_role_arn = Some(deser.read_string(member)?);
  631    631   
                }
  632    632   
                Some(3) => {
  633    633   
                    builder.network_mode = Some(crate::types::NetworkMode::from(deser.read_string(member)?.as_str()));
  634    634   
                }
  635    635   
                Some(4) => {
  636    636   
                    builder.container_definitions = Some({
  637         -
                        let container = if let Some(cap) = deser.container_size() {
  638         -
                            Vec::with_capacity(cap)
  639         -
                        } else {
  640         -
                            Vec::new()
  641         -
                        };
  642         -
                        deser.read_list(member, container, |mut list, deser| {
  643         -
                            list.push(crate::types::ContainerDefinition::deserialize(deser)?);
  644         -
                            Ok(list)
  645         -
                        })?
         637  +
                        let mut container = Vec::new();
         638  +
                        deser.read_list(member, &mut |deser| {
         639  +
                            container.push(crate::types::ContainerDefinition::deserialize(deser)?);
         640  +
                            Ok(())
         641  +
                        })?;
         642  +
                        container
  646    643   
                    });
  647    644   
                }
  648    645   
                Some(5) => {
  649    646   
                    builder.volumes = Some({
  650         -
                        let container = if let Some(cap) = deser.container_size() {
  651         -
                            Vec::with_capacity(cap)
  652         -
                        } else {
  653         -
                            Vec::new()
  654         -
                        };
  655         -
                        deser.read_list(member, container, |mut list, deser| {
  656         -
                            list.push(crate::types::Volume::deserialize(deser)?);
  657         -
                            Ok(list)
  658         -
                        })?
         647  +
                        let mut container = Vec::new();
         648  +
                        deser.read_list(member, &mut |deser| {
         649  +
                            container.push(crate::types::Volume::deserialize(deser)?);
         650  +
                            Ok(())
         651  +
                        })?;
         652  +
                        container
  659    653   
                    });
  660    654   
                }
  661    655   
                Some(6) => {
  662    656   
                    builder.placement_constraints = Some({
  663         -
                        let container = if let Some(cap) = deser.container_size() {
  664         -
                            Vec::with_capacity(cap)
  665         -
                        } else {
  666         -
                            Vec::new()
  667         -
                        };
  668         -
                        deser.read_list(member, container, |mut list, deser| {
  669         -
                            list.push(crate::types::TaskDefinitionPlacementConstraint::deserialize(deser)?);
  670         -
                            Ok(list)
  671         -
                        })?
         657  +
                        let mut container = Vec::new();
         658  +
                        deser.read_list(member, &mut |deser| {
         659  +
                            container.push(crate::types::TaskDefinitionPlacementConstraint::deserialize(deser)?);
         660  +
                            Ok(())
         661  +
                        })?;
         662  +
                        container
  672    663   
                    });
  673    664   
                }
  674    665   
                Some(7) => {
  675    666   
                    builder.requires_compatibilities = Some({
  676         -
                        let container = if let Some(cap) = deser.container_size() {
  677         -
                            Vec::with_capacity(cap)
  678         -
                        } else {
  679         -
                            Vec::new()
  680         -
                        };
  681         -
                        deser.read_list(member, container, |mut list, deser| {
  682         -
                            list.push(crate::types::Compatibility::from(deser.read_string(member)?.as_str()));
  683         -
                            Ok(list)
  684         -
                        })?
         667  +
                        let mut container = Vec::new();
         668  +
                        deser.read_list(member, &mut |deser| {
         669  +
                            container.push(crate::types::Compatibility::from(deser.read_string(member)?.as_str()));
         670  +
                            Ok(())
         671  +
                        })?;
         672  +
                        container
  685    673   
                    });
  686    674   
                }
  687    675   
                Some(8) => {
  688    676   
                    builder.cpu = Some(deser.read_string(member)?);
  689    677   
                }
  690    678   
                Some(9) => {
  691    679   
                    builder.memory = Some(deser.read_string(member)?);
  692    680   
                }
  693    681   
                Some(10) => {
  694    682   
                    builder.tags = Some({
  695         -
                        let container = if let Some(cap) = deser.container_size() {
  696         -
                            Vec::with_capacity(cap)
  697         -
                        } else {
  698         -
                            Vec::new()
  699         -
                        };
  700         -
                        deser.read_list(member, container, |mut list, deser| {
  701         -
                            list.push(crate::types::Tag::deserialize(deser)?);
  702         -
                            Ok(list)
  703         -
                        })?
         683  +
                        let mut container = Vec::new();
         684  +
                        deser.read_list(member, &mut |deser| {
         685  +
                            container.push(crate::types::Tag::deserialize(deser)?);
         686  +
                            Ok(())
         687  +
                        })?;
         688  +
                        container
  704    689   
                    });
  705    690   
                }
  706    691   
                Some(11) => {
  707    692   
                    builder.pid_mode = Some(crate::types::PidMode::from(deser.read_string(member)?.as_str()));
  708    693   
                }
  709    694   
                Some(12) => {
  710    695   
                    builder.ipc_mode = Some(crate::types::IpcMode::from(deser.read_string(member)?.as_str()));
  711    696   
                }
  712    697   
                Some(13) => {
  713    698   
                    builder.proxy_configuration = Some(crate::types::ProxyConfiguration::deserialize(deser)?);
  714    699   
                }
  715    700   
                Some(14) => {
  716    701   
                    builder.inference_accelerators = Some({
  717         -
                        let container = if let Some(cap) = deser.container_size() {
  718         -
                            Vec::with_capacity(cap)
  719         -
                        } else {
  720         -
                            Vec::new()
  721         -
                        };
  722         -
                        deser.read_list(member, container, |mut list, deser| {
  723         -
                            list.push(crate::types::InferenceAccelerator::deserialize(deser)?);
  724         -
                            Ok(list)
  725         -
                        })?
         702  +
                        let mut container = Vec::new();
         703  +
                        deser.read_list(member, &mut |deser| {
         704  +
                            container.push(crate::types::InferenceAccelerator::deserialize(deser)?);
         705  +
                            Ok(())
         706  +
                        })?;
         707  +
                        container
  726    708   
                    });
  727    709   
                }
  728    710   
                Some(15) => {
  729    711   
                    builder.ephemeral_storage = Some(crate::types::EphemeralStorage::deserialize(deser)?);
  730    712   
                }
  731    713   
                Some(16) => {
  732    714   
                    builder.runtime_platform = Some(crate::types::RuntimePlatform::deserialize(deser)?);
  733    715   
                }
  734    716   
                Some(17) => {
  735    717   
                    builder.enable_fault_injection = Some(deser.read_boolean(member)?);
  736    718   
                }
  737    719   
                _ => {}
  738    720   
            }
  739    721   
            Ok(())
  740    722   
        })?;
         723  +
        builder.family = builder.family.or(Some(String::new()));
         724  +
        builder.container_definitions = builder.container_definitions.or(Some(Vec::new()));
  741    725   
        builder
  742    726   
            .build()
  743    727   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  744    728   
    }
  745    729   
}
         730  +
impl RegisterTaskDefinitionInput {
         731  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         732  +
    pub fn deserialize_with_response(
         733  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         734  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         735  +
        _status: u16,
         736  +
        _body: &[u8],
         737  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         738  +
        Self::deserialize(deserializer)
         739  +
    }
         740  +
}
  746    741   
impl RegisterTaskDefinitionInput {
  747    742   
    /// Creates a new builder-style object to manufacture [`RegisterTaskDefinitionInput`](crate::operation::register_task_definition::RegisterTaskDefinitionInput).
  748    743   
    pub fn builder() -> crate::operation::register_task_definition::builders::RegisterTaskDefinitionInputBuilder {
  749    744   
        crate::operation::register_task_definition::builders::RegisterTaskDefinitionInputBuilder::default()
  750    745   
    }
  751    746   
}
  752    747   
  753    748   
/// A builder for [`RegisterTaskDefinitionInput`](crate::operation::register_task_definition::RegisterTaskDefinitionInput).
  754    749   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  755    750   
#[non_exhaustive]