AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045 (ignoring whitespace)

Files changed:

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

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

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

@@ -71,71 +255,272 @@
   91     91   
    "com.amazonaws.lambda.synthetic",
   92     92   
    "UpdateFunctionEventInvokeConfigInput",
   93     93   
);
   94     94   
static UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_FUNCTION_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.lambda.synthetic#UpdateFunctionEventInvokeConfigInput$FunctionName",
   97     97   
        "com.amazonaws.lambda.synthetic",
   98     98   
        "UpdateFunctionEventInvokeConfigInput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::String,
  101         -
    "function_name",
         101  +
    "FunctionName",
  102    102   
    0,
  103    103   
)
  104    104   
.with_http_label();
  105    105   
static UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_QUALIFIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  106    106   
    ::aws_smithy_schema::ShapeId::from_static(
  107    107   
        "com.amazonaws.lambda.synthetic#UpdateFunctionEventInvokeConfigInput$Qualifier",
  108    108   
        "com.amazonaws.lambda.synthetic",
  109    109   
        "UpdateFunctionEventInvokeConfigInput",
  110    110   
    ),
  111    111   
    ::aws_smithy_schema::ShapeType::String,
  112         -
    "qualifier",
         112  +
    "Qualifier",
  113    113   
    1,
  114    114   
)
  115    115   
.with_http_query("Qualifier");
  116    116   
static UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_MAXIMUM_RETRY_ATTEMPTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  117    117   
    ::aws_smithy_schema::ShapeId::from_static(
  118    118   
        "com.amazonaws.lambda.synthetic#UpdateFunctionEventInvokeConfigInput$MaximumRetryAttempts",
  119    119   
        "com.amazonaws.lambda.synthetic",
  120    120   
        "UpdateFunctionEventInvokeConfigInput",
  121    121   
    ),
  122    122   
    ::aws_smithy_schema::ShapeType::Integer,
  123         -
    "maximum_retry_attempts",
         123  +
    "MaximumRetryAttempts",
  124    124   
    2,
  125    125   
);
  126    126   
static UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_MAXIMUM_EVENT_AGE_IN_SECONDS: ::aws_smithy_schema::Schema =
  127    127   
    ::aws_smithy_schema::Schema::new_member(
  128    128   
        ::aws_smithy_schema::ShapeId::from_static(
  129    129   
            "com.amazonaws.lambda.synthetic#UpdateFunctionEventInvokeConfigInput$MaximumEventAgeInSeconds",
  130    130   
            "com.amazonaws.lambda.synthetic",
  131    131   
            "UpdateFunctionEventInvokeConfigInput",
  132    132   
        ),
  133    133   
        ::aws_smithy_schema::ShapeType::Integer,
  134         -
        "maximum_event_age_in_seconds",
         134  +
        "MaximumEventAgeInSeconds",
  135    135   
        3,
  136    136   
    );
  137    137   
static UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_DESTINATION_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  138    138   
    ::aws_smithy_schema::ShapeId::from_static(
  139    139   
        "com.amazonaws.lambda.synthetic#UpdateFunctionEventInvokeConfigInput$DestinationConfig",
  140    140   
        "com.amazonaws.lambda.synthetic",
  141    141   
        "UpdateFunctionEventInvokeConfigInput",
  142    142   
    ),
  143    143   
    ::aws_smithy_schema::ShapeType::Structure,
  144         -
    "destination_config",
         144  +
    "DestinationConfig",
  145    145   
    4,
  146    146   
);
  147    147   
static UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  148    148   
    UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_SCHEMA_ID,
  149    149   
    ::aws_smithy_schema::ShapeType::Structure,
  150    150   
    &[
  151    151   
        &UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_FUNCTION_NAME,
  152    152   
        &UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_QUALIFIER,
  153    153   
        &UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_MAXIMUM_RETRY_ATTEMPTS,
  154    154   
        &UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_MAXIMUM_EVENT_AGE_IN_SECONDS,
  155    155   
        &UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_DESTINATION_CONFIG,
  156    156   
    ],
  157         -
);
         157  +
)
         158  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
         159  +
    "POST",
         160  +
    "/2019-09-25/functions/{FunctionName}/event-invoke-config",
         161  +
    None,
         162  +
));
  158    163   
impl UpdateFunctionEventInvokeConfigInput {
  159    164   
    /// The schema for this shape.
  160    165   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_SCHEMA;
  161    166   
}
  162    167   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateFunctionEventInvokeConfigInput {
  163    168   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  164    169   
    fn serialize_members(
  165    170   
        &self,
  166    171   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  167    172   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  168    173   
        if let Some(ref val) = self.function_name {
  169    174   
            ser.write_string(&UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_FUNCTION_NAME, val)?;
  170    175   
        }
  171    176   
        if let Some(ref val) = self.qualifier {
  172    177   
            ser.write_string(&UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_QUALIFIER, val)?;
  173    178   
        }
  174    179   
        if let Some(ref val) = self.maximum_retry_attempts {
  175    180   
            ser.write_integer(&UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_MAXIMUM_RETRY_ATTEMPTS, *val)?;
  176    181   
        }
  177    182   
        if let Some(ref val) = self.maximum_event_age_in_seconds {
  178    183   
            ser.write_integer(&UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_MAXIMUM_EVENT_AGE_IN_SECONDS, *val)?;
  179    184   
        }
  180    185   
        if let Some(ref val) = self.destination_config {
  181    186   
            ser.write_struct(&UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_MEMBER_DESTINATION_CONFIG, val)?;
  182    187   
        }
  183    188   
        Ok(())
  184    189   
    }
  185    190   
}
  186    191   
impl UpdateFunctionEventInvokeConfigInput {
  187    192   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  188         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  189         -
        deserializer: &mut D,
         193  +
    pub fn deserialize(
         194  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  190    195   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  191    196   
        #[allow(unused_variables, unused_mut)]
  192    197   
        let mut builder = Self::builder();
  193    198   
        #[allow(
  194    199   
            unused_variables,
  195    200   
            unreachable_code,
  196    201   
            clippy::single_match,
  197    202   
            clippy::match_single_binding,
  198    203   
            clippy::diverging_sub_expression
  199    204   
        )]
  200         -
        deserializer.read_struct(&UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_SCHEMA, (), |_, member, deser| {
         205  +
        deserializer.read_struct(&UPDATEFUNCTIONEVENTINVOKECONFIGINPUT_SCHEMA, &mut |member, deser| {
  201    206   
            match member.member_index() {
  202    207   
                Some(0) => {
  203    208   
                    builder.function_name = Some(deser.read_string(member)?);
  204    209   
                }
  205    210   
                Some(1) => {
  206    211   
                    builder.qualifier = Some(deser.read_string(member)?);
  207    212   
                }
  208    213   
                Some(2) => {
  209    214   
                    builder.maximum_retry_attempts = Some(deser.read_integer(member)?);
  210    215   
                }
  211    216   
                Some(3) => {
  212    217   
                    builder.maximum_event_age_in_seconds = Some(deser.read_integer(member)?);
  213    218   
                }
  214    219   
                Some(4) => {
  215    220   
                    builder.destination_config = Some(crate::types::DestinationConfig::deserialize(deser)?);
  216    221   
                }
  217    222   
                _ => {}
  218    223   
            }
  219    224   
            Ok(())
  220    225   
        })?;
         226  +
        builder.function_name = builder.function_name.or(Some(String::new()));
  221    227   
        builder
  222    228   
            .build()
  223    229   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  224    230   
    }
  225    231   
}
         232  +
impl UpdateFunctionEventInvokeConfigInput {
         233  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         234  +
    pub fn deserialize_with_response(
         235  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         236  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         237  +
        _status: u16,
         238  +
        _body: &[u8],
         239  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         240  +
        Self::deserialize(deserializer)
         241  +
    }
         242  +
}
  226    243   
impl UpdateFunctionEventInvokeConfigInput {
  227    244   
    /// Creates a new builder-style object to manufacture [`UpdateFunctionEventInvokeConfigInput`](crate::operation::update_function_event_invoke_config::UpdateFunctionEventInvokeConfigInput).
  228    245   
    pub fn builder() -> crate::operation::update_function_event_invoke_config::builders::UpdateFunctionEventInvokeConfigInputBuilder {
  229    246   
        crate::operation::update_function_event_invoke_config::builders::UpdateFunctionEventInvokeConfigInputBuilder::default()
  230    247   
    }
  231    248   
}
  232    249   
  233    250   
/// A builder for [`UpdateFunctionEventInvokeConfigInput`](crate::operation::update_function_event_invoke_config::UpdateFunctionEventInvokeConfigInput).
  234    251   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  235    252   
#[non_exhaustive]

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

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/update_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 `UpdateFunctionUrlConfig`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UpdateFunctionUrlConfig;
    6      6   
impl UpdateFunctionUrlConfig {
    7      7   
    /// Creates a new `UpdateFunctionUrlConfig`
    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::update_function_url_config::UpdateFunctionUrlConfigInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          15  +
        crate::operation::update_function_url_config::UpdateFunctionUrlConfigOutput::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::update_function_url_config::UpdateFunctionUrlConfigInput,
   14     19   
    ) -> ::std::result::Result<
   15     20   
        crate::operation::update_function_url_config::UpdateFunctionUrlConfigOutput,
   16     21   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     22   
            crate::operation::update_function_url_config::UpdateFunctionUrlConfigError,
   18     23   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     24   
        >,
   20     25   
    > {
@@ -118,123 +266,422 @@
  138    143   
                crate::operation::update_function_url_config::UpdateFunctionUrlConfigError,
  139    144   
            >::new());
  140    145   
  141    146   
        ::std::borrow::Cow::Owned(rcb)
  142    147   
    }
  143    148   
}
  144    149   
  145    150   
#[derive(Debug)]
  146    151   
struct UpdateFunctionUrlConfigResponseDeserializer;
  147    152   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateFunctionUrlConfigResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         153  +
    fn deserialize_nonstreaming_with_config(
  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 != 200 || force_error {
  159         -
            crate::protocol_serde::shape_update_function_url_config::de_update_function_url_config_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_update_function_url_config::de_update_function_url_config_http_response(status, headers, body)
         162  +
        if !success && status != 200 || 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::update_function_url_config::UpdateFunctionUrlConfigError::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::update_function_url_config::UpdateFunctionUrlConfigError::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::update_function_url_config::UpdateFunctionUrlConfigError::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::update_function_url_config::UpdateFunctionUrlConfigError::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::update_function_url_config::UpdateFunctionUrlConfigError::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::update_function_url_config::UpdateFunctionUrlConfigError::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::update_function_url_config::UpdateFunctionUrlConfigError::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, UpdateFunctionUrlConfig::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::update_function_url_config::UpdateFunctionUrlConfigOutput::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 UpdateFunctionUrlConfigRequestSerializer;
  168    342   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateFunctionUrlConfigRequestSerializer {
  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::update_function_url_config::UpdateFunctionUrlConfigInput>()
  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::update_function_url_config::UpdateFunctionUrlConfigInput,
  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::update_function_url_config::UpdateFunctionUrlConfigInput,
  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, UpdateFunctionUrlConfig::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, UpdateFunctionUrlConfig::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::update_function_url_config::UpdateFunctionUrlConfigInput,
  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("PUT").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_update_function_url_config::ser_update_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 UpdateFunctionUrlConfigEndpointParamsInterceptor;
  241    397   
  242    398   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateFunctionUrlConfigEndpointParamsInterceptor {
  243    399   
    fn name(&self) -> &'static str {
  244    400   
        "UpdateFunctionUrlConfigEndpointParamsInterceptor"
  245    401   
    }
  246    402   

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

@@ -53,53 +236,253 @@
   73     73   
    "com.amazonaws.lambda.synthetic",
   74     74   
    "UpdateFunctionUrlConfigInput",
   75     75   
);
   76     76   
static UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_FUNCTION_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   77     77   
    ::aws_smithy_schema::ShapeId::from_static(
   78     78   
        "com.amazonaws.lambda.synthetic#UpdateFunctionUrlConfigInput$FunctionName",
   79     79   
        "com.amazonaws.lambda.synthetic",
   80     80   
        "UpdateFunctionUrlConfigInput",
   81     81   
    ),
   82     82   
    ::aws_smithy_schema::ShapeType::String,
   83         -
    "function_name",
          83  +
    "FunctionName",
   84     84   
    0,
   85     85   
)
   86     86   
.with_http_label();
   87     87   
static UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_QUALIFIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.lambda.synthetic#UpdateFunctionUrlConfigInput$Qualifier",
   90     90   
        "com.amazonaws.lambda.synthetic",
   91     91   
        "UpdateFunctionUrlConfigInput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::String,
   94         -
    "qualifier",
          94  +
    "Qualifier",
   95     95   
    1,
   96     96   
)
   97     97   
.with_http_query("Qualifier");
   98     98   
static UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_AUTH_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   99     99   
    ::aws_smithy_schema::ShapeId::from_static(
  100    100   
        "com.amazonaws.lambda.synthetic#UpdateFunctionUrlConfigInput$AuthType",
  101    101   
        "com.amazonaws.lambda.synthetic",
  102    102   
        "UpdateFunctionUrlConfigInput",
  103    103   
    ),
  104    104   
    ::aws_smithy_schema::ShapeType::String,
  105         -
    "auth_type",
         105  +
    "AuthType",
  106    106   
    2,
  107    107   
);
  108    108   
static UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_CORS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  109    109   
    ::aws_smithy_schema::ShapeId::from_static(
  110    110   
        "com.amazonaws.lambda.synthetic#UpdateFunctionUrlConfigInput$Cors",
  111    111   
        "com.amazonaws.lambda.synthetic",
  112    112   
        "UpdateFunctionUrlConfigInput",
  113    113   
    ),
  114    114   
    ::aws_smithy_schema::ShapeType::Structure,
  115         -
    "cors",
         115  +
    "Cors",
  116    116   
    3,
  117    117   
);
  118    118   
static UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_INVOKE_MODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  119    119   
    ::aws_smithy_schema::ShapeId::from_static(
  120    120   
        "com.amazonaws.lambda.synthetic#UpdateFunctionUrlConfigInput$InvokeMode",
  121    121   
        "com.amazonaws.lambda.synthetic",
  122    122   
        "UpdateFunctionUrlConfigInput",
  123    123   
    ),
  124    124   
    ::aws_smithy_schema::ShapeType::String,
  125         -
    "invoke_mode",
         125  +
    "InvokeMode",
  126    126   
    4,
  127    127   
);
  128    128   
static UPDATEFUNCTIONURLCONFIGINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  129    129   
    UPDATEFUNCTIONURLCONFIGINPUT_SCHEMA_ID,
  130    130   
    ::aws_smithy_schema::ShapeType::Structure,
  131    131   
    &[
  132    132   
        &UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_FUNCTION_NAME,
  133    133   
        &UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_QUALIFIER,
  134    134   
        &UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_AUTH_TYPE,
  135    135   
        &UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_CORS,
  136    136   
        &UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_INVOKE_MODE,
  137    137   
    ],
  138         -
);
         138  +
)
         139  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
         140  +
    "PUT",
         141  +
    "/2021-10-31/functions/{FunctionName}/url",
         142  +
    None,
         143  +
));
  139    144   
impl UpdateFunctionUrlConfigInput {
  140    145   
    /// The schema for this shape.
  141    146   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATEFUNCTIONURLCONFIGINPUT_SCHEMA;
  142    147   
}
  143    148   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateFunctionUrlConfigInput {
  144    149   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  145    150   
    fn serialize_members(
  146    151   
        &self,
  147    152   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  148    153   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  149    154   
        if let Some(ref val) = self.function_name {
  150    155   
            ser.write_string(&UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_FUNCTION_NAME, val)?;
  151    156   
        }
  152    157   
        if let Some(ref val) = self.qualifier {
  153    158   
            ser.write_string(&UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_QUALIFIER, val)?;
  154    159   
        }
  155    160   
        if let Some(ref val) = self.auth_type {
  156    161   
            ser.write_string(&UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_AUTH_TYPE, val.as_str())?;
  157    162   
        }
  158    163   
        if let Some(ref val) = self.cors {
  159    164   
            ser.write_struct(&UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_CORS, val)?;
  160    165   
        }
  161    166   
        if let Some(ref val) = self.invoke_mode {
  162    167   
            ser.write_string(&UPDATEFUNCTIONURLCONFIGINPUT_MEMBER_INVOKE_MODE, val.as_str())?;
  163    168   
        }
  164    169   
        Ok(())
  165    170   
    }
  166    171   
}
  167    172   
impl UpdateFunctionUrlConfigInput {
  168    173   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  169         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  170         -
        deserializer: &mut D,
         174  +
    pub fn deserialize(
         175  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  171    176   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  172    177   
        #[allow(unused_variables, unused_mut)]
  173    178   
        let mut builder = Self::builder();
  174    179   
        #[allow(
  175    180   
            unused_variables,
  176    181   
            unreachable_code,
  177    182   
            clippy::single_match,
  178    183   
            clippy::match_single_binding,
  179    184   
            clippy::diverging_sub_expression
  180    185   
        )]
  181         -
        deserializer.read_struct(&UPDATEFUNCTIONURLCONFIGINPUT_SCHEMA, (), |_, member, deser| {
         186  +
        deserializer.read_struct(&UPDATEFUNCTIONURLCONFIGINPUT_SCHEMA, &mut |member, deser| {
  182    187   
            match member.member_index() {
  183    188   
                Some(0) => {
  184    189   
                    builder.function_name = Some(deser.read_string(member)?);
  185    190   
                }
  186    191   
                Some(1) => {
  187    192   
                    builder.qualifier = Some(deser.read_string(member)?);
  188    193   
                }
  189    194   
                Some(2) => {
  190    195   
                    builder.auth_type = Some(crate::types::FunctionUrlAuthType::from(deser.read_string(member)?.as_str()));
  191    196   
                }
  192    197   
                Some(3) => {
  193    198   
                    builder.cors = Some(crate::types::Cors::deserialize(deser)?);
  194    199   
                }
  195    200   
                Some(4) => {
  196    201   
                    builder.invoke_mode = Some(crate::types::InvokeMode::from(deser.read_string(member)?.as_str()));
  197    202   
                }
  198    203   
                _ => {}
  199    204   
            }
  200    205   
            Ok(())
  201    206   
        })?;
         207  +
        builder.function_name = builder.function_name.or(Some(String::new()));
  202    208   
        builder
  203    209   
            .build()
  204    210   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  205    211   
    }
  206    212   
}
         213  +
impl UpdateFunctionUrlConfigInput {
         214  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         215  +
    pub fn deserialize_with_response(
         216  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         217  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         218  +
        _status: u16,
         219  +
        _body: &[u8],
         220  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         221  +
        Self::deserialize(deserializer)
         222  +
    }
         223  +
}
  207    224   
impl UpdateFunctionUrlConfigInput {
  208    225   
    /// Creates a new builder-style object to manufacture [`UpdateFunctionUrlConfigInput`](crate::operation::update_function_url_config::UpdateFunctionUrlConfigInput).
  209    226   
    pub fn builder() -> crate::operation::update_function_url_config::builders::UpdateFunctionUrlConfigInputBuilder {
  210    227   
        crate::operation::update_function_url_config::builders::UpdateFunctionUrlConfigInputBuilder::default()
  211    228   
    }
  212    229   
}
  213    230   
  214    231   
/// A builder for [`UpdateFunctionUrlConfigInput`](crate::operation::update_function_url_config::UpdateFunctionUrlConfigInput).
  215    232   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  216    233   
#[non_exhaustive]

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

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde.rs

@@ -1,1 +492,0 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub fn parse_http_error_metadata(
           3  +
    _response_status: u16,
           4  +
    response_headers: &::aws_smithy_runtime_api::http::Headers,
           5  +
    response_body: &[u8],
           6  +
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
           7  +
    crate::json_errors::parse_error_metadata(response_body, response_headers)
           8  +
}
           9  +
    2     10   
pub(crate) fn type_erase_result<O, E>(
    3     11   
    result: ::std::result::Result<O, E>,
    4     12   
) -> ::std::result::Result<
    5     13   
    ::aws_smithy_runtime_api::client::interceptors::context::Output,
    6     14   
    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
    7     15   
>
    8     16   
where
    9     17   
    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
   10     18   
    E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
   11     19   
{
   12     20   
    result
   13     21   
        .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
   14     22   
        .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
   15     23   
        .map_err(::std::convert::Into::into)
   16     24   
}
   17     25   
   18         -
pub fn parse_http_error_metadata(
   19         -
    _response_status: u16,
   20         -
    response_headers: &::aws_smithy_runtime_api::http::Headers,
   21         -
    response_body: &[u8],
   22         -
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
   23         -
    crate::json_errors::parse_error_metadata(response_body, response_headers)
   24         -
}
   25         -
   26         -
pub(crate) mod shape_add_layer_version_permission;
   27         -
   28         -
pub(crate) mod shape_add_permission;
   29         -
   30         -
pub(crate) mod shape_create_alias;
   31         -
   32         -
pub(crate) mod shape_create_code_signing_config;
   33         -
   34         -
pub(crate) mod shape_create_event_source_mapping;
   35         -
   36         -
pub(crate) mod shape_create_function;
   37         -
   38         -
pub(crate) mod shape_create_function_url_config;
   39         -
   40         -
pub(crate) mod shape_delete_alias;
   41         -
   42         -
pub(crate) mod shape_delete_code_signing_config;
   43         -
   44         -
pub(crate) mod shape_delete_event_source_mapping;
   45         -
   46         -
pub(crate) mod shape_delete_function;
   47         -
   48         -
pub(crate) mod shape_delete_function_code_signing_config;
   49         -
   50         -
pub(crate) mod shape_delete_function_concurrency;
   51         -
   52         -
pub(crate) mod shape_delete_function_event_invoke_config;
   53         -
   54         -
pub(crate) mod shape_delete_function_url_config;
   55         -
   56         -
pub(crate) mod shape_delete_layer_version;
   57         -
   58         -
pub(crate) mod shape_delete_provisioned_concurrency_config;
   59         -
   60         -
pub(crate) mod shape_get_account_settings;
   61         -
   62         -
pub(crate) mod shape_get_alias;
   63         -
   64         -
pub(crate) mod shape_get_code_signing_config;
   65         -
   66         -
pub(crate) mod shape_get_event_source_mapping;
   67         -
   68         -
pub(crate) mod shape_get_function;
   69         -
   70         -
pub(crate) mod shape_get_function_code_signing_config;
   71         -
   72         -
pub(crate) mod shape_get_function_concurrency;
   73         -
   74         -
pub(crate) mod shape_get_function_configuration;
   75         -
   76         -
pub(crate) mod shape_get_function_event_invoke_config;
   77         -
   78         -
pub(crate) mod shape_get_function_recursion_config;
   79         -
   80         -
pub(crate) mod shape_get_function_url_config;
   81         -
   82         -
pub(crate) mod shape_get_layer_version;
   83         -
   84         -
pub(crate) mod shape_get_layer_version_by_arn;
   85         -
   86         -
pub(crate) mod shape_get_layer_version_policy;
   87         -
   88         -
pub(crate) mod shape_get_policy;
   89         -
   90         -
pub(crate) mod shape_get_provisioned_concurrency_config;
   91         -
   92         -
pub(crate) mod shape_get_runtime_management_config;
   93         -
   94         -
pub(crate) mod shape_invoke;
   95         -
   96         -
pub(crate) mod shape_invoke_async;
   97         -
   98         -
pub(crate) mod shape_invoke_async_input;
   99         -
  100         -
pub(crate) mod shape_invoke_input;
  101         -
  102     26   
pub(crate) mod shape_invoke_with_response_stream;
  103     27   
  104         -
pub(crate) mod shape_invoke_with_response_stream_input;
  105         -
  106         -
pub(crate) mod shape_list_aliases;
  107         -
  108         -
pub(crate) mod shape_list_code_signing_configs;
  109         -
  110         -
pub(crate) mod shape_list_event_source_mappings;
  111         -
  112         -
pub(crate) mod shape_list_function_event_invoke_configs;
  113         -
  114         -
pub(crate) mod shape_list_function_url_configs;
  115         -
  116         -
pub(crate) mod shape_list_functions;
  117         -
  118         -
pub(crate) mod shape_list_functions_by_code_signing_config;
  119         -
  120         -
pub(crate) mod shape_list_layer_versions;
  121         -
  122         -
pub(crate) mod shape_list_layers;
  123         -
  124         -
pub(crate) mod shape_list_provisioned_concurrency_configs;
  125         -
  126         -
pub(crate) mod shape_list_tags;
  127         -
  128         -
pub(crate) mod shape_list_versions_by_function;
  129         -
  130         -
pub(crate) mod shape_publish_layer_version;
  131         -
  132         -
pub(crate) mod shape_publish_version;
  133         -
  134         -
pub(crate) mod shape_put_function_code_signing_config;
  135         -
  136         -
pub(crate) mod shape_put_function_concurrency;
  137         -
  138         -
pub(crate) mod shape_put_function_event_invoke_config;
  139         -
  140         -
pub(crate) mod shape_put_function_recursion_config;
  141         -
  142         -
pub(crate) mod shape_put_provisioned_concurrency_config;
  143         -
  144         -
pub(crate) mod shape_put_runtime_management_config;
  145         -
  146         -
pub(crate) mod shape_remove_layer_version_permission;
  147         -
  148         -
pub(crate) mod shape_remove_permission;
  149         -
  150         -
pub(crate) mod shape_tag_resource;
  151         -
  152         -
pub(crate) mod shape_untag_resource;
  153         -
  154         -
pub(crate) mod shape_update_alias;
  155         -
  156         -
pub(crate) mod shape_update_code_signing_config;
  157         -
  158         -
pub(crate) mod shape_update_event_source_mapping;
  159         -
  160         -
pub(crate) mod shape_update_function_code;
  161         -
  162         -
pub(crate) mod shape_update_function_configuration;
  163         -
  164         -
pub(crate) mod shape_update_function_event_invoke_config;
          28  +
pub(crate) mod shape_invoke_with_response_stream_output;
  165     29   
  166         -
pub(crate) mod shape_update_function_url_config;
          30  +
pub fn parse_event_stream_error_metadata(
          31  +
    payload: &::bytes::Bytes,
          32  +
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
          33  +
    crate::json_errors::parse_error_metadata(payload, &::aws_smithy_runtime_api::http::Headers::new())
          34  +
}
  167     35   
  168     36   
pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
  169     37   
    if data.is_empty() {
  170     38   
        b"{}"
  171     39   
    } else {
  172     40   
        data
  173     41   
    }
  174     42   
}
  175     43   
  176         -
pub(crate) mod shape_add_layer_version_permission_input;
  177         -
  178         -
pub(crate) mod shape_add_permission_input;
  179         -
  180         -
pub(crate) mod shape_code_signing_config_not_found_exception;
  181         -
  182         -
pub(crate) mod shape_code_storage_exceeded_exception;
  183         -
  184         -
pub(crate) mod shape_code_verification_failed_exception;
  185         -
  186         -
pub(crate) mod shape_create_alias_input;
  187         -
  188         -
pub(crate) mod shape_create_code_signing_config_input;
  189         -
  190         -
pub(crate) mod shape_create_event_source_mapping_input;
  191         -
  192         -
pub(crate) mod shape_create_function_input;
  193         -
  194         -
pub(crate) mod shape_create_function_url_config_input;
  195         -
  196         -
pub(crate) mod shape_ec2_access_denied_exception;
  197         -
  198         -
pub(crate) mod shape_ec2_throttled_exception;
  199         -
  200         -
pub(crate) mod shape_ec2_unexpected_exception;
  201         -
  202         -
pub(crate) mod shape_efs_mount_connectivity_exception;
  203         -
  204         -
pub(crate) mod shape_efs_mount_failure_exception;
  205         -
  206         -
pub(crate) mod shape_efs_mount_timeout_exception;
  207         -
  208         -
pub(crate) mod shape_efsio_exception;
  209         -
  210         -
pub(crate) mod shape_eni_limit_reached_exception;
  211         -
  212         -
pub(crate) mod shape_invalid_code_signature_exception;
  213         -
  214         -
pub(crate) mod shape_invalid_parameter_value_exception;
  215         -
  216         -
pub(crate) mod shape_invalid_request_content_exception;
  217         -
  218         -
pub(crate) mod shape_invalid_runtime_exception;
  219         -
  220         -
pub(crate) mod shape_invalid_security_group_id_exception;
  221         -
  222         -
pub(crate) mod shape_invalid_subnet_id_exception;
  223         -
  224         -
pub(crate) mod shape_invalid_zip_file_exception;
  225         -
  226         -
pub(crate) mod shape_invoke_output;
  227         -
  228         -
pub(crate) mod shape_invoke_with_response_stream_output;
  229         -
  230         -
pub(crate) mod shape_kms_access_denied_exception;
  231         -
  232         -
pub(crate) mod shape_kms_disabled_exception;
  233         -
  234         -
pub(crate) mod shape_kms_invalid_state_exception;
  235         -
  236         -
pub(crate) mod shape_kms_not_found_exception;
  237         -
  238         -
pub(crate) mod shape_policy_length_exceeded_exception;
  239         -
  240         -
pub(crate) mod shape_precondition_failed_exception;
  241         -
  242         -
pub(crate) mod shape_provisioned_concurrency_config_not_found_exception;
  243         -
  244         -
pub(crate) mod shape_publish_layer_version_input;
  245         -
  246         -
pub(crate) mod shape_publish_version_input;
  247         -
  248         -
pub(crate) mod shape_put_function_code_signing_config_input;
  249         -
  250         -
pub(crate) mod shape_put_function_concurrency_input;
  251         -
  252         -
pub(crate) mod shape_put_function_event_invoke_config_input;
  253         -
  254         -
pub(crate) mod shape_put_function_recursion_config_input;
  255         -
  256         -
pub(crate) mod shape_put_provisioned_concurrency_config_input;
  257         -
  258         -
pub(crate) mod shape_put_runtime_management_config_input;
  259         -
  260         -
pub(crate) mod shape_recursive_invocation_exception;
  261         -
  262         -
pub(crate) mod shape_request_too_large_exception;
  263         -
  264         -
pub(crate) mod shape_resource_conflict_exception;
  265         -
  266         -
pub(crate) mod shape_resource_in_use_exception;
  267         -
  268         -
pub(crate) mod shape_resource_not_found_exception;
  269         -
  270         -
pub(crate) mod shape_resource_not_ready_exception;
  271         -
  272         -
pub(crate) mod shape_service_exception;
  273         -
  274         -
pub(crate) mod shape_snap_start_exception;
  275         -
  276         -
pub(crate) mod shape_snap_start_not_ready_exception;
  277         -
  278         -
pub(crate) mod shape_snap_start_timeout_exception;
  279         -
  280         -
pub(crate) mod shape_subnet_ip_address_limit_reached_exception;
  281         -
  282         -
pub(crate) mod shape_tag_resource_input;
  283         -
  284         -
pub(crate) mod shape_too_many_requests_exception;
  285         -
  286         -
pub(crate) mod shape_unsupported_media_type_exception;
  287         -
  288         -
pub(crate) mod shape_update_alias_input;
  289         -
  290         -
pub(crate) mod shape_update_code_signing_config_input;
  291         -
  292         -
pub(crate) mod shape_update_event_source_mapping_input;
  293         -
  294         -
pub(crate) mod shape_update_function_code_input;
  295         -
  296         -
pub(crate) mod shape_update_function_configuration_input;
  297         -
  298         -
pub(crate) mod shape_update_function_event_invoke_config_input;
  299         -
  300         -
pub(crate) mod shape_update_function_url_config_input;
  301         -
  302         -
pub fn parse_event_stream_error_metadata(
  303         -
    payload: &::bytes::Bytes,
  304         -
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
  305         -
    crate::json_errors::parse_error_metadata(payload, &::aws_smithy_runtime_api::http::Headers::new())
  306         -
}
  307         -
  308         -
pub(crate) mod shape_account_limit;
  309         -
  310         -
pub(crate) mod shape_account_usage;
  311         -
  312         -
pub(crate) mod shape_alias_list;
  313         -
  314         -
pub(crate) mod shape_alias_routing_configuration;
  315         -
  316         -
pub(crate) mod shape_allowed_publishers;
  317         -
  318         -
pub(crate) mod shape_amazon_managed_kafka_event_source_config;
  319         -
  320         -
pub(crate) mod shape_architectures_list;
  321         -
  322         -
pub(crate) mod shape_code_signing_config;
  323         -
  324         -
pub(crate) mod shape_code_signing_config_list;
  325         -
  326         -
pub(crate) mod shape_code_signing_policies;
  327         -
  328         -
pub(crate) mod shape_compatible_architectures;
  329         -
  330         -
pub(crate) mod shape_compatible_runtimes;
  331         -
  332         -
pub(crate) mod shape_concurrency;
  333         -
  334         -
pub(crate) mod shape_cors;
  335         -
  336         -
pub(crate) mod shape_dead_letter_config;
  337         -
  338         -
pub(crate) mod shape_destination_config;
  339         -
  340         -
pub(crate) mod shape_document_db_event_source_config;
  341         -
  342         -
pub(crate) mod shape_environment;
  343         -
  344         -
pub(crate) mod shape_environment_response;
  345         -
  346         -
pub(crate) mod shape_ephemeral_storage;
  347         -
  348         -
pub(crate) mod shape_event_source_mapping_metrics_config;
  349         -
  350         -
pub(crate) mod shape_event_source_mappings_list;
  351         -
  352         -
pub(crate) mod shape_file_system_config;
  353         -
  354         -
pub(crate) mod shape_file_system_config_list;
  355         -
  356         -
pub(crate) mod shape_filter_criteria;
  357         -
  358         -
pub(crate) mod shape_filter_criteria_error;
  359         -
  360         -
pub(crate) mod shape_function_arn_list;
  361         -
  362         -
pub(crate) mod shape_function_code;
  363         -
  364         -
pub(crate) mod shape_function_code_location;
  365         -
  366         -
pub(crate) mod shape_function_configuration;
  367         -
  368         -
pub(crate) mod shape_function_event_invoke_config_list;
  369         -
  370         -
pub(crate) mod shape_function_list;
  371         -
  372         -
pub(crate) mod shape_function_response_type_list;
  373         -
  374         -
pub(crate) mod shape_function_url_config_list;
  375         -
  376         -
pub(crate) mod shape_image_config;
  377         -
  378         -
pub(crate) mod shape_image_config_response;
  379         -
  380         -
pub(crate) mod shape_layer_version_content_input;
  381         -
  382         -
pub(crate) mod shape_layer_version_content_output;
  383         -
  384         -
pub(crate) mod shape_layer_versions_list;
  385         -
  386         -
pub(crate) mod shape_layers_list;
  387         -
  388         -
pub(crate) mod shape_layers_reference_list;
  389         -
  390         -
pub(crate) mod shape_logging_config;
  391         -
  392         -
pub(crate) mod shape_provisioned_concurrency_config_list;
  393         -
  394         -
pub(crate) mod shape_provisioned_poller_config;
  395         -
  396         -
pub(crate) mod shape_queues;
  397         -
  398         -
pub(crate) mod shape_runtime_version_config;
  399         -
  400         -
pub(crate) mod shape_scaling_config;
  401         -
  402         -
pub(crate) mod shape_self_managed_event_source;
  403         -
  404         -
pub(crate) mod shape_self_managed_kafka_event_source_config;
  405         -
  406         -
pub(crate) mod shape_snap_start;
  407         -
  408         -
pub(crate) mod shape_snap_start_response;
  409         -
  410         -
pub(crate) mod shape_source_access_configuration;
  411         -
  412         -
pub(crate) mod shape_source_access_configurations;
  413         -
  414         -
pub(crate) mod shape_tags;
  415         -
  416         -
pub(crate) mod shape_tags_error;
  417         -
  418         -
pub(crate) mod shape_topics;
  419         -
  420         -
pub(crate) mod shape_tracing_config;
  421         -
  422         -
pub(crate) mod shape_tracing_config_response;
  423         -
  424         -
pub(crate) mod shape_vpc_config;
  425         -
  426         -
pub(crate) mod shape_vpc_config_response;
  427         -
  428         -
pub(crate) mod shape_additional_version_weights;
  429         -
  430         -
pub(crate) mod shape_alias_configuration;
  431         -
  432         -
pub(crate) mod shape_allow_methods_list;
  433         -
  434         -
pub(crate) mod shape_allow_origins_list;
  435         -
  436         -
pub(crate) mod shape_endpoints;
  437         -
  438         -
pub(crate) mod shape_environment_error;
  439         -
  440         -
pub(crate) mod shape_environment_variables;
  441         -
  442         -
pub(crate) mod shape_event_source_mapping_configuration;
  443         -
  444         -
pub(crate) mod shape_event_source_mapping_metric_list;
  445         -
  446         -
pub(crate) mod shape_filter;
  447         -
  448         -
pub(crate) mod shape_filter_list;
  449         -
  450         -
pub(crate) mod shape_function_event_invoke_config;
  451         -
  452         -
pub(crate) mod shape_function_url_config;
  453         -
  454         -
pub(crate) mod shape_headers_list;
  455         -
  456         -
pub(crate) mod shape_image_config_error;
  457         -
  458     44   
pub(crate) mod shape_invoke_with_response_stream_complete_event;
  459         -
  460         -
pub(crate) mod shape_kafka_schema_registry_config;
  461         -
  462         -
pub(crate) mod shape_layer;
  463         -
  464         -
pub(crate) mod shape_layer_versions_list_item;
  465         -
  466         -
pub(crate) mod shape_layers_list_item;
  467         -
  468         -
pub(crate) mod shape_on_failure;
  469         -
  470         -
pub(crate) mod shape_on_success;
  471         -
  472         -
pub(crate) mod shape_provisioned_concurrency_config_list_item;
  473         -
  474         -
pub(crate) mod shape_runtime_version_error;
  475         -
  476         -
pub(crate) mod shape_security_group_ids;
  477         -
  478         -
pub(crate) mod shape_subnet_ids;
  479         -
  480         -
pub(crate) mod shape_endpoint_lists;
  481         -
  482         -
pub(crate) mod shape_kafka_schema_registry_access_config;
  483         -
  484         -
pub(crate) mod shape_kafka_schema_registry_access_config_list;
  485         -
  486         -
pub(crate) mod shape_kafka_schema_validation_config;
  487         -
  488         -
pub(crate) mod shape_kafka_schema_validation_config_list;
  489         -
  490         -
pub(crate) mod shape_signing_profile_version_arns;
  491         -
  492         -
pub(crate) mod shape_string_list;