AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c

Files changed:

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,360 @@
  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         -
                    ));
  199         -
                }
  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         -
                    }
  212         -
                }
  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         -
                    }
  217         -
                }
  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))
  229         -
            }
  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("");
         323  +
        let protocol = _cfg
         324  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         325  +
            .expect("a SharedClientProtocol is required");
         326  +
        let mut request = protocol
         327  +
            .serialize_request(&input, ListFunctionUrlConfigs::INPUT_SCHEMA, "", _cfg)
         328  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  234    329   
  235         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         330  +
        return ::std::result::Result::Ok(request);
  236    331   
    }
  237    332   
}
  238    333   
#[derive(Debug)]
  239    334   
struct ListFunctionUrlConfigsEndpointParamsInterceptor;
  240    335   
  241    336   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListFunctionUrlConfigsEndpointParamsInterceptor {
  242    337   
    fn name(&self) -> &'static str {
  243    338   
        "ListFunctionUrlConfigsEndpointParamsInterceptor"
  244    339   
    }
  245    340   

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,328 @@
  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         -
                    }
  199         -
                }
  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         -
                    }
  204         -
                }
  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         -
                    }
  209         -
                }
  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         -
                    }
  214         -
                }
  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))
  226         -
            }
  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("");
         291  +
        let protocol = _cfg
         292  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         293  +
            .expect("a SharedClientProtocol is required");
         294  +
        let mut request = protocol
         295  +
            .serialize_request(&input, ListFunctions::INPUT_SCHEMA, "", _cfg)
         296  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  231    297   
  232         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         298  +
        return ::std::result::Result::Ok(request);
  233    299   
    }
  234    300   
}
  235    301   
#[derive(Debug)]
  236    302   
struct ListFunctionsEndpointParamsInterceptor;
  237    303   
  238    304   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListFunctionsEndpointParamsInterceptor {
  239    305   
    fn name(&self) -> &'static str {
  240    306   
        "ListFunctionsEndpointParamsInterceptor"
  241    307   
    }
  242    308   

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

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

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

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

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

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

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

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