AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36

Files changed:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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