AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12

Files changed:

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

@@ -67,67 +235,251 @@
   87     87   
    "com.amazonaws.lambda.synthetic",
   88     88   
    "ListEventSourceMappingsInput",
   89     89   
);
   90     90   
static LISTEVENTSOURCEMAPPINGSINPUT_MEMBER_EVENT_SOURCE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static(
   92     92   
        "com.amazonaws.lambda.synthetic#ListEventSourceMappingsInput$EventSourceArn",
   93     93   
        "com.amazonaws.lambda.synthetic",
   94     94   
        "ListEventSourceMappingsInput",
   95     95   
    ),
   96     96   
    ::aws_smithy_schema::ShapeType::String,
   97         -
    "event_source_arn",
          97  +
    "EventSourceArn",
   98     98   
    0,
   99     99   
)
  100    100   
.with_http_query("EventSourceArn");
  101    101   
static LISTEVENTSOURCEMAPPINGSINPUT_MEMBER_FUNCTION_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  102    102   
    ::aws_smithy_schema::ShapeId::from_static(
  103    103   
        "com.amazonaws.lambda.synthetic#ListEventSourceMappingsInput$FunctionName",
  104    104   
        "com.amazonaws.lambda.synthetic",
  105    105   
        "ListEventSourceMappingsInput",
  106    106   
    ),
  107    107   
    ::aws_smithy_schema::ShapeType::String,
  108         -
    "function_name",
         108  +
    "FunctionName",
  109    109   
    1,
  110    110   
)
  111    111   
.with_http_query("FunctionName");
  112    112   
static LISTEVENTSOURCEMAPPINGSINPUT_MEMBER_MARKER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  113    113   
    ::aws_smithy_schema::ShapeId::from_static(
  114    114   
        "com.amazonaws.lambda.synthetic#ListEventSourceMappingsInput$Marker",
  115    115   
        "com.amazonaws.lambda.synthetic",
  116    116   
        "ListEventSourceMappingsInput",
  117    117   
    ),
  118    118   
    ::aws_smithy_schema::ShapeType::String,
  119         -
    "marker",
         119  +
    "Marker",
  120    120   
    2,
  121    121   
)
  122    122   
.with_http_query("Marker");
  123    123   
static LISTEVENTSOURCEMAPPINGSINPUT_MEMBER_MAX_ITEMS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  124    124   
    ::aws_smithy_schema::ShapeId::from_static(
  125    125   
        "com.amazonaws.lambda.synthetic#ListEventSourceMappingsInput$MaxItems",
  126    126   
        "com.amazonaws.lambda.synthetic",
  127    127   
        "ListEventSourceMappingsInput",
  128    128   
    ),
  129    129   
    ::aws_smithy_schema::ShapeType::Integer,
  130         -
    "max_items",
         130  +
    "MaxItems",
  131    131   
    3,
  132    132   
)
  133    133   
.with_http_query("MaxItems");
  134    134   
static LISTEVENTSOURCEMAPPINGSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  135    135   
    LISTEVENTSOURCEMAPPINGSINPUT_SCHEMA_ID,
  136    136   
    ::aws_smithy_schema::ShapeType::Structure,
  137    137   
    &[
  138    138   
        &LISTEVENTSOURCEMAPPINGSINPUT_MEMBER_EVENT_SOURCE_ARN,
  139    139   
        &LISTEVENTSOURCEMAPPINGSINPUT_MEMBER_FUNCTION_NAME,
  140    140   
        &LISTEVENTSOURCEMAPPINGSINPUT_MEMBER_MARKER,
  141    141   
        &LISTEVENTSOURCEMAPPINGSINPUT_MEMBER_MAX_ITEMS,
  142    142   
    ],
  143         -
);
         143  +
)
         144  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
         145  +
    "GET",
         146  +
    "/2015-03-31/event-source-mappings",
         147  +
    None,
         148  +
));
  144    149   
impl ListEventSourceMappingsInput {
  145    150   
    /// The schema for this shape.
  146    151   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTEVENTSOURCEMAPPINGSINPUT_SCHEMA;
  147    152   
}
  148    153   
impl ::aws_smithy_schema::serde::SerializableStruct for ListEventSourceMappingsInput {
  149    154   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  150    155   
    fn serialize_members(
  151    156   
        &self,
  152    157   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  153    158   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  154    159   
        if let Some(ref val) = self.event_source_arn {
  155    160   
            ser.write_string(&LISTEVENTSOURCEMAPPINGSINPUT_MEMBER_EVENT_SOURCE_ARN, val)?;
  156    161   
        }
  157    162   
        if let Some(ref val) = self.function_name {
  158    163   
            ser.write_string(&LISTEVENTSOURCEMAPPINGSINPUT_MEMBER_FUNCTION_NAME, val)?;
  159    164   
        }
  160    165   
        if let Some(ref val) = self.marker {
  161    166   
            ser.write_string(&LISTEVENTSOURCEMAPPINGSINPUT_MEMBER_MARKER, val)?;
  162    167   
        }
  163    168   
        if let Some(ref val) = self.max_items {
  164    169   
            ser.write_integer(&LISTEVENTSOURCEMAPPINGSINPUT_MEMBER_MAX_ITEMS, *val)?;
  165    170   
        }
  166    171   
        Ok(())
  167    172   
    }
  168    173   
}
  169    174   
impl ListEventSourceMappingsInput {
  170    175   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  171         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  172         -
        deserializer: &mut D,
         176  +
    pub fn deserialize(
         177  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  173    178   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  174    179   
        #[allow(unused_variables, unused_mut)]
  175    180   
        let mut builder = Self::builder();
  176    181   
        #[allow(
  177    182   
            unused_variables,
  178    183   
            unreachable_code,
  179    184   
            clippy::single_match,
  180    185   
            clippy::match_single_binding,
  181    186   
            clippy::diverging_sub_expression
  182    187   
        )]
  183         -
        deserializer.read_struct(&LISTEVENTSOURCEMAPPINGSINPUT_SCHEMA, (), |_, member, deser| {
         188  +
        deserializer.read_struct(&LISTEVENTSOURCEMAPPINGSINPUT_SCHEMA, &mut |member, deser| {
  184    189   
            match member.member_index() {
  185    190   
                Some(0) => {
  186    191   
                    builder.event_source_arn = Some(deser.read_string(member)?);
  187    192   
                }
  188    193   
                Some(1) => {
  189    194   
                    builder.function_name = Some(deser.read_string(member)?);
  190    195   
                }
  191    196   
                Some(2) => {
  192    197   
                    builder.marker = Some(deser.read_string(member)?);
  193    198   
                }
  194    199   
                Some(3) => {
  195    200   
                    builder.max_items = Some(deser.read_integer(member)?);
  196    201   
                }
  197    202   
                _ => {}
  198    203   
            }
  199    204   
            Ok(())
  200    205   
        })?;
  201    206   
        builder
  202    207   
            .build()
  203    208   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  204    209   
    }
  205    210   
}
         211  +
impl ListEventSourceMappingsInput {
         212  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         213  +
    pub fn deserialize_with_response(
         214  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         215  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         216  +
        _status: u16,
         217  +
        _body: &[u8],
         218  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         219  +
        Self::deserialize(deserializer)
         220  +
    }
         221  +
}
  206    222   
impl ListEventSourceMappingsInput {
  207    223   
    /// Creates a new builder-style object to manufacture [`ListEventSourceMappingsInput`](crate::operation::list_event_source_mappings::ListEventSourceMappingsInput).
  208    224   
    pub fn builder() -> crate::operation::list_event_source_mappings::builders::ListEventSourceMappingsInputBuilder {
  209    225   
        crate::operation::list_event_source_mappings::builders::ListEventSourceMappingsInputBuilder::default()
  210    226   
    }
  211    227   
}
  212    228   
  213    229   
/// A builder for [`ListEventSourceMappingsInput`](crate::operation::list_event_source_mappings::ListEventSourceMappingsInput).
  214    230   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  215    231   
#[non_exhaustive]

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

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

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

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

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

@@ -7,7 +141,193 @@
   27     27   
    "ListFunctionEventInvokeConfigsOutput",
   28     28   
);
   29     29   
static LISTFUNCTIONEVENTINVOKECONFIGSOUTPUT_MEMBER_FUNCTION_EVENT_INVOKE_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#ListFunctionEventInvokeConfigsOutput$FunctionEventInvokeConfigs",
   33     33   
            "com.amazonaws.lambda.synthetic",
   34     34   
            "ListFunctionEventInvokeConfigsOutput",
   35     35   
        ),
   36     36   
        ::aws_smithy_schema::ShapeType::List,
   37         -
        "function_event_invoke_configs",
          37  +
        "FunctionEventInvokeConfigs",
   38     38   
        0,
   39     39   
    );
   40     40   
static LISTFUNCTIONEVENTINVOKECONFIGSOUTPUT_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#ListFunctionEventInvokeConfigsOutput$NextMarker",
   43     43   
        "com.amazonaws.lambda.synthetic",
   44     44   
        "ListFunctionEventInvokeConfigsOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::String,
   47         -
    "next_marker",
          47  +
    "NextMarker",
   48     48   
    1,
   49     49   
);
          50  +
static LISTFUNCTIONEVENTINVOKECONFIGSOUTPUT_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 LISTFUNCTIONEVENTINVOKECONFIGSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   51     58   
    LISTFUNCTIONEVENTINVOKECONFIGSOUTPUT_SCHEMA_ID,
   52     59   
    ::aws_smithy_schema::ShapeType::Structure,
   53     60   
    &[
   54     61   
        &LISTFUNCTIONEVENTINVOKECONFIGSOUTPUT_MEMBER_FUNCTION_EVENT_INVOKE_CONFIGS,
   55     62   
        &LISTFUNCTIONEVENTINVOKECONFIGSOUTPUT_MEMBER_NEXT_MARKER,
          63  +
        &LISTFUNCTIONEVENTINVOKECONFIGSOUTPUT_MEMBER__REQUEST_ID,
   56     64   
    ],
   57     65   
);
   58     66   
impl ListFunctionEventInvokeConfigsOutput {
   59     67   
    /// The schema for this shape.
   60     68   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTFUNCTIONEVENTINVOKECONFIGSOUTPUT_SCHEMA;
   61     69   
}
   62     70   
impl ::aws_smithy_schema::serde::SerializableStruct for ListFunctionEventInvokeConfigsOutput {
   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.function_event_invoke_configs {
   69     77   
            ser.write_list(
   70     78   
                &LISTFUNCTIONEVENTINVOKECONFIGSOUTPUT_MEMBER_FUNCTION_EVENT_INVOKE_CONFIGS,
   71     79   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   72     80   
                    for item in val {
   73     81   
                        ser.write_struct(crate::types::FunctionEventInvokeConfig::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(&LISTFUNCTIONEVENTINVOKECONFIGSOUTPUT_MEMBER_NEXT_MARKER, val)?;
   81     89   
        }
   82     90   
        Ok(())
   83     91   
    }
   84     92   
}
   85     93   
impl ListFunctionEventInvokeConfigsOutput {
   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(&LISTFUNCTIONEVENTINVOKECONFIGSOUTPUT_SCHEMA, (), |_, member, deser| {
         107  +
        deserializer.read_struct(&LISTFUNCTIONEVENTINVOKECONFIGSOUTPUT_SCHEMA, &mut |member, deser| {
         108  +
            match member.member_index() {
         109  +
                Some(0) => {
         110  +
                    builder.function_event_invoke_configs = Some({
         111  +
                        let mut container = Vec::new();
         112  +
                        deser.read_list(member, &mut |deser| {
         113  +
                            container.push(crate::types::FunctionEventInvokeConfig::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 ListFunctionEventInvokeConfigsOutput {
         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(&LISTFUNCTIONEVENTINVOKECONFIGSOUTPUT_SCHEMA, &mut |member, deser| {
  100    155   
            match member.member_index() {
  101    156   
                Some(0) => {
  102    157   
                    builder.function_event_invoke_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::FunctionEventInvokeConfig::deserialize(deser)?);
  110         -
                            Ok(list)
  111         -
                        })?
         158  +
                        let mut container = Vec::new();
         159  +
                        deser.read_list(member, &mut |deser| {
         160  +
                            container.push(crate::types::FunctionEventInvokeConfig::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_function_url_configs.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 `ListFunctionUrlConfigs`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListFunctionUrlConfigs;
    6      6   
impl ListFunctionUrlConfigs {
    7      7   
    /// Creates a new `ListFunctionUrlConfigs`
    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_function_url_configs::ListFunctionUrlConfigsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_function_url_configs::ListFunctionUrlConfigsOutput::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_function_url_configs::ListFunctionUrlConfigsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_function_url_configs::ListFunctionUrlConfigsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_function_url_configs::ListFunctionUrlConfigsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +265,396 @@
  138    142   
                crate::operation::list_function_url_configs::ListFunctionUrlConfigsError,
  139    143   
            >::new());
  140    144   
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct ListFunctionUrlConfigsResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListFunctionUrlConfigsResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153         -
        let headers = response.headers();
  154         -
        let body = response.body().bytes().expect("body loaded");
  155    158   
        #[allow(unused_mut)]
  156    159   
        let mut force_error = false;
  157    160   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158         -
        let parse_result = if !success && status != 200 || force_error {
  159         -
            crate::protocol_serde::shape_list_function_url_configs::de_list_function_url_configs_http_error(status, headers, body)
         161  +
        if !success && status != 200 || force_error {
         162  +
            let headers = response.headers();
         163  +
            let body = response.body().bytes().expect("body loaded");
         164  +
            #[allow(unused_mut)]
         165  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         166  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         167  +
            })?;
         168  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         169  +
            let generic = generic_builder.build();
         170  +
            let error_code = match generic.code() {
         171  +
                ::std::option::Option::Some(code) => code,
         172  +
                ::std::option::Option::None => {
         173  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         174  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         175  +
                            crate::operation::list_function_url_configs::ListFunctionUrlConfigsError::unhandled(generic),
         176  +
                        ),
         177  +
                    ))
         178  +
                }
         179  +
            };
         180  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         181  +
            let protocol = _cfg
         182  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         183  +
                .expect("a SharedClientProtocol is required");
         184  +
            let err = match error_code {
         185  +
                "InvalidParameterValueException" => {
         186  +
                    crate::operation::list_function_url_configs::ListFunctionUrlConfigsError::InvalidParameterValueException({
         187  +
                        let mut tmp = match protocol
         188  +
                            .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         189  +
                            .and_then(|mut deser| {
         190  +
                                crate::types::error::InvalidParameterValueException::deserialize_with_response(
         191  +
                                    &mut *deser,
         192  +
                                    response.headers(),
         193  +
                                    response.status().into(),
         194  +
                                    body,
         195  +
                                )
         196  +
                            }) {
         197  +
                            ::std::result::Result::Ok(val) => val,
         198  +
                            ::std::result::Result::Err(e) => {
         199  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         200  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         201  +
                                ))
         202  +
                            }
         203  +
                        };
         204  +
                        tmp.meta = generic;
         205  +
                        if tmp.message.is_none() {
         206  +
                            tmp.message = _error_message;
         207  +
                        }
         208  +
                        tmp
         209  +
                    })
         210  +
                }
         211  +
                "ResourceNotFoundException" => crate::operation::list_function_url_configs::ListFunctionUrlConfigsError::ResourceNotFoundException({
         212  +
                    let mut tmp = match protocol
         213  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         214  +
                        .and_then(|mut deser| {
         215  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         216  +
                                &mut *deser,
         217  +
                                response.headers(),
         218  +
                                response.status().into(),
         219  +
                                body,
         220  +
                            )
         221  +
                        }) {
         222  +
                        ::std::result::Result::Ok(val) => val,
         223  +
                        ::std::result::Result::Err(e) => {
         224  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         225  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         226  +
                            ))
         227  +
                        }
         228  +
                    };
         229  +
                    tmp.meta = generic;
         230  +
                    if tmp.message.is_none() {
         231  +
                        tmp.message = _error_message;
         232  +
                    }
         233  +
                    tmp
         234  +
                }),
         235  +
                "ServiceException" => crate::operation::list_function_url_configs::ListFunctionUrlConfigsError::ServiceException({
         236  +
                    let mut tmp = match protocol
         237  +
                        .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         238  +
                        .and_then(|mut deser| {
         239  +
                            crate::types::error::ServiceException::deserialize_with_response(
         240  +
                                &mut *deser,
         241  +
                                response.headers(),
         242  +
                                response.status().into(),
         243  +
                                body,
         244  +
                            )
         245  +
                        }) {
         246  +
                        ::std::result::Result::Ok(val) => val,
         247  +
                        ::std::result::Result::Err(e) => {
         248  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         249  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         250  +
                            ))
         251  +
                        }
         252  +
                    };
         253  +
                    tmp.meta = generic;
         254  +
                    if tmp.message.is_none() {
         255  +
                        tmp.message = _error_message;
         256  +
                    }
         257  +
                    tmp
         258  +
                }),
         259  +
                "TooManyRequestsException" => crate::operation::list_function_url_configs::ListFunctionUrlConfigsError::TooManyRequestsException({
         260  +
                    let mut tmp = match protocol
         261  +
                        .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         262  +
                        .and_then(|mut deser| {
         263  +
                            crate::types::error::TooManyRequestsException::deserialize_with_response(
         264  +
                                &mut *deser,
         265  +
                                response.headers(),
         266  +
                                response.status().into(),
         267  +
                                body,
         268  +
                            )
         269  +
                        }) {
         270  +
                        ::std::result::Result::Ok(val) => val,
         271  +
                        ::std::result::Result::Err(e) => {
         272  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         273  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         274  +
                            ))
         275  +
                        }
         276  +
                    };
         277  +
                    tmp.meta = generic;
         278  +
                    if tmp.message.is_none() {
         279  +
                        tmp.message = _error_message;
         280  +
                    }
         281  +
                    tmp
         282  +
                }),
         283  +
                _ => crate::operation::list_function_url_configs::ListFunctionUrlConfigsError::generic(generic),
         284  +
            };
         285  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         286  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         287  +
            ))
  160    288   
        } else {
  161         -
            crate::protocol_serde::shape_list_function_url_configs::de_list_function_url_configs_http_response(status, headers, body)
  162         -
        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         289  +
            let protocol = _cfg
         290  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         291  +
                .expect("a SharedClientProtocol is required");
         292  +
            let mut deser = protocol
         293  +
                .deserialize_response(response, ListFunctionUrlConfigs::OUTPUT_SCHEMA, _cfg)
         294  +
                .map_err(|e| {
         295  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         296  +
                })?;
         297  +
            let body = response.body().bytes().expect("body loaded");
         298  +
            let output = crate::operation::list_function_url_configs::ListFunctionUrlConfigsOutput::deserialize_with_response(
         299  +
                &mut *deser,
         300  +
                response.headers(),
         301  +
                response.status().into(),
         302  +
                body,
         303  +
            )
         304  +
            .map_err(|e| {
         305  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         306  +
            })?;
         307  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         308  +
        }
  164    309   
    }
  165    310   
}
  166    311   
#[derive(Debug)]
  167    312   
struct ListFunctionUrlConfigsRequestSerializer;
  168    313   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListFunctionUrlConfigsRequestSerializer {
  169    314   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    315   
    fn serialize_input(
  171    316   
        &self,
  172    317   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    318   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    319   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    320   
        let input = input
  176    321   
            .downcast::<crate::operation::list_function_url_configs::ListFunctionUrlConfigsInput>()
  177    322   
            .expect("correct type");
  178         -
        let _header_serialization_settings = _cfg
  179         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  180         -
            .cloned()
  181         -
            .unwrap_or_default();
  182         -
        let mut request_builder = {
  183         -
            #[allow(clippy::uninlined_format_args)]
  184         -
            fn uri_base(
  185         -
                _input: &crate::operation::list_function_url_configs::ListFunctionUrlConfigsInput,
  186         -
                output: &mut ::std::string::String,
  187         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188         -
                use ::std::fmt::Write as _;
  189         -
                let input_1 = &_input.function_name;
  190         -
                let input_1 = input_1
  191         -
                    .as_ref()
  192         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("function_name", "cannot be empty or unset"))?;
  193         -
                let function_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  194         -
                if function_name.is_empty() {
  195         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  196         -
                        "function_name",
  197         -
                        "cannot be empty or unset",
  198         -
                    ));
         323  +
        let protocol = _cfg
         324  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         325  +
            .expect("a SharedClientProtocol is required");
         326  +
        if protocol.supports_http_bindings() {
         327  +
            let mut request = protocol
         328  +
                .serialize_body(&input, ListFunctionUrlConfigs::INPUT_SCHEMA, "", _cfg)
         329  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         330  +
            {
         331  +
                let mut uri = "/2021-10-31/functions/{FunctionName}/urls".to_string();
         332  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         333  +
                if let Some(ref val) = input.function_name {
         334  +
                    uri = uri.replace("{FunctionName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  199    335   
                }
  200         -
                ::std::write!(output, "/2021-10-31/functions/{FunctionName}/urls", FunctionName = function_name).expect("formatting should succeed");
  201         -
                ::std::result::Result::Ok(())
  202         -
            }
  203         -
            fn uri_query(
  204         -
                _input: &crate::operation::list_function_url_configs::ListFunctionUrlConfigsInput,
  205         -
                mut output: &mut ::std::string::String,
  206         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  207         -
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  208         -
                if let ::std::option::Option::Some(inner_2) = &_input.marker {
  209         -
                    {
  210         -
                        query.push_kv("Marker", &::aws_smithy_http::query::fmt_string(inner_2));
  211         -
                    }
         336  +
                if let Some(ref val) = input.marker {
         337  +
                    query_params.push(("Marker".to_string(), val.to_string()));
  212    338   
                }
  213         -
                if let ::std::option::Option::Some(inner_3) = &_input.max_items {
  214         -
                    {
  215         -
                        query.push_kv("MaxItems", ::aws_smithy_types::primitive::Encoder::from(*inner_3).encode());
  216         -
                    }
         339  +
                if let Some(ref val) = input.max_items {
         340  +
                    query_params.push(("MaxItems".to_string(), val.to_string()));
  217    341   
                }
  218         -
                ::std::result::Result::Ok(())
  219         -
            }
  220         -
            #[allow(clippy::unnecessary_wraps)]
  221         -
            fn update_http_builder(
  222         -
                input: &crate::operation::list_function_url_configs::ListFunctionUrlConfigsInput,
  223         -
                builder: ::http_1x::request::Builder,
  224         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  225         -
                let mut uri = ::std::string::String::new();
  226         -
                uri_base(input, &mut uri)?;
  227         -
                uri_query(input, &mut uri)?;
  228         -
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
         342  +
                if !query_params.is_empty() {
         343  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         344  +
                    let pairs: Vec<String> = query_params
         345  +
                        .iter()
         346  +
                        .map(|(k, v)| {
         347  +
                            format!(
         348  +
                                "{}={}",
         349  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         350  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         351  +
                            )
         352  +
                        })
         353  +
                        .collect();
         354  +
                    uri.push_str(&pairs.join("&"));
         355  +
                }
         356  +
                request.set_uri(uri.as_str()).expect("valid URI");
  229    357   
            }
  230         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  231         -
            builder
  232         -
        };
  233         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
  234    358   
  235         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         359  +
            return ::std::result::Result::Ok(request);
         360  +
        } else {
         361  +
            let mut request = protocol
         362  +
                .serialize_request(&input, ListFunctionUrlConfigs::INPUT_SCHEMA, "", _cfg)
         363  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         364  +
         365  +
            return ::std::result::Result::Ok(request);
         366  +
        }
  236    367   
    }
  237    368   
}
  238    369   
#[derive(Debug)]
  239    370   
struct ListFunctionUrlConfigsEndpointParamsInterceptor;
  240    371   
  241    372   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListFunctionUrlConfigsEndpointParamsInterceptor {
  242    373   
    fn name(&self) -> &'static str {
  243    374   
        "ListFunctionUrlConfigsEndpointParamsInterceptor"
  244    375   
    }
  245    376   

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

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

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

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