AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36 (ignoring whitespace)

Files changed:

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

@@ -23,23 +152,169 @@
   43     43   
    "com.amazonaws.lambda.synthetic",
   44     44   
    "GetPolicyInput",
   45     45   
);
   46     46   
static GETPOLICYINPUT_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#GetPolicyInput$FunctionName",
   49     49   
        "com.amazonaws.lambda.synthetic",
   50     50   
        "GetPolicyInput",
   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 GETPOLICYINPUT_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#GetPolicyInput$Qualifier",
   60     60   
        "com.amazonaws.lambda.synthetic",
   61     61   
        "GetPolicyInput",
   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 GETPOLICYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   69     69   
    GETPOLICYINPUT_SCHEMA_ID,
   70     70   
    ::aws_smithy_schema::ShapeType::Structure,
   71     71   
    &[&GETPOLICYINPUT_MEMBER_FUNCTION_NAME, &GETPOLICYINPUT_MEMBER_QUALIFIER],
   72         -
);
          72  +
)
          73  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          74  +
    "GET",
          75  +
    "/2015-03-31/functions/{FunctionName}/policy",
          76  +
    None,
          77  +
));
   73     78   
impl GetPolicyInput {
   74     79   
    /// The schema for this shape.
   75     80   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETPOLICYINPUT_SCHEMA;
   76     81   
}
   77     82   
impl ::aws_smithy_schema::serde::SerializableStruct for GetPolicyInput {
   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(&GETPOLICYINPUT_MEMBER_FUNCTION_NAME, val)?;
   85     90   
        }
   86     91   
        if let Some(ref val) = self.qualifier {
   87     92   
            ser.write_string(&GETPOLICYINPUT_MEMBER_QUALIFIER, val)?;
   88     93   
        }
   89     94   
        Ok(())
   90     95   
    }
   91     96   
}
   92     97   
impl GetPolicyInput {
   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(&GETPOLICYINPUT_SCHEMA, (), |_, member, deser| {
         111  +
        deserializer.read_struct(&GETPOLICYINPUT_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 GetPolicyInput {
         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 GetPolicyInput {
  124    141   
    /// Creates a new builder-style object to manufacture [`GetPolicyInput`](crate::operation::get_policy::GetPolicyInput).
  125    142   
    pub fn builder() -> crate::operation::get_policy::builders::GetPolicyInputBuilder {
  126    143   
        crate::operation::get_policy::builders::GetPolicyInputBuilder::default()
  127    144   
    }
  128    145   
}
  129    146   
  130    147   
/// A builder for [`GetPolicyInput`](crate::operation::get_policy::GetPolicyInput).
  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_policy/_get_policy_output.rs

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

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

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

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

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

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

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

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

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

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/invoke.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 `Invoke`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct Invoke;
    6      6   
impl Invoke {
    7      7   
    /// Creates a new `Invoke`
    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::invoke::InvokeInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::invoke::InvokeOutput::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::invoke::InvokeInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::invoke::InvokeOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::invoke::InvokeError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -110,114 +253,1014 @@
  130    134   
        ::std::borrow::Cow::Owned(rcb)
  131    135   
    }
  132    136   
}
  133    137   
  134    138   
#[derive(Debug)]
  135    139   
struct InvokeResponseDeserializer;
  136    140   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for InvokeResponseDeserializer {
  137    141   
    fn deserialize_nonstreaming(
  138    142   
        &self,
  139    143   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         144  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  140    145   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  141    146   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  142         -
        let headers = response.headers();
  143         -
        let body = response.body().bytes().expect("body loaded");
  144    147   
        #[allow(unused_mut)]
  145    148   
        let mut force_error = false;
  146    149   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  147         -
        let parse_result = if !success && status != 200 || force_error {
  148         -
            crate::protocol_serde::shape_invoke::de_invoke_http_error(status, headers, body)
  149         -
        } else {
  150         -
            crate::protocol_serde::shape_invoke::de_invoke_http_response(status, headers, body)
         150  +
        if !success && status != 200 || force_error {
         151  +
            let headers = response.headers();
         152  +
            let body = response.body().bytes().expect("body loaded");
         153  +
            #[allow(unused_mut)]
         154  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         155  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         156  +
            })?;
         157  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         158  +
            let generic = generic_builder.build();
         159  +
            let error_code = match generic.code() {
         160  +
                ::std::option::Option::Some(code) => code,
         161  +
                ::std::option::Option::None => {
         162  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         163  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::invoke::InvokeError::unhandled(generic)),
         164  +
                    ))
         165  +
                }
         166  +
            };
         167  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         168  +
            let protocol = _cfg
         169  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         170  +
                .expect("a SharedClientProtocol is required");
         171  +
            let err = match error_code {
         172  +
                "EC2AccessDeniedException" => crate::operation::invoke::InvokeError::Ec2AccessDeniedException({
         173  +
                    let mut tmp = match protocol
         174  +
                        .deserialize_response(response, crate::types::error::Ec2AccessDeniedException::SCHEMA, _cfg)
         175  +
                        .and_then(|mut deser| {
         176  +
                            crate::types::error::Ec2AccessDeniedException::deserialize_with_response(
         177  +
                                &mut *deser,
         178  +
                                response.headers(),
         179  +
                                response.status().into(),
         180  +
                                body,
         181  +
                            )
         182  +
                        }) {
         183  +
                        ::std::result::Result::Ok(val) => val,
         184  +
                        ::std::result::Result::Err(e) => {
         185  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         186  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         187  +
                            ))
         188  +
                        }
         189  +
                    };
         190  +
                    tmp.meta = generic;
         191  +
                    if tmp.message.is_none() {
         192  +
                        tmp.message = _error_message;
         193  +
                    }
         194  +
                    tmp
         195  +
                }),
         196  +
                "EC2ThrottledException" => crate::operation::invoke::InvokeError::Ec2ThrottledException({
         197  +
                    let mut tmp = match protocol
         198  +
                        .deserialize_response(response, crate::types::error::Ec2ThrottledException::SCHEMA, _cfg)
         199  +
                        .and_then(|mut deser| {
         200  +
                            crate::types::error::Ec2ThrottledException::deserialize_with_response(
         201  +
                                &mut *deser,
         202  +
                                response.headers(),
         203  +
                                response.status().into(),
         204  +
                                body,
         205  +
                            )
         206  +
                        }) {
         207  +
                        ::std::result::Result::Ok(val) => val,
         208  +
                        ::std::result::Result::Err(e) => {
         209  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         210  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         211  +
                            ))
         212  +
                        }
         213  +
                    };
         214  +
                    tmp.meta = generic;
         215  +
                    if tmp.message.is_none() {
         216  +
                        tmp.message = _error_message;
         217  +
                    }
         218  +
                    tmp
         219  +
                }),
         220  +
                "EC2UnexpectedException" => crate::operation::invoke::InvokeError::Ec2UnexpectedException({
         221  +
                    let mut tmp = match protocol
         222  +
                        .deserialize_response(response, crate::types::error::Ec2UnexpectedException::SCHEMA, _cfg)
         223  +
                        .and_then(|mut deser| {
         224  +
                            crate::types::error::Ec2UnexpectedException::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  +
                "EFSIOException" => crate::operation::invoke::InvokeError::EfsioException({
         245  +
                    let mut tmp = match protocol
         246  +
                        .deserialize_response(response, crate::types::error::EfsioException::SCHEMA, _cfg)
         247  +
                        .and_then(|mut deser| {
         248  +
                            crate::types::error::EfsioException::deserialize_with_response(
         249  +
                                &mut *deser,
         250  +
                                response.headers(),
         251  +
                                response.status().into(),
         252  +
                                body,
         253  +
                            )
         254  +
                        }) {
         255  +
                        ::std::result::Result::Ok(val) => val,
         256  +
                        ::std::result::Result::Err(e) => {
         257  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         258  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         259  +
                            ))
         260  +
                        }
         261  +
                    };
         262  +
                    tmp.meta = generic;
         263  +
                    if tmp.message.is_none() {
         264  +
                        tmp.message = _error_message;
         265  +
                    }
         266  +
                    tmp
         267  +
                }),
         268  +
                "EFSMountConnectivityException" => crate::operation::invoke::InvokeError::EfsMountConnectivityException({
         269  +
                    let mut tmp = match protocol
         270  +
                        .deserialize_response(response, crate::types::error::EfsMountConnectivityException::SCHEMA, _cfg)
         271  +
                        .and_then(|mut deser| {
         272  +
                            crate::types::error::EfsMountConnectivityException::deserialize_with_response(
         273  +
                                &mut *deser,
         274  +
                                response.headers(),
         275  +
                                response.status().into(),
         276  +
                                body,
         277  +
                            )
         278  +
                        }) {
         279  +
                        ::std::result::Result::Ok(val) => val,
         280  +
                        ::std::result::Result::Err(e) => {
         281  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         282  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         283  +
                            ))
         284  +
                        }
         285  +
                    };
         286  +
                    tmp.meta = generic;
         287  +
                    if tmp.message.is_none() {
         288  +
                        tmp.message = _error_message;
         289  +
                    }
         290  +
                    tmp
         291  +
                }),
         292  +
                "EFSMountFailureException" => crate::operation::invoke::InvokeError::EfsMountFailureException({
         293  +
                    let mut tmp = match protocol
         294  +
                        .deserialize_response(response, crate::types::error::EfsMountFailureException::SCHEMA, _cfg)
         295  +
                        .and_then(|mut deser| {
         296  +
                            crate::types::error::EfsMountFailureException::deserialize_with_response(
         297  +
                                &mut *deser,
         298  +
                                response.headers(),
         299  +
                                response.status().into(),
         300  +
                                body,
         301  +
                            )
         302  +
                        }) {
         303  +
                        ::std::result::Result::Ok(val) => val,
         304  +
                        ::std::result::Result::Err(e) => {
         305  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         306  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         307  +
                            ))
         308  +
                        }
         309  +
                    };
         310  +
                    tmp.meta = generic;
         311  +
                    if tmp.message.is_none() {
         312  +
                        tmp.message = _error_message;
         313  +
                    }
         314  +
                    tmp
         315  +
                }),
         316  +
                "EFSMountTimeoutException" => crate::operation::invoke::InvokeError::EfsMountTimeoutException({
         317  +
                    let mut tmp = match protocol
         318  +
                        .deserialize_response(response, crate::types::error::EfsMountTimeoutException::SCHEMA, _cfg)
         319  +
                        .and_then(|mut deser| {
         320  +
                            crate::types::error::EfsMountTimeoutException::deserialize_with_response(
         321  +
                                &mut *deser,
         322  +
                                response.headers(),
         323  +
                                response.status().into(),
         324  +
                                body,
         325  +
                            )
         326  +
                        }) {
         327  +
                        ::std::result::Result::Ok(val) => val,
         328  +
                        ::std::result::Result::Err(e) => {
         329  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         330  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         331  +
                            ))
         332  +
                        }
         333  +
                    };
         334  +
                    tmp.meta = generic;
         335  +
                    if tmp.message.is_none() {
         336  +
                        tmp.message = _error_message;
         337  +
                    }
         338  +
                    tmp
         339  +
                }),
         340  +
                "ENILimitReachedException" => crate::operation::invoke::InvokeError::EniLimitReachedException({
         341  +
                    let mut tmp = match protocol
         342  +
                        .deserialize_response(response, crate::types::error::EniLimitReachedException::SCHEMA, _cfg)
         343  +
                        .and_then(|mut deser| {
         344  +
                            crate::types::error::EniLimitReachedException::deserialize_with_response(
         345  +
                                &mut *deser,
         346  +
                                response.headers(),
         347  +
                                response.status().into(),
         348  +
                                body,
         349  +
                            )
         350  +
                        }) {
         351  +
                        ::std::result::Result::Ok(val) => val,
         352  +
                        ::std::result::Result::Err(e) => {
         353  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         354  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         355  +
                            ))
         356  +
                        }
  151    357   
                    };
  152         -
        crate::protocol_serde::type_erase_result(parse_result)
         358  +
                    tmp.meta = generic;
         359  +
                    if tmp.message.is_none() {
         360  +
                        tmp.message = _error_message;
         361  +
                    }
         362  +
                    tmp
         363  +
                }),
         364  +
                "InvalidParameterValueException" => crate::operation::invoke::InvokeError::InvalidParameterValueException({
         365  +
                    let mut tmp = match protocol
         366  +
                        .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         367  +
                        .and_then(|mut deser| {
         368  +
                            crate::types::error::InvalidParameterValueException::deserialize_with_response(
         369  +
                                &mut *deser,
         370  +
                                response.headers(),
         371  +
                                response.status().into(),
         372  +
                                body,
         373  +
                            )
         374  +
                        }) {
         375  +
                        ::std::result::Result::Ok(val) => val,
         376  +
                        ::std::result::Result::Err(e) => {
         377  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         378  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         379  +
                            ))
         380  +
                        }
         381  +
                    };
         382  +
                    tmp.meta = generic;
         383  +
                    if tmp.message.is_none() {
         384  +
                        tmp.message = _error_message;
         385  +
                    }
         386  +
                    tmp
         387  +
                }),
         388  +
                "InvalidRequestContentException" => crate::operation::invoke::InvokeError::InvalidRequestContentException({
         389  +
                    let mut tmp = match protocol
         390  +
                        .deserialize_response(response, crate::types::error::InvalidRequestContentException::SCHEMA, _cfg)
         391  +
                        .and_then(|mut deser| {
         392  +
                            crate::types::error::InvalidRequestContentException::deserialize_with_response(
         393  +
                                &mut *deser,
         394  +
                                response.headers(),
         395  +
                                response.status().into(),
         396  +
                                body,
         397  +
                            )
         398  +
                        }) {
         399  +
                        ::std::result::Result::Ok(val) => val,
         400  +
                        ::std::result::Result::Err(e) => {
         401  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         402  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         403  +
                            ))
         404  +
                        }
         405  +
                    };
         406  +
                    tmp.meta = generic;
         407  +
                    if tmp.message.is_none() {
         408  +
                        tmp.message = _error_message;
         409  +
                    }
         410  +
                    tmp
         411  +
                }),
         412  +
                "InvalidRuntimeException" => crate::operation::invoke::InvokeError::InvalidRuntimeException({
         413  +
                    let mut tmp = match protocol
         414  +
                        .deserialize_response(response, crate::types::error::InvalidRuntimeException::SCHEMA, _cfg)
         415  +
                        .and_then(|mut deser| {
         416  +
                            crate::types::error::InvalidRuntimeException::deserialize_with_response(
         417  +
                                &mut *deser,
         418  +
                                response.headers(),
         419  +
                                response.status().into(),
         420  +
                                body,
         421  +
                            )
         422  +
                        }) {
         423  +
                        ::std::result::Result::Ok(val) => val,
         424  +
                        ::std::result::Result::Err(e) => {
         425  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         426  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         427  +
                            ))
         428  +
                        }
         429  +
                    };
         430  +
                    tmp.meta = generic;
         431  +
                    if tmp.message.is_none() {
         432  +
                        tmp.message = _error_message;
         433  +
                    }
         434  +
                    tmp
         435  +
                }),
         436  +
                "InvalidSecurityGroupIDException" => crate::operation::invoke::InvokeError::InvalidSecurityGroupIdException({
         437  +
                    let mut tmp = match protocol
         438  +
                        .deserialize_response(response, crate::types::error::InvalidSecurityGroupIdException::SCHEMA, _cfg)
         439  +
                        .and_then(|mut deser| {
         440  +
                            crate::types::error::InvalidSecurityGroupIdException::deserialize_with_response(
         441  +
                                &mut *deser,
         442  +
                                response.headers(),
         443  +
                                response.status().into(),
         444  +
                                body,
         445  +
                            )
         446  +
                        }) {
         447  +
                        ::std::result::Result::Ok(val) => val,
         448  +
                        ::std::result::Result::Err(e) => {
         449  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         450  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         451  +
                            ))
         452  +
                        }
         453  +
                    };
         454  +
                    tmp.meta = generic;
         455  +
                    if tmp.message.is_none() {
         456  +
                        tmp.message = _error_message;
         457  +
                    }
         458  +
                    tmp
         459  +
                }),
         460  +
                "InvalidSubnetIDException" => crate::operation::invoke::InvokeError::InvalidSubnetIdException({
         461  +
                    let mut tmp = match protocol
         462  +
                        .deserialize_response(response, crate::types::error::InvalidSubnetIdException::SCHEMA, _cfg)
         463  +
                        .and_then(|mut deser| {
         464  +
                            crate::types::error::InvalidSubnetIdException::deserialize_with_response(
         465  +
                                &mut *deser,
         466  +
                                response.headers(),
         467  +
                                response.status().into(),
         468  +
                                body,
         469  +
                            )
         470  +
                        }) {
         471  +
                        ::std::result::Result::Ok(val) => val,
         472  +
                        ::std::result::Result::Err(e) => {
         473  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         474  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         475  +
                            ))
         476  +
                        }
         477  +
                    };
         478  +
                    tmp.meta = generic;
         479  +
                    if tmp.message.is_none() {
         480  +
                        tmp.message = _error_message;
         481  +
                    }
         482  +
                    tmp
         483  +
                }),
         484  +
                "InvalidZipFileException" => crate::operation::invoke::InvokeError::InvalidZipFileException({
         485  +
                    let mut tmp = match protocol
         486  +
                        .deserialize_response(response, crate::types::error::InvalidZipFileException::SCHEMA, _cfg)
         487  +
                        .and_then(|mut deser| {
         488  +
                            crate::types::error::InvalidZipFileException::deserialize_with_response(
         489  +
                                &mut *deser,
         490  +
                                response.headers(),
         491  +
                                response.status().into(),
         492  +
                                body,
         493  +
                            )
         494  +
                        }) {
         495  +
                        ::std::result::Result::Ok(val) => val,
         496  +
                        ::std::result::Result::Err(e) => {
         497  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         498  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         499  +
                            ))
         500  +
                        }
         501  +
                    };
         502  +
                    tmp.meta = generic;
         503  +
                    if tmp.message.is_none() {
         504  +
                        tmp.message = _error_message;
         505  +
                    }
         506  +
                    tmp
         507  +
                }),
         508  +
                "KMSAccessDeniedException" => crate::operation::invoke::InvokeError::KmsAccessDeniedException({
         509  +
                    let mut tmp = match protocol
         510  +
                        .deserialize_response(response, crate::types::error::KmsAccessDeniedException::SCHEMA, _cfg)
         511  +
                        .and_then(|mut deser| {
         512  +
                            crate::types::error::KmsAccessDeniedException::deserialize_with_response(
         513  +
                                &mut *deser,
         514  +
                                response.headers(),
         515  +
                                response.status().into(),
         516  +
                                body,
         517  +
                            )
         518  +
                        }) {
         519  +
                        ::std::result::Result::Ok(val) => val,
         520  +
                        ::std::result::Result::Err(e) => {
         521  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         522  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         523  +
                            ))
         524  +
                        }
         525  +
                    };
         526  +
                    tmp.meta = generic;
         527  +
                    if tmp.message.is_none() {
         528  +
                        tmp.message = _error_message;
         529  +
                    }
         530  +
                    tmp
         531  +
                }),
         532  +
                "KMSDisabledException" => crate::operation::invoke::InvokeError::KmsDisabledException({
         533  +
                    let mut tmp = match protocol
         534  +
                        .deserialize_response(response, crate::types::error::KmsDisabledException::SCHEMA, _cfg)
         535  +
                        .and_then(|mut deser| {
         536  +
                            crate::types::error::KmsDisabledException::deserialize_with_response(
         537  +
                                &mut *deser,
         538  +
                                response.headers(),
         539  +
                                response.status().into(),
         540  +
                                body,
         541  +
                            )
         542  +
                        }) {
         543  +
                        ::std::result::Result::Ok(val) => val,
         544  +
                        ::std::result::Result::Err(e) => {
         545  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         546  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         547  +
                            ))
         548  +
                        }
         549  +
                    };
         550  +
                    tmp.meta = generic;
         551  +
                    if tmp.message.is_none() {
         552  +
                        tmp.message = _error_message;
         553  +
                    }
         554  +
                    tmp
         555  +
                }),
         556  +
                "KMSInvalidStateException" => crate::operation::invoke::InvokeError::KmsInvalidStateException({
         557  +
                    let mut tmp = match protocol
         558  +
                        .deserialize_response(response, crate::types::error::KmsInvalidStateException::SCHEMA, _cfg)
         559  +
                        .and_then(|mut deser| {
         560  +
                            crate::types::error::KmsInvalidStateException::deserialize_with_response(
         561  +
                                &mut *deser,
         562  +
                                response.headers(),
         563  +
                                response.status().into(),
         564  +
                                body,
         565  +
                            )
         566  +
                        }) {
         567  +
                        ::std::result::Result::Ok(val) => val,
         568  +
                        ::std::result::Result::Err(e) => {
         569  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         570  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         571  +
                            ))
         572  +
                        }
         573  +
                    };
         574  +
                    tmp.meta = generic;
         575  +
                    if tmp.message.is_none() {
         576  +
                        tmp.message = _error_message;
         577  +
                    }
         578  +
                    tmp
         579  +
                }),
         580  +
                "KMSNotFoundException" => crate::operation::invoke::InvokeError::KmsNotFoundException({
         581  +
                    let mut tmp = match protocol
         582  +
                        .deserialize_response(response, crate::types::error::KmsNotFoundException::SCHEMA, _cfg)
         583  +
                        .and_then(|mut deser| {
         584  +
                            crate::types::error::KmsNotFoundException::deserialize_with_response(
         585  +
                                &mut *deser,
         586  +
                                response.headers(),
         587  +
                                response.status().into(),
         588  +
                                body,
         589  +
                            )
         590  +
                        }) {
         591  +
                        ::std::result::Result::Ok(val) => val,
         592  +
                        ::std::result::Result::Err(e) => {
         593  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         594  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         595  +
                            ))
         596  +
                        }
         597  +
                    };
         598  +
                    tmp.meta = generic;
         599  +
                    if tmp.message.is_none() {
         600  +
                        tmp.message = _error_message;
         601  +
                    }
         602  +
                    tmp
         603  +
                }),
         604  +
                "RecursiveInvocationException" => crate::operation::invoke::InvokeError::RecursiveInvocationException({
         605  +
                    let mut tmp = match protocol
         606  +
                        .deserialize_response(response, crate::types::error::RecursiveInvocationException::SCHEMA, _cfg)
         607  +
                        .and_then(|mut deser| {
         608  +
                            crate::types::error::RecursiveInvocationException::deserialize_with_response(
         609  +
                                &mut *deser,
         610  +
                                response.headers(),
         611  +
                                response.status().into(),
         612  +
                                body,
         613  +
                            )
         614  +
                        }) {
         615  +
                        ::std::result::Result::Ok(val) => val,
         616  +
                        ::std::result::Result::Err(e) => {
         617  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         618  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         619  +
                            ))
         620  +
                        }
         621  +
                    };
         622  +
                    tmp.meta = generic;
         623  +
                    if tmp.message.is_none() {
         624  +
                        tmp.message = _error_message;
         625  +
                    }
         626  +
                    tmp
         627  +
                }),
         628  +
                "RequestTooLargeException" => crate::operation::invoke::InvokeError::RequestTooLargeException({
         629  +
                    let mut tmp = match protocol
         630  +
                        .deserialize_response(response, crate::types::error::RequestTooLargeException::SCHEMA, _cfg)
         631  +
                        .and_then(|mut deser| {
         632  +
                            crate::types::error::RequestTooLargeException::deserialize_with_response(
         633  +
                                &mut *deser,
         634  +
                                response.headers(),
         635  +
                                response.status().into(),
         636  +
                                body,
         637  +
                            )
         638  +
                        }) {
         639  +
                        ::std::result::Result::Ok(val) => val,
         640  +
                        ::std::result::Result::Err(e) => {
         641  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         642  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         643  +
                            ))
         644  +
                        }
         645  +
                    };
         646  +
                    tmp.meta = generic;
         647  +
                    if tmp.message.is_none() {
         648  +
                        tmp.message = _error_message;
         649  +
                    }
         650  +
                    tmp
         651  +
                }),
         652  +
                "ResourceConflictException" => crate::operation::invoke::InvokeError::ResourceConflictException({
         653  +
                    let mut tmp = match protocol
         654  +
                        .deserialize_response(response, crate::types::error::ResourceConflictException::SCHEMA, _cfg)
         655  +
                        .and_then(|mut deser| {
         656  +
                            crate::types::error::ResourceConflictException::deserialize_with_response(
         657  +
                                &mut *deser,
         658  +
                                response.headers(),
         659  +
                                response.status().into(),
         660  +
                                body,
         661  +
                            )
         662  +
                        }) {
         663  +
                        ::std::result::Result::Ok(val) => val,
         664  +
                        ::std::result::Result::Err(e) => {
         665  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         666  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         667  +
                            ))
         668  +
                        }
         669  +
                    };
         670  +
                    tmp.meta = generic;
         671  +
                    if tmp.message.is_none() {
         672  +
                        tmp.message = _error_message;
         673  +
                    }
         674  +
                    tmp
         675  +
                }),
         676  +
                "ResourceNotFoundException" => crate::operation::invoke::InvokeError::ResourceNotFoundException({
         677  +
                    let mut tmp = match protocol
         678  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         679  +
                        .and_then(|mut deser| {
         680  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         681  +
                                &mut *deser,
         682  +
                                response.headers(),
         683  +
                                response.status().into(),
         684  +
                                body,
         685  +
                            )
         686  +
                        }) {
         687  +
                        ::std::result::Result::Ok(val) => val,
         688  +
                        ::std::result::Result::Err(e) => {
         689  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         690  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         691  +
                            ))
         692  +
                        }
         693  +
                    };
         694  +
                    tmp.meta = generic;
         695  +
                    if tmp.message.is_none() {
         696  +
                        tmp.message = _error_message;
         697  +
                    }
         698  +
                    tmp
         699  +
                }),
         700  +
                "ResourceNotReadyException" => crate::operation::invoke::InvokeError::ResourceNotReadyException({
         701  +
                    let mut tmp = match protocol
         702  +
                        .deserialize_response(response, crate::types::error::ResourceNotReadyException::SCHEMA, _cfg)
         703  +
                        .and_then(|mut deser| {
         704  +
                            crate::types::error::ResourceNotReadyException::deserialize_with_response(
         705  +
                                &mut *deser,
         706  +
                                response.headers(),
         707  +
                                response.status().into(),
         708  +
                                body,
         709  +
                            )
         710  +
                        }) {
         711  +
                        ::std::result::Result::Ok(val) => val,
         712  +
                        ::std::result::Result::Err(e) => {
         713  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         714  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         715  +
                            ))
         716  +
                        }
         717  +
                    };
         718  +
                    tmp.meta = generic;
         719  +
                    if tmp.message.is_none() {
         720  +
                        tmp.message = _error_message;
         721  +
                    }
         722  +
                    tmp
         723  +
                }),
         724  +
                "ServiceException" => crate::operation::invoke::InvokeError::ServiceException({
         725  +
                    let mut tmp = match protocol
         726  +
                        .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         727  +
                        .and_then(|mut deser| {
         728  +
                            crate::types::error::ServiceException::deserialize_with_response(
         729  +
                                &mut *deser,
         730  +
                                response.headers(),
         731  +
                                response.status().into(),
         732  +
                                body,
         733  +
                            )
         734  +
                        }) {
         735  +
                        ::std::result::Result::Ok(val) => val,
         736  +
                        ::std::result::Result::Err(e) => {
         737  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         738  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         739  +
                            ))
         740  +
                        }
         741  +
                    };
         742  +
                    tmp.meta = generic;
         743  +
                    if tmp.message.is_none() {
         744  +
                        tmp.message = _error_message;
         745  +
                    }
         746  +
                    tmp
         747  +
                }),
         748  +
                "SnapStartException" => crate::operation::invoke::InvokeError::SnapStartException({
         749  +
                    let mut tmp = match protocol
         750  +
                        .deserialize_response(response, crate::types::error::SnapStartException::SCHEMA, _cfg)
         751  +
                        .and_then(|mut deser| {
         752  +
                            crate::types::error::SnapStartException::deserialize_with_response(
         753  +
                                &mut *deser,
         754  +
                                response.headers(),
         755  +
                                response.status().into(),
         756  +
                                body,
         757  +
                            )
         758  +
                        }) {
         759  +
                        ::std::result::Result::Ok(val) => val,
         760  +
                        ::std::result::Result::Err(e) => {
         761  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         762  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         763  +
                            ))
         764  +
                        }
         765  +
                    };
         766  +
                    tmp.meta = generic;
         767  +
                    if tmp.message.is_none() {
         768  +
                        tmp.message = _error_message;
         769  +
                    }
         770  +
                    tmp
         771  +
                }),
         772  +
                "SnapStartNotReadyException" => crate::operation::invoke::InvokeError::SnapStartNotReadyException({
         773  +
                    let mut tmp = match protocol
         774  +
                        .deserialize_response(response, crate::types::error::SnapStartNotReadyException::SCHEMA, _cfg)
         775  +
                        .and_then(|mut deser| {
         776  +
                            crate::types::error::SnapStartNotReadyException::deserialize_with_response(
         777  +
                                &mut *deser,
         778  +
                                response.headers(),
         779  +
                                response.status().into(),
         780  +
                                body,
         781  +
                            )
         782  +
                        }) {
         783  +
                        ::std::result::Result::Ok(val) => val,
         784  +
                        ::std::result::Result::Err(e) => {
         785  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         786  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         787  +
                            ))
         788  +
                        }
         789  +
                    };
         790  +
                    tmp.meta = generic;
         791  +
                    if tmp.message.is_none() {
         792  +
                        tmp.message = _error_message;
         793  +
                    }
         794  +
                    tmp
         795  +
                }),
         796  +
                "SnapStartTimeoutException" => crate::operation::invoke::InvokeError::SnapStartTimeoutException({
         797  +
                    let mut tmp = match protocol
         798  +
                        .deserialize_response(response, crate::types::error::SnapStartTimeoutException::SCHEMA, _cfg)
         799  +
                        .and_then(|mut deser| {
         800  +
                            crate::types::error::SnapStartTimeoutException::deserialize_with_response(
         801  +
                                &mut *deser,
         802  +
                                response.headers(),
         803  +
                                response.status().into(),
         804  +
                                body,
         805  +
                            )
         806  +
                        }) {
         807  +
                        ::std::result::Result::Ok(val) => val,
         808  +
                        ::std::result::Result::Err(e) => {
         809  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         810  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         811  +
                            ))
         812  +
                        }
         813  +
                    };
         814  +
                    tmp.meta = generic;
         815  +
                    if tmp.message.is_none() {
         816  +
                        tmp.message = _error_message;
         817  +
                    }
         818  +
                    tmp
         819  +
                }),
         820  +
                "SubnetIPAddressLimitReachedException" => crate::operation::invoke::InvokeError::SubnetIpAddressLimitReachedException({
         821  +
                    let mut tmp = match protocol
         822  +
                        .deserialize_response(response, crate::types::error::SubnetIpAddressLimitReachedException::SCHEMA, _cfg)
         823  +
                        .and_then(|mut deser| {
         824  +
                            crate::types::error::SubnetIpAddressLimitReachedException::deserialize_with_response(
         825  +
                                &mut *deser,
         826  +
                                response.headers(),
         827  +
                                response.status().into(),
         828  +
                                body,
         829  +
                            )
         830  +
                        }) {
         831  +
                        ::std::result::Result::Ok(val) => val,
         832  +
                        ::std::result::Result::Err(e) => {
         833  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         834  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         835  +
                            ))
         836  +
                        }
         837  +
                    };
         838  +
                    tmp.meta = generic;
         839  +
                    if tmp.message.is_none() {
         840  +
                        tmp.message = _error_message;
         841  +
                    }
         842  +
                    tmp
         843  +
                }),
         844  +
                "TooManyRequestsException" => crate::operation::invoke::InvokeError::TooManyRequestsException({
         845  +
                    let mut tmp = match protocol
         846  +
                        .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         847  +
                        .and_then(|mut deser| {
         848  +
                            crate::types::error::TooManyRequestsException::deserialize_with_response(
         849  +
                                &mut *deser,
         850  +
                                response.headers(),
         851  +
                                response.status().into(),
         852  +
                                body,
         853  +
                            )
         854  +
                        }) {
         855  +
                        ::std::result::Result::Ok(val) => val,
         856  +
                        ::std::result::Result::Err(e) => {
         857  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         858  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         859  +
                            ))
         860  +
                        }
         861  +
                    };
         862  +
                    tmp.meta = generic;
         863  +
                    if tmp.message.is_none() {
         864  +
                        tmp.message = _error_message;
         865  +
                    }
         866  +
                    tmp
         867  +
                }),
         868  +
                "UnsupportedMediaTypeException" => crate::operation::invoke::InvokeError::UnsupportedMediaTypeException({
         869  +
                    let mut tmp = match protocol
         870  +
                        .deserialize_response(response, crate::types::error::UnsupportedMediaTypeException::SCHEMA, _cfg)
         871  +
                        .and_then(|mut deser| {
         872  +
                            crate::types::error::UnsupportedMediaTypeException::deserialize_with_response(
         873  +
                                &mut *deser,
         874  +
                                response.headers(),
         875  +
                                response.status().into(),
         876  +
                                body,
         877  +
                            )
         878  +
                        }) {
         879  +
                        ::std::result::Result::Ok(val) => val,
         880  +
                        ::std::result::Result::Err(e) => {
         881  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         882  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         883  +
                            ))
         884  +
                        }
         885  +
                    };
         886  +
                    tmp.meta = generic;
         887  +
                    if tmp.message.is_none() {
         888  +
                        tmp.message = _error_message;
         889  +
                    }
         890  +
                    tmp
         891  +
                }),
         892  +
                _ => crate::operation::invoke::InvokeError::generic(generic),
         893  +
            };
         894  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         895  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         896  +
            ))
         897  +
        } else {
         898  +
            let protocol = _cfg
         899  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         900  +
                .expect("a SharedClientProtocol is required");
         901  +
            let mut deser = protocol.deserialize_response(response, Invoke::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         902  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         903  +
            })?;
         904  +
            let body = response.body().bytes().expect("body loaded");
         905  +
            let output =
         906  +
                crate::operation::invoke::InvokeOutput::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body)
         907  +
                    .map_err(|e| {
         908  +
                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
         909  +
                            e,
         910  +
                        ))
         911  +
                    })?;
         912  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         913  +
        }
  153    914   
    }
  154    915   
}
  155    916   
#[derive(Debug)]
  156    917   
struct InvokeRequestSerializer;
  157    918   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for InvokeRequestSerializer {
  158    919   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  159    920   
    fn serialize_input(
  160    921   
        &self,
  161    922   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  162    923   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  163    924   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  164    925   
        let input = input.downcast::<crate::operation::invoke::InvokeInput>().expect("correct type");
  165         -
        let _header_serialization_settings = _cfg
  166         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  167         -
            .cloned()
  168         -
            .unwrap_or_default();
  169         -
        let mut request_builder = {
  170         -
            #[allow(clippy::uninlined_format_args)]
  171         -
            fn uri_base(
  172         -
                _input: &crate::operation::invoke::InvokeInput,
  173         -
                output: &mut ::std::string::String,
  174         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  175         -
                use ::std::fmt::Write as _;
  176         -
                let input_1 = &_input.function_name;
  177         -
                let input_1 = input_1
  178         -
                    .as_ref()
  179         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("function_name", "cannot be empty or unset"))?;
  180         -
                let function_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  181         -
                if function_name.is_empty() {
  182         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  183         -
                        "function_name",
  184         -
                        "cannot be empty or unset",
  185         -
                    ));
         926  +
        let protocol = _cfg
         927  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         928  +
            .expect("a SharedClientProtocol is required");
         929  +
        if protocol.supports_http_bindings() {
         930  +
            let mut input = input;
         931  +
            let payload = input.payload.take();
         932  +
            let mut request = protocol
         933  +
                .serialize_body(&input, Invoke::INPUT_SCHEMA, "", _cfg)
         934  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         935  +
            if let ::std::option::Option::Some(payload) = payload {
         936  +
                *request.body_mut() = ::aws_smithy_types::body::SdkBody::from(payload.into_inner());
         937  +
                request.headers_mut().insert("Content-Type", "application/octet-stream");
         938  +
                if let ::std::option::Option::Some(content_length) = request.body().content_length() {
         939  +
                    request.headers_mut().insert("Content-Length", content_length.to_string());
  186    940   
                }
  187         -
                ::std::write!(output, "/2015-03-31/functions/{FunctionName}/invocations", FunctionName = function_name)
  188         -
                    .expect("formatting should succeed");
  189         -
                ::std::result::Result::Ok(())
  190    941   
            }
  191         -
            fn uri_query(
  192         -
                _input: &crate::operation::invoke::InvokeInput,
  193         -
                mut output: &mut ::std::string::String,
  194         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  195         -
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  196         -
                if let ::std::option::Option::Some(inner_2) = &_input.qualifier {
  197    942   
            {
  198         -
                        query.push_kv("Qualifier", &::aws_smithy_http::query::fmt_string(inner_2));
         943  +
                let mut uri = "/2015-03-31/functions/{FunctionName}/invocations".to_string();
         944  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         945  +
                if let Some(ref val) = input.function_name {
         946  +
                    uri = uri.replace("{FunctionName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         947  +
                }
         948  +
                if let Some(ref val) = input.invocation_type {
         949  +
                    request.headers_mut().insert("X-Amz-Invocation-Type", val.as_str().to_string());
         950  +
                }
         951  +
                if let Some(ref val) = input.log_type {
         952  +
                    request.headers_mut().insert("X-Amz-Log-Type", val.as_str().to_string());
         953  +
                }
         954  +
                if let Some(ref val) = input.client_context {
         955  +
                    request.headers_mut().insert("X-Amz-Client-Context", val.to_string());
         956  +
                }
         957  +
                if let Some(ref val) = input.qualifier {
         958  +
                    query_params.push(("Qualifier".to_string(), val.to_string()));
         959  +
                }
         960  +
                if !query_params.is_empty() {
         961  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         962  +
                    let pairs: Vec<String> = query_params
         963  +
                        .iter()
         964  +
                        .map(|(k, v)| {
         965  +
                            format!(
         966  +
                                "{}={}",
         967  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         968  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         969  +
                            )
         970  +
                        })
         971  +
                        .collect();
         972  +
                    uri.push_str(&pairs.join("&"));
  199    973   
                }
         974  +
                request.set_uri(uri.as_str()).expect("valid URI");
  200    975   
            }
  201         -
                ::std::result::Result::Ok(())
         976  +
         977  +
            return ::std::result::Result::Ok(request);
         978  +
        } else {
         979  +
            let mut request = protocol
         980  +
                .serialize_request(&input, Invoke::INPUT_SCHEMA, "", _cfg)
         981  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         982  +
         983  +
            return ::std::result::Result::Ok(request);
  202    984   
        }
  203         -
            #[allow(clippy::unnecessary_wraps)]
  204         -
            fn update_http_builder(
  205         -
                input: &crate::operation::invoke::InvokeInput,
  206         -
                builder: ::http_1x::request::Builder,
  207         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  208         -
                let mut uri = ::std::string::String::new();
  209         -
                uri_base(input, &mut uri)?;
  210         -
                uri_query(input, &mut uri)?;
  211         -
                let builder = crate::protocol_serde::shape_invoke::ser_invoke_headers(input, builder)?;
  212         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  213         -
            }
  214         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  215         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/octet-stream");
  216         -
            builder
  217         -
        };
  218         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_invoke_input::ser_payload_http_payload(input.payload)?);
  219         -
        if let Some(content_length) = body.content_length() {
  220         -
            let content_length = content_length.to_string();
  221         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  222         -
        }
  223         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  224    985   
    }
  225    986   
}
  226    987   
#[derive(Debug)]
  227    988   
struct InvokeEndpointParamsInterceptor;
  228    989   
  229    990   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for InvokeEndpointParamsInterceptor {
  230    991   
    fn name(&self) -> &'static str {
  231    992   
        "InvokeEndpointParamsInterceptor"
  232    993   
    }
  233    994