AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12

Files changed:

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

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

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

@@ -22,22 +206,253 @@
   42     42   
    "com.amazonaws.lambda.synthetic",
   43     43   
    "GetFunctionOutput",
   44     44   
);
   45     45   
static GETFUNCTIONOUTPUT_MEMBER_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   46     46   
    ::aws_smithy_schema::ShapeId::from_static(
   47     47   
        "com.amazonaws.lambda.synthetic#GetFunctionOutput$Configuration",
   48     48   
        "com.amazonaws.lambda.synthetic",
   49     49   
        "GetFunctionOutput",
   50     50   
    ),
   51     51   
    ::aws_smithy_schema::ShapeType::Structure,
   52         -
    "configuration",
          52  +
    "Configuration",
   53     53   
    0,
   54     54   
);
   55     55   
static GETFUNCTIONOUTPUT_MEMBER_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.lambda.synthetic#GetFunctionOutput$Code",
   58     58   
        "com.amazonaws.lambda.synthetic",
   59     59   
        "GetFunctionOutput",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::Structure,
   62         -
    "code",
          62  +
    "Code",
   63     63   
    1,
   64     64   
);
   65     65   
static GETFUNCTIONOUTPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   66     66   
    ::aws_smithy_schema::ShapeId::from_static(
   67     67   
        "com.amazonaws.lambda.synthetic#GetFunctionOutput$Tags",
   68     68   
        "com.amazonaws.lambda.synthetic",
   69     69   
        "GetFunctionOutput",
   70     70   
    ),
   71     71   
    ::aws_smithy_schema::ShapeType::Map,
   72         -
    "tags",
          72  +
    "Tags",
   73     73   
    2,
   74     74   
);
   75     75   
static GETFUNCTIONOUTPUT_MEMBER_TAGS_ERROR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   76     76   
    ::aws_smithy_schema::ShapeId::from_static(
   77     77   
        "com.amazonaws.lambda.synthetic#GetFunctionOutput$TagsError",
   78     78   
        "com.amazonaws.lambda.synthetic",
   79     79   
        "GetFunctionOutput",
   80     80   
    ),
   81     81   
    ::aws_smithy_schema::ShapeType::Structure,
   82         -
    "tags_error",
          82  +
    "TagsError",
   83     83   
    3,
   84     84   
);
   85     85   
static GETFUNCTIONOUTPUT_MEMBER_CONCURRENCY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   86     86   
    ::aws_smithy_schema::ShapeId::from_static(
   87     87   
        "com.amazonaws.lambda.synthetic#GetFunctionOutput$Concurrency",
   88     88   
        "com.amazonaws.lambda.synthetic",
   89     89   
        "GetFunctionOutput",
   90     90   
    ),
   91     91   
    ::aws_smithy_schema::ShapeType::Structure,
   92         -
    "concurrency",
          92  +
    "Concurrency",
   93     93   
    4,
   94     94   
);
          95  +
static GETFUNCTIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          96  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          97  +
    ::aws_smithy_schema::ShapeType::String,
          98  +
    "request_id",
          99  +
    5,
         100  +
)
         101  +
.with_http_header("x-amzn-requestid");
   95    102   
static GETFUNCTIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   96    103   
    GETFUNCTIONOUTPUT_SCHEMA_ID,
   97    104   
    ::aws_smithy_schema::ShapeType::Structure,
   98    105   
    &[
   99    106   
        &GETFUNCTIONOUTPUT_MEMBER_CONFIGURATION,
  100    107   
        &GETFUNCTIONOUTPUT_MEMBER_CODE,
  101    108   
        &GETFUNCTIONOUTPUT_MEMBER_TAGS,
  102    109   
        &GETFUNCTIONOUTPUT_MEMBER_TAGS_ERROR,
  103    110   
        &GETFUNCTIONOUTPUT_MEMBER_CONCURRENCY,
         111  +
        &GETFUNCTIONOUTPUT_MEMBER__REQUEST_ID,
  104    112   
    ],
  105    113   
);
  106    114   
impl GetFunctionOutput {
  107    115   
    /// The schema for this shape.
  108    116   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETFUNCTIONOUTPUT_SCHEMA;
  109    117   
}
  110    118   
impl ::aws_smithy_schema::serde::SerializableStruct for GetFunctionOutput {
  111    119   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  112    120   
    fn serialize_members(
  113    121   
        &self,
  114    122   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  115    123   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  116    124   
        if let Some(ref val) = self.configuration {
  117    125   
            ser.write_struct(&GETFUNCTIONOUTPUT_MEMBER_CONFIGURATION, val)?;
  118    126   
        }
  119    127   
        if let Some(ref val) = self.code {
  120    128   
            ser.write_struct(&GETFUNCTIONOUTPUT_MEMBER_CODE, val)?;
  121    129   
        }
  122    130   
        if let Some(ref val) = self.tags {
  123    131   
            ser.write_map(
  124    132   
                &GETFUNCTIONOUTPUT_MEMBER_TAGS,
  125    133   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  126    134   
                    for (key, value) in val {
  127    135   
                        ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
  128    136   
                        ser.write_string(&::aws_smithy_schema::prelude::STRING, value)?;
  129    137   
                    }
  130    138   
                    Ok(())
  131    139   
                },
  132    140   
            )?;
  133    141   
        }
  134    142   
        if let Some(ref val) = self.tags_error {
  135    143   
            ser.write_struct(&GETFUNCTIONOUTPUT_MEMBER_TAGS_ERROR, val)?;
  136    144   
        }
  137    145   
        if let Some(ref val) = self.concurrency {
  138    146   
            ser.write_struct(&GETFUNCTIONOUTPUT_MEMBER_CONCURRENCY, val)?;
  139    147   
        }
  140    148   
        Ok(())
  141    149   
    }
  142    150   
}
  143    151   
impl GetFunctionOutput {
  144    152   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  145         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  146         -
        deserializer: &mut D,
         153  +
    pub fn deserialize(
         154  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  147    155   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  148    156   
        #[allow(unused_variables, unused_mut)]
  149    157   
        let mut builder = Self::builder();
  150    158   
        #[allow(
  151    159   
            unused_variables,
  152    160   
            unreachable_code,
  153    161   
            clippy::single_match,
  154    162   
            clippy::match_single_binding,
  155    163   
            clippy::diverging_sub_expression
  156    164   
        )]
  157         -
        deserializer.read_struct(&GETFUNCTIONOUTPUT_SCHEMA, (), |_, member, deser| {
         165  +
        deserializer.read_struct(&GETFUNCTIONOUTPUT_SCHEMA, &mut |member, deser| {
  158    166   
            match member.member_index() {
  159    167   
                Some(0) => {
  160    168   
                    builder.configuration = Some(crate::types::FunctionConfiguration::deserialize(deser)?);
  161    169   
                }
  162    170   
                Some(1) => {
  163    171   
                    builder.code = Some(crate::types::FunctionCodeLocation::deserialize(deser)?);
  164    172   
                }
  165    173   
                Some(2) => {
  166         -
                    builder.tags = Some({
  167         -
                        let container = if let Some(cap) = deser.container_size() {
  168         -
                            std::collections::HashMap::with_capacity(cap)
  169         -
                        } else {
  170         -
                            std::collections::HashMap::new()
  171         -
                        };
  172         -
                        deser.read_map(member, container, |mut map, key, deser| {
  173         -
                            map.insert(key, deser.read_string(member)?);
  174         -
                            Ok(map)
  175         -
                        })?
  176         -
                    });
         174  +
                    builder.tags = Some(deser.read_string_string_map(member)?);
         175  +
                }
         176  +
                Some(3) => {
         177  +
                    builder.tags_error = Some(crate::types::TagsError::deserialize(deser)?);
         178  +
                }
         179  +
                Some(4) => {
         180  +
                    builder.concurrency = Some(crate::types::Concurrency::deserialize(deser)?);
         181  +
                }
         182  +
                Some(5) => {
         183  +
                    builder._request_id = Some(deser.read_string(member)?);
         184  +
                }
         185  +
                _ => {}
         186  +
            }
         187  +
            Ok(())
         188  +
        })?;
         189  +
        Ok(builder.build())
         190  +
    }
         191  +
}
         192  +
impl GetFunctionOutput {
         193  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         194  +
    /// Header-bound members are read directly from headers, avoiding runtime
         195  +
    /// member iteration overhead. Body members are read via the deserializer.
         196  +
    pub fn deserialize_with_response(
         197  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         198  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         199  +
        _status: u16,
         200  +
        _body: &[u8],
         201  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         202  +
        #[allow(unused_variables, unused_mut)]
         203  +
        let mut builder = Self::builder();
         204  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         205  +
            builder._request_id = Some(val.to_string());
         206  +
        }
         207  +
        #[allow(
         208  +
            unused_variables,
         209  +
            unreachable_code,
         210  +
            clippy::single_match,
         211  +
            clippy::match_single_binding,
         212  +
            clippy::diverging_sub_expression
         213  +
        )]
         214  +
        deserializer.read_struct(&GETFUNCTIONOUTPUT_SCHEMA, &mut |member, deser| {
         215  +
            match member.member_index() {
         216  +
                Some(0) => {
         217  +
                    builder.configuration = Some(crate::types::FunctionConfiguration::deserialize(deser)?);
         218  +
                }
         219  +
                Some(1) => {
         220  +
                    builder.code = Some(crate::types::FunctionCodeLocation::deserialize(deser)?);
         221  +
                }
         222  +
                Some(2) => {
         223  +
                    builder.tags = Some(deser.read_string_string_map(member)?);
  177    224   
                }
  178    225   
                Some(3) => {
  179    226   
                    builder.tags_error = Some(crate::types::TagsError::deserialize(deser)?);
  180    227   
                }
  181    228   
                Some(4) => {
  182    229   
                    builder.concurrency = Some(crate::types::Concurrency::deserialize(deser)?);
  183    230   
                }
  184    231   
                _ => {}
  185    232   
            }
  186    233   
            Ok(())

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

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

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

@@ -17,17 +129,146 @@
   37     37   
    "com.amazonaws.lambda.synthetic",
   38     38   
    "GetFunctionCodeSigningConfigInput",
   39     39   
);
   40     40   
static GETFUNCTIONCODESIGNINGCONFIGINPUT_MEMBER_FUNCTION_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.lambda.synthetic#GetFunctionCodeSigningConfigInput$FunctionName",
   43     43   
        "com.amazonaws.lambda.synthetic",
   44     44   
        "GetFunctionCodeSigningConfigInput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::String,
   47         -
    "function_name",
          47  +
    "FunctionName",
   48     48   
    0,
   49     49   
)
   50     50   
.with_http_label();
   51     51   
static GETFUNCTIONCODESIGNINGCONFIGINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     52   
    GETFUNCTIONCODESIGNINGCONFIGINPUT_SCHEMA_ID,
   53     53   
    ::aws_smithy_schema::ShapeType::Structure,
   54     54   
    &[&GETFUNCTIONCODESIGNINGCONFIGINPUT_MEMBER_FUNCTION_NAME],
   55         -
);
          55  +
)
          56  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          57  +
    "GET",
          58  +
    "/2020-06-30/functions/{FunctionName}/code-signing-config",
          59  +
    None,
          60  +
));
   56     61   
impl GetFunctionCodeSigningConfigInput {
   57     62   
    /// The schema for this shape.
   58     63   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETFUNCTIONCODESIGNINGCONFIGINPUT_SCHEMA;
   59     64   
}
   60     65   
impl ::aws_smithy_schema::serde::SerializableStruct for GetFunctionCodeSigningConfigInput {
   61     66   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   62     67   
    fn serialize_members(
   63     68   
        &self,
   64     69   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   65     70   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   66     71   
        if let Some(ref val) = self.function_name {
   67     72   
            ser.write_string(&GETFUNCTIONCODESIGNINGCONFIGINPUT_MEMBER_FUNCTION_NAME, val)?;
   68     73   
        }
   69     74   
        Ok(())
   70     75   
    }
   71     76   
}
   72     77   
impl GetFunctionCodeSigningConfigInput {
   73     78   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   74         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   75         -
        deserializer: &mut D,
          79  +
    pub fn deserialize(
          80  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   76     81   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   77     82   
        #[allow(unused_variables, unused_mut)]
   78     83   
        let mut builder = Self::builder();
   79     84   
        #[allow(
   80     85   
            unused_variables,
   81     86   
            unreachable_code,
   82     87   
            clippy::single_match,
   83     88   
            clippy::match_single_binding,
   84     89   
            clippy::diverging_sub_expression
   85     90   
        )]
   86         -
        deserializer.read_struct(&GETFUNCTIONCODESIGNINGCONFIGINPUT_SCHEMA, (), |_, member, deser| {
          91  +
        deserializer.read_struct(&GETFUNCTIONCODESIGNINGCONFIGINPUT_SCHEMA, &mut |member, deser| {
   87     92   
            match member.member_index() {
   88     93   
                Some(0) => {
   89     94   
                    builder.function_name = Some(deser.read_string(member)?);
   90     95   
                }
   91     96   
                _ => {}
   92     97   
            }
   93     98   
            Ok(())
   94     99   
        })?;
         100  +
        builder.function_name = builder.function_name.or(Some(String::new()));
   95    101   
        builder
   96    102   
            .build()
   97    103   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   98    104   
    }
   99    105   
}
         106  +
impl GetFunctionCodeSigningConfigInput {
         107  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         108  +
    pub fn deserialize_with_response(
         109  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         110  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         111  +
        _status: u16,
         112  +
        _body: &[u8],
         113  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         114  +
        Self::deserialize(deserializer)
         115  +
    }
         116  +
}
  100    117   
impl GetFunctionCodeSigningConfigInput {
  101    118   
    /// Creates a new builder-style object to manufacture [`GetFunctionCodeSigningConfigInput`](crate::operation::get_function_code_signing_config::GetFunctionCodeSigningConfigInput).
  102    119   
    pub fn builder() -> crate::operation::get_function_code_signing_config::builders::GetFunctionCodeSigningConfigInputBuilder {
  103    120   
        crate::operation::get_function_code_signing_config::builders::GetFunctionCodeSigningConfigInputBuilder::default()
  104    121   
    }
  105    122   
}
  106    123   
  107    124   
/// A builder for [`GetFunctionCodeSigningConfigInput`](crate::operation::get_function_code_signing_config::GetFunctionCodeSigningConfigInput).
  108    125   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  109    126   
#[non_exhaustive]

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

@@ -26,26 +142,194 @@
   46     46   
    "com.amazonaws.lambda.synthetic",
   47     47   
    "GetFunctionCodeSigningConfigOutput",
   48     48   
);
   49     49   
static GETFUNCTIONCODESIGNINGCONFIGOUTPUT_MEMBER_CODE_SIGNING_CONFIG_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   50     50   
    ::aws_smithy_schema::ShapeId::from_static(
   51     51   
        "com.amazonaws.lambda.synthetic#GetFunctionCodeSigningConfigOutput$CodeSigningConfigArn",
   52     52   
        "com.amazonaws.lambda.synthetic",
   53     53   
        "GetFunctionCodeSigningConfigOutput",
   54     54   
    ),
   55     55   
    ::aws_smithy_schema::ShapeType::String,
   56         -
    "code_signing_config_arn",
          56  +
    "CodeSigningConfigArn",
   57     57   
    0,
   58     58   
);
   59     59   
static GETFUNCTIONCODESIGNINGCONFIGOUTPUT_MEMBER_FUNCTION_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   60     60   
    ::aws_smithy_schema::ShapeId::from_static(
   61     61   
        "com.amazonaws.lambda.synthetic#GetFunctionCodeSigningConfigOutput$FunctionName",
   62     62   
        "com.amazonaws.lambda.synthetic",
   63     63   
        "GetFunctionCodeSigningConfigOutput",
   64     64   
    ),
   65     65   
    ::aws_smithy_schema::ShapeType::String,
   66         -
    "function_name",
          66  +
    "FunctionName",
   67     67   
    1,
   68     68   
);
          69  +
static GETFUNCTIONCODESIGNINGCONFIGOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          70  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          71  +
    ::aws_smithy_schema::ShapeType::String,
          72  +
    "request_id",
          73  +
    2,
          74  +
)
          75  +
.with_http_header("x-amzn-requestid");
   69     76   
static GETFUNCTIONCODESIGNINGCONFIGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   70     77   
    GETFUNCTIONCODESIGNINGCONFIGOUTPUT_SCHEMA_ID,
   71     78   
    ::aws_smithy_schema::ShapeType::Structure,
   72     79   
    &[
   73     80   
        &GETFUNCTIONCODESIGNINGCONFIGOUTPUT_MEMBER_CODE_SIGNING_CONFIG_ARN,
   74     81   
        &GETFUNCTIONCODESIGNINGCONFIGOUTPUT_MEMBER_FUNCTION_NAME,
          82  +
        &GETFUNCTIONCODESIGNINGCONFIGOUTPUT_MEMBER__REQUEST_ID,
   75     83   
    ],
   76     84   
);
   77     85   
impl GetFunctionCodeSigningConfigOutput {
   78     86   
    /// The schema for this shape.
   79     87   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETFUNCTIONCODESIGNINGCONFIGOUTPUT_SCHEMA;
   80     88   
}
   81     89   
impl ::aws_smithy_schema::serde::SerializableStruct for GetFunctionCodeSigningConfigOutput {
   82     90   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   83     91   
    fn serialize_members(
   84     92   
        &self,
   85     93   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   86     94   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   87     95   
        {
   88     96   
            let val = &self.code_signing_config_arn;
   89     97   
            ser.write_string(&GETFUNCTIONCODESIGNINGCONFIGOUTPUT_MEMBER_CODE_SIGNING_CONFIG_ARN, val)?;
   90     98   
        }
   91     99   
        {
   92    100   
            let val = &self.function_name;
   93    101   
            ser.write_string(&GETFUNCTIONCODESIGNINGCONFIGOUTPUT_MEMBER_FUNCTION_NAME, val)?;
   94    102   
        }
   95    103   
        Ok(())
   96    104   
    }
   97    105   
}
   98    106   
impl GetFunctionCodeSigningConfigOutput {
   99    107   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  100         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  101         -
        deserializer: &mut D,
         108  +
    pub fn deserialize(
         109  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         110  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         111  +
        #[allow(unused_variables, unused_mut)]
         112  +
        let mut builder = Self::builder();
         113  +
        #[allow(
         114  +
            unused_variables,
         115  +
            unreachable_code,
         116  +
            clippy::single_match,
         117  +
            clippy::match_single_binding,
         118  +
            clippy::diverging_sub_expression
         119  +
        )]
         120  +
        deserializer.read_struct(&GETFUNCTIONCODESIGNINGCONFIGOUTPUT_SCHEMA, &mut |member, deser| {
         121  +
            match member.member_index() {
         122  +
                Some(0) => {
         123  +
                    builder.code_signing_config_arn = Some(deser.read_string(member)?);
         124  +
                }
         125  +
                Some(1) => {
         126  +
                    builder.function_name = Some(deser.read_string(member)?);
         127  +
                }
         128  +
                Some(2) => {
         129  +
                    builder._request_id = Some(deser.read_string(member)?);
         130  +
                }
         131  +
                _ => {}
         132  +
            }
         133  +
            Ok(())
         134  +
        })?;
         135  +
        builder.code_signing_config_arn = builder.code_signing_config_arn.or(Some(String::new()));
         136  +
        builder.function_name = builder.function_name.or(Some(String::new()));
         137  +
        builder
         138  +
            .build()
         139  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         140  +
    }
         141  +
}
         142  +
impl GetFunctionCodeSigningConfigOutput {
         143  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         144  +
    /// Header-bound members are read directly from headers, avoiding runtime
         145  +
    /// member iteration overhead. Body members are read via the deserializer.
         146  +
    pub fn deserialize_with_response(
         147  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         148  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         149  +
        _status: u16,
         150  +
        _body: &[u8],
  102    151   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  103    152   
        #[allow(unused_variables, unused_mut)]
  104    153   
        let mut builder = Self::builder();
         154  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         155  +
            builder._request_id = Some(val.to_string());
         156  +
        }
  105    157   
        #[allow(
  106    158   
            unused_variables,
  107    159   
            unreachable_code,
  108    160   
            clippy::single_match,
  109    161   
            clippy::match_single_binding,
  110    162   
            clippy::diverging_sub_expression
  111    163   
        )]
  112         -
        deserializer.read_struct(&GETFUNCTIONCODESIGNINGCONFIGOUTPUT_SCHEMA, (), |_, member, deser| {
         164  +
        deserializer.read_struct(&GETFUNCTIONCODESIGNINGCONFIGOUTPUT_SCHEMA, &mut |member, deser| {
  113    165   
            match member.member_index() {
  114    166   
                Some(0) => {
  115    167   
                    builder.code_signing_config_arn = Some(deser.read_string(member)?);
  116    168   
                }
  117    169   
                Some(1) => {
  118    170   
                    builder.function_name = Some(deser.read_string(member)?);
  119    171   
                }
  120    172   
                _ => {}
  121    173   
            }
  122    174   
            Ok(())

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/get_function_concurrency.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 `GetFunctionConcurrency`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetFunctionConcurrency;
    6      6   
impl GetFunctionConcurrency {
    7      7   
    /// Creates a new `GetFunctionConcurrency`
    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_concurrency::GetFunctionConcurrencyInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_function_concurrency::GetFunctionConcurrencyOutput::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_concurrency::GetFunctionConcurrencyInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_function_concurrency::GetFunctionConcurrencyOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_function_concurrency::GetFunctionConcurrencyError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +248,390 @@
  138    142   
                crate::operation::get_function_concurrency::GetFunctionConcurrencyError,
  139    143   
            >::new());
  140    144   
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct GetFunctionConcurrencyResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetFunctionConcurrencyResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153         -
        let headers = response.headers();
  154         -
        let body = response.body().bytes().expect("body loaded");
  155    158   
        #[allow(unused_mut)]
  156    159   
        let mut force_error = false;
  157    160   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158         -
        let parse_result = if !success && status != 200 || force_error {
  159         -
            crate::protocol_serde::shape_get_function_concurrency::de_get_function_concurrency_http_error(status, headers, body)
         161  +
        if !success && status != 200 || force_error {
         162  +
            let headers = response.headers();
         163  +
            let body = response.body().bytes().expect("body loaded");
         164  +
            #[allow(unused_mut)]
         165  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         166  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         167  +
            })?;
         168  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         169  +
            let generic = generic_builder.build();
         170  +
            let error_code = match generic.code() {
         171  +
                ::std::option::Option::Some(code) => code,
         172  +
                ::std::option::Option::None => {
         173  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         174  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         175  +
                            crate::operation::get_function_concurrency::GetFunctionConcurrencyError::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_concurrency::GetFunctionConcurrencyError::InvalidParameterValueException({
         187  +
                        let mut tmp = match protocol
         188  +
                            .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         189  +
                            .and_then(|mut deser| {
         190  +
                                crate::types::error::InvalidParameterValueException::deserialize_with_response(
         191  +
                                    &mut *deser,
         192  +
                                    response.headers(),
         193  +
                                    response.status().into(),
         194  +
                                    body,
         195  +
                                )
         196  +
                            }) {
         197  +
                            ::std::result::Result::Ok(val) => val,
         198  +
                            ::std::result::Result::Err(e) => {
         199  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         200  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         201  +
                                ))
         202  +
                            }
         203  +
                        };
         204  +
                        tmp.meta = generic;
         205  +
                        if tmp.message.is_none() {
         206  +
                            tmp.message = _error_message;
         207  +
                        }
         208  +
                        tmp
         209  +
                    })
         210  +
                }
         211  +
                "ResourceNotFoundException" => crate::operation::get_function_concurrency::GetFunctionConcurrencyError::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_concurrency::GetFunctionConcurrencyError::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_concurrency::GetFunctionConcurrencyError::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_concurrency::GetFunctionConcurrencyError::generic(generic),
         284  +
            };
         285  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         286  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         287  +
            ))
  160    288   
        } else {
  161         -
            crate::protocol_serde::shape_get_function_concurrency::de_get_function_concurrency_http_response(status, headers, body)
  162         -
        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         289  +
            let protocol = _cfg
         290  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         291  +
                .expect("a SharedClientProtocol is required");
         292  +
            let mut deser = protocol
         293  +
                .deserialize_response(response, GetFunctionConcurrency::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_concurrency::GetFunctionConcurrencyOutput::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 GetFunctionConcurrencyRequestSerializer;
  168    313   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetFunctionConcurrencyRequestSerializer {
  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_concurrency::GetFunctionConcurrencyInput>()
  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_concurrency::GetFunctionConcurrencyInput,
  186         -
                output: &mut ::std::string::String,
  187         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188         -
                use ::std::fmt::Write as _;
  189         -
                let input_1 = &_input.function_name;
  190         -
                let input_1 = input_1
  191         -
                    .as_ref()
  192         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("function_name", "cannot be empty or unset"))?;
  193         -
                let function_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  194         -
                if function_name.is_empty() {
  195         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  196         -
                        "function_name",
  197         -
                        "cannot be empty or unset",
  198         -
                    ));
         323  +
        let protocol = _cfg
         324  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         325  +
            .expect("a SharedClientProtocol is required");
         326  +
        if protocol.supports_http_bindings() {
         327  +
            let mut request = protocol
         328  +
                .serialize_body(&input, GetFunctionConcurrency::INPUT_SCHEMA, "", _cfg)
         329  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         330  +
            {
         331  +
                let mut uri = "/2019-09-30/functions/{FunctionName}/concurrency".to_string();
         332  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         333  +
                if let Some(ref val) = input.function_name {
         334  +
                    uri = uri.replace("{FunctionName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  199    335   
                }
  200         -
                ::std::write!(output, "/2019-09-30/functions/{FunctionName}/concurrency", FunctionName = function_name)
  201         -
                    .expect("formatting should succeed");
  202         -
                ::std::result::Result::Ok(())
  203         -
            }
  204         -
            #[allow(clippy::unnecessary_wraps)]
  205         -
            fn update_http_builder(
  206         -
                input: &crate::operation::get_function_concurrency::GetFunctionConcurrencyInput,
  207         -
                builder: ::http_1x::request::Builder,
  208         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  209         -
                let mut uri = ::std::string::String::new();
  210         -
                uri_base(input, &mut uri)?;
  211         -
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
         336  +
                if !query_params.is_empty() {
         337  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         338  +
                    let pairs: Vec<String> = query_params
         339  +
                        .iter()
         340  +
                        .map(|(k, v)| {
         341  +
                            format!(
         342  +
                                "{}={}",
         343  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         344  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         345  +
                            )
         346  +
                        })
         347  +
                        .collect();
         348  +
                    uri.push_str(&pairs.join("&"));
         349  +
                }
         350  +
                request.set_uri(uri.as_str()).expect("valid URI");
  212    351   
            }
  213         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  214         -
            builder
  215         -
        };
  216         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
  217    352   
  218         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         353  +
            return ::std::result::Result::Ok(request);
         354  +
        } else {
         355  +
            let mut request = protocol
         356  +
                .serialize_request(&input, GetFunctionConcurrency::INPUT_SCHEMA, "", _cfg)
         357  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         358  +
         359  +
            return ::std::result::Result::Ok(request);
         360  +
        }
  219    361   
    }
  220    362   
}
  221    363   
#[derive(Debug)]
  222    364   
struct GetFunctionConcurrencyEndpointParamsInterceptor;
  223    365   
  224    366   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetFunctionConcurrencyEndpointParamsInterceptor {
  225    367   
    fn name(&self) -> &'static str {
  226    368   
        "GetFunctionConcurrencyEndpointParamsInterceptor"
  227    369   
    }
  228    370   

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

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

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

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

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