AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406

Files changed:

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/put_function_event_invoke_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 `PutFunctionEventInvokeConfig`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutFunctionEventInvokeConfig;
    6      6   
impl PutFunctionEventInvokeConfig {
    7      7   
    /// Creates a new `PutFunctionEventInvokeConfig`
    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::put_function_event_invoke_config::PutFunctionEventInvokeConfigInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigOutput::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::put_function_event_invoke_config::PutFunctionEventInvokeConfigInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +277,398 @@
  144    150   
                crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigError,
  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 PutFunctionEventInvokeConfigResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutFunctionEventInvokeConfigResponseDeserializer {
  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_put_function_event_invoke_config::de_put_function_event_invoke_config_http_error(status, headers, body)
         169  +
        if !success && status != 200 || force_error {
         170  +
            let headers = response.headers();
         171  +
            let body = response.body().bytes().expect("body loaded");
         172  +
            #[allow(unused_mut)]
         173  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         174  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         175  +
            })?;
         176  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         177  +
            let generic = generic_builder.build();
         178  +
            let error_code = match generic.code() {
         179  +
                ::std::option::Option::Some(code) => code,
         180  +
                ::std::option::Option::None => {
         181  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         182  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         183  +
                            crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigError::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::put_function_event_invoke_config::PutFunctionEventInvokeConfigError::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  +
                "ResourceConflictException" => {
         220  +
                    crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigError::ResourceConflictException({
         221  +
                        let mut tmp = match protocol
         222  +
                            .deserialize_response(response, crate::types::error::ResourceConflictException::SCHEMA, _cfg)
         223  +
                            .and_then(|mut deser| {
         224  +
                                crate::types::error::ResourceConflictException::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  +
                "ResourceNotFoundException" => {
         246  +
                    crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigError::ResourceNotFoundException({
         247  +
                        let mut tmp = match protocol
         248  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         249  +
                            .and_then(|mut deser| {
         250  +
                                crate::types::error::ResourceNotFoundException::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  +
                "ServiceException" => crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigError::ServiceException({
         272  +
                    let mut tmp = match protocol
         273  +
                        .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         274  +
                        .and_then(|mut deser| {
         275  +
                            crate::types::error::ServiceException::deserialize_with_response(
         276  +
                                &mut *deser,
         277  +
                                response.headers(),
         278  +
                                response.status().into(),
         279  +
                                body,
         280  +
                            )
         281  +
                        }) {
         282  +
                        ::std::result::Result::Ok(val) => val,
         283  +
                        ::std::result::Result::Err(e) => {
         284  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         285  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         286  +
                            ))
         287  +
                        }
         288  +
                    };
         289  +
                    tmp.meta = generic;
         290  +
                    if tmp.message.is_none() {
         291  +
                        tmp.message = _error_message;
         292  +
                    }
         293  +
                    tmp
         294  +
                }),
         295  +
                "TooManyRequestsException" => {
         296  +
                    crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigError::TooManyRequestsException({
         297  +
                        let mut tmp = match protocol
         298  +
                            .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         299  +
                            .and_then(|mut deser| {
         300  +
                                crate::types::error::TooManyRequestsException::deserialize_with_response(
         301  +
                                    &mut *deser,
         302  +
                                    response.headers(),
         303  +
                                    response.status().into(),
         304  +
                                    body,
         305  +
                                )
         306  +
                            }) {
         307  +
                            ::std::result::Result::Ok(val) => val,
         308  +
                            ::std::result::Result::Err(e) => {
         309  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         310  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         311  +
                                ))
         312  +
                            }
         313  +
                        };
         314  +
                        tmp.meta = generic;
         315  +
                        if tmp.message.is_none() {
         316  +
                            tmp.message = _error_message;
         317  +
                        }
         318  +
                        tmp
         319  +
                    })
         320  +
                }
         321  +
                _ => crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigError::generic(generic),
         322  +
            };
         323  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         324  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         325  +
            ))
  166    326   
        } else {
  167         -
            crate::protocol_serde::shape_put_function_event_invoke_config::de_put_function_event_invoke_config_http_response(status, headers, body)
  168         -
        };
  169         -
        crate::protocol_serde::type_erase_result(parse_result)
         327  +
            let protocol = _cfg
         328  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         329  +
                .expect("a SharedClientProtocol is required");
         330  +
            let mut deser = protocol
         331  +
                .deserialize_response(response, PutFunctionEventInvokeConfig::OUTPUT_SCHEMA, _cfg)
         332  +
                .map_err(|e| {
         333  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         334  +
                })?;
         335  +
            let body = response.body().bytes().expect("body loaded");
         336  +
            let output = crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigOutput::deserialize_with_response(
         337  +
                &mut *deser,
         338  +
                response.headers(),
         339  +
                response.status().into(),
         340  +
                body,
         341  +
            )
         342  +
            .map_err(|e| {
         343  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         344  +
            })?;
         345  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         346  +
        }
  170    347   
    }
  171    348   
}
  172    349   
#[derive(Debug)]
  173    350   
struct PutFunctionEventInvokeConfigRequestSerializer;
  174    351   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for PutFunctionEventInvokeConfigRequestSerializer {
  175    352   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  176    353   
    fn serialize_input(
  177    354   
        &self,
  178    355   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  179    356   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  180    357   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  181    358   
        let input = input
  182    359   
            .downcast::<crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigInput>()
  183    360   
            .expect("correct type");
  184         -
        let _header_serialization_settings = _cfg
  185         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  186         -
            .cloned()
  187         -
            .unwrap_or_default();
  188         -
        let mut request_builder = {
  189         -
            #[allow(clippy::uninlined_format_args)]
  190         -
            fn uri_base(
  191         -
                _input: &crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigInput,
  192         -
                output: &mut ::std::string::String,
  193         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  194         -
                use ::std::fmt::Write as _;
  195         -
                let input_1 = &_input.function_name;
  196         -
                let input_1 = input_1
  197         -
                    .as_ref()
  198         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("function_name", "cannot be empty or unset"))?;
  199         -
                let function_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  200         -
                if function_name.is_empty() {
  201         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  202         -
                        "function_name",
  203         -
                        "cannot be empty or unset",
  204         -
                    ));
  205         -
                }
  206         -
                ::std::write!(
  207         -
                    output,
  208         -
                    "/2019-09-25/functions/{FunctionName}/event-invoke-config",
  209         -
                    FunctionName = function_name
  210         -
                )
  211         -
                .expect("formatting should succeed");
  212         -
                ::std::result::Result::Ok(())
  213         -
            }
  214         -
            fn uri_query(
  215         -
                _input: &crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigInput,
  216         -
                mut output: &mut ::std::string::String,
  217         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  218         -
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  219         -
                if let ::std::option::Option::Some(inner_2) = &_input.qualifier {
  220         -
                    {
  221         -
                        query.push_kv("Qualifier", &::aws_smithy_http::query::fmt_string(inner_2));
  222         -
                    }
  223         -
                }
  224         -
                ::std::result::Result::Ok(())
  225         -
            }
  226         -
            #[allow(clippy::unnecessary_wraps)]
  227         -
            fn update_http_builder(
  228         -
                input: &crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigInput,
  229         -
                builder: ::http_1x::request::Builder,
  230         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  231         -
                let mut uri = ::std::string::String::new();
  232         -
                uri_base(input, &mut uri)?;
  233         -
                uri_query(input, &mut uri)?;
  234         -
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  235         -
            }
  236         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  237         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  238         -
            builder
  239         -
        };
  240         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  241         -
            crate::protocol_serde::shape_put_function_event_invoke_config::ser_put_function_event_invoke_config_input(&input)?,
  242         -
        );
  243         -
        if let Some(content_length) = body.content_length() {
  244         -
            let content_length = content_length.to_string();
  245         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  246         -
        }
  247         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         361  +
        let protocol = _cfg
         362  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         363  +
            .expect("a SharedClientProtocol is required");
         364  +
        let mut request = protocol
         365  +
            .serialize_request(&input, PutFunctionEventInvokeConfig::INPUT_SCHEMA, "", _cfg)
         366  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         367  +
         368  +
        return ::std::result::Result::Ok(request);
  248    369   
    }
  249    370   
}
  250    371   
#[derive(Debug)]
  251    372   
struct PutFunctionEventInvokeConfigEndpointParamsInterceptor;
  252    373   
  253    374   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutFunctionEventInvokeConfigEndpointParamsInterceptor {
  254    375   
    fn name(&self) -> &'static str {
  255    376   
        "PutFunctionEventInvokeConfigEndpointParamsInterceptor"
  256    377   
    }
  257    378   

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

@@ -71,71 +254,271 @@
   91     91   
    "com.amazonaws.lambda.synthetic",
   92     92   
    "PutFunctionEventInvokeConfigInput",
   93     93   
);
   94     94   
static PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_FUNCTION_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.lambda.synthetic#PutFunctionEventInvokeConfigInput$FunctionName",
   97     97   
        "com.amazonaws.lambda.synthetic",
   98     98   
        "PutFunctionEventInvokeConfigInput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::String,
  101         -
    "function_name",
         101  +
    "FunctionName",
  102    102   
    0,
  103    103   
)
  104    104   
.with_http_label();
  105    105   
static PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_QUALIFIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  106    106   
    ::aws_smithy_schema::ShapeId::from_static(
  107    107   
        "com.amazonaws.lambda.synthetic#PutFunctionEventInvokeConfigInput$Qualifier",
  108    108   
        "com.amazonaws.lambda.synthetic",
  109    109   
        "PutFunctionEventInvokeConfigInput",
  110    110   
    ),
  111    111   
    ::aws_smithy_schema::ShapeType::String,
  112         -
    "qualifier",
         112  +
    "Qualifier",
  113    113   
    1,
  114    114   
)
  115    115   
.with_http_query("Qualifier");
  116    116   
static PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_MAXIMUM_RETRY_ATTEMPTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  117    117   
    ::aws_smithy_schema::ShapeId::from_static(
  118    118   
        "com.amazonaws.lambda.synthetic#PutFunctionEventInvokeConfigInput$MaximumRetryAttempts",
  119    119   
        "com.amazonaws.lambda.synthetic",
  120    120   
        "PutFunctionEventInvokeConfigInput",
  121    121   
    ),
  122    122   
    ::aws_smithy_schema::ShapeType::Integer,
  123         -
    "maximum_retry_attempts",
         123  +
    "MaximumRetryAttempts",
  124    124   
    2,
  125    125   
);
  126    126   
static PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_MAXIMUM_EVENT_AGE_IN_SECONDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  127    127   
    ::aws_smithy_schema::ShapeId::from_static(
  128    128   
        "com.amazonaws.lambda.synthetic#PutFunctionEventInvokeConfigInput$MaximumEventAgeInSeconds",
  129    129   
        "com.amazonaws.lambda.synthetic",
  130    130   
        "PutFunctionEventInvokeConfigInput",
  131    131   
    ),
  132    132   
    ::aws_smithy_schema::ShapeType::Integer,
  133         -
    "maximum_event_age_in_seconds",
         133  +
    "MaximumEventAgeInSeconds",
  134    134   
    3,
  135    135   
);
  136    136   
static PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_DESTINATION_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  137    137   
    ::aws_smithy_schema::ShapeId::from_static(
  138    138   
        "com.amazonaws.lambda.synthetic#PutFunctionEventInvokeConfigInput$DestinationConfig",
  139    139   
        "com.amazonaws.lambda.synthetic",
  140    140   
        "PutFunctionEventInvokeConfigInput",
  141    141   
    ),
  142    142   
    ::aws_smithy_schema::ShapeType::Structure,
  143         -
    "destination_config",
         143  +
    "DestinationConfig",
  144    144   
    4,
  145    145   
);
  146    146   
static PUTFUNCTIONEVENTINVOKECONFIGINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  147    147   
    PUTFUNCTIONEVENTINVOKECONFIGINPUT_SCHEMA_ID,
  148    148   
    ::aws_smithy_schema::ShapeType::Structure,
  149    149   
    &[
  150    150   
        &PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_FUNCTION_NAME,
  151    151   
        &PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_QUALIFIER,
  152    152   
        &PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_MAXIMUM_RETRY_ATTEMPTS,
  153    153   
        &PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_MAXIMUM_EVENT_AGE_IN_SECONDS,
  154    154   
        &PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_DESTINATION_CONFIG,
  155    155   
    ],
  156         -
);
         156  +
)
         157  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
         158  +
    "PUT",
         159  +
    "/2019-09-25/functions/{FunctionName}/event-invoke-config",
         160  +
    None,
         161  +
));
  157    162   
impl PutFunctionEventInvokeConfigInput {
  158    163   
    /// The schema for this shape.
  159    164   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTFUNCTIONEVENTINVOKECONFIGINPUT_SCHEMA;
  160    165   
}
  161    166   
impl ::aws_smithy_schema::serde::SerializableStruct for PutFunctionEventInvokeConfigInput {
  162    167   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  163    168   
    fn serialize_members(
  164    169   
        &self,
  165    170   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  166    171   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  167    172   
        if let Some(ref val) = self.function_name {
  168    173   
            ser.write_string(&PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_FUNCTION_NAME, val)?;
  169    174   
        }
  170    175   
        if let Some(ref val) = self.qualifier {
  171    176   
            ser.write_string(&PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_QUALIFIER, val)?;
  172    177   
        }
  173    178   
        if let Some(ref val) = self.maximum_retry_attempts {
  174    179   
            ser.write_integer(&PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_MAXIMUM_RETRY_ATTEMPTS, *val)?;
  175    180   
        }
  176    181   
        if let Some(ref val) = self.maximum_event_age_in_seconds {
  177    182   
            ser.write_integer(&PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_MAXIMUM_EVENT_AGE_IN_SECONDS, *val)?;
  178    183   
        }
  179    184   
        if let Some(ref val) = self.destination_config {
  180    185   
            ser.write_struct(&PUTFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_DESTINATION_CONFIG, val)?;
  181    186   
        }
  182    187   
        Ok(())
  183    188   
    }
  184    189   
}
  185    190   
impl PutFunctionEventInvokeConfigInput {
  186    191   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  187         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  188         -
        deserializer: &mut D,
         192  +
    pub fn deserialize(
         193  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  189    194   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  190    195   
        #[allow(unused_variables, unused_mut)]
  191    196   
        let mut builder = Self::builder();
  192    197   
        #[allow(
  193    198   
            unused_variables,
  194    199   
            unreachable_code,
  195    200   
            clippy::single_match,
  196    201   
            clippy::match_single_binding,
  197    202   
            clippy::diverging_sub_expression
  198    203   
        )]
  199         -
        deserializer.read_struct(&PUTFUNCTIONEVENTINVOKECONFIGINPUT_SCHEMA, (), |_, member, deser| {
         204  +
        deserializer.read_struct(&PUTFUNCTIONEVENTINVOKECONFIGINPUT_SCHEMA, &mut |member, deser| {
  200    205   
            match member.member_index() {
  201    206   
                Some(0) => {
  202    207   
                    builder.function_name = Some(deser.read_string(member)?);
  203    208   
                }
  204    209   
                Some(1) => {
  205    210   
                    builder.qualifier = Some(deser.read_string(member)?);
  206    211   
                }
  207    212   
                Some(2) => {
  208    213   
                    builder.maximum_retry_attempts = Some(deser.read_integer(member)?);
  209    214   
                }
  210    215   
                Some(3) => {
  211    216   
                    builder.maximum_event_age_in_seconds = Some(deser.read_integer(member)?);
  212    217   
                }
  213    218   
                Some(4) => {
  214    219   
                    builder.destination_config = Some(crate::types::DestinationConfig::deserialize(deser)?);
  215    220   
                }
  216    221   
                _ => {}
  217    222   
            }
  218    223   
            Ok(())
  219    224   
        })?;
         225  +
        builder.function_name = builder.function_name.or(Some(String::new()));
  220    226   
        builder
  221    227   
            .build()
  222    228   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  223    229   
    }
  224    230   
}
         231  +
impl PutFunctionEventInvokeConfigInput {
         232  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         233  +
    pub fn deserialize_with_response(
         234  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         235  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         236  +
        _status: u16,
         237  +
        _body: &[u8],
         238  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         239  +
        Self::deserialize(deserializer)
         240  +
    }
         241  +
}
  225    242   
impl PutFunctionEventInvokeConfigInput {
  226    243   
    /// Creates a new builder-style object to manufacture [`PutFunctionEventInvokeConfigInput`](crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigInput).
  227    244   
    pub fn builder() -> crate::operation::put_function_event_invoke_config::builders::PutFunctionEventInvokeConfigInputBuilder {
  228    245   
        crate::operation::put_function_event_invoke_config::builders::PutFunctionEventInvokeConfigInputBuilder::default()
  229    246   
    }
  230    247   
}
  231    248   
  232    249   
/// A builder for [`PutFunctionEventInvokeConfigInput`](crate::operation::put_function_event_invoke_config::PutFunctionEventInvokeConfigInput).
  233    250   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  234    251   
#[non_exhaustive]

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

@@ -52,52 +208,265 @@
   72     72   
    "com.amazonaws.lambda.synthetic",
   73     73   
    "PutFunctionEventInvokeConfigOutput",
   74     74   
);
   75     75   
static PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_LAST_MODIFIED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   76     76   
    ::aws_smithy_schema::ShapeId::from_static(
   77     77   
        "com.amazonaws.lambda.synthetic#PutFunctionEventInvokeConfigOutput$LastModified",
   78     78   
        "com.amazonaws.lambda.synthetic",
   79     79   
        "PutFunctionEventInvokeConfigOutput",
   80     80   
    ),
   81     81   
    ::aws_smithy_schema::ShapeType::Timestamp,
   82         -
    "last_modified",
          82  +
    "LastModified",
   83     83   
    0,
   84     84   
);
   85     85   
static PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_FUNCTION_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   86     86   
    ::aws_smithy_schema::ShapeId::from_static(
   87     87   
        "com.amazonaws.lambda.synthetic#PutFunctionEventInvokeConfigOutput$FunctionArn",
   88     88   
        "com.amazonaws.lambda.synthetic",
   89     89   
        "PutFunctionEventInvokeConfigOutput",
   90     90   
    ),
   91     91   
    ::aws_smithy_schema::ShapeType::String,
   92         -
    "function_arn",
          92  +
    "FunctionArn",
   93     93   
    1,
   94     94   
);
   95     95   
static PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_MAXIMUM_RETRY_ATTEMPTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   96     96   
    ::aws_smithy_schema::ShapeId::from_static(
   97     97   
        "com.amazonaws.lambda.synthetic#PutFunctionEventInvokeConfigOutput$MaximumRetryAttempts",
   98     98   
        "com.amazonaws.lambda.synthetic",
   99     99   
        "PutFunctionEventInvokeConfigOutput",
  100    100   
    ),
  101    101   
    ::aws_smithy_schema::ShapeType::Integer,
  102         -
    "maximum_retry_attempts",
         102  +
    "MaximumRetryAttempts",
  103    103   
    2,
  104    104   
);
  105    105   
static PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_MAXIMUM_EVENT_AGE_IN_SECONDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  106    106   
    ::aws_smithy_schema::ShapeId::from_static(
  107    107   
        "com.amazonaws.lambda.synthetic#PutFunctionEventInvokeConfigOutput$MaximumEventAgeInSeconds",
  108    108   
        "com.amazonaws.lambda.synthetic",
  109    109   
        "PutFunctionEventInvokeConfigOutput",
  110    110   
    ),
  111    111   
    ::aws_smithy_schema::ShapeType::Integer,
  112         -
    "maximum_event_age_in_seconds",
         112  +
    "MaximumEventAgeInSeconds",
  113    113   
    3,
  114    114   
);
  115    115   
static PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_DESTINATION_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  116    116   
    ::aws_smithy_schema::ShapeId::from_static(
  117    117   
        "com.amazonaws.lambda.synthetic#PutFunctionEventInvokeConfigOutput$DestinationConfig",
  118    118   
        "com.amazonaws.lambda.synthetic",
  119    119   
        "PutFunctionEventInvokeConfigOutput",
  120    120   
    ),
  121    121   
    ::aws_smithy_schema::ShapeType::Structure,
  122         -
    "destination_config",
         122  +
    "DestinationConfig",
  123    123   
    4,
  124    124   
);
         125  +
static PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         126  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         127  +
    ::aws_smithy_schema::ShapeType::String,
         128  +
    "request_id",
         129  +
    5,
         130  +
)
         131  +
.with_http_header("x-amzn-requestid");
  125    132   
static PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  126    133   
    PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA_ID,
  127    134   
    ::aws_smithy_schema::ShapeType::Structure,
  128    135   
    &[
  129    136   
        &PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_LAST_MODIFIED,
  130    137   
        &PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_FUNCTION_ARN,
  131    138   
        &PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_MAXIMUM_RETRY_ATTEMPTS,
  132    139   
        &PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_MAXIMUM_EVENT_AGE_IN_SECONDS,
  133    140   
        &PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_DESTINATION_CONFIG,
         141  +
        &PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER__REQUEST_ID,
  134    142   
    ],
  135    143   
);
  136    144   
impl PutFunctionEventInvokeConfigOutput {
  137    145   
    /// The schema for this shape.
  138    146   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA;
  139    147   
}
  140    148   
impl ::aws_smithy_schema::serde::SerializableStruct for PutFunctionEventInvokeConfigOutput {
  141    149   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  142    150   
    fn serialize_members(
  143    151   
        &self,
  144    152   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  145    153   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  146    154   
        if let Some(ref val) = self.last_modified {
  147    155   
            ser.write_timestamp(&PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_LAST_MODIFIED, val)?;
  148    156   
        }
  149    157   
        if let Some(ref val) = self.function_arn {
  150    158   
            ser.write_string(&PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_FUNCTION_ARN, val)?;
  151    159   
        }
  152    160   
        if let Some(ref val) = self.maximum_retry_attempts {
  153    161   
            ser.write_integer(&PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_MAXIMUM_RETRY_ATTEMPTS, *val)?;
  154    162   
        }
  155    163   
        if let Some(ref val) = self.maximum_event_age_in_seconds {
  156    164   
            ser.write_integer(&PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_MAXIMUM_EVENT_AGE_IN_SECONDS, *val)?;
  157    165   
        }
  158    166   
        if let Some(ref val) = self.destination_config {
  159    167   
            ser.write_struct(&PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_DESTINATION_CONFIG, val)?;
  160    168   
        }
  161    169   
        Ok(())
  162    170   
    }
  163    171   
}
  164    172   
impl PutFunctionEventInvokeConfigOutput {
  165    173   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  166         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  167         -
        deserializer: &mut D,
         174  +
    pub fn deserialize(
         175  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  168    176   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  169    177   
        #[allow(unused_variables, unused_mut)]
  170    178   
        let mut builder = Self::builder();
  171    179   
        #[allow(
  172    180   
            unused_variables,
  173    181   
            unreachable_code,
  174    182   
            clippy::single_match,
  175    183   
            clippy::match_single_binding,
  176    184   
            clippy::diverging_sub_expression
  177    185   
        )]
  178         -
        deserializer.read_struct(&PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA, (), |_, member, deser| {
         186  +
        deserializer.read_struct(&PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA, &mut |member, deser| {
         187  +
            match member.member_index() {
         188  +
                Some(0) => {
         189  +
                    builder.last_modified = Some(deser.read_timestamp(member)?);
         190  +
                }
         191  +
                Some(1) => {
         192  +
                    builder.function_arn = Some(deser.read_string(member)?);
         193  +
                }
         194  +
                Some(2) => {
         195  +
                    builder.maximum_retry_attempts = Some(deser.read_integer(member)?);
         196  +
                }
         197  +
                Some(3) => {
         198  +
                    builder.maximum_event_age_in_seconds = Some(deser.read_integer(member)?);
         199  +
                }
         200  +
                Some(4) => {
         201  +
                    builder.destination_config = Some(crate::types::DestinationConfig::deserialize(deser)?);
         202  +
                }
         203  +
                Some(5) => {
         204  +
                    builder._request_id = Some(deser.read_string(member)?);
         205  +
                }
         206  +
                _ => {}
         207  +
            }
         208  +
            Ok(())
         209  +
        })?;
         210  +
        Ok(builder.build())
         211  +
    }
         212  +
}
         213  +
impl PutFunctionEventInvokeConfigOutput {
         214  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         215  +
    /// Header-bound members are read directly from headers, avoiding runtime
         216  +
    /// member iteration overhead. Body members are read via the deserializer.
         217  +
    pub fn deserialize_with_response(
         218  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         219  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         220  +
        _status: u16,
         221  +
        _body: &[u8],
         222  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         223  +
        #[allow(unused_variables, unused_mut)]
         224  +
        let mut builder = Self::builder();
         225  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         226  +
            builder._request_id = Some(val.to_string());
         227  +
        }
         228  +
        #[allow(
         229  +
            unused_variables,
         230  +
            unreachable_code,
         231  +
            clippy::single_match,
         232  +
            clippy::match_single_binding,
         233  +
            clippy::diverging_sub_expression
         234  +
        )]
         235  +
        deserializer.read_struct(&PUTFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA, &mut |member, deser| {
  179    236   
            match member.member_index() {
  180    237   
                Some(0) => {
  181    238   
                    builder.last_modified = Some(deser.read_timestamp(member)?);
  182    239   
                }
  183    240   
                Some(1) => {
  184    241   
                    builder.function_arn = Some(deser.read_string(member)?);
  185    242   
                }
  186    243   
                Some(2) => {
  187    244   
                    builder.maximum_retry_attempts = Some(deser.read_integer(member)?);
  188    245   
                }

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/put_function_recursion_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 `PutFunctionRecursionConfig`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutFunctionRecursionConfig;
    6      6   
impl PutFunctionRecursionConfig {
    7      7   
    /// Creates a new `PutFunctionRecursionConfig`
    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::put_function_recursion_config::PutFunctionRecursionConfigInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::put_function_recursion_config::PutFunctionRecursionConfigOutput::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::put_function_recursion_config::PutFunctionRecursionConfigInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::put_function_recursion_config::PutFunctionRecursionConfigOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::put_function_recursion_config::PutFunctionRecursionConfigError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +258,392 @@
  138    144   
                crate::operation::put_function_recursion_config::PutFunctionRecursionConfigError,
  139    145   
            >::new());
  140    146   
  141    147   
        ::std::borrow::Cow::Owned(rcb)
  142    148   
    }
  143    149   
}
  144    150   
  145    151   
#[derive(Debug)]
  146    152   
struct PutFunctionRecursionConfigResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutFunctionRecursionConfigResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         154  +
    fn deserialize_nonstreaming_with_config(
  149    155   
        &self,
  150    156   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         157  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    158   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    159   
        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    160   
        #[allow(unused_mut)]
  156    161   
        let mut force_error = false;
  157    162   
        ::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_put_function_recursion_config::de_put_function_recursion_config_http_error(status, headers, body)
         163  +
        if !success && status != 200 || force_error {
         164  +
            let headers = response.headers();
         165  +
            let body = response.body().bytes().expect("body loaded");
         166  +
            #[allow(unused_mut)]
         167  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         168  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         169  +
            })?;
         170  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         171  +
            let generic = generic_builder.build();
         172  +
            let error_code = match generic.code() {
         173  +
                ::std::option::Option::Some(code) => code,
         174  +
                ::std::option::Option::None => {
         175  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         176  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         177  +
                            crate::operation::put_function_recursion_config::PutFunctionRecursionConfigError::unhandled(generic),
         178  +
                        ),
         179  +
                    ))
         180  +
                }
         181  +
            };
         182  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         183  +
            let protocol = _cfg
         184  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         185  +
                .expect("a SharedClientProtocol is required");
         186  +
            let err = match error_code {
         187  +
                "InvalidParameterValueException" => {
         188  +
                    crate::operation::put_function_recursion_config::PutFunctionRecursionConfigError::InvalidParameterValueException({
         189  +
                        let mut tmp = match protocol
         190  +
                            .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         191  +
                            .and_then(|mut deser| {
         192  +
                                crate::types::error::InvalidParameterValueException::deserialize_with_response(
         193  +
                                    &mut *deser,
         194  +
                                    response.headers(),
         195  +
                                    response.status().into(),
         196  +
                                    body,
         197  +
                                )
         198  +
                            }) {
         199  +
                            ::std::result::Result::Ok(val) => val,
         200  +
                            ::std::result::Result::Err(e) => {
         201  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         202  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         203  +
                                ))
         204  +
                            }
         205  +
                        };
         206  +
                        tmp.meta = generic;
         207  +
                        if tmp.message.is_none() {
         208  +
                            tmp.message = _error_message;
         209  +
                        }
         210  +
                        tmp
         211  +
                    })
         212  +
                }
         213  +
                "ResourceConflictException" => {
         214  +
                    crate::operation::put_function_recursion_config::PutFunctionRecursionConfigError::ResourceConflictException({
         215  +
                        let mut tmp = match protocol
         216  +
                            .deserialize_response(response, crate::types::error::ResourceConflictException::SCHEMA, _cfg)
         217  +
                            .and_then(|mut deser| {
         218  +
                                crate::types::error::ResourceConflictException::deserialize_with_response(
         219  +
                                    &mut *deser,
         220  +
                                    response.headers(),
         221  +
                                    response.status().into(),
         222  +
                                    body,
         223  +
                                )
         224  +
                            }) {
         225  +
                            ::std::result::Result::Ok(val) => val,
         226  +
                            ::std::result::Result::Err(e) => {
         227  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         228  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         229  +
                                ))
         230  +
                            }
         231  +
                        };
         232  +
                        tmp.meta = generic;
         233  +
                        if tmp.message.is_none() {
         234  +
                            tmp.message = _error_message;
         235  +
                        }
         236  +
                        tmp
         237  +
                    })
         238  +
                }
         239  +
                "ResourceNotFoundException" => {
         240  +
                    crate::operation::put_function_recursion_config::PutFunctionRecursionConfigError::ResourceNotFoundException({
         241  +
                        let mut tmp = match protocol
         242  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         243  +
                            .and_then(|mut deser| {
         244  +
                                crate::types::error::ResourceNotFoundException::deserialize_with_response(
         245  +
                                    &mut *deser,
         246  +
                                    response.headers(),
         247  +
                                    response.status().into(),
         248  +
                                    body,
         249  +
                                )
         250  +
                            }) {
         251  +
                            ::std::result::Result::Ok(val) => val,
         252  +
                            ::std::result::Result::Err(e) => {
         253  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         254  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         255  +
                                ))
         256  +
                            }
         257  +
                        };
         258  +
                        tmp.meta = generic;
         259  +
                        if tmp.message.is_none() {
         260  +
                            tmp.message = _error_message;
         261  +
                        }
         262  +
                        tmp
         263  +
                    })
         264  +
                }
         265  +
                "ServiceException" => crate::operation::put_function_recursion_config::PutFunctionRecursionConfigError::ServiceException({
         266  +
                    let mut tmp = match protocol
         267  +
                        .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         268  +
                        .and_then(|mut deser| {
         269  +
                            crate::types::error::ServiceException::deserialize_with_response(
         270  +
                                &mut *deser,
         271  +
                                response.headers(),
         272  +
                                response.status().into(),
         273  +
                                body,
         274  +
                            )
         275  +
                        }) {
         276  +
                        ::std::result::Result::Ok(val) => val,
         277  +
                        ::std::result::Result::Err(e) => {
         278  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         279  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         280  +
                            ))
         281  +
                        }
         282  +
                    };
         283  +
                    tmp.meta = generic;
         284  +
                    if tmp.message.is_none() {
         285  +
                        tmp.message = _error_message;
         286  +
                    }
         287  +
                    tmp
         288  +
                }),
         289  +
                "TooManyRequestsException" => {
         290  +
                    crate::operation::put_function_recursion_config::PutFunctionRecursionConfigError::TooManyRequestsException({
         291  +
                        let mut tmp = match protocol
         292  +
                            .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         293  +
                            .and_then(|mut deser| {
         294  +
                                crate::types::error::TooManyRequestsException::deserialize_with_response(
         295  +
                                    &mut *deser,
         296  +
                                    response.headers(),
         297  +
                                    response.status().into(),
         298  +
                                    body,
         299  +
                                )
         300  +
                            }) {
         301  +
                            ::std::result::Result::Ok(val) => val,
         302  +
                            ::std::result::Result::Err(e) => {
         303  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         304  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         305  +
                                ))
         306  +
                            }
         307  +
                        };
         308  +
                        tmp.meta = generic;
         309  +
                        if tmp.message.is_none() {
         310  +
                            tmp.message = _error_message;
         311  +
                        }
         312  +
                        tmp
         313  +
                    })
         314  +
                }
         315  +
                _ => crate::operation::put_function_recursion_config::PutFunctionRecursionConfigError::generic(generic),
         316  +
            };
         317  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         318  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         319  +
            ))
  160    320   
        } else {
  161         -
            crate::protocol_serde::shape_put_function_recursion_config::de_put_function_recursion_config_http_response(status, headers, body)
  162         -
        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         321  +
            let protocol = _cfg
         322  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         323  +
                .expect("a SharedClientProtocol is required");
         324  +
            let mut deser = protocol
         325  +
                .deserialize_response(response, PutFunctionRecursionConfig::OUTPUT_SCHEMA, _cfg)
         326  +
                .map_err(|e| {
         327  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         328  +
                })?;
         329  +
            let body = response.body().bytes().expect("body loaded");
         330  +
            let output = crate::operation::put_function_recursion_config::PutFunctionRecursionConfigOutput::deserialize_with_response(
         331  +
                &mut *deser,
         332  +
                response.headers(),
         333  +
                response.status().into(),
         334  +
                body,
         335  +
            )
         336  +
            .map_err(|e| {
         337  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         338  +
            })?;
         339  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         340  +
        }
  164    341   
    }
  165    342   
}
  166    343   
#[derive(Debug)]
  167    344   
struct PutFunctionRecursionConfigRequestSerializer;
  168    345   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for PutFunctionRecursionConfigRequestSerializer {
  169    346   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    347   
    fn serialize_input(
  171    348   
        &self,
  172    349   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    350   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    351   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    352   
        let input = input
  176    353   
            .downcast::<crate::operation::put_function_recursion_config::PutFunctionRecursionConfigInput>()
  177    354   
            .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::put_function_recursion_config::PutFunctionRecursionConfigInput,
  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!(
  201         -
                    output,
  202         -
                    "/2024-08-31/functions/{FunctionName}/recursion-config",
  203         -
                    FunctionName = function_name
  204         -
                )
  205         -
                .expect("formatting should succeed");
  206         -
                ::std::result::Result::Ok(())
  207         -
            }
  208         -
            #[allow(clippy::unnecessary_wraps)]
  209         -
            fn update_http_builder(
  210         -
                input: &crate::operation::put_function_recursion_config::PutFunctionRecursionConfigInput,
  211         -
                builder: ::http_1x::request::Builder,
  212         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  213         -
                let mut uri = ::std::string::String::new();
  214         -
                uri_base(input, &mut uri)?;
  215         -
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  216         -
            }
  217         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  218         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  219         -
            builder
  220         -
        };
  221         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  222         -
            crate::protocol_serde::shape_put_function_recursion_config::ser_put_function_recursion_config_input(&input)?,
  223         -
        );
  224         -
        if let Some(content_length) = body.content_length() {
  225         -
            let content_length = content_length.to_string();
  226         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  227         -
        }
  228         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         355  +
        let protocol = _cfg
         356  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         357  +
            .expect("a SharedClientProtocol is required");
         358  +
        let mut request = protocol
         359  +
            .serialize_request(&input, PutFunctionRecursionConfig::INPUT_SCHEMA, "", _cfg)
         360  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         361  +
         362  +
        return ::std::result::Result::Ok(request);
  229    363   
    }
  230    364   
}
  231    365   
#[derive(Debug)]
  232    366   
struct PutFunctionRecursionConfigEndpointParamsInterceptor;
  233    367   
  234    368   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutFunctionRecursionConfigEndpointParamsInterceptor {
  235    369   
    fn name(&self) -> &'static str {
  236    370   
        "PutFunctionRecursionConfigEndpointParamsInterceptor"
  237    371   
    }
  238    372   

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/put_provisioned_concurrency_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 `PutProvisionedConcurrencyConfig`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutProvisionedConcurrencyConfig;
    6      6   
impl PutProvisionedConcurrencyConfig {
    7      7   
    /// Creates a new `PutProvisionedConcurrencyConfig`
    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::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigOutput::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::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +285,398 @@
  144    150   
                crate::operation::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigError,
  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 PutProvisionedConcurrencyConfigResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutProvisionedConcurrencyConfigResponseDeserializer {
  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 != 202 || force_error {
  165         -
            crate::protocol_serde::shape_put_provisioned_concurrency_config::de_put_provisioned_concurrency_config_http_error(status, headers, body)
         169  +
        if !success && status != 202 || 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::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigError::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::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigError::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  +
                "ResourceConflictException" => {
         220  +
                    crate::operation::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigError::ResourceConflictException({
         221  +
                        let mut tmp = match protocol
         222  +
                            .deserialize_response(response, crate::types::error::ResourceConflictException::SCHEMA, _cfg)
         223  +
                            .and_then(|mut deser| {
         224  +
                                crate::types::error::ResourceConflictException::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  +
                "ResourceNotFoundException" => {
         246  +
                    crate::operation::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigError::ResourceNotFoundException({
         247  +
                        let mut tmp = match protocol
         248  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         249  +
                            .and_then(|mut deser| {
         250  +
                                crate::types::error::ResourceNotFoundException::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  +
                "ServiceException" => crate::operation::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigError::ServiceException({
         272  +
                    let mut tmp = match protocol
         273  +
                        .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         274  +
                        .and_then(|mut deser| {
         275  +
                            crate::types::error::ServiceException::deserialize_with_response(
         276  +
                                &mut *deser,
         277  +
                                response.headers(),
         278  +
                                response.status().into(),
         279  +
                                body,
         280  +
                            )
         281  +
                        }) {
         282  +
                        ::std::result::Result::Ok(val) => val,
         283  +
                        ::std::result::Result::Err(e) => {
         284  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         285  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         286  +
                            ))
         287  +
                        }
         288  +
                    };
         289  +
                    tmp.meta = generic;
         290  +
                    if tmp.message.is_none() {
         291  +
                        tmp.message = _error_message;
         292  +
                    }
         293  +
                    tmp
         294  +
                }),
         295  +
                "TooManyRequestsException" => {
         296  +
                    crate::operation::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigError::TooManyRequestsException({
         297  +
                        let mut tmp = match protocol
         298  +
                            .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         299  +
                            .and_then(|mut deser| {
         300  +
                                crate::types::error::TooManyRequestsException::deserialize_with_response(
         301  +
                                    &mut *deser,
         302  +
                                    response.headers(),
         303  +
                                    response.status().into(),
         304  +
                                    body,
         305  +
                                )
         306  +
                            }) {
         307  +
                            ::std::result::Result::Ok(val) => val,
         308  +
                            ::std::result::Result::Err(e) => {
         309  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         310  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         311  +
                                ))
         312  +
                            }
         313  +
                        };
         314  +
                        tmp.meta = generic;
         315  +
                        if tmp.message.is_none() {
         316  +
                            tmp.message = _error_message;
         317  +
                        }
         318  +
                        tmp
         319  +
                    })
         320  +
                }
         321  +
                _ => crate::operation::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigError::generic(generic),
         322  +
            };
         323  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         324  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         325  +
            ))
  166    326   
        } else {
  167         -
            crate::protocol_serde::shape_put_provisioned_concurrency_config::de_put_provisioned_concurrency_config_http_response(
  168         -
                status, headers, body,
         327  +
            let protocol = _cfg
         328  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         329  +
                .expect("a SharedClientProtocol is required");
         330  +
            let mut deser = protocol
         331  +
                .deserialize_response(response, PutProvisionedConcurrencyConfig::OUTPUT_SCHEMA, _cfg)
         332  +
                .map_err(|e| {
         333  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         334  +
                })?;
         335  +
            let body = response.body().bytes().expect("body loaded");
         336  +
            let output = crate::operation::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigOutput::deserialize_with_response(
         337  +
                &mut *deser,
         338  +
                response.headers(),
         339  +
                response.status().into(),
         340  +
                body,
  169    341   
            )
  170         -
        };
  171         -
        crate::protocol_serde::type_erase_result(parse_result)
         342  +
            .map_err(|e| {
         343  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         344  +
            })?;
         345  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         346  +
        }
  172    347   
    }
  173    348   
}
  174    349   
#[derive(Debug)]
  175    350   
struct PutProvisionedConcurrencyConfigRequestSerializer;
  176    351   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for PutProvisionedConcurrencyConfigRequestSerializer {
  177    352   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  178    353   
    fn serialize_input(
  179    354   
        &self,
  180    355   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  181    356   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  182    357   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  183    358   
        let input = input
  184    359   
            .downcast::<crate::operation::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigInput>()
  185    360   
            .expect("correct type");
  186         -
        let _header_serialization_settings = _cfg
  187         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  188         -
            .cloned()
  189         -
            .unwrap_or_default();
  190         -
        let mut request_builder = {
  191         -
            #[allow(clippy::uninlined_format_args)]
  192         -
            fn uri_base(
  193         -
                _input: &crate::operation::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigInput,
  194         -
                output: &mut ::std::string::String,
  195         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  196         -
                use ::std::fmt::Write as _;
  197         -
                let input_1 = &_input.function_name;
  198         -
                let input_1 = input_1
  199         -
                    .as_ref()
  200         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("function_name", "cannot be empty or unset"))?;
  201         -
                let function_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  202         -
                if function_name.is_empty() {
  203         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  204         -
                        "function_name",
  205         -
                        "cannot be empty or unset",
  206         -
                    ));
  207         -
                }
  208         -
                ::std::write!(
  209         -
                    output,
  210         -
                    "/2019-09-30/functions/{FunctionName}/provisioned-concurrency",
  211         -
                    FunctionName = function_name
  212         -
                )
  213         -
                .expect("formatting should succeed");
  214         -
                ::std::result::Result::Ok(())
  215         -
            }
  216         -
            fn uri_query(
  217         -
                _input: &crate::operation::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigInput,
  218         -
                mut output: &mut ::std::string::String,
  219         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  220         -
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  221         -
                let inner_2 = &_input.qualifier;
  222         -
                let inner_2 = inner_2
  223         -
                    .as_ref()
  224         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("qualifier", "cannot be empty or unset"))?;
  225         -
                if inner_2.is_empty() {
  226         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  227         -
                        "qualifier",
  228         -
                        "cannot be empty or unset",
  229         -
                    ));
  230         -
                }
  231         -
                query.push_kv("Qualifier", &::aws_smithy_http::query::fmt_string(inner_2));
  232         -
                ::std::result::Result::Ok(())
  233         -
            }
  234         -
            #[allow(clippy::unnecessary_wraps)]
  235         -
            fn update_http_builder(
  236         -
                input: &crate::operation::put_provisioned_concurrency_config::PutProvisionedConcurrencyConfigInput,
  237         -
                builder: ::http_1x::request::Builder,
  238         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  239         -
                let mut uri = ::std::string::String::new();
  240         -
                uri_base(input, &mut uri)?;
  241         -
                uri_query(input, &mut uri)?;
  242         -
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  243         -
            }
  244         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  245         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  246         -
            builder
  247         -
        };
  248         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  249         -
            crate::protocol_serde::shape_put_provisioned_concurrency_config::ser_put_provisioned_concurrency_config_input(&input)?,
  250         -
        );
  251         -
        if let Some(content_length) = body.content_length() {
  252         -
            let content_length = content_length.to_string();
  253         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  254         -
        }
  255         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         361  +
        let protocol = _cfg
         362  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         363  +
            .expect("a SharedClientProtocol is required");
         364  +
        let mut request = protocol
         365  +
            .serialize_request(&input, PutProvisionedConcurrencyConfig::INPUT_SCHEMA, "", _cfg)
         366  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         367  +
         368  +
        return ::std::result::Result::Ok(request);
  256    369   
    }
  257    370   
}
  258    371   
#[derive(Debug)]
  259    372   
struct PutProvisionedConcurrencyConfigEndpointParamsInterceptor;
  260    373   
  261    374   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutProvisionedConcurrencyConfigEndpointParamsInterceptor {
  262    375   
    fn name(&self) -> &'static str {
  263    376   
        "PutProvisionedConcurrencyConfigEndpointParamsInterceptor"
  264    377   
    }
  265    378