AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36

Files changed:

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

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

@@ -41,41 +239,252 @@
   61     61   
    "com.amazonaws.ec2.synthetic",
   62     62   
    "ModifyVpnTunnelOptionsInput",
   63     63   
);
   64     64   
static MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_VPN_CONNECTION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   65     65   
    ::aws_smithy_schema::ShapeId::from_static(
   66     66   
        "com.amazonaws.ec2.synthetic#ModifyVpnTunnelOptionsInput$VpnConnectionId",
   67     67   
        "com.amazonaws.ec2.synthetic",
   68     68   
        "ModifyVpnTunnelOptionsInput",
   69     69   
    ),
   70     70   
    ::aws_smithy_schema::ShapeType::String,
   71         -
    "vpn_connection_id",
          71  +
    "VpnConnectionId",
   72     72   
    0,
   73     73   
);
   74     74   
static MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_VPN_TUNNEL_OUTSIDE_IP_ADDRESS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   75     75   
    ::aws_smithy_schema::ShapeId::from_static(
   76     76   
        "com.amazonaws.ec2.synthetic#ModifyVpnTunnelOptionsInput$VpnTunnelOutsideIpAddress",
   77     77   
        "com.amazonaws.ec2.synthetic",
   78     78   
        "ModifyVpnTunnelOptionsInput",
   79     79   
    ),
   80     80   
    ::aws_smithy_schema::ShapeType::String,
   81         -
    "vpn_tunnel_outside_ip_address",
          81  +
    "VpnTunnelOutsideIpAddress",
   82     82   
    1,
   83     83   
);
   84     84   
static MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_TUNNEL_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static(
   86     86   
        "com.amazonaws.ec2.synthetic#ModifyVpnTunnelOptionsInput$TunnelOptions",
   87     87   
        "com.amazonaws.ec2.synthetic",
   88     88   
        "ModifyVpnTunnelOptionsInput",
   89     89   
    ),
   90     90   
    ::aws_smithy_schema::ShapeType::Structure,
   91         -
    "tunnel_options",
          91  +
    "TunnelOptions",
   92     92   
    2,
   93     93   
);
   94     94   
static MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.ec2.synthetic#ModifyVpnTunnelOptionsInput$DryRun",
   97     97   
        "com.amazonaws.ec2.synthetic",
   98     98   
        "ModifyVpnTunnelOptionsInput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::Boolean,
  101         -
    "dry_run",
         101  +
    "DryRun",
  102    102   
    3,
  103    103   
);
  104    104   
static MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_SKIP_TUNNEL_REPLACEMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  105    105   
    ::aws_smithy_schema::ShapeId::from_static(
  106    106   
        "com.amazonaws.ec2.synthetic#ModifyVpnTunnelOptionsInput$SkipTunnelReplacement",
  107    107   
        "com.amazonaws.ec2.synthetic",
  108    108   
        "ModifyVpnTunnelOptionsInput",
  109    109   
    ),
  110    110   
    ::aws_smithy_schema::ShapeType::Boolean,
  111         -
    "skip_tunnel_replacement",
         111  +
    "SkipTunnelReplacement",
  112    112   
    4,
  113    113   
);
  114    114   
static MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_PRE_SHARED_KEY_STORAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  115    115   
    ::aws_smithy_schema::ShapeId::from_static(
  116    116   
        "com.amazonaws.ec2.synthetic#ModifyVpnTunnelOptionsInput$PreSharedKeyStorage",
  117    117   
        "com.amazonaws.ec2.synthetic",
  118    118   
        "ModifyVpnTunnelOptionsInput",
  119    119   
    ),
  120    120   
    ::aws_smithy_schema::ShapeType::String,
  121         -
    "pre_shared_key_storage",
         121  +
    "PreSharedKeyStorage",
  122    122   
    5,
  123    123   
);
  124    124   
static MODIFYVPNTUNNELOPTIONSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  125    125   
    MODIFYVPNTUNNELOPTIONSINPUT_SCHEMA_ID,
  126    126   
    ::aws_smithy_schema::ShapeType::Structure,
  127    127   
    &[
  128    128   
        &MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_VPN_CONNECTION_ID,
  129    129   
        &MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_VPN_TUNNEL_OUTSIDE_IP_ADDRESS,
  130    130   
        &MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_TUNNEL_OPTIONS,
  131    131   
        &MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_DRY_RUN,
  132    132   
        &MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_SKIP_TUNNEL_REPLACEMENT,
  133    133   
        &MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_PRE_SHARED_KEY_STORAGE,
  134    134   
    ],
  135    135   
);
  136    136   
impl ModifyVpnTunnelOptionsInput {
  137    137   
    /// The schema for this shape.
  138    138   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &MODIFYVPNTUNNELOPTIONSINPUT_SCHEMA;
  139    139   
}
  140    140   
impl ::aws_smithy_schema::serde::SerializableStruct for ModifyVpnTunnelOptionsInput {
  141    141   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  142    142   
    fn serialize_members(
  143    143   
        &self,
  144    144   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  145    145   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  146    146   
        if let Some(ref val) = self.vpn_connection_id {
  147    147   
            ser.write_string(&MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_VPN_CONNECTION_ID, val)?;
  148    148   
        }
  149    149   
        if let Some(ref val) = self.vpn_tunnel_outside_ip_address {
  150    150   
            ser.write_string(&MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_VPN_TUNNEL_OUTSIDE_IP_ADDRESS, val)?;
  151    151   
        }
  152    152   
        if let Some(ref val) = self.tunnel_options {
  153    153   
            ser.write_struct(&MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_TUNNEL_OPTIONS, val)?;
  154    154   
        }
  155    155   
        if let Some(ref val) = self.dry_run {
  156    156   
            ser.write_boolean(&MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_DRY_RUN, *val)?;
  157    157   
        }
  158    158   
        if let Some(ref val) = self.skip_tunnel_replacement {
  159    159   
            ser.write_boolean(&MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_SKIP_TUNNEL_REPLACEMENT, *val)?;
  160    160   
        }
  161    161   
        if let Some(ref val) = self.pre_shared_key_storage {
  162    162   
            ser.write_string(&MODIFYVPNTUNNELOPTIONSINPUT_MEMBER_PRE_SHARED_KEY_STORAGE, val)?;
  163    163   
        }
  164    164   
        Ok(())
  165    165   
    }
  166    166   
}
  167    167   
impl ModifyVpnTunnelOptionsInput {
  168    168   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  169         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  170         -
        deserializer: &mut D,
         169  +
    pub fn deserialize(
         170  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  171    171   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  172    172   
        #[allow(unused_variables, unused_mut)]
  173    173   
        let mut builder = Self::builder();
  174    174   
        #[allow(
  175    175   
            unused_variables,
  176    176   
            unreachable_code,
  177    177   
            clippy::single_match,
  178    178   
            clippy::match_single_binding,
  179    179   
            clippy::diverging_sub_expression
  180    180   
        )]
  181         -
        deserializer.read_struct(&MODIFYVPNTUNNELOPTIONSINPUT_SCHEMA, (), |_, member, deser| {
         181  +
        deserializer.read_struct(&MODIFYVPNTUNNELOPTIONSINPUT_SCHEMA, &mut |member, deser| {
  182    182   
            match member.member_index() {
  183    183   
                Some(0) => {
  184    184   
                    builder.vpn_connection_id = Some(deser.read_string(member)?);
  185    185   
                }
  186    186   
                Some(1) => {
  187    187   
                    builder.vpn_tunnel_outside_ip_address = Some(deser.read_string(member)?);
  188    188   
                }
  189    189   
                Some(2) => {
  190    190   
                    builder.tunnel_options = Some(crate::types::ModifyVpnTunnelOptionsSpecification::deserialize(deser)?);
  191    191   
                }
  192    192   
                Some(3) => {
  193    193   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  194    194   
                }
  195    195   
                Some(4) => {
  196    196   
                    builder.skip_tunnel_replacement = Some(deser.read_boolean(member)?);
  197    197   
                }
  198    198   
                Some(5) => {
  199    199   
                    builder.pre_shared_key_storage = Some(deser.read_string(member)?);
  200    200   
                }
  201    201   
                _ => {}
  202    202   
            }
  203    203   
            Ok(())
  204    204   
        })?;
         205  +
        builder.vpn_connection_id = builder.vpn_connection_id.or(Some(String::new()));
         206  +
        builder.vpn_tunnel_outside_ip_address = builder.vpn_tunnel_outside_ip_address.or(Some(String::new()));
  205    207   
        builder
  206    208   
            .build()
  207    209   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  208    210   
    }
  209    211   
}
         212  +
impl ModifyVpnTunnelOptionsInput {
         213  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         214  +
    pub fn deserialize_with_response(
         215  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         216  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         217  +
        _status: u16,
         218  +
        _body: &[u8],
         219  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         220  +
        Self::deserialize(deserializer)
         221  +
    }
         222  +
}
  210    223   
impl ModifyVpnTunnelOptionsInput {
  211    224   
    /// Creates a new builder-style object to manufacture [`ModifyVpnTunnelOptionsInput`](crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsInput).
  212    225   
    pub fn builder() -> crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsInputBuilder {
  213    226   
        crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsInputBuilder::default()
  214    227   
    }
  215    228   
}
  216    229   
  217    230   
/// A builder for [`ModifyVpnTunnelOptionsInput`](crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsInput).
  218    231   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
  219    232   
#[non_exhaustive]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "MoveByoipCidrToIpamOutput",
   20     20   
);
   21     21   
static MOVEBYOIPCIDRTOIPAMOUTPUT_MEMBER_BYOIP_CIDR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ec2.synthetic#MoveByoipCidrToIpamOutput$ByoipCidr",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "MoveByoipCidrToIpamOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "byoip_cidr",
          28  +
    "ByoipCidr",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_name("byoipCidr");
          32  +
static MOVEBYOIPCIDRTOIPAMOUTPUT_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 MOVEBYOIPCIDRTOIPAMOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    MOVEBYOIPCIDRTOIPAMOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&MOVEBYOIPCIDRTOIPAMOUTPUT_MEMBER_BYOIP_CIDR],
          42  +
    &[
          43  +
        &MOVEBYOIPCIDRTOIPAMOUTPUT_MEMBER_BYOIP_CIDR,
          44  +
        &MOVEBYOIPCIDRTOIPAMOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl MoveByoipCidrToIpamOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &MOVEBYOIPCIDRTOIPAMOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for MoveByoipCidrToIpamOutput {
   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.byoip_cidr {
   48     58   
            ser.write_struct(&MOVEBYOIPCIDRTOIPAMOUTPUT_MEMBER_BYOIP_CIDR, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl MoveByoipCidrToIpamOutput {
   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(&MOVEBYOIPCIDRTOIPAMOUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&MOVEBYOIPCIDRTOIPAMOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.byoip_cidr = Some(crate::types::ByoipCidr::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 MoveByoipCidrToIpamOutput {
          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(&MOVEBYOIPCIDRTOIPAMOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.byoip_cidr = Some(crate::types::ByoipCidr::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/move_capacity_reservation_instances.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 `MoveCapacityReservationInstances`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct MoveCapacityReservationInstances;
    6      6   
impl MoveCapacityReservationInstances {
    7      7   
    /// Creates a new `MoveCapacityReservationInstances`
    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::move_capacity_reservation_instances::MoveCapacityReservationInstancesInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesOutput::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::move_capacity_reservation_instances::MoveCapacityReservationInstancesInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -135,141 +194,201 @@
  155    161   
        ::std::borrow::Cow::Owned(rcb)
  156    162   
    }
  157    163   
}
  158    164   
  159    165   
#[derive(Debug)]
  160    166   
struct MoveCapacityReservationInstancesResponseDeserializer;
  161    167   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for MoveCapacityReservationInstancesResponseDeserializer {
  162    168   
    fn deserialize_nonstreaming(
  163    169   
        &self,
  164    170   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         171  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  165    172   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  166    173   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  167    174   
        let headers = response.headers();
  168    175   
        let body = response.body().bytes().expect("body loaded");
  169    176   
        #[allow(unused_mut)]
  170    177   
        let mut force_error = false;
  171    178   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  172    179   
        let parse_result = if !success && status != 200 || force_error {
  173    180   
            crate::protocol_serde::shape_move_capacity_reservation_instances::de_move_capacity_reservation_instances_http_error(status, headers, body)
  174    181   
        } else {

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

@@ -21,21 +204,218 @@
   41     41   
    "com.amazonaws.ec2.synthetic",
   42     42   
    "MoveCapacityReservationInstancesInput",
   43     43   
);
   44     44   
static MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static(
   46     46   
        "com.amazonaws.ec2.synthetic#MoveCapacityReservationInstancesInput$DryRun",
   47     47   
        "com.amazonaws.ec2.synthetic",
   48     48   
        "MoveCapacityReservationInstancesInput",
   49     49   
    ),
   50     50   
    ::aws_smithy_schema::ShapeType::Boolean,
   51         -
    "dry_run",
          51  +
    "DryRun",
   52     52   
    0,
   53     53   
);
   54     54   
static MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   55     55   
    ::aws_smithy_schema::ShapeId::from_static(
   56     56   
        "com.amazonaws.ec2.synthetic#MoveCapacityReservationInstancesInput$ClientToken",
   57     57   
        "com.amazonaws.ec2.synthetic",
   58     58   
        "MoveCapacityReservationInstancesInput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::String,
   61         -
    "client_token",
          61  +
    "ClientToken",
   62     62   
    1,
   63     63   
);
   64     64   
static MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_SOURCE_CAPACITY_RESERVATION_ID: ::aws_smithy_schema::Schema =
   65     65   
    ::aws_smithy_schema::Schema::new_member(
   66     66   
        ::aws_smithy_schema::ShapeId::from_static(
   67     67   
            "com.amazonaws.ec2.synthetic#MoveCapacityReservationInstancesInput$SourceCapacityReservationId",
   68     68   
            "com.amazonaws.ec2.synthetic",
   69     69   
            "MoveCapacityReservationInstancesInput",
   70     70   
        ),
   71     71   
        ::aws_smithy_schema::ShapeType::String,
   72         -
        "source_capacity_reservation_id",
          72  +
        "SourceCapacityReservationId",
   73     73   
        2,
   74     74   
    );
   75     75   
static MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_DESTINATION_CAPACITY_RESERVATION_ID: ::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#MoveCapacityReservationInstancesInput$DestinationCapacityReservationId",
   79     79   
            "com.amazonaws.ec2.synthetic",
   80     80   
            "MoveCapacityReservationInstancesInput",
   81     81   
        ),
   82     82   
        ::aws_smithy_schema::ShapeType::String,
   83         -
        "destination_capacity_reservation_id",
          83  +
        "DestinationCapacityReservationId",
   84     84   
        3,
   85     85   
    );
   86     86   
static MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_INSTANCE_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   87     87   
    ::aws_smithy_schema::ShapeId::from_static(
   88     88   
        "com.amazonaws.ec2.synthetic#MoveCapacityReservationInstancesInput$InstanceCount",
   89     89   
        "com.amazonaws.ec2.synthetic",
   90     90   
        "MoveCapacityReservationInstancesInput",
   91     91   
    ),
   92     92   
    ::aws_smithy_schema::ShapeType::Integer,
   93         -
    "instance_count",
          93  +
    "InstanceCount",
   94     94   
    4,
   95     95   
);
   96     96   
static MOVECAPACITYRESERVATIONINSTANCESINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   97     97   
    MOVECAPACITYRESERVATIONINSTANCESINPUT_SCHEMA_ID,
   98     98   
    ::aws_smithy_schema::ShapeType::Structure,
   99     99   
    &[
  100    100   
        &MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_DRY_RUN,
  101    101   
        &MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_CLIENT_TOKEN,
  102    102   
        &MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_SOURCE_CAPACITY_RESERVATION_ID,
  103    103   
        &MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_DESTINATION_CAPACITY_RESERVATION_ID,
  104    104   
        &MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_INSTANCE_COUNT,
  105    105   
    ],
  106    106   
);
  107    107   
impl MoveCapacityReservationInstancesInput {
  108    108   
    /// The schema for this shape.
  109    109   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &MOVECAPACITYRESERVATIONINSTANCESINPUT_SCHEMA;
  110    110   
}
  111    111   
impl ::aws_smithy_schema::serde::SerializableStruct for MoveCapacityReservationInstancesInput {
  112    112   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  113    113   
    fn serialize_members(
  114    114   
        &self,
  115    115   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  116    116   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  117    117   
        if let Some(ref val) = self.dry_run {
  118    118   
            ser.write_boolean(&MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_DRY_RUN, *val)?;
  119    119   
        }
  120    120   
        if let Some(ref val) = self.client_token {
  121    121   
            ser.write_string(&MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_CLIENT_TOKEN, val)?;
  122    122   
        }
  123    123   
        if let Some(ref val) = self.source_capacity_reservation_id {
  124    124   
            ser.write_string(&MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_SOURCE_CAPACITY_RESERVATION_ID, val)?;
  125    125   
        }
  126    126   
        if let Some(ref val) = self.destination_capacity_reservation_id {
  127    127   
            ser.write_string(&MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_DESTINATION_CAPACITY_RESERVATION_ID, val)?;
  128    128   
        }
  129    129   
        if let Some(ref val) = self.instance_count {
  130    130   
            ser.write_integer(&MOVECAPACITYRESERVATIONINSTANCESINPUT_MEMBER_INSTANCE_COUNT, *val)?;
  131    131   
        }
  132    132   
        Ok(())
  133    133   
    }
  134    134   
}
  135    135   
impl MoveCapacityReservationInstancesInput {
  136    136   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  137         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  138         -
        deserializer: &mut D,
         137  +
    pub fn deserialize(
         138  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  139    139   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  140    140   
        #[allow(unused_variables, unused_mut)]
  141    141   
        let mut builder = Self::builder();
  142    142   
        #[allow(
  143    143   
            unused_variables,
  144    144   
            unreachable_code,
  145    145   
            clippy::single_match,
  146    146   
            clippy::match_single_binding,
  147    147   
            clippy::diverging_sub_expression
  148    148   
        )]
  149         -
        deserializer.read_struct(&MOVECAPACITYRESERVATIONINSTANCESINPUT_SCHEMA, (), |_, member, deser| {
         149  +
        deserializer.read_struct(&MOVECAPACITYRESERVATIONINSTANCESINPUT_SCHEMA, &mut |member, deser| {
  150    150   
            match member.member_index() {
  151    151   
                Some(0) => {
  152    152   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  153    153   
                }
  154    154   
                Some(1) => {
  155    155   
                    builder.client_token = Some(deser.read_string(member)?);
  156    156   
                }
  157    157   
                Some(2) => {
  158    158   
                    builder.source_capacity_reservation_id = Some(deser.read_string(member)?);
  159    159   
                }
  160    160   
                Some(3) => {
  161    161   
                    builder.destination_capacity_reservation_id = Some(deser.read_string(member)?);
  162    162   
                }
  163    163   
                Some(4) => {
  164    164   
                    builder.instance_count = Some(deser.read_integer(member)?);
  165    165   
                }
  166    166   
                _ => {}
  167    167   
            }
  168    168   
            Ok(())
  169    169   
        })?;
         170  +
        builder.source_capacity_reservation_id = builder.source_capacity_reservation_id.or(Some(String::new()));
         171  +
        builder.destination_capacity_reservation_id = builder.destination_capacity_reservation_id.or(Some(String::new()));
         172  +
        builder.instance_count = builder.instance_count.or(Some(0i32));
  170    173   
        builder
  171    174   
            .build()
  172    175   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  173    176   
    }
  174    177   
}
         178  +
impl MoveCapacityReservationInstancesInput {
         179  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         180  +
    pub fn deserialize_with_response(
         181  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         182  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         183  +
        _status: u16,
         184  +
        _body: &[u8],
         185  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         186  +
        Self::deserialize(deserializer)
         187  +
    }
         188  +
}
  175    189   
impl MoveCapacityReservationInstancesInput {
  176    190   
    /// Creates a new builder-style object to manufacture [`MoveCapacityReservationInstancesInput`](crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesInput).
  177    191   
    pub fn builder() -> crate::operation::move_capacity_reservation_instances::builders::MoveCapacityReservationInstancesInputBuilder {
  178    192   
        crate::operation::move_capacity_reservation_instances::builders::MoveCapacityReservationInstancesInputBuilder::default()
  179    193   
    }
  180    194   
}
  181    195   
  182    196   
/// A builder for [`MoveCapacityReservationInstancesInput`](crate::operation::move_capacity_reservation_instances::MoveCapacityReservationInstancesInput).
  183    197   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  184    198   
#[non_exhaustive]

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

@@ -11,11 +143,194 @@
   31     31   
    "MoveCapacityReservationInstancesOutput",
   32     32   
);
   33     33   
static MOVECAPACITYRESERVATIONINSTANCESOUTPUT_MEMBER_SOURCE_CAPACITY_RESERVATION: ::aws_smithy_schema::Schema =
   34     34   
    ::aws_smithy_schema::Schema::new_member(
   35     35   
        ::aws_smithy_schema::ShapeId::from_static(
   36     36   
            "com.amazonaws.ec2.synthetic#MoveCapacityReservationInstancesOutput$SourceCapacityReservation",
   37     37   
            "com.amazonaws.ec2.synthetic",
   38     38   
            "MoveCapacityReservationInstancesOutput",
   39     39   
        ),
   40     40   
        ::aws_smithy_schema::ShapeType::Structure,
   41         -
        "source_capacity_reservation",
          41  +
        "SourceCapacityReservation",
   42     42   
        0,
   43     43   
    )
   44     44   
    .with_xml_name("sourceCapacityReservation");
   45     45   
static MOVECAPACITYRESERVATIONINSTANCESOUTPUT_MEMBER_DESTINATION_CAPACITY_RESERVATION: ::aws_smithy_schema::Schema =
   46     46   
    ::aws_smithy_schema::Schema::new_member(
   47     47   
        ::aws_smithy_schema::ShapeId::from_static(
   48     48   
            "com.amazonaws.ec2.synthetic#MoveCapacityReservationInstancesOutput$DestinationCapacityReservation",
   49     49   
            "com.amazonaws.ec2.synthetic",
   50     50   
            "MoveCapacityReservationInstancesOutput",
   51     51   
        ),
   52     52   
        ::aws_smithy_schema::ShapeType::Structure,
   53         -
        "destination_capacity_reservation",
          53  +
        "DestinationCapacityReservation",
   54     54   
        1,
   55     55   
    )
   56     56   
    .with_xml_name("destinationCapacityReservation");
   57     57   
static MOVECAPACITYRESERVATIONINSTANCESOUTPUT_MEMBER_INSTANCE_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   58     58   
    ::aws_smithy_schema::ShapeId::from_static(
   59     59   
        "com.amazonaws.ec2.synthetic#MoveCapacityReservationInstancesOutput$InstanceCount",
   60     60   
        "com.amazonaws.ec2.synthetic",
   61     61   
        "MoveCapacityReservationInstancesOutput",
   62     62   
    ),
   63     63   
    ::aws_smithy_schema::ShapeType::Integer,
   64         -
    "instance_count",
          64  +
    "InstanceCount",
   65     65   
    2,
   66     66   
)
   67     67   
.with_xml_name("instanceCount");
          68  +
static MOVECAPACITYRESERVATIONINSTANCESOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          69  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          70  +
    ::aws_smithy_schema::ShapeType::String,
          71  +
    "request_id",
          72  +
    3,
          73  +
)
          74  +
.with_http_header("x-amzn-requestid");
   68     75   
static MOVECAPACITYRESERVATIONINSTANCESOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   69     76   
    MOVECAPACITYRESERVATIONINSTANCESOUTPUT_SCHEMA_ID,
   70     77   
    ::aws_smithy_schema::ShapeType::Structure,
   71     78   
    &[
   72     79   
        &MOVECAPACITYRESERVATIONINSTANCESOUTPUT_MEMBER_SOURCE_CAPACITY_RESERVATION,
   73     80   
        &MOVECAPACITYRESERVATIONINSTANCESOUTPUT_MEMBER_DESTINATION_CAPACITY_RESERVATION,
   74     81   
        &MOVECAPACITYRESERVATIONINSTANCESOUTPUT_MEMBER_INSTANCE_COUNT,
          82  +
        &MOVECAPACITYRESERVATIONINSTANCESOUTPUT_MEMBER__REQUEST_ID,
   75     83   
    ],
   76     84   
);
   77     85   
impl MoveCapacityReservationInstancesOutput {
   78     86   
    /// The schema for this shape.
   79     87   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &MOVECAPACITYRESERVATIONINSTANCESOUTPUT_SCHEMA;
   80     88   
}
   81     89   
impl ::aws_smithy_schema::serde::SerializableStruct for MoveCapacityReservationInstancesOutput {
   82     90   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   83     91   
    fn serialize_members(
   84     92   
        &self,
   85     93   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   86     94   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   87     95   
        if let Some(ref val) = self.source_capacity_reservation {
   88     96   
            ser.write_struct(&MOVECAPACITYRESERVATIONINSTANCESOUTPUT_MEMBER_SOURCE_CAPACITY_RESERVATION, val)?;
   89     97   
        }
   90     98   
        if let Some(ref val) = self.destination_capacity_reservation {
   91     99   
            ser.write_struct(&MOVECAPACITYRESERVATIONINSTANCESOUTPUT_MEMBER_DESTINATION_CAPACITY_RESERVATION, val)?;
   92    100   
        }
   93    101   
        if let Some(ref val) = self.instance_count {
   94    102   
            ser.write_integer(&MOVECAPACITYRESERVATIONINSTANCESOUTPUT_MEMBER_INSTANCE_COUNT, *val)?;
   95    103   
        }
   96    104   
        Ok(())
   97    105   
    }
   98    106   
}
   99    107   
impl MoveCapacityReservationInstancesOutput {
  100    108   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  101         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  102         -
        deserializer: &mut D,
         109  +
    pub fn deserialize(
         110  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  103    111   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  104    112   
        #[allow(unused_variables, unused_mut)]
  105    113   
        let mut builder = Self::builder();
  106    114   
        #[allow(
  107    115   
            unused_variables,
  108    116   
            unreachable_code,
  109    117   
            clippy::single_match,
  110    118   
            clippy::match_single_binding,
  111    119   
            clippy::diverging_sub_expression
  112    120   
        )]
  113         -
        deserializer.read_struct(&MOVECAPACITYRESERVATIONINSTANCESOUTPUT_SCHEMA, (), |_, member, deser| {
         121  +
        deserializer.read_struct(&MOVECAPACITYRESERVATIONINSTANCESOUTPUT_SCHEMA, &mut |member, deser| {
         122  +
            match member.member_index() {
         123  +
                Some(0) => {
         124  +
                    builder.source_capacity_reservation = Some(crate::types::CapacityReservation::deserialize(deser)?);
         125  +
                }
         126  +
                Some(1) => {
         127  +
                    builder.destination_capacity_reservation = Some(crate::types::CapacityReservation::deserialize(deser)?);
         128  +
                }
         129  +
                Some(2) => {
         130  +
                    builder.instance_count = Some(deser.read_integer(member)?);
         131  +
                }
         132  +
                Some(3) => {
         133  +
                    builder._request_id = Some(deser.read_string(member)?);
         134  +
                }
         135  +
                _ => {}
         136  +
            }
         137  +
            Ok(())
         138  +
        })?;
         139  +
        Ok(builder.build())
         140  +
    }
         141  +
}
         142  +
impl MoveCapacityReservationInstancesOutput {
         143  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         144  +
    /// Header-bound members are read directly from headers, avoiding runtime
         145  +
    /// member iteration overhead. Body members are read via the deserializer.
         146  +
    pub fn deserialize_with_response(
         147  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         148  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         149  +
        _status: u16,
         150  +
        _body: &[u8],
         151  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         152  +
        #[allow(unused_variables, unused_mut)]
         153  +
        let mut builder = Self::builder();
         154  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         155  +
            builder._request_id = Some(val.to_string());
         156  +
        }
         157  +
        #[allow(
         158  +
            unused_variables,
         159  +
            unreachable_code,
         160  +
            clippy::single_match,
         161  +
            clippy::match_single_binding,
         162  +
            clippy::diverging_sub_expression
         163  +
        )]
         164  +
        deserializer.read_struct(&MOVECAPACITYRESERVATIONINSTANCESOUTPUT_SCHEMA, &mut |member, deser| {
  114    165   
            match member.member_index() {
  115    166   
                Some(0) => {
  116    167   
                    builder.source_capacity_reservation = Some(crate::types::CapacityReservation::deserialize(deser)?);
  117    168   
                }
  118    169   
                Some(1) => {
  119    170   
                    builder.destination_capacity_reservation = Some(crate::types::CapacityReservation::deserialize(deser)?);
  120    171   
                }
  121    172   
                Some(2) => {
  122    173   
                    builder.instance_count = Some(deser.read_integer(member)?);
  123    174   
                }

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