AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36 (ignoring whitespace)

Files changed:

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

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

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

@@ -52,52 +208,265 @@
   72     72   
    "com.amazonaws.lambda.synthetic",
   73     73   
    "GetFunctionEventInvokeConfigOutput",
   74     74   
);
   75     75   
static GETFUNCTIONEVENTINVOKECONFIGOUTPUT_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#GetFunctionEventInvokeConfigOutput$LastModified",
   78     78   
        "com.amazonaws.lambda.synthetic",
   79     79   
        "GetFunctionEventInvokeConfigOutput",
   80     80   
    ),
   81     81   
    ::aws_smithy_schema::ShapeType::Timestamp,
   82         -
    "last_modified",
          82  +
    "LastModified",
   83     83   
    0,
   84     84   
);
   85     85   
static GETFUNCTIONEVENTINVOKECONFIGOUTPUT_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#GetFunctionEventInvokeConfigOutput$FunctionArn",
   88     88   
        "com.amazonaws.lambda.synthetic",
   89     89   
        "GetFunctionEventInvokeConfigOutput",
   90     90   
    ),
   91     91   
    ::aws_smithy_schema::ShapeType::String,
   92         -
    "function_arn",
          92  +
    "FunctionArn",
   93     93   
    1,
   94     94   
);
   95     95   
static GETFUNCTIONEVENTINVOKECONFIGOUTPUT_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#GetFunctionEventInvokeConfigOutput$MaximumRetryAttempts",
   98     98   
        "com.amazonaws.lambda.synthetic",
   99     99   
        "GetFunctionEventInvokeConfigOutput",
  100    100   
    ),
  101    101   
    ::aws_smithy_schema::ShapeType::Integer,
  102         -
    "maximum_retry_attempts",
         102  +
    "MaximumRetryAttempts",
  103    103   
    2,
  104    104   
);
  105    105   
static GETFUNCTIONEVENTINVOKECONFIGOUTPUT_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#GetFunctionEventInvokeConfigOutput$MaximumEventAgeInSeconds",
  108    108   
        "com.amazonaws.lambda.synthetic",
  109    109   
        "GetFunctionEventInvokeConfigOutput",
  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 GETFUNCTIONEVENTINVOKECONFIGOUTPUT_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#GetFunctionEventInvokeConfigOutput$DestinationConfig",
  118    118   
        "com.amazonaws.lambda.synthetic",
  119    119   
        "GetFunctionEventInvokeConfigOutput",
  120    120   
    ),
  121    121   
    ::aws_smithy_schema::ShapeType::Structure,
  122         -
    "destination_config",
         122  +
    "DestinationConfig",
  123    123   
    4,
  124    124   
);
         125  +
static GETFUNCTIONEVENTINVOKECONFIGOUTPUT_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 GETFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  126    133   
    GETFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA_ID,
  127    134   
    ::aws_smithy_schema::ShapeType::Structure,
  128    135   
    &[
  129    136   
        &GETFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_LAST_MODIFIED,
  130    137   
        &GETFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_FUNCTION_ARN,
  131    138   
        &GETFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_MAXIMUM_RETRY_ATTEMPTS,
  132    139   
        &GETFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_MAXIMUM_EVENT_AGE_IN_SECONDS,
  133    140   
        &GETFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_DESTINATION_CONFIG,
         141  +
        &GETFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER__REQUEST_ID,
  134    142   
    ],
  135    143   
);
  136    144   
impl GetFunctionEventInvokeConfigOutput {
  137    145   
    /// The schema for this shape.
  138    146   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA;
  139    147   
}
  140    148   
impl ::aws_smithy_schema::serde::SerializableStruct for GetFunctionEventInvokeConfigOutput {
  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(&GETFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_LAST_MODIFIED, val)?;
  148    156   
        }
  149    157   
        if let Some(ref val) = self.function_arn {
  150    158   
            ser.write_string(&GETFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_FUNCTION_ARN, val)?;
  151    159   
        }
  152    160   
        if let Some(ref val) = self.maximum_retry_attempts {
  153    161   
            ser.write_integer(&GETFUNCTIONEVENTINVOKECONFIGOUTPUT_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(&GETFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_MAXIMUM_EVENT_AGE_IN_SECONDS, *val)?;
  157    165   
        }
  158    166   
        if let Some(ref val) = self.destination_config {
  159    167   
            ser.write_struct(&GETFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER_DESTINATION_CONFIG, val)?;
  160    168   
        }
  161    169   
        Ok(())
  162    170   
    }
  163    171   
}
  164    172   
impl GetFunctionEventInvokeConfigOutput {
  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(&GETFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA, (), |_, member, deser| {
         186  +
        deserializer.read_struct(&GETFUNCTIONEVENTINVOKECONFIGOUTPUT_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 GetFunctionEventInvokeConfigOutput {
         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(&GETFUNCTIONEVENTINVOKECONFIGOUTPUT_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/get_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 `GetFunctionRecursionConfig`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetFunctionRecursionConfig;
    6      6   
impl GetFunctionRecursionConfig {
    7      7   
    /// Creates a new `GetFunctionRecursionConfig`
    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::get_function_recursion_config::GetFunctionRecursionConfigInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_function_recursion_config::GetFunctionRecursionConfigOutput::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::get_function_recursion_config::GetFunctionRecursionConfigInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_function_recursion_config::GetFunctionRecursionConfigOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_function_recursion_config::GetFunctionRecursionConfigError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -121,127 +252,396 @@
  141    147   
        ::std::borrow::Cow::Owned(rcb)
  142    148   
    }
  143    149   
}
  144    150   
  145    151   
#[derive(Debug)]
  146    152   
struct GetFunctionRecursionConfigResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetFunctionRecursionConfigResponseDeserializer {
  148    154   
    fn deserialize_nonstreaming(
  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_get_function_recursion_config::de_get_function_recursion_config_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_get_function_recursion_config::de_get_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::get_function_recursion_config::GetFunctionRecursionConfigError::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::get_function_recursion_config::GetFunctionRecursionConfigError::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  +
                "ResourceNotFoundException" => {
         214  +
                    crate::operation::get_function_recursion_config::GetFunctionRecursionConfigError::ResourceNotFoundException({
         215  +
                        let mut tmp = match protocol
         216  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         217  +
                            .and_then(|mut deser| {
         218  +
                                crate::types::error::ResourceNotFoundException::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  +
                "ServiceException" => crate::operation::get_function_recursion_config::GetFunctionRecursionConfigError::ServiceException({
         240  +
                    let mut tmp = match protocol
         241  +
                        .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         242  +
                        .and_then(|mut deser| {
         243  +
                            crate::types::error::ServiceException::deserialize_with_response(
         244  +
                                &mut *deser,
         245  +
                                response.headers(),
         246  +
                                response.status().into(),
         247  +
                                body,
         248  +
                            )
         249  +
                        }) {
         250  +
                        ::std::result::Result::Ok(val) => val,
         251  +
                        ::std::result::Result::Err(e) => {
         252  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         253  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         254  +
                            ))
         255  +
                        }
         256  +
                    };
         257  +
                    tmp.meta = generic;
         258  +
                    if tmp.message.is_none() {
         259  +
                        tmp.message = _error_message;
         260  +
                    }
         261  +
                    tmp
         262  +
                }),
         263  +
                "TooManyRequestsException" => {
         264  +
                    crate::operation::get_function_recursion_config::GetFunctionRecursionConfigError::TooManyRequestsException({
         265  +
                        let mut tmp = match protocol
         266  +
                            .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         267  +
                            .and_then(|mut deser| {
         268  +
                                crate::types::error::TooManyRequestsException::deserialize_with_response(
         269  +
                                    &mut *deser,
         270  +
                                    response.headers(),
         271  +
                                    response.status().into(),
         272  +
                                    body,
         273  +
                                )
         274  +
                            }) {
         275  +
                            ::std::result::Result::Ok(val) => val,
         276  +
                            ::std::result::Result::Err(e) => {
         277  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         278  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         279  +
                                ))
         280  +
                            }
         281  +
                        };
         282  +
                        tmp.meta = generic;
         283  +
                        if tmp.message.is_none() {
         284  +
                            tmp.message = _error_message;
         285  +
                        }
         286  +
                        tmp
         287  +
                    })
         288  +
                }
         289  +
                _ => crate::operation::get_function_recursion_config::GetFunctionRecursionConfigError::generic(generic),
         290  +
            };
         291  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         292  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         293  +
            ))
         294  +
        } else {
         295  +
            let protocol = _cfg
         296  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         297  +
                .expect("a SharedClientProtocol is required");
         298  +
            let mut deser = protocol
         299  +
                .deserialize_response(response, GetFunctionRecursionConfig::OUTPUT_SCHEMA, _cfg)
         300  +
                .map_err(|e| {
         301  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         302  +
                })?;
         303  +
            let body = response.body().bytes().expect("body loaded");
         304  +
            let output = crate::operation::get_function_recursion_config::GetFunctionRecursionConfigOutput::deserialize_with_response(
         305  +
                &mut *deser,
         306  +
                response.headers(),
         307  +
                response.status().into(),
         308  +
                body,
         309  +
            )
         310  +
            .map_err(|e| {
         311  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         312  +
            })?;
         313  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         314  +
        }
  164    315   
    }
  165    316   
}
  166    317   
#[derive(Debug)]
  167    318   
struct GetFunctionRecursionConfigRequestSerializer;
  168    319   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetFunctionRecursionConfigRequestSerializer {
  169    320   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    321   
    fn serialize_input(
  171    322   
        &self,
  172    323   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    324   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    325   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    326   
        let input = input
  176    327   
            .downcast::<crate::operation::get_function_recursion_config::GetFunctionRecursionConfigInput>()
  177    328   
            .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::get_function_recursion_config::GetFunctionRecursionConfigInput,
  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
         329  +
        let protocol = _cfg
         330  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         331  +
            .expect("a SharedClientProtocol is required");
         332  +
        if protocol.supports_http_bindings() {
         333  +
            let mut request = protocol
         334  +
                .serialize_body(&input, GetFunctionRecursionConfig::INPUT_SCHEMA, "", _cfg)
         335  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         336  +
            {
         337  +
                let mut uri = "/2024-08-31/functions/{FunctionName}/recursion-config".to_string();
         338  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         339  +
                if let Some(ref val) = input.function_name {
         340  +
                    uri = uri.replace("{FunctionName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         341  +
                }
         342  +
                if !query_params.is_empty() {
         343  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         344  +
                    let pairs: Vec<String> = query_params
         345  +
                        .iter()
         346  +
                        .map(|(k, v)| {
         347  +
                            format!(
         348  +
                                "{}={}",
         349  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         350  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
  204    351   
                            )
  205         -
                .expect("formatting should succeed");
  206         -
                ::std::result::Result::Ok(())
         352  +
                        })
         353  +
                        .collect();
         354  +
                    uri.push_str(&pairs.join("&"));
         355  +
                }
         356  +
                request.set_uri(uri.as_str()).expect("valid URI");
  207    357   
            }
  208         -
            #[allow(clippy::unnecessary_wraps)]
  209         -
            fn update_http_builder(
  210         -
                input: &crate::operation::get_function_recursion_config::GetFunctionRecursionConfigInput,
  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("GET").uri(uri))
  216         -
            }
  217         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  218         -
            builder
  219         -
        };
  220         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
  221    358   
  222         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         359  +
            return ::std::result::Result::Ok(request);
         360  +
        } else {
         361  +
            let mut request = protocol
         362  +
                .serialize_request(&input, GetFunctionRecursionConfig::INPUT_SCHEMA, "", _cfg)
         363  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         364  +
         365  +
            return ::std::result::Result::Ok(request);
         366  +
        }
  223    367   
    }
  224    368   
}
  225    369   
#[derive(Debug)]
  226    370   
struct GetFunctionRecursionConfigEndpointParamsInterceptor;
  227    371   
  228    372   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetFunctionRecursionConfigEndpointParamsInterceptor {
  229    373   
    fn name(&self) -> &'static str {
  230    374   
        "GetFunctionRecursionConfigEndpointParamsInterceptor"
  231    375   
    }
  232    376   

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

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

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

@@ -2,2 +100,147 @@
   22     22   
    "com.amazonaws.lambda.synthetic",
   23     23   
    "GetFunctionRecursionConfigOutput",
   24     24   
);
   25     25   
static GETFUNCTIONRECURSIONCONFIGOUTPUT_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#GetFunctionRecursionConfigOutput$RecursiveLoop",
   28     28   
        "com.amazonaws.lambda.synthetic",
   29     29   
        "GetFunctionRecursionConfigOutput",
   30     30   
    ),
   31     31   
    ::aws_smithy_schema::ShapeType::String,
   32         -
    "recursive_loop",
          32  +
    "RecursiveLoop",
   33     33   
    0,
   34     34   
);
          35  +
static GETFUNCTIONRECURSIONCONFIGOUTPUT_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 GETFUNCTIONRECURSIONCONFIGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   36     43   
    GETFUNCTIONRECURSIONCONFIGOUTPUT_SCHEMA_ID,
   37     44   
    ::aws_smithy_schema::ShapeType::Structure,
   38         -
    &[&GETFUNCTIONRECURSIONCONFIGOUTPUT_MEMBER_RECURSIVE_LOOP],
          45  +
    &[
          46  +
        &GETFUNCTIONRECURSIONCONFIGOUTPUT_MEMBER_RECURSIVE_LOOP,
          47  +
        &GETFUNCTIONRECURSIONCONFIGOUTPUT_MEMBER__REQUEST_ID,
          48  +
    ],
   39     49   
);
   40     50   
impl GetFunctionRecursionConfigOutput {
   41     51   
    /// The schema for this shape.
   42     52   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETFUNCTIONRECURSIONCONFIGOUTPUT_SCHEMA;
   43     53   
}
   44     54   
impl ::aws_smithy_schema::serde::SerializableStruct for GetFunctionRecursionConfigOutput {
   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(&GETFUNCTIONRECURSIONCONFIGOUTPUT_MEMBER_RECURSIVE_LOOP, val.as_str())?;
   52     62   
        }
   53     63   
        Ok(())
   54     64   
    }
   55     65   
}
   56     66   
impl GetFunctionRecursionConfigOutput {
   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(&GETFUNCTIONRECURSIONCONFIGOUTPUT_SCHEMA, (), |_, member, deser| {
          80  +
        deserializer.read_struct(&GETFUNCTIONRECURSIONCONFIGOUTPUT_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 GetFunctionRecursionConfigOutput {
          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(&GETFUNCTIONRECURSIONCONFIGOUTPUT_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/get_function_url_config.rs

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

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

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

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

@@ -50,50 +239,308 @@
   70     70   
    "com.amazonaws.lambda.synthetic",
   71     71   
    "GetFunctionUrlConfigOutput",
   72     72   
);
   73     73   
static GETFUNCTIONURLCONFIGOUTPUT_MEMBER_FUNCTION_URL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   74     74   
    ::aws_smithy_schema::ShapeId::from_static(
   75     75   
        "com.amazonaws.lambda.synthetic#GetFunctionUrlConfigOutput$FunctionUrl",
   76     76   
        "com.amazonaws.lambda.synthetic",
   77     77   
        "GetFunctionUrlConfigOutput",
   78     78   
    ),
   79     79   
    ::aws_smithy_schema::ShapeType::String,
   80         -
    "function_url",
          80  +
    "FunctionUrl",
   81     81   
    0,
   82     82   
);
   83     83   
static GETFUNCTIONURLCONFIGOUTPUT_MEMBER_FUNCTION_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   84     84   
    ::aws_smithy_schema::ShapeId::from_static(
   85     85   
        "com.amazonaws.lambda.synthetic#GetFunctionUrlConfigOutput$FunctionArn",
   86     86   
        "com.amazonaws.lambda.synthetic",
   87     87   
        "GetFunctionUrlConfigOutput",
   88     88   
    ),
   89     89   
    ::aws_smithy_schema::ShapeType::String,
   90         -
    "function_arn",
          90  +
    "FunctionArn",
   91     91   
    1,
   92     92   
);
   93     93   
static GETFUNCTIONURLCONFIGOUTPUT_MEMBER_AUTH_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   94     94   
    ::aws_smithy_schema::ShapeId::from_static(
   95     95   
        "com.amazonaws.lambda.synthetic#GetFunctionUrlConfigOutput$AuthType",
   96     96   
        "com.amazonaws.lambda.synthetic",
   97     97   
        "GetFunctionUrlConfigOutput",
   98     98   
    ),
   99     99   
    ::aws_smithy_schema::ShapeType::String,
  100         -
    "auth_type",
         100  +
    "AuthType",
  101    101   
    2,
  102    102   
);
  103    103   
static GETFUNCTIONURLCONFIGOUTPUT_MEMBER_CORS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  104    104   
    ::aws_smithy_schema::ShapeId::from_static(
  105    105   
        "com.amazonaws.lambda.synthetic#GetFunctionUrlConfigOutput$Cors",
  106    106   
        "com.amazonaws.lambda.synthetic",
  107    107   
        "GetFunctionUrlConfigOutput",
  108    108   
    ),
  109    109   
    ::aws_smithy_schema::ShapeType::Structure,
  110         -
    "cors",
         110  +
    "Cors",
  111    111   
    3,
  112    112   
);
  113    113   
static GETFUNCTIONURLCONFIGOUTPUT_MEMBER_CREATION_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  114    114   
    ::aws_smithy_schema::ShapeId::from_static(
  115    115   
        "com.amazonaws.lambda.synthetic#GetFunctionUrlConfigOutput$CreationTime",
  116    116   
        "com.amazonaws.lambda.synthetic",
  117    117   
        "GetFunctionUrlConfigOutput",
  118    118   
    ),
  119    119   
    ::aws_smithy_schema::ShapeType::String,
  120         -
    "creation_time",
         120  +
    "CreationTime",
  121    121   
    4,
  122    122   
);
  123    123   
static GETFUNCTIONURLCONFIGOUTPUT_MEMBER_LAST_MODIFIED_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  124    124   
    ::aws_smithy_schema::ShapeId::from_static(
  125    125   
        "com.amazonaws.lambda.synthetic#GetFunctionUrlConfigOutput$LastModifiedTime",
  126    126   
        "com.amazonaws.lambda.synthetic",
  127    127   
        "GetFunctionUrlConfigOutput",
  128    128   
    ),
  129    129   
    ::aws_smithy_schema::ShapeType::String,
  130         -
    "last_modified_time",
         130  +
    "LastModifiedTime",
  131    131   
    5,
  132    132   
);
  133    133   
static GETFUNCTIONURLCONFIGOUTPUT_MEMBER_INVOKE_MODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  134    134   
    ::aws_smithy_schema::ShapeId::from_static(
  135    135   
        "com.amazonaws.lambda.synthetic#GetFunctionUrlConfigOutput$InvokeMode",
  136    136   
        "com.amazonaws.lambda.synthetic",
  137    137   
        "GetFunctionUrlConfigOutput",
  138    138   
    ),
  139    139   
    ::aws_smithy_schema::ShapeType::String,
  140         -
    "invoke_mode",
         140  +
    "InvokeMode",
  141    141   
    6,
  142    142   
);
         143  +
static GETFUNCTIONURLCONFIGOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         144  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         145  +
    ::aws_smithy_schema::ShapeType::String,
         146  +
    "request_id",
         147  +
    7,
         148  +
)
         149  +
.with_http_header("x-amzn-requestid");
  143    150   
static GETFUNCTIONURLCONFIGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  144    151   
    GETFUNCTIONURLCONFIGOUTPUT_SCHEMA_ID,
  145    152   
    ::aws_smithy_schema::ShapeType::Structure,
  146    153   
    &[
  147    154   
        &GETFUNCTIONURLCONFIGOUTPUT_MEMBER_FUNCTION_URL,
  148    155   
        &GETFUNCTIONURLCONFIGOUTPUT_MEMBER_FUNCTION_ARN,
  149    156   
        &GETFUNCTIONURLCONFIGOUTPUT_MEMBER_AUTH_TYPE,
  150    157   
        &GETFUNCTIONURLCONFIGOUTPUT_MEMBER_CORS,
  151    158   
        &GETFUNCTIONURLCONFIGOUTPUT_MEMBER_CREATION_TIME,
  152    159   
        &GETFUNCTIONURLCONFIGOUTPUT_MEMBER_LAST_MODIFIED_TIME,
  153    160   
        &GETFUNCTIONURLCONFIGOUTPUT_MEMBER_INVOKE_MODE,
         161  +
        &GETFUNCTIONURLCONFIGOUTPUT_MEMBER__REQUEST_ID,
  154    162   
    ],
  155    163   
);
  156    164   
impl GetFunctionUrlConfigOutput {
  157    165   
    /// The schema for this shape.
  158    166   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETFUNCTIONURLCONFIGOUTPUT_SCHEMA;
  159    167   
}
  160    168   
impl ::aws_smithy_schema::serde::SerializableStruct for GetFunctionUrlConfigOutput {
  161    169   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  162    170   
    fn serialize_members(
  163    171   
        &self,
  164    172   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  165    173   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  166    174   
        {
  167    175   
            let val = &self.function_url;
  168    176   
            ser.write_string(&GETFUNCTIONURLCONFIGOUTPUT_MEMBER_FUNCTION_URL, val)?;
  169    177   
        }
  170    178   
        {
  171    179   
            let val = &self.function_arn;
  172    180   
            ser.write_string(&GETFUNCTIONURLCONFIGOUTPUT_MEMBER_FUNCTION_ARN, val)?;
  173    181   
        }
  174    182   
        {
  175    183   
            let val = &self.auth_type;
  176    184   
            ser.write_string(&GETFUNCTIONURLCONFIGOUTPUT_MEMBER_AUTH_TYPE, val.as_str())?;
  177    185   
        }
  178    186   
        if let Some(ref val) = self.cors {
  179    187   
            ser.write_struct(&GETFUNCTIONURLCONFIGOUTPUT_MEMBER_CORS, val)?;
  180    188   
        }
  181    189   
        {
  182    190   
            let val = &self.creation_time;
  183    191   
            ser.write_string(&GETFUNCTIONURLCONFIGOUTPUT_MEMBER_CREATION_TIME, val)?;
  184    192   
        }
  185    193   
        {
  186    194   
            let val = &self.last_modified_time;
  187    195   
            ser.write_string(&GETFUNCTIONURLCONFIGOUTPUT_MEMBER_LAST_MODIFIED_TIME, val)?;
  188    196   
        }
  189    197   
        if let Some(ref val) = self.invoke_mode {
  190    198   
            ser.write_string(&GETFUNCTIONURLCONFIGOUTPUT_MEMBER_INVOKE_MODE, val.as_str())?;
  191    199   
        }
  192    200   
        Ok(())
  193    201   
    }
  194    202   
}
  195    203   
impl GetFunctionUrlConfigOutput {
  196    204   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  197         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  198         -
        deserializer: &mut D,
         205  +
    pub fn deserialize(
         206  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         207  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         208  +
        #[allow(unused_variables, unused_mut)]
         209  +
        let mut builder = Self::builder();
         210  +
        #[allow(
         211  +
            unused_variables,
         212  +
            unreachable_code,
         213  +
            clippy::single_match,
         214  +
            clippy::match_single_binding,
         215  +
            clippy::diverging_sub_expression
         216  +
        )]
         217  +
        deserializer.read_struct(&GETFUNCTIONURLCONFIGOUTPUT_SCHEMA, &mut |member, deser| {
         218  +
            match member.member_index() {
         219  +
                Some(0) => {
         220  +
                    builder.function_url = Some(deser.read_string(member)?);
         221  +
                }
         222  +
                Some(1) => {
         223  +
                    builder.function_arn = Some(deser.read_string(member)?);
         224  +
                }
         225  +
                Some(2) => {
         226  +
                    builder.auth_type = Some(crate::types::FunctionUrlAuthType::from(deser.read_string(member)?.as_str()));
         227  +
                }
         228  +
                Some(3) => {
         229  +
                    builder.cors = Some(crate::types::Cors::deserialize(deser)?);
         230  +
                }
         231  +
                Some(4) => {
         232  +
                    builder.creation_time = Some(deser.read_string(member)?);
         233  +
                }
         234  +
                Some(5) => {
         235  +
                    builder.last_modified_time = Some(deser.read_string(member)?);
         236  +
                }
         237  +
                Some(6) => {
         238  +
                    builder.invoke_mode = Some(crate::types::InvokeMode::from(deser.read_string(member)?.as_str()));
         239  +
                }
         240  +
                Some(7) => {
         241  +
                    builder._request_id = Some(deser.read_string(member)?);
         242  +
                }
         243  +
                _ => {}
         244  +
            }
         245  +
            Ok(())
         246  +
        })?;
         247  +
        builder.function_url = builder.function_url.or(Some(String::new()));
         248  +
        builder.function_arn = builder.function_arn.or(Some(String::new()));
         249  +
        builder.creation_time = builder.creation_time.or(Some(String::new()));
         250  +
        builder.last_modified_time = builder.last_modified_time.or(Some(String::new()));
         251  +
        builder
         252  +
            .build()
         253  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         254  +
    }
         255  +
}
         256  +
impl GetFunctionUrlConfigOutput {
         257  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         258  +
    /// Header-bound members are read directly from headers, avoiding runtime
         259  +
    /// member iteration overhead. Body members are read via the deserializer.
         260  +
    pub fn deserialize_with_response(
         261  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         262  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         263  +
        _status: u16,
         264  +
        _body: &[u8],
  199    265   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  200    266   
        #[allow(unused_variables, unused_mut)]
  201    267   
        let mut builder = Self::builder();
         268  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         269  +
            builder._request_id = Some(val.to_string());
         270  +
        }
  202    271   
        #[allow(
  203    272   
            unused_variables,
  204    273   
            unreachable_code,
  205    274   
            clippy::single_match,
  206    275   
            clippy::match_single_binding,
  207    276   
            clippy::diverging_sub_expression
  208    277   
        )]
  209         -
        deserializer.read_struct(&GETFUNCTIONURLCONFIGOUTPUT_SCHEMA, (), |_, member, deser| {
         278  +
        deserializer.read_struct(&GETFUNCTIONURLCONFIGOUTPUT_SCHEMA, &mut |member, deser| {
  210    279   
            match member.member_index() {
  211    280   
                Some(0) => {
  212    281   
                    builder.function_url = Some(deser.read_string(member)?);
  213    282   
                }
  214    283   
                Some(1) => {
  215    284   
                    builder.function_arn = Some(deser.read_string(member)?);
  216    285   
                }
  217    286   
                Some(2) => {
  218    287   
                    builder.auth_type = Some(crate::types::FunctionUrlAuthType::from(deser.read_string(member)?.as_str()));
  219    288   
                }

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

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