AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c

Files changed:

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/list_tags/_list_tags_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/list_tags/_list_tags_output.rs

@@ -1,1 +118,152 @@
   18     18   
    "com.amazonaws.lambda.synthetic",
   19     19   
    "ListTagsOutput",
   20     20   
);
   21     21   
static LISTTAGSOUTPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.lambda.synthetic#ListTagsOutput$Tags",
   24     24   
        "com.amazonaws.lambda.synthetic",
   25     25   
        "ListTagsOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Map,
   28         -
    "tags",
          28  +
    "Tags",
   29     29   
    0,
   30     30   
);
          31  +
static LISTTAGSOUTPUT_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 LISTTAGSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     39   
    LISTTAGSOUTPUT_SCHEMA_ID,
   33     40   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    &[&LISTTAGSOUTPUT_MEMBER_TAGS],
          41  +
    &[&LISTTAGSOUTPUT_MEMBER_TAGS, &LISTTAGSOUTPUT_MEMBER__REQUEST_ID],
   35     42   
);
   36     43   
impl ListTagsOutput {
   37     44   
    /// The schema for this shape.
   38     45   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTTAGSOUTPUT_SCHEMA;
   39     46   
}
   40     47   
impl ::aws_smithy_schema::serde::SerializableStruct for ListTagsOutput {
   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.tags {
   47     54   
            ser.write_map(
   48     55   
                &LISTTAGSOUTPUT_MEMBER_TAGS,
   49     56   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   50     57   
                    for (key, value) in val {
   51     58   
                        ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
   52     59   
                        ser.write_string(&::aws_smithy_schema::prelude::STRING, value)?;
   53     60   
                    }
   54     61   
                    Ok(())
   55     62   
                },
   56     63   
            )?;
   57     64   
        }
   58     65   
        Ok(())
   59     66   
    }
   60     67   
}
   61     68   
impl ListTagsOutput {
   62     69   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   63         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   64         -
        deserializer: &mut D,
          70  +
    pub fn deserialize(
          71  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   65     72   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   66     73   
        #[allow(unused_variables, unused_mut)]
   67     74   
        let mut builder = Self::builder();
   68     75   
        #[allow(
   69     76   
            unused_variables,
   70     77   
            unreachable_code,
   71     78   
            clippy::single_match,
   72     79   
            clippy::match_single_binding,
   73     80   
            clippy::diverging_sub_expression
   74     81   
        )]
   75         -
        deserializer.read_struct(&LISTTAGSOUTPUT_SCHEMA, (), |_, member, deser| {
          82  +
        deserializer.read_struct(&LISTTAGSOUTPUT_SCHEMA, &mut |member, deser| {
   76     83   
            match member.member_index() {
   77     84   
                Some(0) => {
   78         -
                    builder.tags = Some({
   79         -
                        let container = if let Some(cap) = deser.container_size() {
   80         -
                            std::collections::HashMap::with_capacity(cap)
   81         -
                        } else {
   82         -
                            std::collections::HashMap::new()
   83         -
                        };
   84         -
                        deser.read_map(member, container, |mut map, key, deser| {
   85         -
                            map.insert(key, deser.read_string(member)?);
   86         -
                            Ok(map)
   87         -
                        })?
   88         -
                    });
          85  +
                    builder.tags = Some(deser.read_string_string_map(member)?);
          86  +
                }
          87  +
                Some(1) => {
          88  +
                    builder._request_id = Some(deser.read_string(member)?);
          89  +
                }
          90  +
                _ => {}
          91  +
            }
          92  +
            Ok(())
          93  +
        })?;
          94  +
        Ok(builder.build())
          95  +
    }
          96  +
}
          97  +
impl ListTagsOutput {
          98  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          99  +
    /// Header-bound members are read directly from headers, avoiding runtime
         100  +
    /// member iteration overhead. Body members are read via the deserializer.
         101  +
    pub fn deserialize_with_response(
         102  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         103  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         104  +
        _status: u16,
         105  +
        _body: &[u8],
         106  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         107  +
        #[allow(unused_variables, unused_mut)]
         108  +
        let mut builder = Self::builder();
         109  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         110  +
            builder._request_id = Some(val.to_string());
         111  +
        }
         112  +
        #[allow(
         113  +
            unused_variables,
         114  +
            unreachable_code,
         115  +
            clippy::single_match,
         116  +
            clippy::match_single_binding,
         117  +
            clippy::diverging_sub_expression
         118  +
        )]
         119  +
        deserializer.read_struct(&LISTTAGSOUTPUT_SCHEMA, &mut |member, deser| {
         120  +
            match member.member_index() {
         121  +
                Some(0) => {
         122  +
                    builder.tags = Some(deser.read_string_string_map(member)?);
   89    123   
                }
   90    124   
                _ => {}
   91    125   
            }
   92    126   
            Ok(())
   93    127   
        })?;
   94    128   
        Ok(builder.build())
   95    129   
    }
   96    130   
}
   97    131   
impl ::aws_types::request_id::RequestId for ListTagsOutput {
   98    132   
    fn request_id(&self) -> Option<&str> {

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/list_versions_by_function.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 `ListVersionsByFunction`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListVersionsByFunction;
    6      6   
impl ListVersionsByFunction {
    7      7   
    /// Creates a new `ListVersionsByFunction`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_versions_by_function::ListVersionsByFunctionInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_versions_by_function::ListVersionsByFunctionOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::list_versions_by_function::ListVersionsByFunctionInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_versions_by_function::ListVersionsByFunctionOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_versions_by_function::ListVersionsByFunctionError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -119,123 +267,361 @@
  139    143   
                crate::operation::list_versions_by_function::ListVersionsByFunctionError,
  140    144   
            >::new());
  141    145   
  142    146   
        ::std::borrow::Cow::Owned(rcb)
  143    147   
    }
  144    148   
}
  145    149   
  146    150   
#[derive(Debug)]
  147    151   
struct ListVersionsByFunctionResponseDeserializer;
  148    152   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListVersionsByFunctionResponseDeserializer {
  149         -
    fn deserialize_nonstreaming(
         153  +
    fn deserialize_nonstreaming_with_config(
  150    154   
        &self,
  151    155   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         156  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  152    157   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  153    158   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  154         -
        let headers = response.headers();
  155         -
        let body = response.body().bytes().expect("body loaded");
  156    159   
        #[allow(unused_mut)]
  157    160   
        let mut force_error = false;
  158    161   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  159         -
        let parse_result = if !success && status != 200 || force_error {
  160         -
            crate::protocol_serde::shape_list_versions_by_function::de_list_versions_by_function_http_error(status, headers, body)
         162  +
        if !success && status != 200 || force_error {
         163  +
            let headers = response.headers();
         164  +
            let body = response.body().bytes().expect("body loaded");
         165  +
            #[allow(unused_mut)]
         166  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         167  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         168  +
            })?;
         169  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         170  +
            let generic = generic_builder.build();
         171  +
            let error_code = match generic.code() {
         172  +
                ::std::option::Option::Some(code) => code,
         173  +
                ::std::option::Option::None => {
         174  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         175  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         176  +
                            crate::operation::list_versions_by_function::ListVersionsByFunctionError::unhandled(generic),
         177  +
                        ),
         178  +
                    ))
         179  +
                }
         180  +
            };
         181  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         182  +
            let protocol = _cfg
         183  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         184  +
                .expect("a SharedClientProtocol is required");
         185  +
            let err = match error_code {
         186  +
                "InvalidParameterValueException" => {
         187  +
                    crate::operation::list_versions_by_function::ListVersionsByFunctionError::InvalidParameterValueException({
         188  +
                        let mut tmp = match protocol
         189  +
                            .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         190  +
                            .and_then(|mut deser| {
         191  +
                                crate::types::error::InvalidParameterValueException::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  +
                }
         212  +
                "ResourceNotFoundException" => crate::operation::list_versions_by_function::ListVersionsByFunctionError::ResourceNotFoundException({
         213  +
                    let mut tmp = match protocol
         214  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         215  +
                        .and_then(|mut deser| {
         216  +
                            crate::types::error::ResourceNotFoundException::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  +
                "ServiceException" => crate::operation::list_versions_by_function::ListVersionsByFunctionError::ServiceException({
         237  +
                    let mut tmp = match protocol
         238  +
                        .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         239  +
                        .and_then(|mut deser| {
         240  +
                            crate::types::error::ServiceException::deserialize_with_response(
         241  +
                                &mut *deser,
         242  +
                                response.headers(),
         243  +
                                response.status().into(),
         244  +
                                body,
         245  +
                            )
         246  +
                        }) {
         247  +
                        ::std::result::Result::Ok(val) => val,
         248  +
                        ::std::result::Result::Err(e) => {
         249  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         250  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         251  +
                            ))
         252  +
                        }
         253  +
                    };
         254  +
                    tmp.meta = generic;
         255  +
                    if tmp.message.is_none() {
         256  +
                        tmp.message = _error_message;
         257  +
                    }
         258  +
                    tmp
         259  +
                }),
         260  +
                "TooManyRequestsException" => crate::operation::list_versions_by_function::ListVersionsByFunctionError::TooManyRequestsException({
         261  +
                    let mut tmp = match protocol
         262  +
                        .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         263  +
                        .and_then(|mut deser| {
         264  +
                            crate::types::error::TooManyRequestsException::deserialize_with_response(
         265  +
                                &mut *deser,
         266  +
                                response.headers(),
         267  +
                                response.status().into(),
         268  +
                                body,
         269  +
                            )
         270  +
                        }) {
         271  +
                        ::std::result::Result::Ok(val) => val,
         272  +
                        ::std::result::Result::Err(e) => {
         273  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         274  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         275  +
                            ))
         276  +
                        }
         277  +
                    };
         278  +
                    tmp.meta = generic;
         279  +
                    if tmp.message.is_none() {
         280  +
                        tmp.message = _error_message;
         281  +
                    }
         282  +
                    tmp
         283  +
                }),
         284  +
                _ => crate::operation::list_versions_by_function::ListVersionsByFunctionError::generic(generic),
         285  +
            };
         286  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         287  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         288  +
            ))
  161    289   
        } else {
  162         -
            crate::protocol_serde::shape_list_versions_by_function::de_list_versions_by_function_http_response(status, headers, body)
  163         -
        };
  164         -
        crate::protocol_serde::type_erase_result(parse_result)
         290  +
            let protocol = _cfg
         291  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         292  +
                .expect("a SharedClientProtocol is required");
         293  +
            let mut deser = protocol
         294  +
                .deserialize_response(response, ListVersionsByFunction::OUTPUT_SCHEMA, _cfg)
         295  +
                .map_err(|e| {
         296  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         297  +
                })?;
         298  +
            let body = response.body().bytes().expect("body loaded");
         299  +
            let output = crate::operation::list_versions_by_function::ListVersionsByFunctionOutput::deserialize_with_response(
         300  +
                &mut *deser,
         301  +
                response.headers(),
         302  +
                response.status().into(),
         303  +
                body,
         304  +
            )
         305  +
            .map_err(|e| {
         306  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         307  +
            })?;
         308  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         309  +
        }
  165    310   
    }
  166    311   
}
  167    312   
#[derive(Debug)]
  168    313   
struct ListVersionsByFunctionRequestSerializer;
  169    314   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListVersionsByFunctionRequestSerializer {
  170    315   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  171    316   
    fn serialize_input(
  172    317   
        &self,
  173    318   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  174    319   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  175    320   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  176    321   
        let input = input
  177    322   
            .downcast::<crate::operation::list_versions_by_function::ListVersionsByFunctionInput>()
  178    323   
            .expect("correct type");
  179         -
        let _header_serialization_settings = _cfg
  180         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  181         -
            .cloned()
  182         -
            .unwrap_or_default();
  183         -
        let mut request_builder = {
  184         -
            #[allow(clippy::uninlined_format_args)]
  185         -
            fn uri_base(
  186         -
                _input: &crate::operation::list_versions_by_function::ListVersionsByFunctionInput,
  187         -
                output: &mut ::std::string::String,
  188         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  189         -
                use ::std::fmt::Write as _;
  190         -
                let input_1 = &_input.function_name;
  191         -
                let input_1 = input_1
  192         -
                    .as_ref()
  193         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("function_name", "cannot be empty or unset"))?;
  194         -
                let function_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  195         -
                if function_name.is_empty() {
  196         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  197         -
                        "function_name",
  198         -
                        "cannot be empty or unset",
  199         -
                    ));
  200         -
                }
  201         -
                ::std::write!(output, "/2015-03-31/functions/{FunctionName}/versions", FunctionName = function_name)
  202         -
                    .expect("formatting should succeed");
  203         -
                ::std::result::Result::Ok(())
  204         -
            }
  205         -
            fn uri_query(
  206         -
                _input: &crate::operation::list_versions_by_function::ListVersionsByFunctionInput,
  207         -
                mut output: &mut ::std::string::String,
  208         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  209         -
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  210         -
                if let ::std::option::Option::Some(inner_2) = &_input.marker {
  211         -
                    {
  212         -
                        query.push_kv("Marker", &::aws_smithy_http::query::fmt_string(inner_2));
  213         -
                    }
  214         -
                }
  215         -
                if let ::std::option::Option::Some(inner_3) = &_input.max_items {
  216         -
                    {
  217         -
                        query.push_kv("MaxItems", ::aws_smithy_types::primitive::Encoder::from(*inner_3).encode());
  218         -
                    }
  219         -
                }
  220         -
                ::std::result::Result::Ok(())
  221         -
            }
  222         -
            #[allow(clippy::unnecessary_wraps)]
  223         -
            fn update_http_builder(
  224         -
                input: &crate::operation::list_versions_by_function::ListVersionsByFunctionInput,
  225         -
                builder: ::http_1x::request::Builder,
  226         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  227         -
                let mut uri = ::std::string::String::new();
  228         -
                uri_base(input, &mut uri)?;
  229         -
                uri_query(input, &mut uri)?;
  230         -
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  231         -
            }
  232         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  233         -
            builder
  234         -
        };
  235         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
         324  +
        let protocol = _cfg
         325  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         326  +
            .expect("a SharedClientProtocol is required");
         327  +
        let mut request = protocol
         328  +
            .serialize_request(&input, ListVersionsByFunction::INPUT_SCHEMA, "", _cfg)
         329  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  236    330   
  237         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         331  +
        return ::std::result::Result::Ok(request);
  238    332   
    }
  239    333   
}
  240    334   
#[derive(Debug)]
  241    335   
struct ListVersionsByFunctionEndpointParamsInterceptor;
  242    336   
  243    337   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListVersionsByFunctionEndpointParamsInterceptor {
  244    338   
    fn name(&self) -> &'static str {
  245    339   
        "ListVersionsByFunctionEndpointParamsInterceptor"
  246    340   
    }
  247    341   

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/list_versions_by_function/_list_versions_by_function_input.rs

@@ -29,29 +179,196 @@
   49     49   
    "com.amazonaws.lambda.synthetic",
   50     50   
    "ListVersionsByFunctionInput",
   51     51   
);
   52     52   
static LISTVERSIONSBYFUNCTIONINPUT_MEMBER_FUNCTION_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   53     53   
    ::aws_smithy_schema::ShapeId::from_static(
   54     54   
        "com.amazonaws.lambda.synthetic#ListVersionsByFunctionInput$FunctionName",
   55     55   
        "com.amazonaws.lambda.synthetic",
   56     56   
        "ListVersionsByFunctionInput",
   57     57   
    ),
   58     58   
    ::aws_smithy_schema::ShapeType::String,
   59         -
    "function_name",
          59  +
    "FunctionName",
   60     60   
    0,
   61     61   
)
   62     62   
.with_http_label();
   63     63   
static LISTVERSIONSBYFUNCTIONINPUT_MEMBER_MARKER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   64     64   
    ::aws_smithy_schema::ShapeId::from_static(
   65     65   
        "com.amazonaws.lambda.synthetic#ListVersionsByFunctionInput$Marker",
   66     66   
        "com.amazonaws.lambda.synthetic",
   67     67   
        "ListVersionsByFunctionInput",
   68     68   
    ),
   69     69   
    ::aws_smithy_schema::ShapeType::String,
   70         -
    "marker",
          70  +
    "Marker",
   71     71   
    1,
   72     72   
)
   73     73   
.with_http_query("Marker");
   74     74   
static LISTVERSIONSBYFUNCTIONINPUT_MEMBER_MAX_ITEMS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   75     75   
    ::aws_smithy_schema::ShapeId::from_static(
   76     76   
        "com.amazonaws.lambda.synthetic#ListVersionsByFunctionInput$MaxItems",
   77     77   
        "com.amazonaws.lambda.synthetic",
   78     78   
        "ListVersionsByFunctionInput",
   79     79   
    ),
   80     80   
    ::aws_smithy_schema::ShapeType::Integer,
   81         -
    "max_items",
          81  +
    "MaxItems",
   82     82   
    2,
   83     83   
)
   84     84   
.with_http_query("MaxItems");
   85     85   
static LISTVERSIONSBYFUNCTIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   86     86   
    LISTVERSIONSBYFUNCTIONINPUT_SCHEMA_ID,
   87     87   
    ::aws_smithy_schema::ShapeType::Structure,
   88     88   
    &[
   89     89   
        &LISTVERSIONSBYFUNCTIONINPUT_MEMBER_FUNCTION_NAME,
   90     90   
        &LISTVERSIONSBYFUNCTIONINPUT_MEMBER_MARKER,
   91     91   
        &LISTVERSIONSBYFUNCTIONINPUT_MEMBER_MAX_ITEMS,
   92     92   
    ],
   93         -
);
          93  +
)
          94  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          95  +
    "GET",
          96  +
    "/2015-03-31/functions/{FunctionName}/versions",
          97  +
    None,
          98  +
));
   94     99   
impl ListVersionsByFunctionInput {
   95    100   
    /// The schema for this shape.
   96    101   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTVERSIONSBYFUNCTIONINPUT_SCHEMA;
   97    102   
}
   98    103   
impl ::aws_smithy_schema::serde::SerializableStruct for ListVersionsByFunctionInput {
   99    104   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  100    105   
    fn serialize_members(
  101    106   
        &self,
  102    107   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  103    108   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  104    109   
        if let Some(ref val) = self.function_name {
  105    110   
            ser.write_string(&LISTVERSIONSBYFUNCTIONINPUT_MEMBER_FUNCTION_NAME, val)?;
  106    111   
        }
  107    112   
        if let Some(ref val) = self.marker {
  108    113   
            ser.write_string(&LISTVERSIONSBYFUNCTIONINPUT_MEMBER_MARKER, val)?;
  109    114   
        }
  110    115   
        if let Some(ref val) = self.max_items {
  111    116   
            ser.write_integer(&LISTVERSIONSBYFUNCTIONINPUT_MEMBER_MAX_ITEMS, *val)?;
  112    117   
        }
  113    118   
        Ok(())
  114    119   
    }
  115    120   
}
  116    121   
impl ListVersionsByFunctionInput {
  117    122   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  118         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  119         -
        deserializer: &mut D,
         123  +
    pub fn deserialize(
         124  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  120    125   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  121    126   
        #[allow(unused_variables, unused_mut)]
  122    127   
        let mut builder = Self::builder();
  123    128   
        #[allow(
  124    129   
            unused_variables,
  125    130   
            unreachable_code,
  126    131   
            clippy::single_match,
  127    132   
            clippy::match_single_binding,
  128    133   
            clippy::diverging_sub_expression
  129    134   
        )]
  130         -
        deserializer.read_struct(&LISTVERSIONSBYFUNCTIONINPUT_SCHEMA, (), |_, member, deser| {
         135  +
        deserializer.read_struct(&LISTVERSIONSBYFUNCTIONINPUT_SCHEMA, &mut |member, deser| {
  131    136   
            match member.member_index() {
  132    137   
                Some(0) => {
  133    138   
                    builder.function_name = Some(deser.read_string(member)?);
  134    139   
                }
  135    140   
                Some(1) => {
  136    141   
                    builder.marker = Some(deser.read_string(member)?);
  137    142   
                }
  138    143   
                Some(2) => {
  139    144   
                    builder.max_items = Some(deser.read_integer(member)?);
  140    145   
                }
  141    146   
                _ => {}
  142    147   
            }
  143    148   
            Ok(())
  144    149   
        })?;
         150  +
        builder.function_name = builder.function_name.or(Some(String::new()));
  145    151   
        builder
  146    152   
            .build()
  147    153   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  148    154   
    }
  149    155   
}
         156  +
impl ListVersionsByFunctionInput {
         157  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         158  +
    pub fn deserialize_with_response(
         159  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         160  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         161  +
        _status: u16,
         162  +
        _body: &[u8],
         163  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         164  +
        Self::deserialize(deserializer)
         165  +
    }
         166  +
}
  150    167   
impl ListVersionsByFunctionInput {
  151    168   
    /// Creates a new builder-style object to manufacture [`ListVersionsByFunctionInput`](crate::operation::list_versions_by_function::ListVersionsByFunctionInput).
  152    169   
    pub fn builder() -> crate::operation::list_versions_by_function::builders::ListVersionsByFunctionInputBuilder {
  153    170   
        crate::operation::list_versions_by_function::builders::ListVersionsByFunctionInputBuilder::default()
  154    171   
    }
  155    172   
}
  156    173   
  157    174   
/// A builder for [`ListVersionsByFunctionInput`](crate::operation::list_versions_by_function::ListVersionsByFunctionInput).
  158    175   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  159    176   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/list_versions_by_function/_list_versions_by_function_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/publish_layer_version.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 `PublishLayerVersion`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PublishLayerVersion;
    6      6   
impl PublishLayerVersion {
    7      7   
    /// Creates a new `PublishLayerVersion`
    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::publish_layer_version::PublishLayerVersionInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::publish_layer_version::PublishLayerVersionOutput::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::publish_layer_version::PublishLayerVersionInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::publish_layer_version::PublishLayerVersionOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::publish_layer_version::PublishLayerVersionError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +253,384 @@
  138    142   
                crate::operation::publish_layer_version::PublishLayerVersionError,
  139    143   
            >::new());
  140    144   
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct PublishLayerVersionResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PublishLayerVersionResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153         -
        let headers = response.headers();
  154         -
        let body = response.body().bytes().expect("body loaded");
  155    158   
        #[allow(unused_mut)]
  156    159   
        let mut force_error = false;
  157    160   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158         -
        let parse_result = if !success && status != 201 || force_error {
  159         -
            crate::protocol_serde::shape_publish_layer_version::de_publish_layer_version_http_error(status, headers, body)
         161  +
        if !success && status != 201 || force_error {
         162  +
            let headers = response.headers();
         163  +
            let body = response.body().bytes().expect("body loaded");
         164  +
            #[allow(unused_mut)]
         165  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         166  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         167  +
            })?;
         168  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         169  +
            let generic = generic_builder.build();
         170  +
            let error_code = match generic.code() {
         171  +
                ::std::option::Option::Some(code) => code,
         172  +
                ::std::option::Option::None => {
         173  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         174  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         175  +
                            crate::operation::publish_layer_version::PublishLayerVersionError::unhandled(generic),
         176  +
                        ),
         177  +
                    ))
         178  +
                }
         179  +
            };
         180  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         181  +
            let protocol = _cfg
         182  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         183  +
                .expect("a SharedClientProtocol is required");
         184  +
            let err = match error_code {
         185  +
                "CodeStorageExceededException" => crate::operation::publish_layer_version::PublishLayerVersionError::CodeStorageExceededException({
         186  +
                    let mut tmp = match protocol
         187  +
                        .deserialize_response(response, crate::types::error::CodeStorageExceededException::SCHEMA, _cfg)
         188  +
                        .and_then(|mut deser| {
         189  +
                            crate::types::error::CodeStorageExceededException::deserialize_with_response(
         190  +
                                &mut *deser,
         191  +
                                response.headers(),
         192  +
                                response.status().into(),
         193  +
                                body,
         194  +
                            )
         195  +
                        }) {
         196  +
                        ::std::result::Result::Ok(val) => val,
         197  +
                        ::std::result::Result::Err(e) => {
         198  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         199  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         200  +
                            ))
         201  +
                        }
         202  +
                    };
         203  +
                    tmp.meta = generic;
         204  +
                    if tmp.message.is_none() {
         205  +
                        tmp.message = _error_message;
         206  +
                    }
         207  +
                    tmp
         208  +
                }),
         209  +
                "InvalidParameterValueException" => {
         210  +
                    crate::operation::publish_layer_version::PublishLayerVersionError::InvalidParameterValueException({
         211  +
                        let mut tmp = match protocol
         212  +
                            .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         213  +
                            .and_then(|mut deser| {
         214  +
                                crate::types::error::InvalidParameterValueException::deserialize_with_response(
         215  +
                                    &mut *deser,
         216  +
                                    response.headers(),
         217  +
                                    response.status().into(),
         218  +
                                    body,
         219  +
                                )
         220  +
                            }) {
         221  +
                            ::std::result::Result::Ok(val) => val,
         222  +
                            ::std::result::Result::Err(e) => {
         223  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         224  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         225  +
                                ))
         226  +
                            }
         227  +
                        };
         228  +
                        tmp.meta = generic;
         229  +
                        if tmp.message.is_none() {
         230  +
                            tmp.message = _error_message;
         231  +
                        }
         232  +
                        tmp
         233  +
                    })
         234  +
                }
         235  +
                "ResourceNotFoundException" => crate::operation::publish_layer_version::PublishLayerVersionError::ResourceNotFoundException({
         236  +
                    let mut tmp = match protocol
         237  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         238  +
                        .and_then(|mut deser| {
         239  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         240  +
                                &mut *deser,
         241  +
                                response.headers(),
         242  +
                                response.status().into(),
         243  +
                                body,
         244  +
                            )
         245  +
                        }) {
         246  +
                        ::std::result::Result::Ok(val) => val,
         247  +
                        ::std::result::Result::Err(e) => {
         248  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         249  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         250  +
                            ))
         251  +
                        }
         252  +
                    };
         253  +
                    tmp.meta = generic;
         254  +
                    if tmp.message.is_none() {
         255  +
                        tmp.message = _error_message;
         256  +
                    }
         257  +
                    tmp
         258  +
                }),
         259  +
                "ServiceException" => crate::operation::publish_layer_version::PublishLayerVersionError::ServiceException({
         260  +
                    let mut tmp = match protocol
         261  +
                        .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         262  +
                        .and_then(|mut deser| {
         263  +
                            crate::types::error::ServiceException::deserialize_with_response(
         264  +
                                &mut *deser,
         265  +
                                response.headers(),
         266  +
                                response.status().into(),
         267  +
                                body,
         268  +
                            )
         269  +
                        }) {
         270  +
                        ::std::result::Result::Ok(val) => val,
         271  +
                        ::std::result::Result::Err(e) => {
         272  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         273  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         274  +
                            ))
         275  +
                        }
         276  +
                    };
         277  +
                    tmp.meta = generic;
         278  +
                    if tmp.message.is_none() {
         279  +
                        tmp.message = _error_message;
         280  +
                    }
         281  +
                    tmp
         282  +
                }),
         283  +
                "TooManyRequestsException" => crate::operation::publish_layer_version::PublishLayerVersionError::TooManyRequestsException({
         284  +
                    let mut tmp = match protocol
         285  +
                        .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         286  +
                        .and_then(|mut deser| {
         287  +
                            crate::types::error::TooManyRequestsException::deserialize_with_response(
         288  +
                                &mut *deser,
         289  +
                                response.headers(),
         290  +
                                response.status().into(),
         291  +
                                body,
         292  +
                            )
         293  +
                        }) {
         294  +
                        ::std::result::Result::Ok(val) => val,
         295  +
                        ::std::result::Result::Err(e) => {
         296  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         297  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         298  +
                            ))
         299  +
                        }
         300  +
                    };
         301  +
                    tmp.meta = generic;
         302  +
                    if tmp.message.is_none() {
         303  +
                        tmp.message = _error_message;
         304  +
                    }
         305  +
                    tmp
         306  +
                }),
         307  +
                _ => crate::operation::publish_layer_version::PublishLayerVersionError::generic(generic),
         308  +
            };
         309  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         310  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         311  +
            ))
  160    312   
        } else {
  161         -
            crate::protocol_serde::shape_publish_layer_version::de_publish_layer_version_http_response(status, headers, body)
  162         -
        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         313  +
            let protocol = _cfg
         314  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         315  +
                .expect("a SharedClientProtocol is required");
         316  +
            let mut deser = protocol
         317  +
                .deserialize_response(response, PublishLayerVersion::OUTPUT_SCHEMA, _cfg)
         318  +
                .map_err(|e| {
         319  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         320  +
                })?;
         321  +
            let body = response.body().bytes().expect("body loaded");
         322  +
            let output = crate::operation::publish_layer_version::PublishLayerVersionOutput::deserialize_with_response(
         323  +
                &mut *deser,
         324  +
                response.headers(),
         325  +
                response.status().into(),
         326  +
                body,
         327  +
            )
         328  +
            .map_err(|e| {
         329  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         330  +
            })?;
         331  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         332  +
        }
  164    333   
    }
  165    334   
}
  166    335   
#[derive(Debug)]
  167    336   
struct PublishLayerVersionRequestSerializer;
  168    337   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for PublishLayerVersionRequestSerializer {
  169    338   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    339   
    fn serialize_input(
  171    340   
        &self,
  172    341   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    342   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    343   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    344   
        let input = input
  176    345   
            .downcast::<crate::operation::publish_layer_version::PublishLayerVersionInput>()
  177    346   
            .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::publish_layer_version::PublishLayerVersionInput,
  186         -
                output: &mut ::std::string::String,
  187         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188         -
                use ::std::fmt::Write as _;
  189         -
                let input_1 = &_input.layer_name;
  190         -
                let input_1 = input_1
  191         -
                    .as_ref()
  192         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("layer_name", "cannot be empty or unset"))?;
  193         -
                let layer_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  194         -
                if layer_name.is_empty() {
  195         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  196         -
                        "layer_name",
  197         -
                        "cannot be empty or unset",
  198         -
                    ));
  199         -
                }
  200         -
                ::std::write!(output, "/2018-10-31/layers/{LayerName}/versions", LayerName = layer_name).expect("formatting should succeed");
  201         -
                ::std::result::Result::Ok(())
  202         -
            }
  203         -
            #[allow(clippy::unnecessary_wraps)]
  204         -
            fn update_http_builder(
  205         -
                input: &crate::operation::publish_layer_version::PublishLayerVersionInput,
  206         -
                builder: ::http_1x::request::Builder,
  207         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  208         -
                let mut uri = ::std::string::String::new();
  209         -
                uri_base(input, &mut uri)?;
  210         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  211         -
            }
  212         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  213         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  214         -
            builder
  215         -
        };
  216         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_publish_layer_version::ser_publish_layer_version_input(
  217         -
            &input,
  218         -
        )?);
  219         -
        if let Some(content_length) = body.content_length() {
  220         -
            let content_length = content_length.to_string();
  221         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  222         -
        }
  223         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         347  +
        let protocol = _cfg
         348  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         349  +
            .expect("a SharedClientProtocol is required");
         350  +
        let mut request = protocol
         351  +
            .serialize_request(&input, PublishLayerVersion::INPUT_SCHEMA, "", _cfg)
         352  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         353  +
         354  +
        return ::std::result::Result::Ok(request);
  224    355   
    }
  225    356   
}
  226    357   
#[derive(Debug)]
  227    358   
struct PublishLayerVersionEndpointParamsInterceptor;
  228    359   
  229    360   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PublishLayerVersionEndpointParamsInterceptor {
  230    361   
    fn name(&self) -> &'static str {
  231    362   
        "PublishLayerVersionEndpointParamsInterceptor"
  232    363   
    }
  233    364   

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/publish_layer_version/_publish_layer_version_input.rs

@@ -49,49 +284,295 @@
   69     69   
    "com.amazonaws.lambda.synthetic",
   70     70   
    "PublishLayerVersionInput",
   71     71   
);
   72     72   
static PUBLISHLAYERVERSIONINPUT_MEMBER_LAYER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   73     73   
    ::aws_smithy_schema::ShapeId::from_static(
   74     74   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionInput$LayerName",
   75     75   
        "com.amazonaws.lambda.synthetic",
   76     76   
        "PublishLayerVersionInput",
   77     77   
    ),
   78     78   
    ::aws_smithy_schema::ShapeType::String,
   79         -
    "layer_name",
          79  +
    "LayerName",
   80     80   
    0,
   81     81   
)
   82     82   
.with_http_label();
   83     83   
static PUBLISHLAYERVERSIONINPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   84     84   
    ::aws_smithy_schema::ShapeId::from_static(
   85     85   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionInput$Description",
   86     86   
        "com.amazonaws.lambda.synthetic",
   87     87   
        "PublishLayerVersionInput",
   88     88   
    ),
   89     89   
    ::aws_smithy_schema::ShapeType::String,
   90         -
    "description",
          90  +
    "Description",
   91     91   
    1,
   92     92   
);
   93     93   
static PUBLISHLAYERVERSIONINPUT_MEMBER_CONTENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   94     94   
    ::aws_smithy_schema::ShapeId::from_static(
   95     95   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionInput$Content",
   96     96   
        "com.amazonaws.lambda.synthetic",
   97     97   
        "PublishLayerVersionInput",
   98     98   
    ),
   99     99   
    ::aws_smithy_schema::ShapeType::Structure,
  100         -
    "content",
         100  +
    "Content",
  101    101   
    2,
  102    102   
);
  103    103   
static PUBLISHLAYERVERSIONINPUT_MEMBER_COMPATIBLE_RUNTIMES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  104    104   
    ::aws_smithy_schema::ShapeId::from_static(
  105    105   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionInput$CompatibleRuntimes",
  106    106   
        "com.amazonaws.lambda.synthetic",
  107    107   
        "PublishLayerVersionInput",
  108    108   
    ),
  109    109   
    ::aws_smithy_schema::ShapeType::List,
  110         -
    "compatible_runtimes",
         110  +
    "CompatibleRuntimes",
  111    111   
    3,
  112    112   
);
  113    113   
static PUBLISHLAYERVERSIONINPUT_MEMBER_LICENSE_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  114    114   
    ::aws_smithy_schema::ShapeId::from_static(
  115    115   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionInput$LicenseInfo",
  116    116   
        "com.amazonaws.lambda.synthetic",
  117    117   
        "PublishLayerVersionInput",
  118    118   
    ),
  119    119   
    ::aws_smithy_schema::ShapeType::String,
  120         -
    "license_info",
         120  +
    "LicenseInfo",
  121    121   
    4,
  122    122   
);
  123    123   
static PUBLISHLAYERVERSIONINPUT_MEMBER_COMPATIBLE_ARCHITECTURES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  124    124   
    ::aws_smithy_schema::ShapeId::from_static(
  125    125   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionInput$CompatibleArchitectures",
  126    126   
        "com.amazonaws.lambda.synthetic",
  127    127   
        "PublishLayerVersionInput",
  128    128   
    ),
  129    129   
    ::aws_smithy_schema::ShapeType::List,
  130         -
    "compatible_architectures",
         130  +
    "CompatibleArchitectures",
  131    131   
    5,
  132    132   
);
  133    133   
static PUBLISHLAYERVERSIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  134    134   
    PUBLISHLAYERVERSIONINPUT_SCHEMA_ID,
  135    135   
    ::aws_smithy_schema::ShapeType::Structure,
  136    136   
    &[
  137    137   
        &PUBLISHLAYERVERSIONINPUT_MEMBER_LAYER_NAME,
  138    138   
        &PUBLISHLAYERVERSIONINPUT_MEMBER_DESCRIPTION,
  139    139   
        &PUBLISHLAYERVERSIONINPUT_MEMBER_CONTENT,
  140    140   
        &PUBLISHLAYERVERSIONINPUT_MEMBER_COMPATIBLE_RUNTIMES,
  141    141   
        &PUBLISHLAYERVERSIONINPUT_MEMBER_LICENSE_INFO,
  142    142   
        &PUBLISHLAYERVERSIONINPUT_MEMBER_COMPATIBLE_ARCHITECTURES,
  143    143   
    ],
  144         -
);
         144  +
)
         145  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
         146  +
    "POST",
         147  +
    "/2018-10-31/layers/{LayerName}/versions",
         148  +
    Some(201),
         149  +
));
  145    150   
impl PublishLayerVersionInput {
  146    151   
    /// The schema for this shape.
  147    152   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUBLISHLAYERVERSIONINPUT_SCHEMA;
  148    153   
}
  149    154   
impl ::aws_smithy_schema::serde::SerializableStruct for PublishLayerVersionInput {
  150    155   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  151    156   
    fn serialize_members(
  152    157   
        &self,
  153    158   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  154    159   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  155    160   
        if let Some(ref val) = self.layer_name {
  156    161   
            ser.write_string(&PUBLISHLAYERVERSIONINPUT_MEMBER_LAYER_NAME, val)?;
  157    162   
        }
  158    163   
        if let Some(ref val) = self.description {
  159    164   
            ser.write_string(&PUBLISHLAYERVERSIONINPUT_MEMBER_DESCRIPTION, val)?;
  160    165   
        }
  161    166   
        if let Some(ref val) = self.content {
  162    167   
            ser.write_struct(&PUBLISHLAYERVERSIONINPUT_MEMBER_CONTENT, val)?;
  163    168   
        }
  164    169   
        if let Some(ref val) = self.compatible_runtimes {
  165    170   
            ser.write_list(
  166    171   
                &PUBLISHLAYERVERSIONINPUT_MEMBER_COMPATIBLE_RUNTIMES,
  167    172   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  168    173   
                    for item in val {
  169    174   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item.as_str())?;
  170    175   
                    }
  171    176   
                    Ok(())
  172    177   
                },
  173    178   
            )?;
  174    179   
        }
  175    180   
        if let Some(ref val) = self.license_info {
  176    181   
            ser.write_string(&PUBLISHLAYERVERSIONINPUT_MEMBER_LICENSE_INFO, val)?;
  177    182   
        }
  178    183   
        if let Some(ref val) = self.compatible_architectures {
  179    184   
            ser.write_list(
  180    185   
                &PUBLISHLAYERVERSIONINPUT_MEMBER_COMPATIBLE_ARCHITECTURES,
  181    186   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  182    187   
                    for item in val {
  183    188   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item.as_str())?;
  184    189   
                    }
  185    190   
                    Ok(())
  186    191   
                },
  187    192   
            )?;
  188    193   
        }
  189    194   
        Ok(())
  190    195   
    }
  191    196   
}
  192    197   
impl PublishLayerVersionInput {
  193    198   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  194         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  195         -
        deserializer: &mut D,
         199  +
    pub fn deserialize(
         200  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  196    201   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  197    202   
        #[allow(unused_variables, unused_mut)]
  198    203   
        let mut builder = Self::builder();
  199    204   
        #[allow(
  200    205   
            unused_variables,
  201    206   
            unreachable_code,
  202    207   
            clippy::single_match,
  203    208   
            clippy::match_single_binding,
  204    209   
            clippy::diverging_sub_expression
  205    210   
        )]
  206         -
        deserializer.read_struct(&PUBLISHLAYERVERSIONINPUT_SCHEMA, (), |_, member, deser| {
         211  +
        deserializer.read_struct(&PUBLISHLAYERVERSIONINPUT_SCHEMA, &mut |member, deser| {
  207    212   
            match member.member_index() {
  208    213   
                Some(0) => {
  209    214   
                    builder.layer_name = Some(deser.read_string(member)?);
  210    215   
                }
  211    216   
                Some(1) => {
  212    217   
                    builder.description = Some(deser.read_string(member)?);
  213    218   
                }
  214    219   
                Some(2) => {
  215    220   
                    builder.content = Some(crate::types::LayerVersionContentInput::deserialize(deser)?);
  216    221   
                }
  217    222   
                Some(3) => {
  218    223   
                    builder.compatible_runtimes = Some({
  219         -
                        let container = if let Some(cap) = deser.container_size() {
  220         -
                            Vec::with_capacity(cap)
  221         -
                        } else {
  222         -
                            Vec::new()
  223         -
                        };
  224         -
                        deser.read_list(member, container, |mut list, deser| {
  225         -
                            list.push(crate::types::Runtime::from(deser.read_string(member)?.as_str()));
  226         -
                            Ok(list)
  227         -
                        })?
         224  +
                        let mut container = Vec::new();
         225  +
                        deser.read_list(member, &mut |deser| {
         226  +
                            container.push(crate::types::Runtime::from(deser.read_string(member)?.as_str()));
         227  +
                            Ok(())
         228  +
                        })?;
         229  +
                        container
  228    230   
                    });
  229    231   
                }
  230    232   
                Some(4) => {
  231    233   
                    builder.license_info = Some(deser.read_string(member)?);
  232    234   
                }
  233    235   
                Some(5) => {
  234    236   
                    builder.compatible_architectures = Some({
  235         -
                        let container = if let Some(cap) = deser.container_size() {
  236         -
                            Vec::with_capacity(cap)
  237         -
                        } else {
  238         -
                            Vec::new()
  239         -
                        };
  240         -
                        deser.read_list(member, container, |mut list, deser| {
  241         -
                            list.push(crate::types::Architecture::from(deser.read_string(member)?.as_str()));
  242         -
                            Ok(list)
  243         -
                        })?
         237  +
                        let mut container = Vec::new();
         238  +
                        deser.read_list(member, &mut |deser| {
         239  +
                            container.push(crate::types::Architecture::from(deser.read_string(member)?.as_str()));
         240  +
                            Ok(())
         241  +
                        })?;
         242  +
                        container
  244    243   
                    });
  245    244   
                }
  246    245   
                _ => {}
  247    246   
            }
  248    247   
            Ok(())
  249    248   
        })?;
         249  +
        builder.layer_name = builder.layer_name.or(Some(String::new()));
  250    250   
        builder
  251    251   
            .build()
  252    252   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  253    253   
    }
  254    254   
}
         255  +
impl PublishLayerVersionInput {
         256  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         257  +
    pub fn deserialize_with_response(
         258  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         259  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         260  +
        _status: u16,
         261  +
        _body: &[u8],
         262  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         263  +
        Self::deserialize(deserializer)
         264  +
    }
         265  +
}
  255    266   
impl PublishLayerVersionInput {
  256    267   
    /// Creates a new builder-style object to manufacture [`PublishLayerVersionInput`](crate::operation::publish_layer_version::PublishLayerVersionInput).
  257    268   
    pub fn builder() -> crate::operation::publish_layer_version::builders::PublishLayerVersionInputBuilder {
  258    269   
        crate::operation::publish_layer_version::builders::PublishLayerVersionInputBuilder::default()
  259    270   
    }
  260    271   
}
  261    272   
  262    273   
/// A builder for [`PublishLayerVersionInput`](crate::operation::publish_layer_version::PublishLayerVersionInput).
  263    274   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  264    275   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/publish_layer_version/_publish_layer_version_output.rs

@@ -54,54 +209,217 @@
   74     74   
    "com.amazonaws.lambda.synthetic",
   75     75   
    "PublishLayerVersionOutput",
   76     76   
);
   77     77   
static PUBLISHLAYERVERSIONOUTPUT_MEMBER_CONTENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionOutput$Content",
   80     80   
        "com.amazonaws.lambda.synthetic",
   81     81   
        "PublishLayerVersionOutput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::Structure,
   84         -
    "content",
          84  +
    "Content",
   85     85   
    0,
   86     86   
);
   87     87   
static PUBLISHLAYERVERSIONOUTPUT_MEMBER_LAYER_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionOutput$LayerArn",
   90     90   
        "com.amazonaws.lambda.synthetic",
   91     91   
        "PublishLayerVersionOutput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::String,
   94         -
    "layer_arn",
          94  +
    "LayerArn",
   95     95   
    1,
   96     96   
);
   97     97   
static PUBLISHLAYERVERSIONOUTPUT_MEMBER_LAYER_VERSION_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   98     98   
    ::aws_smithy_schema::ShapeId::from_static(
   99     99   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionOutput$LayerVersionArn",
  100    100   
        "com.amazonaws.lambda.synthetic",
  101    101   
        "PublishLayerVersionOutput",
  102    102   
    ),
  103    103   
    ::aws_smithy_schema::ShapeType::String,
  104         -
    "layer_version_arn",
         104  +
    "LayerVersionArn",
  105    105   
    2,
  106    106   
);
  107    107   
static PUBLISHLAYERVERSIONOUTPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  108    108   
    ::aws_smithy_schema::ShapeId::from_static(
  109    109   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionOutput$Description",
  110    110   
        "com.amazonaws.lambda.synthetic",
  111    111   
        "PublishLayerVersionOutput",
  112    112   
    ),
  113    113   
    ::aws_smithy_schema::ShapeType::String,
  114         -
    "description",
         114  +
    "Description",
  115    115   
    3,
  116    116   
);
  117    117   
static PUBLISHLAYERVERSIONOUTPUT_MEMBER_CREATED_DATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  118    118   
    ::aws_smithy_schema::ShapeId::from_static(
  119    119   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionOutput$CreatedDate",
  120    120   
        "com.amazonaws.lambda.synthetic",
  121    121   
        "PublishLayerVersionOutput",
  122    122   
    ),
  123    123   
    ::aws_smithy_schema::ShapeType::String,
  124         -
    "created_date",
         124  +
    "CreatedDate",
  125    125   
    4,
  126    126   
);
  127    127   
static PUBLISHLAYERVERSIONOUTPUT_MEMBER_VERSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  128    128   
    ::aws_smithy_schema::ShapeId::from_static(
  129    129   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionOutput$Version",
  130    130   
        "com.amazonaws.lambda.synthetic",
  131    131   
        "PublishLayerVersionOutput",
  132    132   
    ),
  133    133   
    ::aws_smithy_schema::ShapeType::Long,
  134         -
    "version",
         134  +
    "Version",
  135    135   
    5,
  136    136   
);
  137    137   
static PUBLISHLAYERVERSIONOUTPUT_MEMBER_COMPATIBLE_RUNTIMES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  138    138   
    ::aws_smithy_schema::ShapeId::from_static(
  139    139   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionOutput$CompatibleRuntimes",
  140    140   
        "com.amazonaws.lambda.synthetic",
  141    141   
        "PublishLayerVersionOutput",
  142    142   
    ),
  143    143   
    ::aws_smithy_schema::ShapeType::List,
  144         -
    "compatible_runtimes",
         144  +
    "CompatibleRuntimes",
  145    145   
    6,
  146    146   
);
  147    147   
static PUBLISHLAYERVERSIONOUTPUT_MEMBER_LICENSE_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  148    148   
    ::aws_smithy_schema::ShapeId::from_static(
  149    149   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionOutput$LicenseInfo",
  150    150   
        "com.amazonaws.lambda.synthetic",
  151    151   
        "PublishLayerVersionOutput",
  152    152   
    ),
  153    153   
    ::aws_smithy_schema::ShapeType::String,
  154         -
    "license_info",
         154  +
    "LicenseInfo",
  155    155   
    7,
  156    156   
);
  157    157   
static PUBLISHLAYERVERSIONOUTPUT_MEMBER_COMPATIBLE_ARCHITECTURES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  158    158   
    ::aws_smithy_schema::ShapeId::from_static(
  159    159   
        "com.amazonaws.lambda.synthetic#PublishLayerVersionOutput$CompatibleArchitectures",
  160    160   
        "com.amazonaws.lambda.synthetic",
  161    161   
        "PublishLayerVersionOutput",
  162    162   
    ),
  163    163   
    ::aws_smithy_schema::ShapeType::List,
  164         -
    "compatible_architectures",
         164  +
    "CompatibleArchitectures",
  165    165   
    8,
  166    166   
);
         167  +
static PUBLISHLAYERVERSIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         168  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         169  +
    ::aws_smithy_schema::ShapeType::String,
         170  +
    "request_id",
         171  +
    9,
         172  +
)
         173  +
.with_http_header("x-amzn-requestid");
  167    174   
static PUBLISHLAYERVERSIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  168    175   
    PUBLISHLAYERVERSIONOUTPUT_SCHEMA_ID,
  169    176   
    ::aws_smithy_schema::ShapeType::Structure,
  170    177   
    &[
  171    178   
        &PUBLISHLAYERVERSIONOUTPUT_MEMBER_CONTENT,
  172    179   
        &PUBLISHLAYERVERSIONOUTPUT_MEMBER_LAYER_ARN,
  173    180   
        &PUBLISHLAYERVERSIONOUTPUT_MEMBER_LAYER_VERSION_ARN,
  174    181   
        &PUBLISHLAYERVERSIONOUTPUT_MEMBER_DESCRIPTION,
  175    182   
        &PUBLISHLAYERVERSIONOUTPUT_MEMBER_CREATED_DATE,
  176    183   
        &PUBLISHLAYERVERSIONOUTPUT_MEMBER_VERSION,
  177    184   
        &PUBLISHLAYERVERSIONOUTPUT_MEMBER_COMPATIBLE_RUNTIMES,
  178    185   
        &PUBLISHLAYERVERSIONOUTPUT_MEMBER_LICENSE_INFO,
  179    186   
        &PUBLISHLAYERVERSIONOUTPUT_MEMBER_COMPATIBLE_ARCHITECTURES,
         187  +
        &PUBLISHLAYERVERSIONOUTPUT_MEMBER__REQUEST_ID,
  180    188   
    ],
  181    189   
);
  182    190   
impl PublishLayerVersionOutput {
  183    191   
    /// The schema for this shape.
  184    192   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUBLISHLAYERVERSIONOUTPUT_SCHEMA;
  185    193   
}
  186    194   
impl ::aws_smithy_schema::serde::SerializableStruct for PublishLayerVersionOutput {
  187    195   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  188    196   
    fn serialize_members(
  189    197   
        &self,
@@ -211,219 +329,406 @@
  231    239   
                    }
  232    240   
                    Ok(())
  233    241   
                },
  234    242   
            )?;
  235    243   
        }
  236    244   
        Ok(())
  237    245   
    }
  238    246   
}
  239    247   
impl PublishLayerVersionOutput {
  240    248   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  241         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  242         -
        deserializer: &mut D,
         249  +
    pub fn deserialize(
         250  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  243    251   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  244    252   
        #[allow(unused_variables, unused_mut)]
  245    253   
        let mut builder = Self::builder();
  246    254   
        #[allow(
  247    255   
            unused_variables,
  248    256   
            unreachable_code,
  249    257   
            clippy::single_match,
  250    258   
            clippy::match_single_binding,
  251    259   
            clippy::diverging_sub_expression
  252    260   
        )]
  253         -
        deserializer.read_struct(&PUBLISHLAYERVERSIONOUTPUT_SCHEMA, (), |_, member, deser| {
         261  +
        deserializer.read_struct(&PUBLISHLAYERVERSIONOUTPUT_SCHEMA, &mut |member, deser| {
         262  +
            match member.member_index() {
         263  +
                Some(0) => {
         264  +
                    builder.content = Some(crate::types::LayerVersionContentOutput::deserialize(deser)?);
         265  +
                }
         266  +
                Some(1) => {
         267  +
                    builder.layer_arn = Some(deser.read_string(member)?);
         268  +
                }
         269  +
                Some(2) => {
         270  +
                    builder.layer_version_arn = Some(deser.read_string(member)?);
         271  +
                }
         272  +
                Some(3) => {
         273  +
                    builder.description = Some(deser.read_string(member)?);
         274  +
                }
         275  +
                Some(4) => {
         276  +
                    builder.created_date = Some(deser.read_string(member)?);
         277  +
                }
         278  +
                Some(5) => {
         279  +
                    builder.version = Some(deser.read_long(member)?);
         280  +
                }
         281  +
                Some(6) => {
         282  +
                    builder.compatible_runtimes = Some({
         283  +
                        let mut container = Vec::new();
         284  +
                        deser.read_list(member, &mut |deser| {
         285  +
                            container.push(crate::types::Runtime::from(deser.read_string(member)?.as_str()));
         286  +
                            Ok(())
         287  +
                        })?;
         288  +
                        container
         289  +
                    });
         290  +
                }
         291  +
                Some(7) => {
         292  +
                    builder.license_info = Some(deser.read_string(member)?);
         293  +
                }
         294  +
                Some(8) => {
         295  +
                    builder.compatible_architectures = Some({
         296  +
                        let mut container = Vec::new();
         297  +
                        deser.read_list(member, &mut |deser| {
         298  +
                            container.push(crate::types::Architecture::from(deser.read_string(member)?.as_str()));
         299  +
                            Ok(())
         300  +
                        })?;
         301  +
                        container
         302  +
                    });
         303  +
                }
         304  +
                Some(9) => {
         305  +
                    builder._request_id = Some(deser.read_string(member)?);
         306  +
                }
         307  +
                _ => {}
         308  +
            }
         309  +
            Ok(())
         310  +
        })?;
         311  +
        Ok(builder.build())
         312  +
    }
         313  +
}
         314  +
impl PublishLayerVersionOutput {
         315  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         316  +
    /// Header-bound members are read directly from headers, avoiding runtime
         317  +
    /// member iteration overhead. Body members are read via the deserializer.
         318  +
    pub fn deserialize_with_response(
         319  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         320  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         321  +
        _status: u16,
         322  +
        _body: &[u8],
         323  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         324  +
        #[allow(unused_variables, unused_mut)]
         325  +
        let mut builder = Self::builder();
         326  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         327  +
            builder._request_id = Some(val.to_string());
         328  +
        }
         329  +
        #[allow(
         330  +
            unused_variables,
         331  +
            unreachable_code,
         332  +
            clippy::single_match,
         333  +
            clippy::match_single_binding,
         334  +
            clippy::diverging_sub_expression
         335  +
        )]
         336  +
        deserializer.read_struct(&PUBLISHLAYERVERSIONOUTPUT_SCHEMA, &mut |member, deser| {
  254    337   
            match member.member_index() {
  255    338   
                Some(0) => {
  256    339   
                    builder.content = Some(crate::types::LayerVersionContentOutput::deserialize(deser)?);
  257    340   
                }
  258    341   
                Some(1) => {
  259    342   
                    builder.layer_arn = Some(deser.read_string(member)?);
  260    343   
                }
  261    344   
                Some(2) => {
  262    345   
                    builder.layer_version_arn = Some(deser.read_string(member)?);
  263    346   
                }
  264    347   
                Some(3) => {
  265    348   
                    builder.description = Some(deser.read_string(member)?);
  266    349   
                }
  267    350   
                Some(4) => {
  268    351   
                    builder.created_date = Some(deser.read_string(member)?);
  269    352   
                }
  270    353   
                Some(5) => {
  271    354   
                    builder.version = Some(deser.read_long(member)?);
  272    355   
                }
  273    356   
                Some(6) => {
  274    357   
                    builder.compatible_runtimes = Some({
  275         -
                        let container = if let Some(cap) = deser.container_size() {
  276         -
                            Vec::with_capacity(cap)
  277         -
                        } else {
  278         -
                            Vec::new()
  279         -
                        };
  280         -
                        deser.read_list(member, container, |mut list, deser| {
  281         -
                            list.push(crate::types::Runtime::from(deser.read_string(member)?.as_str()));
  282         -
                            Ok(list)
  283         -
                        })?
         358  +
                        let mut container = Vec::new();
         359  +
                        deser.read_list(member, &mut |deser| {
         360  +
                            container.push(crate::types::Runtime::from(deser.read_string(member)?.as_str()));
         361  +
                            Ok(())
         362  +
                        })?;
         363  +
                        container
  284    364   
                    });
  285    365   
                }
  286    366   
                Some(7) => {
  287    367   
                    builder.license_info = Some(deser.read_string(member)?);
  288    368   
                }
  289    369   
                Some(8) => {
  290    370   
                    builder.compatible_architectures = Some({
  291         -
                        let container = if let Some(cap) = deser.container_size() {
  292         -
                            Vec::with_capacity(cap)
  293         -
                        } else {
  294         -
                            Vec::new()
  295         -
                        };
  296         -
                        deser.read_list(member, container, |mut list, deser| {
  297         -
                            list.push(crate::types::Architecture::from(deser.read_string(member)?.as_str()));
  298         -
                            Ok(list)
  299         -
                        })?
         371  +
                        let mut container = Vec::new();
         372  +
                        deser.read_list(member, &mut |deser| {
         373  +
                            container.push(crate::types::Architecture::from(deser.read_string(member)?.as_str()));
         374  +
                            Ok(())
         375  +
                        })?;
         376  +
                        container
  300    377   
                    });
  301    378   
                }
  302    379   
                _ => {}
  303    380   
            }
  304    381   
            Ok(())
  305    382   
        })?;
  306    383   
        Ok(builder.build())
  307    384   
    }
  308    385   
}
  309    386   
impl ::aws_types::request_id::RequestId for PublishLayerVersionOutput {