AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12

Files changed:

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

@@ -51,51 +221,229 @@
   71     71   
    "com.amazonaws.ec2.synthetic",
   72     72   
    "GetReservedInstancesExchangeQuoteOutput",
   73     73   
);
   74     74   
static GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_CURRENCY_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   75     75   
    ::aws_smithy_schema::ShapeId::from_static(
   76     76   
        "com.amazonaws.ec2.synthetic#GetReservedInstancesExchangeQuoteOutput$CurrencyCode",
   77     77   
        "com.amazonaws.ec2.synthetic",
   78     78   
        "GetReservedInstancesExchangeQuoteOutput",
   79     79   
    ),
   80     80   
    ::aws_smithy_schema::ShapeType::String,
   81         -
    "currency_code",
          81  +
    "CurrencyCode",
   82     82   
    0,
   83     83   
)
   84     84   
.with_xml_name("currencyCode");
   85     85   
static GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_IS_VALID_EXCHANGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   86     86   
    ::aws_smithy_schema::ShapeId::from_static(
   87     87   
        "com.amazonaws.ec2.synthetic#GetReservedInstancesExchangeQuoteOutput$IsValidExchange",
   88     88   
        "com.amazonaws.ec2.synthetic",
   89     89   
        "GetReservedInstancesExchangeQuoteOutput",
   90     90   
    ),
   91     91   
    ::aws_smithy_schema::ShapeType::Boolean,
   92         -
    "is_valid_exchange",
          92  +
    "IsValidExchange",
   93     93   
    1,
   94     94   
)
   95     95   
.with_xml_name("isValidExchange");
   96     96   
static GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_OUTPUT_RESERVED_INSTANCES_WILL_EXPIRE_AT: ::aws_smithy_schema::Schema =
   97     97   
    ::aws_smithy_schema::Schema::new_member(
   98     98   
        ::aws_smithy_schema::ShapeId::from_static(
   99     99   
            "com.amazonaws.ec2.synthetic#GetReservedInstancesExchangeQuoteOutput$OutputReservedInstancesWillExpireAt",
  100    100   
            "com.amazonaws.ec2.synthetic",
  101    101   
            "GetReservedInstancesExchangeQuoteOutput",
  102    102   
        ),
  103    103   
        ::aws_smithy_schema::ShapeType::Timestamp,
  104         -
        "output_reserved_instances_will_expire_at",
         104  +
        "OutputReservedInstancesWillExpireAt",
  105    105   
        2,
  106    106   
    )
  107    107   
    .with_xml_name("outputReservedInstancesWillExpireAt");
  108    108   
static GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_PAYMENT_DUE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  109    109   
    ::aws_smithy_schema::ShapeId::from_static(
  110    110   
        "com.amazonaws.ec2.synthetic#GetReservedInstancesExchangeQuoteOutput$PaymentDue",
  111    111   
        "com.amazonaws.ec2.synthetic",
  112    112   
        "GetReservedInstancesExchangeQuoteOutput",
  113    113   
    ),
  114    114   
    ::aws_smithy_schema::ShapeType::String,
  115         -
    "payment_due",
         115  +
    "PaymentDue",
  116    116   
    3,
  117    117   
)
  118    118   
.with_xml_name("paymentDue");
  119    119   
static GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_RESERVED_INSTANCE_VALUE_ROLLUP: ::aws_smithy_schema::Schema =
  120    120   
    ::aws_smithy_schema::Schema::new_member(
  121    121   
        ::aws_smithy_schema::ShapeId::from_static(
  122    122   
            "com.amazonaws.ec2.synthetic#GetReservedInstancesExchangeQuoteOutput$ReservedInstanceValueRollup",
  123    123   
            "com.amazonaws.ec2.synthetic",
  124    124   
            "GetReservedInstancesExchangeQuoteOutput",
  125    125   
        ),
  126    126   
        ::aws_smithy_schema::ShapeType::Structure,
  127         -
        "reserved_instance_value_rollup",
         127  +
        "ReservedInstanceValueRollup",
  128    128   
        4,
  129    129   
    )
  130    130   
    .with_xml_name("reservedInstanceValueRollup");
  131    131   
static GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_RESERVED_INSTANCE_VALUE_SET: ::aws_smithy_schema::Schema =
  132    132   
    ::aws_smithy_schema::Schema::new_member(
  133    133   
        ::aws_smithy_schema::ShapeId::from_static(
  134    134   
            "com.amazonaws.ec2.synthetic#GetReservedInstancesExchangeQuoteOutput$ReservedInstanceValueSet",
  135    135   
            "com.amazonaws.ec2.synthetic",
  136    136   
            "GetReservedInstancesExchangeQuoteOutput",
  137    137   
        ),
  138    138   
        ::aws_smithy_schema::ShapeType::List,
  139         -
        "reserved_instance_value_set",
         139  +
        "ReservedInstanceValueSet",
  140    140   
        5,
  141    141   
    )
  142    142   
    .with_xml_name("reservedInstanceValueSet");
  143    143   
static GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_TARGET_CONFIGURATION_VALUE_ROLLUP: ::aws_smithy_schema::Schema =
  144    144   
    ::aws_smithy_schema::Schema::new_member(
  145    145   
        ::aws_smithy_schema::ShapeId::from_static(
  146    146   
            "com.amazonaws.ec2.synthetic#GetReservedInstancesExchangeQuoteOutput$TargetConfigurationValueRollup",
  147    147   
            "com.amazonaws.ec2.synthetic",
  148    148   
            "GetReservedInstancesExchangeQuoteOutput",
  149    149   
        ),
  150    150   
        ::aws_smithy_schema::ShapeType::Structure,
  151         -
        "target_configuration_value_rollup",
         151  +
        "TargetConfigurationValueRollup",
  152    152   
        6,
  153    153   
    )
  154    154   
    .with_xml_name("targetConfigurationValueRollup");
  155    155   
static GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_TARGET_CONFIGURATION_VALUE_SET: ::aws_smithy_schema::Schema =
  156    156   
    ::aws_smithy_schema::Schema::new_member(
  157    157   
        ::aws_smithy_schema::ShapeId::from_static(
  158    158   
            "com.amazonaws.ec2.synthetic#GetReservedInstancesExchangeQuoteOutput$TargetConfigurationValueSet",
  159    159   
            "com.amazonaws.ec2.synthetic",
  160    160   
            "GetReservedInstancesExchangeQuoteOutput",
  161    161   
        ),
  162    162   
        ::aws_smithy_schema::ShapeType::List,
  163         -
        "target_configuration_value_set",
         163  +
        "TargetConfigurationValueSet",
  164    164   
        7,
  165    165   
    )
  166    166   
    .with_xml_name("targetConfigurationValueSet");
  167    167   
static GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_VALIDATION_FAILURE_REASON: ::aws_smithy_schema::Schema =
  168    168   
    ::aws_smithy_schema::Schema::new_member(
  169    169   
        ::aws_smithy_schema::ShapeId::from_static(
  170    170   
            "com.amazonaws.ec2.synthetic#GetReservedInstancesExchangeQuoteOutput$ValidationFailureReason",
  171    171   
            "com.amazonaws.ec2.synthetic",
  172    172   
            "GetReservedInstancesExchangeQuoteOutput",
  173    173   
        ),
  174    174   
        ::aws_smithy_schema::ShapeType::String,
  175         -
        "validation_failure_reason",
         175  +
        "ValidationFailureReason",
  176    176   
        8,
  177    177   
    )
  178    178   
    .with_xml_name("validationFailureReason");
         179  +
static GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         180  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         181  +
    ::aws_smithy_schema::ShapeType::String,
         182  +
    "request_id",
         183  +
    9,
         184  +
)
         185  +
.with_http_header("x-amzn-requestid");
  179    186   
static GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  180    187   
    GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_SCHEMA_ID,
  181    188   
    ::aws_smithy_schema::ShapeType::Structure,
  182    189   
    &[
  183    190   
        &GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_CURRENCY_CODE,
  184    191   
        &GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_IS_VALID_EXCHANGE,
  185    192   
        &GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_OUTPUT_RESERVED_INSTANCES_WILL_EXPIRE_AT,
  186    193   
        &GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_PAYMENT_DUE,
  187    194   
        &GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_RESERVED_INSTANCE_VALUE_ROLLUP,
  188    195   
        &GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_RESERVED_INSTANCE_VALUE_SET,
  189    196   
        &GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_TARGET_CONFIGURATION_VALUE_ROLLUP,
  190    197   
        &GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_TARGET_CONFIGURATION_VALUE_SET,
  191    198   
        &GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_VALIDATION_FAILURE_REASON,
         199  +
        &GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER__REQUEST_ID,
  192    200   
    ],
  193    201   
);
  194    202   
impl GetReservedInstancesExchangeQuoteOutput {
  195    203   
    /// The schema for this shape.
  196    204   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_SCHEMA;
  197    205   
}
  198    206   
impl ::aws_smithy_schema::serde::SerializableStruct for GetReservedInstancesExchangeQuoteOutput {
  199    207   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  200    208   
    fn serialize_members(
  201    209   
        &self,
@@ -225,233 +340,417 @@
  245    253   
            )?;
  246    254   
        }
  247    255   
        if let Some(ref val) = self.validation_failure_reason {
  248    256   
            ser.write_string(&GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_MEMBER_VALIDATION_FAILURE_REASON, val)?;
  249    257   
        }
  250    258   
        Ok(())
  251    259   
    }
  252    260   
}
  253    261   
impl GetReservedInstancesExchangeQuoteOutput {
  254    262   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  255         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  256         -
        deserializer: &mut D,
         263  +
    pub fn deserialize(
         264  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         265  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         266  +
        #[allow(unused_variables, unused_mut)]
         267  +
        let mut builder = Self::builder();
         268  +
        #[allow(
         269  +
            unused_variables,
         270  +
            unreachable_code,
         271  +
            clippy::single_match,
         272  +
            clippy::match_single_binding,
         273  +
            clippy::diverging_sub_expression
         274  +
        )]
         275  +
        deserializer.read_struct(&GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_SCHEMA, &mut |member, deser| {
         276  +
            match member.member_index() {
         277  +
                Some(0) => {
         278  +
                    builder.currency_code = Some(deser.read_string(member)?);
         279  +
                }
         280  +
                Some(1) => {
         281  +
                    builder.is_valid_exchange = Some(deser.read_boolean(member)?);
         282  +
                }
         283  +
                Some(2) => {
         284  +
                    builder.output_reserved_instances_will_expire_at = Some(deser.read_timestamp(member)?);
         285  +
                }
         286  +
                Some(3) => {
         287  +
                    builder.payment_due = Some(deser.read_string(member)?);
         288  +
                }
         289  +
                Some(4) => {
         290  +
                    builder.reserved_instance_value_rollup = Some(crate::types::ReservationValue::deserialize(deser)?);
         291  +
                }
         292  +
                Some(5) => {
         293  +
                    builder.reserved_instance_value_set = Some({
         294  +
                        let mut container = Vec::new();
         295  +
                        deser.read_list(member, &mut |deser| {
         296  +
                            container.push(crate::types::ReservedInstanceReservationValue::deserialize(deser)?);
         297  +
                            Ok(())
         298  +
                        })?;
         299  +
                        container
         300  +
                    });
         301  +
                }
         302  +
                Some(6) => {
         303  +
                    builder.target_configuration_value_rollup = Some(crate::types::ReservationValue::deserialize(deser)?);
         304  +
                }
         305  +
                Some(7) => {
         306  +
                    builder.target_configuration_value_set = Some({
         307  +
                        let mut container = Vec::new();
         308  +
                        deser.read_list(member, &mut |deser| {
         309  +
                            container.push(crate::types::TargetReservationValue::deserialize(deser)?);
         310  +
                            Ok(())
         311  +
                        })?;
         312  +
                        container
         313  +
                    });
         314  +
                }
         315  +
                Some(8) => {
         316  +
                    builder.validation_failure_reason = Some(deser.read_string(member)?);
         317  +
                }
         318  +
                Some(9) => {
         319  +
                    builder._request_id = Some(deser.read_string(member)?);
         320  +
                }
         321  +
                _ => {}
         322  +
            }
         323  +
            Ok(())
         324  +
        })?;
         325  +
        Ok(builder.build())
         326  +
    }
         327  +
}
         328  +
impl GetReservedInstancesExchangeQuoteOutput {
         329  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         330  +
    /// Header-bound members are read directly from headers, avoiding runtime
         331  +
    /// member iteration overhead. Body members are read via the deserializer.
         332  +
    pub fn deserialize_with_response(
         333  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         334  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         335  +
        _status: u16,
         336  +
        _body: &[u8],
  257    337   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  258    338   
        #[allow(unused_variables, unused_mut)]
  259    339   
        let mut builder = Self::builder();
         340  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         341  +
            builder._request_id = Some(val.to_string());
         342  +
        }
  260    343   
        #[allow(
  261    344   
            unused_variables,
  262    345   
            unreachable_code,
  263    346   
            clippy::single_match,
  264    347   
            clippy::match_single_binding,
  265    348   
            clippy::diverging_sub_expression
  266    349   
        )]
  267         -
        deserializer.read_struct(&GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_SCHEMA, (), |_, member, deser| {
         350  +
        deserializer.read_struct(&GETRESERVEDINSTANCESEXCHANGEQUOTEOUTPUT_SCHEMA, &mut |member, deser| {
  268    351   
            match member.member_index() {
  269    352   
                Some(0) => {
  270    353   
                    builder.currency_code = Some(deser.read_string(member)?);
  271    354   
                }
  272    355   
                Some(1) => {
  273    356   
                    builder.is_valid_exchange = Some(deser.read_boolean(member)?);
  274    357   
                }
  275    358   
                Some(2) => {
  276    359   
                    builder.output_reserved_instances_will_expire_at = Some(deser.read_timestamp(member)?);
  277    360   
                }
  278    361   
                Some(3) => {
  279    362   
                    builder.payment_due = Some(deser.read_string(member)?);
  280    363   
                }
  281    364   
                Some(4) => {
  282    365   
                    builder.reserved_instance_value_rollup = Some(crate::types::ReservationValue::deserialize(deser)?);
  283    366   
                }
  284    367   
                Some(5) => {
  285    368   
                    builder.reserved_instance_value_set = Some({
  286         -
                        let container = if let Some(cap) = deser.container_size() {
  287         -
                            Vec::with_capacity(cap)
  288         -
                        } else {
  289         -
                            Vec::new()
  290         -
                        };
  291         -
                        deser.read_list(member, container, |mut list, deser| {
  292         -
                            list.push(crate::types::ReservedInstanceReservationValue::deserialize(deser)?);
  293         -
                            Ok(list)
  294         -
                        })?
         369  +
                        let mut container = Vec::new();
         370  +
                        deser.read_list(member, &mut |deser| {
         371  +
                            container.push(crate::types::ReservedInstanceReservationValue::deserialize(deser)?);
         372  +
                            Ok(())
         373  +
                        })?;
         374  +
                        container
  295    375   
                    });
  296    376   
                }
  297    377   
                Some(6) => {
  298    378   
                    builder.target_configuration_value_rollup = Some(crate::types::ReservationValue::deserialize(deser)?);
  299    379   
                }
  300    380   
                Some(7) => {
  301    381   
                    builder.target_configuration_value_set = Some({
  302         -
                        let container = if let Some(cap) = deser.container_size() {
  303         -
                            Vec::with_capacity(cap)
  304         -
                        } else {
  305         -
                            Vec::new()
  306         -
                        };
  307         -
                        deser.read_list(member, container, |mut list, deser| {
  308         -
                            list.push(crate::types::TargetReservationValue::deserialize(deser)?);
  309         -
                            Ok(list)
  310         -
                        })?
         382  +
                        let mut container = Vec::new();
         383  +
                        deser.read_list(member, &mut |deser| {
         384  +
                            container.push(crate::types::TargetReservationValue::deserialize(deser)?);
         385  +
                            Ok(())
         386  +
                        })?;
         387  +
                        container
  311    388   
                    });
  312    389   
                }
  313    390   
                Some(8) => {
  314    391   
                    builder.validation_failure_reason = Some(deser.read_string(member)?);
  315    392   
                }
  316    393   
                _ => {}
  317    394   
            }
  318    395   
            Ok(())
  319    396   
        })?;
  320    397   
        Ok(builder.build())

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/get_route_server_associations.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 `GetRouteServerAssociations`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetRouteServerAssociations;
    6      6   
impl GetRouteServerAssociations {
    7      7   
    /// Creates a new `GetRouteServerAssociations`
    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::get_route_server_associations::GetRouteServerAssociationsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_route_server_associations::GetRouteServerAssociationsOutput::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::get_route_server_associations::GetRouteServerAssociationsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_route_server_associations::GetRouteServerAssociationsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_route_server_associations::GetRouteServerAssociationsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::get_route_server_associations::GetRouteServerAssociationsError,
  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 GetRouteServerAssociationsResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetRouteServerAssociationsResponseDeserializer {
  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_get_route_server_associations::de_get_route_server_associations_http_error(status, headers, body)
  160    167   
        } else {

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/get_route_server_propagations.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 `GetRouteServerPropagations`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetRouteServerPropagations;
    6      6   
impl GetRouteServerPropagations {
    7      7   
    /// Creates a new `GetRouteServerPropagations`
    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::get_route_server_propagations::GetRouteServerPropagationsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_route_server_propagations::GetRouteServerPropagationsOutput::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::get_route_server_propagations::GetRouteServerPropagationsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_route_server_propagations::GetRouteServerPropagationsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_route_server_propagations::GetRouteServerPropagationsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::get_route_server_propagations::GetRouteServerPropagationsError,
  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 GetRouteServerPropagationsResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetRouteServerPropagationsResponseDeserializer {
  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_get_route_server_propagations::de_get_route_server_propagations_http_error(status, headers, body)
  160    167   
        } else {

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/get_route_server_routing_database.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 `GetRouteServerRoutingDatabase`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetRouteServerRoutingDatabase;
    6      6   
impl GetRouteServerRoutingDatabase {
    7      7   
    /// Creates a new `GetRouteServerRoutingDatabase`
    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::get_route_server_routing_database::GetRouteServerRoutingDatabaseInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseOutput::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::get_route_server_routing_database::GetRouteServerRoutingDatabaseInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::get_route_server_routing_database::GetRouteServerRoutingDatabaseError,
  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 GetRouteServerRoutingDatabaseResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetRouteServerRoutingDatabaseResponseDeserializer {
  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_get_route_server_routing_database::de_get_route_server_routing_database_http_error(status, headers, body)
  160    167   
        } else {

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

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

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

@@ -12,12 +166,221 @@
   32     32   
    "com.amazonaws.ec2.synthetic",
   33     33   
    "GetRouteServerRoutingDatabaseOutput",
   34     34   
);
   35     35   
static GETROUTESERVERROUTINGDATABASEOUTPUT_MEMBER_ARE_ROUTES_PERSISTED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   36     36   
    ::aws_smithy_schema::ShapeId::from_static(
   37     37   
        "com.amazonaws.ec2.synthetic#GetRouteServerRoutingDatabaseOutput$AreRoutesPersisted",
   38     38   
        "com.amazonaws.ec2.synthetic",
   39     39   
        "GetRouteServerRoutingDatabaseOutput",
   40     40   
    ),
   41     41   
    ::aws_smithy_schema::ShapeType::Boolean,
   42         -
    "are_routes_persisted",
          42  +
    "AreRoutesPersisted",
   43     43   
    0,
   44     44   
)
   45     45   
.with_xml_name("areRoutesPersisted");
   46     46   
static GETROUTESERVERROUTINGDATABASEOUTPUT_MEMBER_ROUTES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   47     47   
    ::aws_smithy_schema::ShapeId::from_static(
   48     48   
        "com.amazonaws.ec2.synthetic#GetRouteServerRoutingDatabaseOutput$Routes",
   49     49   
        "com.amazonaws.ec2.synthetic",
   50     50   
        "GetRouteServerRoutingDatabaseOutput",
   51     51   
    ),
   52     52   
    ::aws_smithy_schema::ShapeType::List,
   53         -
    "routes",
          53  +
    "Routes",
   54     54   
    1,
   55     55   
)
   56     56   
.with_xml_name("routeSet");
   57     57   
static GETROUTESERVERROUTINGDATABASEOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   58     58   
    ::aws_smithy_schema::ShapeId::from_static(
   59     59   
        "com.amazonaws.ec2.synthetic#GetRouteServerRoutingDatabaseOutput$NextToken",
   60     60   
        "com.amazonaws.ec2.synthetic",
   61     61   
        "GetRouteServerRoutingDatabaseOutput",
   62     62   
    ),
   63     63   
    ::aws_smithy_schema::ShapeType::String,
   64         -
    "next_token",
          64  +
    "NextToken",
   65     65   
    2,
   66     66   
)
   67     67   
.with_xml_name("nextToken");
          68  +
static GETROUTESERVERROUTINGDATABASEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          69  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          70  +
    ::aws_smithy_schema::ShapeType::String,
          71  +
    "request_id",
          72  +
    3,
          73  +
)
          74  +
.with_http_header("x-amzn-requestid");
   68     75   
static GETROUTESERVERROUTINGDATABASEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   69     76   
    GETROUTESERVERROUTINGDATABASEOUTPUT_SCHEMA_ID,
   70     77   
    ::aws_smithy_schema::ShapeType::Structure,
   71     78   
    &[
   72     79   
        &GETROUTESERVERROUTINGDATABASEOUTPUT_MEMBER_ARE_ROUTES_PERSISTED,
   73     80   
        &GETROUTESERVERROUTINGDATABASEOUTPUT_MEMBER_ROUTES,
   74     81   
        &GETROUTESERVERROUTINGDATABASEOUTPUT_MEMBER_NEXT_TOKEN,
          82  +
        &GETROUTESERVERROUTINGDATABASEOUTPUT_MEMBER__REQUEST_ID,
   75     83   
    ],
   76     84   
);
   77     85   
impl GetRouteServerRoutingDatabaseOutput {
   78     86   
    /// The schema for this shape.
   79     87   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETROUTESERVERROUTINGDATABASEOUTPUT_SCHEMA;
   80     88   
}
   81     89   
impl ::aws_smithy_schema::serde::SerializableStruct for GetRouteServerRoutingDatabaseOutput {
   82     90   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   83     91   
    fn serialize_members(
   84     92   
        &self,
   85     93   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   86     94   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   87     95   
        if let Some(ref val) = self.are_routes_persisted {
   88     96   
            ser.write_boolean(&GETROUTESERVERROUTINGDATABASEOUTPUT_MEMBER_ARE_ROUTES_PERSISTED, *val)?;
   89     97   
        }
   90     98   
        if let Some(ref val) = self.routes {
   91     99   
            ser.write_list(
   92    100   
                &GETROUTESERVERROUTINGDATABASEOUTPUT_MEMBER_ROUTES,
   93    101   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   94    102   
                    for item in val {
   95    103   
                        ser.write_struct(crate::types::RouteServerRoute::SCHEMA, item)?;
   96    104   
                    }
   97    105   
                    Ok(())
   98    106   
                },
   99    107   
            )?;
  100    108   
        }
  101    109   
        if let Some(ref val) = self.next_token {
  102    110   
            ser.write_string(&GETROUTESERVERROUTINGDATABASEOUTPUT_MEMBER_NEXT_TOKEN, val)?;
  103    111   
        }
  104    112   
        Ok(())
  105    113   
    }
  106    114   
}
  107    115   
impl GetRouteServerRoutingDatabaseOutput {
  108    116   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  109         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  110         -
        deserializer: &mut D,
         117  +
    pub fn deserialize(
         118  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  111    119   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  112    120   
        #[allow(unused_variables, unused_mut)]
  113    121   
        let mut builder = Self::builder();
  114    122   
        #[allow(
  115    123   
            unused_variables,
  116    124   
            unreachable_code,
  117    125   
            clippy::single_match,
  118    126   
            clippy::match_single_binding,
  119    127   
            clippy::diverging_sub_expression
  120    128   
        )]
  121         -
        deserializer.read_struct(&GETROUTESERVERROUTINGDATABASEOUTPUT_SCHEMA, (), |_, member, deser| {
         129  +
        deserializer.read_struct(&GETROUTESERVERROUTINGDATABASEOUTPUT_SCHEMA, &mut |member, deser| {
         130  +
            match member.member_index() {
         131  +
                Some(0) => {
         132  +
                    builder.are_routes_persisted = Some(deser.read_boolean(member)?);
         133  +
                }
         134  +
                Some(1) => {
         135  +
                    builder.routes = Some({
         136  +
                        let mut container = Vec::new();
         137  +
                        deser.read_list(member, &mut |deser| {
         138  +
                            container.push(crate::types::RouteServerRoute::deserialize(deser)?);
         139  +
                            Ok(())
         140  +
                        })?;
         141  +
                        container
         142  +
                    });
         143  +
                }
         144  +
                Some(2) => {
         145  +
                    builder.next_token = Some(deser.read_string(member)?);
         146  +
                }
         147  +
                Some(3) => {
         148  +
                    builder._request_id = Some(deser.read_string(member)?);
         149  +
                }
         150  +
                _ => {}
         151  +
            }
         152  +
            Ok(())
         153  +
        })?;
         154  +
        Ok(builder.build())
         155  +
    }
         156  +
}
         157  +
impl GetRouteServerRoutingDatabaseOutput {
         158  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         159  +
    /// Header-bound members are read directly from headers, avoiding runtime
         160  +
    /// member iteration overhead. Body members are read via the deserializer.
         161  +
    pub fn deserialize_with_response(
         162  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         163  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         164  +
        _status: u16,
         165  +
        _body: &[u8],
         166  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         167  +
        #[allow(unused_variables, unused_mut)]
         168  +
        let mut builder = Self::builder();
         169  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         170  +
            builder._request_id = Some(val.to_string());
         171  +
        }
         172  +
        #[allow(
         173  +
            unused_variables,
         174  +
            unreachable_code,
         175  +
            clippy::single_match,
         176  +
            clippy::match_single_binding,
         177  +
            clippy::diverging_sub_expression
         178  +
        )]
         179  +
        deserializer.read_struct(&GETROUTESERVERROUTINGDATABASEOUTPUT_SCHEMA, &mut |member, deser| {
  122    180   
            match member.member_index() {
  123    181   
                Some(0) => {
  124    182   
                    builder.are_routes_persisted = Some(deser.read_boolean(member)?);
  125    183   
                }
  126    184   
                Some(1) => {
  127    185   
                    builder.routes = Some({
  128         -
                        let container = if let Some(cap) = deser.container_size() {
  129         -
                            Vec::with_capacity(cap)
  130         -
                        } else {
  131         -
                            Vec::new()
  132         -
                        };
  133         -
                        deser.read_list(member, container, |mut list, deser| {
  134         -
                            list.push(crate::types::RouteServerRoute::deserialize(deser)?);
  135         -
                            Ok(list)
  136         -
                        })?
         186  +
                        let mut container = Vec::new();
         187  +
                        deser.read_list(member, &mut |deser| {
         188  +
                            container.push(crate::types::RouteServerRoute::deserialize(deser)?);
         189  +
                            Ok(())
         190  +
                        })?;
         191  +
                        container
  137    192   
                    });
  138    193   
                }
  139    194   
                Some(2) => {
  140    195   
                    builder.next_token = Some(deser.read_string(member)?);
  141    196   
                }
  142    197   
                _ => {}
  143    198   
            }
  144    199   
            Ok(())
  145    200   
        })?;
  146    201   
        Ok(builder.build())

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/get_security_groups_for_vpc.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 `GetSecurityGroupsForVpc`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetSecurityGroupsForVpc;
    6      6   
impl GetSecurityGroupsForVpc {
    7      7   
    /// Creates a new `GetSecurityGroupsForVpc`
    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::get_security_groups_for_vpc::GetSecurityGroupsForVpcInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcOutput::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::get_security_groups_for_vpc::GetSecurityGroupsForVpcInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::get_security_groups_for_vpc::GetSecurityGroupsForVpcError,
  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 GetSecurityGroupsForVpcResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetSecurityGroupsForVpcResponseDeserializer {
  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_get_security_groups_for_vpc::de_get_security_groups_for_vpc_http_error(status, headers, body)
  160    167   
        } else {

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/get_serial_console_access_status.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 `GetSerialConsoleAccessStatus`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetSerialConsoleAccessStatus;
    6      6   
impl GetSerialConsoleAccessStatus {
    7      7   
    /// Creates a new `GetSerialConsoleAccessStatus`
    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::get_serial_console_access_status::GetSerialConsoleAccessStatusInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusOutput::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::get_serial_console_access_status::GetSerialConsoleAccessStatusInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::get_serial_console_access_status::GetSerialConsoleAccessStatusError,
  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 GetSerialConsoleAccessStatusResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetSerialConsoleAccessStatusResponseDeserializer {
  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_get_serial_console_access_status::de_get_serial_console_access_status_http_error(status, headers, body)
  160    167   
        } else {

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

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

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

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