AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_local_gateway_virtual_interface/_delete_local_gateway_virtual_interface_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_local_gateway_virtual_interface_group.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 `DeleteLocalGatewayVirtualInterfaceGroup`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteLocalGatewayVirtualInterfaceGroup;
    6      6   
impl DeleteLocalGatewayVirtualInterfaceGroup {
    7      7   
    /// Creates a new `DeleteLocalGatewayVirtualInterfaceGroup`
    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_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupOutput::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_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::delete_local_gateway_virtual_interface_group::DeleteLocalGatewayVirtualInterfaceGroupError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct DeleteLocalGatewayVirtualInterfaceGroupResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteLocalGatewayVirtualInterfaceGroupResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159    166   
        let headers = response.headers();
  160    167   
        let body = response.body().bytes().expect("body loaded");
  161    168   
        #[allow(unused_mut)]
  162    169   
        let mut force_error = false;
  163    170   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164    171   
        let parse_result = if !success && status != 200 || force_error {
  165    172   
            crate::protocol_serde::shape_delete_local_gateway_virtual_interface_group::de_delete_local_gateway_virtual_interface_group_http_error(
  166    173   
                status, headers, body,

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_local_gateway_virtual_interface_group/_delete_local_gateway_virtual_interface_group_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_local_gateway_virtual_interface_group/_delete_local_gateway_virtual_interface_group_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_managed_prefix_list.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 `DeleteManagedPrefixList`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteManagedPrefixList;
    6      6   
impl DeleteManagedPrefixList {
    7      7   
    /// Creates a new `DeleteManagedPrefixList`
    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_managed_prefix_list::DeleteManagedPrefixListInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          15  +
        crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListOutput::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_managed_prefix_list::DeleteManagedPrefixListInput,
   14     19   
    ) -> ::std::result::Result<
   15     20   
        crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListOutput,
   16     21   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     22   
            crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError,
   18     23   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     24   
        >,
   20     25   
    > {
@@ -118,123 +180,186 @@
  138    143   
                crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListError,
  139    144   
            >::new());
  140    145   
  141    146   
        ::std::borrow::Cow::Owned(rcb)
  142    147   
    }
  143    148   
}
  144    149   
  145    150   
#[derive(Debug)]
  146    151   
struct DeleteManagedPrefixListResponseDeserializer;
  147    152   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteManagedPrefixListResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         153  +
    fn deserialize_nonstreaming_with_config(
  149    154   
        &self,
  150    155   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         156  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    157   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    158   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153    159   
        let headers = response.headers();
  154    160   
        let body = response.body().bytes().expect("body loaded");
  155    161   
        #[allow(unused_mut)]
  156    162   
        let mut force_error = false;
  157    163   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158    164   
        let parse_result = if !success && status != 200 || force_error {
  159    165   
            crate::protocol_serde::shape_delete_managed_prefix_list::de_delete_managed_prefix_list_http_error(status, headers, body)
  160    166   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_managed_prefix_list/_delete_managed_prefix_list_input.rs

@@ -3,3 +133,145 @@
   23     23   
    "com.amazonaws.ec2.synthetic",
   24     24   
    "DeleteManagedPrefixListInput",
   25     25   
);
   26     26   
static DELETEMANAGEDPREFIXLISTINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   27     27   
    ::aws_smithy_schema::ShapeId::from_static(
   28     28   
        "com.amazonaws.ec2.synthetic#DeleteManagedPrefixListInput$DryRun",
   29     29   
        "com.amazonaws.ec2.synthetic",
   30     30   
        "DeleteManagedPrefixListInput",
   31     31   
    ),
   32     32   
    ::aws_smithy_schema::ShapeType::Boolean,
   33         -
    "dry_run",
          33  +
    "DryRun",
   34     34   
    0,
   35     35   
);
   36     36   
static DELETEMANAGEDPREFIXLISTINPUT_MEMBER_PREFIX_LIST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static(
   38     38   
        "com.amazonaws.ec2.synthetic#DeleteManagedPrefixListInput$PrefixListId",
   39     39   
        "com.amazonaws.ec2.synthetic",
   40     40   
        "DeleteManagedPrefixListInput",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::String,
   43         -
    "prefix_list_id",
          43  +
    "PrefixListId",
   44     44   
    1,
   45     45   
);
   46     46   
static DELETEMANAGEDPREFIXLISTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   47     47   
    DELETEMANAGEDPREFIXLISTINPUT_SCHEMA_ID,
   48     48   
    ::aws_smithy_schema::ShapeType::Structure,
   49     49   
    &[
   50     50   
        &DELETEMANAGEDPREFIXLISTINPUT_MEMBER_DRY_RUN,
   51     51   
        &DELETEMANAGEDPREFIXLISTINPUT_MEMBER_PREFIX_LIST_ID,
   52     52   
    ],
   53     53   
);
   54     54   
impl DeleteManagedPrefixListInput {
   55     55   
    /// The schema for this shape.
   56     56   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEMANAGEDPREFIXLISTINPUT_SCHEMA;
   57     57   
}
   58     58   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteManagedPrefixListInput {
   59     59   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   60     60   
    fn serialize_members(
   61     61   
        &self,
   62     62   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   63     63   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   64     64   
        if let Some(ref val) = self.dry_run {
   65     65   
            ser.write_boolean(&DELETEMANAGEDPREFIXLISTINPUT_MEMBER_DRY_RUN, *val)?;
   66     66   
        }
   67     67   
        if let Some(ref val) = self.prefix_list_id {
   68     68   
            ser.write_string(&DELETEMANAGEDPREFIXLISTINPUT_MEMBER_PREFIX_LIST_ID, val)?;
   69     69   
        }
   70     70   
        Ok(())
   71     71   
    }
   72     72   
}
   73     73   
impl DeleteManagedPrefixListInput {
   74     74   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   75         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   76         -
        deserializer: &mut D,
          75  +
    pub fn deserialize(
          76  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   77     77   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   78     78   
        #[allow(unused_variables, unused_mut)]
   79     79   
        let mut builder = Self::builder();
   80     80   
        #[allow(
   81     81   
            unused_variables,
   82     82   
            unreachable_code,
   83     83   
            clippy::single_match,
   84     84   
            clippy::match_single_binding,
   85     85   
            clippy::diverging_sub_expression
   86     86   
        )]
   87         -
        deserializer.read_struct(&DELETEMANAGEDPREFIXLISTINPUT_SCHEMA, (), |_, member, deser| {
          87  +
        deserializer.read_struct(&DELETEMANAGEDPREFIXLISTINPUT_SCHEMA, &mut |member, deser| {
   88     88   
            match member.member_index() {
   89     89   
                Some(0) => {
   90     90   
                    builder.dry_run = Some(deser.read_boolean(member)?);
   91     91   
                }
   92     92   
                Some(1) => {
   93     93   
                    builder.prefix_list_id = Some(deser.read_string(member)?);
   94     94   
                }
   95     95   
                _ => {}
   96     96   
            }
   97     97   
            Ok(())
   98     98   
        })?;
          99  +
        builder.prefix_list_id = builder.prefix_list_id.or(Some(String::new()));
   99    100   
        builder
  100    101   
            .build()
  101    102   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  102    103   
    }
  103    104   
}
         105  +
impl DeleteManagedPrefixListInput {
         106  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         107  +
    pub fn deserialize_with_response(
         108  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         109  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         110  +
        _status: u16,
         111  +
        _body: &[u8],
         112  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         113  +
        Self::deserialize(deserializer)
         114  +
    }
         115  +
}
  104    116   
impl DeleteManagedPrefixListInput {
  105    117   
    /// Creates a new builder-style object to manufacture [`DeleteManagedPrefixListInput`](crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListInput).
  106    118   
    pub fn builder() -> crate::operation::delete_managed_prefix_list::builders::DeleteManagedPrefixListInputBuilder {
  107    119   
        crate::operation::delete_managed_prefix_list::builders::DeleteManagedPrefixListInputBuilder::default()
  108    120   
    }
  109    121   
}
  110    122   
  111    123   
/// A builder for [`DeleteManagedPrefixListInput`](crate::operation::delete_managed_prefix_list::DeleteManagedPrefixListInput).
  112    124   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  113    125   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_managed_prefix_list/_delete_managed_prefix_list_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_nat_gateway.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 `DeleteNatGateway`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteNatGateway;
    6      6   
impl DeleteNatGateway {
    7      7   
    /// Creates a new `DeleteNatGateway`
    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_nat_gateway::DeleteNatGatewayInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::delete_nat_gateway::DeleteNatGatewayOutput::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_nat_gateway::DeleteNatGatewayInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::delete_nat_gateway::DeleteNatGatewayOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::delete_nat_gateway::DeleteNatGatewayError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::delete_nat_gateway::DeleteNatGatewayError,
  136    140   
            >::new());
  137    141   
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct DeleteNatGatewayResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteNatGatewayResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  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    155   
        let headers = response.headers();
  151    156   
        let body = response.body().bytes().expect("body loaded");
  152    157   
        #[allow(unused_mut)]
  153    158   
        let mut force_error = false;
  154    159   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155    160   
        let parse_result = if !success && status != 200 || force_error {
  156    161   
            crate::protocol_serde::shape_delete_nat_gateway::de_delete_nat_gateway_http_error(status, headers, body)
  157    162   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_nat_gateway/_delete_nat_gateway_input.rs

@@ -3,3 +131,143 @@
   23     23   
    "com.amazonaws.ec2.synthetic",
   24     24   
    "DeleteNatGatewayInput",
   25     25   
);
   26     26   
static DELETENATGATEWAYINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   27     27   
    ::aws_smithy_schema::ShapeId::from_static(
   28     28   
        "com.amazonaws.ec2.synthetic#DeleteNatGatewayInput$DryRun",
   29     29   
        "com.amazonaws.ec2.synthetic",
   30     30   
        "DeleteNatGatewayInput",
   31     31   
    ),
   32     32   
    ::aws_smithy_schema::ShapeType::Boolean,
   33         -
    "dry_run",
          33  +
    "DryRun",
   34     34   
    0,
   35     35   
);
   36     36   
static DELETENATGATEWAYINPUT_MEMBER_NAT_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static(
   38     38   
        "com.amazonaws.ec2.synthetic#DeleteNatGatewayInput$NatGatewayId",
   39     39   
        "com.amazonaws.ec2.synthetic",
   40     40   
        "DeleteNatGatewayInput",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::String,
   43         -
    "nat_gateway_id",
          43  +
    "NatGatewayId",
   44     44   
    1,
   45     45   
)
   46     46   
.with_xml_name("NatGatewayId");
   47     47   
static DELETENATGATEWAYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   48     48   
    DELETENATGATEWAYINPUT_SCHEMA_ID,
   49     49   
    ::aws_smithy_schema::ShapeType::Structure,
   50     50   
    &[&DELETENATGATEWAYINPUT_MEMBER_DRY_RUN, &DELETENATGATEWAYINPUT_MEMBER_NAT_GATEWAY_ID],
   51     51   
);
   52     52   
impl DeleteNatGatewayInput {
   53     53   
    /// The schema for this shape.
   54     54   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETENATGATEWAYINPUT_SCHEMA;
   55     55   
}
   56     56   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteNatGatewayInput {
   57     57   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   58     58   
    fn serialize_members(
   59     59   
        &self,
   60     60   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   61     61   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   62     62   
        if let Some(ref val) = self.dry_run {
   63     63   
            ser.write_boolean(&DELETENATGATEWAYINPUT_MEMBER_DRY_RUN, *val)?;
   64     64   
        }
   65     65   
        if let Some(ref val) = self.nat_gateway_id {
   66     66   
            ser.write_string(&DELETENATGATEWAYINPUT_MEMBER_NAT_GATEWAY_ID, val)?;
   67     67   
        }
   68     68   
        Ok(())
   69     69   
    }
   70     70   
}
   71     71   
impl DeleteNatGatewayInput {
   72     72   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   73         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   74         -
        deserializer: &mut D,
          73  +
    pub fn deserialize(
          74  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   75     75   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   76     76   
        #[allow(unused_variables, unused_mut)]
   77     77   
        let mut builder = Self::builder();
   78     78   
        #[allow(
   79     79   
            unused_variables,
   80     80   
            unreachable_code,
   81     81   
            clippy::single_match,
   82     82   
            clippy::match_single_binding,
   83     83   
            clippy::diverging_sub_expression
   84     84   
        )]
   85         -
        deserializer.read_struct(&DELETENATGATEWAYINPUT_SCHEMA, (), |_, member, deser| {
          85  +
        deserializer.read_struct(&DELETENATGATEWAYINPUT_SCHEMA, &mut |member, deser| {
   86     86   
            match member.member_index() {
   87     87   
                Some(0) => {
   88     88   
                    builder.dry_run = Some(deser.read_boolean(member)?);
   89     89   
                }
   90     90   
                Some(1) => {
   91     91   
                    builder.nat_gateway_id = Some(deser.read_string(member)?);
   92     92   
                }
   93     93   
                _ => {}
   94     94   
            }
   95     95   
            Ok(())
   96     96   
        })?;
          97  +
        builder.nat_gateway_id = builder.nat_gateway_id.or(Some(String::new()));
   97     98   
        builder
   98     99   
            .build()
   99    100   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  100    101   
    }
  101    102   
}
         103  +
impl DeleteNatGatewayInput {
         104  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         105  +
    pub fn deserialize_with_response(
         106  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         107  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         108  +
        _status: u16,
         109  +
        _body: &[u8],
         110  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         111  +
        Self::deserialize(deserializer)
         112  +
    }
         113  +
}
  102    114   
impl DeleteNatGatewayInput {
  103    115   
    /// Creates a new builder-style object to manufacture [`DeleteNatGatewayInput`](crate::operation::delete_nat_gateway::DeleteNatGatewayInput).
  104    116   
    pub fn builder() -> crate::operation::delete_nat_gateway::builders::DeleteNatGatewayInputBuilder {
  105    117   
        crate::operation::delete_nat_gateway::builders::DeleteNatGatewayInputBuilder::default()
  106    118   
    }
  107    119   
}
  108    120   
  109    121   
/// A builder for [`DeleteNatGatewayInput`](crate::operation::delete_nat_gateway::DeleteNatGatewayInput).
  110    122   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  111    123   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_nat_gateway/_delete_nat_gateway_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_network_acl.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 `DeleteNetworkAcl`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteNetworkAcl;
    6      6   
impl DeleteNetworkAcl {
    7      7   
    /// Creates a new `DeleteNetworkAcl`
    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_network_acl::DeleteNetworkAclInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::delete_network_acl::DeleteNetworkAclOutput::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_network_acl::DeleteNetworkAclInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::delete_network_acl::DeleteNetworkAclOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::delete_network_acl::DeleteNetworkAclError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::delete_network_acl::DeleteNetworkAclError,
  136    140   
            >::new());
  137    141   
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct DeleteNetworkAclResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteNetworkAclResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  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    155   
        let headers = response.headers();
  151    156   
        let body = response.body().bytes().expect("body loaded");
  152    157   
        #[allow(unused_mut)]
  153    158   
        let mut force_error = false;
  154    159   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155    160   
        let parse_result = if !success && status != 200 || force_error {
  156    161   
            crate::protocol_serde::shape_delete_network_acl::de_delete_network_acl_http_error(status, headers, body)
  157    162   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_network_acl/_delete_network_acl_input.rs

@@ -3,3 +132,144 @@
   23     23   
    "com.amazonaws.ec2.synthetic",
   24     24   
    "DeleteNetworkAclInput",
   25     25   
);
   26     26   
static DELETENETWORKACLINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   27     27   
    ::aws_smithy_schema::ShapeId::from_static(
   28     28   
        "com.amazonaws.ec2.synthetic#DeleteNetworkAclInput$DryRun",
   29     29   
        "com.amazonaws.ec2.synthetic",
   30     30   
        "DeleteNetworkAclInput",
   31     31   
    ),
   32     32   
    ::aws_smithy_schema::ShapeType::Boolean,
   33         -
    "dry_run",
          33  +
    "DryRun",
   34     34   
    0,
   35     35   
)
   36     36   
.with_xml_name("dryRun");
   37     37   
static DELETENETWORKACLINPUT_MEMBER_NETWORK_ACL_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   38     38   
    ::aws_smithy_schema::ShapeId::from_static(
   39     39   
        "com.amazonaws.ec2.synthetic#DeleteNetworkAclInput$NetworkAclId",
   40     40   
        "com.amazonaws.ec2.synthetic",
   41     41   
        "DeleteNetworkAclInput",
   42     42   
    ),
   43     43   
    ::aws_smithy_schema::ShapeType::String,
   44         -
    "network_acl_id",
          44  +
    "NetworkAclId",
   45     45   
    1,
   46     46   
)
   47     47   
.with_xml_name("networkAclId");
   48     48   
static DELETENETWORKACLINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    DELETENETWORKACLINPUT_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[&DELETENETWORKACLINPUT_MEMBER_DRY_RUN, &DELETENETWORKACLINPUT_MEMBER_NETWORK_ACL_ID],
   52     52   
);
   53     53   
impl DeleteNetworkAclInput {
   54     54   
    /// The schema for this shape.
   55     55   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETENETWORKACLINPUT_SCHEMA;
   56     56   
}
   57     57   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteNetworkAclInput {
   58     58   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   59     59   
    fn serialize_members(
   60     60   
        &self,
   61     61   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   62     62   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   63     63   
        if let Some(ref val) = self.dry_run {
   64     64   
            ser.write_boolean(&DELETENETWORKACLINPUT_MEMBER_DRY_RUN, *val)?;
   65     65   
        }
   66     66   
        if let Some(ref val) = self.network_acl_id {
   67     67   
            ser.write_string(&DELETENETWORKACLINPUT_MEMBER_NETWORK_ACL_ID, val)?;
   68     68   
        }
   69     69   
        Ok(())
   70     70   
    }
   71     71   
}
   72     72   
impl DeleteNetworkAclInput {
   73     73   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   74         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   75         -
        deserializer: &mut D,
          74  +
    pub fn deserialize(
          75  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   76     76   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   77     77   
        #[allow(unused_variables, unused_mut)]
   78     78   
        let mut builder = Self::builder();
   79     79   
        #[allow(
   80     80   
            unused_variables,
   81     81   
            unreachable_code,
   82     82   
            clippy::single_match,
   83     83   
            clippy::match_single_binding,
   84     84   
            clippy::diverging_sub_expression
   85     85   
        )]
   86         -
        deserializer.read_struct(&DELETENETWORKACLINPUT_SCHEMA, (), |_, member, deser| {
          86  +
        deserializer.read_struct(&DELETENETWORKACLINPUT_SCHEMA, &mut |member, deser| {
   87     87   
            match member.member_index() {
   88     88   
                Some(0) => {
   89     89   
                    builder.dry_run = Some(deser.read_boolean(member)?);
   90     90   
                }
   91     91   
                Some(1) => {
   92     92   
                    builder.network_acl_id = Some(deser.read_string(member)?);
   93     93   
                }
   94     94   
                _ => {}
   95     95   
            }
   96     96   
            Ok(())
   97     97   
        })?;
          98  +
        builder.network_acl_id = builder.network_acl_id.or(Some(String::new()));
   98     99   
        builder
   99    100   
            .build()
  100    101   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  101    102   
    }
  102    103   
}
         104  +
impl DeleteNetworkAclInput {
         105  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         106  +
    pub fn deserialize_with_response(
         107  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         108  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         109  +
        _status: u16,
         110  +
        _body: &[u8],
         111  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         112  +
        Self::deserialize(deserializer)
         113  +
    }
         114  +
}
  103    115   
impl DeleteNetworkAclInput {
  104    116   
    /// Creates a new builder-style object to manufacture [`DeleteNetworkAclInput`](crate::operation::delete_network_acl::DeleteNetworkAclInput).
  105    117   
    pub fn builder() -> crate::operation::delete_network_acl::builders::DeleteNetworkAclInputBuilder {
  106    118   
        crate::operation::delete_network_acl::builders::DeleteNetworkAclInputBuilder::default()
  107    119   
    }
  108    120   
}
  109    121   
  110    122   
/// A builder for [`DeleteNetworkAclInput`](crate::operation::delete_network_acl::DeleteNetworkAclInput).
  111    123   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  112    124   
#[non_exhaustive]

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_network_acl_entry.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 `DeleteNetworkAclEntry`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteNetworkAclEntry;
    6      6   
impl DeleteNetworkAclEntry {
    7      7   
    /// Creates a new `DeleteNetworkAclEntry`
    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_network_acl_entry::DeleteNetworkAclEntryInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryOutput::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_network_acl_entry::DeleteNetworkAclEntryInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryError,
  139    143   
            >::new());
  140    144   
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct DeleteNetworkAclEntryResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteNetworkAclEntryResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153    158   
        let headers = response.headers();
  154    159   
        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    163   
        let parse_result = if !success && status != 200 || force_error {
  159    164   
            crate::protocol_serde::shape_delete_network_acl_entry::de_delete_network_acl_entry_http_error(status, headers, body)
  160    165   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_network_acl_entry/_delete_network_acl_entry_input.rs

@@ -15,15 +183,197 @@
   35     35   
    "com.amazonaws.ec2.synthetic",
   36     36   
    "DeleteNetworkAclEntryInput",
   37     37   
);
   38     38   
static DELETENETWORKACLENTRYINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.ec2.synthetic#DeleteNetworkAclEntryInput$DryRun",
   41     41   
        "com.amazonaws.ec2.synthetic",
   42     42   
        "DeleteNetworkAclEntryInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::Boolean,
   45         -
    "dry_run",
          45  +
    "DryRun",
   46     46   
    0,
   47     47   
)
   48     48   
.with_xml_name("dryRun");
   49     49   
static DELETENETWORKACLENTRYINPUT_MEMBER_NETWORK_ACL_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   50     50   
    ::aws_smithy_schema::ShapeId::from_static(
   51     51   
        "com.amazonaws.ec2.synthetic#DeleteNetworkAclEntryInput$NetworkAclId",
   52     52   
        "com.amazonaws.ec2.synthetic",
   53     53   
        "DeleteNetworkAclEntryInput",
   54     54   
    ),
   55     55   
    ::aws_smithy_schema::ShapeType::String,
   56         -
    "network_acl_id",
          56  +
    "NetworkAclId",
   57     57   
    1,
   58     58   
)
   59     59   
.with_xml_name("networkAclId");
   60     60   
static DELETENETWORKACLENTRYINPUT_MEMBER_RULE_NUMBER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   61     61   
    ::aws_smithy_schema::ShapeId::from_static(
   62     62   
        "com.amazonaws.ec2.synthetic#DeleteNetworkAclEntryInput$RuleNumber",
   63     63   
        "com.amazonaws.ec2.synthetic",
   64     64   
        "DeleteNetworkAclEntryInput",
   65     65   
    ),
   66     66   
    ::aws_smithy_schema::ShapeType::Integer,
   67         -
    "rule_number",
          67  +
    "RuleNumber",
   68     68   
    2,
   69     69   
)
   70     70   
.with_xml_name("ruleNumber");
   71     71   
static DELETENETWORKACLENTRYINPUT_MEMBER_EGRESS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   72     72   
    ::aws_smithy_schema::ShapeId::from_static(
   73     73   
        "com.amazonaws.ec2.synthetic#DeleteNetworkAclEntryInput$Egress",
   74     74   
        "com.amazonaws.ec2.synthetic",
   75     75   
        "DeleteNetworkAclEntryInput",
   76     76   
    ),
   77     77   
    ::aws_smithy_schema::ShapeType::Boolean,
   78         -
    "egress",
          78  +
    "Egress",
   79     79   
    3,
   80     80   
)
   81     81   
.with_xml_name("egress");
   82     82   
static DELETENETWORKACLENTRYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   83     83   
    DELETENETWORKACLENTRYINPUT_SCHEMA_ID,
   84     84   
    ::aws_smithy_schema::ShapeType::Structure,
   85     85   
    &[
   86     86   
        &DELETENETWORKACLENTRYINPUT_MEMBER_DRY_RUN,
   87     87   
        &DELETENETWORKACLENTRYINPUT_MEMBER_NETWORK_ACL_ID,
   88     88   
        &DELETENETWORKACLENTRYINPUT_MEMBER_RULE_NUMBER,
   89     89   
        &DELETENETWORKACLENTRYINPUT_MEMBER_EGRESS,
   90     90   
    ],
   91     91   
);
   92     92   
impl DeleteNetworkAclEntryInput {
   93     93   
    /// The schema for this shape.
   94     94   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETENETWORKACLENTRYINPUT_SCHEMA;
   95     95   
}
   96     96   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteNetworkAclEntryInput {
   97     97   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   98     98   
    fn serialize_members(
   99     99   
        &self,
  100    100   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  101    101   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  102    102   
        if let Some(ref val) = self.dry_run {
  103    103   
            ser.write_boolean(&DELETENETWORKACLENTRYINPUT_MEMBER_DRY_RUN, *val)?;
  104    104   
        }
  105    105   
        if let Some(ref val) = self.network_acl_id {
  106    106   
            ser.write_string(&DELETENETWORKACLENTRYINPUT_MEMBER_NETWORK_ACL_ID, val)?;
  107    107   
        }
  108    108   
        if let Some(ref val) = self.rule_number {
  109    109   
            ser.write_integer(&DELETENETWORKACLENTRYINPUT_MEMBER_RULE_NUMBER, *val)?;
  110    110   
        }
  111    111   
        if let Some(ref val) = self.egress {
  112    112   
            ser.write_boolean(&DELETENETWORKACLENTRYINPUT_MEMBER_EGRESS, *val)?;
  113    113   
        }
  114    114   
        Ok(())
  115    115   
    }
  116    116   
}
  117    117   
impl DeleteNetworkAclEntryInput {
  118    118   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  119         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  120         -
        deserializer: &mut D,
         119  +
    pub fn deserialize(
         120  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  121    121   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  122    122   
        #[allow(unused_variables, unused_mut)]
  123    123   
        let mut builder = Self::builder();
  124    124   
        #[allow(
  125    125   
            unused_variables,
  126    126   
            unreachable_code,
  127    127   
            clippy::single_match,
  128    128   
            clippy::match_single_binding,
  129    129   
            clippy::diverging_sub_expression
  130    130   
        )]
  131         -
        deserializer.read_struct(&DELETENETWORKACLENTRYINPUT_SCHEMA, (), |_, member, deser| {
         131  +
        deserializer.read_struct(&DELETENETWORKACLENTRYINPUT_SCHEMA, &mut |member, deser| {
  132    132   
            match member.member_index() {
  133    133   
                Some(0) => {
  134    134   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  135    135   
                }
  136    136   
                Some(1) => {
  137    137   
                    builder.network_acl_id = Some(deser.read_string(member)?);
  138    138   
                }
  139    139   
                Some(2) => {
  140    140   
                    builder.rule_number = Some(deser.read_integer(member)?);
  141    141   
                }
  142    142   
                Some(3) => {
  143    143   
                    builder.egress = Some(deser.read_boolean(member)?);
  144    144   
                }
  145    145   
                _ => {}
  146    146   
            }
  147    147   
            Ok(())
  148    148   
        })?;
         149  +
        builder.network_acl_id = builder.network_acl_id.or(Some(String::new()));
         150  +
        builder.rule_number = builder.rule_number.or(Some(0i32));
         151  +
        builder.egress = builder.egress.or(Some(false));
  149    152   
        builder
  150    153   
            .build()
  151    154   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  152    155   
    }
  153    156   
}
         157  +
impl DeleteNetworkAclEntryInput {
         158  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         159  +
    pub fn deserialize_with_response(
         160  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         161  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         162  +
        _status: u16,
         163  +
        _body: &[u8],
         164  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         165  +
        Self::deserialize(deserializer)
         166  +
    }
         167  +
}
  154    168   
impl DeleteNetworkAclEntryInput {
  155    169   
    /// Creates a new builder-style object to manufacture [`DeleteNetworkAclEntryInput`](crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryInput).
  156    170   
    pub fn builder() -> crate::operation::delete_network_acl_entry::builders::DeleteNetworkAclEntryInputBuilder {
  157    171   
        crate::operation::delete_network_acl_entry::builders::DeleteNetworkAclEntryInputBuilder::default()
  158    172   
    }
  159    173   
}
  160    174   
  161    175   
/// A builder for [`DeleteNetworkAclEntryInput`](crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryInput).
  162    176   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  163    177   
#[non_exhaustive]

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