AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/delete_function_concurrency.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 `DeleteFunctionConcurrency`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteFunctionConcurrency;
    6      6   
impl DeleteFunctionConcurrency {
    7      7   
    /// Creates a new `DeleteFunctionConcurrency`
    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::delete_function_concurrency::DeleteFunctionConcurrencyInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyOutput::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::delete_function_concurrency::DeleteFunctionConcurrencyInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +248,422 @@
  138    144   
                crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyError,
  139    145   
            >::new());
  140    146   
  141    147   
        ::std::borrow::Cow::Owned(rcb)
  142    148   
    }
  143    149   
}
  144    150   
  145    151   
#[derive(Debug)]
  146    152   
struct DeleteFunctionConcurrencyResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteFunctionConcurrencyResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         154  +
    fn deserialize_nonstreaming_with_config(
  149    155   
        &self,
  150    156   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         157  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    158   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    159   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153         -
        let headers = response.headers();
  154         -
        let body = response.body().bytes().expect("body loaded");
  155    160   
        #[allow(unused_mut)]
  156    161   
        let mut force_error = false;
  157    162   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158         -
        let parse_result = if !success && status != 204 || force_error {
  159         -
            crate::protocol_serde::shape_delete_function_concurrency::de_delete_function_concurrency_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_delete_function_concurrency::de_delete_function_concurrency_http_response(status, headers, body)
         163  +
        if !success && status != 204 || force_error {
         164  +
            let headers = response.headers();
         165  +
            let body = response.body().bytes().expect("body loaded");
         166  +
            #[allow(unused_mut)]
         167  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         168  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         169  +
            })?;
         170  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         171  +
            let generic = generic_builder.build();
         172  +
            let error_code = match generic.code() {
         173  +
                ::std::option::Option::Some(code) => code,
         174  +
                ::std::option::Option::None => {
         175  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         176  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         177  +
                            crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyError::unhandled(generic),
         178  +
                        ),
         179  +
                    ))
         180  +
                }
  162    181   
            };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         182  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         183  +
            let protocol = _cfg
         184  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         185  +
                .expect("a SharedClientProtocol is required");
         186  +
            let err = match error_code {
         187  +
                "InvalidParameterValueException" => {
         188  +
                    crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyError::InvalidParameterValueException({
         189  +
                        let mut tmp = match protocol
         190  +
                            .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         191  +
                            .and_then(|mut deser| {
         192  +
                                crate::types::error::InvalidParameterValueException::deserialize_with_response(
         193  +
                                    &mut *deser,
         194  +
                                    response.headers(),
         195  +
                                    response.status().into(),
         196  +
                                    body,
         197  +
                                )
         198  +
                            }) {
         199  +
                            ::std::result::Result::Ok(val) => val,
         200  +
                            ::std::result::Result::Err(e) => {
         201  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         202  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         203  +
                                ))
         204  +
                            }
         205  +
                        };
         206  +
                        tmp.meta = generic;
         207  +
                        if tmp.message.is_none() {
         208  +
                            tmp.message = _error_message;
         209  +
                        }
         210  +
                        tmp
         211  +
                    })
         212  +
                }
         213  +
                "ResourceConflictException" => {
         214  +
                    crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyError::ResourceConflictException({
         215  +
                        let mut tmp = match protocol
         216  +
                            .deserialize_response(response, crate::types::error::ResourceConflictException::SCHEMA, _cfg)
         217  +
                            .and_then(|mut deser| {
         218  +
                                crate::types::error::ResourceConflictException::deserialize_with_response(
         219  +
                                    &mut *deser,
         220  +
                                    response.headers(),
         221  +
                                    response.status().into(),
         222  +
                                    body,
         223  +
                                )
         224  +
                            }) {
         225  +
                            ::std::result::Result::Ok(val) => val,
         226  +
                            ::std::result::Result::Err(e) => {
         227  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         228  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         229  +
                                ))
         230  +
                            }
         231  +
                        };
         232  +
                        tmp.meta = generic;
         233  +
                        if tmp.message.is_none() {
         234  +
                            tmp.message = _error_message;
         235  +
                        }
         236  +
                        tmp
         237  +
                    })
         238  +
                }
         239  +
                "ResourceNotFoundException" => {
         240  +
                    crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyError::ResourceNotFoundException({
         241  +
                        let mut tmp = match protocol
         242  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         243  +
                            .and_then(|mut deser| {
         244  +
                                crate::types::error::ResourceNotFoundException::deserialize_with_response(
         245  +
                                    &mut *deser,
         246  +
                                    response.headers(),
         247  +
                                    response.status().into(),
         248  +
                                    body,
         249  +
                                )
         250  +
                            }) {
         251  +
                            ::std::result::Result::Ok(val) => val,
         252  +
                            ::std::result::Result::Err(e) => {
         253  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         254  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         255  +
                                ))
         256  +
                            }
         257  +
                        };
         258  +
                        tmp.meta = generic;
         259  +
                        if tmp.message.is_none() {
         260  +
                            tmp.message = _error_message;
         261  +
                        }
         262  +
                        tmp
         263  +
                    })
         264  +
                }
         265  +
                "ServiceException" => crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyError::ServiceException({
         266  +
                    let mut tmp = match protocol
         267  +
                        .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         268  +
                        .and_then(|mut deser| {
         269  +
                            crate::types::error::ServiceException::deserialize_with_response(
         270  +
                                &mut *deser,
         271  +
                                response.headers(),
         272  +
                                response.status().into(),
         273  +
                                body,
         274  +
                            )
         275  +
                        }) {
         276  +
                        ::std::result::Result::Ok(val) => val,
         277  +
                        ::std::result::Result::Err(e) => {
         278  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         279  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         280  +
                            ))
         281  +
                        }
         282  +
                    };
         283  +
                    tmp.meta = generic;
         284  +
                    if tmp.message.is_none() {
         285  +
                        tmp.message = _error_message;
         286  +
                    }
         287  +
                    tmp
         288  +
                }),
         289  +
                "TooManyRequestsException" => {
         290  +
                    crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyError::TooManyRequestsException({
         291  +
                        let mut tmp = match protocol
         292  +
                            .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         293  +
                            .and_then(|mut deser| {
         294  +
                                crate::types::error::TooManyRequestsException::deserialize_with_response(
         295  +
                                    &mut *deser,
         296  +
                                    response.headers(),
         297  +
                                    response.status().into(),
         298  +
                                    body,
         299  +
                                )
         300  +
                            }) {
         301  +
                            ::std::result::Result::Ok(val) => val,
         302  +
                            ::std::result::Result::Err(e) => {
         303  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         304  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         305  +
                                ))
         306  +
                            }
         307  +
                        };
         308  +
                        tmp.meta = generic;
         309  +
                        if tmp.message.is_none() {
         310  +
                            tmp.message = _error_message;
         311  +
                        }
         312  +
                        tmp
         313  +
                    })
         314  +
                }
         315  +
                _ => crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyError::generic(generic),
         316  +
            };
         317  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         318  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         319  +
            ))
         320  +
        } else {
         321  +
            let protocol = _cfg
         322  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         323  +
                .expect("a SharedClientProtocol is required");
         324  +
            let mut deser = protocol
         325  +
                .deserialize_response(response, DeleteFunctionConcurrency::OUTPUT_SCHEMA, _cfg)
         326  +
                .map_err(|e| {
         327  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         328  +
                })?;
         329  +
            let body = response.body().bytes().expect("body loaded");
         330  +
            let output = crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyOutput::deserialize_with_response(
         331  +
                &mut *deser,
         332  +
                response.headers(),
         333  +
                response.status().into(),
         334  +
                body,
         335  +
            )
         336  +
            .map_err(|e| {
         337  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         338  +
            })?;
         339  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         340  +
        }
  164    341   
    }
  165    342   
}
  166    343   
#[derive(Debug)]
  167    344   
struct DeleteFunctionConcurrencyRequestSerializer;
  168    345   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteFunctionConcurrencyRequestSerializer {
  169    346   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    347   
    fn serialize_input(
  171    348   
        &self,
  172    349   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    350   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    351   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    352   
        let input = input
  176    353   
            .downcast::<crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyInput>()
  177    354   
            .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::delete_function_concurrency::DeleteFunctionConcurrencyInput,
  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         -
                    ));
         355  +
        let protocol = _cfg
         356  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         357  +
            .expect("a SharedClientProtocol is required");
         358  +
        if protocol.supports_http_bindings() {
         359  +
            let mut request = protocol
         360  +
                .serialize_body(&input, DeleteFunctionConcurrency::INPUT_SCHEMA, "", _cfg)
         361  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         362  +
            {
         363  +
                let mut uri = "/2017-10-31/functions/{FunctionName}/concurrency".to_string();
         364  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         365  +
                if let Some(ref val) = input.function_name {
         366  +
                    uri = uri.replace("{FunctionName}", &::aws_smithy_schema::http_protocol::percent_encode(&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("&"));
  199    381   
                }
  200         -
                ::std::write!(output, "/2017-10-31/functions/{FunctionName}/concurrency", FunctionName = function_name)
  201         -
                    .expect("formatting should succeed");
  202         -
                ::std::result::Result::Ok(())
         382  +
                request.set_uri(uri.as_str()).expect("valid URI");
  203    383   
            }
  204         -
            #[allow(clippy::unnecessary_wraps)]
  205         -
            fn update_http_builder(
  206         -
                input: &crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyInput,
  207         -
                builder: ::http_1x::request::Builder,
  208         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  209         -
                let mut uri = ::std::string::String::new();
  210         -
                uri_base(input, &mut uri)?;
  211         -
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  212         -
            }
  213         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  214         -
            builder
  215         -
        };
  216         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
  217    384   
  218         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         385  +
            return ::std::result::Result::Ok(request);
         386  +
        } else {
         387  +
            let mut request = protocol
         388  +
                .serialize_request(&input, DeleteFunctionConcurrency::INPUT_SCHEMA, "", _cfg)
         389  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         390  +
         391  +
            return ::std::result::Result::Ok(request);
         392  +
        }
  219    393   
    }
  220    394   
}
  221    395   
#[derive(Debug)]
  222    396   
struct DeleteFunctionConcurrencyEndpointParamsInterceptor;
  223    397   
  224    398   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteFunctionConcurrencyEndpointParamsInterceptor {
  225    399   
    fn name(&self) -> &'static str {
  226    400   
        "DeleteFunctionConcurrencyEndpointParamsInterceptor"
  227    401   
    }
  228    402   

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

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

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

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct DeleteFunctionConcurrencyOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static DELETEFUNCTIONCONCURRENCYOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.lambda.synthetic#DeleteFunctionConcurrencyOutput",
   10     10   
    "com.amazonaws.lambda.synthetic",
   11     11   
    "DeleteFunctionConcurrencyOutput",
   12     12   
);
   13         -
static DELETEFUNCTIONCONCURRENCYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(DELETEFUNCTIONCONCURRENCYOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static DELETEFUNCTIONCONCURRENCYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
          20  +
static DELETEFUNCTIONCONCURRENCYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    DELETEFUNCTIONCONCURRENCYOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&DELETEFUNCTIONCONCURRENCYOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl DeleteFunctionConcurrencyOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEFUNCTIONCONCURRENCYOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteFunctionConcurrencyOutput {
   20     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   21     31   
    fn serialize_members(
   22     32   
        &self,
   23     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   24     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   25     35   
        Ok(())
   26     36   
    }
   27     37   
}
   28     38   
impl DeleteFunctionConcurrencyOutput {
   29     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   30         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   31         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   32     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   33     43   
        #[allow(unused_variables, unused_mut)]
   34     44   
        let mut builder = Self::builder();
   35     45   
        #[allow(
   36     46   
            unused_variables,
   37     47   
            unreachable_code,
   38     48   
            clippy::single_match,
   39     49   
            clippy::match_single_binding,
   40     50   
            clippy::diverging_sub_expression
   41     51   
        )]
   42         -
        deserializer.read_struct(&DELETEFUNCTIONCONCURRENCYOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&DELETEFUNCTIONCONCURRENCYOUTPUT_SCHEMA, &mut |member, deser| {
   43     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   44     57   
                _ => {}
   45     58   
            }
   46     59   
            Ok(())
   47     60   
        })?;
   48     61   
        Ok(builder.build())
   49     62   
    }
   50     63   
}
          64  +
impl DeleteFunctionConcurrencyOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   51     82   
impl ::aws_types::request_id::RequestId for DeleteFunctionConcurrencyOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl DeleteFunctionConcurrencyOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`DeleteFunctionConcurrencyOutput`](crate::operation::delete_function_concurrency::DeleteFunctionConcurrencyOutput).
   58     89   
    pub fn builder() -> crate::operation::delete_function_concurrency::builders::DeleteFunctionConcurrencyOutputBuilder {
   59     90   
        crate::operation::delete_function_concurrency::builders::DeleteFunctionConcurrencyOutputBuilder::default()
   60     91   
    }

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/delete_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 `DeleteFunctionEventInvokeConfig`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteFunctionEventInvokeConfig;
    6      6   
impl DeleteFunctionEventInvokeConfig {
    7      7   
    /// Creates a new `DeleteFunctionEventInvokeConfig`
    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::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigOutput::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::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +273,433 @@
  144    150   
                crate::operation::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigError,
  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 DeleteFunctionEventInvokeConfigResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteFunctionEventInvokeConfigResponseDeserializer {
  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 != 204 || force_error {
  165         -
            crate::protocol_serde::shape_delete_function_event_invoke_config::de_delete_function_event_invoke_config_http_error(status, headers, body)
  166         -
        } else {
  167         -
            crate::protocol_serde::shape_delete_function_event_invoke_config::de_delete_function_event_invoke_config_http_response(
  168         -
                status, headers, body,
         169  +
        if !success && status != 204 || 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::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigError::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::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigError::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::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigError::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::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigError::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,
         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  +
                            }
         263  +
                        };
         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::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigError::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::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigError::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,
  169    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  +
                            }
  170    315   
                        };
  171         -
        crate::protocol_serde::type_erase_result(parse_result)
         316  +
                        tmp.meta = generic;
         317  +
                        if tmp.message.is_none() {
         318  +
                            tmp.message = _error_message;
         319  +
                        }
         320  +
                        tmp
         321  +
                    })
         322  +
                }
         323  +
                _ => crate::operation::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigError::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, DeleteFunctionEventInvokeConfig::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::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigOutput::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 DeleteFunctionEventInvokeConfigRequestSerializer;
  176    353   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteFunctionEventInvokeConfigRequestSerializer {
  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::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigInput>()
  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::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigInput,
  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::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigInput,
  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, DeleteFunctionEventInvokeConfig::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));
  224         -
                    }
         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("&"));
  225    392   
                }
  226         -
                ::std::result::Result::Ok(())
         393  +
                request.set_uri(uri.as_str()).expect("valid URI");
  227    394   
            }
  228         -
            #[allow(clippy::unnecessary_wraps)]
  229         -
            fn update_http_builder(
  230         -
                input: &crate::operation::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigInput,
  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("DELETE").uri(uri))
  237         -
            }
  238         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  239         -
            builder
  240         -
        };
  241         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
  242    395   
  243         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         396  +
            return ::std::result::Result::Ok(request);
         397  +
        } else {
         398  +
            let mut request = protocol
         399  +
                .serialize_request(&input, DeleteFunctionEventInvokeConfig::INPUT_SCHEMA, "", _cfg)
         400  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         401  +
         402  +
            return ::std::result::Result::Ok(request);
         403  +
        }
  244    404   
    }
  245    405   
}
  246    406   
#[derive(Debug)]
  247    407   
struct DeleteFunctionEventInvokeConfigEndpointParamsInterceptor;
  248    408   
  249    409   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteFunctionEventInvokeConfigEndpointParamsInterceptor {
  250    410   
    fn name(&self) -> &'static str {
  251    411   
        "DeleteFunctionEventInvokeConfigEndpointParamsInterceptor"
  252    412   
    }
  253    413   

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

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

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

@@ -1,1 +83,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct DeleteFunctionEventInvokeConfigOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static DELETEFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.lambda.synthetic#DeleteFunctionEventInvokeConfigOutput",
   10     10   
    "com.amazonaws.lambda.synthetic",
   11     11   
    "DeleteFunctionEventInvokeConfigOutput",
   12     12   
);
          13  +
static DELETEFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
   13     20   
static DELETEFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   14     21   
    DELETEFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA_ID,
   15     22   
    ::aws_smithy_schema::ShapeType::Structure,
   16         -
    &[],
          23  +
    &[&DELETEFUNCTIONEVENTINVOKECONFIGOUTPUT_MEMBER__REQUEST_ID],
   17     24   
);
   18     25   
impl DeleteFunctionEventInvokeConfigOutput {
   19     26   
    /// The schema for this shape.
   20     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA;
   21     28   
}
   22     29   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteFunctionEventInvokeConfigOutput {
   23     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   24     31   
    fn serialize_members(
   25     32   
        &self,
   26     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   27     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   28     35   
        Ok(())
   29     36   
    }
   30     37   
}
   31     38   
impl DeleteFunctionEventInvokeConfigOutput {
   32     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   33         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   34         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   35     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   36     43   
        #[allow(unused_variables, unused_mut)]
   37     44   
        let mut builder = Self::builder();
   38     45   
        #[allow(
   39     46   
            unused_variables,
   40     47   
            unreachable_code,
   41     48   
            clippy::single_match,
   42     49   
            clippy::match_single_binding,
   43     50   
            clippy::diverging_sub_expression
   44     51   
        )]
   45         -
        deserializer.read_struct(&DELETEFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&DELETEFUNCTIONEVENTINVOKECONFIGOUTPUT_SCHEMA, &mut |member, deser| {
   46     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   47     57   
                _ => {}
   48     58   
            }
   49     59   
            Ok(())
   50     60   
        })?;
   51     61   
        Ok(builder.build())
   52     62   
    }
   53     63   
}
          64  +
impl DeleteFunctionEventInvokeConfigOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   54     82   
impl ::aws_types::request_id::RequestId for DeleteFunctionEventInvokeConfigOutput {
   55     83   
    fn request_id(&self) -> Option<&str> {
   56     84   
        self._request_id.as_deref()
   57     85   
    }
   58     86   
}
   59     87   
impl DeleteFunctionEventInvokeConfigOutput {
   60     88   
    /// Creates a new builder-style object to manufacture [`DeleteFunctionEventInvokeConfigOutput`](crate::operation::delete_function_event_invoke_config::DeleteFunctionEventInvokeConfigOutput).
   61     89   
    pub fn builder() -> crate::operation::delete_function_event_invoke_config::builders::DeleteFunctionEventInvokeConfigOutputBuilder {
   62     90   
        crate::operation::delete_function_event_invoke_config::builders::DeleteFunctionEventInvokeConfigOutputBuilder::default()
   63     91   
    }

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/delete_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 `DeleteFunctionUrlConfig`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteFunctionUrlConfig;
    6      6   
impl DeleteFunctionUrlConfig {
    7      7   
    /// Creates a new `DeleteFunctionUrlConfig`
    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::delete_function_url_config::DeleteFunctionUrlConfigInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          15  +
        crate::operation::delete_function_url_config::DeleteFunctionUrlConfigOutput::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::delete_function_url_config::DeleteFunctionUrlConfigInput,
   14     19   
    ) -> ::std::result::Result<
   15     20   
        crate::operation::delete_function_url_config::DeleteFunctionUrlConfigOutput,
   16     21   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     22   
            crate::operation::delete_function_url_config::DeleteFunctionUrlConfigError,
   18     23   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     24   
        >,
   20     25   
    > {
@@ -118,123 +260,396 @@
  138    143   
                crate::operation::delete_function_url_config::DeleteFunctionUrlConfigError,
  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 DeleteFunctionUrlConfigResponseDeserializer;
  147    152   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteFunctionUrlConfigResponseDeserializer {
  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 != 204 || force_error {
  159         -
            crate::protocol_serde::shape_delete_function_url_config::de_delete_function_url_config_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_delete_function_url_config::de_delete_function_url_config_http_response(status, headers, body)
         162  +
        if !success && status != 204 || 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::delete_function_url_config::DeleteFunctionUrlConfigError::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  +
                "ResourceConflictException" => {
         187  +
                    crate::operation::delete_function_url_config::DeleteFunctionUrlConfigError::ResourceConflictException({
         188  +
                        let mut tmp = match protocol
         189  +
                            .deserialize_response(response, crate::types::error::ResourceConflictException::SCHEMA, _cfg)
         190  +
                            .and_then(|mut deser| {
         191  +
                                crate::types::error::ResourceConflictException::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  +
                "ResourceNotFoundException" => {
         213  +
                    crate::operation::delete_function_url_config::DeleteFunctionUrlConfigError::ResourceNotFoundException({
         214  +
                        let mut tmp = match protocol
         215  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         216  +
                            .and_then(|mut deser| {
         217  +
                                crate::types::error::ResourceNotFoundException::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  +
                "ServiceException" => crate::operation::delete_function_url_config::DeleteFunctionUrlConfigError::ServiceException({
         239  +
                    let mut tmp = match protocol
         240  +
                        .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         241  +
                        .and_then(|mut deser| {
         242  +
                            crate::types::error::ServiceException::deserialize_with_response(
         243  +
                                &mut *deser,
         244  +
                                response.headers(),
         245  +
                                response.status().into(),
         246  +
                                body,
         247  +
                            )
         248  +
                        }) {
         249  +
                        ::std::result::Result::Ok(val) => val,
         250  +
                        ::std::result::Result::Err(e) => {
         251  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         252  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         253  +
                            ))
         254  +
                        }
         255  +
                    };
         256  +
                    tmp.meta = generic;
         257  +
                    if tmp.message.is_none() {
         258  +
                        tmp.message = _error_message;
         259  +
                    }
         260  +
                    tmp
         261  +
                }),
         262  +
                "TooManyRequestsException" => crate::operation::delete_function_url_config::DeleteFunctionUrlConfigError::TooManyRequestsException({
         263  +
                    let mut tmp = match protocol
         264  +
                        .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         265  +
                        .and_then(|mut deser| {
         266  +
                            crate::types::error::TooManyRequestsException::deserialize_with_response(
         267  +
                                &mut *deser,
         268  +
                                response.headers(),
         269  +
                                response.status().into(),
         270  +
                                body,
         271  +
                            )
         272  +
                        }) {
         273  +
                        ::std::result::Result::Ok(val) => val,
         274  +
                        ::std::result::Result::Err(e) => {
         275  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         276  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         277  +
                            ))
         278  +
                        }
         279  +
                    };
         280  +
                    tmp.meta = generic;
         281  +
                    if tmp.message.is_none() {
         282  +
                        tmp.message = _error_message;
         283  +
                    }
         284  +
                    tmp
         285  +
                }),
         286  +
                _ => crate::operation::delete_function_url_config::DeleteFunctionUrlConfigError::generic(generic),
  162    287   
            };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         288  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         289  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         290  +
            ))
         291  +
        } else {
         292  +
            let protocol = _cfg
         293  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         294  +
                .expect("a SharedClientProtocol is required");
         295  +
            let mut deser = protocol
         296  +
                .deserialize_response(response, DeleteFunctionUrlConfig::OUTPUT_SCHEMA, _cfg)
         297  +
                .map_err(|e| {
         298  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         299  +
                })?;
         300  +
            let body = response.body().bytes().expect("body loaded");
         301  +
            let output = crate::operation::delete_function_url_config::DeleteFunctionUrlConfigOutput::deserialize_with_response(
         302  +
                &mut *deser,
         303  +
                response.headers(),
         304  +
                response.status().into(),
         305  +
                body,
         306  +
            )
         307  +
            .map_err(|e| {
         308  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         309  +
            })?;
         310  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         311  +
        }
  164    312   
    }
  165    313   
}
  166    314   
#[derive(Debug)]
  167    315   
struct DeleteFunctionUrlConfigRequestSerializer;
  168    316   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteFunctionUrlConfigRequestSerializer {
  169    317   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    318   
    fn serialize_input(
  171    319   
        &self,
  172    320   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    321   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    322   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    323   
        let input = input
  176    324   
            .downcast::<crate::operation::delete_function_url_config::DeleteFunctionUrlConfigInput>()
  177    325   
            .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::delete_function_url_config::DeleteFunctionUrlConfigInput,
  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::delete_function_url_config::DeleteFunctionUrlConfigInput,
  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 {
         326  +
        let protocol = _cfg
         327  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         328  +
            .expect("a SharedClientProtocol is required");
         329  +
        if protocol.supports_http_bindings() {
         330  +
            let mut request = protocol
         331  +
                .serialize_body(&input, DeleteFunctionUrlConfig::INPUT_SCHEMA, "", _cfg)
         332  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  209    333   
            {
  210         -
                        query.push_kv("Qualifier", &::aws_smithy_http::query::fmt_string(inner_2));
  211         -
                    }
         334  +
                let mut uri = "/2021-10-31/functions/{FunctionName}/url".to_string();
         335  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         336  +
                if let Some(ref val) = input.function_name {
         337  +
                    uri = uri.replace("{FunctionName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         338  +
                }
         339  +
                if let Some(ref val) = input.qualifier {
         340  +
                    query_params.push(("Qualifier".to_string(), val.to_string()));
         341  +
                }
         342  +
                if !query_params.is_empty() {
         343  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         344  +
                    let pairs: Vec<String> = query_params
         345  +
                        .iter()
         346  +
                        .map(|(k, v)| {
         347  +
                            format!(
         348  +
                                "{}={}",
         349  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         350  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         351  +
                            )
         352  +
                        })
         353  +
                        .collect();
         354  +
                    uri.push_str(&pairs.join("&"));
  212    355   
                }
  213         -
                ::std::result::Result::Ok(())
         356  +
                request.set_uri(uri.as_str()).expect("valid URI");
  214    357   
            }
  215         -
            #[allow(clippy::unnecessary_wraps)]
  216         -
            fn update_http_builder(
  217         -
                input: &crate::operation::delete_function_url_config::DeleteFunctionUrlConfigInput,
  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("DELETE").uri(uri))
  224         -
            }
  225         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  226         -
            builder
  227         -
        };
  228         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
  229    358   
  230         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         359  +
            return ::std::result::Result::Ok(request);
         360  +
        } else {
         361  +
            let mut request = protocol
         362  +
                .serialize_request(&input, DeleteFunctionUrlConfig::INPUT_SCHEMA, "", _cfg)
         363  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         364  +
         365  +
            return ::std::result::Result::Ok(request);
         366  +
        }
  231    367   
    }
  232    368   
}
  233    369   
#[derive(Debug)]
  234    370   
struct DeleteFunctionUrlConfigEndpointParamsInterceptor;
  235    371   
  236    372   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteFunctionUrlConfigEndpointParamsInterceptor {
  237    373   
    fn name(&self) -> &'static str {
  238    374   
        "DeleteFunctionUrlConfigEndpointParamsInterceptor"
  239    375   
    }
  240    376   

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

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

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

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct DeleteFunctionUrlConfigOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static DELETEFUNCTIONURLCONFIGOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.lambda.synthetic#DeleteFunctionUrlConfigOutput",
   10     10   
    "com.amazonaws.lambda.synthetic",
   11     11   
    "DeleteFunctionUrlConfigOutput",
   12     12   
);
   13         -
static DELETEFUNCTIONURLCONFIGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(DELETEFUNCTIONURLCONFIGOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static DELETEFUNCTIONURLCONFIGOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
          20  +
static DELETEFUNCTIONURLCONFIGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    DELETEFUNCTIONURLCONFIGOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&DELETEFUNCTIONURLCONFIGOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl DeleteFunctionUrlConfigOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEFUNCTIONURLCONFIGOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteFunctionUrlConfigOutput {
   20     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   21     31   
    fn serialize_members(
   22     32   
        &self,
   23     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   24     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   25     35   
        Ok(())
   26     36   
    }
   27     37   
}
   28     38   
impl DeleteFunctionUrlConfigOutput {
   29     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   30         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   31         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   32     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   33     43   
        #[allow(unused_variables, unused_mut)]
   34     44   
        let mut builder = Self::builder();
   35     45   
        #[allow(
   36     46   
            unused_variables,
   37     47   
            unreachable_code,
   38     48   
            clippy::single_match,
   39     49   
            clippy::match_single_binding,
   40     50   
            clippy::diverging_sub_expression
   41     51   
        )]
   42         -
        deserializer.read_struct(&DELETEFUNCTIONURLCONFIGOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&DELETEFUNCTIONURLCONFIGOUTPUT_SCHEMA, &mut |member, deser| {
   43     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   44     57   
                _ => {}
   45     58   
            }
   46     59   
            Ok(())
   47     60   
        })?;
   48     61   
        Ok(builder.build())
   49     62   
    }
   50     63   
}
          64  +
impl DeleteFunctionUrlConfigOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   51     82   
impl ::aws_types::request_id::RequestId for DeleteFunctionUrlConfigOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl DeleteFunctionUrlConfigOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`DeleteFunctionUrlConfigOutput`](crate::operation::delete_function_url_config::DeleteFunctionUrlConfigOutput).
   58     89   
    pub fn builder() -> crate::operation::delete_function_url_config::builders::DeleteFunctionUrlConfigOutputBuilder {
   59     90   
        crate::operation::delete_function_url_config::builders::DeleteFunctionUrlConfigOutputBuilder::default()
   60     91   
    }