AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045 (ignoring whitespace)

Files changed:

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,422 @@
  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)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_put_function_recursion_config::de_put_function_recursion_config_http_response(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  +
                            }
  162    231   
                        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         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  +
            ))
         320  +
        } else {
         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
         355  +
        let protocol = _cfg
         356  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         357  +
            .expect("a SharedClientProtocol is required");
         358  +
        if protocol.supports_http_bindings() {
         359  +
            let mut request = protocol
         360  +
                .serialize_body(&input, PutFunctionRecursionConfig::INPUT_SCHEMA, "", _cfg)
         361  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         362  +
            {
         363  +
                let mut uri = "/2024-08-31/functions/{FunctionName}/recursion-config".to_string();
         364  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         365  +
                if let Some(ref val) = input.function_name {
         366  +
                    uri = uri.replace("{FunctionName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         367  +
                }
         368  +
                if !query_params.is_empty() {
         369  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         370  +
                    let pairs: Vec<String> = query_params
         371  +
                        .iter()
         372  +
                        .map(|(k, v)| {
         373  +
                            format!(
         374  +
                                "{}={}",
         375  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         376  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
  204    377   
                            )
  205         -
                .expect("formatting should succeed");
  206         -
                ::std::result::Result::Ok(())
         378  +
                        })
         379  +
                        .collect();
         380  +
                    uri.push_str(&pairs.join("&"));
         381  +
                }
         382  +
                request.set_uri(uri.as_str()).expect("valid URI");
         383  +
            }
         384  +
         385  +
            return ::std::result::Result::Ok(request);
         386  +
        } else {
         387  +
            let mut request = protocol
         388  +
                .serialize_request(&input, PutFunctionRecursionConfig::INPUT_SCHEMA, "", _cfg)
         389  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         390  +
         391  +
            return ::std::result::Result::Ok(request);
  207    392   
        }
  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())
  229    393   
    }
  230    394   
}
  231    395   
#[derive(Debug)]
  232    396   
struct PutFunctionRecursionConfigEndpointParamsInterceptor;
  233    397   
  234    398   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutFunctionRecursionConfigEndpointParamsInterceptor {
  235    399   
    fn name(&self) -> &'static str {
  236    400   
        "PutFunctionRecursionConfigEndpointParamsInterceptor"
  237    401   
    }
  238    402   

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,431 @@
  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)
  166         -
        } else {
  167         -
            crate::protocol_serde::shape_put_provisioned_concurrency_config::de_put_provisioned_concurrency_config_http_response(
  168         -
                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,
  169    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  +
                            }
  170    313   
                        };
  171         -
        crate::protocol_serde::type_erase_result(parse_result)
         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  +
            ))
         326  +
        } else {
         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,
         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  +
        }
  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
         361  +
        let protocol = _cfg
         362  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         363  +
            .expect("a SharedClientProtocol is required");
         364  +
        if protocol.supports_http_bindings() {
         365  +
            let mut request = protocol
         366  +
                .serialize_body(&input, PutProvisionedConcurrencyConfig::INPUT_SCHEMA, "", _cfg)
         367  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         368  +
            {
         369  +
                let mut uri = "/2019-09-30/functions/{FunctionName}/provisioned-concurrency".to_string();
         370  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         371  +
                if let Some(ref val) = input.function_name {
         372  +
                    uri = uri.replace("{FunctionName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         373  +
                }
         374  +
                if let Some(ref val) = input.qualifier {
         375  +
                    query_params.push(("Qualifier".to_string(), val.to_string()));
         376  +
                }
         377  +
                if !query_params.is_empty() {
         378  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         379  +
                    let pairs: Vec<String> = query_params
         380  +
                        .iter()
         381  +
                        .map(|(k, v)| {
         382  +
                            format!(
         383  +
                                "{}={}",
         384  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         385  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
  212    386   
                            )
  213         -
                .expect("formatting should succeed");
  214         -
                ::std::result::Result::Ok(())
         387  +
                        })
         388  +
                        .collect();
         389  +
                    uri.push_str(&pairs.join("&"));
  215    390   
                }
  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         -
                    ));
         391  +
                request.set_uri(uri.as_str()).expect("valid URI");
  230    392   
            }
  231         -
                query.push_kv("Qualifier", &::aws_smithy_http::query::fmt_string(inner_2));
  232         -
                ::std::result::Result::Ok(())
         393  +
         394  +
            return ::std::result::Result::Ok(request);
         395  +
        } else {
         396  +
            let mut request = protocol
         397  +
                .serialize_request(&input, PutProvisionedConcurrencyConfig::INPUT_SCHEMA, "", _cfg)
         398  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         399  +
         400  +
            return ::std::result::Result::Ok(request);
  233    401   
        }
  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())
  256    402   
    }
  257    403   
}
  258    404   
#[derive(Debug)]
  259    405   
struct PutProvisionedConcurrencyConfigEndpointParamsInterceptor;
  260    406   
  261    407   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutProvisionedConcurrencyConfigEndpointParamsInterceptor {
  262    408   
    fn name(&self) -> &'static str {
  263    409   
        "PutProvisionedConcurrencyConfigEndpointParamsInterceptor"
  264    410   
    }
  265    411   

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/put_runtime_management_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 `PutRuntimeManagementConfig`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutRuntimeManagementConfig;
    6      6   
impl PutRuntimeManagementConfig {
    7      7   
    /// Creates a new `PutRuntimeManagementConfig`
    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_runtime_management_config::PutRuntimeManagementConfigInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::put_runtime_management_config::PutRuntimeManagementConfigOutput::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_runtime_management_config::PutRuntimeManagementConfigInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::put_runtime_management_config::PutRuntimeManagementConfigOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::put_runtime_management_config::PutRuntimeManagementConfigError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +271,425 @@
  138    144   
                crate::operation::put_runtime_management_config::PutRuntimeManagementConfigError,
  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 PutRuntimeManagementConfigResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutRuntimeManagementConfigResponseDeserializer {
  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_runtime_management_config::de_put_runtime_management_config_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_put_runtime_management_config::de_put_runtime_management_config_http_response(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_runtime_management_config::PutRuntimeManagementConfigError::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_runtime_management_config::PutRuntimeManagementConfigError::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  +
                            }
  162    205   
                        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         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_runtime_management_config::PutRuntimeManagementConfigError::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_runtime_management_config::PutRuntimeManagementConfigError::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_runtime_management_config::PutRuntimeManagementConfigError::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_runtime_management_config::PutRuntimeManagementConfigError::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_runtime_management_config::PutRuntimeManagementConfigError::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  +
            ))
         320  +
        } else {
         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, PutRuntimeManagementConfig::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_runtime_management_config::PutRuntimeManagementConfigOutput::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 PutRuntimeManagementConfigRequestSerializer;
  168    345   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for PutRuntimeManagementConfigRequestSerializer {
  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_runtime_management_config::PutRuntimeManagementConfigInput>()
  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_runtime_management_config::PutRuntimeManagementConfigInput,
  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         -
                    "/2021-07-20/functions/{FunctionName}/runtime-management-config",
  203         -
                    FunctionName = function_name
  204         -
                )
  205         -
                .expect("formatting should succeed");
  206         -
                ::std::result::Result::Ok(())
  207         -
            }
  208         -
            fn uri_query(
  209         -
                _input: &crate::operation::put_runtime_management_config::PutRuntimeManagementConfigInput,
  210         -
                mut output: &mut ::std::string::String,
  211         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  212         -
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  213         -
                if let ::std::option::Option::Some(inner_2) = &_input.qualifier {
         355  +
        let protocol = _cfg
         356  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         357  +
            .expect("a SharedClientProtocol is required");
         358  +
        if protocol.supports_http_bindings() {
         359  +
            let mut request = protocol
         360  +
                .serialize_body(&input, PutRuntimeManagementConfig::INPUT_SCHEMA, "", _cfg)
         361  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  214    362   
            {
  215         -
                        query.push_kv("Qualifier", &::aws_smithy_http::query::fmt_string(inner_2));
         363  +
                let mut uri = "/2021-07-20/functions/{FunctionName}/runtime-management-config".to_string();
         364  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         365  +
                if let Some(ref val) = input.function_name {
         366  +
                    uri = uri.replace("{FunctionName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         367  +
                }
         368  +
                if let Some(ref val) = input.qualifier {
         369  +
                    query_params.push(("Qualifier".to_string(), val.to_string()));
         370  +
                }
         371  +
                if !query_params.is_empty() {
         372  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         373  +
                    let pairs: Vec<String> = query_params
         374  +
                        .iter()
         375  +
                        .map(|(k, v)| {
         376  +
                            format!(
         377  +
                                "{}={}",
         378  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         379  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         380  +
                            )
         381  +
                        })
         382  +
                        .collect();
         383  +
                    uri.push_str(&pairs.join("&"));
  216    384   
                }
         385  +
                request.set_uri(uri.as_str()).expect("valid URI");
  217    386   
            }
  218         -
                ::std::result::Result::Ok(())
         387  +
         388  +
            return ::std::result::Result::Ok(request);
         389  +
        } else {
         390  +
            let mut request = protocol
         391  +
                .serialize_request(&input, PutRuntimeManagementConfig::INPUT_SCHEMA, "", _cfg)
         392  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         393  +
         394  +
            return ::std::result::Result::Ok(request);
  219    395   
        }
  220         -
            #[allow(clippy::unnecessary_wraps)]
  221         -
            fn update_http_builder(
  222         -
                input: &crate::operation::put_runtime_management_config::PutRuntimeManagementConfigInput,
  223         -
                builder: ::http_1x::request::Builder,
  224         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  225         -
                let mut uri = ::std::string::String::new();
  226         -
                uri_base(input, &mut uri)?;
  227         -
                uri_query(input, &mut uri)?;
  228         -
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  229         -
            }
  230         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  231         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  232         -
            builder
  233         -
        };
  234         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  235         -
            crate::protocol_serde::shape_put_runtime_management_config::ser_put_runtime_management_config_input(&input)?,
  236         -
        );
  237         -
        if let Some(content_length) = body.content_length() {
  238         -
            let content_length = content_length.to_string();
  239         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  240         -
        }
  241         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  242    396   
    }
  243    397   
}
  244    398   
#[derive(Debug)]
  245    399   
struct PutRuntimeManagementConfigEndpointParamsInterceptor;
  246    400   
  247    401   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutRuntimeManagementConfigEndpointParamsInterceptor {
  248    402   
    fn name(&self) -> &'static str {
  249    403   
        "PutRuntimeManagementConfigEndpointParamsInterceptor"
  250    404   
    }
  251    405