AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406 (ignoring whitespace)

Files changed:

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

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

@@ -99,99 +338,338 @@
  119    119   
    "com.amazonaws.ec2.synthetic",
  120    120   
    "ReplaceRouteInput",
  121    121   
);
  122    122   
static REPLACEROUTEINPUT_MEMBER_DESTINATION_PREFIX_LIST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  123    123   
    ::aws_smithy_schema::ShapeId::from_static(
  124    124   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$DestinationPrefixListId",
  125    125   
        "com.amazonaws.ec2.synthetic",
  126    126   
        "ReplaceRouteInput",
  127    127   
    ),
  128    128   
    ::aws_smithy_schema::ShapeType::String,
  129         -
    "destination_prefix_list_id",
         129  +
    "DestinationPrefixListId",
  130    130   
    0,
  131    131   
);
  132    132   
static REPLACEROUTEINPUT_MEMBER_VPC_ENDPOINT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  133    133   
    ::aws_smithy_schema::ShapeId::from_static(
  134    134   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$VpcEndpointId",
  135    135   
        "com.amazonaws.ec2.synthetic",
  136    136   
        "ReplaceRouteInput",
  137    137   
    ),
  138    138   
    ::aws_smithy_schema::ShapeType::String,
  139         -
    "vpc_endpoint_id",
         139  +
    "VpcEndpointId",
  140    140   
    1,
  141    141   
);
  142    142   
static REPLACEROUTEINPUT_MEMBER_LOCAL_TARGET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  143    143   
    ::aws_smithy_schema::ShapeId::from_static(
  144    144   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$LocalTarget",
  145    145   
        "com.amazonaws.ec2.synthetic",
  146    146   
        "ReplaceRouteInput",
  147    147   
    ),
  148    148   
    ::aws_smithy_schema::ShapeType::Boolean,
  149         -
    "local_target",
         149  +
    "LocalTarget",
  150    150   
    2,
  151    151   
);
  152    152   
static REPLACEROUTEINPUT_MEMBER_TRANSIT_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  153    153   
    ::aws_smithy_schema::ShapeId::from_static(
  154    154   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$TransitGatewayId",
  155    155   
        "com.amazonaws.ec2.synthetic",
  156    156   
        "ReplaceRouteInput",
  157    157   
    ),
  158    158   
    ::aws_smithy_schema::ShapeType::String,
  159         -
    "transit_gateway_id",
         159  +
    "TransitGatewayId",
  160    160   
    3,
  161    161   
);
  162    162   
static REPLACEROUTEINPUT_MEMBER_LOCAL_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  163    163   
    ::aws_smithy_schema::ShapeId::from_static(
  164    164   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$LocalGatewayId",
  165    165   
        "com.amazonaws.ec2.synthetic",
  166    166   
        "ReplaceRouteInput",
  167    167   
    ),
  168    168   
    ::aws_smithy_schema::ShapeType::String,
  169         -
    "local_gateway_id",
         169  +
    "LocalGatewayId",
  170    170   
    4,
  171    171   
);
  172    172   
static REPLACEROUTEINPUT_MEMBER_CARRIER_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  173    173   
    ::aws_smithy_schema::ShapeId::from_static(
  174    174   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$CarrierGatewayId",
  175    175   
        "com.amazonaws.ec2.synthetic",
  176    176   
        "ReplaceRouteInput",
  177    177   
    ),
  178    178   
    ::aws_smithy_schema::ShapeType::String,
  179         -
    "carrier_gateway_id",
         179  +
    "CarrierGatewayId",
  180    180   
    5,
  181    181   
);
  182    182   
static REPLACEROUTEINPUT_MEMBER_CORE_NETWORK_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  183    183   
    ::aws_smithy_schema::ShapeId::from_static(
  184    184   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$CoreNetworkArn",
  185    185   
        "com.amazonaws.ec2.synthetic",
  186    186   
        "ReplaceRouteInput",
  187    187   
    ),
  188    188   
    ::aws_smithy_schema::ShapeType::String,
  189         -
    "core_network_arn",
         189  +
    "CoreNetworkArn",
  190    190   
    6,
  191    191   
);
  192    192   
static REPLACEROUTEINPUT_MEMBER_ODB_NETWORK_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  193    193   
    ::aws_smithy_schema::ShapeId::from_static(
  194    194   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$OdbNetworkArn",
  195    195   
        "com.amazonaws.ec2.synthetic",
  196    196   
        "ReplaceRouteInput",
  197    197   
    ),
  198    198   
    ::aws_smithy_schema::ShapeType::String,
  199         -
    "odb_network_arn",
         199  +
    "OdbNetworkArn",
  200    200   
    7,
  201    201   
);
  202    202   
static REPLACEROUTEINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  203    203   
    ::aws_smithy_schema::ShapeId::from_static(
  204    204   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$DryRun",
  205    205   
        "com.amazonaws.ec2.synthetic",
  206    206   
        "ReplaceRouteInput",
  207    207   
    ),
  208    208   
    ::aws_smithy_schema::ShapeType::Boolean,
  209         -
    "dry_run",
         209  +
    "DryRun",
  210    210   
    8,
  211    211   
)
  212    212   
.with_xml_name("dryRun");
  213    213   
static REPLACEROUTEINPUT_MEMBER_ROUTE_TABLE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  214    214   
    ::aws_smithy_schema::ShapeId::from_static(
  215    215   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$RouteTableId",
  216    216   
        "com.amazonaws.ec2.synthetic",
  217    217   
        "ReplaceRouteInput",
  218    218   
    ),
  219    219   
    ::aws_smithy_schema::ShapeType::String,
  220         -
    "route_table_id",
         220  +
    "RouteTableId",
  221    221   
    9,
  222    222   
)
  223    223   
.with_xml_name("routeTableId");
  224    224   
static REPLACEROUTEINPUT_MEMBER_DESTINATION_CIDR_BLOCK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  225    225   
    ::aws_smithy_schema::ShapeId::from_static(
  226    226   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$DestinationCidrBlock",
  227    227   
        "com.amazonaws.ec2.synthetic",
  228    228   
        "ReplaceRouteInput",
  229    229   
    ),
  230    230   
    ::aws_smithy_schema::ShapeType::String,
  231         -
    "destination_cidr_block",
         231  +
    "DestinationCidrBlock",
  232    232   
    10,
  233    233   
)
  234    234   
.with_xml_name("destinationCidrBlock");
  235    235   
static REPLACEROUTEINPUT_MEMBER_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  236    236   
    ::aws_smithy_schema::ShapeId::from_static(
  237    237   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$GatewayId",
  238    238   
        "com.amazonaws.ec2.synthetic",
  239    239   
        "ReplaceRouteInput",
  240    240   
    ),
  241    241   
    ::aws_smithy_schema::ShapeType::String,
  242         -
    "gateway_id",
         242  +
    "GatewayId",
  243    243   
    11,
  244    244   
)
  245    245   
.with_xml_name("gatewayId");
  246    246   
static REPLACEROUTEINPUT_MEMBER_DESTINATION_IPV6_CIDR_BLOCK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  247    247   
    ::aws_smithy_schema::ShapeId::from_static(
  248    248   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$DestinationIpv6CidrBlock",
  249    249   
        "com.amazonaws.ec2.synthetic",
  250    250   
        "ReplaceRouteInput",
  251    251   
    ),
  252    252   
    ::aws_smithy_schema::ShapeType::String,
  253         -
    "destination_ipv6_cidr_block",
         253  +
    "DestinationIpv6CidrBlock",
  254    254   
    12,
  255    255   
)
  256    256   
.with_xml_name("destinationIpv6CidrBlock");
  257    257   
static REPLACEROUTEINPUT_MEMBER_EGRESS_ONLY_INTERNET_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  258    258   
    ::aws_smithy_schema::ShapeId::from_static(
  259    259   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$EgressOnlyInternetGatewayId",
  260    260   
        "com.amazonaws.ec2.synthetic",
  261    261   
        "ReplaceRouteInput",
  262    262   
    ),
  263    263   
    ::aws_smithy_schema::ShapeType::String,
  264         -
    "egress_only_internet_gateway_id",
         264  +
    "EgressOnlyInternetGatewayId",
  265    265   
    13,
  266    266   
)
  267    267   
.with_xml_name("egressOnlyInternetGatewayId");
  268    268   
static REPLACEROUTEINPUT_MEMBER_INSTANCE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  269    269   
    ::aws_smithy_schema::ShapeId::from_static(
  270    270   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$InstanceId",
  271    271   
        "com.amazonaws.ec2.synthetic",
  272    272   
        "ReplaceRouteInput",
  273    273   
    ),
  274    274   
    ::aws_smithy_schema::ShapeType::String,
  275         -
    "instance_id",
         275  +
    "InstanceId",
  276    276   
    14,
  277    277   
)
  278    278   
.with_xml_name("instanceId");
  279    279   
static REPLACEROUTEINPUT_MEMBER_NETWORK_INTERFACE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  280    280   
    ::aws_smithy_schema::ShapeId::from_static(
  281    281   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$NetworkInterfaceId",
  282    282   
        "com.amazonaws.ec2.synthetic",
  283    283   
        "ReplaceRouteInput",
  284    284   
    ),
  285    285   
    ::aws_smithy_schema::ShapeType::String,
  286         -
    "network_interface_id",
         286  +
    "NetworkInterfaceId",
  287    287   
    15,
  288    288   
)
  289    289   
.with_xml_name("networkInterfaceId");
  290    290   
static REPLACEROUTEINPUT_MEMBER_VPC_PEERING_CONNECTION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  291    291   
    ::aws_smithy_schema::ShapeId::from_static(
  292    292   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$VpcPeeringConnectionId",
  293    293   
        "com.amazonaws.ec2.synthetic",
  294    294   
        "ReplaceRouteInput",
  295    295   
    ),
  296    296   
    ::aws_smithy_schema::ShapeType::String,
  297         -
    "vpc_peering_connection_id",
         297  +
    "VpcPeeringConnectionId",
  298    298   
    16,
  299    299   
)
  300    300   
.with_xml_name("vpcPeeringConnectionId");
  301    301   
static REPLACEROUTEINPUT_MEMBER_NAT_GATEWAY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  302    302   
    ::aws_smithy_schema::ShapeId::from_static(
  303    303   
        "com.amazonaws.ec2.synthetic#ReplaceRouteInput$NatGatewayId",
  304    304   
        "com.amazonaws.ec2.synthetic",
  305    305   
        "ReplaceRouteInput",
  306    306   
    ),
  307    307   
    ::aws_smithy_schema::ShapeType::String,
  308         -
    "nat_gateway_id",
         308  +
    "NatGatewayId",
  309    309   
    17,
  310    310   
)
  311    311   
.with_xml_name("natGatewayId");
  312    312   
static REPLACEROUTEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  313    313   
    REPLACEROUTEINPUT_SCHEMA_ID,
  314    314   
    ::aws_smithy_schema::ShapeType::Structure,
  315    315   
    &[
  316    316   
        &REPLACEROUTEINPUT_MEMBER_DESTINATION_PREFIX_LIST_ID,
  317    317   
        &REPLACEROUTEINPUT_MEMBER_VPC_ENDPOINT_ID,
  318    318   
        &REPLACEROUTEINPUT_MEMBER_LOCAL_TARGET,
@@ -375,375 +511,523 @@
  395    395   
            ser.write_string(&REPLACEROUTEINPUT_MEMBER_VPC_PEERING_CONNECTION_ID, val)?;
  396    396   
        }
  397    397   
        if let Some(ref val) = self.nat_gateway_id {
  398    398   
            ser.write_string(&REPLACEROUTEINPUT_MEMBER_NAT_GATEWAY_ID, val)?;
  399    399   
        }
  400    400   
        Ok(())
  401    401   
    }
  402    402   
}
  403    403   
impl ReplaceRouteInput {
  404    404   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  405         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  406         -
        deserializer: &mut D,
         405  +
    pub fn deserialize(
         406  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  407    407   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  408    408   
        #[allow(unused_variables, unused_mut)]
  409    409   
        let mut builder = Self::builder();
  410    410   
        #[allow(
  411    411   
            unused_variables,
  412    412   
            unreachable_code,
  413    413   
            clippy::single_match,
  414    414   
            clippy::match_single_binding,
  415    415   
            clippy::diverging_sub_expression
  416    416   
        )]
  417         -
        deserializer.read_struct(&REPLACEROUTEINPUT_SCHEMA, (), |_, member, deser| {
         417  +
        deserializer.read_struct(&REPLACEROUTEINPUT_SCHEMA, &mut |member, deser| {
  418    418   
            match member.member_index() {
  419    419   
                Some(0) => {
  420    420   
                    builder.destination_prefix_list_id = Some(deser.read_string(member)?);
  421    421   
                }
  422    422   
                Some(1) => {
  423    423   
                    builder.vpc_endpoint_id = Some(deser.read_string(member)?);
  424    424   
                }
  425    425   
                Some(2) => {
  426    426   
                    builder.local_target = Some(deser.read_boolean(member)?);
  427    427   
                }
  428    428   
                Some(3) => {
  429    429   
                    builder.transit_gateway_id = Some(deser.read_string(member)?);
  430    430   
                }
  431    431   
                Some(4) => {
  432    432   
                    builder.local_gateway_id = Some(deser.read_string(member)?);
  433    433   
                }
  434    434   
                Some(5) => {
  435    435   
                    builder.carrier_gateway_id = Some(deser.read_string(member)?);
  436    436   
                }
  437    437   
                Some(6) => {
  438    438   
                    builder.core_network_arn = Some(deser.read_string(member)?);
  439    439   
                }
  440    440   
                Some(7) => {
  441    441   
                    builder.odb_network_arn = Some(deser.read_string(member)?);
  442    442   
                }
  443    443   
                Some(8) => {
  444    444   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  445    445   
                }
  446    446   
                Some(9) => {
  447    447   
                    builder.route_table_id = Some(deser.read_string(member)?);
  448    448   
                }
  449    449   
                Some(10) => {
  450    450   
                    builder.destination_cidr_block = Some(deser.read_string(member)?);
  451    451   
                }
  452    452   
                Some(11) => {
  453    453   
                    builder.gateway_id = Some(deser.read_string(member)?);
  454    454   
                }
  455    455   
                Some(12) => {
  456    456   
                    builder.destination_ipv6_cidr_block = Some(deser.read_string(member)?);
  457    457   
                }
  458    458   
                Some(13) => {
  459    459   
                    builder.egress_only_internet_gateway_id = Some(deser.read_string(member)?);
  460    460   
                }
  461    461   
                Some(14) => {
  462    462   
                    builder.instance_id = Some(deser.read_string(member)?);
  463    463   
                }
  464    464   
                Some(15) => {
  465    465   
                    builder.network_interface_id = Some(deser.read_string(member)?);
  466    466   
                }
  467    467   
                Some(16) => {
  468    468   
                    builder.vpc_peering_connection_id = Some(deser.read_string(member)?);
  469    469   
                }
  470    470   
                Some(17) => {
  471    471   
                    builder.nat_gateway_id = Some(deser.read_string(member)?);
  472    472   
                }
  473    473   
                _ => {}
  474    474   
            }
  475    475   
            Ok(())
  476    476   
        })?;
         477  +
        builder.route_table_id = builder.route_table_id.or(Some(String::new()));
  477    478   
        builder
  478    479   
            .build()
  479    480   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  480    481   
    }
  481    482   
}
         483  +
impl ReplaceRouteInput {
         484  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         485  +
    pub fn deserialize_with_response(
         486  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         487  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         488  +
        _status: u16,
         489  +
        _body: &[u8],
         490  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         491  +
        Self::deserialize(deserializer)
         492  +
    }
         493  +
}
  482    494   
impl ReplaceRouteInput {
  483    495   
    /// Creates a new builder-style object to manufacture [`ReplaceRouteInput`](crate::operation::replace_route::ReplaceRouteInput).
  484    496   
    pub fn builder() -> crate::operation::replace_route::builders::ReplaceRouteInputBuilder {
  485    497   
        crate::operation::replace_route::builders::ReplaceRouteInputBuilder::default()
  486    498   
    }
  487    499   
}
  488    500   
  489    501   
/// A builder for [`ReplaceRouteInput`](crate::operation::replace_route::ReplaceRouteInput).
  490    502   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  491    503   
#[non_exhaustive]

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

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct ReplaceRouteOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static REPLACEROUTEOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.ec2.synthetic#ReplaceRouteOutput",
   10     10   
    "com.amazonaws.ec2.synthetic",
   11     11   
    "ReplaceRouteOutput",
   12     12   
);
   13         -
static REPLACEROUTEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(REPLACEROUTEOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static REPLACEROUTEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
          20  +
static REPLACEROUTEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    REPLACEROUTEOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&REPLACEROUTEOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl ReplaceRouteOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REPLACEROUTEOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for ReplaceRouteOutput {
   20     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   21     31   
    fn serialize_members(
   22     32   
        &self,
   23     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   24     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   25     35   
        Ok(())
   26     36   
    }
   27     37   
}
   28     38   
impl ReplaceRouteOutput {
   29     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   30         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   31         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   32     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   33     43   
        #[allow(unused_variables, unused_mut)]
   34     44   
        let mut builder = Self::builder();
   35     45   
        #[allow(
   36     46   
            unused_variables,
   37     47   
            unreachable_code,
   38     48   
            clippy::single_match,
   39     49   
            clippy::match_single_binding,
   40     50   
            clippy::diverging_sub_expression
   41     51   
        )]
   42         -
        deserializer.read_struct(&REPLACEROUTEOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&REPLACEROUTEOUTPUT_SCHEMA, &mut |member, deser| {
   43     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   44     57   
                _ => {}
   45     58   
            }
   46     59   
            Ok(())
   47     60   
        })?;
   48     61   
        Ok(builder.build())
   49     62   
    }
   50     63   
}
          64  +
impl ReplaceRouteOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   51     82   
impl ::aws_types::request_id::RequestId for ReplaceRouteOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl ReplaceRouteOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`ReplaceRouteOutput`](crate::operation::replace_route::ReplaceRouteOutput).
   58     89   
    pub fn builder() -> crate::operation::replace_route::builders::ReplaceRouteOutputBuilder {
   59     90   
        crate::operation::replace_route::builders::ReplaceRouteOutputBuilder::default()
   60     91   
    }

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

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

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

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

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

@@ -4,4 +120,168 @@
   24     24   
    "com.amazonaws.ec2.synthetic",
   25     25   
    "ReplaceRouteTableAssociationOutput",
   26     26   
);
   27     27   
static REPLACEROUTETABLEASSOCIATIONOUTPUT_MEMBER_NEW_ASSOCIATION_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#ReplaceRouteTableAssociationOutput$NewAssociationId",
   30     30   
        "com.amazonaws.ec2.synthetic",
   31     31   
        "ReplaceRouteTableAssociationOutput",
   32     32   
    ),
   33     33   
    ::aws_smithy_schema::ShapeType::String,
   34         -
    "new_association_id",
          34  +
    "NewAssociationId",
   35     35   
    0,
   36     36   
)
   37     37   
.with_xml_name("newAssociationId");
   38     38   
static REPLACEROUTETABLEASSOCIATIONOUTPUT_MEMBER_ASSOCIATION_STATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.ec2.synthetic#ReplaceRouteTableAssociationOutput$AssociationState",
   41     41   
        "com.amazonaws.ec2.synthetic",
   42     42   
        "ReplaceRouteTableAssociationOutput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::Structure,
   45         -
    "association_state",
          45  +
    "AssociationState",
   46     46   
    1,
   47     47   
)
   48     48   
.with_xml_name("associationState");
          49  +
static REPLACEROUTETABLEASSOCIATIONOUTPUT_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 REPLACEROUTETABLEASSOCIATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    REPLACEROUTETABLEASSOCIATIONOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52     59   
    &[
   53     60   
        &REPLACEROUTETABLEASSOCIATIONOUTPUT_MEMBER_NEW_ASSOCIATION_ID,
   54     61   
        &REPLACEROUTETABLEASSOCIATIONOUTPUT_MEMBER_ASSOCIATION_STATE,
          62  +
        &REPLACEROUTETABLEASSOCIATIONOUTPUT_MEMBER__REQUEST_ID,
   55     63   
    ],
   56     64   
);
   57     65   
impl ReplaceRouteTableAssociationOutput {
   58     66   
    /// The schema for this shape.
   59     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REPLACEROUTETABLEASSOCIATIONOUTPUT_SCHEMA;
   60     68   
}
   61     69   
impl ::aws_smithy_schema::serde::SerializableStruct for ReplaceRouteTableAssociationOutput {
   62     70   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   63     71   
    fn serialize_members(
   64     72   
        &self,
   65     73   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   66     74   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   67     75   
        if let Some(ref val) = self.new_association_id {
   68     76   
            ser.write_string(&REPLACEROUTETABLEASSOCIATIONOUTPUT_MEMBER_NEW_ASSOCIATION_ID, val)?;
   69     77   
        }
   70     78   
        if let Some(ref val) = self.association_state {
   71     79   
            ser.write_struct(&REPLACEROUTETABLEASSOCIATIONOUTPUT_MEMBER_ASSOCIATION_STATE, val)?;
   72     80   
        }
   73     81   
        Ok(())
   74     82   
    }
   75     83   
}
   76     84   
impl ReplaceRouteTableAssociationOutput {
   77     85   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   78         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   79         -
        deserializer: &mut D,
          86  +
    pub fn deserialize(
          87  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   80     88   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   81     89   
        #[allow(unused_variables, unused_mut)]
   82     90   
        let mut builder = Self::builder();
   83     91   
        #[allow(
   84     92   
            unused_variables,
   85     93   
            unreachable_code,
   86     94   
            clippy::single_match,
   87     95   
            clippy::match_single_binding,
   88     96   
            clippy::diverging_sub_expression
   89     97   
        )]
   90         -
        deserializer.read_struct(&REPLACEROUTETABLEASSOCIATIONOUTPUT_SCHEMA, (), |_, member, deser| {
          98  +
        deserializer.read_struct(&REPLACEROUTETABLEASSOCIATIONOUTPUT_SCHEMA, &mut |member, deser| {
          99  +
            match member.member_index() {
         100  +
                Some(0) => {
         101  +
                    builder.new_association_id = Some(deser.read_string(member)?);
         102  +
                }
         103  +
                Some(1) => {
         104  +
                    builder.association_state = Some(crate::types::RouteTableAssociationState::deserialize(deser)?);
         105  +
                }
         106  +
                Some(2) => {
         107  +
                    builder._request_id = Some(deser.read_string(member)?);
         108  +
                }
         109  +
                _ => {}
         110  +
            }
         111  +
            Ok(())
         112  +
        })?;
         113  +
        Ok(builder.build())
         114  +
    }
         115  +
}
         116  +
impl ReplaceRouteTableAssociationOutput {
         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(&REPLACEROUTETABLEASSOCIATIONOUTPUT_SCHEMA, &mut |member, deser| {
   91    139   
            match member.member_index() {
   92    140   
                Some(0) => {
   93    141   
                    builder.new_association_id = Some(deser.read_string(member)?);
   94    142   
                }
   95    143   
                Some(1) => {
   96    144   
                    builder.association_state = Some(crate::types::RouteTableAssociationState::deserialize(deser)?);
   97    145   
                }
   98    146   
                _ => {}
   99    147   
            }
  100    148   
            Ok(())

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

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

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

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

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

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

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

@@ -15,15 +179,192 @@
   35     35   
    "com.amazonaws.ec2.synthetic",
   36     36   
    "ReplaceVpnTunnelInput",
   37     37   
);
   38     38   
static REPLACEVPNTUNNELINPUT_MEMBER_VPN_CONNECTION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.ec2.synthetic#ReplaceVpnTunnelInput$VpnConnectionId",
   41     41   
        "com.amazonaws.ec2.synthetic",
   42     42   
        "ReplaceVpnTunnelInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "vpn_connection_id",
          45  +
    "VpnConnectionId",
   46     46   
    0,
   47     47   
);
   48     48   
static REPLACEVPNTUNNELINPUT_MEMBER_VPN_TUNNEL_OUTSIDE_IP_ADDRESS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   49     49   
    ::aws_smithy_schema::ShapeId::from_static(
   50     50   
        "com.amazonaws.ec2.synthetic#ReplaceVpnTunnelInput$VpnTunnelOutsideIpAddress",
   51     51   
        "com.amazonaws.ec2.synthetic",
   52     52   
        "ReplaceVpnTunnelInput",
   53     53   
    ),
   54     54   
    ::aws_smithy_schema::ShapeType::String,
   55         -
    "vpn_tunnel_outside_ip_address",
          55  +
    "VpnTunnelOutsideIpAddress",
   56     56   
    1,
   57     57   
);
   58     58   
static REPLACEVPNTUNNELINPUT_MEMBER_APPLY_PENDING_MAINTENANCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   59     59   
    ::aws_smithy_schema::ShapeId::from_static(
   60     60   
        "com.amazonaws.ec2.synthetic#ReplaceVpnTunnelInput$ApplyPendingMaintenance",
   61     61   
        "com.amazonaws.ec2.synthetic",
   62     62   
        "ReplaceVpnTunnelInput",
   63     63   
    ),
   64     64   
    ::aws_smithy_schema::ShapeType::Boolean,
   65         -
    "apply_pending_maintenance",
          65  +
    "ApplyPendingMaintenance",
   66     66   
    2,
   67     67   
);
   68     68   
static REPLACEVPNTUNNELINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   69     69   
    ::aws_smithy_schema::ShapeId::from_static(
   70     70   
        "com.amazonaws.ec2.synthetic#ReplaceVpnTunnelInput$DryRun",
   71     71   
        "com.amazonaws.ec2.synthetic",
   72     72   
        "ReplaceVpnTunnelInput",
   73     73   
    ),
   74     74   
    ::aws_smithy_schema::ShapeType::Boolean,
   75         -
    "dry_run",
          75  +
    "DryRun",
   76     76   
    3,
   77     77   
);
   78     78   
static REPLACEVPNTUNNELINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   79     79   
    REPLACEVPNTUNNELINPUT_SCHEMA_ID,
   80     80   
    ::aws_smithy_schema::ShapeType::Structure,
   81     81   
    &[
   82     82   
        &REPLACEVPNTUNNELINPUT_MEMBER_VPN_CONNECTION_ID,
   83     83   
        &REPLACEVPNTUNNELINPUT_MEMBER_VPN_TUNNEL_OUTSIDE_IP_ADDRESS,
   84     84   
        &REPLACEVPNTUNNELINPUT_MEMBER_APPLY_PENDING_MAINTENANCE,
   85     85   
        &REPLACEVPNTUNNELINPUT_MEMBER_DRY_RUN,
   86     86   
    ],
   87     87   
);
   88     88   
impl ReplaceVpnTunnelInput {
   89     89   
    /// The schema for this shape.
   90     90   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REPLACEVPNTUNNELINPUT_SCHEMA;
   91     91   
}
   92     92   
impl ::aws_smithy_schema::serde::SerializableStruct for ReplaceVpnTunnelInput {
   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.vpn_connection_id {
   99     99   
            ser.write_string(&REPLACEVPNTUNNELINPUT_MEMBER_VPN_CONNECTION_ID, val)?;
  100    100   
        }
  101    101   
        if let Some(ref val) = self.vpn_tunnel_outside_ip_address {
  102    102   
            ser.write_string(&REPLACEVPNTUNNELINPUT_MEMBER_VPN_TUNNEL_OUTSIDE_IP_ADDRESS, val)?;
  103    103   
        }
  104    104   
        if let Some(ref val) = self.apply_pending_maintenance {
  105    105   
            ser.write_boolean(&REPLACEVPNTUNNELINPUT_MEMBER_APPLY_PENDING_MAINTENANCE, *val)?;
  106    106   
        }
  107    107   
        if let Some(ref val) = self.dry_run {
  108    108   
            ser.write_boolean(&REPLACEVPNTUNNELINPUT_MEMBER_DRY_RUN, *val)?;
  109    109   
        }
  110    110   
        Ok(())
  111    111   
    }
  112    112   
}
  113    113   
impl ReplaceVpnTunnelInput {
  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(&REPLACEVPNTUNNELINPUT_SCHEMA, (), |_, member, deser| {
         127  +
        deserializer.read_struct(&REPLACEVPNTUNNELINPUT_SCHEMA, &mut |member, deser| {
  128    128   
            match member.member_index() {
  129    129   
                Some(0) => {
  130    130   
                    builder.vpn_connection_id = Some(deser.read_string(member)?);
  131    131   
                }
  132    132   
                Some(1) => {
  133    133   
                    builder.vpn_tunnel_outside_ip_address = Some(deser.read_string(member)?);
  134    134   
                }
  135    135   
                Some(2) => {
  136    136   
                    builder.apply_pending_maintenance = Some(deser.read_boolean(member)?);
  137    137   
                }
  138    138   
                Some(3) => {
  139    139   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  140    140   
                }
  141    141   
                _ => {}
  142    142   
            }
  143    143   
            Ok(())
  144    144   
        })?;
         145  +
        builder.vpn_connection_id = builder.vpn_connection_id.or(Some(String::new()));
         146  +
        builder.vpn_tunnel_outside_ip_address = builder.vpn_tunnel_outside_ip_address.or(Some(String::new()));
  145    147   
        builder
  146    148   
            .build()
  147    149   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  148    150   
    }
  149    151   
}
         152  +
impl ReplaceVpnTunnelInput {
         153  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         154  +
    pub fn deserialize_with_response(
         155  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         156  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         157  +
        _status: u16,
         158  +
        _body: &[u8],
         159  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         160  +
        Self::deserialize(deserializer)
         161  +
    }
         162  +
}
  150    163   
impl ReplaceVpnTunnelInput {
  151    164   
    /// Creates a new builder-style object to manufacture [`ReplaceVpnTunnelInput`](crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelInput).
  152    165   
    pub fn builder() -> crate::operation::replace_vpn_tunnel::builders::ReplaceVpnTunnelInputBuilder {
  153    166   
        crate::operation::replace_vpn_tunnel::builders::ReplaceVpnTunnelInputBuilder::default()
  154    167   
    }
  155    168   
}
  156    169   
  157    170   
/// A builder for [`ReplaceVpnTunnelInput`](crate::operation::replace_vpn_tunnel::ReplaceVpnTunnelInput).
  158    171   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  159    172   
#[non_exhaustive]

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

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

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

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

@@ -92,92 +218,218 @@
  112    112   
    "com.amazonaws.ec2.synthetic",
  113    113   
    "ReportInstanceStatusInput",
  114    114   
);
  115    115   
static REPORTINSTANCESTATUSINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  116    116   
    ::aws_smithy_schema::ShapeId::from_static(
  117    117   
        "com.amazonaws.ec2.synthetic#ReportInstanceStatusInput$DryRun",
  118    118   
        "com.amazonaws.ec2.synthetic",
  119    119   
        "ReportInstanceStatusInput",
  120    120   
    ),
  121    121   
    ::aws_smithy_schema::ShapeType::Boolean,
  122         -
    "dry_run",
         122  +
    "DryRun",
  123    123   
    0,
  124    124   
)
  125    125   
.with_xml_name("dryRun");
  126    126   
static REPORTINSTANCESTATUSINPUT_MEMBER_INSTANCES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  127    127   
    ::aws_smithy_schema::ShapeId::from_static(
  128    128   
        "com.amazonaws.ec2.synthetic#ReportInstanceStatusInput$Instances",
  129    129   
        "com.amazonaws.ec2.synthetic",
  130    130   
        "ReportInstanceStatusInput",
  131    131   
    ),
  132    132   
    ::aws_smithy_schema::ShapeType::List,
  133         -
    "instances",
         133  +
    "Instances",
  134    134   
    1,
  135    135   
)
  136    136   
.with_xml_name("instanceId");
  137    137   
static REPORTINSTANCESTATUSINPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  138    138   
    ::aws_smithy_schema::ShapeId::from_static(
  139    139   
        "com.amazonaws.ec2.synthetic#ReportInstanceStatusInput$Status",
  140    140   
        "com.amazonaws.ec2.synthetic",
  141    141   
        "ReportInstanceStatusInput",
  142    142   
    ),
  143    143   
    ::aws_smithy_schema::ShapeType::String,
  144         -
    "status",
         144  +
    "Status",
  145    145   
    2,
  146    146   
)
  147    147   
.with_xml_name("status");
  148    148   
static REPORTINSTANCESTATUSINPUT_MEMBER_START_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  149    149   
    ::aws_smithy_schema::ShapeId::from_static(
  150    150   
        "com.amazonaws.ec2.synthetic#ReportInstanceStatusInput$StartTime",
  151    151   
        "com.amazonaws.ec2.synthetic",
  152    152   
        "ReportInstanceStatusInput",
  153    153   
    ),
  154    154   
    ::aws_smithy_schema::ShapeType::Timestamp,
  155         -
    "start_time",
         155  +
    "StartTime",
  156    156   
    3,
  157    157   
)
  158    158   
.with_xml_name("startTime");
  159    159   
static REPORTINSTANCESTATUSINPUT_MEMBER_END_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  160    160   
    ::aws_smithy_schema::ShapeId::from_static(
  161    161   
        "com.amazonaws.ec2.synthetic#ReportInstanceStatusInput$EndTime",
  162    162   
        "com.amazonaws.ec2.synthetic",
  163    163   
        "ReportInstanceStatusInput",
  164    164   
    ),
  165    165   
    ::aws_smithy_schema::ShapeType::Timestamp,
  166         -
    "end_time",
         166  +
    "EndTime",
  167    167   
    4,
  168    168   
)
  169    169   
.with_xml_name("endTime");
  170    170   
static REPORTINSTANCESTATUSINPUT_MEMBER_REASON_CODES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  171    171   
    ::aws_smithy_schema::ShapeId::from_static(
  172    172   
        "com.amazonaws.ec2.synthetic#ReportInstanceStatusInput$ReasonCodes",
  173    173   
        "com.amazonaws.ec2.synthetic",
  174    174   
        "ReportInstanceStatusInput",
  175    175   
    ),
  176    176   
    ::aws_smithy_schema::ShapeType::List,
  177         -
    "reason_codes",
         177  +
    "ReasonCodes",
  178    178   
    5,
  179    179   
)
  180    180   
.with_xml_name("reasonCode");
  181    181   
static REPORTINSTANCESTATUSINPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  182    182   
    ::aws_smithy_schema::ShapeId::from_static(
  183    183   
        "com.amazonaws.ec2.synthetic#ReportInstanceStatusInput$Description",
  184    184   
        "com.amazonaws.ec2.synthetic",
  185    185   
        "ReportInstanceStatusInput",
  186    186   
    ),
  187    187   
    ::aws_smithy_schema::ShapeType::String,
  188         -
    "description",
         188  +
    "Description",
  189    189   
    6,
  190    190   
)
  191    191   
.with_xml_name("description");
  192    192   
static REPORTINSTANCESTATUSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  193    193   
    REPORTINSTANCESTATUSINPUT_SCHEMA_ID,
  194    194   
    ::aws_smithy_schema::ShapeType::Structure,
  195    195   
    &[
  196    196   
        &REPORTINSTANCESTATUSINPUT_MEMBER_DRY_RUN,
  197    197   
        &REPORTINSTANCESTATUSINPUT_MEMBER_INSTANCES,
  198    198   
        &REPORTINSTANCESTATUSINPUT_MEMBER_STATUS,
@@ -227,227 +350,350 @@
  247    247   
            )?;
  248    248   
        }
  249    249   
        if let Some(ref val) = self.description {
  250    250   
            ser.write_string(&REPORTINSTANCESTATUSINPUT_MEMBER_DESCRIPTION, val)?;
  251    251   
        }
  252    252   
        Ok(())
  253    253   
    }
  254    254   
}
  255    255   
impl ReportInstanceStatusInput {
  256    256   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  257         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  258         -
        deserializer: &mut D,
         257  +
    pub fn deserialize(
         258  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  259    259   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  260    260   
        #[allow(unused_variables, unused_mut)]
  261    261   
        let mut builder = Self::builder();
  262    262   
        #[allow(
  263    263   
            unused_variables,
  264    264   
            unreachable_code,
  265    265   
            clippy::single_match,
  266    266   
            clippy::match_single_binding,
  267    267   
            clippy::diverging_sub_expression
  268    268   
        )]
  269         -
        deserializer.read_struct(&REPORTINSTANCESTATUSINPUT_SCHEMA, (), |_, member, deser| {
         269  +
        deserializer.read_struct(&REPORTINSTANCESTATUSINPUT_SCHEMA, &mut |member, deser| {
  270    270   
            match member.member_index() {
  271    271   
                Some(0) => {
  272    272   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  273    273   
                }
  274    274   
                Some(1) => {
  275         -
                    builder.instances = Some({
  276         -
                        let container = if let Some(cap) = deser.container_size() {
  277         -
                            Vec::with_capacity(cap)
  278         -
                        } else {
  279         -
                            Vec::new()
  280         -
                        };
  281         -
                        deser.read_list(member, container, |mut list, deser| {
  282         -
                            list.push(deser.read_string(member)?);
  283         -
                            Ok(list)
  284         -
                        })?
  285         -
                    });
         275  +
                    builder.instances = Some(deser.read_string_list(member)?);
  286    276   
                }
  287    277   
                Some(2) => {
  288    278   
                    builder.status = Some(crate::types::ReportStatusType::from(deser.read_string(member)?.as_str()));
  289    279   
                }
  290    280   
                Some(3) => {
  291    281   
                    builder.start_time = Some(deser.read_timestamp(member)?);
  292    282   
                }
  293    283   
                Some(4) => {
  294    284   
                    builder.end_time = Some(deser.read_timestamp(member)?);
  295    285   
                }
  296    286   
                Some(5) => {
  297    287   
                    builder.reason_codes = Some({
  298         -
                        let container = if let Some(cap) = deser.container_size() {
  299         -
                            Vec::with_capacity(cap)
  300         -
                        } else {
  301         -
                            Vec::new()
  302         -
                        };
  303         -
                        deser.read_list(member, container, |mut list, deser| {
  304         -
                            list.push(crate::types::ReportInstanceReasonCodes::from(deser.read_string(member)?.as_str()));
  305         -
                            Ok(list)
  306         -
                        })?
         288  +
                        let mut container = Vec::new();
         289  +
                        deser.read_list(member, &mut |deser| {
         290  +
                            container.push(crate::types::ReportInstanceReasonCodes::from(deser.read_string(member)?.as_str()));
         291  +
                            Ok(())
         292  +
                        })?;
         293  +
                        container
  307    294   
                    });
  308    295   
                }
  309    296   
                Some(6) => {
  310    297   
                    builder.description = Some(deser.read_string(member)?);
  311    298   
                }
  312    299   
                _ => {}
  313    300   
            }
  314    301   
            Ok(())
  315    302   
        })?;
         303  +
        builder.instances = builder.instances.or(Some(Vec::new()));
         304  +
        builder.reason_codes = builder.reason_codes.or(Some(Vec::new()));
  316    305   
        builder
  317    306   
            .build()
  318    307   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  319    308   
    }
  320    309   
}
         310  +
impl ReportInstanceStatusInput {
         311  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         312  +
    pub fn deserialize_with_response(
         313  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         314  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         315  +
        _status: u16,
         316  +
        _body: &[u8],
         317  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         318  +
        Self::deserialize(deserializer)
         319  +
    }
         320  +
}
  321    321   
impl ReportInstanceStatusInput {
  322    322   
    /// Creates a new builder-style object to manufacture [`ReportInstanceStatusInput`](crate::operation::report_instance_status::ReportInstanceStatusInput).
  323    323   
    pub fn builder() -> crate::operation::report_instance_status::builders::ReportInstanceStatusInputBuilder {
  324    324   
        crate::operation::report_instance_status::builders::ReportInstanceStatusInputBuilder::default()
  325    325   
    }
  326    326   
}
  327    327   
  328    328   
/// A builder for [`ReportInstanceStatusInput`](crate::operation::report_instance_status::ReportInstanceStatusInput).
  329    329   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
  330    330   
#[non_exhaustive]

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

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct ReportInstanceStatusOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static REPORTINSTANCESTATUSOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.ec2.synthetic#ReportInstanceStatusOutput",
   10     10   
    "com.amazonaws.ec2.synthetic",
   11     11   
    "ReportInstanceStatusOutput",
   12     12   
);
   13         -
static REPORTINSTANCESTATUSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(REPORTINSTANCESTATUSOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static REPORTINSTANCESTATUSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
          20  +
static REPORTINSTANCESTATUSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    REPORTINSTANCESTATUSOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&REPORTINSTANCESTATUSOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl ReportInstanceStatusOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REPORTINSTANCESTATUSOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for ReportInstanceStatusOutput {
   20     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   21     31   
    fn serialize_members(
   22     32   
        &self,
   23     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   24     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   25     35   
        Ok(())
   26     36   
    }
   27     37   
}
   28     38   
impl ReportInstanceStatusOutput {
   29     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   30         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   31         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   32     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   33     43   
        #[allow(unused_variables, unused_mut)]
   34     44   
        let mut builder = Self::builder();
   35     45   
        #[allow(
   36     46   
            unused_variables,
   37     47   
            unreachable_code,
   38     48   
            clippy::single_match,
   39     49   
            clippy::match_single_binding,
   40     50   
            clippy::diverging_sub_expression
   41     51   
        )]
   42         -
        deserializer.read_struct(&REPORTINSTANCESTATUSOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&REPORTINSTANCESTATUSOUTPUT_SCHEMA, &mut |member, deser| {
   43     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   44     57   
                _ => {}
   45     58   
            }
   46     59   
            Ok(())
   47     60   
        })?;
   48     61   
        Ok(builder.build())
   49     62   
    }
   50     63   
}
          64  +
impl ReportInstanceStatusOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   51     82   
impl ::aws_types::request_id::RequestId for ReportInstanceStatusOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl ReportInstanceStatusOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`ReportInstanceStatusOutput`](crate::operation::report_instance_status::ReportInstanceStatusOutput).
   58     89   
    pub fn builder() -> crate::operation::report_instance_status::builders::ReportInstanceStatusOutputBuilder {
   59     90   
        crate::operation::report_instance_status::builders::ReportInstanceStatusOutputBuilder::default()
   60     91   
    }

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