AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/list_functions_by_code_signing_config/_list_functions_by_code_signing_config_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/list_layer_versions.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 `ListLayerVersions`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListLayerVersions;
    6      6   
impl ListLayerVersions {
    7      7   
    /// Creates a new `ListLayerVersions`
    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_layer_versions::ListLayerVersionsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_layer_versions::ListLayerVersionsOutput::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_layer_versions::ListLayerVersionsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_layer_versions::ListLayerVersionsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_layer_versions::ListLayerVersionsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +275,358 @@
  138    142   
                crate::operation::list_layer_versions::ListLayerVersionsError,
  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 ListLayerVersionsResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListLayerVersionsResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153         -
        let headers = response.headers();
  154         -
        let body = response.body().bytes().expect("body loaded");
  155    158   
        #[allow(unused_mut)]
  156    159   
        let mut force_error = false;
  157    160   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158         -
        let parse_result = if !success && status != 200 || force_error {
  159         -
            crate::protocol_serde::shape_list_layer_versions::de_list_layer_versions_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_list_layer_versions::de_list_layer_versions_http_response(status, headers, body)
         161  +
        if !success && status != 200 || force_error {
         162  +
            let headers = response.headers();
         163  +
            let body = response.body().bytes().expect("body loaded");
         164  +
            #[allow(unused_mut)]
         165  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         166  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         167  +
            })?;
         168  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         169  +
            let generic = generic_builder.build();
         170  +
            let error_code = match generic.code() {
         171  +
                ::std::option::Option::Some(code) => code,
         172  +
                ::std::option::Option::None => {
         173  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         174  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         175  +
                            crate::operation::list_layer_versions::ListLayerVersionsError::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  +
                "InvalidParameterValueException" => crate::operation::list_layer_versions::ListLayerVersionsError::InvalidParameterValueException({
         186  +
                    let mut tmp = match protocol
         187  +
                        .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         188  +
                        .and_then(|mut deser| {
         189  +
                            crate::types::error::InvalidParameterValueException::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  +
                "ResourceNotFoundException" => crate::operation::list_layer_versions::ListLayerVersionsError::ResourceNotFoundException({
         210  +
                    let mut tmp = match protocol
         211  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         212  +
                        .and_then(|mut deser| {
         213  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         214  +
                                &mut *deser,
         215  +
                                response.headers(),
         216  +
                                response.status().into(),
         217  +
                                body,
         218  +
                            )
         219  +
                        }) {
         220  +
                        ::std::result::Result::Ok(val) => val,
         221  +
                        ::std::result::Result::Err(e) => {
         222  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         223  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         224  +
                            ))
         225  +
                        }
         226  +
                    };
         227  +
                    tmp.meta = generic;
         228  +
                    if tmp.message.is_none() {
         229  +
                        tmp.message = _error_message;
         230  +
                    }
         231  +
                    tmp
         232  +
                }),
         233  +
                "ServiceException" => crate::operation::list_layer_versions::ListLayerVersionsError::ServiceException({
         234  +
                    let mut tmp = match protocol
         235  +
                        .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         236  +
                        .and_then(|mut deser| {
         237  +
                            crate::types::error::ServiceException::deserialize_with_response(
         238  +
                                &mut *deser,
         239  +
                                response.headers(),
         240  +
                                response.status().into(),
         241  +
                                body,
         242  +
                            )
         243  +
                        }) {
         244  +
                        ::std::result::Result::Ok(val) => val,
         245  +
                        ::std::result::Result::Err(e) => {
         246  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         247  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         248  +
                            ))
         249  +
                        }
         250  +
                    };
         251  +
                    tmp.meta = generic;
         252  +
                    if tmp.message.is_none() {
         253  +
                        tmp.message = _error_message;
         254  +
                    }
         255  +
                    tmp
         256  +
                }),
         257  +
                "TooManyRequestsException" => crate::operation::list_layer_versions::ListLayerVersionsError::TooManyRequestsException({
         258  +
                    let mut tmp = match protocol
         259  +
                        .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         260  +
                        .and_then(|mut deser| {
         261  +
                            crate::types::error::TooManyRequestsException::deserialize_with_response(
         262  +
                                &mut *deser,
         263  +
                                response.headers(),
         264  +
                                response.status().into(),
         265  +
                                body,
         266  +
                            )
         267  +
                        }) {
         268  +
                        ::std::result::Result::Ok(val) => val,
         269  +
                        ::std::result::Result::Err(e) => {
         270  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         271  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         272  +
                            ))
         273  +
                        }
  162    274   
                    };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         275  +
                    tmp.meta = generic;
         276  +
                    if tmp.message.is_none() {
         277  +
                        tmp.message = _error_message;
         278  +
                    }
         279  +
                    tmp
         280  +
                }),
         281  +
                _ => crate::operation::list_layer_versions::ListLayerVersionsError::generic(generic),
         282  +
            };
         283  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         284  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         285  +
            ))
         286  +
        } else {
         287  +
            let protocol = _cfg
         288  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         289  +
                .expect("a SharedClientProtocol is required");
         290  +
            let mut deser = protocol
         291  +
                .deserialize_response(response, ListLayerVersions::OUTPUT_SCHEMA, _cfg)
         292  +
                .map_err(|e| {
         293  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         294  +
                })?;
         295  +
            let body = response.body().bytes().expect("body loaded");
         296  +
            let output = crate::operation::list_layer_versions::ListLayerVersionsOutput::deserialize_with_response(
         297  +
                &mut *deser,
         298  +
                response.headers(),
         299  +
                response.status().into(),
         300  +
                body,
         301  +
            )
         302  +
            .map_err(|e| {
         303  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         304  +
            })?;
         305  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         306  +
        }
  164    307   
    }
  165    308   
}
  166    309   
#[derive(Debug)]
  167    310   
struct ListLayerVersionsRequestSerializer;
  168    311   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListLayerVersionsRequestSerializer {
  169    312   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    313   
    fn serialize_input(
  171    314   
        &self,
  172    315   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    316   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    317   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    318   
        let input = input
  176    319   
            .downcast::<crate::operation::list_layer_versions::ListLayerVersionsInput>()
  177    320   
            .expect("correct type");
  178         -
        let _header_serialization_settings = _cfg
  179         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  180         -
            .cloned()
  181         -
            .unwrap_or_default();
  182         -
        let mut request_builder = {
  183         -
            #[allow(clippy::uninlined_format_args)]
  184         -
            fn uri_base(
  185         -
                _input: &crate::operation::list_layer_versions::ListLayerVersionsInput,
  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         -
            fn uri_query(
  204         -
                _input: &crate::operation::list_layer_versions::ListLayerVersionsInput,
  205         -
                mut output: &mut ::std::string::String,
  206         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  207         -
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  208         -
                if let ::std::option::Option::Some(inner_2) = &_input.compatible_runtime {
  209         -
                    {
  210         -
                        query.push_kv("CompatibleRuntime", &::aws_smithy_http::query::fmt_string(inner_2.as_str()));
  211         -
                    }
  212         -
                }
  213         -
                if let ::std::option::Option::Some(inner_3) = &_input.marker {
  214         -
                    {
  215         -
                        query.push_kv("Marker", &::aws_smithy_http::query::fmt_string(inner_3));
  216         -
                    }
  217         -
                }
  218         -
                if let ::std::option::Option::Some(inner_4) = &_input.max_items {
  219         -
                    {
  220         -
                        query.push_kv("MaxItems", ::aws_smithy_types::primitive::Encoder::from(*inner_4).encode());
  221         -
                    }
  222         -
                }
  223         -
                if let ::std::option::Option::Some(inner_5) = &_input.compatible_architecture {
  224         -
                    {
  225         -
                        query.push_kv("CompatibleArchitecture", &::aws_smithy_http::query::fmt_string(inner_5.as_str()));
  226         -
                    }
  227         -
                }
  228         -
                ::std::result::Result::Ok(())
  229         -
            }
  230         -
            #[allow(clippy::unnecessary_wraps)]
  231         -
            fn update_http_builder(
  232         -
                input: &crate::operation::list_layer_versions::ListLayerVersionsInput,
  233         -
                builder: ::http_1x::request::Builder,
  234         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  235         -
                let mut uri = ::std::string::String::new();
  236         -
                uri_base(input, &mut uri)?;
  237         -
                uri_query(input, &mut uri)?;
  238         -
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  239         -
            }
  240         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  241         -
            builder
  242         -
        };
  243         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
         321  +
        let protocol = _cfg
         322  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         323  +
            .expect("a SharedClientProtocol is required");
         324  +
        let mut request = protocol
         325  +
            .serialize_request(&input, ListLayerVersions::INPUT_SCHEMA, "", _cfg)
         326  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  244    327   
  245         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         328  +
        return ::std::result::Result::Ok(request);
  246    329   
    }
  247    330   
}
  248    331   
#[derive(Debug)]
  249    332   
struct ListLayerVersionsEndpointParamsInterceptor;
  250    333   
  251    334   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListLayerVersionsEndpointParamsInterceptor {
  252    335   
    fn name(&self) -> &'static str {
  253    336   
        "ListLayerVersionsEndpointParamsInterceptor"
  254    337   
    }
  255    338   

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/list_layer_versions/_list_layer_versions_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/list_layer_versions/_list_layer_versions_output.rs

@@ -6,6 +143,195 @@
   26     26   
    "com.amazonaws.lambda.synthetic",
   27     27   
    "ListLayerVersionsOutput",
   28     28   
);
   29     29   
static LISTLAYERVERSIONSOUTPUT_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#ListLayerVersionsOutput$NextMarker",
   32     32   
        "com.amazonaws.lambda.synthetic",
   33     33   
        "ListLayerVersionsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::String,
   36         -
    "next_marker",
          36  +
    "NextMarker",
   37     37   
    0,
   38     38   
);
   39     39   
static LISTLAYERVERSIONSOUTPUT_MEMBER_LAYER_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#ListLayerVersionsOutput$LayerVersions",
   42     42   
        "com.amazonaws.lambda.synthetic",
   43     43   
        "ListLayerVersionsOutput",
   44     44   
    ),
   45     45   
    ::aws_smithy_schema::ShapeType::List,
   46         -
    "layer_versions",
          46  +
    "LayerVersions",
   47     47   
    1,
   48     48   
);
          49  +
static LISTLAYERVERSIONSOUTPUT_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 LISTLAYERVERSIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    LISTLAYERVERSIONSOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52     59   
    &[
   53     60   
        &LISTLAYERVERSIONSOUTPUT_MEMBER_NEXT_MARKER,
   54     61   
        &LISTLAYERVERSIONSOUTPUT_MEMBER_LAYER_VERSIONS,
          62  +
        &LISTLAYERVERSIONSOUTPUT_MEMBER__REQUEST_ID,
   55     63   
    ],
   56     64   
);
   57     65   
impl ListLayerVersionsOutput {
   58     66   
    /// The schema for this shape.
   59     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTLAYERVERSIONSOUTPUT_SCHEMA;
   60     68   
}
   61     69   
impl ::aws_smithy_schema::serde::SerializableStruct for ListLayerVersionsOutput {
   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(&LISTLAYERVERSIONSOUTPUT_MEMBER_NEXT_MARKER, val)?;
   69     77   
        }
   70     78   
        if let Some(ref val) = self.layer_versions {
   71     79   
            ser.write_list(
   72     80   
                &LISTLAYERVERSIONSOUTPUT_MEMBER_LAYER_VERSIONS,
   73     81   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   74     82   
                    for item in val {
   75     83   
                        ser.write_struct(crate::types::LayerVersionsListItem::SCHEMA, item)?;
   76     84   
                    }
   77     85   
                    Ok(())
   78     86   
                },
   79     87   
            )?;
   80     88   
        }
   81     89   
        Ok(())
   82     90   
    }
   83     91   
}
   84     92   
impl ListLayerVersionsOutput {
   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(&LISTLAYERVERSIONSOUTPUT_SCHEMA, (), |_, member, deser| {
         106  +
        deserializer.read_struct(&LISTLAYERVERSIONSOUTPUT_SCHEMA, &mut |member, deser| {
   99    107   
            match member.member_index() {
  100    108   
                Some(0) => {
  101    109   
                    builder.next_marker = Some(deser.read_string(member)?);
  102    110   
                }
  103    111   
                Some(1) => {
  104    112   
                    builder.layer_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::LayerVersionsListItem::deserialize(deser)?);
  112         -
                            Ok(list)
  113         -
                        })?
         113  +
                        let mut container = Vec::new();
         114  +
                        deser.read_list(member, &mut |deser| {
         115  +
                            container.push(crate::types::LayerVersionsListItem::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 ListLayerVersionsOutput {
         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(&LISTLAYERVERSIONSOUTPUT_SCHEMA, &mut |member, deser| {
         154  +
            match member.member_index() {
         155  +
                Some(0) => {
         156  +
                    builder.next_marker = Some(deser.read_string(member)?);
         157  +
                }
         158  +
                Some(1) => {
         159  +
                    builder.layer_versions = Some({
         160  +
                        let mut container = Vec::new();
         161  +
                        deser.read_list(member, &mut |deser| {
         162  +
                            container.push(crate::types::LayerVersionsListItem::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 ListLayerVersionsOutput {

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/list_layers/_list_layers_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/list_layers/_list_layers_output.rs

@@ -6,6 +140,195 @@
   26     26   
    "com.amazonaws.lambda.synthetic",
   27     27   
    "ListLayersOutput",
   28     28   
);
   29     29   
static LISTLAYERSOUTPUT_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#ListLayersOutput$NextMarker",
   32     32   
        "com.amazonaws.lambda.synthetic",
   33     33   
        "ListLayersOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::String,
   36         -
    "next_marker",
          36  +
    "NextMarker",
   37     37   
    0,
   38     38   
);
   39     39   
static LISTLAYERSOUTPUT_MEMBER_LAYERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   40     40   
    ::aws_smithy_schema::ShapeId::from_static(
   41     41   
        "com.amazonaws.lambda.synthetic#ListLayersOutput$Layers",
   42     42   
        "com.amazonaws.lambda.synthetic",
   43     43   
        "ListLayersOutput",
   44     44   
    ),
   45     45   
    ::aws_smithy_schema::ShapeType::List,
   46         -
    "layers",
          46  +
    "Layers",
   47     47   
    1,
   48     48   
);
          49  +
static LISTLAYERSOUTPUT_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 LISTLAYERSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    LISTLAYERSOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52         -
    &[&LISTLAYERSOUTPUT_MEMBER_NEXT_MARKER, &LISTLAYERSOUTPUT_MEMBER_LAYERS],
          59  +
    &[
          60  +
        &LISTLAYERSOUTPUT_MEMBER_NEXT_MARKER,
          61  +
        &LISTLAYERSOUTPUT_MEMBER_LAYERS,
          62  +
        &LISTLAYERSOUTPUT_MEMBER__REQUEST_ID,
          63  +
    ],
   53     64   
);
   54     65   
impl ListLayersOutput {
   55     66   
    /// The schema for this shape.
   56     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTLAYERSOUTPUT_SCHEMA;
   57     68   
}
   58     69   
impl ::aws_smithy_schema::serde::SerializableStruct for ListLayersOutput {
   59     70   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   60     71   
    fn serialize_members(
   61     72   
        &self,
   62     73   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   63     74   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   64     75   
        if let Some(ref val) = self.next_marker {
   65     76   
            ser.write_string(&LISTLAYERSOUTPUT_MEMBER_NEXT_MARKER, val)?;
   66     77   
        }
   67     78   
        if let Some(ref val) = self.layers {
   68     79   
            ser.write_list(
   69     80   
                &LISTLAYERSOUTPUT_MEMBER_LAYERS,
   70     81   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   71     82   
                    for item in val {
   72     83   
                        ser.write_struct(crate::types::LayersListItem::SCHEMA, item)?;
   73     84   
                    }
   74     85   
                    Ok(())
   75     86   
                },
   76     87   
            )?;
   77     88   
        }
   78     89   
        Ok(())
   79     90   
    }
   80     91   
}
   81     92   
impl ListLayersOutput {
   82     93   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   83         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   84         -
        deserializer: &mut D,
          94  +
    pub fn deserialize(
          95  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          96  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          97  +
        #[allow(unused_variables, unused_mut)]
          98  +
        let mut builder = Self::builder();
          99  +
        #[allow(
         100  +
            unused_variables,
         101  +
            unreachable_code,
         102  +
            clippy::single_match,
         103  +
            clippy::match_single_binding,
         104  +
            clippy::diverging_sub_expression
         105  +
        )]
         106  +
        deserializer.read_struct(&LISTLAYERSOUTPUT_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.layers = Some({
         113  +
                        let mut container = Vec::new();
         114  +
                        deser.read_list(member, &mut |deser| {
         115  +
                            container.push(crate::types::LayersListItem::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 ListLayersOutput {
         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],
   85    140   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   86    141   
        #[allow(unused_variables, unused_mut)]
   87    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  +
        }
   88    146   
        #[allow(
   89    147   
            unused_variables,
   90    148   
            unreachable_code,
   91    149   
            clippy::single_match,
   92    150   
            clippy::match_single_binding,
   93    151   
            clippy::diverging_sub_expression
   94    152   
        )]
   95         -
        deserializer.read_struct(&LISTLAYERSOUTPUT_SCHEMA, (), |_, member, deser| {
         153  +
        deserializer.read_struct(&LISTLAYERSOUTPUT_SCHEMA, &mut |member, deser| {
   96    154   
            match member.member_index() {
   97    155   
                Some(0) => {
   98    156   
                    builder.next_marker = Some(deser.read_string(member)?);
   99    157   
                }
  100    158   
                Some(1) => {
  101    159   
                    builder.layers = Some({
  102         -
                        let container = if let Some(cap) = deser.container_size() {
  103         -
                            Vec::with_capacity(cap)
  104         -
                        } else {
  105         -
                            Vec::new()
  106         -
                        };
  107         -
                        deser.read_list(member, container, |mut list, deser| {
  108         -
                            list.push(crate::types::LayersListItem::deserialize(deser)?);
  109         -
                            Ok(list)
  110         -
                        })?
         160  +
                        let mut container = Vec::new();
         161  +
                        deser.read_list(member, &mut |deser| {
         162  +
                            container.push(crate::types::LayersListItem::deserialize(deser)?);
         163  +
                            Ok(())
         164  +
                        })?;
         165  +
                        container
  111    166   
                    });
  112    167   
                }
  113    168   
                _ => {}
  114    169   
            }
  115    170   
            Ok(())
  116    171   
        })?;
  117    172   
        Ok(builder.build())
  118    173   
    }
  119    174   
}
  120    175   
impl ::aws_types::request_id::RequestId for ListLayersOutput {

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

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/list_provisioned_concurrency_configs/_list_provisioned_concurrency_configs_input.rs

@@ -29,29 +179,196 @@
   49     49   
    "com.amazonaws.lambda.synthetic",
   50     50   
    "ListProvisionedConcurrencyConfigsInput",
   51     51   
);
   52     52   
static LISTPROVISIONEDCONCURRENCYCONFIGSINPUT_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#ListProvisionedConcurrencyConfigsInput$FunctionName",
   55     55   
        "com.amazonaws.lambda.synthetic",
   56     56   
        "ListProvisionedConcurrencyConfigsInput",
   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 LISTPROVISIONEDCONCURRENCYCONFIGSINPUT_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#ListProvisionedConcurrencyConfigsInput$Marker",
   66     66   
        "com.amazonaws.lambda.synthetic",
   67     67   
        "ListProvisionedConcurrencyConfigsInput",
   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 LISTPROVISIONEDCONCURRENCYCONFIGSINPUT_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#ListProvisionedConcurrencyConfigsInput$MaxItems",
   77     77   
        "com.amazonaws.lambda.synthetic",
   78     78   
        "ListProvisionedConcurrencyConfigsInput",
   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 LISTPROVISIONEDCONCURRENCYCONFIGSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   86     86   
    LISTPROVISIONEDCONCURRENCYCONFIGSINPUT_SCHEMA_ID,
   87     87   
    ::aws_smithy_schema::ShapeType::Structure,
   88     88   
    &[
   89     89   
        &LISTPROVISIONEDCONCURRENCYCONFIGSINPUT_MEMBER_FUNCTION_NAME,
   90     90   
        &LISTPROVISIONEDCONCURRENCYCONFIGSINPUT_MEMBER_MARKER,
   91     91   
        &LISTPROVISIONEDCONCURRENCYCONFIGSINPUT_MEMBER_MAX_ITEMS,
   92     92   
    ],
   93         -
);
          93  +
)
          94  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          95  +
    "GET",
          96  +
    "/2019-09-30/functions/{FunctionName}/provisioned-concurrency?List=ALL",
          97  +
    None,
          98  +
));
   94     99   
impl ListProvisionedConcurrencyConfigsInput {
   95    100   
    /// The schema for this shape.
   96    101   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTPROVISIONEDCONCURRENCYCONFIGSINPUT_SCHEMA;
   97    102   
}
   98    103   
impl ::aws_smithy_schema::serde::SerializableStruct for ListProvisionedConcurrencyConfigsInput {
   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(&LISTPROVISIONEDCONCURRENCYCONFIGSINPUT_MEMBER_FUNCTION_NAME, val)?;
  106    111   
        }
  107    112   
        if let Some(ref val) = self.marker {
  108    113   
            ser.write_string(&LISTPROVISIONEDCONCURRENCYCONFIGSINPUT_MEMBER_MARKER, val)?;
  109    114   
        }
  110    115   
        if let Some(ref val) = self.max_items {
  111    116   
            ser.write_integer(&LISTPROVISIONEDCONCURRENCYCONFIGSINPUT_MEMBER_MAX_ITEMS, *val)?;
  112    117   
        }
  113    118   
        Ok(())
  114    119   
    }
  115    120   
}
  116    121   
impl ListProvisionedConcurrencyConfigsInput {
  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(&LISTPROVISIONEDCONCURRENCYCONFIGSINPUT_SCHEMA, (), |_, member, deser| {
         135  +
        deserializer.read_struct(&LISTPROVISIONEDCONCURRENCYCONFIGSINPUT_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 ListProvisionedConcurrencyConfigsInput {
         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 ListProvisionedConcurrencyConfigsInput {
  151    168   
    /// Creates a new builder-style object to manufacture [`ListProvisionedConcurrencyConfigsInput`](crate::operation::list_provisioned_concurrency_configs::ListProvisionedConcurrencyConfigsInput).
  152    169   
    pub fn builder() -> crate::operation::list_provisioned_concurrency_configs::builders::ListProvisionedConcurrencyConfigsInputBuilder {
  153    170   
        crate::operation::list_provisioned_concurrency_configs::builders::ListProvisionedConcurrencyConfigsInputBuilder::default()
  154    171   
    }
  155    172   
}
  156    173   
  157    174   
/// A builder for [`ListProvisionedConcurrencyConfigsInput`](crate::operation::list_provisioned_concurrency_configs::ListProvisionedConcurrencyConfigsInput).
  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_provisioned_concurrency_configs/_list_provisioned_concurrency_configs_output.rs

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