AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c (ignoring whitespace)

Files changed:

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

@@ -13,13 +133,145 @@
   33     33   
    "cluster",
   34     34   
    0,
   35     35   
);
   36     36   
static UPDATECONTAINERAGENTINPUT_MEMBER_CONTAINER_INSTANCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static(
   38     38   
        "com.amazonaws.ecs.synthetic#UpdateContainerAgentInput$containerInstance",
   39     39   
        "com.amazonaws.ecs.synthetic",
   40     40   
        "UpdateContainerAgentInput",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::String,
   43         -
    "container_instance",
          43  +
    "containerInstance",
   44     44   
    1,
   45     45   
);
   46     46   
static UPDATECONTAINERAGENTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   47     47   
    UPDATECONTAINERAGENTINPUT_SCHEMA_ID,
   48     48   
    ::aws_smithy_schema::ShapeType::Structure,
   49     49   
    &[
   50     50   
        &UPDATECONTAINERAGENTINPUT_MEMBER_CLUSTER,
   51     51   
        &UPDATECONTAINERAGENTINPUT_MEMBER_CONTAINER_INSTANCE,
   52     52   
    ],
   53     53   
);
   54     54   
impl UpdateContainerAgentInput {
   55     55   
    /// The schema for this shape.
   56     56   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATECONTAINERAGENTINPUT_SCHEMA;
   57     57   
}
   58     58   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateContainerAgentInput {
   59     59   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   60     60   
    fn serialize_members(
   61     61   
        &self,
   62     62   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   63     63   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   64     64   
        if let Some(ref val) = self.cluster {
   65     65   
            ser.write_string(&UPDATECONTAINERAGENTINPUT_MEMBER_CLUSTER, val)?;
   66     66   
        }
   67     67   
        if let Some(ref val) = self.container_instance {
   68     68   
            ser.write_string(&UPDATECONTAINERAGENTINPUT_MEMBER_CONTAINER_INSTANCE, val)?;
   69     69   
        }
   70     70   
        Ok(())
   71     71   
    }
   72     72   
}
   73     73   
impl UpdateContainerAgentInput {
   74     74   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   75         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   76         -
        deserializer: &mut D,
          75  +
    pub fn deserialize(
          76  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   77     77   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   78     78   
        #[allow(unused_variables, unused_mut)]
   79     79   
        let mut builder = Self::builder();
   80     80   
        #[allow(
   81     81   
            unused_variables,
   82     82   
            unreachable_code,
   83     83   
            clippy::single_match,
   84     84   
            clippy::match_single_binding,
   85     85   
            clippy::diverging_sub_expression
   86     86   
        )]
   87         -
        deserializer.read_struct(&UPDATECONTAINERAGENTINPUT_SCHEMA, (), |_, member, deser| {
          87  +
        deserializer.read_struct(&UPDATECONTAINERAGENTINPUT_SCHEMA, &mut |member, deser| {
   88     88   
            match member.member_index() {
   89     89   
                Some(0) => {
   90     90   
                    builder.cluster = Some(deser.read_string(member)?);
   91     91   
                }
   92     92   
                Some(1) => {
   93     93   
                    builder.container_instance = Some(deser.read_string(member)?);
   94     94   
                }
   95     95   
                _ => {}
   96     96   
            }
   97     97   
            Ok(())
   98     98   
        })?;
          99  +
        builder.container_instance = builder.container_instance.or(Some(String::new()));
   99    100   
        builder
  100    101   
            .build()
  101    102   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  102    103   
    }
  103    104   
}
         105  +
impl UpdateContainerAgentInput {
         106  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         107  +
    pub fn deserialize_with_response(
         108  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         109  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         110  +
        _status: u16,
         111  +
        _body: &[u8],
         112  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         113  +
        Self::deserialize(deserializer)
         114  +
    }
         115  +
}
  104    116   
impl UpdateContainerAgentInput {
  105    117   
    /// Creates a new builder-style object to manufacture [`UpdateContainerAgentInput`](crate::operation::update_container_agent::UpdateContainerAgentInput).
  106    118   
    pub fn builder() -> crate::operation::update_container_agent::builders::UpdateContainerAgentInputBuilder {
  107    119   
        crate::operation::update_container_agent::builders::UpdateContainerAgentInputBuilder::default()
  108    120   
    }
  109    121   
}
  110    122   
  111    123   
/// A builder for [`UpdateContainerAgentInput`](crate::operation::update_container_agent::UpdateContainerAgentInput).
  112    124   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  113    125   
#[non_exhaustive]

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

@@ -1,1 +96,143 @@
   18     18   
    "com.amazonaws.ecs.synthetic",
   19     19   
    "UpdateContainerAgentOutput",
   20     20   
);
   21     21   
static UPDATECONTAINERAGENTOUTPUT_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#UpdateContainerAgentOutput$containerInstance",
   24     24   
        "com.amazonaws.ecs.synthetic",
   25     25   
        "UpdateContainerAgentOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "container_instance",
          28  +
    "containerInstance",
   29     29   
    0,
   30     30   
);
          31  +
static UPDATECONTAINERAGENTOUTPUT_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 UPDATECONTAINERAGENTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     39   
    UPDATECONTAINERAGENTOUTPUT_SCHEMA_ID,
   33     40   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    &[&UPDATECONTAINERAGENTOUTPUT_MEMBER_CONTAINER_INSTANCE],
          41  +
    &[
          42  +
        &UPDATECONTAINERAGENTOUTPUT_MEMBER_CONTAINER_INSTANCE,
          43  +
        &UPDATECONTAINERAGENTOUTPUT_MEMBER__REQUEST_ID,
          44  +
    ],
   35     45   
);
   36     46   
impl UpdateContainerAgentOutput {
   37     47   
    /// The schema for this shape.
   38     48   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATECONTAINERAGENTOUTPUT_SCHEMA;
   39     49   
}
   40     50   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateContainerAgentOutput {
   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(&UPDATECONTAINERAGENTOUTPUT_MEMBER_CONTAINER_INSTANCE, val)?;
   48     58   
        }
   49     59   
        Ok(())
   50     60   
    }
   51     61   
}
   52     62   
impl UpdateContainerAgentOutput {
   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(&UPDATECONTAINERAGENTOUTPUT_SCHEMA, (), |_, member, deser| {
          76  +
        deserializer.read_struct(&UPDATECONTAINERAGENTOUTPUT_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 UpdateContainerAgentOutput {
          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(&UPDATECONTAINERAGENTOUTPUT_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/update_container_instances_state.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 `UpdateContainerInstancesState`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UpdateContainerInstancesState;
    6      6   
impl UpdateContainerInstancesState {
    7      7   
    /// Creates a new `UpdateContainerInstancesState`
    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::update_container_instances_state::UpdateContainerInstancesStateInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::update_container_instances_state::UpdateContainerInstancesStateOutput::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::update_container_instances_state::UpdateContainerInstancesStateInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::update_container_instances_state::UpdateContainerInstancesStateOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::update_container_instances_state::UpdateContainerInstancesStateError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +247,364 @@
  138    144   
                crate::operation::update_container_instances_state::UpdateContainerInstancesStateError,
  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 UpdateContainerInstancesStateResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateContainerInstancesStateResponseDeserializer {
  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_update_container_instances_state::de_update_container_instances_state_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_update_container_instances_state::de_update_container_instances_state_http_response(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::update_container_instances_state::UpdateContainerInstancesStateError::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::update_container_instances_state::UpdateContainerInstancesStateError::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::update_container_instances_state::UpdateContainerInstancesStateError::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::update_container_instances_state::UpdateContainerInstancesStateError::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  +
                "ServerException" => crate::operation::update_container_instances_state::UpdateContainerInstancesStateError::ServerException({
         264  +
                    let mut tmp = match protocol
         265  +
                        .deserialize_response(response, crate::types::error::ServerException::SCHEMA, _cfg)
         266  +
                        .and_then(|mut deser| {
         267  +
                            crate::types::error::ServerException::deserialize_with_response(
         268  +
                                &mut *deser,
         269  +
                                response.headers(),
         270  +
                                response.status().into(),
         271  +
                                body,
         272  +
                            )
         273  +
                        }) {
         274  +
                        ::std::result::Result::Ok(val) => val,
         275  +
                        ::std::result::Result::Err(e) => {
         276  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         277  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         278  +
                            ))
         279  +
                        }
         280  +
                    };
         281  +
                    tmp.meta = generic;
         282  +
                    if tmp.message.is_none() {
         283  +
                        tmp.message = _error_message;
         284  +
                    }
         285  +
                    tmp
         286  +
                }),
         287  +
                _ => crate::operation::update_container_instances_state::UpdateContainerInstancesStateError::generic(generic),
  162    288   
            };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         289  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         290  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         291  +
            ))
         292  +
        } else {
         293  +
            let protocol = _cfg
         294  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         295  +
                .expect("a SharedClientProtocol is required");
         296  +
            let mut deser = protocol
         297  +
                .deserialize_response(response, UpdateContainerInstancesState::OUTPUT_SCHEMA, _cfg)
         298  +
                .map_err(|e| {
         299  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         300  +
                })?;
         301  +
            let body = response.body().bytes().expect("body loaded");
         302  +
            let output = crate::operation::update_container_instances_state::UpdateContainerInstancesStateOutput::deserialize_with_response(
         303  +
                &mut *deser,
         304  +
                response.headers(),
         305  +
                response.status().into(),
         306  +
                body,
         307  +
            )
         308  +
            .map_err(|e| {
         309  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         310  +
            })?;
         311  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         312  +
        }
  164    313   
    }
  165    314   
}
  166    315   
#[derive(Debug)]
  167    316   
struct UpdateContainerInstancesStateRequestSerializer;
  168    317   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateContainerInstancesStateRequestSerializer {
  169    318   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    319   
    fn serialize_input(
  171    320   
        &self,
  172    321   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    322   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    323   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    324   
        let input = input
  176    325   
            .downcast::<crate::operation::update_container_instances_state::UpdateContainerInstancesStateInput>()
  177    326   
            .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::update_container_instances_state::UpdateContainerInstancesStateInput,
  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::update_container_instances_state::UpdateContainerInstancesStateInput,
  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.UpdateContainerInstancesState",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  211         -
            crate::protocol_serde::shape_update_container_instances_state::ser_update_container_instances_state_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())
         327  +
        let protocol = _cfg
         328  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         329  +
            .expect("a SharedClientProtocol is required");
         330  +
        let mut request = protocol
         331  +
            .serialize_request(&input, UpdateContainerInstancesState::INPUT_SCHEMA, "", _cfg)
         332  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         333  +
         334  +
        return ::std::result::Result::Ok(request);
  218    335   
    }
  219    336   
}
  220    337   
#[derive(Debug)]
  221    338   
struct UpdateContainerInstancesStateEndpointParamsInterceptor;
  222    339   
  223    340   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateContainerInstancesStateEndpointParamsInterceptor {
  224    341   
    fn name(&self) -> &'static str {
  225    342   
        "UpdateContainerInstancesStateEndpointParamsInterceptor"
  226    343   
    }
  227    344   

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ecs/src/operation/update_service.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 `UpdateService`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UpdateService;
    6      6   
impl UpdateService {
    7      7   
    /// Creates a new `UpdateService`
    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::update_service::UpdateServiceInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::update_service::UpdateServiceOutput::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::update_service::UpdateServiceInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::update_service::UpdateServiceOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::update_service::UpdateServiceError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +242,525 @@
  135    139   
                crate::operation::update_service::UpdateServiceError,
  136    140   
            >::new());
  137    141   
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct UpdateServiceResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateServiceResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150         -
        let headers = response.headers();
  151         -
        let body = response.body().bytes().expect("body loaded");
  152    155   
        #[allow(unused_mut)]
  153    156   
        let mut force_error = false;
  154    157   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155         -
        let parse_result = if !success && status != 200 || force_error {
  156         -
            crate::protocol_serde::shape_update_service::de_update_service_http_error(status, headers, body)
  157         -
        } else {
  158         -
            crate::protocol_serde::shape_update_service::de_update_service_http_response(status, headers, body)
         158  +
        if !success && status != 200 || force_error {
         159  +
            let headers = response.headers();
         160  +
            let body = response.body().bytes().expect("body loaded");
         161  +
            #[allow(unused_mut)]
         162  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         163  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         164  +
            })?;
         165  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         166  +
            let generic = generic_builder.build();
         167  +
            let error_code = match generic.code() {
         168  +
                ::std::option::Option::Some(code) => code,
         169  +
                ::std::option::Option::None => {
         170  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         171  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::update_service::UpdateServiceError::unhandled(generic)),
         172  +
                    ))
         173  +
                }
         174  +
            };
         175  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         176  +
            let protocol = _cfg
         177  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         178  +
                .expect("a SharedClientProtocol is required");
         179  +
            let err = match error_code {
         180  +
                "AccessDeniedException" => crate::operation::update_service::UpdateServiceError::AccessDeniedException({
         181  +
                    let mut tmp = match protocol
         182  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         183  +
                        .and_then(|mut deser| {
         184  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         185  +
                                &mut *deser,
         186  +
                                response.headers(),
         187  +
                                response.status().into(),
         188  +
                                body,
         189  +
                            )
         190  +
                        }) {
         191  +
                        ::std::result::Result::Ok(val) => val,
         192  +
                        ::std::result::Result::Err(e) => {
         193  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         194  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         195  +
                            ))
         196  +
                        }
         197  +
                    };
         198  +
                    tmp.meta = generic;
         199  +
                    if tmp.message.is_none() {
         200  +
                        tmp.message = _error_message;
         201  +
                    }
         202  +
                    tmp
         203  +
                }),
         204  +
                "ClientException" => crate::operation::update_service::UpdateServiceError::ClientException({
         205  +
                    let mut tmp = match protocol
         206  +
                        .deserialize_response(response, crate::types::error::ClientException::SCHEMA, _cfg)
         207  +
                        .and_then(|mut deser| {
         208  +
                            crate::types::error::ClientException::deserialize_with_response(
         209  +
                                &mut *deser,
         210  +
                                response.headers(),
         211  +
                                response.status().into(),
         212  +
                                body,
         213  +
                            )
         214  +
                        }) {
         215  +
                        ::std::result::Result::Ok(val) => val,
         216  +
                        ::std::result::Result::Err(e) => {
         217  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         218  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         219  +
                            ))
         220  +
                        }
         221  +
                    };
         222  +
                    tmp.meta = generic;
         223  +
                    if tmp.message.is_none() {
         224  +
                        tmp.message = _error_message;
         225  +
                    }
         226  +
                    tmp
         227  +
                }),
         228  +
                "ClusterNotFoundException" => crate::operation::update_service::UpdateServiceError::ClusterNotFoundException({
         229  +
                    let mut tmp = match protocol
         230  +
                        .deserialize_response(response, crate::types::error::ClusterNotFoundException::SCHEMA, _cfg)
         231  +
                        .and_then(|mut deser| {
         232  +
                            crate::types::error::ClusterNotFoundException::deserialize_with_response(
         233  +
                                &mut *deser,
         234  +
                                response.headers(),
         235  +
                                response.status().into(),
         236  +
                                body,
         237  +
                            )
         238  +
                        }) {
         239  +
                        ::std::result::Result::Ok(val) => val,
         240  +
                        ::std::result::Result::Err(e) => {
         241  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         242  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         243  +
                            ))
         244  +
                        }
         245  +
                    };
         246  +
                    tmp.meta = generic;
         247  +
                    if tmp.message.is_none() {
         248  +
                        tmp.message = _error_message;
         249  +
                    }
         250  +
                    tmp
         251  +
                }),
         252  +
                "InvalidParameterException" => crate::operation::update_service::UpdateServiceError::InvalidParameterException({
         253  +
                    let mut tmp = match protocol
         254  +
                        .deserialize_response(response, crate::types::error::InvalidParameterException::SCHEMA, _cfg)
         255  +
                        .and_then(|mut deser| {
         256  +
                            crate::types::error::InvalidParameterException::deserialize_with_response(
         257  +
                                &mut *deser,
         258  +
                                response.headers(),
         259  +
                                response.status().into(),
         260  +
                                body,
         261  +
                            )
         262  +
                        }) {
         263  +
                        ::std::result::Result::Ok(val) => val,
         264  +
                        ::std::result::Result::Err(e) => {
         265  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         266  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         267  +
                            ))
         268  +
                        }
         269  +
                    };
         270  +
                    tmp.meta = generic;
         271  +
                    if tmp.message.is_none() {
         272  +
                        tmp.message = _error_message;
         273  +
                    }
         274  +
                    tmp
         275  +
                }),
         276  +
                "NamespaceNotFoundException" => crate::operation::update_service::UpdateServiceError::NamespaceNotFoundException({
         277  +
                    let mut tmp = match protocol
         278  +
                        .deserialize_response(response, crate::types::error::NamespaceNotFoundException::SCHEMA, _cfg)
         279  +
                        .and_then(|mut deser| {
         280  +
                            crate::types::error::NamespaceNotFoundException::deserialize_with_response(
         281  +
                                &mut *deser,
         282  +
                                response.headers(),
         283  +
                                response.status().into(),
         284  +
                                body,
         285  +
                            )
         286  +
                        }) {
         287  +
                        ::std::result::Result::Ok(val) => val,
         288  +
                        ::std::result::Result::Err(e) => {
         289  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         290  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         291  +
                            ))
         292  +
                        }
  159    293   
                    };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         294  +
                    tmp.meta = generic;
         295  +
                    if tmp.message.is_none() {
         296  +
                        tmp.message = _error_message;
         297  +
                    }
         298  +
                    tmp
         299  +
                }),
         300  +
                "PlatformTaskDefinitionIncompatibilityException" => {
         301  +
                    crate::operation::update_service::UpdateServiceError::PlatformTaskDefinitionIncompatibilityException({
         302  +
                        let mut tmp = match protocol
         303  +
                            .deserialize_response(
         304  +
                                response,
         305  +
                                crate::types::error::PlatformTaskDefinitionIncompatibilityException::SCHEMA,
         306  +
                                _cfg,
         307  +
                            )
         308  +
                            .and_then(|mut deser| {
         309  +
                                crate::types::error::PlatformTaskDefinitionIncompatibilityException::deserialize_with_response(
         310  +
                                    &mut *deser,
         311  +
                                    response.headers(),
         312  +
                                    response.status().into(),
         313  +
                                    body,
         314  +
                                )
         315  +
                            }) {
         316  +
                            ::std::result::Result::Ok(val) => val,
         317  +
                            ::std::result::Result::Err(e) => {
         318  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         319  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         320  +
                                ))
         321  +
                            }
         322  +
                        };
         323  +
                        tmp.meta = generic;
         324  +
                        if tmp.message.is_none() {
         325  +
                            tmp.message = _error_message;
         326  +
                        }
         327  +
                        tmp
         328  +
                    })
         329  +
                }
         330  +
                "PlatformUnknownException" => crate::operation::update_service::UpdateServiceError::PlatformUnknownException({
         331  +
                    let mut tmp = match protocol
         332  +
                        .deserialize_response(response, crate::types::error::PlatformUnknownException::SCHEMA, _cfg)
         333  +
                        .and_then(|mut deser| {
         334  +
                            crate::types::error::PlatformUnknownException::deserialize_with_response(
         335  +
                                &mut *deser,
         336  +
                                response.headers(),
         337  +
                                response.status().into(),
         338  +
                                body,
         339  +
                            )
         340  +
                        }) {
         341  +
                        ::std::result::Result::Ok(val) => val,
         342  +
                        ::std::result::Result::Err(e) => {
         343  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         344  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         345  +
                            ))
         346  +
                        }
         347  +
                    };
         348  +
                    tmp.meta = generic;
         349  +
                    if tmp.message.is_none() {
         350  +
                        tmp.message = _error_message;
         351  +
                    }
         352  +
                    tmp
         353  +
                }),
         354  +
                "ServerException" => crate::operation::update_service::UpdateServiceError::ServerException({
         355  +
                    let mut tmp = match protocol
         356  +
                        .deserialize_response(response, crate::types::error::ServerException::SCHEMA, _cfg)
         357  +
                        .and_then(|mut deser| {
         358  +
                            crate::types::error::ServerException::deserialize_with_response(
         359  +
                                &mut *deser,
         360  +
                                response.headers(),
         361  +
                                response.status().into(),
         362  +
                                body,
         363  +
                            )
         364  +
                        }) {
         365  +
                        ::std::result::Result::Ok(val) => val,
         366  +
                        ::std::result::Result::Err(e) => {
         367  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         368  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         369  +
                            ))
         370  +
                        }
         371  +
                    };
         372  +
                    tmp.meta = generic;
         373  +
                    if tmp.message.is_none() {
         374  +
                        tmp.message = _error_message;
         375  +
                    }
         376  +
                    tmp
         377  +
                }),
         378  +
                "ServiceNotActiveException" => crate::operation::update_service::UpdateServiceError::ServiceNotActiveException({
         379  +
                    let mut tmp = match protocol
         380  +
                        .deserialize_response(response, crate::types::error::ServiceNotActiveException::SCHEMA, _cfg)
         381  +
                        .and_then(|mut deser| {
         382  +
                            crate::types::error::ServiceNotActiveException::deserialize_with_response(
         383  +
                                &mut *deser,
         384  +
                                response.headers(),
         385  +
                                response.status().into(),
         386  +
                                body,
         387  +
                            )
         388  +
                        }) {
         389  +
                        ::std::result::Result::Ok(val) => val,
         390  +
                        ::std::result::Result::Err(e) => {
         391  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         392  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         393  +
                            ))
         394  +
                        }
         395  +
                    };
         396  +
                    tmp.meta = generic;
         397  +
                    if tmp.message.is_none() {
         398  +
                        tmp.message = _error_message;
         399  +
                    }
         400  +
                    tmp
         401  +
                }),
         402  +
                "ServiceNotFoundException" => crate::operation::update_service::UpdateServiceError::ServiceNotFoundException({
         403  +
                    let mut tmp = match protocol
         404  +
                        .deserialize_response(response, crate::types::error::ServiceNotFoundException::SCHEMA, _cfg)
         405  +
                        .and_then(|mut deser| {
         406  +
                            crate::types::error::ServiceNotFoundException::deserialize_with_response(
         407  +
                                &mut *deser,
         408  +
                                response.headers(),
         409  +
                                response.status().into(),
         410  +
                                body,
         411  +
                            )
         412  +
                        }) {
         413  +
                        ::std::result::Result::Ok(val) => val,
         414  +
                        ::std::result::Result::Err(e) => {
         415  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         416  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         417  +
                            ))
         418  +
                        }
         419  +
                    };
         420  +
                    tmp.meta = generic;
         421  +
                    if tmp.message.is_none() {
         422  +
                        tmp.message = _error_message;
         423  +
                    }
         424  +
                    tmp
         425  +
                }),
         426  +
                "UnsupportedFeatureException" => crate::operation::update_service::UpdateServiceError::UnsupportedFeatureException({
         427  +
                    let mut tmp = match protocol
         428  +
                        .deserialize_response(response, crate::types::error::UnsupportedFeatureException::SCHEMA, _cfg)
         429  +
                        .and_then(|mut deser| {
         430  +
                            crate::types::error::UnsupportedFeatureException::deserialize_with_response(
         431  +
                                &mut *deser,
         432  +
                                response.headers(),
         433  +
                                response.status().into(),
         434  +
                                body,
         435  +
                            )
         436  +
                        }) {
         437  +
                        ::std::result::Result::Ok(val) => val,
         438  +
                        ::std::result::Result::Err(e) => {
         439  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         440  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         441  +
                            ))
         442  +
                        }
         443  +
                    };
         444  +
                    tmp.meta = generic;
         445  +
                    if tmp.message.is_none() {
         446  +
                        tmp.message = _error_message;
         447  +
                    }
         448  +
                    tmp
         449  +
                }),
         450  +
                _ => crate::operation::update_service::UpdateServiceError::generic(generic),
         451  +
            };
         452  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         453  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         454  +
            ))
         455  +
        } else {
         456  +
            let protocol = _cfg
         457  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         458  +
                .expect("a SharedClientProtocol is required");
         459  +
            let mut deser = protocol.deserialize_response(response, UpdateService::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         460  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         461  +
            })?;
         462  +
            let body = response.body().bytes().expect("body loaded");
         463  +
            let output = crate::operation::update_service::UpdateServiceOutput::deserialize_with_response(
         464  +
                &mut *deser,
         465  +
                response.headers(),
         466  +
                response.status().into(),
         467  +
                body,
         468  +
            )
         469  +
            .map_err(|e| {
         470  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         471  +
            })?;
         472  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         473  +
        }
  161    474   
    }
  162    475   
}
  163    476   
#[derive(Debug)]
  164    477   
struct UpdateServiceRequestSerializer;
  165    478   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateServiceRequestSerializer {
  166    479   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  167    480   
    fn serialize_input(
  168    481   
        &self,
  169    482   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  170    483   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  171    484   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  172    485   
        let input = input
  173    486   
            .downcast::<crate::operation::update_service::UpdateServiceInput>()
  174    487   
            .expect("correct type");
  175         -
        let _header_serialization_settings = _cfg
  176         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  177         -
            .cloned()
  178         -
            .unwrap_or_default();
  179         -
        let mut request_builder = {
  180         -
            #[allow(clippy::uninlined_format_args)]
  181         -
            fn uri_base(
  182         -
                _input: &crate::operation::update_service::UpdateServiceInput,
  183         -
                output: &mut ::std::string::String,
  184         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  185         -
                use ::std::fmt::Write as _;
  186         -
                ::std::write!(output, "/").expect("formatting should succeed");
  187         -
                ::std::result::Result::Ok(())
  188         -
            }
  189         -
            #[allow(clippy::unnecessary_wraps)]
  190         -
            fn update_http_builder(
  191         -
                input: &crate::operation::update_service::UpdateServiceInput,
  192         -
                builder: ::http_1x::request::Builder,
  193         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  194         -
                let mut uri = ::std::string::String::new();
  195         -
                uri_base(input, &mut uri)?;
  196         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  197         -
            }
  198         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  199         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  200         -
            builder = _header_serialization_settings.set_default_header(
  201         -
                builder,
  202         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  203         -
                "AmazonEC2ContainerServiceV20141113.UpdateService",
  204         -
            );
  205         -
            builder
  206         -
        };
  207         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_update_service::ser_update_service_input(&input)?);
  208         -
        if let Some(content_length) = body.content_length() {
  209         -
            let content_length = content_length.to_string();
  210         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  211         -
        }
  212         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         488  +
        let protocol = _cfg
         489  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         490  +
            .expect("a SharedClientProtocol is required");
         491  +
        let mut request = protocol
         492  +
            .serialize_request(&input, UpdateService::INPUT_SCHEMA, "", _cfg)
         493  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         494  +
         495  +
        return ::std::result::Result::Ok(request);
  213    496   
    }
  214    497   
}
  215    498   
#[derive(Debug)]
  216    499   
struct UpdateServiceEndpointParamsInterceptor;
  217    500   
  218    501   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateServiceEndpointParamsInterceptor {
  219    502   
    fn name(&self) -> &'static str {
  220    503   
        "UpdateServiceEndpointParamsInterceptor"
  221    504   
    }
  222    505   

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

@@ -291,291 +541,541 @@
  311    311   
    "service",
  312    312   
    1,
  313    313   
);
  314    314   
static UPDATESERVICEINPUT_MEMBER_DESIRED_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  315    315   
    ::aws_smithy_schema::ShapeId::from_static(
  316    316   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$desiredCount",
  317    317   
        "com.amazonaws.ecs.synthetic",
  318    318   
        "UpdateServiceInput",
  319    319   
    ),
  320    320   
    ::aws_smithy_schema::ShapeType::Integer,
  321         -
    "desired_count",
         321  +
    "desiredCount",
  322    322   
    2,
  323    323   
);
  324    324   
static UPDATESERVICEINPUT_MEMBER_TASK_DEFINITION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  325    325   
    ::aws_smithy_schema::ShapeId::from_static(
  326    326   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$taskDefinition",
  327    327   
        "com.amazonaws.ecs.synthetic",
  328    328   
        "UpdateServiceInput",
  329    329   
    ),
  330    330   
    ::aws_smithy_schema::ShapeType::String,
  331         -
    "task_definition",
         331  +
    "taskDefinition",
  332    332   
    3,
  333    333   
);
  334    334   
static UPDATESERVICEINPUT_MEMBER_CAPACITY_PROVIDER_STRATEGY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  335    335   
    ::aws_smithy_schema::ShapeId::from_static(
  336    336   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$capacityProviderStrategy",
  337    337   
        "com.amazonaws.ecs.synthetic",
  338    338   
        "UpdateServiceInput",
  339    339   
    ),
  340    340   
    ::aws_smithy_schema::ShapeType::List,
  341         -
    "capacity_provider_strategy",
         341  +
    "capacityProviderStrategy",
  342    342   
    4,
  343    343   
);
  344    344   
static UPDATESERVICEINPUT_MEMBER_DEPLOYMENT_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  345    345   
    ::aws_smithy_schema::ShapeId::from_static(
  346    346   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$deploymentConfiguration",
  347    347   
        "com.amazonaws.ecs.synthetic",
  348    348   
        "UpdateServiceInput",
  349    349   
    ),
  350    350   
    ::aws_smithy_schema::ShapeType::Structure,
  351         -
    "deployment_configuration",
         351  +
    "deploymentConfiguration",
  352    352   
    5,
  353    353   
);
  354    354   
static UPDATESERVICEINPUT_MEMBER_AVAILABILITY_ZONE_REBALANCING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  355    355   
    ::aws_smithy_schema::ShapeId::from_static(
  356    356   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$availabilityZoneRebalancing",
  357    357   
        "com.amazonaws.ecs.synthetic",
  358    358   
        "UpdateServiceInput",
  359    359   
    ),
  360    360   
    ::aws_smithy_schema::ShapeType::String,
  361         -
    "availability_zone_rebalancing",
         361  +
    "availabilityZoneRebalancing",
  362    362   
    6,
  363    363   
);
  364    364   
static UPDATESERVICEINPUT_MEMBER_NETWORK_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  365    365   
    ::aws_smithy_schema::ShapeId::from_static(
  366    366   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$networkConfiguration",
  367    367   
        "com.amazonaws.ecs.synthetic",
  368    368   
        "UpdateServiceInput",
  369    369   
    ),
  370    370   
    ::aws_smithy_schema::ShapeType::Structure,
  371         -
    "network_configuration",
         371  +
    "networkConfiguration",
  372    372   
    7,
  373    373   
);
  374    374   
static UPDATESERVICEINPUT_MEMBER_PLACEMENT_CONSTRAINTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  375    375   
    ::aws_smithy_schema::ShapeId::from_static(
  376    376   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$placementConstraints",
  377    377   
        "com.amazonaws.ecs.synthetic",
  378    378   
        "UpdateServiceInput",
  379    379   
    ),
  380    380   
    ::aws_smithy_schema::ShapeType::List,
  381         -
    "placement_constraints",
         381  +
    "placementConstraints",
  382    382   
    8,
  383    383   
);
  384    384   
static UPDATESERVICEINPUT_MEMBER_PLACEMENT_STRATEGY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  385    385   
    ::aws_smithy_schema::ShapeId::from_static(
  386    386   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$placementStrategy",
  387    387   
        "com.amazonaws.ecs.synthetic",
  388    388   
        "UpdateServiceInput",
  389    389   
    ),
  390    390   
    ::aws_smithy_schema::ShapeType::List,
  391         -
    "placement_strategy",
         391  +
    "placementStrategy",
  392    392   
    9,
  393    393   
);
  394    394   
static UPDATESERVICEINPUT_MEMBER_PLATFORM_VERSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  395    395   
    ::aws_smithy_schema::ShapeId::from_static(
  396    396   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$platformVersion",
  397    397   
        "com.amazonaws.ecs.synthetic",
  398    398   
        "UpdateServiceInput",
  399    399   
    ),
  400    400   
    ::aws_smithy_schema::ShapeType::String,
  401         -
    "platform_version",
         401  +
    "platformVersion",
  402    402   
    10,
  403    403   
);
  404    404   
static UPDATESERVICEINPUT_MEMBER_FORCE_NEW_DEPLOYMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  405    405   
    ::aws_smithy_schema::ShapeId::from_static(
  406    406   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$forceNewDeployment",
  407    407   
        "com.amazonaws.ecs.synthetic",
  408    408   
        "UpdateServiceInput",
  409    409   
    ),
  410    410   
    ::aws_smithy_schema::ShapeType::Boolean,
  411         -
    "force_new_deployment",
         411  +
    "forceNewDeployment",
  412    412   
    11,
  413    413   
);
  414    414   
static UPDATESERVICEINPUT_MEMBER_HEALTH_CHECK_GRACE_PERIOD_SECONDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  415    415   
    ::aws_smithy_schema::ShapeId::from_static(
  416    416   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$healthCheckGracePeriodSeconds",
  417    417   
        "com.amazonaws.ecs.synthetic",
  418    418   
        "UpdateServiceInput",
  419    419   
    ),
  420    420   
    ::aws_smithy_schema::ShapeType::Integer,
  421         -
    "health_check_grace_period_seconds",
         421  +
    "healthCheckGracePeriodSeconds",
  422    422   
    12,
  423    423   
);
  424    424   
static UPDATESERVICEINPUT_MEMBER_DEPLOYMENT_CONTROLLER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  425    425   
    ::aws_smithy_schema::ShapeId::from_static(
  426    426   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$deploymentController",
  427    427   
        "com.amazonaws.ecs.synthetic",
  428    428   
        "UpdateServiceInput",
  429    429   
    ),
  430    430   
    ::aws_smithy_schema::ShapeType::Structure,
  431         -
    "deployment_controller",
         431  +
    "deploymentController",
  432    432   
    13,
  433    433   
);
  434    434   
static UPDATESERVICEINPUT_MEMBER_ENABLE_EXECUTE_COMMAND: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  435    435   
    ::aws_smithy_schema::ShapeId::from_static(
  436    436   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$enableExecuteCommand",
  437    437   
        "com.amazonaws.ecs.synthetic",
  438    438   
        "UpdateServiceInput",
  439    439   
    ),
  440    440   
    ::aws_smithy_schema::ShapeType::Boolean,
  441         -
    "enable_execute_command",
         441  +
    "enableExecuteCommand",
  442    442   
    14,
  443    443   
);
  444    444   
static UPDATESERVICEINPUT_MEMBER_ENABLE_ECS_MANAGED_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  445    445   
    ::aws_smithy_schema::ShapeId::from_static(
  446    446   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$enableECSManagedTags",
  447    447   
        "com.amazonaws.ecs.synthetic",
  448    448   
        "UpdateServiceInput",
  449    449   
    ),
  450    450   
    ::aws_smithy_schema::ShapeType::Boolean,
  451         -
    "enable_ecs_managed_tags",
         451  +
    "enableECSManagedTags",
  452    452   
    15,
  453    453   
);
  454    454   
static UPDATESERVICEINPUT_MEMBER_LOAD_BALANCERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  455    455   
    ::aws_smithy_schema::ShapeId::from_static(
  456    456   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$loadBalancers",
  457    457   
        "com.amazonaws.ecs.synthetic",
  458    458   
        "UpdateServiceInput",
  459    459   
    ),
  460    460   
    ::aws_smithy_schema::ShapeType::List,
  461         -
    "load_balancers",
         461  +
    "loadBalancers",
  462    462   
    16,
  463    463   
);
  464    464   
static UPDATESERVICEINPUT_MEMBER_PROPAGATE_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  465    465   
    ::aws_smithy_schema::ShapeId::from_static(
  466    466   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$propagateTags",
  467    467   
        "com.amazonaws.ecs.synthetic",
  468    468   
        "UpdateServiceInput",
  469    469   
    ),
  470    470   
    ::aws_smithy_schema::ShapeType::String,
  471         -
    "propagate_tags",
         471  +
    "propagateTags",
  472    472   
    17,
  473    473   
);
  474    474   
static UPDATESERVICEINPUT_MEMBER_SERVICE_REGISTRIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  475    475   
    ::aws_smithy_schema::ShapeId::from_static(
  476    476   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$serviceRegistries",
  477    477   
        "com.amazonaws.ecs.synthetic",
  478    478   
        "UpdateServiceInput",
  479    479   
    ),
  480    480   
    ::aws_smithy_schema::ShapeType::List,
  481         -
    "service_registries",
         481  +
    "serviceRegistries",
  482    482   
    18,
  483    483   
);
  484    484   
static UPDATESERVICEINPUT_MEMBER_SERVICE_CONNECT_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  485    485   
    ::aws_smithy_schema::ShapeId::from_static(
  486    486   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$serviceConnectConfiguration",
  487    487   
        "com.amazonaws.ecs.synthetic",
  488    488   
        "UpdateServiceInput",
  489    489   
    ),
  490    490   
    ::aws_smithy_schema::ShapeType::Structure,
  491         -
    "service_connect_configuration",
         491  +
    "serviceConnectConfiguration",
  492    492   
    19,
  493    493   
);
  494    494   
static UPDATESERVICEINPUT_MEMBER_VOLUME_CONFIGURATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  495    495   
    ::aws_smithy_schema::ShapeId::from_static(
  496    496   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$volumeConfigurations",
  497    497   
        "com.amazonaws.ecs.synthetic",
  498    498   
        "UpdateServiceInput",
  499    499   
    ),
  500    500   
    ::aws_smithy_schema::ShapeType::List,
  501         -
    "volume_configurations",
         501  +
    "volumeConfigurations",
  502    502   
    20,
  503    503   
);
  504    504   
static UPDATESERVICEINPUT_MEMBER_VPC_LATTICE_CONFIGURATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  505    505   
    ::aws_smithy_schema::ShapeId::from_static(
  506    506   
        "com.amazonaws.ecs.synthetic#UpdateServiceInput$vpcLatticeConfigurations",
  507    507   
        "com.amazonaws.ecs.synthetic",
  508    508   
        "UpdateServiceInput",
  509    509   
    ),
  510    510   
    ::aws_smithy_schema::ShapeType::List,
  511         -
    "vpc_lattice_configurations",
         511  +
    "vpcLatticeConfigurations",
  512    512   
    21,
  513    513   
);
  514    514   
static UPDATESERVICEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  515    515   
    UPDATESERVICEINPUT_SCHEMA_ID,
  516    516   
    ::aws_smithy_schema::ShapeType::Structure,
  517    517   
    &[
  518    518   
        &UPDATESERVICEINPUT_MEMBER_CLUSTER,
  519    519   
        &UPDATESERVICEINPUT_MEMBER_SERVICE,
  520    520   
        &UPDATESERVICEINPUT_MEMBER_DESIRED_COUNT,
  521    521   
        &UPDATESERVICEINPUT_MEMBER_TASK_DEFINITION,
@@ -649,649 +868,859 @@
  669    669   
                    }
  670    670   
                    Ok(())
  671    671   
                },
  672    672   
            )?;
  673    673   
        }
  674    674   
        Ok(())
  675    675   
    }
  676    676   
}
  677    677   
impl UpdateServiceInput {
  678    678   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  679         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  680         -
        deserializer: &mut D,
         679  +
    pub fn deserialize(
         680  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  681    681   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  682    682   
        #[allow(unused_variables, unused_mut)]
  683    683   
        let mut builder = Self::builder();
  684    684   
        #[allow(
  685    685   
            unused_variables,
  686    686   
            unreachable_code,
  687    687   
            clippy::single_match,
  688    688   
            clippy::match_single_binding,
  689    689   
            clippy::diverging_sub_expression
  690    690   
        )]
  691         -
        deserializer.read_struct(&UPDATESERVICEINPUT_SCHEMA, (), |_, member, deser| {
         691  +
        deserializer.read_struct(&UPDATESERVICEINPUT_SCHEMA, &mut |member, deser| {
  692    692   
            match member.member_index() {
  693    693   
                Some(0) => {
  694    694   
                    builder.cluster = Some(deser.read_string(member)?);
  695    695   
                }
  696    696   
                Some(1) => {
  697    697   
                    builder.service = Some(deser.read_string(member)?);
  698    698   
                }
  699    699   
                Some(2) => {
  700    700   
                    builder.desired_count = Some(deser.read_integer(member)?);
  701    701   
                }
  702    702   
                Some(3) => {
  703    703   
                    builder.task_definition = Some(deser.read_string(member)?);
  704    704   
                }
  705    705   
                Some(4) => {
  706    706   
                    builder.capacity_provider_strategy = Some({
  707         -
                        let container = if let Some(cap) = deser.container_size() {
  708         -
                            Vec::with_capacity(cap)
  709         -
                        } else {
  710         -
                            Vec::new()
  711         -
                        };
  712         -
                        deser.read_list(member, container, |mut list, deser| {
  713         -
                            list.push(crate::types::CapacityProviderStrategyItem::deserialize(deser)?);
  714         -
                            Ok(list)
  715         -
                        })?
         707  +
                        let mut container = Vec::new();
         708  +
                        deser.read_list(member, &mut |deser| {
         709  +
                            container.push(crate::types::CapacityProviderStrategyItem::deserialize(deser)?);
         710  +
                            Ok(())
         711  +
                        })?;
         712  +
                        container
  716    713   
                    });
  717    714   
                }
  718    715   
                Some(5) => {
  719    716   
                    builder.deployment_configuration = Some(crate::types::DeploymentConfiguration::deserialize(deser)?);
  720    717   
                }
  721    718   
                Some(6) => {
  722    719   
                    builder.availability_zone_rebalancing =
  723    720   
                        Some(crate::types::AvailabilityZoneRebalancing::from(deser.read_string(member)?.as_str()));
  724    721   
                }
  725    722   
                Some(7) => {
  726    723   
                    builder.network_configuration = Some(crate::types::NetworkConfiguration::deserialize(deser)?);
  727    724   
                }
  728    725   
                Some(8) => {
  729    726   
                    builder.placement_constraints = Some({
  730         -
                        let container = if let Some(cap) = deser.container_size() {
  731         -
                            Vec::with_capacity(cap)
  732         -
                        } else {
  733         -
                            Vec::new()
  734         -
                        };
  735         -
                        deser.read_list(member, container, |mut list, deser| {
  736         -
                            list.push(crate::types::PlacementConstraint::deserialize(deser)?);
  737         -
                            Ok(list)
  738         -
                        })?
         727  +
                        let mut container = Vec::new();
         728  +
                        deser.read_list(member, &mut |deser| {
         729  +
                            container.push(crate::types::PlacementConstraint::deserialize(deser)?);
         730  +
                            Ok(())
         731  +
                        })?;
         732  +
                        container
  739    733   
                    });
  740    734   
                }
  741    735   
                Some(9) => {
  742    736   
                    builder.placement_strategy = Some({
  743         -
                        let container = if let Some(cap) = deser.container_size() {
  744         -
                            Vec::with_capacity(cap)
  745         -
                        } else {
  746         -
                            Vec::new()
  747         -
                        };
  748         -
                        deser.read_list(member, container, |mut list, deser| {
  749         -
                            list.push(crate::types::PlacementStrategy::deserialize(deser)?);
  750         -
                            Ok(list)
  751         -
                        })?
         737  +
                        let mut container = Vec::new();
         738  +
                        deser.read_list(member, &mut |deser| {
         739  +
                            container.push(crate::types::PlacementStrategy::deserialize(deser)?);
         740  +
                            Ok(())
         741  +
                        })?;
         742  +
                        container
  752    743   
                    });
  753    744   
                }
  754    745   
                Some(10) => {
  755    746   
                    builder.platform_version = Some(deser.read_string(member)?);
  756    747   
                }
  757    748   
                Some(11) => {
  758    749   
                    builder.force_new_deployment = Some(deser.read_boolean(member)?);
  759    750   
                }
  760    751   
                Some(12) => {
  761    752   
                    builder.health_check_grace_period_seconds = Some(deser.read_integer(member)?);
  762    753   
                }
  763    754   
                Some(13) => {
  764    755   
                    builder.deployment_controller = Some(crate::types::DeploymentController::deserialize(deser)?);
  765    756   
                }
  766    757   
                Some(14) => {
  767    758   
                    builder.enable_execute_command = Some(deser.read_boolean(member)?);
  768    759   
                }
  769    760   
                Some(15) => {
  770    761   
                    builder.enable_ecs_managed_tags = Some(deser.read_boolean(member)?);
  771    762   
                }
  772    763   
                Some(16) => {
  773    764   
                    builder.load_balancers = Some({
  774         -
                        let container = if let Some(cap) = deser.container_size() {
  775         -
                            Vec::with_capacity(cap)
  776         -
                        } else {
  777         -
                            Vec::new()
  778         -
                        };
  779         -
                        deser.read_list(member, container, |mut list, deser| {
  780         -
                            list.push(crate::types::LoadBalancer::deserialize(deser)?);
  781         -
                            Ok(list)
  782         -
                        })?
         765  +
                        let mut container = Vec::new();
         766  +
                        deser.read_list(member, &mut |deser| {
         767  +
                            container.push(crate::types::LoadBalancer::deserialize(deser)?);
         768  +
                            Ok(())
         769  +
                        })?;
         770  +
                        container
  783    771   
                    });
  784    772   
                }
  785    773   
                Some(17) => {
  786    774   
                    builder.propagate_tags = Some(crate::types::PropagateTags::from(deser.read_string(member)?.as_str()));
  787    775   
                }
  788    776   
                Some(18) => {
  789    777   
                    builder.service_registries = Some({
  790         -
                        let container = if let Some(cap) = deser.container_size() {
  791         -
                            Vec::with_capacity(cap)
  792         -
                        } else {
  793         -
                            Vec::new()
  794         -
                        };
  795         -
                        deser.read_list(member, container, |mut list, deser| {
  796         -
                            list.push(crate::types::ServiceRegistry::deserialize(deser)?);
  797         -
                            Ok(list)
  798         -
                        })?
         778  +
                        let mut container = Vec::new();
         779  +
                        deser.read_list(member, &mut |deser| {
         780  +
                            container.push(crate::types::ServiceRegistry::deserialize(deser)?);
         781  +
                            Ok(())
         782  +
                        })?;
         783  +
                        container
  799    784   
                    });
  800    785   
                }
  801    786   
                Some(19) => {
  802    787   
                    builder.service_connect_configuration = Some(crate::types::ServiceConnectConfiguration::deserialize(deser)?);
  803    788   
                }
  804    789   
                Some(20) => {
  805    790   
                    builder.volume_configurations = Some({
  806         -
                        let container = if let Some(cap) = deser.container_size() {
  807         -
                            Vec::with_capacity(cap)
  808         -
                        } else {
  809         -
                            Vec::new()
  810         -
                        };
  811         -
                        deser.read_list(member, container, |mut list, deser| {
  812         -
                            list.push(crate::types::ServiceVolumeConfiguration::deserialize(deser)?);
  813         -
                            Ok(list)
  814         -
                        })?
         791  +
                        let mut container = Vec::new();
         792  +
                        deser.read_list(member, &mut |deser| {
         793  +
                            container.push(crate::types::ServiceVolumeConfiguration::deserialize(deser)?);
         794  +
                            Ok(())
         795  +
                        })?;
         796  +
                        container
  815    797   
                    });
  816    798   
                }
  817    799   
                Some(21) => {
  818    800   
                    builder.vpc_lattice_configurations = Some({
  819         -
                        let container = if let Some(cap) = deser.container_size() {
  820         -
                            Vec::with_capacity(cap)
  821         -
                        } else {
  822         -
                            Vec::new()
  823         -
                        };
  824         -
                        deser.read_list(member, container, |mut list, deser| {
  825         -
                            list.push(crate::types::VpcLatticeConfiguration::deserialize(deser)?);
  826         -
                            Ok(list)
  827         -
                        })?
         801  +
                        let mut container = Vec::new();
         802  +
                        deser.read_list(member, &mut |deser| {
         803  +
                            container.push(crate::types::VpcLatticeConfiguration::deserialize(deser)?);
         804  +
                            Ok(())
         805  +
                        })?;
         806  +
                        container
  828    807   
                    });
  829    808   
                }
  830    809   
                _ => {}
  831    810   
            }
  832    811   
            Ok(())
  833    812   
        })?;
         813  +
        builder.service = builder.service.or(Some(String::new()));
  834    814   
        builder
  835    815   
            .build()
  836    816   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  837    817   
    }
  838    818   
}
         819  +
impl UpdateServiceInput {
         820  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         821  +
    pub fn deserialize_with_response(
         822  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         823  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         824  +
        _status: u16,
         825  +
        _body: &[u8],
         826  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         827  +
        Self::deserialize(deserializer)
         828  +
    }
         829  +
}
  839    830   
impl UpdateServiceInput {
  840    831   
    /// Creates a new builder-style object to manufacture [`UpdateServiceInput`](crate::operation::update_service::UpdateServiceInput).
  841    832   
    pub fn builder() -> crate::operation::update_service::builders::UpdateServiceInputBuilder {
  842    833   
        crate::operation::update_service::builders::UpdateServiceInputBuilder::default()
  843    834   
    }
  844    835   
}
  845    836   
  846    837   
/// A builder for [`UpdateServiceInput`](crate::operation::update_service::UpdateServiceInput).
  847    838   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  848    839   
#[non_exhaustive]

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

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