AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_launch_template_version.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 `CreateLaunchTemplateVersion`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateLaunchTemplateVersion;
    6      6   
impl CreateLaunchTemplateVersion {
    7      7   
    /// Creates a new `CreateLaunchTemplateVersion`
    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_launch_template_version::CreateLaunchTemplateVersionInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::create_launch_template_version::CreateLaunchTemplateVersionOutput::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_launch_template_version::CreateLaunchTemplateVersionInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::create_launch_template_version::CreateLaunchTemplateVersionOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -127,133 +189,196 @@
  147    153   
                crate::operation::create_launch_template_version::CreateLaunchTemplateVersionError,
  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 CreateLaunchTemplateVersionResponseDeserializer;
  156    162   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateLaunchTemplateVersionResponseDeserializer {
  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_launch_template_version::de_create_launch_template_version_http_error(status, headers, body)
  169    176   
        } else {

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

@@ -53,53 +285,296 @@
   73     73   
    "com.amazonaws.ec2.synthetic",
   74     74   
    "CreateLaunchTemplateVersionInput",
   75     75   
);
   76     76   
static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   77     77   
    ::aws_smithy_schema::ShapeId::from_static(
   78     78   
        "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$DryRun",
   79     79   
        "com.amazonaws.ec2.synthetic",
   80     80   
        "CreateLaunchTemplateVersionInput",
   81     81   
    ),
   82     82   
    ::aws_smithy_schema::ShapeType::Boolean,
   83         -
    "dry_run",
          83  +
    "DryRun",
   84     84   
    0,
   85     85   
);
   86     86   
static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   87     87   
    ::aws_smithy_schema::ShapeId::from_static(
   88     88   
        "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$ClientToken",
   89     89   
        "com.amazonaws.ec2.synthetic",
   90     90   
        "CreateLaunchTemplateVersionInput",
   91     91   
    ),
   92     92   
    ::aws_smithy_schema::ShapeType::String,
   93         -
    "client_token",
          93  +
    "ClientToken",
   94     94   
    1,
   95     95   
);
   96     96   
static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   97     97   
    ::aws_smithy_schema::ShapeId::from_static(
   98     98   
        "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$LaunchTemplateId",
   99     99   
        "com.amazonaws.ec2.synthetic",
  100    100   
        "CreateLaunchTemplateVersionInput",
  101    101   
    ),
  102    102   
    ::aws_smithy_schema::ShapeType::String,
  103         -
    "launch_template_id",
         103  +
    "LaunchTemplateId",
  104    104   
    2,
  105    105   
);
  106    106   
static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  107    107   
    ::aws_smithy_schema::ShapeId::from_static(
  108    108   
        "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$LaunchTemplateName",
  109    109   
        "com.amazonaws.ec2.synthetic",
  110    110   
        "CreateLaunchTemplateVersionInput",
  111    111   
    ),
  112    112   
    ::aws_smithy_schema::ShapeType::String,
  113         -
    "launch_template_name",
         113  +
    "LaunchTemplateName",
  114    114   
    3,
  115    115   
);
  116    116   
static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_SOURCE_VERSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  117    117   
    ::aws_smithy_schema::ShapeId::from_static(
  118    118   
        "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$SourceVersion",
  119    119   
        "com.amazonaws.ec2.synthetic",
  120    120   
        "CreateLaunchTemplateVersionInput",
  121    121   
    ),
  122    122   
    ::aws_smithy_schema::ShapeType::String,
  123         -
    "source_version",
         123  +
    "SourceVersion",
  124    124   
    4,
  125    125   
);
  126    126   
static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_VERSION_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  127    127   
    ::aws_smithy_schema::ShapeId::from_static(
  128    128   
        "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$VersionDescription",
  129    129   
        "com.amazonaws.ec2.synthetic",
  130    130   
        "CreateLaunchTemplateVersionInput",
  131    131   
    ),
  132    132   
    ::aws_smithy_schema::ShapeType::String,
  133         -
    "version_description",
         133  +
    "VersionDescription",
  134    134   
    5,
  135    135   
);
  136    136   
static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_DATA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  137    137   
    ::aws_smithy_schema::ShapeId::from_static(
  138    138   
        "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$LaunchTemplateData",
  139    139   
        "com.amazonaws.ec2.synthetic",
  140    140   
        "CreateLaunchTemplateVersionInput",
  141    141   
    ),
  142    142   
    ::aws_smithy_schema::ShapeType::Structure,
  143         -
    "launch_template_data",
         143  +
    "LaunchTemplateData",
  144    144   
    6,
  145    145   
);
  146    146   
static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_RESOLVE_ALIAS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  147    147   
    ::aws_smithy_schema::ShapeId::from_static(
  148    148   
        "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$ResolveAlias",
  149    149   
        "com.amazonaws.ec2.synthetic",
  150    150   
        "CreateLaunchTemplateVersionInput",
  151    151   
    ),
  152    152   
    ::aws_smithy_schema::ShapeType::Boolean,
  153         -
    "resolve_alias",
         153  +
    "ResolveAlias",
  154    154   
    7,
  155    155   
);
  156    156   
static CREATELAUNCHTEMPLATEVERSIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  157    157   
    CREATELAUNCHTEMPLATEVERSIONINPUT_SCHEMA_ID,
  158    158   
    ::aws_smithy_schema::ShapeType::Structure,
  159    159   
    &[
  160    160   
        &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_DRY_RUN,
  161    161   
        &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_CLIENT_TOKEN,
  162    162   
        &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_ID,
  163    163   
        &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_NAME,
  164    164   
        &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_SOURCE_VERSION,
  165    165   
        &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_VERSION_DESCRIPTION,
  166    166   
        &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_DATA,
  167    167   
        &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_RESOLVE_ALIAS,
  168    168   
    ],
  169    169   
);
  170    170   
impl CreateLaunchTemplateVersionInput {
  171    171   
    /// The schema for this shape.
  172    172   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATELAUNCHTEMPLATEVERSIONINPUT_SCHEMA;
  173    173   
}
  174    174   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateLaunchTemplateVersionInput {
  175    175   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  176    176   
    fn serialize_members(
  177    177   
        &self,
  178    178   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  179    179   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  180    180   
        if let Some(ref val) = self.dry_run {
  181    181   
            ser.write_boolean(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_DRY_RUN, *val)?;
  182    182   
        }
  183    183   
        if let Some(ref val) = self.client_token {
  184    184   
            ser.write_string(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_CLIENT_TOKEN, val)?;
  185    185   
        }
  186    186   
        if let Some(ref val) = self.launch_template_id {
  187    187   
            ser.write_string(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_ID, val)?;
  188    188   
        }
  189    189   
        if let Some(ref val) = self.launch_template_name {
  190    190   
            ser.write_string(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_NAME, val)?;
  191    191   
        }
  192    192   
        if let Some(ref val) = self.source_version {
  193    193   
            ser.write_string(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_SOURCE_VERSION, val)?;
  194    194   
        }
  195    195   
        if let Some(ref val) = self.version_description {
  196    196   
            ser.write_string(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_VERSION_DESCRIPTION, val)?;
  197    197   
        }
  198    198   
        if let Some(ref val) = self.launch_template_data {
  199    199   
            ser.write_struct(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_DATA, val)?;
  200    200   
        }
  201    201   
        if let Some(ref val) = self.resolve_alias {
  202    202   
            ser.write_boolean(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_RESOLVE_ALIAS, *val)?;
  203    203   
        }
  204    204   
        Ok(())
  205    205   
    }
  206    206   
}
  207    207   
impl CreateLaunchTemplateVersionInput {
  208    208   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  209         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  210         -
        deserializer: &mut D,
         209  +
    pub fn deserialize(
         210  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  211    211   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  212    212   
        #[allow(unused_variables, unused_mut)]
  213    213   
        let mut builder = Self::builder();
  214    214   
        #[allow(
  215    215   
            unused_variables,
  216    216   
            unreachable_code,
  217    217   
            clippy::single_match,
  218    218   
            clippy::match_single_binding,
  219    219   
            clippy::diverging_sub_expression
  220    220   
        )]
  221         -
        deserializer.read_struct(&CREATELAUNCHTEMPLATEVERSIONINPUT_SCHEMA, (), |_, member, deser| {
         221  +
        deserializer.read_struct(&CREATELAUNCHTEMPLATEVERSIONINPUT_SCHEMA, &mut |member, deser| {
  222    222   
            match member.member_index() {
  223    223   
                Some(0) => {
  224    224   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  225    225   
                }
  226    226   
                Some(1) => {
  227    227   
                    builder.client_token = Some(deser.read_string(member)?);
  228    228   
                }
  229    229   
                Some(2) => {
  230    230   
                    builder.launch_template_id = Some(deser.read_string(member)?);
  231    231   
                }
  232    232   
                Some(3) => {
  233    233   
                    builder.launch_template_name = Some(deser.read_string(member)?);
  234    234   
                }
  235    235   
                Some(4) => {
  236    236   
                    builder.source_version = Some(deser.read_string(member)?);
  237    237   
                }
  238    238   
                Some(5) => {
  239    239   
                    builder.version_description = Some(deser.read_string(member)?);
  240    240   
                }
  241    241   
                Some(6) => {
  242    242   
                    builder.launch_template_data = Some(crate::types::RequestLaunchTemplateData::deserialize(deser)?);
  243    243   
                }
  244    244   
                Some(7) => {
  245    245   
                    builder.resolve_alias = Some(deser.read_boolean(member)?);
  246    246   
                }
  247    247   
                _ => {}
  248    248   
            }
  249    249   
            Ok(())
  250    250   
        })?;
  251    251   
        builder
  252    252   
            .build()
  253    253   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  254    254   
    }
  255    255   
}
         256  +
impl CreateLaunchTemplateVersionInput {
         257  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         258  +
    pub fn deserialize_with_response(
         259  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         260  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         261  +
        _status: u16,
         262  +
        _body: &[u8],
         263  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         264  +
        Self::deserialize(deserializer)
         265  +
    }
         266  +
}
  256    267   
impl CreateLaunchTemplateVersionInput {
  257    268   
    /// Creates a new builder-style object to manufacture [`CreateLaunchTemplateVersionInput`](crate::operation::create_launch_template_version::CreateLaunchTemplateVersionInput).
  258    269   
    pub fn builder() -> crate::operation::create_launch_template_version::builders::CreateLaunchTemplateVersionInputBuilder {
  259    270   
        crate::operation::create_launch_template_version::builders::CreateLaunchTemplateVersionInputBuilder::default()
  260    271   
    }
  261    272   
}
  262    273   
  263    274   
/// A builder for [`CreateLaunchTemplateVersionInput`](crate::operation::create_launch_template_version::CreateLaunchTemplateVersionInput).
  264    275   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  265    276   
#[non_exhaustive]

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

@@ -4,4 +120,168 @@
   24     24   
    "com.amazonaws.ec2.synthetic",
   25     25   
    "CreateLaunchTemplateVersionOutput",
   26     26   
);
   27     27   
static CREATELAUNCHTEMPLATEVERSIONOUTPUT_MEMBER_LAUNCH_TEMPLATE_VERSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   28     28   
    ::aws_smithy_schema::ShapeId::from_static(
   29     29   
        "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionOutput$LaunchTemplateVersion",
   30     30   
        "com.amazonaws.ec2.synthetic",
   31     31   
        "CreateLaunchTemplateVersionOutput",
   32     32   
    ),
   33     33   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    "launch_template_version",
          34  +
    "LaunchTemplateVersion",
   35     35   
    0,
   36     36   
)
   37     37   
.with_xml_name("launchTemplateVersion");
   38     38   
static CREATELAUNCHTEMPLATEVERSIONOUTPUT_MEMBER_WARNING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionOutput$Warning",
   41     41   
        "com.amazonaws.ec2.synthetic",
   42     42   
        "CreateLaunchTemplateVersionOutput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::Structure,
   45         -
    "warning",
          45  +
    "Warning",
   46     46   
    1,
   47     47   
)
   48     48   
.with_xml_name("warning");
          49  +
static CREATELAUNCHTEMPLATEVERSIONOUTPUT_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 CREATELAUNCHTEMPLATEVERSIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    CREATELAUNCHTEMPLATEVERSIONOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52     59   
    &[
   53     60   
        &CREATELAUNCHTEMPLATEVERSIONOUTPUT_MEMBER_LAUNCH_TEMPLATE_VERSION,
   54     61   
        &CREATELAUNCHTEMPLATEVERSIONOUTPUT_MEMBER_WARNING,
          62  +
        &CREATELAUNCHTEMPLATEVERSIONOUTPUT_MEMBER__REQUEST_ID,
   55     63   
    ],
   56     64   
);
   57     65   
impl CreateLaunchTemplateVersionOutput {
   58     66   
    /// The schema for this shape.
   59     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATELAUNCHTEMPLATEVERSIONOUTPUT_SCHEMA;
   60     68   
}
   61     69   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateLaunchTemplateVersionOutput {
   62     70   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   63     71   
    fn serialize_members(
   64     72   
        &self,
   65     73   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   66     74   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   67     75   
        if let Some(ref val) = self.launch_template_version {
   68     76   
            ser.write_struct(&CREATELAUNCHTEMPLATEVERSIONOUTPUT_MEMBER_LAUNCH_TEMPLATE_VERSION, val)?;
   69     77   
        }
   70     78   
        if let Some(ref val) = self.warning {
   71     79   
            ser.write_struct(&CREATELAUNCHTEMPLATEVERSIONOUTPUT_MEMBER_WARNING, val)?;
   72     80   
        }
   73     81   
        Ok(())
   74     82   
    }
   75     83   
}
   76     84   
impl CreateLaunchTemplateVersionOutput {
   77     85   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   78         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   79         -
        deserializer: &mut D,
          86  +
    pub fn deserialize(
          87  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          88  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          89  +
        #[allow(unused_variables, unused_mut)]
          90  +
        let mut builder = Self::builder();
          91  +
        #[allow(
          92  +
            unused_variables,
          93  +
            unreachable_code,
          94  +
            clippy::single_match,
          95  +
            clippy::match_single_binding,
          96  +
            clippy::diverging_sub_expression
          97  +
        )]
          98  +
        deserializer.read_struct(&CREATELAUNCHTEMPLATEVERSIONOUTPUT_SCHEMA, &mut |member, deser| {
          99  +
            match member.member_index() {
         100  +
                Some(0) => {
         101  +
                    builder.launch_template_version = Some(crate::types::LaunchTemplateVersion::deserialize(deser)?);
         102  +
                }
         103  +
                Some(1) => {
         104  +
                    builder.warning = Some(crate::types::ValidationWarning::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 CreateLaunchTemplateVersionOutput {
         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],
   80    125   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   81    126   
        #[allow(unused_variables, unused_mut)]
   82    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  +
        }
   83    131   
        #[allow(
   84    132   
            unused_variables,
   85    133   
            unreachable_code,
   86    134   
            clippy::single_match,
   87    135   
            clippy::match_single_binding,
   88    136   
            clippy::diverging_sub_expression
   89    137   
        )]
   90         -
        deserializer.read_struct(&CREATELAUNCHTEMPLATEVERSIONOUTPUT_SCHEMA, (), |_, member, deser| {
         138  +
        deserializer.read_struct(&CREATELAUNCHTEMPLATEVERSIONOUTPUT_SCHEMA, &mut |member, deser| {
   91    139   
            match member.member_index() {
   92    140   
                Some(0) => {
   93    141   
                    builder.launch_template_version = Some(crate::types::LaunchTemplateVersion::deserialize(deser)?);
   94    142   
                }
   95    143   
                Some(1) => {
   96    144   
                    builder.warning = Some(crate::types::ValidationWarning::deserialize(deser)?);
   97    145   
                }
   98    146   
                _ => {}
   99    147   
            }
  100    148   
            Ok(())

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

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

@@ -27,27 +226,238 @@
   47     47   
    "com.amazonaws.ec2.synthetic",
   48     48   
    "CreateLocalGatewayRouteInput",
   49     49   
);
   50     50   
static CREATELOCALGATEWAYROUTEINPUT_MEMBER_DESTINATION_CIDR_BLOCK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   51     51   
    ::aws_smithy_schema::ShapeId::from_static(
   52     52   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayRouteInput$DestinationCidrBlock",
   53     53   
        "com.amazonaws.ec2.synthetic",
   54     54   
        "CreateLocalGatewayRouteInput",
   55     55   
    ),
   56     56   
    ::aws_smithy_schema::ShapeType::String,
   57         -
    "destination_cidr_block",
          57  +
    "DestinationCidrBlock",
   58     58   
    0,
   59     59   
);
   60     60   
static CREATELOCALGATEWAYROUTEINPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   61     61   
    ::aws_smithy_schema::ShapeId::from_static(
   62     62   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayRouteInput$LocalGatewayRouteTableId",
   63     63   
        "com.amazonaws.ec2.synthetic",
   64     64   
        "CreateLocalGatewayRouteInput",
   65     65   
    ),
   66     66   
    ::aws_smithy_schema::ShapeType::String,
   67         -
    "local_gateway_route_table_id",
          67  +
    "LocalGatewayRouteTableId",
   68     68   
    1,
   69     69   
);
   70     70   
static CREATELOCALGATEWAYROUTEINPUT_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#CreateLocalGatewayRouteInput$LocalGatewayVirtualInterfaceGroupId",
   74     74   
            "com.amazonaws.ec2.synthetic",
   75     75   
            "CreateLocalGatewayRouteInput",
   76     76   
        ),
   77     77   
        ::aws_smithy_schema::ShapeType::String,
   78         -
        "local_gateway_virtual_interface_group_id",
          78  +
        "LocalGatewayVirtualInterfaceGroupId",
   79     79   
        2,
   80     80   
    );
   81     81   
static CREATELOCALGATEWAYROUTEINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   82     82   
    ::aws_smithy_schema::ShapeId::from_static(
   83     83   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayRouteInput$DryRun",
   84     84   
        "com.amazonaws.ec2.synthetic",
   85     85   
        "CreateLocalGatewayRouteInput",
   86     86   
    ),
   87     87   
    ::aws_smithy_schema::ShapeType::Boolean,
   88         -
    "dry_run",
          88  +
    "DryRun",
   89     89   
    3,
   90     90   
);
   91     91   
static CREATELOCALGATEWAYROUTEINPUT_MEMBER_NETWORK_INTERFACE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   92     92   
    ::aws_smithy_schema::ShapeId::from_static(
   93     93   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayRouteInput$NetworkInterfaceId",
   94     94   
        "com.amazonaws.ec2.synthetic",
   95     95   
        "CreateLocalGatewayRouteInput",
   96     96   
    ),
   97     97   
    ::aws_smithy_schema::ShapeType::String,
   98         -
    "network_interface_id",
          98  +
    "NetworkInterfaceId",
   99     99   
    4,
  100    100   
);
  101    101   
static CREATELOCALGATEWAYROUTEINPUT_MEMBER_DESTINATION_PREFIX_LIST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  102    102   
    ::aws_smithy_schema::ShapeId::from_static(
  103    103   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayRouteInput$DestinationPrefixListId",
  104    104   
        "com.amazonaws.ec2.synthetic",
  105    105   
        "CreateLocalGatewayRouteInput",
  106    106   
    ),
  107    107   
    ::aws_smithy_schema::ShapeType::String,
  108         -
    "destination_prefix_list_id",
         108  +
    "DestinationPrefixListId",
  109    109   
    5,
  110    110   
);
  111    111   
static CREATELOCALGATEWAYROUTEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  112    112   
    CREATELOCALGATEWAYROUTEINPUT_SCHEMA_ID,
  113    113   
    ::aws_smithy_schema::ShapeType::Structure,
  114    114   
    &[
  115    115   
        &CREATELOCALGATEWAYROUTEINPUT_MEMBER_DESTINATION_CIDR_BLOCK,
  116    116   
        &CREATELOCALGATEWAYROUTEINPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE_ID,
  117    117   
        &CREATELOCALGATEWAYROUTEINPUT_MEMBER_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP_ID,
  118    118   
        &CREATELOCALGATEWAYROUTEINPUT_MEMBER_DRY_RUN,
  119    119   
        &CREATELOCALGATEWAYROUTEINPUT_MEMBER_NETWORK_INTERFACE_ID,
  120    120   
        &CREATELOCALGATEWAYROUTEINPUT_MEMBER_DESTINATION_PREFIX_LIST_ID,
  121    121   
    ],
  122    122   
);
  123    123   
impl CreateLocalGatewayRouteInput {
  124    124   
    /// The schema for this shape.
  125    125   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATELOCALGATEWAYROUTEINPUT_SCHEMA;
  126    126   
}
  127    127   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateLocalGatewayRouteInput {
  128    128   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  129    129   
    fn serialize_members(
  130    130   
        &self,
  131    131   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  132    132   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  133    133   
        if let Some(ref val) = self.destination_cidr_block {
  134    134   
            ser.write_string(&CREATELOCALGATEWAYROUTEINPUT_MEMBER_DESTINATION_CIDR_BLOCK, val)?;
  135    135   
        }
  136    136   
        if let Some(ref val) = self.local_gateway_route_table_id {
  137    137   
            ser.write_string(&CREATELOCALGATEWAYROUTEINPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE_ID, val)?;
  138    138   
        }
  139    139   
        if let Some(ref val) = self.local_gateway_virtual_interface_group_id {
  140    140   
            ser.write_string(&CREATELOCALGATEWAYROUTEINPUT_MEMBER_LOCAL_GATEWAY_VIRTUAL_INTERFACE_GROUP_ID, val)?;
  141    141   
        }
  142    142   
        if let Some(ref val) = self.dry_run {
  143    143   
            ser.write_boolean(&CREATELOCALGATEWAYROUTEINPUT_MEMBER_DRY_RUN, *val)?;
  144    144   
        }
  145    145   
        if let Some(ref val) = self.network_interface_id {
  146    146   
            ser.write_string(&CREATELOCALGATEWAYROUTEINPUT_MEMBER_NETWORK_INTERFACE_ID, val)?;
  147    147   
        }
  148    148   
        if let Some(ref val) = self.destination_prefix_list_id {
  149    149   
            ser.write_string(&CREATELOCALGATEWAYROUTEINPUT_MEMBER_DESTINATION_PREFIX_LIST_ID, val)?;
  150    150   
        }
  151    151   
        Ok(())
  152    152   
    }
  153    153   
}
  154    154   
impl CreateLocalGatewayRouteInput {
  155    155   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  156         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  157         -
        deserializer: &mut D,
         156  +
    pub fn deserialize(
         157  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  158    158   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  159    159   
        #[allow(unused_variables, unused_mut)]
  160    160   
        let mut builder = Self::builder();
  161    161   
        #[allow(
  162    162   
            unused_variables,
  163    163   
            unreachable_code,
  164    164   
            clippy::single_match,
  165    165   
            clippy::match_single_binding,
  166    166   
            clippy::diverging_sub_expression
  167    167   
        )]
  168         -
        deserializer.read_struct(&CREATELOCALGATEWAYROUTEINPUT_SCHEMA, (), |_, member, deser| {
         168  +
        deserializer.read_struct(&CREATELOCALGATEWAYROUTEINPUT_SCHEMA, &mut |member, deser| {
  169    169   
            match member.member_index() {
  170    170   
                Some(0) => {
  171    171   
                    builder.destination_cidr_block = Some(deser.read_string(member)?);
  172    172   
                }
  173    173   
                Some(1) => {
  174    174   
                    builder.local_gateway_route_table_id = Some(deser.read_string(member)?);
  175    175   
                }
  176    176   
                Some(2) => {
  177    177   
                    builder.local_gateway_virtual_interface_group_id = Some(deser.read_string(member)?);
  178    178   
                }
  179    179   
                Some(3) => {
  180    180   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  181    181   
                }
  182    182   
                Some(4) => {
  183    183   
                    builder.network_interface_id = Some(deser.read_string(member)?);
  184    184   
                }
  185    185   
                Some(5) => {
  186    186   
                    builder.destination_prefix_list_id = Some(deser.read_string(member)?);
  187    187   
                }
  188    188   
                _ => {}
  189    189   
            }
  190    190   
            Ok(())
  191    191   
        })?;
         192  +
        builder.local_gateway_route_table_id = builder.local_gateway_route_table_id.or(Some(String::new()));
  192    193   
        builder
  193    194   
            .build()
  194    195   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  195    196   
    }
  196    197   
}
         198  +
impl CreateLocalGatewayRouteInput {
         199  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         200  +
    pub fn deserialize_with_response(
         201  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         202  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         203  +
        _status: u16,
         204  +
        _body: &[u8],
         205  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         206  +
        Self::deserialize(deserializer)
         207  +
    }
         208  +
}
  197    209   
impl CreateLocalGatewayRouteInput {
  198    210   
    /// Creates a new builder-style object to manufacture [`CreateLocalGatewayRouteInput`](crate::operation::create_local_gateway_route::CreateLocalGatewayRouteInput).
  199    211   
    pub fn builder() -> crate::operation::create_local_gateway_route::builders::CreateLocalGatewayRouteInputBuilder {
  200    212   
        crate::operation::create_local_gateway_route::builders::CreateLocalGatewayRouteInputBuilder::default()
  201    213   
    }
  202    214   
}
  203    215   
  204    216   
/// A builder for [`CreateLocalGatewayRouteInput`](crate::operation::create_local_gateway_route::CreateLocalGatewayRouteInput).
  205    217   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  206    218   
#[non_exhaustive]

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

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

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

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

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

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "CreateLocalGatewayRouteTableOutput",
   20     20   
);
   21     21   
static CREATELOCALGATEWAYROUTETABLEOUTPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayRouteTableOutput$LocalGatewayRouteTable",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "CreateLocalGatewayRouteTableOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "local_gateway_route_table",
          28  +
    "LocalGatewayRouteTable",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_name("localGatewayRouteTable");
          32  +
static CREATELOCALGATEWAYROUTETABLEOUTPUT_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 CREATELOCALGATEWAYROUTETABLEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    CREATELOCALGATEWAYROUTETABLEOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&CREATELOCALGATEWAYROUTETABLEOUTPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE],
          42  +
    &[
          43  +
        &CREATELOCALGATEWAYROUTETABLEOUTPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE,
          44  +
        &CREATELOCALGATEWAYROUTETABLEOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl CreateLocalGatewayRouteTableOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATELOCALGATEWAYROUTETABLEOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateLocalGatewayRouteTableOutput {
   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.local_gateway_route_table {
   48     58   
            ser.write_struct(&CREATELOCALGATEWAYROUTETABLEOUTPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl CreateLocalGatewayRouteTableOutput {
   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(&CREATELOCALGATEWAYROUTETABLEOUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&CREATELOCALGATEWAYROUTETABLEOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.local_gateway_route_table = Some(crate::types::LocalGatewayRouteTable::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 CreateLocalGatewayRouteTableOutput {
          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(&CREATELOCALGATEWAYROUTETABLEOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.local_gateway_route_table = Some(crate::types::LocalGatewayRouteTable::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_local_gateway_route_table_virtual_interface_group_association.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 `CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation;
    6      6   
impl CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation {
    7      7   
    /// Creates a new `CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation`
    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_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput::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_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput,
   14     18   
    ) -> ::std::result::Result<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>>{
   15     19   
        let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
   16     20   
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
   17     21   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   18     22   
        >| {
   19     23   
            err.map_service_error(|err| {
   20     24   
                                err.downcast::<crate::operation::create_local_gateway_route_table_virtual_interface_group_association::CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationError>().expect("correct error type")
@@ -109,113 +171,176 @@
  129    133   
  130    134   
        ::std::borrow::Cow::Owned(rcb)
  131    135   
    }
  132    136   
}
  133    137   
  134    138   
#[derive(Debug)]
  135    139   
struct CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResponseDeserializer;
  136    140   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse
  137    141   
    for CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResponseDeserializer
  138    142   
{
  139         -
    fn deserialize_nonstreaming(
         143  +
    fn deserialize_nonstreaming_with_config(
  140    144   
        &self,
  141    145   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         146  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  142    147   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  143    148   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  144    149   
        let headers = response.headers();
  145    150   
        let body = response.body().bytes().expect("body loaded");
  146    151   
        #[allow(unused_mut)]
  147    152   
        let mut force_error = false;
  148    153   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  149    154   
        let parse_result = if !success && status != 200 || force_error {
  150    155   
            crate::protocol_serde::shape_create_local_gateway_route_table_virtual_interface_group_association::de_create_local_gateway_route_table_virtual_interface_group_association_http_error(status, headers, body)
  151    156   
        } else {

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/create_local_gateway_route_table_vpc_association.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 `CreateLocalGatewayRouteTableVpcAssociation`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateLocalGatewayRouteTableVpcAssociation;
    6      6   
impl CreateLocalGatewayRouteTableVpcAssociation {
    7      7   
    /// Creates a new `CreateLocalGatewayRouteTableVpcAssociation`
    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_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationInput::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_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationOutput::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_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -125,131 +187,194 @@
  145    151   
                    crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationError,
  146    152   
                >::new());
  147    153   
  148    154   
        ::std::borrow::Cow::Owned(rcb)
  149    155   
    }
  150    156   
}
  151    157   
  152    158   
#[derive(Debug)]
  153    159   
struct CreateLocalGatewayRouteTableVpcAssociationResponseDeserializer;
  154    160   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateLocalGatewayRouteTableVpcAssociationResponseDeserializer {
  155         -
    fn deserialize_nonstreaming(
         161  +
    fn deserialize_nonstreaming_with_config(
  156    162   
        &self,
  157    163   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         164  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  158    165   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  159    166   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  160    167   
        let headers = response.headers();
  161    168   
        let body = response.body().bytes().expect("body loaded");
  162    169   
        #[allow(unused_mut)]
  163    170   
        let mut force_error = false;
  164    171   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  165    172   
        let parse_result = if !success && status != 200 || force_error {
  166    173   
            crate::protocol_serde::shape_create_local_gateway_route_table_vpc_association::de_create_local_gateway_route_table_vpc_association_http_error(status, headers, body)
  167    174   
        } else {

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

@@ -18,18 +202,212 @@
   38     38   
    "CreateLocalGatewayRouteTableVpcAssociationInput",
   39     39   
);
   40     40   
static CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE_ID: ::aws_smithy_schema::Schema =
   41     41   
    ::aws_smithy_schema::Schema::new_member(
   42     42   
        ::aws_smithy_schema::ShapeId::from_static(
   43     43   
            "com.amazonaws.ec2.synthetic#CreateLocalGatewayRouteTableVpcAssociationInput$LocalGatewayRouteTableId",
   44     44   
            "com.amazonaws.ec2.synthetic",
   45     45   
            "CreateLocalGatewayRouteTableVpcAssociationInput",
   46     46   
        ),
   47     47   
        ::aws_smithy_schema::ShapeType::String,
   48         -
        "local_gateway_route_table_id",
          48  +
        "LocalGatewayRouteTableId",
   49     49   
        0,
   50     50   
    );
   51     51   
static CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_MEMBER_VPC_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   52     52   
    ::aws_smithy_schema::ShapeId::from_static(
   53     53   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayRouteTableVpcAssociationInput$VpcId",
   54     54   
        "com.amazonaws.ec2.synthetic",
   55     55   
        "CreateLocalGatewayRouteTableVpcAssociationInput",
   56     56   
    ),
   57     57   
    ::aws_smithy_schema::ShapeType::String,
   58         -
    "vpc_id",
          58  +
    "VpcId",
   59     59   
    1,
   60     60   
);
   61     61   
static CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_MEMBER_TAG_SPECIFICATIONS: ::aws_smithy_schema::Schema =
   62     62   
    ::aws_smithy_schema::Schema::new_member(
   63     63   
        ::aws_smithy_schema::ShapeId::from_static(
   64     64   
            "com.amazonaws.ec2.synthetic#CreateLocalGatewayRouteTableVpcAssociationInput$TagSpecifications",
   65     65   
            "com.amazonaws.ec2.synthetic",
   66     66   
            "CreateLocalGatewayRouteTableVpcAssociationInput",
   67     67   
        ),
   68     68   
        ::aws_smithy_schema::ShapeType::List,
   69         -
        "tag_specifications",
          69  +
        "TagSpecifications",
   70     70   
        2,
   71     71   
    )
   72     72   
    .with_xml_name("TagSpecification");
   73     73   
static CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   74     74   
    ::aws_smithy_schema::ShapeId::from_static(
   75     75   
        "com.amazonaws.ec2.synthetic#CreateLocalGatewayRouteTableVpcAssociationInput$DryRun",
   76     76   
        "com.amazonaws.ec2.synthetic",
   77     77   
        "CreateLocalGatewayRouteTableVpcAssociationInput",
   78     78   
    ),
   79     79   
    ::aws_smithy_schema::ShapeType::Boolean,
   80         -
    "dry_run",
          80  +
    "DryRun",
   81     81   
    3,
   82     82   
);
   83     83   
static CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   84     84   
    CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_SCHEMA_ID,
   85     85   
    ::aws_smithy_schema::ShapeType::Structure,
   86     86   
    &[
   87     87   
        &CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE_ID,
   88     88   
        &CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_MEMBER_VPC_ID,
   89     89   
        &CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_MEMBER_TAG_SPECIFICATIONS,
   90     90   
        &CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_MEMBER_DRY_RUN,
   91     91   
    ],
   92     92   
);
   93     93   
impl CreateLocalGatewayRouteTableVpcAssociationInput {
   94     94   
    /// The schema for this shape.
   95     95   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_SCHEMA;
   96     96   
}
   97     97   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateLocalGatewayRouteTableVpcAssociationInput {
   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.local_gateway_route_table_id {
  104    104   
            ser.write_string(&CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE_ID, val)?;
  105    105   
        }
  106    106   
        if let Some(ref val) = self.vpc_id {
  107    107   
            ser.write_string(&CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_MEMBER_VPC_ID, val)?;
  108    108   
        }
  109    109   
        if let Some(ref val) = self.tag_specifications {
  110    110   
            ser.write_list(
  111    111   
                &CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_MEMBER_TAG_SPECIFICATIONS,
  112    112   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  113    113   
                    for item in val {
  114    114   
                        ser.write_struct(crate::types::TagSpecification::SCHEMA, item)?;
  115    115   
                    }
  116    116   
                    Ok(())
  117    117   
                },
  118    118   
            )?;
  119    119   
        }
  120    120   
        if let Some(ref val) = self.dry_run {
  121    121   
            ser.write_boolean(&CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_MEMBER_DRY_RUN, *val)?;
  122    122   
        }
  123    123   
        Ok(())
  124    124   
    }
  125    125   
}
  126    126   
impl CreateLocalGatewayRouteTableVpcAssociationInput {
  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(&CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_SCHEMA, (), |_, member, deser| {
         140  +
        deserializer.read_struct(&CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONINPUT_SCHEMA, &mut |member, deser| {
  141    141   
            match member.member_index() {
  142    142   
                Some(0) => {
  143    143   
                    builder.local_gateway_route_table_id = Some(deser.read_string(member)?);
  144    144   
                }
  145    145   
                Some(1) => {
  146    146   
                    builder.vpc_id = Some(deser.read_string(member)?);
  147    147   
                }
  148    148   
                Some(2) => {
  149    149   
                    builder.tag_specifications = Some({
  150         -
                        let container = if let Some(cap) = deser.container_size() {
  151         -
                            Vec::with_capacity(cap)
  152         -
                        } else {
  153         -
                            Vec::new()
  154         -
                        };
  155         -
                        deser.read_list(member, container, |mut list, deser| {
  156         -
                            list.push(crate::types::TagSpecification::deserialize(deser)?);
  157         -
                            Ok(list)
  158         -
                        })?
         150  +
                        let mut container = Vec::new();
         151  +
                        deser.read_list(member, &mut |deser| {
         152  +
                            container.push(crate::types::TagSpecification::deserialize(deser)?);
         153  +
                            Ok(())
         154  +
                        })?;
         155  +
                        container
  159    156   
                    });
  160    157   
                }
  161    158   
                Some(3) => {
  162    159   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  163    160   
                }
  164    161   
                _ => {}
  165    162   
            }
  166    163   
            Ok(())
  167    164   
        })?;
         165  +
        builder.local_gateway_route_table_id = builder.local_gateway_route_table_id.or(Some(String::new()));
         166  +
        builder.vpc_id = builder.vpc_id.or(Some(String::new()));
  168    167   
        builder
  169    168   
            .build()
  170    169   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  171    170   
    }
  172    171   
}
         172  +
impl CreateLocalGatewayRouteTableVpcAssociationInput {
         173  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         174  +
    pub fn deserialize_with_response(
         175  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         176  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         177  +
        _status: u16,
         178  +
        _body: &[u8],
         179  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         180  +
        Self::deserialize(deserializer)
         181  +
    }
         182  +
}
  173    183   
impl CreateLocalGatewayRouteTableVpcAssociationInput {
  174    184   
    /// Creates a new builder-style object to manufacture [`CreateLocalGatewayRouteTableVpcAssociationInput`](crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationInput).
  175    185   
    pub fn builder(
  176    186   
    ) -> crate::operation::create_local_gateway_route_table_vpc_association::builders::CreateLocalGatewayRouteTableVpcAssociationInputBuilder {
  177    187   
        crate::operation::create_local_gateway_route_table_vpc_association::builders::CreateLocalGatewayRouteTableVpcAssociationInputBuilder::default(
  178    188   
        )
  179    189   
    }
  180    190   
}
  181    191   
  182    192   
/// A builder for [`CreateLocalGatewayRouteTableVpcAssociationInput`](crate::operation::create_local_gateway_route_table_vpc_association::CreateLocalGatewayRouteTableVpcAssociationInput).

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

@@ -1,1 +101,148 @@
   19     19   
    "CreateLocalGatewayRouteTableVpcAssociationOutput",
   20     20   
);
   21     21   
static CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONOUTPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION: ::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#CreateLocalGatewayRouteTableVpcAssociationOutput$LocalGatewayRouteTableVpcAssociation",
   25     25   
            "com.amazonaws.ec2.synthetic",
   26     26   
            "CreateLocalGatewayRouteTableVpcAssociationOutput",
   27     27   
        ),
   28     28   
        ::aws_smithy_schema::ShapeType::Structure,
   29         -
        "local_gateway_route_table_vpc_association",
          29  +
        "LocalGatewayRouteTableVpcAssociation",
   30     30   
        0,
   31     31   
    )
   32     32   
    .with_xml_name("localGatewayRouteTableVpcAssociation");
          33  +
static CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONOUTPUT_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 CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   34     41   
    CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONOUTPUT_SCHEMA_ID,
   35     42   
    ::aws_smithy_schema::ShapeType::Structure,
   36         -
    &[&CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONOUTPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION],
          43  +
    &[
          44  +
        &CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONOUTPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION,
          45  +
        &CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONOUTPUT_MEMBER__REQUEST_ID,
          46  +
    ],
   37     47   
);
   38     48   
impl CreateLocalGatewayRouteTableVpcAssociationOutput {
   39     49   
    /// The schema for this shape.
   40     50   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONOUTPUT_SCHEMA;
   41     51   
}
   42     52   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateLocalGatewayRouteTableVpcAssociationOutput {
   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_route_table_vpc_association {
   49     59   
            ser.write_struct(
   50     60   
                &CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONOUTPUT_MEMBER_LOCAL_GATEWAY_ROUTE_TABLE_VPC_ASSOCIATION,
   51     61   
                val,
   52     62   
            )?;
   53     63   
        }
   54     64   
        Ok(())
   55     65   
    }
   56     66   
}
   57     67   
impl CreateLocalGatewayRouteTableVpcAssociationOutput {
   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(&CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONOUTPUT_SCHEMA, (), |_, member, deser| {
          81  +
        deserializer.read_struct(&CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONOUTPUT_SCHEMA, &mut |member, deser| {
          82  +
            match member.member_index() {
          83  +
                Some(0) => {
          84  +
                    builder.local_gateway_route_table_vpc_association = Some(crate::types::LocalGatewayRouteTableVpcAssociation::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 CreateLocalGatewayRouteTableVpcAssociationOutput {
          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(&CREATELOCALGATEWAYROUTETABLEVPCASSOCIATIONOUTPUT_SCHEMA, &mut |member, deser| {
   72    119   
            match member.member_index() {
   73    120   
                Some(0) => {
   74    121   
                    builder.local_gateway_route_table_vpc_association = Some(crate::types::LocalGatewayRouteTableVpcAssociation::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_local_gateway_virtual_interface.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 `CreateLocalGatewayVirtualInterface`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateLocalGatewayVirtualInterface;
    6      6   
impl CreateLocalGatewayVirtualInterface {
    7      7   
    /// Creates a new `CreateLocalGatewayVirtualInterface`
    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::CreateLocalGatewayVirtualInterfaceInput::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::CreateLocalGatewayVirtualInterfaceOutput::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::CreateLocalGatewayVirtualInterfaceInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::create_local_gateway_virtual_interface::CreateLocalGatewayVirtualInterfaceError,
   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::CreateLocalGatewayVirtualInterfaceError,
  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 CreateLocalGatewayVirtualInterfaceResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateLocalGatewayVirtualInterfaceResponseDeserializer {
  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::de_create_local_gateway_virtual_interface_http_error(
  166    173   
                status, headers, body,