AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045

Files changed:

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/list_functions_by_code_signing_config.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 `ListFunctionsByCodeSigningConfig`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListFunctionsByCodeSigningConfig;
    6      6   
impl ListFunctionsByCodeSigningConfig {
    7      7   
    /// Creates a new `ListFunctionsByCodeSigningConfig`
    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_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::list_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigOutput::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_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::list_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::list_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +280,387 @@
  144    150   
                crate::operation::list_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigError,
  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 ListFunctionsByCodeSigningConfigResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListFunctionsByCodeSigningConfigResponseDeserializer {
  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_functions_by_code_signing_config::de_list_functions_by_code_signing_config_http_error(
  166         -
                status, headers, body,
  167         -
            )
         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_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigError::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_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigError::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,
         203  +
                                )
         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_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigError::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_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigError::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,
         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  +
                            }
         263  +
                        };
         264  +
                        tmp.meta = generic;
         265  +
                        if tmp.message.is_none() {
         266  +
                            tmp.message = _error_message;
         267  +
                        }
         268  +
                        tmp
         269  +
                    })
         270  +
                }
         271  +
                _ => crate::operation::list_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigError::generic(generic),
         272  +
            };
         273  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         274  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         275  +
            ))
  168    276   
        } else {
  169         -
            crate::protocol_serde::shape_list_functions_by_code_signing_config::de_list_functions_by_code_signing_config_http_response(
  170         -
                status, headers, body,
         277  +
            let protocol = _cfg
         278  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         279  +
                .expect("a SharedClientProtocol is required");
         280  +
            let mut deser = protocol
         281  +
                .deserialize_response(response, ListFunctionsByCodeSigningConfig::OUTPUT_SCHEMA, _cfg)
         282  +
                .map_err(|e| {
         283  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         284  +
                })?;
         285  +
            let body = response.body().bytes().expect("body loaded");
         286  +
            let output = crate::operation::list_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigOutput::deserialize_with_response(
         287  +
                &mut *deser,
         288  +
                response.headers(),
         289  +
                response.status().into(),
         290  +
                body,
  171    291   
            )
  172         -
        };
  173         -
        crate::protocol_serde::type_erase_result(parse_result)
         292  +
            .map_err(|e| {
         293  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         294  +
            })?;
         295  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         296  +
        }
  174    297   
    }
  175    298   
}
  176    299   
#[derive(Debug)]
  177    300   
struct ListFunctionsByCodeSigningConfigRequestSerializer;
  178    301   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListFunctionsByCodeSigningConfigRequestSerializer {
  179    302   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  180    303   
    fn serialize_input(
  181    304   
        &self,
  182    305   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  183    306   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  184    307   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  185    308   
        let input = input
  186    309   
            .downcast::<crate::operation::list_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigInput>()
  187    310   
            .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_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigInput,
  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.code_signing_config_arn;
  200         -
                let input_1 = input_1.as_ref().ok_or_else(|| {
  201         -
                    ::aws_smithy_types::error::operation::BuildError::missing_field("code_signing_config_arn", "cannot be empty or unset")
  202         -
                })?;
  203         -
                let code_signing_config_arn = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  204         -
                if code_signing_config_arn.is_empty() {
  205         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  206         -
                        "code_signing_config_arn",
  207         -
                        "cannot be empty or unset",
  208         -
                    ));
         311  +
        let protocol = _cfg
         312  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         313  +
            .expect("a SharedClientProtocol is required");
         314  +
        if protocol.supports_http_bindings() {
         315  +
            let mut request = protocol
         316  +
                .serialize_body(&input, ListFunctionsByCodeSigningConfig::INPUT_SCHEMA, "", _cfg)
         317  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         318  +
            {
         319  +
                let mut uri = "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions".to_string();
         320  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         321  +
                if let Some(ref val) = input.code_signing_config_arn {
         322  +
                    uri = uri.replace(
         323  +
                        "{CodeSigningConfigArn}",
         324  +
                        &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()),
         325  +
                    );
  209    326   
                }
  210         -
                ::std::write!(
  211         -
                    output,
  212         -
                    "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions",
  213         -
                    CodeSigningConfigArn = code_signing_config_arn
  214         -
                )
  215         -
                .expect("formatting should succeed");
  216         -
                ::std::result::Result::Ok(())
  217         -
            }
  218         -
            fn uri_query(
  219         -
                _input: &crate::operation::list_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigInput,
  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         -
                if let ::std::option::Option::Some(inner_2) = &_input.marker {
  224         -
                    {
  225         -
                        query.push_kv("Marker", &::aws_smithy_http::query::fmt_string(inner_2));
  226         -
                    }
         327  +
                if let Some(ref val) = input.marker {
         328  +
                    query_params.push(("Marker".to_string(), val.to_string()));
  227    329   
                }
  228         -
                if let ::std::option::Option::Some(inner_3) = &_input.max_items {
  229         -
                    {
  230         -
                        query.push_kv("MaxItems", ::aws_smithy_types::primitive::Encoder::from(*inner_3).encode());
  231         -
                    }
         330  +
                if let Some(ref val) = input.max_items {
         331  +
                    query_params.push(("MaxItems".to_string(), val.to_string()));
  232    332   
                }
  233         -
                ::std::result::Result::Ok(())
  234         -
            }
  235         -
            #[allow(clippy::unnecessary_wraps)]
  236         -
            fn update_http_builder(
  237         -
                input: &crate::operation::list_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigInput,
  238         -
                builder: ::http_1x::request::Builder,
  239         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  240         -
                let mut uri = ::std::string::String::new();
  241         -
                uri_base(input, &mut uri)?;
  242         -
                uri_query(input, &mut uri)?;
  243         -
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
         333  +
                if !query_params.is_empty() {
         334  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         335  +
                    let pairs: Vec<String> = query_params
         336  +
                        .iter()
         337  +
                        .map(|(k, v)| {
         338  +
                            format!(
         339  +
                                "{}={}",
         340  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         341  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         342  +
                            )
         343  +
                        })
         344  +
                        .collect();
         345  +
                    uri.push_str(&pairs.join("&"));
         346  +
                }
         347  +
                request.set_uri(uri.as_str()).expect("valid URI");
  244    348   
            }
  245         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  246         -
            builder
  247         -
        };
  248         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
  249    349   
  250         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         350  +
            return ::std::result::Result::Ok(request);
         351  +
        } else {
         352  +
            let mut request = protocol
         353  +
                .serialize_request(&input, ListFunctionsByCodeSigningConfig::INPUT_SCHEMA, "", _cfg)
         354  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         355  +
         356  +
            return ::std::result::Result::Ok(request);
         357  +
        }
  251    358   
    }
  252    359   
}
  253    360   
#[derive(Debug)]
  254    361   
struct ListFunctionsByCodeSigningConfigEndpointParamsInterceptor;
  255    362   
  256    363   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListFunctionsByCodeSigningConfigEndpointParamsInterceptor {
  257    364   
    fn name(&self) -> &'static str {
  258    365   
        "ListFunctionsByCodeSigningConfigEndpointParamsInterceptor"
  259    366   
    }
  260    367   

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

@@ -9,9 +159,176 @@
   29     29   
    "com.amazonaws.lambda.synthetic",
   30     30   
    "ListFunctionsByCodeSigningConfigInput",
   31     31   
);
   32     32   
static LISTFUNCTIONSBYCODESIGNINGCONFIGINPUT_MEMBER_CODE_SIGNING_CONFIG_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   33     33   
    ::aws_smithy_schema::ShapeId::from_static(
   34     34   
        "com.amazonaws.lambda.synthetic#ListFunctionsByCodeSigningConfigInput$CodeSigningConfigArn",
   35     35   
        "com.amazonaws.lambda.synthetic",
   36     36   
        "ListFunctionsByCodeSigningConfigInput",
   37     37   
    ),
   38     38   
    ::aws_smithy_schema::ShapeType::String,
   39         -
    "code_signing_config_arn",
          39  +
    "CodeSigningConfigArn",
   40     40   
    0,
   41     41   
)
   42     42   
.with_http_label();
   43     43   
static LISTFUNCTIONSBYCODESIGNINGCONFIGINPUT_MEMBER_MARKER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   44     44   
    ::aws_smithy_schema::ShapeId::from_static(
   45     45   
        "com.amazonaws.lambda.synthetic#ListFunctionsByCodeSigningConfigInput$Marker",
   46     46   
        "com.amazonaws.lambda.synthetic",
   47     47   
        "ListFunctionsByCodeSigningConfigInput",
   48     48   
    ),
   49     49   
    ::aws_smithy_schema::ShapeType::String,
   50         -
    "marker",
          50  +
    "Marker",
   51     51   
    1,
   52     52   
)
   53     53   
.with_http_query("Marker");
   54     54   
static LISTFUNCTIONSBYCODESIGNINGCONFIGINPUT_MEMBER_MAX_ITEMS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   55     55   
    ::aws_smithy_schema::ShapeId::from_static(
   56     56   
        "com.amazonaws.lambda.synthetic#ListFunctionsByCodeSigningConfigInput$MaxItems",
   57     57   
        "com.amazonaws.lambda.synthetic",
   58     58   
        "ListFunctionsByCodeSigningConfigInput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::Integer,
   61         -
    "max_items",
          61  +
    "MaxItems",
   62     62   
    2,
   63     63   
)
   64     64   
.with_http_query("MaxItems");
   65     65   
static LISTFUNCTIONSBYCODESIGNINGCONFIGINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   66     66   
    LISTFUNCTIONSBYCODESIGNINGCONFIGINPUT_SCHEMA_ID,
   67     67   
    ::aws_smithy_schema::ShapeType::Structure,
   68     68   
    &[
   69     69   
        &LISTFUNCTIONSBYCODESIGNINGCONFIGINPUT_MEMBER_CODE_SIGNING_CONFIG_ARN,
   70     70   
        &LISTFUNCTIONSBYCODESIGNINGCONFIGINPUT_MEMBER_MARKER,
   71     71   
        &LISTFUNCTIONSBYCODESIGNINGCONFIGINPUT_MEMBER_MAX_ITEMS,
   72     72   
    ],
   73         -
);
          73  +
)
          74  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          75  +
    "GET",
          76  +
    "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions",
          77  +
    None,
          78  +
));
   74     79   
impl ListFunctionsByCodeSigningConfigInput {
   75     80   
    /// The schema for this shape.
   76     81   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTFUNCTIONSBYCODESIGNINGCONFIGINPUT_SCHEMA;
   77     82   
}
   78     83   
impl ::aws_smithy_schema::serde::SerializableStruct for ListFunctionsByCodeSigningConfigInput {
   79     84   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   80     85   
    fn serialize_members(
   81     86   
        &self,
   82     87   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   83     88   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   84     89   
        if let Some(ref val) = self.code_signing_config_arn {
   85     90   
            ser.write_string(&LISTFUNCTIONSBYCODESIGNINGCONFIGINPUT_MEMBER_CODE_SIGNING_CONFIG_ARN, val)?;
   86     91   
        }
   87     92   
        if let Some(ref val) = self.marker {
   88     93   
            ser.write_string(&LISTFUNCTIONSBYCODESIGNINGCONFIGINPUT_MEMBER_MARKER, val)?;
   89     94   
        }
   90     95   
        if let Some(ref val) = self.max_items {
   91     96   
            ser.write_integer(&LISTFUNCTIONSBYCODESIGNINGCONFIGINPUT_MEMBER_MAX_ITEMS, *val)?;
   92     97   
        }
   93     98   
        Ok(())
   94     99   
    }
   95    100   
}
   96    101   
impl ListFunctionsByCodeSigningConfigInput {
   97    102   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   98         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   99         -
        deserializer: &mut D,
         103  +
    pub fn deserialize(
         104  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  100    105   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  101    106   
        #[allow(unused_variables, unused_mut)]
  102    107   
        let mut builder = Self::builder();
  103    108   
        #[allow(
  104    109   
            unused_variables,
  105    110   
            unreachable_code,
  106    111   
            clippy::single_match,
  107    112   
            clippy::match_single_binding,
  108    113   
            clippy::diverging_sub_expression
  109    114   
        )]
  110         -
        deserializer.read_struct(&LISTFUNCTIONSBYCODESIGNINGCONFIGINPUT_SCHEMA, (), |_, member, deser| {
         115  +
        deserializer.read_struct(&LISTFUNCTIONSBYCODESIGNINGCONFIGINPUT_SCHEMA, &mut |member, deser| {
  111    116   
            match member.member_index() {
  112    117   
                Some(0) => {
  113    118   
                    builder.code_signing_config_arn = Some(deser.read_string(member)?);
  114    119   
                }
  115    120   
                Some(1) => {
  116    121   
                    builder.marker = Some(deser.read_string(member)?);
  117    122   
                }
  118    123   
                Some(2) => {
  119    124   
                    builder.max_items = Some(deser.read_integer(member)?);
  120    125   
                }
  121    126   
                _ => {}
  122    127   
            }
  123    128   
            Ok(())
  124    129   
        })?;
         130  +
        builder.code_signing_config_arn = builder.code_signing_config_arn.or(Some(String::new()));
  125    131   
        builder
  126    132   
            .build()
  127    133   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  128    134   
    }
  129    135   
}
         136  +
impl ListFunctionsByCodeSigningConfigInput {
         137  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         138  +
    pub fn deserialize_with_response(
         139  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         140  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         141  +
        _status: u16,
         142  +
        _body: &[u8],
         143  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         144  +
        Self::deserialize(deserializer)
         145  +
    }
         146  +
}
  130    147   
impl ListFunctionsByCodeSigningConfigInput {
  131    148   
    /// Creates a new builder-style object to manufacture [`ListFunctionsByCodeSigningConfigInput`](crate::operation::list_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigInput).
  132    149   
    pub fn builder() -> crate::operation::list_functions_by_code_signing_config::builders::ListFunctionsByCodeSigningConfigInputBuilder {
  133    150   
        crate::operation::list_functions_by_code_signing_config::builders::ListFunctionsByCodeSigningConfigInputBuilder::default()
  134    151   
    }
  135    152   
}
  136    153   
  137    154   
/// A builder for [`ListFunctionsByCodeSigningConfigInput`](crate::operation::list_functions_by_code_signing_config::ListFunctionsByCodeSigningConfigInput).
  138    155   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  139    156   
#[non_exhaustive]

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,400 @@
  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)
         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  +
                        }
         274  +
                    };
         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  +
            ))
  160    286   
        } else {
  161         -
            crate::protocol_serde::shape_list_layer_versions::de_list_layer_versions_http_response(status, headers, body)
  162         -
        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         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         -
                    ));
         321  +
        let protocol = _cfg
         322  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         323  +
            .expect("a SharedClientProtocol is required");
         324  +
        if protocol.supports_http_bindings() {
         325  +
            let mut request = protocol
         326  +
                .serialize_body(&input, ListLayerVersions::INPUT_SCHEMA, "", _cfg)
         327  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         328  +
            {
         329  +
                let mut uri = "/2018-10-31/layers/{LayerName}/versions".to_string();
         330  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         331  +
                if let Some(ref val) = input.compatible_runtime {
         332  +
                    query_params.push(("CompatibleRuntime".to_string(), val.as_str().to_string()));
  199    333   
                }
  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         -
                    }
         334  +
                if let Some(ref val) = input.layer_name {
         335  +
                    uri = uri.replace("{LayerName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  212    336   
                }
  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         -
                    }
         337  +
                if let Some(ref val) = input.marker {
         338  +
                    query_params.push(("Marker".to_string(), val.to_string()));
  217    339   
                }
  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         -
                    }
         340  +
                if let Some(ref val) = input.max_items {
         341  +
                    query_params.push(("MaxItems".to_string(), val.to_string()));
  222    342   
                }
  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         -
                    }
         343  +
                if let Some(ref val) = input.compatible_architecture {
         344  +
                    query_params.push(("CompatibleArchitecture".to_string(), val.as_str().to_string()));
  227    345   
                }
  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))
         346  +
                if !query_params.is_empty() {
         347  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         348  +
                    let pairs: Vec<String> = query_params
         349  +
                        .iter()
         350  +
                        .map(|(k, v)| {
         351  +
                            format!(
         352  +
                                "{}={}",
         353  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         354  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         355  +
                            )
         356  +
                        })
         357  +
                        .collect();
         358  +
                    uri.push_str(&pairs.join("&"));
         359  +
                }
         360  +
                request.set_uri(uri.as_str()).expect("valid URI");
  239    361   
            }
  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("");
  244    362   
  245         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         363  +
            return ::std::result::Result::Ok(request);
         364  +
        } else {
         365  +
            let mut request = protocol
         366  +
                .serialize_request(&input, ListLayerVersions::INPUT_SCHEMA, "", _cfg)
         367  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         368  +
         369  +
            return ::std::result::Result::Ok(request);
         370  +
        }
  246    371   
    }
  247    372   
}
  248    373   
#[derive(Debug)]
  249    374   
struct ListLayerVersionsEndpointParamsInterceptor;
  250    375   
  251    376   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListLayerVersionsEndpointParamsInterceptor {
  252    377   
    fn name(&self) -> &'static str {
  253    378   
        "ListLayerVersionsEndpointParamsInterceptor"
  254    379   
    }
  255    380   

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| {
         107  +
            match member.member_index() {
         108  +
                Some(0) => {
         109  +
                    builder.next_marker = Some(deser.read_string(member)?);
         110  +
                }
         111  +
                Some(1) => {
         112  +
                    builder.layer_versions = Some({
         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| {
   99    154   
            match member.member_index() {
  100    155   
                Some(0) => {
  101    156   
                    builder.next_marker = Some(deser.read_string(member)?);
  102    157   
                }
  103    158   
                Some(1) => {
  104    159   
                    builder.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         -
                        })?
         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,364 @@
  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)
         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  +
                        }
         197  +
                    };
         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  +
            ))
  157    257   
        } else {
  158         -
            crate::protocol_serde::shape_list_layers::de_list_layers_http_response(status, headers, body)
  159         -
        };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         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         -
                    }
         288  +
        let protocol = _cfg
         289  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         290  +
            .expect("a SharedClientProtocol is required");
         291  +
        if protocol.supports_http_bindings() {
         292  +
            let mut request = protocol
         293  +
                .serialize_body(&input, ListLayers::INPUT_SCHEMA, "", _cfg)
         294  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         295  +
            {
         296  +
                let mut uri = "/2018-10-31/layers".to_string();
         297  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         298  +
                if let Some(ref val) = input.compatible_runtime {
         299  +
                    query_params.push(("CompatibleRuntime".to_string(), val.as_str().to_string()));
  196    300   
                }
  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         -
                    }
         301  +
                if let Some(ref val) = input.marker {
         302  +
                    query_params.push(("Marker".to_string(), val.to_string()));
  201    303   
                }
  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         -
                    }
         304  +
                if let Some(ref val) = input.max_items {
         305  +
                    query_params.push(("MaxItems".to_string(), val.to_string()));
  206    306   
                }
  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         -
                    }
         307  +
                if let Some(ref val) = input.compatible_architecture {
         308  +
                    query_params.push(("CompatibleArchitecture".to_string(), val.as_str().to_string()));
  211    309   
                }
  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))
         310  +
                if !query_params.is_empty() {
         311  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         312  +
                    let pairs: Vec<String> = query_params
         313  +
                        .iter()
         314  +
                        .map(|(k, v)| {
         315  +
                            format!(
         316  +
                                "{}={}",
         317  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         318  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         319  +
                            )
         320  +
                        })
         321  +
                        .collect();
         322  +
                    uri.push_str(&pairs.join("&"));
         323  +
                }
         324  +
                request.set_uri(uri.as_str()).expect("valid URI");
  223    325   
            }
  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("");
  228    326   
  229         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         327  +
            return ::std::result::Result::Ok(request);
         328  +
        } else {
         329  +
            let mut request = protocol
         330  +
                .serialize_request(&input, ListLayers::INPUT_SCHEMA, "", _cfg)
         331  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         332  +
         333  +
            return ::std::result::Result::Ok(request);
         334  +
        }
  230    335   
    }
  231    336   
}
  232    337   
#[derive(Debug)]
  233    338   
struct ListLayersEndpointParamsInterceptor;
  234    339   
  235    340   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListLayersEndpointParamsInterceptor {
  236    341   
    fn name(&self) -> &'static str {
  237    342   
        "ListLayersEndpointParamsInterceptor"
  238    343   
    }
  239    344