AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/create_function.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 `CreateFunction`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateFunction;
    6      6   
impl CreateFunction {
    7      7   
    /// Creates a new `CreateFunction`
    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::create_function::CreateFunctionInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::create_function::CreateFunctionOutput::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::create_function::CreateFunctionInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::create_function::CreateFunctionOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::create_function::CreateFunctionError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -119,123 +238,476 @@
  139    143   
        ::std::borrow::Cow::Owned(rcb)
  140    144   
    }
  141    145   
}
  142    146   
  143    147   
#[derive(Debug)]
  144    148   
struct CreateFunctionResponseDeserializer;
  145    149   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateFunctionResponseDeserializer {
  146    150   
    fn deserialize_nonstreaming(
  147    151   
        &self,
  148    152   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         153  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  149    154   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  150    155   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  151         -
        let headers = response.headers();
  152         -
        let body = response.body().bytes().expect("body loaded");
  153    156   
        #[allow(unused_mut)]
  154    157   
        let mut force_error = false;
  155    158   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  156         -
        let parse_result = if !success && status != 201 || force_error {
  157         -
            crate::protocol_serde::shape_create_function::de_create_function_http_error(status, headers, body)
  158         -
        } else {
  159         -
            crate::protocol_serde::shape_create_function::de_create_function_http_response(status, headers, body)
         159  +
        if !success && status != 201 || force_error {
         160  +
            let headers = response.headers();
         161  +
            let body = response.body().bytes().expect("body loaded");
         162  +
            #[allow(unused_mut)]
         163  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         164  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         165  +
            })?;
         166  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         167  +
            let generic = generic_builder.build();
         168  +
            let error_code = match generic.code() {
         169  +
                ::std::option::Option::Some(code) => code,
         170  +
                ::std::option::Option::None => {
         171  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         172  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::create_function::CreateFunctionError::unhandled(
         173  +
                            generic,
         174  +
                        )),
         175  +
                    ))
         176  +
                }
         177  +
            };
         178  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         179  +
            let protocol = _cfg
         180  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         181  +
                .expect("a SharedClientProtocol is required");
         182  +
            let err = match error_code {
         183  +
                "CodeSigningConfigNotFoundException" => crate::operation::create_function::CreateFunctionError::CodeSigningConfigNotFoundException({
         184  +
                    let mut tmp = match protocol
         185  +
                        .deserialize_response(response, crate::types::error::CodeSigningConfigNotFoundException::SCHEMA, _cfg)
         186  +
                        .and_then(|mut deser| {
         187  +
                            crate::types::error::CodeSigningConfigNotFoundException::deserialize_with_response(
         188  +
                                &mut *deser,
         189  +
                                response.headers(),
         190  +
                                response.status().into(),
         191  +
                                body,
         192  +
                            )
         193  +
                        }) {
         194  +
                        ::std::result::Result::Ok(val) => val,
         195  +
                        ::std::result::Result::Err(e) => {
         196  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         197  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         198  +
                            ))
         199  +
                        }
         200  +
                    };
         201  +
                    tmp.meta = generic;
         202  +
                    if tmp.message.is_none() {
         203  +
                        tmp.message = _error_message;
         204  +
                    }
         205  +
                    tmp
         206  +
                }),
         207  +
                "CodeStorageExceededException" => crate::operation::create_function::CreateFunctionError::CodeStorageExceededException({
         208  +
                    let mut tmp = match protocol
         209  +
                        .deserialize_response(response, crate::types::error::CodeStorageExceededException::SCHEMA, _cfg)
         210  +
                        .and_then(|mut deser| {
         211  +
                            crate::types::error::CodeStorageExceededException::deserialize_with_response(
         212  +
                                &mut *deser,
         213  +
                                response.headers(),
         214  +
                                response.status().into(),
         215  +
                                body,
         216  +
                            )
         217  +
                        }) {
         218  +
                        ::std::result::Result::Ok(val) => val,
         219  +
                        ::std::result::Result::Err(e) => {
         220  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         221  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         222  +
                            ))
         223  +
                        }
         224  +
                    };
         225  +
                    tmp.meta = generic;
         226  +
                    if tmp.message.is_none() {
         227  +
                        tmp.message = _error_message;
         228  +
                    }
         229  +
                    tmp
         230  +
                }),
         231  +
                "CodeVerificationFailedException" => crate::operation::create_function::CreateFunctionError::CodeVerificationFailedException({
         232  +
                    let mut tmp = match protocol
         233  +
                        .deserialize_response(response, crate::types::error::CodeVerificationFailedException::SCHEMA, _cfg)
         234  +
                        .and_then(|mut deser| {
         235  +
                            crate::types::error::CodeVerificationFailedException::deserialize_with_response(
         236  +
                                &mut *deser,
         237  +
                                response.headers(),
         238  +
                                response.status().into(),
         239  +
                                body,
         240  +
                            )
         241  +
                        }) {
         242  +
                        ::std::result::Result::Ok(val) => val,
         243  +
                        ::std::result::Result::Err(e) => {
         244  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         245  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         246  +
                            ))
         247  +
                        }
  160    248   
                    };
  161         -
        crate::protocol_serde::type_erase_result(parse_result)
         249  +
                    tmp.meta = generic;
         250  +
                    if tmp.message.is_none() {
         251  +
                        tmp.message = _error_message;
         252  +
                    }
         253  +
                    tmp
         254  +
                }),
         255  +
                "InvalidCodeSignatureException" => crate::operation::create_function::CreateFunctionError::InvalidCodeSignatureException({
         256  +
                    let mut tmp = match protocol
         257  +
                        .deserialize_response(response, crate::types::error::InvalidCodeSignatureException::SCHEMA, _cfg)
         258  +
                        .and_then(|mut deser| {
         259  +
                            crate::types::error::InvalidCodeSignatureException::deserialize_with_response(
         260  +
                                &mut *deser,
         261  +
                                response.headers(),
         262  +
                                response.status().into(),
         263  +
                                body,
         264  +
                            )
         265  +
                        }) {
         266  +
                        ::std::result::Result::Ok(val) => val,
         267  +
                        ::std::result::Result::Err(e) => {
         268  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         269  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         270  +
                            ))
         271  +
                        }
         272  +
                    };
         273  +
                    tmp.meta = generic;
         274  +
                    if tmp.message.is_none() {
         275  +
                        tmp.message = _error_message;
         276  +
                    }
         277  +
                    tmp
         278  +
                }),
         279  +
                "InvalidParameterValueException" => crate::operation::create_function::CreateFunctionError::InvalidParameterValueException({
         280  +
                    let mut tmp = match protocol
         281  +
                        .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         282  +
                        .and_then(|mut deser| {
         283  +
                            crate::types::error::InvalidParameterValueException::deserialize_with_response(
         284  +
                                &mut *deser,
         285  +
                                response.headers(),
         286  +
                                response.status().into(),
         287  +
                                body,
         288  +
                            )
         289  +
                        }) {
         290  +
                        ::std::result::Result::Ok(val) => val,
         291  +
                        ::std::result::Result::Err(e) => {
         292  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         293  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         294  +
                            ))
         295  +
                        }
         296  +
                    };
         297  +
                    tmp.meta = generic;
         298  +
                    if tmp.message.is_none() {
         299  +
                        tmp.message = _error_message;
         300  +
                    }
         301  +
                    tmp
         302  +
                }),
         303  +
                "ResourceConflictException" => crate::operation::create_function::CreateFunctionError::ResourceConflictException({
         304  +
                    let mut tmp = match protocol
         305  +
                        .deserialize_response(response, crate::types::error::ResourceConflictException::SCHEMA, _cfg)
         306  +
                        .and_then(|mut deser| {
         307  +
                            crate::types::error::ResourceConflictException::deserialize_with_response(
         308  +
                                &mut *deser,
         309  +
                                response.headers(),
         310  +
                                response.status().into(),
         311  +
                                body,
         312  +
                            )
         313  +
                        }) {
         314  +
                        ::std::result::Result::Ok(val) => val,
         315  +
                        ::std::result::Result::Err(e) => {
         316  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         317  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         318  +
                            ))
         319  +
                        }
         320  +
                    };
         321  +
                    tmp.meta = generic;
         322  +
                    if tmp.message.is_none() {
         323  +
                        tmp.message = _error_message;
         324  +
                    }
         325  +
                    tmp
         326  +
                }),
         327  +
                "ResourceNotFoundException" => crate::operation::create_function::CreateFunctionError::ResourceNotFoundException({
         328  +
                    let mut tmp = match protocol
         329  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         330  +
                        .and_then(|mut deser| {
         331  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         332  +
                                &mut *deser,
         333  +
                                response.headers(),
         334  +
                                response.status().into(),
         335  +
                                body,
         336  +
                            )
         337  +
                        }) {
         338  +
                        ::std::result::Result::Ok(val) => val,
         339  +
                        ::std::result::Result::Err(e) => {
         340  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         341  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         342  +
                            ))
         343  +
                        }
         344  +
                    };
         345  +
                    tmp.meta = generic;
         346  +
                    if tmp.message.is_none() {
         347  +
                        tmp.message = _error_message;
         348  +
                    }
         349  +
                    tmp
         350  +
                }),
         351  +
                "ServiceException" => crate::operation::create_function::CreateFunctionError::ServiceException({
         352  +
                    let mut tmp = match protocol
         353  +
                        .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         354  +
                        .and_then(|mut deser| {
         355  +
                            crate::types::error::ServiceException::deserialize_with_response(
         356  +
                                &mut *deser,
         357  +
                                response.headers(),
         358  +
                                response.status().into(),
         359  +
                                body,
         360  +
                            )
         361  +
                        }) {
         362  +
                        ::std::result::Result::Ok(val) => val,
         363  +
                        ::std::result::Result::Err(e) => {
         364  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         365  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         366  +
                            ))
         367  +
                        }
         368  +
                    };
         369  +
                    tmp.meta = generic;
         370  +
                    if tmp.message.is_none() {
         371  +
                        tmp.message = _error_message;
         372  +
                    }
         373  +
                    tmp
         374  +
                }),
         375  +
                "TooManyRequestsException" => crate::operation::create_function::CreateFunctionError::TooManyRequestsException({
         376  +
                    let mut tmp = match protocol
         377  +
                        .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         378  +
                        .and_then(|mut deser| {
         379  +
                            crate::types::error::TooManyRequestsException::deserialize_with_response(
         380  +
                                &mut *deser,
         381  +
                                response.headers(),
         382  +
                                response.status().into(),
         383  +
                                body,
         384  +
                            )
         385  +
                        }) {
         386  +
                        ::std::result::Result::Ok(val) => val,
         387  +
                        ::std::result::Result::Err(e) => {
         388  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         389  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         390  +
                            ))
         391  +
                        }
         392  +
                    };
         393  +
                    tmp.meta = generic;
         394  +
                    if tmp.message.is_none() {
         395  +
                        tmp.message = _error_message;
         396  +
                    }
         397  +
                    tmp
         398  +
                }),
         399  +
                _ => crate::operation::create_function::CreateFunctionError::generic(generic),
         400  +
            };
         401  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         402  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         403  +
            ))
         404  +
        } else {
         405  +
            let protocol = _cfg
         406  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         407  +
                .expect("a SharedClientProtocol is required");
         408  +
            let mut deser = protocol
         409  +
                .deserialize_response(response, CreateFunction::OUTPUT_SCHEMA, _cfg)
         410  +
                .map_err(|e| {
         411  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         412  +
                })?;
         413  +
            let body = response.body().bytes().expect("body loaded");
         414  +
            let output = crate::operation::create_function::CreateFunctionOutput::deserialize_with_response(
         415  +
                &mut *deser,
         416  +
                response.headers(),
         417  +
                response.status().into(),
         418  +
                body,
         419  +
            )
         420  +
            .map_err(|e| {
         421  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         422  +
            })?;
         423  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         424  +
        }
  162    425   
    }
  163    426   
}
  164    427   
#[derive(Debug)]
  165    428   
struct CreateFunctionRequestSerializer;
  166    429   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for CreateFunctionRequestSerializer {
  167    430   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  168    431   
    fn serialize_input(
  169    432   
        &self,
  170    433   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  171    434   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  172    435   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  173    436   
        let input = input
  174    437   
            .downcast::<crate::operation::create_function::CreateFunctionInput>()
  175    438   
            .expect("correct type");
  176         -
        let _header_serialization_settings = _cfg
  177         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  178         -
            .cloned()
  179         -
            .unwrap_or_default();
  180         -
        let mut request_builder = {
  181         -
            #[allow(clippy::uninlined_format_args)]
  182         -
            fn uri_base(
  183         -
                _input: &crate::operation::create_function::CreateFunctionInput,
  184         -
                output: &mut ::std::string::String,
  185         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  186         -
                use ::std::fmt::Write as _;
  187         -
                ::std::write!(output, "/2015-03-31/functions").expect("formatting should succeed");
  188         -
                ::std::result::Result::Ok(())
  189         -
            }
  190         -
            #[allow(clippy::unnecessary_wraps)]
  191         -
            fn update_http_builder(
  192         -
                input: &crate::operation::create_function::CreateFunctionInput,
  193         -
                builder: ::http_1x::request::Builder,
  194         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  195         -
                let mut uri = ::std::string::String::new();
  196         -
                uri_base(input, &mut uri)?;
  197         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  198         -
            }
  199         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  200         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  201         -
            builder
  202         -
        };
  203         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_create_function::ser_create_function_input(&input)?);
  204         -
        if let Some(content_length) = body.content_length() {
  205         -
            let content_length = content_length.to_string();
  206         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  207         -
        }
  208         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         439  +
        let protocol = _cfg
         440  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         441  +
            .expect("a SharedClientProtocol is required");
         442  +
        let mut request = protocol
         443  +
            .serialize_request(&input, CreateFunction::INPUT_SCHEMA, "", _cfg)
         444  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         445  +
         446  +
        return ::std::result::Result::Ok(request);
  209    447   
    }
  210    448   
}
  211    449   
#[derive(Debug)]
  212    450   
struct CreateFunctionEndpointParamsInterceptor;
  213    451   
  214    452   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateFunctionEndpointParamsInterceptor {
  215    453   
    fn name(&self) -> &'static str {
  216    454   
        "CreateFunctionEndpointParamsInterceptor"
  217    455   
    }
  218    456   

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

@@ -187,187 +509,510 @@
  207    207   
    "com.amazonaws.lambda.synthetic",
  208    208   
    "CreateFunctionInput",
  209    209   
);
  210    210   
static CREATEFUNCTIONINPUT_MEMBER_FUNCTION_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  211    211   
    ::aws_smithy_schema::ShapeId::from_static(
  212    212   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$FunctionName",
  213    213   
        "com.amazonaws.lambda.synthetic",
  214    214   
        "CreateFunctionInput",
  215    215   
    ),
  216    216   
    ::aws_smithy_schema::ShapeType::String,
  217         -
    "function_name",
         217  +
    "FunctionName",
  218    218   
    0,
  219    219   
);
  220    220   
static CREATEFUNCTIONINPUT_MEMBER_RUNTIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  221    221   
    ::aws_smithy_schema::ShapeId::from_static(
  222    222   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$Runtime",
  223    223   
        "com.amazonaws.lambda.synthetic",
  224    224   
        "CreateFunctionInput",
  225    225   
    ),
  226    226   
    ::aws_smithy_schema::ShapeType::String,
  227         -
    "runtime",
         227  +
    "Runtime",
  228    228   
    1,
  229    229   
);
  230    230   
static CREATEFUNCTIONINPUT_MEMBER_ROLE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  231    231   
    ::aws_smithy_schema::ShapeId::from_static(
  232    232   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$Role",
  233    233   
        "com.amazonaws.lambda.synthetic",
  234    234   
        "CreateFunctionInput",
  235    235   
    ),
  236    236   
    ::aws_smithy_schema::ShapeType::String,
  237         -
    "role",
         237  +
    "Role",
  238    238   
    2,
  239    239   
);
  240    240   
static CREATEFUNCTIONINPUT_MEMBER_HANDLER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  241    241   
    ::aws_smithy_schema::ShapeId::from_static(
  242    242   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$Handler",
  243    243   
        "com.amazonaws.lambda.synthetic",
  244    244   
        "CreateFunctionInput",
  245    245   
    ),
  246    246   
    ::aws_smithy_schema::ShapeType::String,
  247         -
    "handler",
         247  +
    "Handler",
  248    248   
    3,
  249    249   
);
  250    250   
static CREATEFUNCTIONINPUT_MEMBER_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  251    251   
    ::aws_smithy_schema::ShapeId::from_static(
  252    252   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$Code",
  253    253   
        "com.amazonaws.lambda.synthetic",
  254    254   
        "CreateFunctionInput",
  255    255   
    ),
  256    256   
    ::aws_smithy_schema::ShapeType::Structure,
  257         -
    "code",
         257  +
    "Code",
  258    258   
    4,
  259    259   
);
  260    260   
static CREATEFUNCTIONINPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  261    261   
    ::aws_smithy_schema::ShapeId::from_static(
  262    262   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$Description",
  263    263   
        "com.amazonaws.lambda.synthetic",
  264    264   
        "CreateFunctionInput",
  265    265   
    ),
  266    266   
    ::aws_smithy_schema::ShapeType::String,
  267         -
    "description",
         267  +
    "Description",
  268    268   
    5,
  269    269   
);
  270    270   
static CREATEFUNCTIONINPUT_MEMBER_TIMEOUT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  271    271   
    ::aws_smithy_schema::ShapeId::from_static(
  272    272   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$Timeout",
  273    273   
        "com.amazonaws.lambda.synthetic",
  274    274   
        "CreateFunctionInput",
  275    275   
    ),
  276    276   
    ::aws_smithy_schema::ShapeType::Integer,
  277         -
    "timeout",
         277  +
    "Timeout",
  278    278   
    6,
  279    279   
);
  280    280   
static CREATEFUNCTIONINPUT_MEMBER_MEMORY_SIZE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  281    281   
    ::aws_smithy_schema::ShapeId::from_static(
  282    282   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$MemorySize",
  283    283   
        "com.amazonaws.lambda.synthetic",
  284    284   
        "CreateFunctionInput",
  285    285   
    ),
  286    286   
    ::aws_smithy_schema::ShapeType::Integer,
  287         -
    "memory_size",
         287  +
    "MemorySize",
  288    288   
    7,
  289    289   
);
  290    290   
static CREATEFUNCTIONINPUT_MEMBER_PUBLISH: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  291    291   
    ::aws_smithy_schema::ShapeId::from_static(
  292    292   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$Publish",
  293    293   
        "com.amazonaws.lambda.synthetic",
  294    294   
        "CreateFunctionInput",
  295    295   
    ),
  296    296   
    ::aws_smithy_schema::ShapeType::Boolean,
  297         -
    "publish",
         297  +
    "Publish",
  298    298   
    8,
  299    299   
);
  300    300   
static CREATEFUNCTIONINPUT_MEMBER_VPC_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  301    301   
    ::aws_smithy_schema::ShapeId::from_static(
  302    302   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$VpcConfig",
  303    303   
        "com.amazonaws.lambda.synthetic",
  304    304   
        "CreateFunctionInput",
  305    305   
    ),
  306    306   
    ::aws_smithy_schema::ShapeType::Structure,
  307         -
    "vpc_config",
         307  +
    "VpcConfig",
  308    308   
    9,
  309    309   
);
  310    310   
static CREATEFUNCTIONINPUT_MEMBER_PACKAGE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  311    311   
    ::aws_smithy_schema::ShapeId::from_static(
  312    312   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$PackageType",
  313    313   
        "com.amazonaws.lambda.synthetic",
  314    314   
        "CreateFunctionInput",
  315    315   
    ),
  316    316   
    ::aws_smithy_schema::ShapeType::String,
  317         -
    "package_type",
         317  +
    "PackageType",
  318    318   
    10,
  319    319   
);
  320    320   
static CREATEFUNCTIONINPUT_MEMBER_DEAD_LETTER_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  321    321   
    ::aws_smithy_schema::ShapeId::from_static(
  322    322   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$DeadLetterConfig",
  323    323   
        "com.amazonaws.lambda.synthetic",
  324    324   
        "CreateFunctionInput",
  325    325   
    ),
  326    326   
    ::aws_smithy_schema::ShapeType::Structure,
  327         -
    "dead_letter_config",
         327  +
    "DeadLetterConfig",
  328    328   
    11,
  329    329   
);
  330    330   
static CREATEFUNCTIONINPUT_MEMBER_ENVIRONMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  331    331   
    ::aws_smithy_schema::ShapeId::from_static(
  332    332   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$Environment",
  333    333   
        "com.amazonaws.lambda.synthetic",
  334    334   
        "CreateFunctionInput",
  335    335   
    ),
  336    336   
    ::aws_smithy_schema::ShapeType::Structure,
  337         -
    "environment",
         337  +
    "Environment",
  338    338   
    12,
  339    339   
);
  340    340   
static CREATEFUNCTIONINPUT_MEMBER_KMS_KEY_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  341    341   
    ::aws_smithy_schema::ShapeId::from_static(
  342    342   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$KMSKeyArn",
  343    343   
        "com.amazonaws.lambda.synthetic",
  344    344   
        "CreateFunctionInput",
  345    345   
    ),
  346    346   
    ::aws_smithy_schema::ShapeType::String,
  347         -
    "kms_key_arn",
         347  +
    "KMSKeyArn",
  348    348   
    13,
  349    349   
);
  350    350   
static CREATEFUNCTIONINPUT_MEMBER_TRACING_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  351    351   
    ::aws_smithy_schema::ShapeId::from_static(
  352    352   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$TracingConfig",
  353    353   
        "com.amazonaws.lambda.synthetic",
  354    354   
        "CreateFunctionInput",
  355    355   
    ),
  356    356   
    ::aws_smithy_schema::ShapeType::Structure,
  357         -
    "tracing_config",
         357  +
    "TracingConfig",
  358    358   
    14,
  359    359   
);
  360    360   
static CREATEFUNCTIONINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  361    361   
    ::aws_smithy_schema::ShapeId::from_static(
  362    362   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$Tags",
  363    363   
        "com.amazonaws.lambda.synthetic",
  364    364   
        "CreateFunctionInput",
  365    365   
    ),
  366    366   
    ::aws_smithy_schema::ShapeType::Map,
  367         -
    "tags",
         367  +
    "Tags",
  368    368   
    15,
  369    369   
);
  370    370   
static CREATEFUNCTIONINPUT_MEMBER_LAYERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  371    371   
    ::aws_smithy_schema::ShapeId::from_static(
  372    372   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$Layers",
  373    373   
        "com.amazonaws.lambda.synthetic",
  374    374   
        "CreateFunctionInput",
  375    375   
    ),
  376    376   
    ::aws_smithy_schema::ShapeType::List,
  377         -
    "layers",
         377  +
    "Layers",
  378    378   
    16,
  379    379   
);
  380    380   
static CREATEFUNCTIONINPUT_MEMBER_FILE_SYSTEM_CONFIGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  381    381   
    ::aws_smithy_schema::ShapeId::from_static(
  382    382   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$FileSystemConfigs",
  383    383   
        "com.amazonaws.lambda.synthetic",
  384    384   
        "CreateFunctionInput",
  385    385   
    ),
  386    386   
    ::aws_smithy_schema::ShapeType::List,
  387         -
    "file_system_configs",
         387  +
    "FileSystemConfigs",
  388    388   
    17,
  389    389   
);
  390    390   
static CREATEFUNCTIONINPUT_MEMBER_IMAGE_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  391    391   
    ::aws_smithy_schema::ShapeId::from_static(
  392    392   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$ImageConfig",
  393    393   
        "com.amazonaws.lambda.synthetic",
  394    394   
        "CreateFunctionInput",
  395    395   
    ),
  396    396   
    ::aws_smithy_schema::ShapeType::Structure,
  397         -
    "image_config",
         397  +
    "ImageConfig",
  398    398   
    18,
  399    399   
);
  400    400   
static CREATEFUNCTIONINPUT_MEMBER_CODE_SIGNING_CONFIG_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  401    401   
    ::aws_smithy_schema::ShapeId::from_static(
  402    402   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$CodeSigningConfigArn",
  403    403   
        "com.amazonaws.lambda.synthetic",
  404    404   
        "CreateFunctionInput",
  405    405   
    ),
  406    406   
    ::aws_smithy_schema::ShapeType::String,
  407         -
    "code_signing_config_arn",
         407  +
    "CodeSigningConfigArn",
  408    408   
    19,
  409    409   
);
  410    410   
static CREATEFUNCTIONINPUT_MEMBER_ARCHITECTURES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  411    411   
    ::aws_smithy_schema::ShapeId::from_static(
  412    412   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$Architectures",
  413    413   
        "com.amazonaws.lambda.synthetic",
  414    414   
        "CreateFunctionInput",
  415    415   
    ),
  416    416   
    ::aws_smithy_schema::ShapeType::List,
  417         -
    "architectures",
         417  +
    "Architectures",
  418    418   
    20,
  419    419   
);
  420    420   
static CREATEFUNCTIONINPUT_MEMBER_EPHEMERAL_STORAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  421    421   
    ::aws_smithy_schema::ShapeId::from_static(
  422    422   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$EphemeralStorage",
  423    423   
        "com.amazonaws.lambda.synthetic",
  424    424   
        "CreateFunctionInput",
  425    425   
    ),
  426    426   
    ::aws_smithy_schema::ShapeType::Structure,
  427         -
    "ephemeral_storage",
         427  +
    "EphemeralStorage",
  428    428   
    21,
  429    429   
);
  430    430   
static CREATEFUNCTIONINPUT_MEMBER_SNAP_START: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  431    431   
    ::aws_smithy_schema::ShapeId::from_static(
  432    432   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$SnapStart",
  433    433   
        "com.amazonaws.lambda.synthetic",
  434    434   
        "CreateFunctionInput",
  435    435   
    ),
  436    436   
    ::aws_smithy_schema::ShapeType::Structure,
  437         -
    "snap_start",
         437  +
    "SnapStart",
  438    438   
    22,
  439    439   
);
  440    440   
static CREATEFUNCTIONINPUT_MEMBER_LOGGING_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  441    441   
    ::aws_smithy_schema::ShapeId::from_static(
  442    442   
        "com.amazonaws.lambda.synthetic#CreateFunctionInput$LoggingConfig",
  443    443   
        "com.amazonaws.lambda.synthetic",
  444    444   
        "CreateFunctionInput",
  445    445   
    ),
  446    446   
    ::aws_smithy_schema::ShapeType::Structure,
  447         -
    "logging_config",
         447  +
    "LoggingConfig",
  448    448   
    23,
  449    449   
);
  450    450   
static CREATEFUNCTIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  451    451   
    CREATEFUNCTIONINPUT_SCHEMA_ID,
  452    452   
    ::aws_smithy_schema::ShapeType::Structure,
  453    453   
    &[
  454    454   
        &CREATEFUNCTIONINPUT_MEMBER_FUNCTION_NAME,
  455    455   
        &CREATEFUNCTIONINPUT_MEMBER_RUNTIME,
  456    456   
        &CREATEFUNCTIONINPUT_MEMBER_ROLE,
  457    457   
        &CREATEFUNCTIONINPUT_MEMBER_HANDLER,
  458    458   
        &CREATEFUNCTIONINPUT_MEMBER_CODE,
  459    459   
        &CREATEFUNCTIONINPUT_MEMBER_DESCRIPTION,
  460    460   
        &CREATEFUNCTIONINPUT_MEMBER_TIMEOUT,
  461    461   
        &CREATEFUNCTIONINPUT_MEMBER_MEMORY_SIZE,
  462    462   
        &CREATEFUNCTIONINPUT_MEMBER_PUBLISH,
  463    463   
        &CREATEFUNCTIONINPUT_MEMBER_VPC_CONFIG,
  464    464   
        &CREATEFUNCTIONINPUT_MEMBER_PACKAGE_TYPE,
  465    465   
        &CREATEFUNCTIONINPUT_MEMBER_DEAD_LETTER_CONFIG,
  466    466   
        &CREATEFUNCTIONINPUT_MEMBER_ENVIRONMENT,
  467    467   
        &CREATEFUNCTIONINPUT_MEMBER_KMS_KEY_ARN,
  468    468   
        &CREATEFUNCTIONINPUT_MEMBER_TRACING_CONFIG,
  469    469   
        &CREATEFUNCTIONINPUT_MEMBER_TAGS,
  470    470   
        &CREATEFUNCTIONINPUT_MEMBER_LAYERS,
  471    471   
        &CREATEFUNCTIONINPUT_MEMBER_FILE_SYSTEM_CONFIGS,
  472    472   
        &CREATEFUNCTIONINPUT_MEMBER_IMAGE_CONFIG,
  473    473   
        &CREATEFUNCTIONINPUT_MEMBER_CODE_SIGNING_CONFIG_ARN,
  474    474   
        &CREATEFUNCTIONINPUT_MEMBER_ARCHITECTURES,
  475    475   
        &CREATEFUNCTIONINPUT_MEMBER_EPHEMERAL_STORAGE,
  476    476   
        &CREATEFUNCTIONINPUT_MEMBER_SNAP_START,
  477    477   
        &CREATEFUNCTIONINPUT_MEMBER_LOGGING_CONFIG,
  478    478   
    ],
  479         -
);
         479  +
)
         480  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("POST", "/2015-03-31/functions", Some(201)));
  480    481   
impl CreateFunctionInput {
  481    482   
    /// The schema for this shape.
  482    483   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEFUNCTIONINPUT_SCHEMA;
  483    484   
}
  484    485   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateFunctionInput {
  485    486   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  486    487   
    fn serialize_members(
  487    488   
        &self,
  488    489   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  489    490   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
@@ -570,571 +764,752 @@
  590    591   
            ser.write_struct(&CREATEFUNCTIONINPUT_MEMBER_SNAP_START, val)?;
  591    592   
        }
  592    593   
        if let Some(ref val) = self.logging_config {
  593    594   
            ser.write_struct(&CREATEFUNCTIONINPUT_MEMBER_LOGGING_CONFIG, val)?;
  594    595   
        }
  595    596   
        Ok(())
  596    597   
    }
  597    598   
}
  598    599   
impl CreateFunctionInput {
  599    600   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  600         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  601         -
        deserializer: &mut D,
         601  +
    pub fn deserialize(
         602  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  602    603   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  603    604   
        #[allow(unused_variables, unused_mut)]
  604    605   
        let mut builder = Self::builder();
  605    606   
        #[allow(
  606    607   
            unused_variables,
  607    608   
            unreachable_code,
  608    609   
            clippy::single_match,
  609    610   
            clippy::match_single_binding,
  610    611   
            clippy::diverging_sub_expression
  611    612   
        )]
  612         -
        deserializer.read_struct(&CREATEFUNCTIONINPUT_SCHEMA, (), |_, member, deser| {
         613  +
        deserializer.read_struct(&CREATEFUNCTIONINPUT_SCHEMA, &mut |member, deser| {
  613    614   
            match member.member_index() {
  614    615   
                Some(0) => {
  615    616   
                    builder.function_name = Some(deser.read_string(member)?);
  616    617   
                }
  617    618   
                Some(1) => {
  618    619   
                    builder.runtime = Some(crate::types::Runtime::from(deser.read_string(member)?.as_str()));
  619    620   
                }
  620    621   
                Some(2) => {
  621    622   
                    builder.role = Some(deser.read_string(member)?);
  622    623   
                }
  623    624   
                Some(3) => {
  624    625   
                    builder.handler = Some(deser.read_string(member)?);
  625    626   
                }
  626    627   
                Some(4) => {
  627    628   
                    builder.code = Some(crate::types::FunctionCode::deserialize(deser)?);
  628    629   
                }
  629    630   
                Some(5) => {
  630    631   
                    builder.description = Some(deser.read_string(member)?);
  631    632   
                }
  632    633   
                Some(6) => {
  633    634   
                    builder.timeout = Some(deser.read_integer(member)?);
  634    635   
                }
  635    636   
                Some(7) => {
  636    637   
                    builder.memory_size = Some(deser.read_integer(member)?);
  637    638   
                }
  638    639   
                Some(8) => {
  639    640   
                    builder.publish = Some(deser.read_boolean(member)?);
  640    641   
                }
  641    642   
                Some(9) => {
  642    643   
                    builder.vpc_config = Some(crate::types::VpcConfig::deserialize(deser)?);
  643    644   
                }
  644    645   
                Some(10) => {
  645    646   
                    builder.package_type = Some(crate::types::PackageType::from(deser.read_string(member)?.as_str()));
  646    647   
                }
  647    648   
                Some(11) => {
  648    649   
                    builder.dead_letter_config = Some(crate::types::DeadLetterConfig::deserialize(deser)?);
  649    650   
                }
  650    651   
                Some(12) => {
  651    652   
                    builder.environment = Some(crate::types::Environment::deserialize(deser)?);
  652    653   
                }
  653    654   
                Some(13) => {
  654    655   
                    builder.kms_key_arn = Some(deser.read_string(member)?);
  655    656   
                }
  656    657   
                Some(14) => {
  657    658   
                    builder.tracing_config = Some(crate::types::TracingConfig::deserialize(deser)?);
  658    659   
                }
  659    660   
                Some(15) => {
  660         -
                    builder.tags = Some({
  661         -
                        let container = if let Some(cap) = deser.container_size() {
  662         -
                            std::collections::HashMap::with_capacity(cap)
  663         -
                        } else {
  664         -
                            std::collections::HashMap::new()
  665         -
                        };
  666         -
                        deser.read_map(member, container, |mut map, key, deser| {
  667         -
                            map.insert(key, deser.read_string(member)?);
  668         -
                            Ok(map)
  669         -
                        })?
  670         -
                    });
         661  +
                    builder.tags = Some(deser.read_string_string_map(member)?);
  671    662   
                }
  672    663   
                Some(16) => {
  673         -
                    builder.layers = Some({
  674         -
                        let container = if let Some(cap) = deser.container_size() {
  675         -
                            Vec::with_capacity(cap)
  676         -
                        } else {
  677         -
                            Vec::new()
  678         -
                        };
  679         -
                        deser.read_list(member, container, |mut list, deser| {
  680         -
                            list.push(deser.read_string(member)?);
  681         -
                            Ok(list)
  682         -
                        })?
  683         -
                    });
         664  +
                    builder.layers = Some(deser.read_string_list(member)?);
  684    665   
                }
  685    666   
                Some(17) => {
  686    667   
                    builder.file_system_configs = Some({
  687         -
                        let container = if let Some(cap) = deser.container_size() {
  688         -
                            Vec::with_capacity(cap)
  689         -
                        } else {
  690         -
                            Vec::new()
  691         -
                        };
  692         -
                        deser.read_list(member, container, |mut list, deser| {
  693         -
                            list.push(crate::types::FileSystemConfig::deserialize(deser)?);
  694         -
                            Ok(list)
  695         -
                        })?
         668  +
                        let mut container = Vec::new();
         669  +
                        deser.read_list(member, &mut |deser| {
         670  +
                            container.push(crate::types::FileSystemConfig::deserialize(deser)?);
         671  +
                            Ok(())
         672  +
                        })?;
         673  +
                        container
  696    674   
                    });
  697    675   
                }
  698    676   
                Some(18) => {
  699    677   
                    builder.image_config = Some(crate::types::ImageConfig::deserialize(deser)?);
  700    678   
                }
  701    679   
                Some(19) => {
  702    680   
                    builder.code_signing_config_arn = Some(deser.read_string(member)?);
  703    681   
                }
  704    682   
                Some(20) => {
  705    683   
                    builder.architectures = Some({
  706         -
                        let container = if let Some(cap) = deser.container_size() {
  707         -
                            Vec::with_capacity(cap)
  708         -
                        } else {
  709         -
                            Vec::new()
  710         -
                        };
  711         -
                        deser.read_list(member, container, |mut list, deser| {
  712         -
                            list.push(crate::types::Architecture::from(deser.read_string(member)?.as_str()));
  713         -
                            Ok(list)
  714         -
                        })?
         684  +
                        let mut container = Vec::new();
         685  +
                        deser.read_list(member, &mut |deser| {
         686  +
                            container.push(crate::types::Architecture::from(deser.read_string(member)?.as_str()));
         687  +
                            Ok(())
         688  +
                        })?;
         689  +
                        container
  715    690   
                    });
  716    691   
                }
  717    692   
                Some(21) => {
  718    693   
                    builder.ephemeral_storage = Some(crate::types::EphemeralStorage::deserialize(deser)?);
  719    694   
                }
  720    695   
                Some(22) => {
  721    696   
                    builder.snap_start = Some(crate::types::SnapStart::deserialize(deser)?);
  722    697   
                }
  723    698   
                Some(23) => {
  724    699   
                    builder.logging_config = Some(crate::types::LoggingConfig::deserialize(deser)?);
  725    700   
                }
  726    701   
                _ => {}
  727    702   
            }
  728    703   
            Ok(())
  729    704   
        })?;
         705  +
        builder.function_name = builder.function_name.or(Some(String::new()));
         706  +
        builder.role = builder.role.or(Some(String::new()));
  730    707   
        builder
  731    708   
            .build()
  732    709   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  733    710   
    }
  734    711   
}
         712  +
impl CreateFunctionInput {
         713  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         714  +
    pub fn deserialize_with_response(
         715  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         716  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         717  +
        _status: u16,
         718  +
        _body: &[u8],
         719  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         720  +
        Self::deserialize(deserializer)
         721  +
    }
         722  +
}
  735    723   
impl CreateFunctionInput {
  736    724   
    /// Creates a new builder-style object to manufacture [`CreateFunctionInput`](crate::operation::create_function::CreateFunctionInput).
  737    725   
    pub fn builder() -> crate::operation::create_function::builders::CreateFunctionInputBuilder {
  738    726   
        crate::operation::create_function::builders::CreateFunctionInputBuilder::default()
  739    727   
    }
  740    728   
}
  741    729   
  742    730   
/// A builder for [`CreateFunctionInput`](crate::operation::create_function::CreateFunctionInput).
  743    731   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  744    732   
#[non_exhaustive]

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

@@ -241,241 +693,701 @@
  261    261   
    "com.amazonaws.lambda.synthetic",
  262    262   
    "CreateFunctionOutput",
  263    263   
);
  264    264   
static CREATEFUNCTIONOUTPUT_MEMBER_FUNCTION_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  265    265   
    ::aws_smithy_schema::ShapeId::from_static(
  266    266   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$FunctionName",
  267    267   
        "com.amazonaws.lambda.synthetic",
  268    268   
        "CreateFunctionOutput",
  269    269   
    ),
  270    270   
    ::aws_smithy_schema::ShapeType::String,
  271         -
    "function_name",
         271  +
    "FunctionName",
  272    272   
    0,
  273    273   
);
  274    274   
static CREATEFUNCTIONOUTPUT_MEMBER_FUNCTION_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  275    275   
    ::aws_smithy_schema::ShapeId::from_static(
  276    276   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$FunctionArn",
  277    277   
        "com.amazonaws.lambda.synthetic",
  278    278   
        "CreateFunctionOutput",
  279    279   
    ),
  280    280   
    ::aws_smithy_schema::ShapeType::String,
  281         -
    "function_arn",
         281  +
    "FunctionArn",
  282    282   
    1,
  283    283   
);
  284    284   
static CREATEFUNCTIONOUTPUT_MEMBER_RUNTIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  285    285   
    ::aws_smithy_schema::ShapeId::from_static(
  286    286   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$Runtime",
  287    287   
        "com.amazonaws.lambda.synthetic",
  288    288   
        "CreateFunctionOutput",
  289    289   
    ),
  290    290   
    ::aws_smithy_schema::ShapeType::String,
  291         -
    "runtime",
         291  +
    "Runtime",
  292    292   
    2,
  293    293   
);
  294    294   
static CREATEFUNCTIONOUTPUT_MEMBER_ROLE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  295    295   
    ::aws_smithy_schema::ShapeId::from_static(
  296    296   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$Role",
  297    297   
        "com.amazonaws.lambda.synthetic",
  298    298   
        "CreateFunctionOutput",
  299    299   
    ),
  300    300   
    ::aws_smithy_schema::ShapeType::String,
  301         -
    "role",
         301  +
    "Role",
  302    302   
    3,
  303    303   
);
  304    304   
static CREATEFUNCTIONOUTPUT_MEMBER_HANDLER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  305    305   
    ::aws_smithy_schema::ShapeId::from_static(
  306    306   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$Handler",
  307    307   
        "com.amazonaws.lambda.synthetic",
  308    308   
        "CreateFunctionOutput",
  309    309   
    ),
  310    310   
    ::aws_smithy_schema::ShapeType::String,
  311         -
    "handler",
         311  +
    "Handler",
  312    312   
    4,
  313    313   
);
  314    314   
static CREATEFUNCTIONOUTPUT_MEMBER_CODE_SIZE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  315    315   
    ::aws_smithy_schema::ShapeId::from_static(
  316    316   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$CodeSize",
  317    317   
        "com.amazonaws.lambda.synthetic",
  318    318   
        "CreateFunctionOutput",
  319    319   
    ),
  320    320   
    ::aws_smithy_schema::ShapeType::Long,
  321         -
    "code_size",
         321  +
    "CodeSize",
  322    322   
    5,
  323    323   
);
  324    324   
static CREATEFUNCTIONOUTPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  325    325   
    ::aws_smithy_schema::ShapeId::from_static(
  326    326   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$Description",
  327    327   
        "com.amazonaws.lambda.synthetic",
  328    328   
        "CreateFunctionOutput",
  329    329   
    ),
  330    330   
    ::aws_smithy_schema::ShapeType::String,
  331         -
    "description",
         331  +
    "Description",
  332    332   
    6,
  333    333   
);
  334    334   
static CREATEFUNCTIONOUTPUT_MEMBER_TIMEOUT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  335    335   
    ::aws_smithy_schema::ShapeId::from_static(
  336    336   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$Timeout",
  337    337   
        "com.amazonaws.lambda.synthetic",
  338    338   
        "CreateFunctionOutput",
  339    339   
    ),
  340    340   
    ::aws_smithy_schema::ShapeType::Integer,
  341         -
    "timeout",
         341  +
    "Timeout",
  342    342   
    7,
  343    343   
);
  344    344   
static CREATEFUNCTIONOUTPUT_MEMBER_MEMORY_SIZE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  345    345   
    ::aws_smithy_schema::ShapeId::from_static(
  346    346   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$MemorySize",
  347    347   
        "com.amazonaws.lambda.synthetic",
  348    348   
        "CreateFunctionOutput",
  349    349   
    ),
  350    350   
    ::aws_smithy_schema::ShapeType::Integer,
  351         -
    "memory_size",
         351  +
    "MemorySize",
  352    352   
    8,
  353    353   
);
  354    354   
static CREATEFUNCTIONOUTPUT_MEMBER_LAST_MODIFIED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  355    355   
    ::aws_smithy_schema::ShapeId::from_static(
  356    356   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$LastModified",
  357    357   
        "com.amazonaws.lambda.synthetic",
  358    358   
        "CreateFunctionOutput",
  359    359   
    ),
  360    360   
    ::aws_smithy_schema::ShapeType::String,
  361         -
    "last_modified",
         361  +
    "LastModified",
  362    362   
    9,
  363    363   
);
  364    364   
static CREATEFUNCTIONOUTPUT_MEMBER_CODE_SHA256: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  365    365   
    ::aws_smithy_schema::ShapeId::from_static(
  366    366   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$CodeSha256",
  367    367   
        "com.amazonaws.lambda.synthetic",
  368    368   
        "CreateFunctionOutput",
  369    369   
    ),
  370    370   
    ::aws_smithy_schema::ShapeType::String,
  371         -
    "code_sha256",
         371  +
    "CodeSha256",
  372    372   
    10,
  373    373   
);
  374    374   
static CREATEFUNCTIONOUTPUT_MEMBER_VERSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  375    375   
    ::aws_smithy_schema::ShapeId::from_static(
  376    376   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$Version",
  377    377   
        "com.amazonaws.lambda.synthetic",
  378    378   
        "CreateFunctionOutput",
  379    379   
    ),
  380    380   
    ::aws_smithy_schema::ShapeType::String,
  381         -
    "version",
         381  +
    "Version",
  382    382   
    11,
  383    383   
);
  384    384   
static CREATEFUNCTIONOUTPUT_MEMBER_VPC_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  385    385   
    ::aws_smithy_schema::ShapeId::from_static(
  386    386   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$VpcConfig",
  387    387   
        "com.amazonaws.lambda.synthetic",
  388    388   
        "CreateFunctionOutput",
  389    389   
    ),
  390    390   
    ::aws_smithy_schema::ShapeType::Structure,
  391         -
    "vpc_config",
         391  +
    "VpcConfig",
  392    392   
    12,
  393    393   
);
  394    394   
static CREATEFUNCTIONOUTPUT_MEMBER_DEAD_LETTER_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  395    395   
    ::aws_smithy_schema::ShapeId::from_static(
  396    396   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$DeadLetterConfig",
  397    397   
        "com.amazonaws.lambda.synthetic",
  398    398   
        "CreateFunctionOutput",
  399    399   
    ),
  400    400   
    ::aws_smithy_schema::ShapeType::Structure,
  401         -
    "dead_letter_config",
         401  +
    "DeadLetterConfig",
  402    402   
    13,
  403    403   
);
  404    404   
static CREATEFUNCTIONOUTPUT_MEMBER_ENVIRONMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  405    405   
    ::aws_smithy_schema::ShapeId::from_static(
  406    406   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$Environment",
  407    407   
        "com.amazonaws.lambda.synthetic",
  408    408   
        "CreateFunctionOutput",
  409    409   
    ),
  410    410   
    ::aws_smithy_schema::ShapeType::Structure,
  411         -
    "environment",
         411  +
    "Environment",
  412    412   
    14,
  413    413   
);
  414    414   
static CREATEFUNCTIONOUTPUT_MEMBER_KMS_KEY_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  415    415   
    ::aws_smithy_schema::ShapeId::from_static(
  416    416   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$KMSKeyArn",
  417    417   
        "com.amazonaws.lambda.synthetic",
  418    418   
        "CreateFunctionOutput",
  419    419   
    ),
  420    420   
    ::aws_smithy_schema::ShapeType::String,
  421         -
    "kms_key_arn",
         421  +
    "KMSKeyArn",
  422    422   
    15,
  423    423   
);
  424    424   
static CREATEFUNCTIONOUTPUT_MEMBER_TRACING_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  425    425   
    ::aws_smithy_schema::ShapeId::from_static(
  426    426   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$TracingConfig",
  427    427   
        "com.amazonaws.lambda.synthetic",
  428    428   
        "CreateFunctionOutput",
  429    429   
    ),
  430    430   
    ::aws_smithy_schema::ShapeType::Structure,
  431         -
    "tracing_config",
         431  +
    "TracingConfig",
  432    432   
    16,
  433    433   
);
  434    434   
static CREATEFUNCTIONOUTPUT_MEMBER_MASTER_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  435    435   
    ::aws_smithy_schema::ShapeId::from_static(
  436    436   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$MasterArn",
  437    437   
        "com.amazonaws.lambda.synthetic",
  438    438   
        "CreateFunctionOutput",
  439    439   
    ),
  440    440   
    ::aws_smithy_schema::ShapeType::String,
  441         -
    "master_arn",
         441  +
    "MasterArn",
  442    442   
    17,
  443    443   
);
  444    444   
static CREATEFUNCTIONOUTPUT_MEMBER_REVISION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  445    445   
    ::aws_smithy_schema::ShapeId::from_static(
  446    446   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$RevisionId",
  447    447   
        "com.amazonaws.lambda.synthetic",
  448    448   
        "CreateFunctionOutput",
  449    449   
    ),
  450    450   
    ::aws_smithy_schema::ShapeType::String,
  451         -
    "revision_id",
         451  +
    "RevisionId",
  452    452   
    18,
  453    453   
);
  454    454   
static CREATEFUNCTIONOUTPUT_MEMBER_LAYERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  455    455   
    ::aws_smithy_schema::ShapeId::from_static(
  456    456   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$Layers",
  457    457   
        "com.amazonaws.lambda.synthetic",
  458    458   
        "CreateFunctionOutput",
  459    459   
    ),
  460    460   
    ::aws_smithy_schema::ShapeType::List,
  461         -
    "layers",
         461  +
    "Layers",
  462    462   
    19,
  463    463   
);
  464    464   
static CREATEFUNCTIONOUTPUT_MEMBER_STATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  465    465   
    ::aws_smithy_schema::ShapeId::from_static(
  466    466   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$State",
  467    467   
        "com.amazonaws.lambda.synthetic",
  468    468   
        "CreateFunctionOutput",
  469    469   
    ),
  470    470   
    ::aws_smithy_schema::ShapeType::String,
  471         -
    "state",
         471  +
    "State",
  472    472   
    20,
  473    473   
);
  474    474   
static CREATEFUNCTIONOUTPUT_MEMBER_STATE_REASON: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  475    475   
    ::aws_smithy_schema::ShapeId::from_static(
  476    476   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$StateReason",
  477    477   
        "com.amazonaws.lambda.synthetic",
  478    478   
        "CreateFunctionOutput",
  479    479   
    ),
  480    480   
    ::aws_smithy_schema::ShapeType::String,
  481         -
    "state_reason",
         481  +
    "StateReason",
  482    482   
    21,
  483    483   
);
  484    484   
static CREATEFUNCTIONOUTPUT_MEMBER_STATE_REASON_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  485    485   
    ::aws_smithy_schema::ShapeId::from_static(
  486    486   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$StateReasonCode",
  487    487   
        "com.amazonaws.lambda.synthetic",
  488    488   
        "CreateFunctionOutput",
  489    489   
    ),
  490    490   
    ::aws_smithy_schema::ShapeType::String,
  491         -
    "state_reason_code",
         491  +
    "StateReasonCode",
  492    492   
    22,
  493    493   
);
  494    494   
static CREATEFUNCTIONOUTPUT_MEMBER_LAST_UPDATE_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  495    495   
    ::aws_smithy_schema::ShapeId::from_static(
  496    496   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$LastUpdateStatus",
  497    497   
        "com.amazonaws.lambda.synthetic",
  498    498   
        "CreateFunctionOutput",
  499    499   
    ),
  500    500   
    ::aws_smithy_schema::ShapeType::String,
  501         -
    "last_update_status",
         501  +
    "LastUpdateStatus",
  502    502   
    23,
  503    503   
);
  504    504   
static CREATEFUNCTIONOUTPUT_MEMBER_LAST_UPDATE_STATUS_REASON: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  505    505   
    ::aws_smithy_schema::ShapeId::from_static(
  506    506   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$LastUpdateStatusReason",
  507    507   
        "com.amazonaws.lambda.synthetic",
  508    508   
        "CreateFunctionOutput",
  509    509   
    ),
  510    510   
    ::aws_smithy_schema::ShapeType::String,
  511         -
    "last_update_status_reason",
         511  +
    "LastUpdateStatusReason",
  512    512   
    24,
  513    513   
);
  514    514   
static CREATEFUNCTIONOUTPUT_MEMBER_LAST_UPDATE_STATUS_REASON_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  515    515   
    ::aws_smithy_schema::ShapeId::from_static(
  516    516   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$LastUpdateStatusReasonCode",
  517    517   
        "com.amazonaws.lambda.synthetic",
  518    518   
        "CreateFunctionOutput",
  519    519   
    ),
  520    520   
    ::aws_smithy_schema::ShapeType::String,
  521         -
    "last_update_status_reason_code",
         521  +
    "LastUpdateStatusReasonCode",
  522    522   
    25,
  523    523   
);
  524    524   
static CREATEFUNCTIONOUTPUT_MEMBER_FILE_SYSTEM_CONFIGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  525    525   
    ::aws_smithy_schema::ShapeId::from_static(
  526    526   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$FileSystemConfigs",
  527    527   
        "com.amazonaws.lambda.synthetic",
  528    528   
        "CreateFunctionOutput",
  529    529   
    ),
  530    530   
    ::aws_smithy_schema::ShapeType::List,
  531         -
    "file_system_configs",
         531  +
    "FileSystemConfigs",
  532    532   
    26,
  533    533   
);
  534    534   
static CREATEFUNCTIONOUTPUT_MEMBER_PACKAGE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  535    535   
    ::aws_smithy_schema::ShapeId::from_static(
  536    536   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$PackageType",
  537    537   
        "com.amazonaws.lambda.synthetic",
  538    538   
        "CreateFunctionOutput",
  539    539   
    ),
  540    540   
    ::aws_smithy_schema::ShapeType::String,
  541         -
    "package_type",
         541  +
    "PackageType",
  542    542   
    27,
  543    543   
);
  544    544   
static CREATEFUNCTIONOUTPUT_MEMBER_IMAGE_CONFIG_RESPONSE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  545    545   
    ::aws_smithy_schema::ShapeId::from_static(
  546    546   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$ImageConfigResponse",
  547    547   
        "com.amazonaws.lambda.synthetic",
  548    548   
        "CreateFunctionOutput",
  549    549   
    ),
  550    550   
    ::aws_smithy_schema::ShapeType::Structure,
  551         -
    "image_config_response",
         551  +
    "ImageConfigResponse",
  552    552   
    28,
  553    553   
);
  554    554   
static CREATEFUNCTIONOUTPUT_MEMBER_SIGNING_PROFILE_VERSION_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  555    555   
    ::aws_smithy_schema::ShapeId::from_static(
  556    556   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$SigningProfileVersionArn",
  557    557   
        "com.amazonaws.lambda.synthetic",
  558    558   
        "CreateFunctionOutput",
  559    559   
    ),
  560    560   
    ::aws_smithy_schema::ShapeType::String,
  561         -
    "signing_profile_version_arn",
         561  +
    "SigningProfileVersionArn",
  562    562   
    29,
  563    563   
);
  564    564   
static CREATEFUNCTIONOUTPUT_MEMBER_SIGNING_JOB_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  565    565   
    ::aws_smithy_schema::ShapeId::from_static(
  566    566   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$SigningJobArn",
  567    567   
        "com.amazonaws.lambda.synthetic",
  568    568   
        "CreateFunctionOutput",
  569    569   
    ),
  570    570   
    ::aws_smithy_schema::ShapeType::String,
  571         -
    "signing_job_arn",
         571  +
    "SigningJobArn",
  572    572   
    30,
  573    573   
);
  574    574   
static CREATEFUNCTIONOUTPUT_MEMBER_ARCHITECTURES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  575    575   
    ::aws_smithy_schema::ShapeId::from_static(
  576    576   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$Architectures",
  577    577   
        "com.amazonaws.lambda.synthetic",
  578    578   
        "CreateFunctionOutput",
  579    579   
    ),
  580    580   
    ::aws_smithy_schema::ShapeType::List,
  581         -
    "architectures",
         581  +
    "Architectures",
  582    582   
    31,
  583    583   
);
  584    584   
static CREATEFUNCTIONOUTPUT_MEMBER_EPHEMERAL_STORAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  585    585   
    ::aws_smithy_schema::ShapeId::from_static(
  586    586   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$EphemeralStorage",
  587    587   
        "com.amazonaws.lambda.synthetic",
  588    588   
        "CreateFunctionOutput",
  589    589   
    ),
  590    590   
    ::aws_smithy_schema::ShapeType::Structure,
  591         -
    "ephemeral_storage",
         591  +
    "EphemeralStorage",
  592    592   
    32,
  593    593   
);
  594    594   
static CREATEFUNCTIONOUTPUT_MEMBER_SNAP_START: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  595    595   
    ::aws_smithy_schema::ShapeId::from_static(
  596    596   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$SnapStart",
  597    597   
        "com.amazonaws.lambda.synthetic",
  598    598   
        "CreateFunctionOutput",
  599    599   
    ),
  600    600   
    ::aws_smithy_schema::ShapeType::Structure,
  601         -
    "snap_start",
         601  +
    "SnapStart",
  602    602   
    33,
  603    603   
);
  604    604   
static CREATEFUNCTIONOUTPUT_MEMBER_RUNTIME_VERSION_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  605    605   
    ::aws_smithy_schema::ShapeId::from_static(
  606    606   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$RuntimeVersionConfig",
  607    607   
        "com.amazonaws.lambda.synthetic",
  608    608   
        "CreateFunctionOutput",
  609    609   
    ),
  610    610   
    ::aws_smithy_schema::ShapeType::Structure,
  611         -
    "runtime_version_config",
         611  +
    "RuntimeVersionConfig",
  612    612   
    34,
  613    613   
);
  614    614   
static CREATEFUNCTIONOUTPUT_MEMBER_LOGGING_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  615    615   
    ::aws_smithy_schema::ShapeId::from_static(
  616    616   
        "com.amazonaws.lambda.synthetic#CreateFunctionOutput$LoggingConfig",
  617    617   
        "com.amazonaws.lambda.synthetic",
  618    618   
        "CreateFunctionOutput",
  619    619   
    ),
  620    620   
    ::aws_smithy_schema::ShapeType::Structure,
  621         -
    "logging_config",
         621  +
    "LoggingConfig",
  622    622   
    35,
  623    623   
);
         624  +
static CREATEFUNCTIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         625  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         626  +
    ::aws_smithy_schema::ShapeType::String,
         627  +
    "request_id",
         628  +
    36,
         629  +
)
         630  +
.with_http_header("x-amzn-requestid");
  624    631   
static CREATEFUNCTIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  625    632   
    CREATEFUNCTIONOUTPUT_SCHEMA_ID,
  626    633   
    ::aws_smithy_schema::ShapeType::Structure,
  627    634   
    &[
  628    635   
        &CREATEFUNCTIONOUTPUT_MEMBER_FUNCTION_NAME,
  629    636   
        &CREATEFUNCTIONOUTPUT_MEMBER_FUNCTION_ARN,
  630    637   
        &CREATEFUNCTIONOUTPUT_MEMBER_RUNTIME,
  631    638   
        &CREATEFUNCTIONOUTPUT_MEMBER_ROLE,
  632    639   
        &CREATEFUNCTIONOUTPUT_MEMBER_HANDLER,
  633    640   
        &CREATEFUNCTIONOUTPUT_MEMBER_CODE_SIZE,
  634    641   
        &CREATEFUNCTIONOUTPUT_MEMBER_DESCRIPTION,
  635    642   
        &CREATEFUNCTIONOUTPUT_MEMBER_TIMEOUT,
  636    643   
        &CREATEFUNCTIONOUTPUT_MEMBER_MEMORY_SIZE,
  637    644   
        &CREATEFUNCTIONOUTPUT_MEMBER_LAST_MODIFIED,
  638    645   
        &CREATEFUNCTIONOUTPUT_MEMBER_CODE_SHA256,
  639    646   
        &CREATEFUNCTIONOUTPUT_MEMBER_VERSION,
  640    647   
        &CREATEFUNCTIONOUTPUT_MEMBER_VPC_CONFIG,
  641    648   
        &CREATEFUNCTIONOUTPUT_MEMBER_DEAD_LETTER_CONFIG,
  642    649   
        &CREATEFUNCTIONOUTPUT_MEMBER_ENVIRONMENT,
  643    650   
        &CREATEFUNCTIONOUTPUT_MEMBER_KMS_KEY_ARN,
  644    651   
        &CREATEFUNCTIONOUTPUT_MEMBER_TRACING_CONFIG,
  645    652   
        &CREATEFUNCTIONOUTPUT_MEMBER_MASTER_ARN,
  646    653   
        &CREATEFUNCTIONOUTPUT_MEMBER_REVISION_ID,
  647    654   
        &CREATEFUNCTIONOUTPUT_MEMBER_LAYERS,
  648    655   
        &CREATEFUNCTIONOUTPUT_MEMBER_STATE,
  649    656   
        &CREATEFUNCTIONOUTPUT_MEMBER_STATE_REASON,
  650    657   
        &CREATEFUNCTIONOUTPUT_MEMBER_STATE_REASON_CODE,
  651    658   
        &CREATEFUNCTIONOUTPUT_MEMBER_LAST_UPDATE_STATUS,
  652    659   
        &CREATEFUNCTIONOUTPUT_MEMBER_LAST_UPDATE_STATUS_REASON,
  653    660   
        &CREATEFUNCTIONOUTPUT_MEMBER_LAST_UPDATE_STATUS_REASON_CODE,
  654    661   
        &CREATEFUNCTIONOUTPUT_MEMBER_FILE_SYSTEM_CONFIGS,
  655    662   
        &CREATEFUNCTIONOUTPUT_MEMBER_PACKAGE_TYPE,
  656    663   
        &CREATEFUNCTIONOUTPUT_MEMBER_IMAGE_CONFIG_RESPONSE,
  657    664   
        &CREATEFUNCTIONOUTPUT_MEMBER_SIGNING_PROFILE_VERSION_ARN,
  658    665   
        &CREATEFUNCTIONOUTPUT_MEMBER_SIGNING_JOB_ARN,
  659    666   
        &CREATEFUNCTIONOUTPUT_MEMBER_ARCHITECTURES,
  660    667   
        &CREATEFUNCTIONOUTPUT_MEMBER_EPHEMERAL_STORAGE,
  661    668   
        &CREATEFUNCTIONOUTPUT_MEMBER_SNAP_START,
  662    669   
        &CREATEFUNCTIONOUTPUT_MEMBER_RUNTIME_VERSION_CONFIG,
  663    670   
        &CREATEFUNCTIONOUTPUT_MEMBER_LOGGING_CONFIG,
         671  +
        &CREATEFUNCTIONOUTPUT_MEMBER__REQUEST_ID,
  664    672   
    ],
  665    673   
);
  666    674   
impl CreateFunctionOutput {
  667    675   
    /// The schema for this shape.
  668    676   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEFUNCTIONOUTPUT_SCHEMA;
  669    677   
}
  670    678   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateFunctionOutput {
  671    679   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  672    680   
    fn serialize_members(
  673    681   
        &self,
@@ -784,792 +982,1145 @@
  804    812   
            ser.write_struct(&CREATEFUNCTIONOUTPUT_MEMBER_RUNTIME_VERSION_CONFIG, val)?;
  805    813   
        }
  806    814   
        if let Some(ref val) = self.logging_config {
  807    815   
            ser.write_struct(&CREATEFUNCTIONOUTPUT_MEMBER_LOGGING_CONFIG, val)?;
  808    816   
        }
  809    817   
        Ok(())
  810    818   
    }
  811    819   
}
  812    820   
impl CreateFunctionOutput {
  813    821   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  814         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  815         -
        deserializer: &mut D,
         822  +
    pub fn deserialize(
         823  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         824  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         825  +
        #[allow(unused_variables, unused_mut)]
         826  +
        let mut builder = Self::builder();
         827  +
        #[allow(
         828  +
            unused_variables,
         829  +
            unreachable_code,
         830  +
            clippy::single_match,
         831  +
            clippy::match_single_binding,
         832  +
            clippy::diverging_sub_expression
         833  +
        )]
         834  +
        deserializer.read_struct(&CREATEFUNCTIONOUTPUT_SCHEMA, &mut |member, deser| {
         835  +
            match member.member_index() {
         836  +
                Some(0) => {
         837  +
                    builder.function_name = Some(deser.read_string(member)?);
         838  +
                }
         839  +
                Some(1) => {
         840  +
                    builder.function_arn = Some(deser.read_string(member)?);
         841  +
                }
         842  +
                Some(2) => {
         843  +
                    builder.runtime = Some(crate::types::Runtime::from(deser.read_string(member)?.as_str()));
         844  +
                }
         845  +
                Some(3) => {
         846  +
                    builder.role = Some(deser.read_string(member)?);
         847  +
                }
         848  +
                Some(4) => {
         849  +
                    builder.handler = Some(deser.read_string(member)?);
         850  +
                }
         851  +
                Some(5) => {
         852  +
                    builder.code_size = Some(deser.read_long(member)?);
         853  +
                }
         854  +
                Some(6) => {
         855  +
                    builder.description = Some(deser.read_string(member)?);
         856  +
                }
         857  +
                Some(7) => {
         858  +
                    builder.timeout = Some(deser.read_integer(member)?);
         859  +
                }
         860  +
                Some(8) => {
         861  +
                    builder.memory_size = Some(deser.read_integer(member)?);
         862  +
                }
         863  +
                Some(9) => {
         864  +
                    builder.last_modified = Some(deser.read_string(member)?);
         865  +
                }
         866  +
                Some(10) => {
         867  +
                    builder.code_sha256 = Some(deser.read_string(member)?);
         868  +
                }
         869  +
                Some(11) => {
         870  +
                    builder.version = Some(deser.read_string(member)?);
         871  +
                }
         872  +
                Some(12) => {
         873  +
                    builder.vpc_config = Some(crate::types::VpcConfigResponse::deserialize(deser)?);
         874  +
                }
         875  +
                Some(13) => {
         876  +
                    builder.dead_letter_config = Some(crate::types::DeadLetterConfig::deserialize(deser)?);
         877  +
                }
         878  +
                Some(14) => {
         879  +
                    builder.environment = Some(crate::types::EnvironmentResponse::deserialize(deser)?);
         880  +
                }
         881  +
                Some(15) => {
         882  +
                    builder.kms_key_arn = Some(deser.read_string(member)?);
         883  +
                }
         884  +
                Some(16) => {
         885  +
                    builder.tracing_config = Some(crate::types::TracingConfigResponse::deserialize(deser)?);
         886  +
                }
         887  +
                Some(17) => {
         888  +
                    builder.master_arn = Some(deser.read_string(member)?);
         889  +
                }
         890  +
                Some(18) => {
         891  +
                    builder.revision_id = Some(deser.read_string(member)?);
         892  +
                }
         893  +
                Some(19) => {
         894  +
                    builder.layers = Some({
         895  +
                        let mut container = Vec::new();
         896  +
                        deser.read_list(member, &mut |deser| {
         897  +
                            container.push(crate::types::Layer::deserialize(deser)?);
         898  +
                            Ok(())
         899  +
                        })?;
         900  +
                        container
         901  +
                    });
         902  +
                }
         903  +
                Some(20) => {
         904  +
                    builder.state = Some(crate::types::State::from(deser.read_string(member)?.as_str()));
         905  +
                }
         906  +
                Some(21) => {
         907  +
                    builder.state_reason = Some(deser.read_string(member)?);
         908  +
                }
         909  +
                Some(22) => {
         910  +
                    builder.state_reason_code = Some(crate::types::StateReasonCode::from(deser.read_string(member)?.as_str()));
         911  +
                }
         912  +
                Some(23) => {
         913  +
                    builder.last_update_status = Some(crate::types::LastUpdateStatus::from(deser.read_string(member)?.as_str()));
         914  +
                }
         915  +
                Some(24) => {
         916  +
                    builder.last_update_status_reason = Some(deser.read_string(member)?);
         917  +
                }
         918  +
                Some(25) => {
         919  +
                    builder.last_update_status_reason_code =
         920  +
                        Some(crate::types::LastUpdateStatusReasonCode::from(deser.read_string(member)?.as_str()));
         921  +
                }
         922  +
                Some(26) => {
         923  +
                    builder.file_system_configs = Some({
         924  +
                        let mut container = Vec::new();
         925  +
                        deser.read_list(member, &mut |deser| {
         926  +
                            container.push(crate::types::FileSystemConfig::deserialize(deser)?);
         927  +
                            Ok(())
         928  +
                        })?;
         929  +
                        container
         930  +
                    });
         931  +
                }
         932  +
                Some(27) => {
         933  +
                    builder.package_type = Some(crate::types::PackageType::from(deser.read_string(member)?.as_str()));
         934  +
                }
         935  +
                Some(28) => {
         936  +
                    builder.image_config_response = Some(crate::types::ImageConfigResponse::deserialize(deser)?);
         937  +
                }
         938  +
                Some(29) => {
         939  +
                    builder.signing_profile_version_arn = Some(deser.read_string(member)?);
         940  +
                }
         941  +
                Some(30) => {
         942  +
                    builder.signing_job_arn = Some(deser.read_string(member)?);
         943  +
                }
         944  +
                Some(31) => {
         945  +
                    builder.architectures = Some({
         946  +
                        let mut container = Vec::new();
         947  +
                        deser.read_list(member, &mut |deser| {
         948  +
                            container.push(crate::types::Architecture::from(deser.read_string(member)?.as_str()));
         949  +
                            Ok(())
         950  +
                        })?;
         951  +
                        container
         952  +
                    });
         953  +
                }
         954  +
                Some(32) => {
         955  +
                    builder.ephemeral_storage = Some(crate::types::EphemeralStorage::deserialize(deser)?);
         956  +
                }
         957  +
                Some(33) => {
         958  +
                    builder.snap_start = Some(crate::types::SnapStartResponse::deserialize(deser)?);
         959  +
                }
         960  +
                Some(34) => {
         961  +
                    builder.runtime_version_config = Some(crate::types::RuntimeVersionConfig::deserialize(deser)?);
         962  +
                }
         963  +
                Some(35) => {
         964  +
                    builder.logging_config = Some(crate::types::LoggingConfig::deserialize(deser)?);
         965  +
                }
         966  +
                Some(36) => {
         967  +
                    builder._request_id = Some(deser.read_string(member)?);
         968  +
                }
         969  +
                _ => {}
         970  +
            }
         971  +
            Ok(())
         972  +
        })?;
         973  +
        Ok(builder.build())
         974  +
    }
         975  +
}
         976  +
impl CreateFunctionOutput {
         977  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         978  +
    /// Header-bound members are read directly from headers, avoiding runtime
         979  +
    /// member iteration overhead. Body members are read via the deserializer.
         980  +
    pub fn deserialize_with_response(
         981  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         982  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         983  +
        _status: u16,
         984  +
        _body: &[u8],
  816    985   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  817    986   
        #[allow(unused_variables, unused_mut)]
  818    987   
        let mut builder = Self::builder();
         988  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         989  +
            builder._request_id = Some(val.to_string());
         990  +
        }
  819    991   
        #[allow(
  820    992   
            unused_variables,
  821    993   
            unreachable_code,
  822    994   
            clippy::single_match,
  823    995   
            clippy::match_single_binding,
  824    996   
            clippy::diverging_sub_expression
  825    997   
        )]
  826         -
        deserializer.read_struct(&CREATEFUNCTIONOUTPUT_SCHEMA, (), |_, member, deser| {
         998  +
        deserializer.read_struct(&CREATEFUNCTIONOUTPUT_SCHEMA, &mut |member, deser| {
  827    999   
            match member.member_index() {
  828   1000   
                Some(0) => {
  829   1001   
                    builder.function_name = Some(deser.read_string(member)?);
  830   1002   
                }
  831   1003   
                Some(1) => {
  832   1004   
                    builder.function_arn = Some(deser.read_string(member)?);
  833   1005   
                }
  834   1006   
                Some(2) => {
  835   1007   
                    builder.runtime = Some(crate::types::Runtime::from(deser.read_string(member)?.as_str()));
  836   1008   
                }
  837   1009   
                Some(3) => {
  838   1010   
                    builder.role = Some(deser.read_string(member)?);
  839   1011   
                }
  840   1012   
                Some(4) => {
  841   1013   
                    builder.handler = Some(deser.read_string(member)?);
  842   1014   
                }
  843   1015   
                Some(5) => {
  844   1016   
                    builder.code_size = Some(deser.read_long(member)?);
  845   1017   
                }
  846   1018   
                Some(6) => {
  847   1019   
                    builder.description = Some(deser.read_string(member)?);
  848   1020   
                }
  849   1021   
                Some(7) => {
  850   1022   
                    builder.timeout = Some(deser.read_integer(member)?);
  851   1023   
                }
  852   1024   
                Some(8) => {
  853   1025   
                    builder.memory_size = Some(deser.read_integer(member)?);
  854   1026   
                }
  855   1027   
                Some(9) => {
  856   1028   
                    builder.last_modified = Some(deser.read_string(member)?);
  857   1029   
                }
  858   1030   
                Some(10) => {
  859   1031   
                    builder.code_sha256 = Some(deser.read_string(member)?);
  860   1032   
                }
  861   1033   
                Some(11) => {
  862   1034   
                    builder.version = Some(deser.read_string(member)?);
  863   1035   
                }
  864   1036   
                Some(12) => {
  865   1037   
                    builder.vpc_config = Some(crate::types::VpcConfigResponse::deserialize(deser)?);
  866   1038   
                }
  867   1039   
                Some(13) => {
  868   1040   
                    builder.dead_letter_config = Some(crate::types::DeadLetterConfig::deserialize(deser)?);
  869   1041   
                }
  870   1042   
                Some(14) => {
  871   1043   
                    builder.environment = Some(crate::types::EnvironmentResponse::deserialize(deser)?);
  872   1044   
                }
  873   1045   
                Some(15) => {
  874   1046   
                    builder.kms_key_arn = Some(deser.read_string(member)?);
  875   1047   
                }
  876   1048   
                Some(16) => {
  877   1049   
                    builder.tracing_config = Some(crate::types::TracingConfigResponse::deserialize(deser)?);
  878   1050   
                }
  879   1051   
                Some(17) => {
  880   1052   
                    builder.master_arn = Some(deser.read_string(member)?);
  881   1053   
                }
  882   1054   
                Some(18) => {
  883   1055   
                    builder.revision_id = Some(deser.read_string(member)?);
  884   1056   
                }
  885   1057   
                Some(19) => {
  886   1058   
                    builder.layers = Some({
  887         -
                        let container = if let Some(cap) = deser.container_size() {
  888         -
                            Vec::with_capacity(cap)
  889         -
                        } else {
  890         -
                            Vec::new()
  891         -
                        };
  892         -
                        deser.read_list(member, container, |mut list, deser| {
  893         -
                            list.push(crate::types::Layer::deserialize(deser)?);
  894         -
                            Ok(list)
  895         -
                        })?
        1059  +
                        let mut container = Vec::new();
        1060  +
                        deser.read_list(member, &mut |deser| {
        1061  +
                            container.push(crate::types::Layer::deserialize(deser)?);
        1062  +
                            Ok(())
        1063  +
                        })?;
        1064  +
                        container
  896   1065   
                    });
  897   1066   
                }
  898   1067   
                Some(20) => {
  899   1068   
                    builder.state = Some(crate::types::State::from(deser.read_string(member)?.as_str()));
  900   1069   
                }
  901   1070   
                Some(21) => {
  902   1071   
                    builder.state_reason = Some(deser.read_string(member)?);
  903   1072   
                }
  904   1073   
                Some(22) => {
  905   1074   
                    builder.state_reason_code = Some(crate::types::StateReasonCode::from(deser.read_string(member)?.as_str()));
  906   1075   
                }
  907   1076   
                Some(23) => {
  908   1077   
                    builder.last_update_status = Some(crate::types::LastUpdateStatus::from(deser.read_string(member)?.as_str()));
  909   1078   
                }
  910   1079   
                Some(24) => {
  911   1080   
                    builder.last_update_status_reason = Some(deser.read_string(member)?);
  912   1081   
                }
  913   1082   
                Some(25) => {
  914   1083   
                    builder.last_update_status_reason_code =
  915   1084   
                        Some(crate::types::LastUpdateStatusReasonCode::from(deser.read_string(member)?.as_str()));
  916   1085   
                }
  917   1086   
                Some(26) => {
  918   1087   
                    builder.file_system_configs = Some({
  919         -
                        let container = if let Some(cap) = deser.container_size() {
  920         -
                            Vec::with_capacity(cap)
  921         -
                        } else {
  922         -
                            Vec::new()
  923         -
                        };
  924         -
                        deser.read_list(member, container, |mut list, deser| {
  925         -
                            list.push(crate::types::FileSystemConfig::deserialize(deser)?);
  926         -
                            Ok(list)
  927         -
                        })?
        1088  +
                        let mut container = Vec::new();
        1089  +
                        deser.read_list(member, &mut |deser| {
        1090  +
                            container.push(crate::types::FileSystemConfig::deserialize(deser)?);
        1091  +
                            Ok(())
        1092  +
                        })?;
        1093  +
                        container
  928   1094   
                    });
  929   1095   
                }
  930   1096   
                Some(27) => {
  931   1097   
                    builder.package_type = Some(crate::types::PackageType::from(deser.read_string(member)?.as_str()));
  932   1098   
                }
  933   1099   
                Some(28) => {
  934   1100   
                    builder.image_config_response = Some(crate::types::ImageConfigResponse::deserialize(deser)?);
  935   1101   
                }
  936   1102   
                Some(29) => {
  937   1103   
                    builder.signing_profile_version_arn = Some(deser.read_string(member)?);
  938   1104   
                }
  939   1105   
                Some(30) => {
  940   1106   
                    builder.signing_job_arn = Some(deser.read_string(member)?);
  941   1107   
                }
  942   1108   
                Some(31) => {
  943   1109   
                    builder.architectures = Some({
  944         -
                        let container = if let Some(cap) = deser.container_size() {
  945         -
                            Vec::with_capacity(cap)
  946         -
                        } else {
  947         -
                            Vec::new()
  948         -
                        };
  949         -
                        deser.read_list(member, container, |mut list, deser| {
  950         -
                            list.push(crate::types::Architecture::from(deser.read_string(member)?.as_str()));
  951         -
                            Ok(list)
  952         -
                        })?
        1110  +
                        let mut container = Vec::new();
        1111  +
                        deser.read_list(member, &mut |deser| {
        1112  +
                            container.push(crate::types::Architecture::from(deser.read_string(member)?.as_str()));
        1113  +
                            Ok(())
        1114  +
                        })?;
        1115  +
                        container
  953   1116   
                    });
  954   1117   
                }
  955   1118   
                Some(32) => {
  956   1119   
                    builder.ephemeral_storage = Some(crate::types::EphemeralStorage::deserialize(deser)?);
  957   1120   
                }
  958   1121   
                Some(33) => {
  959   1122   
                    builder.snap_start = Some(crate::types::SnapStartResponse::deserialize(deser)?);
  960   1123   
                }
  961   1124   
                Some(34) => {
  962   1125   
                    builder.runtime_version_config = Some(crate::types::RuntimeVersionConfig::deserialize(deser)?);

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

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