AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36

Files changed:

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

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

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

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

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/delete_alias/_delete_alias_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 DeleteAliasOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static DELETEALIASOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.lambda.synthetic#DeleteAliasOutput",
   10     10   
    "com.amazonaws.lambda.synthetic",
   11     11   
    "DeleteAliasOutput",
   12     12   
);
   13         -
static DELETEALIASOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(DELETEALIASOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static DELETEALIASOUTPUT_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 DELETEALIASOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    DELETEALIASOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&DELETEALIASOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl DeleteAliasOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEALIASOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteAliasOutput {
   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 DeleteAliasOutput {
   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(&DELETEALIASOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&DELETEALIASOUTPUT_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 DeleteAliasOutput {
          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 DeleteAliasOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl DeleteAliasOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`DeleteAliasOutput`](crate::operation::delete_alias::DeleteAliasOutput).
   58     89   
    pub fn builder() -> crate::operation::delete_alias::builders::DeleteAliasOutputBuilder {
   59     90   
        crate::operation::delete_alias::builders::DeleteAliasOutputBuilder::default()
   60     91   
    }

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

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

@@ -1,1 +109,126 @@
   17     17   
    "com.amazonaws.lambda.synthetic",
   18     18   
    "DeleteCodeSigningConfigInput",
   19     19   
);
   20     20   
static DELETECODESIGNINGCONFIGINPUT_MEMBER_CODE_SIGNING_CONFIG_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   21     21   
    ::aws_smithy_schema::ShapeId::from_static(
   22     22   
        "com.amazonaws.lambda.synthetic#DeleteCodeSigningConfigInput$CodeSigningConfigArn",
   23     23   
        "com.amazonaws.lambda.synthetic",
   24     24   
        "DeleteCodeSigningConfigInput",
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::String,
   27         -
    "code_signing_config_arn",
          27  +
    "CodeSigningConfigArn",
   28     28   
    0,
   29     29   
)
   30     30   
.with_http_label();
   31     31   
static DELETECODESIGNINGCONFIGINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     32   
    DELETECODESIGNINGCONFIGINPUT_SCHEMA_ID,
   33     33   
    ::aws_smithy_schema::ShapeType::Structure,
   34     34   
    &[&DELETECODESIGNINGCONFIGINPUT_MEMBER_CODE_SIGNING_CONFIG_ARN],
   35         -
);
          35  +
)
          36  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          37  +
    "DELETE",
          38  +
    "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}",
          39  +
    Some(204),
          40  +
));
   36     41   
impl DeleteCodeSigningConfigInput {
   37     42   
    /// The schema for this shape.
   38     43   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETECODESIGNINGCONFIGINPUT_SCHEMA;
   39     44   
}
   40     45   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteCodeSigningConfigInput {
   41     46   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   42     47   
    fn serialize_members(
   43     48   
        &self,
   44     49   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   45     50   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   46     51   
        if let Some(ref val) = self.code_signing_config_arn {
   47     52   
            ser.write_string(&DELETECODESIGNINGCONFIGINPUT_MEMBER_CODE_SIGNING_CONFIG_ARN, val)?;
   48     53   
        }
   49     54   
        Ok(())
   50     55   
    }
   51     56   
}
   52     57   
impl DeleteCodeSigningConfigInput {
   53     58   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   54         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   55         -
        deserializer: &mut D,
          59  +
    pub fn deserialize(
          60  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   56     61   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   57     62   
        #[allow(unused_variables, unused_mut)]
   58     63   
        let mut builder = Self::builder();
   59     64   
        #[allow(
   60     65   
            unused_variables,
   61     66   
            unreachable_code,
   62     67   
            clippy::single_match,
   63     68   
            clippy::match_single_binding,
   64     69   
            clippy::diverging_sub_expression
   65     70   
        )]
   66         -
        deserializer.read_struct(&DELETECODESIGNINGCONFIGINPUT_SCHEMA, (), |_, member, deser| {
          71  +
        deserializer.read_struct(&DELETECODESIGNINGCONFIGINPUT_SCHEMA, &mut |member, deser| {
   67     72   
            match member.member_index() {
   68     73   
                Some(0) => {
   69     74   
                    builder.code_signing_config_arn = Some(deser.read_string(member)?);
   70     75   
                }
   71     76   
                _ => {}
   72     77   
            }
   73     78   
            Ok(())
   74     79   
        })?;
          80  +
        builder.code_signing_config_arn = builder.code_signing_config_arn.or(Some(String::new()));
   75     81   
        builder
   76     82   
            .build()
   77     83   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   78     84   
    }
   79     85   
}
          86  +
impl DeleteCodeSigningConfigInput {
          87  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          88  +
    pub fn deserialize_with_response(
          89  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          90  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          91  +
        _status: u16,
          92  +
        _body: &[u8],
          93  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          94  +
        Self::deserialize(deserializer)
          95  +
    }
          96  +
}
   80     97   
impl DeleteCodeSigningConfigInput {
   81     98   
    /// Creates a new builder-style object to manufacture [`DeleteCodeSigningConfigInput`](crate::operation::delete_code_signing_config::DeleteCodeSigningConfigInput).
   82     99   
    pub fn builder() -> crate::operation::delete_code_signing_config::builders::DeleteCodeSigningConfigInputBuilder {
   83    100   
        crate::operation::delete_code_signing_config::builders::DeleteCodeSigningConfigInputBuilder::default()
   84    101   
    }
   85    102   
}
   86    103   
   87    104   
/// A builder for [`DeleteCodeSigningConfigInput`](crate::operation::delete_code_signing_config::DeleteCodeSigningConfigInput).
   88    105   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   89    106   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/delete_code_signing_config/_delete_code_signing_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 DeleteCodeSigningConfigOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static DELETECODESIGNINGCONFIGOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.lambda.synthetic#DeleteCodeSigningConfigOutput",
   10     10   
    "com.amazonaws.lambda.synthetic",
   11     11   
    "DeleteCodeSigningConfigOutput",
   12     12   
);
   13         -
static DELETECODESIGNINGCONFIGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(DELETECODESIGNINGCONFIGOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static DELETECODESIGNINGCONFIGOUTPUT_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 DELETECODESIGNINGCONFIGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    DELETECODESIGNINGCONFIGOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&DELETECODESIGNINGCONFIGOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl DeleteCodeSigningConfigOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETECODESIGNINGCONFIGOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteCodeSigningConfigOutput {
   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 DeleteCodeSigningConfigOutput {
   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(&DELETECODESIGNINGCONFIGOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&DELETECODESIGNINGCONFIGOUTPUT_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 DeleteCodeSigningConfigOutput {
          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 DeleteCodeSigningConfigOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl DeleteCodeSigningConfigOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`DeleteCodeSigningConfigOutput`](crate::operation::delete_code_signing_config::DeleteCodeSigningConfigOutput).
   58     89   
    pub fn builder() -> crate::operation::delete_code_signing_config::builders::DeleteCodeSigningConfigOutputBuilder {
   59     90   
        crate::operation::delete_code_signing_config::builders::DeleteCodeSigningConfigOutputBuilder::default()
   60     91   
    }

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/delete_event_source_mapping.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 `DeleteEventSourceMapping`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteEventSourceMapping;
    6      6   
impl DeleteEventSourceMapping {
    7      7   
    /// Creates a new `DeleteEventSourceMapping`
    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_event_source_mapping::DeleteEventSourceMappingInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::delete_event_source_mapping::DeleteEventSourceMappingOutput::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_event_source_mapping::DeleteEventSourceMappingInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::delete_event_source_mapping::DeleteEventSourceMappingOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::delete_event_source_mapping::DeleteEventSourceMappingError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -121,127 +247,446 @@
  141    147   
        ::std::borrow::Cow::Owned(rcb)
  142    148   
    }
  143    149   
}
  144    150   
  145    151   
#[derive(Debug)]
  146    152   
struct DeleteEventSourceMappingResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteEventSourceMappingResponseDeserializer {
  148    154   
    fn deserialize_nonstreaming(
  149    155   
        &self,
  150    156   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         157  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    158   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    159   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153         -
        let headers = response.headers();
  154         -
        let body = response.body().bytes().expect("body loaded");
  155    160   
        #[allow(unused_mut)]
  156    161   
        let mut force_error = false;
  157    162   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158         -
        let parse_result = if !success && status != 202 || force_error {
  159         -
            crate::protocol_serde::shape_delete_event_source_mapping::de_delete_event_source_mapping_http_error(status, headers, body)
         163  +
        if !success && status != 202 || 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_event_source_mapping::DeleteEventSourceMappingError::unhandled(generic),
         178  +
                        ),
         179  +
                    ))
         180  +
                }
         181  +
            };
         182  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         183  +
            let protocol = _cfg
         184  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         185  +
                .expect("a SharedClientProtocol is required");
         186  +
            let err = match error_code {
         187  +
                "InvalidParameterValueException" => {
         188  +
                    crate::operation::delete_event_source_mapping::DeleteEventSourceMappingError::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_event_source_mapping::DeleteEventSourceMappingError::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  +
                "ResourceInUseException" => crate::operation::delete_event_source_mapping::DeleteEventSourceMappingError::ResourceInUseException({
         240  +
                    let mut tmp = match protocol
         241  +
                        .deserialize_response(response, crate::types::error::ResourceInUseException::SCHEMA, _cfg)
         242  +
                        .and_then(|mut deser| {
         243  +
                            crate::types::error::ResourceInUseException::deserialize_with_response(
         244  +
                                &mut *deser,
         245  +
                                response.headers(),
         246  +
                                response.status().into(),
         247  +
                                body,
         248  +
                            )
         249  +
                        }) {
         250  +
                        ::std::result::Result::Ok(val) => val,
         251  +
                        ::std::result::Result::Err(e) => {
         252  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         253  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         254  +
                            ))
         255  +
                        }
         256  +
                    };
         257  +
                    tmp.meta = generic;
         258  +
                    if tmp.message.is_none() {
         259  +
                        tmp.message = _error_message;
         260  +
                    }
         261  +
                    tmp
         262  +
                }),
         263  +
                "ResourceNotFoundException" => {
         264  +
                    crate::operation::delete_event_source_mapping::DeleteEventSourceMappingError::ResourceNotFoundException({
         265  +
                        let mut tmp = match protocol
         266  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         267  +
                            .and_then(|mut deser| {
         268  +
                                crate::types::error::ResourceNotFoundException::deserialize_with_response(
         269  +
                                    &mut *deser,
         270  +
                                    response.headers(),
         271  +
                                    response.status().into(),
         272  +
                                    body,
         273  +
                                )
         274  +
                            }) {
         275  +
                            ::std::result::Result::Ok(val) => val,
         276  +
                            ::std::result::Result::Err(e) => {
         277  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         278  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         279  +
                                ))
         280  +
                            }
         281  +
                        };
         282  +
                        tmp.meta = generic;
         283  +
                        if tmp.message.is_none() {
         284  +
                            tmp.message = _error_message;
         285  +
                        }
         286  +
                        tmp
         287  +
                    })
         288  +
                }
         289  +
                "ServiceException" => crate::operation::delete_event_source_mapping::DeleteEventSourceMappingError::ServiceException({
         290  +
                    let mut tmp = match protocol
         291  +
                        .deserialize_response(response, crate::types::error::ServiceException::SCHEMA, _cfg)
         292  +
                        .and_then(|mut deser| {
         293  +
                            crate::types::error::ServiceException::deserialize_with_response(
         294  +
                                &mut *deser,
         295  +
                                response.headers(),
         296  +
                                response.status().into(),
         297  +
                                body,
         298  +
                            )
         299  +
                        }) {
         300  +
                        ::std::result::Result::Ok(val) => val,
         301  +
                        ::std::result::Result::Err(e) => {
         302  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         303  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         304  +
                            ))
         305  +
                        }
         306  +
                    };
         307  +
                    tmp.meta = generic;
         308  +
                    if tmp.message.is_none() {
         309  +
                        tmp.message = _error_message;
         310  +
                    }
         311  +
                    tmp
         312  +
                }),
         313  +
                "TooManyRequestsException" => {
         314  +
                    crate::operation::delete_event_source_mapping::DeleteEventSourceMappingError::TooManyRequestsException({
         315  +
                        let mut tmp = match protocol
         316  +
                            .deserialize_response(response, crate::types::error::TooManyRequestsException::SCHEMA, _cfg)
         317  +
                            .and_then(|mut deser| {
         318  +
                                crate::types::error::TooManyRequestsException::deserialize_with_response(
         319  +
                                    &mut *deser,
         320  +
                                    response.headers(),
         321  +
                                    response.status().into(),
         322  +
                                    body,
         323  +
                                )
         324  +
                            }) {
         325  +
                            ::std::result::Result::Ok(val) => val,
         326  +
                            ::std::result::Result::Err(e) => {
         327  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         328  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         329  +
                                ))
         330  +
                            }
         331  +
                        };
         332  +
                        tmp.meta = generic;
         333  +
                        if tmp.message.is_none() {
         334  +
                            tmp.message = _error_message;
         335  +
                        }
         336  +
                        tmp
         337  +
                    })
         338  +
                }
         339  +
                _ => crate::operation::delete_event_source_mapping::DeleteEventSourceMappingError::generic(generic),
         340  +
            };
         341  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         342  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         343  +
            ))
  160    344   
        } else {
  161         -
            crate::protocol_serde::shape_delete_event_source_mapping::de_delete_event_source_mapping_http_response(status, headers, body)
  162         -
        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         345  +
            let protocol = _cfg
         346  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         347  +
                .expect("a SharedClientProtocol is required");
         348  +
            let mut deser = protocol
         349  +
                .deserialize_response(response, DeleteEventSourceMapping::OUTPUT_SCHEMA, _cfg)
         350  +
                .map_err(|e| {
         351  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         352  +
                })?;
         353  +
            let body = response.body().bytes().expect("body loaded");
         354  +
            let output = crate::operation::delete_event_source_mapping::DeleteEventSourceMappingOutput::deserialize_with_response(
         355  +
                &mut *deser,
         356  +
                response.headers(),
         357  +
                response.status().into(),
         358  +
                body,
         359  +
            )
         360  +
            .map_err(|e| {
         361  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         362  +
            })?;
         363  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         364  +
        }
  164    365   
    }
  165    366   
}
  166    367   
#[derive(Debug)]
  167    368   
struct DeleteEventSourceMappingRequestSerializer;
  168    369   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteEventSourceMappingRequestSerializer {
  169    370   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    371   
    fn serialize_input(
  171    372   
        &self,
  172    373   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    374   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    375   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    376   
        let input = input
  176    377   
            .downcast::<crate::operation::delete_event_source_mapping::DeleteEventSourceMappingInput>()
  177    378   
            .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_event_source_mapping::DeleteEventSourceMappingInput,
  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.uuid;
  190         -
                let input_1 = input_1
  191         -
                    .as_ref()
  192         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("uuid", "cannot be empty or unset"))?;
  193         -
                let uuid = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  194         -
                if uuid.is_empty() {
  195         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  196         -
                        "uuid",
  197         -
                        "cannot be empty or unset",
  198         -
                    ));
         379  +
        let protocol = _cfg
         380  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         381  +
            .expect("a SharedClientProtocol is required");
         382  +
        if protocol.supports_http_bindings() {
         383  +
            let mut request = protocol
         384  +
                .serialize_body(&input, DeleteEventSourceMapping::INPUT_SCHEMA, "", _cfg)
         385  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         386  +
            {
         387  +
                let mut uri = "/2015-03-31/event-source-mappings/{UUID}".to_string();
         388  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         389  +
                if let Some(ref val) = input.uuid {
         390  +
                    uri = uri.replace("{UUID}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  199    391   
                }
  200         -
                ::std::write!(output, "/2015-03-31/event-source-mappings/{UUID}", UUID = uuid).expect("formatting should succeed");
  201         -
                ::std::result::Result::Ok(())
  202         -
            }
  203         -
            #[allow(clippy::unnecessary_wraps)]
  204         -
            fn update_http_builder(
  205         -
                input: &crate::operation::delete_event_source_mapping::DeleteEventSourceMappingInput,
  206         -
                builder: ::http_1x::request::Builder,
  207         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  208         -
                let mut uri = ::std::string::String::new();
  209         -
                uri_base(input, &mut uri)?;
  210         -
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
         392  +
                if !query_params.is_empty() {
         393  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         394  +
                    let pairs: Vec<String> = query_params
         395  +
                        .iter()
         396  +
                        .map(|(k, v)| {
         397  +
                            format!(
         398  +
                                "{}={}",
         399  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         400  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         401  +
                            )
         402  +
                        })
         403  +
                        .collect();
         404  +
                    uri.push_str(&pairs.join("&"));
         405  +
                }
         406  +
                request.set_uri(uri.as_str()).expect("valid URI");
  211    407   
            }
  212         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  213         -
            builder
  214         -
        };
  215         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
  216    408   
  217         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         409  +
            return ::std::result::Result::Ok(request);
         410  +
        } else {
         411  +
            let mut request = protocol
         412  +
                .serialize_request(&input, DeleteEventSourceMapping::INPUT_SCHEMA, "", _cfg)
         413  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         414  +
         415  +
            return ::std::result::Result::Ok(request);
         416  +
        }
  218    417   
    }
  219    418   
}
  220    419   
#[derive(Debug)]
  221    420   
struct DeleteEventSourceMappingEndpointParamsInterceptor;
  222    421   
  223    422   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteEventSourceMappingEndpointParamsInterceptor {
  224    423   
    fn name(&self) -> &'static str {
  225    424   
        "DeleteEventSourceMappingEndpointParamsInterceptor"
  226    425   
    }
  227    426