AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_vpc_endpoint_service_configuration/_create_vpc_endpoint_service_configuration_output.rs

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_vpc_peering_connection/_create_vpc_peering_connection_input.rs

@@ -33,33 +254,263 @@
   53     53   
    "com.amazonaws.ec2.synthetic",
   54     54   
    "CreateVpcPeeringConnectionInput",
   55     55   
);
   56     56   
static CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_PEER_REGION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   57     57   
    ::aws_smithy_schema::ShapeId::from_static(
   58     58   
        "com.amazonaws.ec2.synthetic#CreateVpcPeeringConnectionInput$PeerRegion",
   59     59   
        "com.amazonaws.ec2.synthetic",
   60     60   
        "CreateVpcPeeringConnectionInput",
   61     61   
    ),
   62     62   
    ::aws_smithy_schema::ShapeType::String,
   63         -
    "peer_region",
          63  +
    "PeerRegion",
   64     64   
    0,
   65     65   
);
   66     66   
static CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_TAG_SPECIFICATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   67     67   
    ::aws_smithy_schema::ShapeId::from_static(
   68     68   
        "com.amazonaws.ec2.synthetic#CreateVpcPeeringConnectionInput$TagSpecifications",
   69     69   
        "com.amazonaws.ec2.synthetic",
   70     70   
        "CreateVpcPeeringConnectionInput",
   71     71   
    ),
   72     72   
    ::aws_smithy_schema::ShapeType::List,
   73         -
    "tag_specifications",
          73  +
    "TagSpecifications",
   74     74   
    1,
   75     75   
)
   76     76   
.with_xml_name("TagSpecification");
   77     77   
static CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.ec2.synthetic#CreateVpcPeeringConnectionInput$DryRun",
   80     80   
        "com.amazonaws.ec2.synthetic",
   81     81   
        "CreateVpcPeeringConnectionInput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::Boolean,
   84         -
    "dry_run",
          84  +
    "DryRun",
   85     85   
    2,
   86     86   
)
   87     87   
.with_xml_name("dryRun");
   88     88   
static CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_VPC_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   89     89   
    ::aws_smithy_schema::ShapeId::from_static(
   90     90   
        "com.amazonaws.ec2.synthetic#CreateVpcPeeringConnectionInput$VpcId",
   91     91   
        "com.amazonaws.ec2.synthetic",
   92     92   
        "CreateVpcPeeringConnectionInput",
   93     93   
    ),
   94     94   
    ::aws_smithy_schema::ShapeType::String,
   95         -
    "vpc_id",
          95  +
    "VpcId",
   96     96   
    3,
   97     97   
)
   98     98   
.with_xml_name("vpcId");
   99     99   
static CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_PEER_VPC_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  100    100   
    ::aws_smithy_schema::ShapeId::from_static(
  101    101   
        "com.amazonaws.ec2.synthetic#CreateVpcPeeringConnectionInput$PeerVpcId",
  102    102   
        "com.amazonaws.ec2.synthetic",
  103    103   
        "CreateVpcPeeringConnectionInput",
  104    104   
    ),
  105    105   
    ::aws_smithy_schema::ShapeType::String,
  106         -
    "peer_vpc_id",
         106  +
    "PeerVpcId",
  107    107   
    4,
  108    108   
)
  109    109   
.with_xml_name("peerVpcId");
  110    110   
static CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_PEER_OWNER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  111    111   
    ::aws_smithy_schema::ShapeId::from_static(
  112    112   
        "com.amazonaws.ec2.synthetic#CreateVpcPeeringConnectionInput$PeerOwnerId",
  113    113   
        "com.amazonaws.ec2.synthetic",
  114    114   
        "CreateVpcPeeringConnectionInput",
  115    115   
    ),
  116    116   
    ::aws_smithy_schema::ShapeType::String,
  117         -
    "peer_owner_id",
         117  +
    "PeerOwnerId",
  118    118   
    5,
  119    119   
)
  120    120   
.with_xml_name("peerOwnerId");
  121    121   
static CREATEVPCPEERINGCONNECTIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  122    122   
    CREATEVPCPEERINGCONNECTIONINPUT_SCHEMA_ID,
  123    123   
    ::aws_smithy_schema::ShapeType::Structure,
  124    124   
    &[
  125    125   
        &CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_PEER_REGION,
  126    126   
        &CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_TAG_SPECIFICATIONS,
  127    127   
        &CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_DRY_RUN,
  128    128   
        &CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_VPC_ID,
  129    129   
        &CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_PEER_VPC_ID,
  130    130   
        &CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_PEER_OWNER_ID,
  131    131   
    ],
  132    132   
);
  133    133   
impl CreateVpcPeeringConnectionInput {
  134    134   
    /// The schema for this shape.
  135    135   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEVPCPEERINGCONNECTIONINPUT_SCHEMA;
  136    136   
}
  137    137   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateVpcPeeringConnectionInput {
  138    138   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  139    139   
    fn serialize_members(
  140    140   
        &self,
  141    141   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  142    142   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  143    143   
        if let Some(ref val) = self.peer_region {
  144    144   
            ser.write_string(&CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_PEER_REGION, val)?;
  145    145   
        }
  146    146   
        if let Some(ref val) = self.tag_specifications {
  147    147   
            ser.write_list(
  148    148   
                &CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_TAG_SPECIFICATIONS,
  149    149   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  150    150   
                    for item in val {
  151    151   
                        ser.write_struct(crate::types::TagSpecification::SCHEMA, item)?;
  152    152   
                    }
  153    153   
                    Ok(())
  154    154   
                },
  155    155   
            )?;
  156    156   
        }
  157    157   
        if let Some(ref val) = self.dry_run {
  158    158   
            ser.write_boolean(&CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_DRY_RUN, *val)?;
  159    159   
        }
  160    160   
        if let Some(ref val) = self.vpc_id {
  161    161   
            ser.write_string(&CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_VPC_ID, val)?;
  162    162   
        }
  163    163   
        if let Some(ref val) = self.peer_vpc_id {
  164    164   
            ser.write_string(&CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_PEER_VPC_ID, val)?;
  165    165   
        }
  166    166   
        if let Some(ref val) = self.peer_owner_id {
  167    167   
            ser.write_string(&CREATEVPCPEERINGCONNECTIONINPUT_MEMBER_PEER_OWNER_ID, val)?;
  168    168   
        }
  169    169   
        Ok(())
  170    170   
    }
  171    171   
}
  172    172   
impl CreateVpcPeeringConnectionInput {
  173    173   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  174         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  175         -
        deserializer: &mut D,
         174  +
    pub fn deserialize(
         175  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  176    176   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  177    177   
        #[allow(unused_variables, unused_mut)]
  178    178   
        let mut builder = Self::builder();
  179    179   
        #[allow(
  180    180   
            unused_variables,
  181    181   
            unreachable_code,
  182    182   
            clippy::single_match,
  183    183   
            clippy::match_single_binding,
  184    184   
            clippy::diverging_sub_expression
  185    185   
        )]
  186         -
        deserializer.read_struct(&CREATEVPCPEERINGCONNECTIONINPUT_SCHEMA, (), |_, member, deser| {
         186  +
        deserializer.read_struct(&CREATEVPCPEERINGCONNECTIONINPUT_SCHEMA, &mut |member, deser| {
  187    187   
            match member.member_index() {
  188    188   
                Some(0) => {
  189    189   
                    builder.peer_region = Some(deser.read_string(member)?);
  190    190   
                }
  191    191   
                Some(1) => {
  192    192   
                    builder.tag_specifications = Some({
  193         -
                        let container = if let Some(cap) = deser.container_size() {
  194         -
                            Vec::with_capacity(cap)
  195         -
                        } else {
  196         -
                            Vec::new()
  197         -
                        };
  198         -
                        deser.read_list(member, container, |mut list, deser| {
  199         -
                            list.push(crate::types::TagSpecification::deserialize(deser)?);
  200         -
                            Ok(list)
  201         -
                        })?
         193  +
                        let mut container = Vec::new();
         194  +
                        deser.read_list(member, &mut |deser| {
         195  +
                            container.push(crate::types::TagSpecification::deserialize(deser)?);
         196  +
                            Ok(())
         197  +
                        })?;
         198  +
                        container
  202    199   
                    });
  203    200   
                }
  204    201   
                Some(2) => {
  205    202   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  206    203   
                }
  207    204   
                Some(3) => {
  208    205   
                    builder.vpc_id = Some(deser.read_string(member)?);
  209    206   
                }
  210    207   
                Some(4) => {
  211    208   
                    builder.peer_vpc_id = Some(deser.read_string(member)?);
  212    209   
                }
  213    210   
                Some(5) => {
  214    211   
                    builder.peer_owner_id = Some(deser.read_string(member)?);
  215    212   
                }
  216    213   
                _ => {}
  217    214   
            }
  218    215   
            Ok(())
  219    216   
        })?;
         217  +
        builder.vpc_id = builder.vpc_id.or(Some(String::new()));
  220    218   
        builder
  221    219   
            .build()
  222    220   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  223    221   
    }
  224    222   
}
         223  +
impl CreateVpcPeeringConnectionInput {
         224  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         225  +
    pub fn deserialize_with_response(
         226  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         227  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         228  +
        _status: u16,
         229  +
        _body: &[u8],
         230  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         231  +
        Self::deserialize(deserializer)
         232  +
    }
         233  +
}
  225    234   
impl CreateVpcPeeringConnectionInput {
  226    235   
    /// Creates a new builder-style object to manufacture [`CreateVpcPeeringConnectionInput`](crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionInput).
  227    236   
    pub fn builder() -> crate::operation::create_vpc_peering_connection::builders::CreateVpcPeeringConnectionInputBuilder {
  228    237   
        crate::operation::create_vpc_peering_connection::builders::CreateVpcPeeringConnectionInputBuilder::default()
  229    238   
    }
  230    239   
}
  231    240   
  232    241   
/// A builder for [`CreateVpcPeeringConnectionInput`](crate::operation::create_vpc_peering_connection::CreateVpcPeeringConnectionInput).
  233    242   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  234    243   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_vpc_peering_connection/_create_vpc_peering_connection_output.rs

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "CreateVpcPeeringConnectionOutput",
   20     20   
);
   21     21   
static CREATEVPCPEERINGCONNECTIONOUTPUT_MEMBER_VPC_PEERING_CONNECTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ec2.synthetic#CreateVpcPeeringConnectionOutput$VpcPeeringConnection",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "CreateVpcPeeringConnectionOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "vpc_peering_connection",
          28  +
    "VpcPeeringConnection",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_name("vpcPeeringConnection");
          32  +
static CREATEVPCPEERINGCONNECTIONOUTPUT_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 CREATEVPCPEERINGCONNECTIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    CREATEVPCPEERINGCONNECTIONOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&CREATEVPCPEERINGCONNECTIONOUTPUT_MEMBER_VPC_PEERING_CONNECTION],
          42  +
    &[
          43  +
        &CREATEVPCPEERINGCONNECTIONOUTPUT_MEMBER_VPC_PEERING_CONNECTION,
          44  +
        &CREATEVPCPEERINGCONNECTIONOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl CreateVpcPeeringConnectionOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEVPCPEERINGCONNECTIONOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateVpcPeeringConnectionOutput {
   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.vpc_peering_connection {
   48     58   
            ser.write_struct(&CREATEVPCPEERINGCONNECTIONOUTPUT_MEMBER_VPC_PEERING_CONNECTION, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl CreateVpcPeeringConnectionOutput {
   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(&CREATEVPCPEERINGCONNECTIONOUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&CREATEVPCPEERINGCONNECTIONOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.vpc_peering_connection = Some(crate::types::VpcPeeringConnection::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 CreateVpcPeeringConnectionOutput {
          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(&CREATEVPCPEERINGCONNECTIONOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.vpc_peering_connection = Some(crate::types::VpcPeeringConnection::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/create_vpn_connection.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 `CreateVpnConnection`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateVpnConnection;
    6      6   
impl CreateVpnConnection {
    7      7   
    /// Creates a new `CreateVpnConnection`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::create_vpn_connection::CreateVpnConnectionInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::create_vpn_connection::CreateVpnConnectionOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::create_vpn_connection::CreateVpnConnectionInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::create_vpn_connection::CreateVpnConnectionOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::create_vpn_connection::CreateVpnConnectionError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -119,123 +181,186 @@
  139    143   
                crate::operation::create_vpn_connection::CreateVpnConnectionError,
  140    144   
            >::new());
  141    145   
  142    146   
        ::std::borrow::Cow::Owned(rcb)
  143    147   
    }
  144    148   
}
  145    149   
  146    150   
#[derive(Debug)]
  147    151   
struct CreateVpnConnectionResponseDeserializer;
  148    152   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateVpnConnectionResponseDeserializer {
  149         -
    fn deserialize_nonstreaming(
         153  +
    fn deserialize_nonstreaming_with_config(
  150    154   
        &self,
  151    155   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         156  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  152    157   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  153    158   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  154    159   
        let headers = response.headers();
  155    160   
        let body = response.body().bytes().expect("body loaded");
  156    161   
        #[allow(unused_mut)]
  157    162   
        let mut force_error = false;
  158    163   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  159    164   
        let parse_result = if !success && status != 200 || force_error {
  160    165   
            crate::protocol_serde::shape_create_vpn_connection::de_create_vpn_connection_http_error(status, headers, body)
  161    166   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_vpn_connection/_create_vpn_connection_input.rs

@@ -42,42 +174,174 @@
   62     62   
    "com.amazonaws.ec2.synthetic",
   63     63   
    "CreateVpnConnectionInput",
   64     64   
);
   65     65   
static CREATEVPNCONNECTIONINPUT_MEMBER_CUSTOMER_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   66     66   
    ::aws_smithy_schema::ShapeId::from_static(
   67     67   
        "com.amazonaws.ec2.synthetic#CreateVpnConnectionInput$CustomerGatewayId",
   68     68   
        "com.amazonaws.ec2.synthetic",
   69     69   
        "CreateVpnConnectionInput",
   70     70   
    ),
   71     71   
    ::aws_smithy_schema::ShapeType::String,
   72         -
    "customer_gateway_id",
          72  +
    "CustomerGatewayId",
   73     73   
    0,
   74     74   
);
   75     75   
static CREATEVPNCONNECTIONINPUT_MEMBER_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   76     76   
    ::aws_smithy_schema::ShapeId::from_static(
   77     77   
        "com.amazonaws.ec2.synthetic#CreateVpnConnectionInput$Type",
   78     78   
        "com.amazonaws.ec2.synthetic",
   79     79   
        "CreateVpnConnectionInput",
   80     80   
    ),
   81     81   
    ::aws_smithy_schema::ShapeType::String,
   82         -
    "r##type",
          82  +
    "Type",
   83     83   
    1,
   84     84   
);
   85     85   
static CREATEVPNCONNECTIONINPUT_MEMBER_VPN_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   86     86   
    ::aws_smithy_schema::ShapeId::from_static(
   87     87   
        "com.amazonaws.ec2.synthetic#CreateVpnConnectionInput$VpnGatewayId",
   88     88   
        "com.amazonaws.ec2.synthetic",
   89     89   
        "CreateVpnConnectionInput",
   90     90   
    ),
   91     91   
    ::aws_smithy_schema::ShapeType::String,
   92         -
    "vpn_gateway_id",
          92  +
    "VpnGatewayId",
   93     93   
    2,
   94     94   
);
   95     95   
static CREATEVPNCONNECTIONINPUT_MEMBER_TRANSIT_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   96     96   
    ::aws_smithy_schema::ShapeId::from_static(
   97     97   
        "com.amazonaws.ec2.synthetic#CreateVpnConnectionInput$TransitGatewayId",
   98     98   
        "com.amazonaws.ec2.synthetic",
   99     99   
        "CreateVpnConnectionInput",
  100    100   
    ),
  101    101   
    ::aws_smithy_schema::ShapeType::String,
  102         -
    "transit_gateway_id",
         102  +
    "TransitGatewayId",
  103    103   
    3,
  104    104   
);
  105    105   
static CREATEVPNCONNECTIONINPUT_MEMBER_TAG_SPECIFICATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  106    106   
    ::aws_smithy_schema::ShapeId::from_static(
  107    107   
        "com.amazonaws.ec2.synthetic#CreateVpnConnectionInput$TagSpecifications",
  108    108   
        "com.amazonaws.ec2.synthetic",
  109    109   
        "CreateVpnConnectionInput",
  110    110   
    ),
  111    111   
    ::aws_smithy_schema::ShapeType::List,
  112         -
    "tag_specifications",
         112  +
    "TagSpecifications",
  113    113   
    4,
  114    114   
)
  115    115   
.with_xml_name("TagSpecification");
  116    116   
static CREATEVPNCONNECTIONINPUT_MEMBER_PRE_SHARED_KEY_STORAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  117    117   
    ::aws_smithy_schema::ShapeId::from_static(
  118    118   
        "com.amazonaws.ec2.synthetic#CreateVpnConnectionInput$PreSharedKeyStorage",
  119    119   
        "com.amazonaws.ec2.synthetic",
  120    120   
        "CreateVpnConnectionInput",
  121    121   
    ),
  122    122   
    ::aws_smithy_schema::ShapeType::String,
  123         -
    "pre_shared_key_storage",
         123  +
    "PreSharedKeyStorage",
  124    124   
    5,
  125    125   
);
  126    126   
static CREATEVPNCONNECTIONINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  127    127   
    ::aws_smithy_schema::ShapeId::from_static(
  128    128   
        "com.amazonaws.ec2.synthetic#CreateVpnConnectionInput$DryRun",
  129    129   
        "com.amazonaws.ec2.synthetic",
  130    130   
        "CreateVpnConnectionInput",
  131    131   
    ),
  132    132   
    ::aws_smithy_schema::ShapeType::Boolean,
  133         -
    "dry_run",
         133  +
    "DryRun",
  134    134   
    6,
  135    135   
)
  136    136   
.with_xml_name("dryRun");
  137    137   
static CREATEVPNCONNECTIONINPUT_MEMBER_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  138    138   
    ::aws_smithy_schema::ShapeId::from_static(
  139    139   
        "com.amazonaws.ec2.synthetic#CreateVpnConnectionInput$Options",
  140    140   
        "com.amazonaws.ec2.synthetic",
  141    141   
        "CreateVpnConnectionInput",
  142    142   
    ),
  143    143   
    ::aws_smithy_schema::ShapeType::Structure,
  144         -
    "options",
         144  +
    "Options",
  145    145   
    7,
  146    146   
)
  147    147   
.with_xml_name("options");
  148    148   
static CREATEVPNCONNECTIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  149    149   
    CREATEVPNCONNECTIONINPUT_SCHEMA_ID,
  150    150   
    ::aws_smithy_schema::ShapeType::Structure,
  151    151   
    &[
  152    152   
        &CREATEVPNCONNECTIONINPUT_MEMBER_CUSTOMER_GATEWAY_ID,
  153    153   
        &CREATEVPNCONNECTIONINPUT_MEMBER_TYPE,
  154    154   
        &CREATEVPNCONNECTIONINPUT_MEMBER_VPN_GATEWAY_ID,
@@ -179,179 +295,305 @@
  199    199   
            ser.write_boolean(&CREATEVPNCONNECTIONINPUT_MEMBER_DRY_RUN, *val)?;
  200    200   
        }
  201    201   
        if let Some(ref val) = self.options {
  202    202   
            ser.write_struct(&CREATEVPNCONNECTIONINPUT_MEMBER_OPTIONS, val)?;
  203    203   
        }
  204    204   
        Ok(())
  205    205   
    }
  206    206   
}
  207    207   
impl CreateVpnConnectionInput {
  208    208   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  209         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  210         -
        deserializer: &mut D,
         209  +
    pub fn deserialize(
         210  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  211    211   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  212    212   
        #[allow(unused_variables, unused_mut)]
  213    213   
        let mut builder = Self::builder();
  214    214   
        #[allow(
  215    215   
            unused_variables,
  216    216   
            unreachable_code,
  217    217   
            clippy::single_match,
  218    218   
            clippy::match_single_binding,
  219    219   
            clippy::diverging_sub_expression
  220    220   
        )]
  221         -
        deserializer.read_struct(&CREATEVPNCONNECTIONINPUT_SCHEMA, (), |_, member, deser| {
         221  +
        deserializer.read_struct(&CREATEVPNCONNECTIONINPUT_SCHEMA, &mut |member, deser| {
  222    222   
            match member.member_index() {
  223    223   
                Some(0) => {
  224    224   
                    builder.customer_gateway_id = Some(deser.read_string(member)?);
  225    225   
                }
  226    226   
                Some(1) => {
  227    227   
                    builder.r#type = Some(deser.read_string(member)?);
  228    228   
                }
  229    229   
                Some(2) => {
  230    230   
                    builder.vpn_gateway_id = Some(deser.read_string(member)?);
  231    231   
                }
  232    232   
                Some(3) => {
  233    233   
                    builder.transit_gateway_id = Some(deser.read_string(member)?);
  234    234   
                }
  235    235   
                Some(4) => {
  236    236   
                    builder.tag_specifications = Some({
  237         -
                        let container = if let Some(cap) = deser.container_size() {
  238         -
                            Vec::with_capacity(cap)
  239         -
                        } else {
  240         -
                            Vec::new()
  241         -
                        };
  242         -
                        deser.read_list(member, container, |mut list, deser| {
  243         -
                            list.push(crate::types::TagSpecification::deserialize(deser)?);
  244         -
                            Ok(list)
  245         -
                        })?
         237  +
                        let mut container = Vec::new();
         238  +
                        deser.read_list(member, &mut |deser| {
         239  +
                            container.push(crate::types::TagSpecification::deserialize(deser)?);
         240  +
                            Ok(())
         241  +
                        })?;
         242  +
                        container
  246    243   
                    });
  247    244   
                }
  248    245   
                Some(5) => {
  249    246   
                    builder.pre_shared_key_storage = Some(deser.read_string(member)?);
  250    247   
                }
  251    248   
                Some(6) => {
  252    249   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  253    250   
                }
  254    251   
                Some(7) => {
  255    252   
                    builder.options = Some(crate::types::VpnConnectionOptionsSpecification::deserialize(deser)?);
  256    253   
                }
  257    254   
                _ => {}
  258    255   
            }
  259    256   
            Ok(())
  260    257   
        })?;
         258  +
        builder.customer_gateway_id = builder.customer_gateway_id.or(Some(String::new()));
         259  +
        builder.r#type = builder.r#type.or(Some(String::new()));
  261    260   
        builder
  262    261   
            .build()
  263    262   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  264    263   
    }
  265    264   
}
         265  +
impl CreateVpnConnectionInput {
         266  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         267  +
    pub fn deserialize_with_response(
         268  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         269  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         270  +
        _status: u16,
         271  +
        _body: &[u8],
         272  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         273  +
        Self::deserialize(deserializer)
         274  +
    }
         275  +
}
  266    276   
impl CreateVpnConnectionInput {
  267    277   
    /// Creates a new builder-style object to manufacture [`CreateVpnConnectionInput`](crate::operation::create_vpn_connection::CreateVpnConnectionInput).
  268    278   
    pub fn builder() -> crate::operation::create_vpn_connection::builders::CreateVpnConnectionInputBuilder {
  269    279   
        crate::operation::create_vpn_connection::builders::CreateVpnConnectionInputBuilder::default()
  270    280   
    }
  271    281   
}
  272    282   
  273    283   
/// A builder for [`CreateVpnConnectionInput`](crate::operation::create_vpn_connection::CreateVpnConnectionInput).
  274    284   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  275    285   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_vpn_connection/_create_vpn_connection_output.rs

@@ -1,1 +98,145 @@
   19     19   
    "com.amazonaws.ec2.synthetic",
   20     20   
    "CreateVpnConnectionOutput",
   21     21   
);
   22     22   
static CREATEVPNCONNECTIONOUTPUT_MEMBER_VPN_CONNECTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   23     23   
    ::aws_smithy_schema::ShapeId::from_static(
   24     24   
        "com.amazonaws.ec2.synthetic#CreateVpnConnectionOutput$VpnConnection",
   25     25   
        "com.amazonaws.ec2.synthetic",
   26     26   
        "CreateVpnConnectionOutput",
   27     27   
    ),
   28     28   
    ::aws_smithy_schema::ShapeType::Structure,
   29         -
    "vpn_connection",
          29  +
    "VpnConnection",
   30     30   
    0,
   31     31   
)
   32     32   
.with_xml_name("vpnConnection");
          33  +
static CREATEVPNCONNECTIONOUTPUT_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 CREATEVPNCONNECTIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   34     41   
    CREATEVPNCONNECTIONOUTPUT_SCHEMA_ID,
   35     42   
    ::aws_smithy_schema::ShapeType::Structure,
   36         -
    &[&CREATEVPNCONNECTIONOUTPUT_MEMBER_VPN_CONNECTION],
          43  +
    &[
          44  +
        &CREATEVPNCONNECTIONOUTPUT_MEMBER_VPN_CONNECTION,
          45  +
        &CREATEVPNCONNECTIONOUTPUT_MEMBER__REQUEST_ID,
          46  +
    ],
   37     47   
);
   38     48   
impl CreateVpnConnectionOutput {
   39     49   
    /// The schema for this shape.
   40     50   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEVPNCONNECTIONOUTPUT_SCHEMA;
   41     51   
}
   42     52   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateVpnConnectionOutput {
   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.vpn_connection {
   49     59   
            ser.write_struct(&CREATEVPNCONNECTIONOUTPUT_MEMBER_VPN_CONNECTION, val)?;
   50     60   
        }
   51     61   
        Ok(())
   52     62   
    }
   53     63   
}
   54     64   
impl CreateVpnConnectionOutput {
   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(&CREATEVPNCONNECTIONOUTPUT_SCHEMA, (), |_, member, deser| {
          78  +
        deserializer.read_struct(&CREATEVPNCONNECTIONOUTPUT_SCHEMA, &mut |member, deser| {
          79  +
            match member.member_index() {
          80  +
                Some(0) => {
          81  +
                    builder.vpn_connection = Some(crate::types::VpnConnection::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 CreateVpnConnectionOutput {
          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(&CREATEVPNCONNECTIONOUTPUT_SCHEMA, &mut |member, deser| {
   69    116   
            match member.member_index() {
   70    117   
                Some(0) => {
   71    118   
                    builder.vpn_connection = Some(crate::types::VpnConnection::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/create_vpn_connection_route.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 `CreateVpnConnectionRoute`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateVpnConnectionRoute;
    6      6   
impl CreateVpnConnectionRoute {
    7      7   
    /// Creates a new `CreateVpnConnectionRoute`
    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::create_vpn_connection_route::CreateVpnConnectionRouteInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteOutput::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::create_vpn_connection_route::CreateVpnConnectionRouteInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::create_vpn_connection_route::CreateVpnConnectionRouteError,
  139    145   
            >::new());
  140    146   
  141    147   
        ::std::borrow::Cow::Owned(rcb)
  142    148   
    }
  143    149   
}
  144    150   
  145    151   
#[derive(Debug)]
  146    152   
struct CreateVpnConnectionRouteResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateVpnConnectionRouteResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         154  +
    fn deserialize_nonstreaming_with_config(
  149    155   
        &self,
  150    156   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         157  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    158   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    159   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153    160   
        let headers = response.headers();
  154    161   
        let body = response.body().bytes().expect("body loaded");
  155    162   
        #[allow(unused_mut)]
  156    163   
        let mut force_error = false;
  157    164   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158    165   
        let parse_result = if !success && status != 200 || force_error {
  159    166   
            crate::protocol_serde::shape_create_vpn_connection_route::de_create_vpn_connection_route_http_error(status, headers, body)
  160    167   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_vpn_connection_route/_create_vpn_connection_route_input.rs

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_vpn_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 `CreateVpnGateway`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateVpnGateway;
    6      6   
impl CreateVpnGateway {
    7      7   
    /// Creates a new `CreateVpnGateway`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::create_vpn_gateway::CreateVpnGatewayInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::create_vpn_gateway::CreateVpnGatewayOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::create_vpn_gateway::CreateVpnGatewayInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::create_vpn_gateway::CreateVpnGatewayOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::create_vpn_gateway::CreateVpnGatewayError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::create_vpn_gateway::CreateVpnGatewayError,
  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 CreateVpnGatewayResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateVpnGatewayResponseDeserializer {
  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_create_vpn_gateway::de_create_vpn_gateway_http_error(status, headers, body)
  157    162   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_vpn_gateway/_create_vpn_gateway_input.rs

@@ -26,26 +227,235 @@
   46     46   
    "com.amazonaws.ec2.synthetic",
   47     47   
    "CreateVpnGatewayInput",
   48     48   
);
   49     49   
static CREATEVPNGATEWAYINPUT_MEMBER_AVAILABILITY_ZONE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   50     50   
    ::aws_smithy_schema::ShapeId::from_static(
   51     51   
        "com.amazonaws.ec2.synthetic#CreateVpnGatewayInput$AvailabilityZone",
   52     52   
        "com.amazonaws.ec2.synthetic",
   53     53   
        "CreateVpnGatewayInput",
   54     54   
    ),
   55     55   
    ::aws_smithy_schema::ShapeType::String,
   56         -
    "availability_zone",
          56  +
    "AvailabilityZone",
   57     57   
    0,
   58     58   
);
   59     59   
static CREATEVPNGATEWAYINPUT_MEMBER_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   60     60   
    ::aws_smithy_schema::ShapeId::from_static(
   61     61   
        "com.amazonaws.ec2.synthetic#CreateVpnGatewayInput$Type",
   62     62   
        "com.amazonaws.ec2.synthetic",
   63     63   
        "CreateVpnGatewayInput",
   64     64   
    ),
   65     65   
    ::aws_smithy_schema::ShapeType::String,
   66         -
    "r##type",
          66  +
    "Type",
   67     67   
    1,
   68     68   
);
   69     69   
static CREATEVPNGATEWAYINPUT_MEMBER_TAG_SPECIFICATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   70     70   
    ::aws_smithy_schema::ShapeId::from_static(
   71     71   
        "com.amazonaws.ec2.synthetic#CreateVpnGatewayInput$TagSpecifications",
   72     72   
        "com.amazonaws.ec2.synthetic",
   73     73   
        "CreateVpnGatewayInput",
   74     74   
    ),
   75     75   
    ::aws_smithy_schema::ShapeType::List,
   76         -
    "tag_specifications",
          76  +
    "TagSpecifications",
   77     77   
    2,
   78     78   
)
   79     79   
.with_xml_name("TagSpecification");
   80     80   
static CREATEVPNGATEWAYINPUT_MEMBER_AMAZON_SIDE_ASN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   81     81   
    ::aws_smithy_schema::ShapeId::from_static(
   82     82   
        "com.amazonaws.ec2.synthetic#CreateVpnGatewayInput$AmazonSideAsn",
   83     83   
        "com.amazonaws.ec2.synthetic",
   84     84   
        "CreateVpnGatewayInput",
   85     85   
    ),
   86     86   
    ::aws_smithy_schema::ShapeType::Long,
   87         -
    "amazon_side_asn",
          87  +
    "AmazonSideAsn",
   88     88   
    3,
   89     89   
);
   90     90   
static CREATEVPNGATEWAYINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static(
   92     92   
        "com.amazonaws.ec2.synthetic#CreateVpnGatewayInput$DryRun",
   93     93   
        "com.amazonaws.ec2.synthetic",
   94     94   
        "CreateVpnGatewayInput",
   95     95   
    ),
   96     96   
    ::aws_smithy_schema::ShapeType::Boolean,
   97         -
    "dry_run",
          97  +
    "DryRun",
   98     98   
    4,
   99     99   
)
  100    100   
.with_xml_name("dryRun");
  101    101   
static CREATEVPNGATEWAYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  102    102   
    CREATEVPNGATEWAYINPUT_SCHEMA_ID,
  103    103   
    ::aws_smithy_schema::ShapeType::Structure,
  104    104   
    &[
  105    105   
        &CREATEVPNGATEWAYINPUT_MEMBER_AVAILABILITY_ZONE,
  106    106   
        &CREATEVPNGATEWAYINPUT_MEMBER_TYPE,
  107    107   
        &CREATEVPNGATEWAYINPUT_MEMBER_TAG_SPECIFICATIONS,
  108    108   
        &CREATEVPNGATEWAYINPUT_MEMBER_AMAZON_SIDE_ASN,
  109    109   
        &CREATEVPNGATEWAYINPUT_MEMBER_DRY_RUN,
  110    110   
    ],
  111    111   
);
  112    112   
impl CreateVpnGatewayInput {
  113    113   
    /// The schema for this shape.
  114    114   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEVPNGATEWAYINPUT_SCHEMA;
  115    115   
}
  116    116   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateVpnGatewayInput {
  117    117   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  118    118   
    fn serialize_members(
  119    119   
        &self,
  120    120   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  121    121   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  122    122   
        if let Some(ref val) = self.availability_zone {
  123    123   
            ser.write_string(&CREATEVPNGATEWAYINPUT_MEMBER_AVAILABILITY_ZONE, val)?;
  124    124   
        }
  125    125   
        if let Some(ref val) = self.r#type {
  126    126   
            ser.write_string(&CREATEVPNGATEWAYINPUT_MEMBER_TYPE, val.as_str())?;
  127    127   
        }
  128    128   
        if let Some(ref val) = self.tag_specifications {
  129    129   
            ser.write_list(
  130    130   
                &CREATEVPNGATEWAYINPUT_MEMBER_TAG_SPECIFICATIONS,
  131    131   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  132    132   
                    for item in val {
  133    133   
                        ser.write_struct(crate::types::TagSpecification::SCHEMA, item)?;
  134    134   
                    }
  135    135   
                    Ok(())
  136    136   
                },
  137    137   
            )?;
  138    138   
        }
  139    139   
        if let Some(ref val) = self.amazon_side_asn {
  140    140   
            ser.write_long(&CREATEVPNGATEWAYINPUT_MEMBER_AMAZON_SIDE_ASN, *val)?;
  141    141   
        }
  142    142   
        if let Some(ref val) = self.dry_run {
  143    143   
            ser.write_boolean(&CREATEVPNGATEWAYINPUT_MEMBER_DRY_RUN, *val)?;
  144    144   
        }
  145    145   
        Ok(())
  146    146   
    }
  147    147   
}
  148    148   
impl CreateVpnGatewayInput {
  149    149   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  150         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  151         -
        deserializer: &mut D,
         150  +
    pub fn deserialize(
         151  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  152    152   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  153    153   
        #[allow(unused_variables, unused_mut)]
  154    154   
        let mut builder = Self::builder();
  155    155   
        #[allow(
  156    156   
            unused_variables,
  157    157   
            unreachable_code,
  158    158   
            clippy::single_match,
  159    159   
            clippy::match_single_binding,
  160    160   
            clippy::diverging_sub_expression
  161    161   
        )]
  162         -
        deserializer.read_struct(&CREATEVPNGATEWAYINPUT_SCHEMA, (), |_, member, deser| {
         162  +
        deserializer.read_struct(&CREATEVPNGATEWAYINPUT_SCHEMA, &mut |member, deser| {
  163    163   
            match member.member_index() {
  164    164   
                Some(0) => {
  165    165   
                    builder.availability_zone = Some(deser.read_string(member)?);
  166    166   
                }
  167    167   
                Some(1) => {
  168    168   
                    builder.r#type = Some(crate::types::GatewayType::from(deser.read_string(member)?.as_str()));
  169    169   
                }
  170    170   
                Some(2) => {
  171    171   
                    builder.tag_specifications = Some({
  172         -
                        let container = if let Some(cap) = deser.container_size() {
  173         -
                            Vec::with_capacity(cap)
  174         -
                        } else {
  175         -
                            Vec::new()
  176         -
                        };
  177         -
                        deser.read_list(member, container, |mut list, deser| {
  178         -
                            list.push(crate::types::TagSpecification::deserialize(deser)?);
  179         -
                            Ok(list)
  180         -
                        })?
         172  +
                        let mut container = Vec::new();
         173  +
                        deser.read_list(member, &mut |deser| {
         174  +
                            container.push(crate::types::TagSpecification::deserialize(deser)?);
         175  +
                            Ok(())
         176  +
                        })?;
         177  +
                        container
  181    178   
                    });
  182    179   
                }
  183    180   
                Some(3) => {
  184    181   
                    builder.amazon_side_asn = Some(deser.read_long(member)?);
  185    182   
                }
  186    183   
                Some(4) => {
  187    184   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  188    185   
                }
  189    186   
                _ => {}
  190    187   
            }
  191    188   
            Ok(())
  192    189   
        })?;
  193    190   
        builder
  194    191   
            .build()
  195    192   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  196    193   
    }
  197    194   
}
         195  +
impl CreateVpnGatewayInput {
         196  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         197  +
    pub fn deserialize_with_response(
         198  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         199  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         200  +
        _status: u16,
         201  +
        _body: &[u8],
         202  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         203  +
        Self::deserialize(deserializer)
         204  +
    }
         205  +
}
  198    206   
impl CreateVpnGatewayInput {
  199    207   
    /// Creates a new builder-style object to manufacture [`CreateVpnGatewayInput`](crate::operation::create_vpn_gateway::CreateVpnGatewayInput).
  200    208   
    pub fn builder() -> crate::operation::create_vpn_gateway::builders::CreateVpnGatewayInputBuilder {
  201    209   
        crate::operation::create_vpn_gateway::builders::CreateVpnGatewayInputBuilder::default()
  202    210   
    }
  203    211   
}
  204    212   
  205    213   
/// A builder for [`CreateVpnGatewayInput`](crate::operation::create_vpn_gateway::CreateVpnGatewayInput).
  206    214   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  207    215   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_vpn_gateway/_create_vpn_gateway_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_carrier_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 `DeleteCarrierGateway`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteCarrierGateway;
    6      6   
impl DeleteCarrierGateway {
    7      7   
    /// Creates a new `DeleteCarrierGateway`
    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_carrier_gateway::DeleteCarrierGatewayInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::delete_carrier_gateway::DeleteCarrierGatewayOutput::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_carrier_gateway::DeleteCarrierGatewayInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::delete_carrier_gateway::DeleteCarrierGatewayOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::delete_carrier_gateway::DeleteCarrierGatewayError,
  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 DeleteCarrierGatewayResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteCarrierGatewayResponseDeserializer {
  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_carrier_gateway::de_delete_carrier_gateway_http_error(status, headers, body)
  160    165   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/delete_carrier_gateway/_delete_carrier_gateway_input.rs

@@ -3,3 +133,145 @@
   23     23   
    "com.amazonaws.ec2.synthetic",
   24     24   
    "DeleteCarrierGatewayInput",
   25     25   
);
   26     26   
static DELETECARRIERGATEWAYINPUT_MEMBER_CARRIER_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   27     27   
    ::aws_smithy_schema::ShapeId::from_static(
   28     28   
        "com.amazonaws.ec2.synthetic#DeleteCarrierGatewayInput$CarrierGatewayId",
   29     29   
        "com.amazonaws.ec2.synthetic",
   30     30   
        "DeleteCarrierGatewayInput",
   31     31   
    ),
   32     32   
    ::aws_smithy_schema::ShapeType::String,
   33         -
    "carrier_gateway_id",
          33  +
    "CarrierGatewayId",
   34     34   
    0,
   35     35   
);
   36     36   
static DELETECARRIERGATEWAYINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static(
   38     38   
        "com.amazonaws.ec2.synthetic#DeleteCarrierGatewayInput$DryRun",
   39     39   
        "com.amazonaws.ec2.synthetic",
   40     40   
        "DeleteCarrierGatewayInput",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::Boolean,
   43         -
    "dry_run",
          43  +
    "DryRun",
   44     44   
    1,
   45     45   
);
   46     46   
static DELETECARRIERGATEWAYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   47     47   
    DELETECARRIERGATEWAYINPUT_SCHEMA_ID,
   48     48   
    ::aws_smithy_schema::ShapeType::Structure,
   49     49   
    &[
   50     50   
        &DELETECARRIERGATEWAYINPUT_MEMBER_CARRIER_GATEWAY_ID,
   51     51   
        &DELETECARRIERGATEWAYINPUT_MEMBER_DRY_RUN,
   52     52   
    ],
   53     53   
);
   54     54   
impl DeleteCarrierGatewayInput {
   55     55   
    /// The schema for this shape.
   56     56   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETECARRIERGATEWAYINPUT_SCHEMA;
   57     57   
}
   58     58   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteCarrierGatewayInput {
   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.carrier_gateway_id {
   65     65   
            ser.write_string(&DELETECARRIERGATEWAYINPUT_MEMBER_CARRIER_GATEWAY_ID, val)?;
   66     66   
        }
   67     67   
        if let Some(ref val) = self.dry_run {
   68     68   
            ser.write_boolean(&DELETECARRIERGATEWAYINPUT_MEMBER_DRY_RUN, *val)?;
   69     69   
        }
   70     70   
        Ok(())
   71     71   
    }
   72     72   
}
   73     73   
impl DeleteCarrierGatewayInput {
   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(&DELETECARRIERGATEWAYINPUT_SCHEMA, (), |_, member, deser| {
          87  +
        deserializer.read_struct(&DELETECARRIERGATEWAYINPUT_SCHEMA, &mut |member, deser| {
   88     88   
            match member.member_index() {
   89     89   
                Some(0) => {
   90     90   
                    builder.carrier_gateway_id = Some(deser.read_string(member)?);
   91     91   
                }
   92     92   
                Some(1) => {
   93     93   
                    builder.dry_run = Some(deser.read_boolean(member)?);
   94     94   
                }
   95     95   
                _ => {}
   96     96   
            }
   97     97   
            Ok(())
   98     98   
        })?;
          99  +
        builder.carrier_gateway_id = builder.carrier_gateway_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 DeleteCarrierGatewayInput {
         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 DeleteCarrierGatewayInput {
  105    117   
    /// Creates a new builder-style object to manufacture [`DeleteCarrierGatewayInput`](crate::operation::delete_carrier_gateway::DeleteCarrierGatewayInput).
  106    118   
    pub fn builder() -> crate::operation::delete_carrier_gateway::builders::DeleteCarrierGatewayInputBuilder {
  107    119   
        crate::operation::delete_carrier_gateway::builders::DeleteCarrierGatewayInputBuilder::default()
  108    120   
    }
  109    121   
}
  110    122   
  111    123   
/// A builder for [`DeleteCarrierGatewayInput`](crate::operation::delete_carrier_gateway::DeleteCarrierGatewayInput).
  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_carrier_gateway/_delete_carrier_gateway_output.rs

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "DeleteCarrierGatewayOutput",
   20     20   
);
   21     21   
static DELETECARRIERGATEWAYOUTPUT_MEMBER_CARRIER_GATEWAY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ec2.synthetic#DeleteCarrierGatewayOutput$CarrierGateway",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "DeleteCarrierGatewayOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "carrier_gateway",
          28  +
    "CarrierGateway",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_name("carrierGateway");
          32  +
static DELETECARRIERGATEWAYOUTPUT_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 DELETECARRIERGATEWAYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    DELETECARRIERGATEWAYOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&DELETECARRIERGATEWAYOUTPUT_MEMBER_CARRIER_GATEWAY],
          42  +
    &[
          43  +
        &DELETECARRIERGATEWAYOUTPUT_MEMBER_CARRIER_GATEWAY,
          44  +
        &DELETECARRIERGATEWAYOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl DeleteCarrierGatewayOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETECARRIERGATEWAYOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteCarrierGatewayOutput {
   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.carrier_gateway {
   48     58   
            ser.write_struct(&DELETECARRIERGATEWAYOUTPUT_MEMBER_CARRIER_GATEWAY, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl DeleteCarrierGatewayOutput {
   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(&DELETECARRIERGATEWAYOUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&DELETECARRIERGATEWAYOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.carrier_gateway = Some(crate::types::CarrierGateway::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 DeleteCarrierGatewayOutput {
          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(&DELETECARRIERGATEWAYOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.carrier_gateway = Some(crate::types::CarrierGateway::deserialize(deser)?);
   71    118   
                }
   72    119   
                _ => {}
   73    120   
            }
   74    121   
            Ok(())
   75    122   
        })?;
   76    123   
        Ok(builder.build())
   77    124   
    }