AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_local_gateway_virtual_interface/_create_local_gateway_virtual_interface_input.rs

@@ -48,48 +189,189 @@
   68     68   
    "CreateLocalGatewayVirtualInterfaceInput",
   69     69   
);
   70     70   
static CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP_ID: ::aws_smithy_schema::Schema =
   71     71   
    ::aws_smithy_schema::Schema::new_member(
   72     72   
        ::aws_smithy_schema::ShapeId::from_static(
   73     73   
            "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceInput$LocalGatewayVirtualInterfaceGroupId",
   74     74   
            "com.amazonaws.ec2.synthetic",
   75     75   
            "CreateLocalGatewayVirtualInterfaceInput",
   76     76   
        ),
   77     77   
        ::aws_smithy_schema::ShapeType::String,
   78         -
        "local_gateway_virtual_interface_group_id",
          78  +
        "LocalGatewayVirtualInterfaceGroupId",
   79     79   
        0,
   80     80   
    );
   81     81   
static CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_OUTPOST_LAG_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   82     82   
    ::aws_smithy_schema::ShapeId::from_static(
   83     83   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceInput$OutpostLagId",
   84     84   
        "com.amazonaws.ec2.synthetic",
   85     85   
        "CreateLocalGatewayVirtualInterfaceInput",
   86     86   
    ),
   87     87   
    ::aws_smithy_schema::ShapeType::String,
   88         -
    "outpost_lag_id",
          88  +
    "OutpostLagId",
   89     89   
    1,
   90     90   
);
   91     91   
static CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_VLAN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   92     92   
    ::aws_smithy_schema::ShapeId::from_static(
   93     93   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceInput$Vlan",
   94     94   
        "com.amazonaws.ec2.synthetic",
   95     95   
        "CreateLocalGatewayVirtualInterfaceInput",
   96     96   
    ),
   97     97   
    ::aws_smithy_schema::ShapeType::Integer,
   98         -
    "vlan",
          98  +
    "Vlan",
   99     99   
    2,
  100    100   
);
  101    101   
static CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_LOCAL_ADDRESS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  102    102   
    ::aws_smithy_schema::ShapeId::from_static(
  103    103   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceInput$LocalAddress",
  104    104   
        "com.amazonaws.ec2.synthetic",
  105    105   
        "CreateLocalGatewayVirtualInterfaceInput",
  106    106   
    ),
  107    107   
    ::aws_smithy_schema::ShapeType::String,
  108         -
    "local_address",
         108  +
    "LocalAddress",
  109    109   
    3,
  110    110   
);
  111    111   
static CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_PEER_ADDRESS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  112    112   
    ::aws_smithy_schema::ShapeId::from_static(
  113    113   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceInput$PeerAddress",
  114    114   
        "com.amazonaws.ec2.synthetic",
  115    115   
        "CreateLocalGatewayVirtualInterfaceInput",
  116    116   
    ),
  117    117   
    ::aws_smithy_schema::ShapeType::String,
  118         -
    "peer_address",
         118  +
    "PeerAddress",
  119    119   
    4,
  120    120   
);
  121    121   
static CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_PEER_BGP_ASN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  122    122   
    ::aws_smithy_schema::ShapeId::from_static(
  123    123   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceInput$PeerBgpAsn",
  124    124   
        "com.amazonaws.ec2.synthetic",
  125    125   
        "CreateLocalGatewayVirtualInterfaceInput",
  126    126   
    ),
  127    127   
    ::aws_smithy_schema::ShapeType::Integer,
  128         -
    "peer_bgp_asn",
         128  +
    "PeerBgpAsn",
  129    129   
    5,
  130    130   
);
  131    131   
static CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_TAG_SPECIFICATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  132    132   
    ::aws_smithy_schema::ShapeId::from_static(
  133    133   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceInput$TagSpecifications",
  134    134   
        "com.amazonaws.ec2.synthetic",
  135    135   
        "CreateLocalGatewayVirtualInterfaceInput",
  136    136   
    ),
  137    137   
    ::aws_smithy_schema::ShapeType::List,
  138         -
    "tag_specifications",
         138  +
    "TagSpecifications",
  139    139   
    6,
  140    140   
)
  141    141   
.with_xml_name("TagSpecification");
  142    142   
static CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  143    143   
    ::aws_smithy_schema::ShapeId::from_static(
  144    144   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceInput$DryRun",
  145    145   
        "com.amazonaws.ec2.synthetic",
  146    146   
        "CreateLocalGatewayVirtualInterfaceInput",
  147    147   
    ),
  148    148   
    ::aws_smithy_schema::ShapeType::Boolean,
  149         -
    "dry_run",
         149  +
    "DryRun",
  150    150   
    7,
  151    151   
);
  152    152   
static CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_PEER_BGP_ASN_EXTENDED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  153    153   
    ::aws_smithy_schema::ShapeId::from_static(
  154    154   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceInput$PeerBgpAsnExtended",
  155    155   
        "com.amazonaws.ec2.synthetic",
  156    156   
        "CreateLocalGatewayVirtualInterfaceInput",
  157    157   
    ),
  158    158   
    ::aws_smithy_schema::ShapeType::Long,
  159         -
    "peer_bgp_asn_extended",
         159  +
    "PeerBgpAsnExtended",
  160    160   
    8,
  161    161   
);
  162    162   
static CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  163    163   
    CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_SCHEMA_ID,
  164    164   
    ::aws_smithy_schema::ShapeType::Structure,
  165    165   
    &[
  166    166   
        &CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP_ID,
  167    167   
        &CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_OUTPOST_LAG_ID,
  168    168   
        &CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_VLAN,
  169    169   
        &CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_LOCAL_ADDRESS,
@@ -200,200 +319,332 @@
  220    220   
            ser.write_boolean(&CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_DRY_RUN, *val)?;
  221    221   
        }
  222    222   
        if let Some(ref val) = self.peer_bgp_asn_extended {
  223    223   
            ser.write_long(&CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_MEMBER_PEER_BGP_ASN_EXTENDED, *val)?;
  224    224   
        }
  225    225   
        Ok(())
  226    226   
    }
  227    227   
}
  228    228   
impl CreateLocalGatewayVirtualInterfaceInput {
  229    229   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  230         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  231         -
        deserializer: &mut D,
         230  +
    pub fn deserialize(
         231  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  232    232   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  233    233   
        #[allow(unused_variables, unused_mut)]
  234    234   
        let mut builder = Self::builder();
  235    235   
        #[allow(
  236    236   
            unused_variables,
  237    237   
            unreachable_code,
  238    238   
            clippy::single_match,
  239    239   
            clippy::match_single_binding,
  240    240   
            clippy::diverging_sub_expression
  241    241   
        )]
  242         -
        deserializer.read_struct(&CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_SCHEMA, (), |_, member, deser| {
         242  +
        deserializer.read_struct(&CREATELOCALGATEWAYVIRTUALINTERFACEINPUT_SCHEMA, &mut |member, deser| {
  243    243   
            match member.member_index() {
  244    244   
                Some(0) => {
  245    245   
                    builder.local_gateway_virtual_interface_group_id = Some(deser.read_string(member)?);
  246    246   
                }
  247    247   
                Some(1) => {
  248    248   
                    builder.outpost_lag_id = Some(deser.read_string(member)?);
  249    249   
                }
  250    250   
                Some(2) => {
  251    251   
                    builder.vlan = Some(deser.read_integer(member)?);
  252    252   
                }
  253    253   
                Some(3) => {
  254    254   
                    builder.local_address = Some(deser.read_string(member)?);
  255    255   
                }
  256    256   
                Some(4) => {
  257    257   
                    builder.peer_address = Some(deser.read_string(member)?);
  258    258   
                }
  259    259   
                Some(5) => {
  260    260   
                    builder.peer_bgp_asn = Some(deser.read_integer(member)?);
  261    261   
                }
  262    262   
                Some(6) => {
  263    263   
                    builder.tag_specifications = Some({
  264         -
                        let container = if let Some(cap) = deser.container_size() {
  265         -
                            Vec::with_capacity(cap)
  266         -
                        } else {
  267         -
                            Vec::new()
  268         -
                        };
  269         -
                        deser.read_list(member, container, |mut list, deser| {
  270         -
                            list.push(crate::types::TagSpecification::deserialize(deser)?);
  271         -
                            Ok(list)
  272         -
                        })?
         264  +
                        let mut container = Vec::new();
         265  +
                        deser.read_list(member, &mut |deser| {
         266  +
                            container.push(crate::types::TagSpecification::deserialize(deser)?);
         267  +
                            Ok(())
         268  +
                        })?;
         269  +
                        container
  273    270   
                    });
  274    271   
                }
  275    272   
                Some(7) => {
  276    273   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  277    274   
                }
  278    275   
                Some(8) => {
  279    276   
                    builder.peer_bgp_asn_extended = Some(deser.read_long(member)?);
  280    277   
                }
  281    278   
                _ => {}
  282    279   
            }
  283    280   
            Ok(())
  284    281   
        })?;
         282  +
        builder.local_gateway_virtual_interface_group_id = builder.local_gateway_virtual_interface_group_id.or(Some(String::new()));
         283  +
        builder.outpost_lag_id = builder.outpost_lag_id.or(Some(String::new()));
         284  +
        builder.vlan = builder.vlan.or(Some(0i32));
         285  +
        builder.local_address = builder.local_address.or(Some(String::new()));
         286  +
        builder.peer_address = builder.peer_address.or(Some(String::new()));
  285    287   
        builder
  286    288   
            .build()
  287    289   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  288    290   
    }
  289    291   
}
         292  +
impl CreateLocalGatewayVirtualInterfaceInput {
         293  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         294  +
    pub fn deserialize_with_response(
         295  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         296  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         297  +
        _status: u16,
         298  +
        _body: &[u8],
         299  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         300  +
        Self::deserialize(deserializer)
         301  +
    }
         302  +
}
  290    303   
impl CreateLocalGatewayVirtualInterfaceInput {
  291    304   
    /// Creates a new builder-style object to manufacture [`CreateLocalGatewayVirtualInterfaceInput`](crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceInput).
  292    305   
    pub fn builder() -> crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceInputBuilder {
  293    306   
        crate::operation::create_local_gateway_virtual_interface::builders::CreateLocalGatewayVirtualInterfaceInputBuilder::default()
  294    307   
    }
  295    308   
}
  296    309   
  297    310   
/// A builder for [`CreateLocalGatewayVirtualInterfaceInput`](crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceInput).
  298    311   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  299    312   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_local_gateway_virtual_interface/_create_local_gateway_virtual_interface_output.rs

@@ -1,1 +98,145 @@
   19     19   
    "CreateLocalGatewayVirtualInterfaceOutput",
   20     20   
);
   21     21   
static CREATELOCALGATEWAYVIRTUALINTERFACEOUTPUT_MEMBER_LOCAL_GATEWAY_VIRTUAL_INTERFACE: ::aws_smithy_schema::Schema =
   22     22   
    ::aws_smithy_schema::Schema::new_member(
   23     23   
        ::aws_smithy_schema::ShapeId::from_static(
   24     24   
            "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceOutput$LocalGatewayVirtualInterface",
   25     25   
            "com.amazonaws.ec2.synthetic",
   26     26   
            "CreateLocalGatewayVirtualInterfaceOutput",
   27     27   
        ),
   28     28   
        ::aws_smithy_schema::ShapeType::Structure,
   29         -
        "local_gateway_virtual_interface",
          29  +
        "LocalGatewayVirtualInterface",
   30     30   
        0,
   31     31   
    )
   32     32   
    .with_xml_name("localGatewayVirtualInterface");
          33  +
static CREATELOCALGATEWAYVIRTUALINTERFACEOUTPUT_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 CREATELOCALGATEWAYVIRTUALINTERFACEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   34     41   
    CREATELOCALGATEWAYVIRTUALINTERFACEOUTPUT_SCHEMA_ID,
   35     42   
    ::aws_smithy_schema::ShapeType::Structure,
   36         -
    &[&CREATELOCALGATEWAYVIRTUALINTERFACEOUTPUT_MEMBER_LOCAL_GATEWAY_VIRTUAL_INTERFACE],
          43  +
    &[
          44  +
        &CREATELOCALGATEWAYVIRTUALINTERFACEOUTPUT_MEMBER_LOCAL_GATEWAY_VIRTUAL_INTERFACE,
          45  +
        &CREATELOCALGATEWAYVIRTUALINTERFACEOUTPUT_MEMBER__REQUEST_ID,
          46  +
    ],
   37     47   
);
   38     48   
impl CreateLocalGatewayVirtualInterfaceOutput {
   39     49   
    /// The schema for this shape.
   40     50   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATELOCALGATEWAYVIRTUALINTERFACEOUTPUT_SCHEMA;
   41     51   
}
   42     52   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateLocalGatewayVirtualInterfaceOutput {
   43     53   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   44     54   
    fn serialize_members(
   45     55   
        &self,
   46     56   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   47     57   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   48     58   
        if let Some(ref val) = self.local_gateway_virtual_interface {
   49     59   
            ser.write_struct(&CREATELOCALGATEWAYVIRTUALINTERFACEOUTPUT_MEMBER_LOCAL_GATEWAY_VIRTUAL_INTERFACE, val)?;
   50     60   
        }
   51     61   
        Ok(())
   52     62   
    }
   53     63   
}
   54     64   
impl CreateLocalGatewayVirtualInterfaceOutput {
   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(&CREATELOCALGATEWAYVIRTUALINTERFACEOUTPUT_SCHEMA, (), |_, member, deser| {
          78  +
        deserializer.read_struct(&CREATELOCALGATEWAYVIRTUALINTERFACEOUTPUT_SCHEMA, &mut |member, deser| {
          79  +
            match member.member_index() {
          80  +
                Some(0) => {
          81  +
                    builder.local_gateway_virtual_interface = Some(crate::types::LocalGatewayVirtualInterface::deserialize(deser)?);
          82  +
                }
          83  +
                Some(1) => {
          84  +
                    builder._request_id = Some(deser.read_string(member)?);
          85  +
                }
          86  +
                _ => {}
          87  +
            }
          88  +
            Ok(())
          89  +
        })?;
          90  +
        Ok(builder.build())
          91  +
    }
          92  +
}
          93  +
impl CreateLocalGatewayVirtualInterfaceOutput {
          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(&CREATELOCALGATEWAYVIRTUALINTERFACEOUTPUT_SCHEMA, &mut |member, deser| {
   69    116   
            match member.member_index() {
   70    117   
                Some(0) => {
   71    118   
                    builder.local_gateway_virtual_interface = Some(crate::types::LocalGatewayVirtualInterface::deserialize(deser)?);
   72    119   
                }
   73    120   
                _ => {}
   74    121   
            }
   75    122   
            Ok(())
   76    123   
        })?;
   77    124   
        Ok(builder.build())
   78    125   
    }

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

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `CreateLocalGatewayVirtualInterfaceGroup`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateLocalGatewayVirtualInterfaceGroup;
    6      6   
impl CreateLocalGatewayVirtualInterfaceGroup {
    7      7   
    /// Creates a new `CreateLocalGatewayVirtualInterfaceGroup`
    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_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupOutput::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_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct CreateLocalGatewayVirtualInterfaceGroupResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateLocalGatewayVirtualInterfaceGroupResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159    166   
        let headers = response.headers();
  160    167   
        let body = response.body().bytes().expect("body loaded");
  161    168   
        #[allow(unused_mut)]
  162    169   
        let mut force_error = false;
  163    170   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164    171   
        let parse_result = if !success && status != 200 || force_error {
  165    172   
            crate::protocol_serde::shape_create_local_gateway_virtual_interface_group::de_create_local_gateway_virtual_interface_group_http_error(
  166    173   
                status, headers, body,

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_local_gateway_virtual_interface_group/_create_local_gateway_virtual_interface_group_input.rs

@@ -23,23 +224,233 @@
   43     43   
    "com.amazonaws.ec2.synthetic",
   44     44   
    "CreateLocalGatewayVirtualInterfaceGroupInput",
   45     45   
);
   46     46   
static CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_MEMBER_LOCAL_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   47     47   
    ::aws_smithy_schema::ShapeId::from_static(
   48     48   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceGroupInput$LocalGatewayId",
   49     49   
        "com.amazonaws.ec2.synthetic",
   50     50   
        "CreateLocalGatewayVirtualInterfaceGroupInput",
   51     51   
    ),
   52     52   
    ::aws_smithy_schema::ShapeType::String,
   53         -
    "local_gateway_id",
          53  +
    "LocalGatewayId",
   54     54   
    0,
   55     55   
);
   56     56   
static CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_MEMBER_LOCAL_BGP_ASN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   57     57   
    ::aws_smithy_schema::ShapeId::from_static(
   58     58   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceGroupInput$LocalBgpAsn",
   59     59   
        "com.amazonaws.ec2.synthetic",
   60     60   
        "CreateLocalGatewayVirtualInterfaceGroupInput",
   61     61   
    ),
   62     62   
    ::aws_smithy_schema::ShapeType::Integer,
   63         -
    "local_bgp_asn",
          63  +
    "LocalBgpAsn",
   64     64   
    1,
   65     65   
);
   66     66   
static CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_MEMBER_LOCAL_BGP_ASN_EXTENDED: ::aws_smithy_schema::Schema =
   67     67   
    ::aws_smithy_schema::Schema::new_member(
   68     68   
        ::aws_smithy_schema::ShapeId::from_static(
   69     69   
            "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceGroupInput$LocalBgpAsnExtended",
   70     70   
            "com.amazonaws.ec2.synthetic",
   71     71   
            "CreateLocalGatewayVirtualInterfaceGroupInput",
   72     72   
        ),
   73     73   
        ::aws_smithy_schema::ShapeType::Long,
   74         -
        "local_bgp_asn_extended",
          74  +
        "LocalBgpAsnExtended",
   75     75   
        2,
   76     76   
    );
   77     77   
static CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_MEMBER_TAG_SPECIFICATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceGroupInput$TagSpecifications",
   80     80   
        "com.amazonaws.ec2.synthetic",
   81     81   
        "CreateLocalGatewayVirtualInterfaceGroupInput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::List,
   84         -
    "tag_specifications",
          84  +
    "TagSpecifications",
   85     85   
    3,
   86     86   
)
   87     87   
.with_xml_name("TagSpecification");
   88     88   
static CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   89     89   
    ::aws_smithy_schema::ShapeId::from_static(
   90     90   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayVirtualInterfaceGroupInput$DryRun",
   91     91   
        "com.amazonaws.ec2.synthetic",
   92     92   
        "CreateLocalGatewayVirtualInterfaceGroupInput",
   93     93   
    ),
   94     94   
    ::aws_smithy_schema::ShapeType::Boolean,
   95         -
    "dry_run",
          95  +
    "DryRun",
   96     96   
    4,
   97     97   
);
   98     98   
static CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   99     99   
    CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_SCHEMA_ID,
  100    100   
    ::aws_smithy_schema::ShapeType::Structure,
  101    101   
    &[
  102    102   
        &CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_MEMBER_LOCAL_GATEWAY_ID,
  103    103   
        &CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_MEMBER_LOCAL_BGP_ASN,
  104    104   
        &CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_MEMBER_LOCAL_BGP_ASN_EXTENDED,
  105    105   
        &CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_MEMBER_TAG_SPECIFICATIONS,
  106    106   
        &CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_MEMBER_DRY_RUN,
  107    107   
    ],
  108    108   
);
  109    109   
impl CreateLocalGatewayVirtualInterfaceGroupInput {
  110    110   
    /// The schema for this shape.
  111    111   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_SCHEMA;
  112    112   
}
  113    113   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateLocalGatewayVirtualInterfaceGroupInput {
  114    114   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  115    115   
    fn serialize_members(
  116    116   
        &self,
  117    117   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  118    118   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  119    119   
        if let Some(ref val) = self.local_gateway_id {
  120    120   
            ser.write_string(&CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_MEMBER_LOCAL_GATEWAY_ID, val)?;
  121    121   
        }
  122    122   
        if let Some(ref val) = self.local_bgp_asn {
  123    123   
            ser.write_integer(&CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_MEMBER_LOCAL_BGP_ASN, *val)?;
  124    124   
        }
  125    125   
        if let Some(ref val) = self.local_bgp_asn_extended {
  126    126   
            ser.write_long(&CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_MEMBER_LOCAL_BGP_ASN_EXTENDED, *val)?;
  127    127   
        }
  128    128   
        if let Some(ref val) = self.tag_specifications {
  129    129   
            ser.write_list(
  130    130   
                &CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_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.dry_run {
  140    140   
            ser.write_boolean(&CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_MEMBER_DRY_RUN, *val)?;
  141    141   
        }
  142    142   
        Ok(())
  143    143   
    }
  144    144   
}
  145    145   
impl CreateLocalGatewayVirtualInterfaceGroupInput {
  146    146   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  147         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  148         -
        deserializer: &mut D,
         147  +
    pub fn deserialize(
         148  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  149    149   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  150    150   
        #[allow(unused_variables, unused_mut)]
  151    151   
        let mut builder = Self::builder();
  152    152   
        #[allow(
  153    153   
            unused_variables,
  154    154   
            unreachable_code,
  155    155   
            clippy::single_match,
  156    156   
            clippy::match_single_binding,
  157    157   
            clippy::diverging_sub_expression
  158    158   
        )]
  159         -
        deserializer.read_struct(&CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_SCHEMA, (), |_, member, deser| {
         159  +
        deserializer.read_struct(&CREATELOCALGATEWAYVIRTUALINTERFACEGROUPINPUT_SCHEMA, &mut |member, deser| {
  160    160   
            match member.member_index() {
  161    161   
                Some(0) => {
  162    162   
                    builder.local_gateway_id = Some(deser.read_string(member)?);
  163    163   
                }
  164    164   
                Some(1) => {
  165    165   
                    builder.local_bgp_asn = Some(deser.read_integer(member)?);
  166    166   
                }
  167    167   
                Some(2) => {
  168    168   
                    builder.local_bgp_asn_extended = Some(deser.read_long(member)?);
  169    169   
                }
  170    170   
                Some(3) => {
  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(4) => {
  184    181   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  185    182   
                }
  186    183   
                _ => {}
  187    184   
            }
  188    185   
            Ok(())
  189    186   
        })?;
         187  +
        builder.local_gateway_id = builder.local_gateway_id.or(Some(String::new()));
  190    188   
        builder
  191    189   
            .build()
  192    190   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  193    191   
    }
  194    192   
}
         193  +
impl CreateLocalGatewayVirtualInterfaceGroupInput {
         194  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         195  +
    pub fn deserialize_with_response(
         196  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         197  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         198  +
        _status: u16,
         199  +
        _body: &[u8],
         200  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         201  +
        Self::deserialize(deserializer)
         202  +
    }
         203  +
}
  195    204   
impl CreateLocalGatewayVirtualInterfaceGroupInput {
  196    205   
    /// Creates a new builder-style object to manufacture [`CreateLocalGatewayVirtualInterfaceGroupInput`](crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupInput).
  197    206   
    pub fn builder() -> crate::operation::create_local_gateway_virtual_interface_group::builders::CreateLocalGatewayVirtualInterfaceGroupInputBuilder
  198    207   
    {
  199    208   
        crate::operation::create_local_gateway_virtual_interface_group::builders::CreateLocalGatewayVirtualInterfaceGroupInputBuilder::default()
  200    209   
    }
  201    210   
}
  202    211   
  203    212   
/// A builder for [`CreateLocalGatewayVirtualInterfaceGroupInput`](crate::operation::create_local_gateway_virtual_interface_group::CreateLocalGatewayVirtualInterfaceGroupInput).
  204    213   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_local_gateway_virtual_interface_group/_create_local_gateway_virtual_interface_group_output.rs

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_mac_system_integrity_protection_modification_task/_create_mac_system_integrity_protection_modification_task_input.rs

@@ -94,94 +219,219 @@
  114    114   
    "CreateMacSystemIntegrityProtectionModificationTaskInput",
  115    115   
);
  116    116   
static CREATEMACSYSTEMINTEGRITYPROTECTIONMODIFICATIONTASKINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema =
  117    117   
    ::aws_smithy_schema::Schema::new_member(
  118    118   
        ::aws_smithy_schema::ShapeId::from_static(
  119    119   
            "com.amazonaws.ec2.synthetic#CreateMacSystemIntegrityProtectionModificationTaskInput$ClientToken",
  120    120   
            "com.amazonaws.ec2.synthetic",
  121    121   
            "CreateMacSystemIntegrityProtectionModificationTaskInput",
  122    122   
        ),
  123    123   
        ::aws_smithy_schema::ShapeType::String,
  124         -
        "client_token",
         124  +
        "ClientToken",
  125    125   
        0,
  126    126   
    );
  127    127   
static CREATEMACSYSTEMINTEGRITYPROTECTIONMODIFICATIONTASKINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  128    128   
    ::aws_smithy_schema::ShapeId::from_static(
  129    129   
        "com.amazonaws.ec2.synthetic#CreateMacSystemIntegrityProtectionModificationTaskInput$DryRun",
  130    130   
        "com.amazonaws.ec2.synthetic",
  131    131   
        "CreateMacSystemIntegrityProtectionModificationTaskInput",
  132    132   
    ),
  133    133   
    ::aws_smithy_schema::ShapeType::Boolean,
  134         -
    "dry_run",
         134  +
    "DryRun",
  135    135   
    1,
  136    136   
);
  137    137   
static CREATEMACSYSTEMINTEGRITYPROTECTIONMODIFICATIONTASKINPUT_MEMBER_INSTANCE_ID: ::aws_smithy_schema::Schema =
  138    138   
    ::aws_smithy_schema::Schema::new_member(
  139    139   
        ::aws_smithy_schema::ShapeId::from_static(
  140    140   
            "com.amazonaws.ec2.synthetic#CreateMacSystemIntegrityProtectionModificationTaskInput$InstanceId",
  141    141   
            "com.amazonaws.ec2.synthetic",
  142    142   
            "CreateMacSystemIntegrityProtectionModificationTaskInput",
  143    143   
        ),
  144    144   
        ::aws_smithy_schema::ShapeType::String,
  145         -
        "instance_id",
         145  +
        "InstanceId",
  146    146   
        2,
  147    147   
    );
  148    148   
static CREATEMACSYSTEMINTEGRITYPROTECTIONMODIFICATIONTASKINPUT_MEMBER_MAC_CREDENTIALS: ::aws_smithy_schema::Schema =
  149    149   
    ::aws_smithy_schema::Schema::new_member(
  150    150   
        ::aws_smithy_schema::ShapeId::from_static(
  151    151   
            "com.amazonaws.ec2.synthetic#CreateMacSystemIntegrityProtectionModificationTaskInput$MacCredentials",
  152    152   
            "com.amazonaws.ec2.synthetic",
  153    153   
            "CreateMacSystemIntegrityProtectionModificationTaskInput",
  154    154   
        ),
  155    155   
        ::aws_smithy_schema::ShapeType::String,
  156         -
        "mac_credentials",
         156  +
        "MacCredentials",
  157    157   
        3,
  158    158   
    );
  159    159   
static CREATEMACSYSTEMINTEGRITYPROTECTIONMODIFICATIONTASKINPUT_MEMBER_MAC_SYSTEM_INTEGRITY_PROTECTION_CONFIGURATION: ::aws_smithy_schema::Schema =
  160    160   
    ::aws_smithy_schema::Schema::new_member(
  161    161   
        ::aws_smithy_schema::ShapeId::from_static(
  162    162   
            "com.amazonaws.ec2.synthetic#CreateMacSystemIntegrityProtectionModificationTaskInput$MacSystemIntegrityProtectionConfiguration",
  163    163   
            "com.amazonaws.ec2.synthetic",
  164    164   
            "CreateMacSystemIntegrityProtectionModificationTaskInput",
  165    165   
        ),
  166    166   
        ::aws_smithy_schema::ShapeType::Structure,
  167         -
        "mac_system_integrity_protection_configuration",
         167  +
        "MacSystemIntegrityProtectionConfiguration",
  168    168   
        4,
  169    169   
    );
  170    170   
static CREATEMACSYSTEMINTEGRITYPROTECTIONMODIFICATIONTASKINPUT_MEMBER_MAC_SYSTEM_INTEGRITY_PROTECTION_STATUS: ::aws_smithy_schema::Schema =
  171    171   
    ::aws_smithy_schema::Schema::new_member(
  172    172   
        ::aws_smithy_schema::ShapeId::from_static(
  173    173   
            "com.amazonaws.ec2.synthetic#CreateMacSystemIntegrityProtectionModificationTaskInput$MacSystemIntegrityProtectionStatus",
  174    174   
            "com.amazonaws.ec2.synthetic",
  175    175   
            "CreateMacSystemIntegrityProtectionModificationTaskInput",
  176    176   
        ),
  177    177   
        ::aws_smithy_schema::ShapeType::String,
  178         -
        "mac_system_integrity_protection_status",
         178  +
        "MacSystemIntegrityProtectionStatus",
  179    179   
        5,
  180    180   
    );
  181    181   
static CREATEMACSYSTEMINTEGRITYPROTECTIONMODIFICATIONTASKINPUT_MEMBER_TAG_SPECIFICATIONS: ::aws_smithy_schema::Schema =
  182    182   
    ::aws_smithy_schema::Schema::new_member(
  183    183   
        ::aws_smithy_schema::ShapeId::from_static(
  184    184   
            "com.amazonaws.ec2.synthetic#CreateMacSystemIntegrityProtectionModificationTaskInput$TagSpecifications",
  185    185   
            "com.amazonaws.ec2.synthetic",
  186    186   
            "CreateMacSystemIntegrityProtectionModificationTaskInput",
  187    187   
        ),
  188    188   
        ::aws_smithy_schema::ShapeType::List,
  189         -
        "tag_specifications",
         189  +
        "TagSpecifications",
  190    190   
        6,
  191    191   
    )
  192    192   
    .with_xml_name("TagSpecification");
  193    193   
static CREATEMACSYSTEMINTEGRITYPROTECTIONMODIFICATIONTASKINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  194    194   
    CREATEMACSYSTEMINTEGRITYPROTECTIONMODIFICATIONTASKINPUT_SCHEMA_ID,
  195    195   
    ::aws_smithy_schema::ShapeType::Structure,
  196    196   
    &[
  197    197   
        &CREATEMACSYSTEMINTEGRITYPROTECTIONMODIFICATIONTASKINPUT_MEMBER_CLIENT_TOKEN,
  198    198   
        &CREATEMACSYSTEMINTEGRITYPROTECTIONMODIFICATIONTASKINPUT_MEMBER_DRY_RUN,
  199    199   
        &CREATEMACSYSTEMINTEGRITYPROTECTIONMODIFICATIONTASKINPUT_MEMBER_INSTANCE_ID,
@@ -226,226 +342,351 @@
  246    246   
                    }
  247    247   
                    Ok(())
  248    248   
                },
  249    249   
            )?;
  250    250   
        }
  251    251   
        Ok(())
  252    252   
    }
  253    253   
}
  254    254   
impl CreateMacSystemIntegrityProtectionModificationTaskInput {
  255    255   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  256         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  257         -
        deserializer: &mut D,
         256  +
    pub fn deserialize(
         257  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  258    258   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  259    259   
        #[allow(unused_variables, unused_mut)]
  260    260   
        let mut builder = Self::builder();
  261    261   
        #[allow(
  262    262   
            unused_variables,
  263    263   
            unreachable_code,
  264    264   
            clippy::single_match,
  265    265   
            clippy::match_single_binding,
  266    266   
            clippy::diverging_sub_expression
  267    267   
        )]
  268         -
        deserializer.read_struct(&CREATEMACSYSTEMINTEGRITYPROTECTIONMODIFICATIONTASKINPUT_SCHEMA, (), |_, member, deser| {
         268  +
        deserializer.read_struct(&CREATEMACSYSTEMINTEGRITYPROTECTIONMODIFICATIONTASKINPUT_SCHEMA, &mut |member, deser| {
  269    269   
            match member.member_index() {
  270    270   
                Some(0) => {
  271    271   
                    builder.client_token = Some(deser.read_string(member)?);
  272    272   
                }
  273    273   
                Some(1) => {
  274    274   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  275    275   
                }
  276    276   
                Some(2) => {
  277    277   
                    builder.instance_id = Some(deser.read_string(member)?);
  278    278   
                }
  279    279   
                Some(3) => {
  280    280   
                    builder.mac_credentials = Some(deser.read_string(member)?);
  281    281   
                }
  282    282   
                Some(4) => {
  283    283   
                    builder.mac_system_integrity_protection_configuration =
  284    284   
                        Some(crate::types::MacSystemIntegrityProtectionConfigurationRequest::deserialize(deser)?);
  285    285   
                }
  286    286   
                Some(5) => {
  287    287   
                    builder.mac_system_integrity_protection_status = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
  288    288   
                        deser.read_string(member)?.as_str(),
  289    289   
                    ));
  290    290   
                }
  291    291   
                Some(6) => {
  292    292   
                    builder.tag_specifications = Some({
  293         -
                        let container = if let Some(cap) = deser.container_size() {
  294         -
                            Vec::with_capacity(cap)
  295         -
                        } else {
  296         -
                            Vec::new()
  297         -
                        };
  298         -
                        deser.read_list(member, container, |mut list, deser| {
  299         -
                            list.push(crate::types::TagSpecification::deserialize(deser)?);
  300         -
                            Ok(list)
  301         -
                        })?
         293  +
                        let mut container = Vec::new();
         294  +
                        deser.read_list(member, &mut |deser| {
         295  +
                            container.push(crate::types::TagSpecification::deserialize(deser)?);
         296  +
                            Ok(())
         297  +
                        })?;
         298  +
                        container
  302    299   
                    });
  303    300   
                }
  304    301   
                _ => {}
  305    302   
            }
  306    303   
            Ok(())
  307    304   
        })?;
         305  +
        builder.instance_id = builder.instance_id.or(Some(String::new()));
  308    306   
        builder
  309    307   
            .build()
  310    308   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  311    309   
    }
  312    310   
}
         311  +
impl CreateMacSystemIntegrityProtectionModificationTaskInput {
         312  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         313  +
    pub fn deserialize_with_response(
         314  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         315  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         316  +
        _status: u16,
         317  +
        _body: &[u8],
         318  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         319  +
        Self::deserialize(deserializer)
         320  +
    }
         321  +
}
  313    322   
impl CreateMacSystemIntegrityProtectionModificationTaskInput {
  314    323   
    /// Creates a new builder-style object to manufacture [`CreateMacSystemIntegrityProtectionModificationTaskInput`](crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskInput).
  315    324   
    pub fn builder() -> crate::operation::create_mac_system_integrity_protection_modification_task::builders::CreateMacSystemIntegrityProtectionModificationTaskInputBuilder{
  316    325   
        crate::operation::create_mac_system_integrity_protection_modification_task::builders::CreateMacSystemIntegrityProtectionModificationTaskInputBuilder::default()
  317    326   
    }
  318    327   
}
  319    328   
  320    329   
/// A builder for [`CreateMacSystemIntegrityProtectionModificationTaskInput`](crate::operation::create_mac_system_integrity_protection_modification_task::CreateMacSystemIntegrityProtectionModificationTaskInput).
  321    330   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
  322    331   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_mac_system_integrity_protection_modification_task/_create_mac_system_integrity_protection_modification_task_output.rs

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

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

@@ -1,1 +40,45 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `CreateManagedPrefixList`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateManagedPrefixList;
    6      6   
impl CreateManagedPrefixList {
    7      7   
    /// Creates a new `CreateManagedPrefixList`
    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_managed_prefix_list::CreateManagedPrefixListInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          15  +
        crate::operation::create_managed_prefix_list::CreateManagedPrefixListOutput::SCHEMA;
   11     16   
    pub(crate) async fn orchestrate(
   12     17   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     18   
        input: crate::operation::create_managed_prefix_list::CreateManagedPrefixListInput,
   14     19   
    ) -> ::std::result::Result<
   15     20   
        crate::operation::create_managed_prefix_list::CreateManagedPrefixListOutput,
   16     21   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     22   
            crate::operation::create_managed_prefix_list::CreateManagedPrefixListError,
   18     23   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     24   
        >,
   20     25   
    > {
@@ -126,131 +188,194 @@
  146    151   
                crate::operation::create_managed_prefix_list::CreateManagedPrefixListError,
  147    152   
            >::new());
  148    153   
  149    154   
        ::std::borrow::Cow::Owned(rcb)
  150    155   
    }
  151    156   
}
  152    157   
  153    158   
#[derive(Debug)]
  154    159   
struct CreateManagedPrefixListResponseDeserializer;
  155    160   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateManagedPrefixListResponseDeserializer {
  156         -
    fn deserialize_nonstreaming(
         161  +
    fn deserialize_nonstreaming_with_config(
  157    162   
        &self,
  158    163   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         164  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  159    165   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  160    166   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  161    167   
        let headers = response.headers();
  162    168   
        let body = response.body().bytes().expect("body loaded");
  163    169   
        #[allow(unused_mut)]
  164    170   
        let mut force_error = false;
  165    171   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  166    172   
        let parse_result = if !success && status != 200 || force_error {
  167    173   
            crate::protocol_serde::shape_create_managed_prefix_list::de_create_managed_prefix_list_http_error(status, headers, body)
  168    174   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_managed_prefix_list/_create_managed_prefix_list_input.rs

@@ -43,43 +165,165 @@
   63     63   
    "com.amazonaws.ec2.synthetic",
   64     64   
    "CreateManagedPrefixListInput",
   65     65   
);
   66     66   
static CREATEMANAGEDPREFIXLISTINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   67     67   
    ::aws_smithy_schema::ShapeId::from_static(
   68     68   
        "com.amazonaws.ec2.synthetic#CreateManagedPrefixListInput$DryRun",
   69     69   
        "com.amazonaws.ec2.synthetic",
   70     70   
        "CreateManagedPrefixListInput",
   71     71   
    ),
   72     72   
    ::aws_smithy_schema::ShapeType::Boolean,
   73         -
    "dry_run",
          73  +
    "DryRun",
   74     74   
    0,
   75     75   
);
   76     76   
static CREATEMANAGEDPREFIXLISTINPUT_MEMBER_PREFIX_LIST_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   77     77   
    ::aws_smithy_schema::ShapeId::from_static(
   78     78   
        "com.amazonaws.ec2.synthetic#CreateManagedPrefixListInput$PrefixListName",
   79     79   
        "com.amazonaws.ec2.synthetic",
   80     80   
        "CreateManagedPrefixListInput",
   81     81   
    ),
   82     82   
    ::aws_smithy_schema::ShapeType::String,
   83         -
    "prefix_list_name",
          83  +
    "PrefixListName",
   84     84   
    1,
   85     85   
);
   86     86   
static CREATEMANAGEDPREFIXLISTINPUT_MEMBER_ENTRIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   87     87   
    ::aws_smithy_schema::ShapeId::from_static(
   88     88   
        "com.amazonaws.ec2.synthetic#CreateManagedPrefixListInput$Entries",
   89     89   
        "com.amazonaws.ec2.synthetic",
   90     90   
        "CreateManagedPrefixListInput",
   91     91   
    ),
   92     92   
    ::aws_smithy_schema::ShapeType::List,
   93         -
    "entries",
          93  +
    "Entries",
   94     94   
    2,
   95     95   
)
   96     96   
.with_xml_name("Entry");
   97     97   
static CREATEMANAGEDPREFIXLISTINPUT_MEMBER_MAX_ENTRIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   98     98   
    ::aws_smithy_schema::ShapeId::from_static(
   99     99   
        "com.amazonaws.ec2.synthetic#CreateManagedPrefixListInput$MaxEntries",
  100    100   
        "com.amazonaws.ec2.synthetic",
  101    101   
        "CreateManagedPrefixListInput",
  102    102   
    ),
  103    103   
    ::aws_smithy_schema::ShapeType::Integer,
  104         -
    "max_entries",
         104  +
    "MaxEntries",
  105    105   
    3,
  106    106   
);
  107    107   
static CREATEMANAGEDPREFIXLISTINPUT_MEMBER_TAG_SPECIFICATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  108    108   
    ::aws_smithy_schema::ShapeId::from_static(
  109    109   
        "com.amazonaws.ec2.synthetic#CreateManagedPrefixListInput$TagSpecifications",
  110    110   
        "com.amazonaws.ec2.synthetic",
  111    111   
        "CreateManagedPrefixListInput",
  112    112   
    ),
  113    113   
    ::aws_smithy_schema::ShapeType::List,
  114         -
    "tag_specifications",
         114  +
    "TagSpecifications",
  115    115   
    4,
  116    116   
)
  117    117   
.with_xml_name("TagSpecification");
  118    118   
static CREATEMANAGEDPREFIXLISTINPUT_MEMBER_ADDRESS_FAMILY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  119    119   
    ::aws_smithy_schema::ShapeId::from_static(
  120    120   
        "com.amazonaws.ec2.synthetic#CreateManagedPrefixListInput$AddressFamily",
  121    121   
        "com.amazonaws.ec2.synthetic",
  122    122   
        "CreateManagedPrefixListInput",
  123    123   
    ),
  124    124   
    ::aws_smithy_schema::ShapeType::String,
  125         -
    "address_family",
         125  +
    "AddressFamily",
  126    126   
    5,
  127    127   
);
  128    128   
static CREATEMANAGEDPREFIXLISTINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  129    129   
    ::aws_smithy_schema::ShapeId::from_static(
  130    130   
        "com.amazonaws.ec2.synthetic#CreateManagedPrefixListInput$ClientToken",
  131    131   
        "com.amazonaws.ec2.synthetic",
  132    132   
        "CreateManagedPrefixListInput",
  133    133   
    ),
  134    134   
    ::aws_smithy_schema::ShapeType::String,
  135         -
    "client_token",
         135  +
    "ClientToken",
  136    136   
    6,
  137    137   
);
  138    138   
static CREATEMANAGEDPREFIXLISTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  139    139   
    CREATEMANAGEDPREFIXLISTINPUT_SCHEMA_ID,
  140    140   
    ::aws_smithy_schema::ShapeType::Structure,
  141    141   
    &[
  142    142   
        &CREATEMANAGEDPREFIXLISTINPUT_MEMBER_DRY_RUN,
  143    143   
        &CREATEMANAGEDPREFIXLISTINPUT_MEMBER_PREFIX_LIST_NAME,
  144    144   
        &CREATEMANAGEDPREFIXLISTINPUT_MEMBER_ENTRIES,
  145    145   
        &CREATEMANAGEDPREFIXLISTINPUT_MEMBER_MAX_ENTRIES,
@@ -173,173 +296,304 @@
  193    193   
            ser.write_string(&CREATEMANAGEDPREFIXLISTINPUT_MEMBER_ADDRESS_FAMILY, val)?;
  194    194   
        }
  195    195   
        if let Some(ref val) = self.client_token {
  196    196   
            ser.write_string(&CREATEMANAGEDPREFIXLISTINPUT_MEMBER_CLIENT_TOKEN, val)?;
  197    197   
        }
  198    198   
        Ok(())
  199    199   
    }
  200    200   
}
  201    201   
impl CreateManagedPrefixListInput {
  202    202   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  203         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  204         -
        deserializer: &mut D,
         203  +
    pub fn deserialize(
         204  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  205    205   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  206    206   
        #[allow(unused_variables, unused_mut)]
  207    207   
        let mut builder = Self::builder();
  208    208   
        #[allow(
  209    209   
            unused_variables,
  210    210   
            unreachable_code,
  211    211   
            clippy::single_match,
  212    212   
            clippy::match_single_binding,
  213    213   
            clippy::diverging_sub_expression
  214    214   
        )]
  215         -
        deserializer.read_struct(&CREATEMANAGEDPREFIXLISTINPUT_SCHEMA, (), |_, member, deser| {
         215  +
        deserializer.read_struct(&CREATEMANAGEDPREFIXLISTINPUT_SCHEMA, &mut |member, deser| {
  216    216   
            match member.member_index() {
  217    217   
                Some(0) => {
  218    218   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  219    219   
                }
  220    220   
                Some(1) => {
  221    221   
                    builder.prefix_list_name = Some(deser.read_string(member)?);
  222    222   
                }
  223    223   
                Some(2) => {
  224    224   
                    builder.entries = Some({
  225         -
                        let container = if let Some(cap) = deser.container_size() {
  226         -
                            Vec::with_capacity(cap)
  227         -
                        } else {
  228         -
                            Vec::new()
  229         -
                        };
  230         -
                        deser.read_list(member, container, |mut list, deser| {
  231         -
                            list.push(crate::types::AddPrefixListEntry::deserialize(deser)?);
  232         -
                            Ok(list)
  233         -
                        })?
         225  +
                        let mut container = Vec::new();
         226  +
                        deser.read_list(member, &mut |deser| {
         227  +
                            container.push(crate::types::AddPrefixListEntry::deserialize(deser)?);
         228  +
                            Ok(())
         229  +
                        })?;
         230  +
                        container
  234    231   
                    });
  235    232   
                }
  236    233   
                Some(3) => {
  237    234   
                    builder.max_entries = Some(deser.read_integer(member)?);
  238    235   
                }
  239    236   
                Some(4) => {
  240    237   
                    builder.tag_specifications = Some({
  241         -
                        let container = if let Some(cap) = deser.container_size() {
  242         -
                            Vec::with_capacity(cap)
  243         -
                        } else {
  244         -
                            Vec::new()
  245         -
                        };
  246         -
                        deser.read_list(member, container, |mut list, deser| {
  247         -
                            list.push(crate::types::TagSpecification::deserialize(deser)?);
  248         -
                            Ok(list)
  249         -
                        })?
         238  +
                        let mut container = Vec::new();
         239  +
                        deser.read_list(member, &mut |deser| {
         240  +
                            container.push(crate::types::TagSpecification::deserialize(deser)?);
         241  +
                            Ok(())
         242  +
                        })?;
         243  +
                        container
  250    244   
                    });
  251    245   
                }
  252    246   
                Some(5) => {
  253    247   
                    builder.address_family = Some(deser.read_string(member)?);
  254    248   
                }
  255    249   
                Some(6) => {
  256    250   
                    builder.client_token = Some(deser.read_string(member)?);
  257    251   
                }
  258    252   
                _ => {}
  259    253   
            }
  260    254   
            Ok(())
  261    255   
        })?;
         256  +
        builder.prefix_list_name = builder.prefix_list_name.or(Some(String::new()));
         257  +
        builder.max_entries = builder.max_entries.or(Some(0i32));
         258  +
        builder.address_family = builder.address_family.or(Some(String::new()));
  262    259   
        builder
  263    260   
            .build()
  264    261   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  265    262   
    }
  266    263   
}
         264  +
impl CreateManagedPrefixListInput {
         265  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         266  +
    pub fn deserialize_with_response(
         267  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         268  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         269  +
        _status: u16,
         270  +
        _body: &[u8],
         271  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         272  +
        Self::deserialize(deserializer)
         273  +
    }
         274  +
}
  267    275   
impl CreateManagedPrefixListInput {
  268    276   
    /// Creates a new builder-style object to manufacture [`CreateManagedPrefixListInput`](crate::operation::create_managed_prefix_list::CreateManagedPrefixListInput).
  269    277   
    pub fn builder() -> crate::operation::create_managed_prefix_list::builders::CreateManagedPrefixListInputBuilder {
  270    278   
        crate::operation::create_managed_prefix_list::builders::CreateManagedPrefixListInputBuilder::default()
  271    279   
    }
  272    280   
}
  273    281   
  274    282   
/// A builder for [`CreateManagedPrefixListInput`](crate::operation::create_managed_prefix_list::CreateManagedPrefixListInput).
  275    283   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  276    284   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_managed_prefix_list/_create_managed_prefix_list_output.rs

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "CreateManagedPrefixListOutput",
   20     20   
);
   21     21   
static CREATEMANAGEDPREFIXLISTOUTPUT_MEMBER_PREFIX_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ec2.synthetic#CreateManagedPrefixListOutput$PrefixList",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "CreateManagedPrefixListOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "prefix_list",
          28  +
    "PrefixList",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_name("prefixList");
          32  +
static CREATEMANAGEDPREFIXLISTOUTPUT_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 CREATEMANAGEDPREFIXLISTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    CREATEMANAGEDPREFIXLISTOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&CREATEMANAGEDPREFIXLISTOUTPUT_MEMBER_PREFIX_LIST],
          42  +
    &[
          43  +
        &CREATEMANAGEDPREFIXLISTOUTPUT_MEMBER_PREFIX_LIST,
          44  +
        &CREATEMANAGEDPREFIXLISTOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl CreateManagedPrefixListOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEMANAGEDPREFIXLISTOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateManagedPrefixListOutput {
   42     52   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   43     53   
    fn serialize_members(
   44     54   
        &self,
   45     55   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   46     56   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   47     57   
        if let Some(ref val) = self.prefix_list {
   48     58   
            ser.write_struct(&CREATEMANAGEDPREFIXLISTOUTPUT_MEMBER_PREFIX_LIST, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl CreateManagedPrefixListOutput {
   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(&CREATEMANAGEDPREFIXLISTOUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&CREATEMANAGEDPREFIXLISTOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.prefix_list = Some(crate::types::ManagedPrefixList::deserialize(deser)?);
          81  +
                }
          82  +
                Some(1) => {
          83  +
                    builder._request_id = Some(deser.read_string(member)?);
          84  +
                }
          85  +
                _ => {}
          86  +
            }
          87  +
            Ok(())
          88  +
        })?;
          89  +
        Ok(builder.build())
          90  +
    }
          91  +
}
          92  +
impl CreateManagedPrefixListOutput {
          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(&CREATEMANAGEDPREFIXLISTOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.prefix_list = Some(crate::types::ManagedPrefixList::deserialize(deser)?);
   71    118   
                }
   72    119   
                _ => {}
   73    120   
            }
   74    121   
            Ok(())
   75    122   
        })?;
   76    123   
        Ok(builder.build())
   77    124   
    }

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `CreateNatGateway`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateNatGateway;
    6      6   
impl CreateNatGateway {
    7      7   
    /// Creates a new `CreateNatGateway`
    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_nat_gateway::CreateNatGatewayInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::create_nat_gateway::CreateNatGatewayOutput::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_nat_gateway::CreateNatGatewayInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::create_nat_gateway::CreateNatGatewayOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::create_nat_gateway::CreateNatGatewayError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -122,126 +184,189 @@
  142    146   
                crate::operation::create_nat_gateway::CreateNatGatewayError,
  143    147   
            >::new());
  144    148   
  145    149   
        ::std::borrow::Cow::Owned(rcb)
  146    150   
    }
  147    151   
}
  148    152   
  149    153   
#[derive(Debug)]
  150    154   
struct CreateNatGatewayResponseDeserializer;
  151    155   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateNatGatewayResponseDeserializer {
  152         -
    fn deserialize_nonstreaming(
         156  +
    fn deserialize_nonstreaming_with_config(
  153    157   
        &self,
  154    158   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         159  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  155    160   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  156    161   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  157    162   
        let headers = response.headers();
  158    163   
        let body = response.body().bytes().expect("body loaded");
  159    164   
        #[allow(unused_mut)]
  160    165   
        let mut force_error = false;
  161    166   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  162    167   
        let parse_result = if !success && status != 200 || force_error {
  163    168   
            crate::protocol_serde::shape_create_nat_gateway::de_create_nat_gateway_http_error(status, headers, body)
  164    169   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_nat_gateway/_create_nat_gateway_input.rs

@@ -59,59 +212,212 @@
   79     79   
    "com.amazonaws.ec2.synthetic",
   80     80   
    "CreateNatGatewayInput",
   81     81   
);
   82     82   
static CREATENATGATEWAYINPUT_MEMBER_ALLOCATION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   83     83   
    ::aws_smithy_schema::ShapeId::from_static(
   84     84   
        "com.amazonaws.ec2.synthetic#CreateNatGatewayInput$AllocationId",
   85     85   
        "com.amazonaws.ec2.synthetic",
   86     86   
        "CreateNatGatewayInput",
   87     87   
    ),
   88     88   
    ::aws_smithy_schema::ShapeType::String,
   89         -
    "allocation_id",
          89  +
    "AllocationId",
   90     90   
    0,
   91     91   
);
   92     92   
static CREATENATGATEWAYINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   93     93   
    ::aws_smithy_schema::ShapeId::from_static(
   94     94   
        "com.amazonaws.ec2.synthetic#CreateNatGatewayInput$ClientToken",
   95     95   
        "com.amazonaws.ec2.synthetic",
   96     96   
        "CreateNatGatewayInput",
   97     97   
    ),
   98     98   
    ::aws_smithy_schema::ShapeType::String,
   99         -
    "client_token",
          99  +
    "ClientToken",
  100    100   
    1,
  101    101   
);
  102    102   
static CREATENATGATEWAYINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  103    103   
    ::aws_smithy_schema::ShapeId::from_static(
  104    104   
        "com.amazonaws.ec2.synthetic#CreateNatGatewayInput$DryRun",
  105    105   
        "com.amazonaws.ec2.synthetic",
  106    106   
        "CreateNatGatewayInput",
  107    107   
    ),
  108    108   
    ::aws_smithy_schema::ShapeType::Boolean,
  109         -
    "dry_run",
         109  +
    "DryRun",
  110    110   
    2,
  111    111   
);
  112    112   
static CREATENATGATEWAYINPUT_MEMBER_SUBNET_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  113    113   
    ::aws_smithy_schema::ShapeId::from_static(
  114    114   
        "com.amazonaws.ec2.synthetic#CreateNatGatewayInput$SubnetId",
  115    115   
        "com.amazonaws.ec2.synthetic",
  116    116   
        "CreateNatGatewayInput",
  117    117   
    ),
  118    118   
    ::aws_smithy_schema::ShapeType::String,
  119         -
    "subnet_id",
         119  +
    "SubnetId",
  120    120   
    3,
  121    121   
);
  122    122   
static CREATENATGATEWAYINPUT_MEMBER_TAG_SPECIFICATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  123    123   
    ::aws_smithy_schema::ShapeId::from_static(
  124    124   
        "com.amazonaws.ec2.synthetic#CreateNatGatewayInput$TagSpecifications",
  125    125   
        "com.amazonaws.ec2.synthetic",
  126    126   
        "CreateNatGatewayInput",
  127    127   
    ),
  128    128   
    ::aws_smithy_schema::ShapeType::List,
  129         -
    "tag_specifications",
         129  +
    "TagSpecifications",
  130    130   
    4,
  131    131   
)
  132    132   
.with_xml_name("TagSpecification");
  133    133   
static CREATENATGATEWAYINPUT_MEMBER_CONNECTIVITY_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  134    134   
    ::aws_smithy_schema::ShapeId::from_static(
  135    135   
        "com.amazonaws.ec2.synthetic#CreateNatGatewayInput$ConnectivityType",
  136    136   
        "com.amazonaws.ec2.synthetic",
  137    137   
        "CreateNatGatewayInput",
  138    138   
    ),
  139    139   
    ::aws_smithy_schema::ShapeType::String,
  140         -
    "connectivity_type",
         140  +
    "ConnectivityType",
  141    141   
    5,
  142    142   
);
  143    143   
static CREATENATGATEWAYINPUT_MEMBER_PRIVATE_IP_ADDRESS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  144    144   
    ::aws_smithy_schema::ShapeId::from_static(
  145    145   
        "com.amazonaws.ec2.synthetic#CreateNatGatewayInput$PrivateIpAddress",
  146    146   
        "com.amazonaws.ec2.synthetic",
  147    147   
        "CreateNatGatewayInput",
  148    148   
    ),
  149    149   
    ::aws_smithy_schema::ShapeType::String,
  150         -
    "private_ip_address",
         150  +
    "PrivateIpAddress",
  151    151   
    6,
  152    152   
);
  153    153   
static CREATENATGATEWAYINPUT_MEMBER_SECONDARY_ALLOCATION_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  154    154   
    ::aws_smithy_schema::ShapeId::from_static(
  155    155   
        "com.amazonaws.ec2.synthetic#CreateNatGatewayInput$SecondaryAllocationIds",
  156    156   
        "com.amazonaws.ec2.synthetic",
  157    157   
        "CreateNatGatewayInput",
  158    158   
    ),
  159    159   
    ::aws_smithy_schema::ShapeType::List,
  160         -
    "secondary_allocation_ids",
         160  +
    "SecondaryAllocationIds",
  161    161   
    7,
  162    162   
)
  163    163   
.with_xml_name("SecondaryAllocationId");
  164    164   
static CREATENATGATEWAYINPUT_MEMBER_SECONDARY_PRIVATE_IP_ADDRESSES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  165    165   
    ::aws_smithy_schema::ShapeId::from_static(
  166    166   
        "com.amazonaws.ec2.synthetic#CreateNatGatewayInput$SecondaryPrivateIpAddresses",
  167    167   
        "com.amazonaws.ec2.synthetic",
  168    168   
        "CreateNatGatewayInput",
  169    169   
    ),
  170    170   
    ::aws_smithy_schema::ShapeType::List,
  171         -
    "secondary_private_ip_addresses",
         171  +
    "SecondaryPrivateIpAddresses",
  172    172   
    8,
  173    173   
)
  174    174   
.with_xml_name("SecondaryPrivateIpAddress");
  175    175   
static CREATENATGATEWAYINPUT_MEMBER_SECONDARY_PRIVATE_IP_ADDRESS_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  176    176   
    ::aws_smithy_schema::ShapeId::from_static(
  177    177   
        "com.amazonaws.ec2.synthetic#CreateNatGatewayInput$SecondaryPrivateIpAddressCount",
  178    178   
        "com.amazonaws.ec2.synthetic",
  179    179   
        "CreateNatGatewayInput",
  180    180   
    ),
  181    181   
    ::aws_smithy_schema::ShapeType::Integer,
  182         -
    "secondary_private_ip_address_count",
         182  +
    "SecondaryPrivateIpAddressCount",
  183    183   
    9,
  184    184   
);
  185    185   
static CREATENATGATEWAYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  186    186   
    CREATENATGATEWAYINPUT_SCHEMA_ID,
  187    187   
    ::aws_smithy_schema::ShapeType::Structure,
  188    188   
    &[
  189    189   
        &CREATENATGATEWAYINPUT_MEMBER_ALLOCATION_ID,
  190    190   
        &CREATENATGATEWAYINPUT_MEMBER_CLIENT_TOKEN,
  191    191   
        &CREATENATGATEWAYINPUT_MEMBER_DRY_RUN,
  192    192   
        &CREATENATGATEWAYINPUT_MEMBER_SUBNET_ID,
@@ -240,240 +382,371 @@
  260    260   
            )?;
  261    261   
        }
  262    262   
        if let Some(ref val) = self.secondary_private_ip_address_count {
  263    263   
            ser.write_integer(&CREATENATGATEWAYINPUT_MEMBER_SECONDARY_PRIVATE_IP_ADDRESS_COUNT, *val)?;
  264    264   
        }
  265    265   
        Ok(())
  266    266   
    }
  267    267   
}
  268    268   
impl CreateNatGatewayInput {
  269    269   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  270         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  271         -
        deserializer: &mut D,
         270  +
    pub fn deserialize(
         271  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  272    272   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  273    273   
        #[allow(unused_variables, unused_mut)]
  274    274   
        let mut builder = Self::builder();
  275    275   
        #[allow(
  276    276   
            unused_variables,
  277    277   
            unreachable_code,
  278    278   
            clippy::single_match,
  279    279   
            clippy::match_single_binding,
  280    280   
            clippy::diverging_sub_expression
  281    281   
        )]
  282         -
        deserializer.read_struct(&CREATENATGATEWAYINPUT_SCHEMA, (), |_, member, deser| {
         282  +
        deserializer.read_struct(&CREATENATGATEWAYINPUT_SCHEMA, &mut |member, deser| {
  283    283   
            match member.member_index() {
  284    284   
                Some(0) => {
  285    285   
                    builder.allocation_id = Some(deser.read_string(member)?);
  286    286   
                }
  287    287   
                Some(1) => {
  288    288   
                    builder.client_token = Some(deser.read_string(member)?);
  289    289   
                }
  290    290   
                Some(2) => {
  291    291   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  292    292   
                }
  293    293   
                Some(3) => {
  294    294   
                    builder.subnet_id = Some(deser.read_string(member)?);
  295    295   
                }
  296    296   
                Some(4) => {
  297    297   
                    builder.tag_specifications = Some({
  298         -
                        let container = if let Some(cap) = deser.container_size() {
  299         -
                            Vec::with_capacity(cap)
  300         -
                        } else {
  301         -
                            Vec::new()
  302         -
                        };
  303         -
                        deser.read_list(member, container, |mut list, deser| {
  304         -
                            list.push(crate::types::TagSpecification::deserialize(deser)?);
  305         -
                            Ok(list)
  306         -
                        })?
         298  +
                        let mut container = Vec::new();
         299  +
                        deser.read_list(member, &mut |deser| {
         300  +
                            container.push(crate::types::TagSpecification::deserialize(deser)?);
         301  +
                            Ok(())
         302  +
                        })?;
         303  +
                        container
  307    304   
                    });
  308    305   
                }
  309    306   
                Some(5) => {
  310    307   
                    builder.connectivity_type = Some(crate::types::ConnectivityType::from(deser.read_string(member)?.as_str()));
  311    308   
                }
  312    309   
                Some(6) => {
  313    310   
                    builder.private_ip_address = Some(deser.read_string(member)?);
  314    311   
                }
  315    312   
                Some(7) => {
  316         -
                    builder.secondary_allocation_ids = Some({
  317         -
                        let container = if let Some(cap) = deser.container_size() {
  318         -
                            Vec::with_capacity(cap)
  319         -
                        } else {
  320         -
                            Vec::new()
  321         -
                        };
  322         -
                        deser.read_list(member, container, |mut list, deser| {
  323         -
                            list.push(deser.read_string(member)?);
  324         -
                            Ok(list)
  325         -
                        })?
  326         -
                    });
         313  +
                    builder.secondary_allocation_ids = Some(deser.read_string_list(member)?);
  327    314   
                }
  328    315   
                Some(8) => {
  329         -
                    builder.secondary_private_ip_addresses = Some({
  330         -
                        let container = if let Some(cap) = deser.container_size() {
  331         -
                            Vec::with_capacity(cap)
  332         -
                        } else {
  333         -
                            Vec::new()
  334         -
                        };
  335         -
                        deser.read_list(member, container, |mut list, deser| {
  336         -
                            list.push(deser.read_string(member)?);
  337         -
                            Ok(list)
  338         -
                        })?
  339         -
                    });
         316  +
                    builder.secondary_private_ip_addresses = Some(deser.read_string_list(member)?);
  340    317   
                }
  341    318   
                Some(9) => {
  342    319   
                    builder.secondary_private_ip_address_count = Some(deser.read_integer(member)?);
  343    320   
                }
  344    321   
                _ => {}
  345    322   
            }
  346    323   
            Ok(())
  347    324   
        })?;
         325  +
        builder.subnet_id = builder.subnet_id.or(Some(String::new()));
  348    326   
        builder
  349    327   
            .build()
  350    328   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  351    329   
    }
  352    330   
}
         331  +
impl CreateNatGatewayInput {
         332  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         333  +
    pub fn deserialize_with_response(
         334  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         335  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         336  +
        _status: u16,
         337  +
        _body: &[u8],
         338  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         339  +
        Self::deserialize(deserializer)
         340  +
    }
         341  +
}
  353    342   
impl CreateNatGatewayInput {
  354    343   
    /// Creates a new builder-style object to manufacture [`CreateNatGatewayInput`](crate::operation::create_nat_gateway::CreateNatGatewayInput).
  355    344   
    pub fn builder() -> crate::operation::create_nat_gateway::builders::CreateNatGatewayInputBuilder {
  356    345   
        crate::operation::create_nat_gateway::builders::CreateNatGatewayInputBuilder::default()
  357    346   
    }
  358    347   
}
  359    348   
  360    349   
/// A builder for [`CreateNatGatewayInput`](crate::operation::create_nat_gateway::CreateNatGatewayInput).
  361    350   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  362    351   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_nat_gateway/_create_nat_gateway_output.rs

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

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `CreateNetworkAcl`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateNetworkAcl;
    6      6   
impl CreateNetworkAcl {
    7      7   
    /// Creates a new `CreateNetworkAcl`
    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_network_acl::CreateNetworkAclInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::create_network_acl::CreateNetworkAclOutput::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_network_acl::CreateNetworkAclInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::create_network_acl::CreateNetworkAclOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::create_network_acl::CreateNetworkAclError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -122,126 +184,189 @@
  142    146   
                crate::operation::create_network_acl::CreateNetworkAclError,
  143    147   
            >::new());
  144    148   
  145    149   
        ::std::borrow::Cow::Owned(rcb)
  146    150   
    }
  147    151   
}
  148    152   
  149    153   
#[derive(Debug)]
  150    154   
struct CreateNetworkAclResponseDeserializer;
  151    155   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateNetworkAclResponseDeserializer {
  152         -
    fn deserialize_nonstreaming(
         156  +
    fn deserialize_nonstreaming_with_config(
  153    157   
        &self,
  154    158   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         159  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  155    160   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  156    161   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  157    162   
        let headers = response.headers();
  158    163   
        let body = response.body().bytes().expect("body loaded");
  159    164   
        #[allow(unused_mut)]
  160    165   
        let mut force_error = false;
  161    166   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  162    167   
        let parse_result = if !success && status != 200 || force_error {
  163    168   
            crate::protocol_serde::shape_create_network_acl::de_create_network_acl_http_error(status, headers, body)
  164    169   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_network_acl/_create_network_acl_input.rs

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