AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12

Files changed:

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

@@ -6,6 +142,194 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeAddressTransfersOutput",
   28     28   
);
   29     29   
static DESCRIBEADDRESSTRANSFERSOUTPUT_MEMBER_ADDRESS_TRANSFERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeAddressTransfersOutput$AddressTransfers",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeAddressTransfersOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "address_transfers",
          36  +
    "AddressTransfers",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("addressTransferSet");
   40     40   
static DESCRIBEADDRESSTRANSFERSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.ec2.synthetic#DescribeAddressTransfersOutput$NextToken",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeAddressTransfersOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::String,
   47         -
    "next_token",
          47  +
    "NextToken",
   48     48   
    1,
   49     49   
)
   50     50   
.with_xml_name("nextToken");
          51  +
static DESCRIBEADDRESSTRANSFERSOUTPUT_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 DESCRIBEADDRESSTRANSFERSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBEADDRESSTRANSFERSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &DESCRIBEADDRESSTRANSFERSOUTPUT_MEMBER_ADDRESS_TRANSFERS,
   56     63   
        &DESCRIBEADDRESSTRANSFERSOUTPUT_MEMBER_NEXT_TOKEN,
          64  +
        &DESCRIBEADDRESSTRANSFERSOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl DescribeAddressTransfersOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEADDRESSTRANSFERSOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeAddressTransfersOutput {
   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.address_transfers {
   70     78   
            ser.write_list(
   71     79   
                &DESCRIBEADDRESSTRANSFERSOUTPUT_MEMBER_ADDRESS_TRANSFERS,
   72     80   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   73     81   
                    for item in val {
   74     82   
                        ser.write_struct(crate::types::AddressTransfer::SCHEMA, item)?;
   75     83   
                    }
   76     84   
                    Ok(())
   77     85   
                },
   78     86   
            )?;
   79     87   
        }
   80     88   
        if let Some(ref val) = self.next_token {
   81     89   
            ser.write_string(&DESCRIBEADDRESSTRANSFERSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl DescribeAddressTransfersOutput {
   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(&DESCRIBEADDRESSTRANSFERSOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.address_transfers = Some({
         112  +
                        let mut container = Vec::new();
         113  +
                        deser.read_list(member, &mut |deser| {
         114  +
                            container.push(crate::types::AddressTransfer::deserialize(deser)?);
         115  +
                            Ok(())
         116  +
                        })?;
         117  +
                        container
         118  +
                    });
         119  +
                }
         120  +
                Some(1) => {
         121  +
                    builder.next_token = Some(deser.read_string(member)?);
         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 DescribeAddressTransfersOutput {
         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(&DESCRIBEADDRESSTRANSFERSOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBEADDRESSTRANSFERSOUTPUT_SCHEMA, &mut |member, deser| {
  101    156   
            match member.member_index() {
  102    157   
                Some(0) => {
  103    158   
                    builder.address_transfers = Some({
  104         -
                        let container = if let Some(cap) = deser.container_size() {
  105         -
                            Vec::with_capacity(cap)
  106         -
                        } else {
  107         -
                            Vec::new()
  108         -
                        };
  109         -
                        deser.read_list(member, container, |mut list, deser| {
  110         -
                            list.push(crate::types::AddressTransfer::deserialize(deser)?);
  111         -
                            Ok(list)
  112         -
                        })?
         159  +
                        let mut container = Vec::new();
         160  +
                        deser.read_list(member, &mut |deser| {
         161  +
                            container.push(crate::types::AddressTransfer::deserialize(deser)?);
         162  +
                            Ok(())
         163  +
                        })?;
         164  +
                        container
  113    165   
                    });
  114    166   
                }
  115    167   
                Some(1) => {
  116    168   
                    builder.next_token = Some(deser.read_string(member)?);
  117    169   
                }
  118    170   
                _ => {}
  119    171   
            }
  120    172   
            Ok(())
  121    173   
        })?;
  122    174   
        Ok(builder.build())

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `DescribeAddresses`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeAddresses;
    6      6   
impl DescribeAddresses {
    7      7   
    /// Creates a new `DescribeAddresses`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_addresses::DescribeAddressesInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_addresses::DescribeAddressesOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::describe_addresses::DescribeAddressesInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::describe_addresses::DescribeAddressesOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::describe_addresses::DescribeAddressesError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::describe_addresses::DescribeAddressesError,
  136    140   
            >::new());
  137    141   
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct DescribeAddressesResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeAddressesResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150    155   
        let headers = response.headers();
  151    156   
        let body = response.body().bytes().expect("body loaded");
  152    157   
        #[allow(unused_mut)]
  153    158   
        let mut force_error = false;
  154    159   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155    160   
        let parse_result = if !success && status != 200 || force_error {
  156    161   
            crate::protocol_serde::shape_describe_addresses::de_describe_addresses_http_error(status, headers, body)
  157    162   
        } else {

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

@@ -79,79 +172,172 @@
   99     99   
    "com.amazonaws.ec2.synthetic",
  100    100   
    "DescribeAddressesInput",
  101    101   
);
  102    102   
static DESCRIBEADDRESSESINPUT_MEMBER_PUBLIC_IPS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  103    103   
    ::aws_smithy_schema::ShapeId::from_static(
  104    104   
        "com.amazonaws.ec2.synthetic#DescribeAddressesInput$PublicIps",
  105    105   
        "com.amazonaws.ec2.synthetic",
  106    106   
        "DescribeAddressesInput",
  107    107   
    ),
  108    108   
    ::aws_smithy_schema::ShapeType::List,
  109         -
    "public_ips",
         109  +
    "PublicIps",
  110    110   
    0,
  111    111   
)
  112    112   
.with_xml_name("PublicIp");
  113    113   
static DESCRIBEADDRESSESINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  114    114   
    ::aws_smithy_schema::ShapeId::from_static(
  115    115   
        "com.amazonaws.ec2.synthetic#DescribeAddressesInput$DryRun",
  116    116   
        "com.amazonaws.ec2.synthetic",
  117    117   
        "DescribeAddressesInput",
  118    118   
    ),
  119    119   
    ::aws_smithy_schema::ShapeType::Boolean,
  120         -
    "dry_run",
         120  +
    "DryRun",
  121    121   
    1,
  122    122   
)
  123    123   
.with_xml_name("dryRun");
  124    124   
static DESCRIBEADDRESSESINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  125    125   
    ::aws_smithy_schema::ShapeId::from_static(
  126    126   
        "com.amazonaws.ec2.synthetic#DescribeAddressesInput$Filters",
  127    127   
        "com.amazonaws.ec2.synthetic",
  128    128   
        "DescribeAddressesInput",
  129    129   
    ),
  130    130   
    ::aws_smithy_schema::ShapeType::List,
  131         -
    "filters",
         131  +
    "Filters",
  132    132   
    2,
  133    133   
)
  134    134   
.with_xml_name("Filter");
  135    135   
static DESCRIBEADDRESSESINPUT_MEMBER_ALLOCATION_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  136    136   
    ::aws_smithy_schema::ShapeId::from_static(
  137    137   
        "com.amazonaws.ec2.synthetic#DescribeAddressesInput$AllocationIds",
  138    138   
        "com.amazonaws.ec2.synthetic",
  139    139   
        "DescribeAddressesInput",
  140    140   
    ),
  141    141   
    ::aws_smithy_schema::ShapeType::List,
  142         -
    "allocation_ids",
         142  +
    "AllocationIds",
  143    143   
    3,
  144    144   
)
  145    145   
.with_xml_name("AllocationId");
  146    146   
static DESCRIBEADDRESSESINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  147    147   
    DESCRIBEADDRESSESINPUT_SCHEMA_ID,
  148    148   
    ::aws_smithy_schema::ShapeType::Structure,
  149    149   
    &[
  150    150   
        &DESCRIBEADDRESSESINPUT_MEMBER_PUBLIC_IPS,
  151    151   
        &DESCRIBEADDRESSESINPUT_MEMBER_DRY_RUN,
  152    152   
        &DESCRIBEADDRESSESINPUT_MEMBER_FILTERS,
@@ -177,177 +301,289 @@
  197    197   
                    }
  198    198   
                    Ok(())
  199    199   
                },
  200    200   
            )?;
  201    201   
        }
  202    202   
        Ok(())
  203    203   
    }
  204    204   
}
  205    205   
impl DescribeAddressesInput {
  206    206   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  207         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  208         -
        deserializer: &mut D,
         207  +
    pub fn deserialize(
         208  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  209    209   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  210    210   
        #[allow(unused_variables, unused_mut)]
  211    211   
        let mut builder = Self::builder();
  212    212   
        #[allow(
  213    213   
            unused_variables,
  214    214   
            unreachable_code,
  215    215   
            clippy::single_match,
  216    216   
            clippy::match_single_binding,
  217    217   
            clippy::diverging_sub_expression
  218    218   
        )]
  219         -
        deserializer.read_struct(&DESCRIBEADDRESSESINPUT_SCHEMA, (), |_, member, deser| {
         219  +
        deserializer.read_struct(&DESCRIBEADDRESSESINPUT_SCHEMA, &mut |member, deser| {
  220    220   
            match member.member_index() {
  221    221   
                Some(0) => {
  222         -
                    builder.public_ips = Some({
  223         -
                        let container = if let Some(cap) = deser.container_size() {
  224         -
                            Vec::with_capacity(cap)
  225         -
                        } else {
  226         -
                            Vec::new()
  227         -
                        };
  228         -
                        deser.read_list(member, container, |mut list, deser| {
  229         -
                            list.push(deser.read_string(member)?);
  230         -
                            Ok(list)
  231         -
                        })?
  232         -
                    });
         222  +
                    builder.public_ips = Some(deser.read_string_list(member)?);
  233    223   
                }
  234    224   
                Some(1) => {
  235    225   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  236    226   
                }
  237    227   
                Some(2) => {
  238    228   
                    builder.filters = Some({
  239         -
                        let container = if let Some(cap) = deser.container_size() {
  240         -
                            Vec::with_capacity(cap)
  241         -
                        } else {
  242         -
                            Vec::new()
  243         -
                        };
  244         -
                        deser.read_list(member, container, |mut list, deser| {
  245         -
                            list.push(crate::types::Filter::deserialize(deser)?);
  246         -
                            Ok(list)
  247         -
                        })?
         229  +
                        let mut container = Vec::new();
         230  +
                        deser.read_list(member, &mut |deser| {
         231  +
                            container.push(crate::types::Filter::deserialize(deser)?);
         232  +
                            Ok(())
         233  +
                        })?;
         234  +
                        container
  248    235   
                    });
  249    236   
                }
  250    237   
                Some(3) => {
  251         -
                    builder.allocation_ids = Some({
  252         -
                        let container = if let Some(cap) = deser.container_size() {
  253         -
                            Vec::with_capacity(cap)
  254         -
                        } else {
  255         -
                            Vec::new()
  256         -
                        };
  257         -
                        deser.read_list(member, container, |mut list, deser| {
  258         -
                            list.push(deser.read_string(member)?);
  259         -
                            Ok(list)
  260         -
                        })?
  261         -
                    });
         238  +
                    builder.allocation_ids = Some(deser.read_string_list(member)?);
  262    239   
                }
  263    240   
                _ => {}
  264    241   
            }
  265    242   
            Ok(())
  266    243   
        })?;
  267    244   
        builder
  268    245   
            .build()
  269    246   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  270    247   
    }
  271    248   
}
         249  +
impl DescribeAddressesInput {
         250  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         251  +
    pub fn deserialize_with_response(
         252  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         253  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         254  +
        _status: u16,
         255  +
        _body: &[u8],
         256  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         257  +
        Self::deserialize(deserializer)
         258  +
    }
         259  +
}
  272    260   
impl DescribeAddressesInput {
  273    261   
    /// Creates a new builder-style object to manufacture [`DescribeAddressesInput`](crate::operation::describe_addresses::DescribeAddressesInput).
  274    262   
    pub fn builder() -> crate::operation::describe_addresses::builders::DescribeAddressesInputBuilder {
  275    263   
        crate::operation::describe_addresses::builders::DescribeAddressesInputBuilder::default()
  276    264   
    }
  277    265   
}
  278    266   
  279    267   
/// A builder for [`DescribeAddressesInput`](crate::operation::describe_addresses::DescribeAddressesInput).
  280    268   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  281    269   
#[non_exhaustive]

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

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

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

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

@@ -23,23 +223,224 @@
   43     43   
    "com.amazonaws.ec2.synthetic",
   44     44   
    "DescribeAddressesAttributeInput",
   45     45   
);
   46     46   
static DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_ALLOCATION_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   47     47   
    ::aws_smithy_schema::ShapeId::from_static(
   48     48   
        "com.amazonaws.ec2.synthetic#DescribeAddressesAttributeInput$AllocationIds",
   49     49   
        "com.amazonaws.ec2.synthetic",
   50     50   
        "DescribeAddressesAttributeInput",
   51     51   
    ),
   52     52   
    ::aws_smithy_schema::ShapeType::List,
   53         -
    "allocation_ids",
          53  +
    "AllocationIds",
   54     54   
    0,
   55     55   
)
   56     56   
.with_xml_name("AllocationId");
   57     57   
static DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_ATTRIBUTE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   58     58   
    ::aws_smithy_schema::ShapeId::from_static(
   59     59   
        "com.amazonaws.ec2.synthetic#DescribeAddressesAttributeInput$Attribute",
   60     60   
        "com.amazonaws.ec2.synthetic",
   61     61   
        "DescribeAddressesAttributeInput",
   62     62   
    ),
   63     63   
    ::aws_smithy_schema::ShapeType::String,
   64         -
    "attribute",
          64  +
    "Attribute",
   65     65   
    1,
   66     66   
);
   67     67   
static DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   68     68   
    ::aws_smithy_schema::ShapeId::from_static(
   69     69   
        "com.amazonaws.ec2.synthetic#DescribeAddressesAttributeInput$NextToken",
   70     70   
        "com.amazonaws.ec2.synthetic",
   71     71   
        "DescribeAddressesAttributeInput",
   72     72   
    ),
   73     73   
    ::aws_smithy_schema::ShapeType::String,
   74         -
    "next_token",
          74  +
    "NextToken",
   75     75   
    2,
   76     76   
);
   77     77   
static DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.ec2.synthetic#DescribeAddressesAttributeInput$MaxResults",
   80     80   
        "com.amazonaws.ec2.synthetic",
   81     81   
        "DescribeAddressesAttributeInput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::Integer,
   84         -
    "max_results",
          84  +
    "MaxResults",
   85     85   
    3,
   86     86   
);
   87     87   
static DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.ec2.synthetic#DescribeAddressesAttributeInput$DryRun",
   90     90   
        "com.amazonaws.ec2.synthetic",
   91     91   
        "DescribeAddressesAttributeInput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::Boolean,
   94         -
    "dry_run",
          94  +
    "DryRun",
   95     95   
    4,
   96     96   
);
   97     97   
static DESCRIBEADDRESSESATTRIBUTEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   98     98   
    DESCRIBEADDRESSESATTRIBUTEINPUT_SCHEMA_ID,
   99     99   
    ::aws_smithy_schema::ShapeType::Structure,
  100    100   
    &[
  101    101   
        &DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_ALLOCATION_IDS,
  102    102   
        &DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_ATTRIBUTE,
  103    103   
        &DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_NEXT_TOKEN,
  104    104   
        &DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_MAX_RESULTS,
  105    105   
        &DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_DRY_RUN,
  106    106   
    ],
  107    107   
);
  108    108   
impl DescribeAddressesAttributeInput {
  109    109   
    /// The schema for this shape.
  110    110   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEADDRESSESATTRIBUTEINPUT_SCHEMA;
  111    111   
}
  112    112   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeAddressesAttributeInput {
  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.allocation_ids {
  119    119   
            ser.write_list(
  120    120   
                &DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_ALLOCATION_IDS,
  121    121   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  122    122   
                    for item in val {
  123    123   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
  124    124   
                    }
  125    125   
                    Ok(())
  126    126   
                },
  127    127   
            )?;
  128    128   
        }
  129    129   
        if let Some(ref val) = self.attribute {
  130    130   
            ser.write_string(&DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_ATTRIBUTE, val.as_str())?;
  131    131   
        }
  132    132   
        if let Some(ref val) = self.next_token {
  133    133   
            ser.write_string(&DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_NEXT_TOKEN, val)?;
  134    134   
        }
  135    135   
        if let Some(ref val) = self.max_results {
  136    136   
            ser.write_integer(&DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_MAX_RESULTS, *val)?;
  137    137   
        }
  138    138   
        if let Some(ref val) = self.dry_run {
  139    139   
            ser.write_boolean(&DESCRIBEADDRESSESATTRIBUTEINPUT_MEMBER_DRY_RUN, *val)?;
  140    140   
        }
  141    141   
        Ok(())
  142    142   
    }
  143    143   
}
  144    144   
impl DescribeAddressesAttributeInput {
  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(&DESCRIBEADDRESSESATTRIBUTEINPUT_SCHEMA, (), |_, member, deser| {
         158  +
        deserializer.read_struct(&DESCRIBEADDRESSESATTRIBUTEINPUT_SCHEMA, &mut |member, deser| {
  159    159   
            match member.member_index() {
  160    160   
                Some(0) => {
  161         -
                    builder.allocation_ids = Some({
  162         -
                        let container = if let Some(cap) = deser.container_size() {
  163         -
                            Vec::with_capacity(cap)
  164         -
                        } else {
  165         -
                            Vec::new()
  166         -
                        };
  167         -
                        deser.read_list(member, container, |mut list, deser| {
  168         -
                            list.push(deser.read_string(member)?);
  169         -
                            Ok(list)
  170         -
                        })?
  171         -
                    });
         161  +
                    builder.allocation_ids = Some(deser.read_string_list(member)?);
  172    162   
                }
  173    163   
                Some(1) => {
  174    164   
                    builder.attribute = Some(crate::types::AddressAttributeName::from(deser.read_string(member)?.as_str()));
  175    165   
                }
  176    166   
                Some(2) => {
  177    167   
                    builder.next_token = Some(deser.read_string(member)?);
  178    168   
                }
  179    169   
                Some(3) => {
  180    170   
                    builder.max_results = Some(deser.read_integer(member)?);
  181    171   
                }
  182    172   
                Some(4) => {
  183    173   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  184    174   
                }
  185    175   
                _ => {}
  186    176   
            }
  187    177   
            Ok(())
  188    178   
        })?;
  189    179   
        builder
  190    180   
            .build()
  191    181   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  192    182   
    }
  193    183   
}
         184  +
impl DescribeAddressesAttributeInput {
         185  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         186  +
    pub fn deserialize_with_response(
         187  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         188  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         189  +
        _status: u16,
         190  +
        _body: &[u8],
         191  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         192  +
        Self::deserialize(deserializer)
         193  +
    }
         194  +
}
  194    195   
impl DescribeAddressesAttributeInput {
  195    196   
    /// Creates a new builder-style object to manufacture [`DescribeAddressesAttributeInput`](crate::operation::describe_addresses_attribute::DescribeAddressesAttributeInput).
  196    197   
    pub fn builder() -> crate::operation::describe_addresses_attribute::builders::DescribeAddressesAttributeInputBuilder {
  197    198   
        crate::operation::describe_addresses_attribute::builders::DescribeAddressesAttributeInputBuilder::default()
  198    199   
    }
  199    200   
}
  200    201   
  201    202   
/// A builder for [`DescribeAddressesAttributeInput`](crate::operation::describe_addresses_attribute::DescribeAddressesAttributeInput).
  202    203   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  203    204   
#[non_exhaustive]

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

@@ -6,6 +142,194 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeAddressesAttributeOutput",
   28     28   
);
   29     29   
static DESCRIBEADDRESSESATTRIBUTEOUTPUT_MEMBER_ADDRESSES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeAddressesAttributeOutput$Addresses",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeAddressesAttributeOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "addresses",
          36  +
    "Addresses",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("addressSet");
   40     40   
static DESCRIBEADDRESSESATTRIBUTEOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.ec2.synthetic#DescribeAddressesAttributeOutput$NextToken",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeAddressesAttributeOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::String,
   47         -
    "next_token",
          47  +
    "NextToken",
   48     48   
    1,
   49     49   
)
   50     50   
.with_xml_name("nextToken");
          51  +
static DESCRIBEADDRESSESATTRIBUTEOUTPUT_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 DESCRIBEADDRESSESATTRIBUTEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBEADDRESSESATTRIBUTEOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &DESCRIBEADDRESSESATTRIBUTEOUTPUT_MEMBER_ADDRESSES,
   56     63   
        &DESCRIBEADDRESSESATTRIBUTEOUTPUT_MEMBER_NEXT_TOKEN,
          64  +
        &DESCRIBEADDRESSESATTRIBUTEOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl DescribeAddressesAttributeOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEADDRESSESATTRIBUTEOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeAddressesAttributeOutput {
   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.addresses {
   70     78   
            ser.write_list(
   71     79   
                &DESCRIBEADDRESSESATTRIBUTEOUTPUT_MEMBER_ADDRESSES,
   72     80   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   73     81   
                    for item in val {
   74     82   
                        ser.write_struct(crate::types::AddressAttribute::SCHEMA, item)?;
   75     83   
                    }
   76     84   
                    Ok(())
   77     85   
                },
   78     86   
            )?;
   79     87   
        }
   80     88   
        if let Some(ref val) = self.next_token {
   81     89   
            ser.write_string(&DESCRIBEADDRESSESATTRIBUTEOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl DescribeAddressesAttributeOutput {
   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(&DESCRIBEADDRESSESATTRIBUTEOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.addresses = Some({
         112  +
                        let mut container = Vec::new();
         113  +
                        deser.read_list(member, &mut |deser| {
         114  +
                            container.push(crate::types::AddressAttribute::deserialize(deser)?);
         115  +
                            Ok(())
         116  +
                        })?;
         117  +
                        container
         118  +
                    });
         119  +
                }
         120  +
                Some(1) => {
         121  +
                    builder.next_token = Some(deser.read_string(member)?);
         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 DescribeAddressesAttributeOutput {
         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(&DESCRIBEADDRESSESATTRIBUTEOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBEADDRESSESATTRIBUTEOUTPUT_SCHEMA, &mut |member, deser| {
  101    156   
            match member.member_index() {
  102    157   
                Some(0) => {
  103    158   
                    builder.addresses = Some({
  104         -
                        let container = if let Some(cap) = deser.container_size() {
  105         -
                            Vec::with_capacity(cap)
  106         -
                        } else {
  107         -
                            Vec::new()
  108         -
                        };
  109         -
                        deser.read_list(member, container, |mut list, deser| {
  110         -
                            list.push(crate::types::AddressAttribute::deserialize(deser)?);
  111         -
                            Ok(list)
  112         -
                        })?
         159  +
                        let mut container = Vec::new();
         160  +
                        deser.read_list(member, &mut |deser| {
         161  +
                            container.push(crate::types::AddressAttribute::deserialize(deser)?);
         162  +
                            Ok(())
         163  +
                        })?;
         164  +
                        container
  113    165   
                    });
  114    166   
                }
  115    167   
                Some(1) => {
  116    168   
                    builder.next_token = Some(deser.read_string(member)?);
  117    169   
                }
  118    170   
                _ => {}
  119    171   
            }
  120    172   
            Ok(())
  121    173   
        })?;
  122    174   
        Ok(builder.build())

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

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

@@ -1,1 +108,119 @@
   17     17   
    "com.amazonaws.ec2.synthetic",
   18     18   
    "DescribeAggregateIdFormatInput",
   19     19   
);
   20     20   
static DESCRIBEAGGREGATEIDFORMATINPUT_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#DescribeAggregateIdFormatInput$DryRun",
   23     23   
        "com.amazonaws.ec2.synthetic",
   24     24   
        "DescribeAggregateIdFormatInput",
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::Boolean,
   27         -
    "dry_run",
          27  +
    "DryRun",
   28     28   
    0,
   29     29   
);
   30     30   
static DESCRIBEAGGREGATEIDFORMATINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   31     31   
    DESCRIBEAGGREGATEIDFORMATINPUT_SCHEMA_ID,
   32     32   
    ::aws_smithy_schema::ShapeType::Structure,
   33     33   
    &[&DESCRIBEAGGREGATEIDFORMATINPUT_MEMBER_DRY_RUN],
   34     34   
);
   35     35   
impl DescribeAggregateIdFormatInput {
   36     36   
    /// The schema for this shape.
   37     37   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEAGGREGATEIDFORMATINPUT_SCHEMA;
   38     38   
}
   39     39   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeAggregateIdFormatInput {
   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(&DESCRIBEAGGREGATEIDFORMATINPUT_MEMBER_DRY_RUN, *val)?;
   47     47   
        }
   48     48   
        Ok(())
   49     49   
    }
   50     50   
}
   51     51   
impl DescribeAggregateIdFormatInput {
   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(&DESCRIBEAGGREGATEIDFORMATINPUT_SCHEMA, (), |_, member, deser| {
          65  +
        deserializer.read_struct(&DESCRIBEAGGREGATEIDFORMATINPUT_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 DescribeAggregateIdFormatInput {
          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 DescribeAggregateIdFormatInput {
   80     91   
    /// Creates a new builder-style object to manufacture [`DescribeAggregateIdFormatInput`](crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatInput).
   81     92   
    pub fn builder() -> crate::operation::describe_aggregate_id_format::builders::DescribeAggregateIdFormatInputBuilder {
   82     93   
        crate::operation::describe_aggregate_id_format::builders::DescribeAggregateIdFormatInputBuilder::default()
   83     94   
    }
   84     95   
}
   85     96   
   86     97   
/// A builder for [`DescribeAggregateIdFormatInput`](crate::operation::describe_aggregate_id_format::DescribeAggregateIdFormatInput).
   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/describe_aggregate_id_format/_describe_aggregate_id_format_output.rs

@@ -6,6 +145,197 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeAggregateIdFormatOutput",
   28     28   
);
   29     29   
static DESCRIBEAGGREGATEIDFORMATOUTPUT_MEMBER_USE_LONG_IDS_AGGREGATED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeAggregateIdFormatOutput$UseLongIdsAggregated",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeAggregateIdFormatOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::Boolean,
   36         -
    "use_long_ids_aggregated",
          36  +
    "UseLongIdsAggregated",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("useLongIdsAggregated");
   40     40   
static DESCRIBEAGGREGATEIDFORMATOUTPUT_MEMBER_STATUSES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.ec2.synthetic#DescribeAggregateIdFormatOutput$Statuses",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeAggregateIdFormatOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::List,
   47         -
    "statuses",
          47  +
    "Statuses",
   48     48   
    1,
   49     49   
)
   50     50   
.with_xml_name("statusSet");
          51  +
static DESCRIBEAGGREGATEIDFORMATOUTPUT_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 DESCRIBEAGGREGATEIDFORMATOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBEAGGREGATEIDFORMATOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &DESCRIBEAGGREGATEIDFORMATOUTPUT_MEMBER_USE_LONG_IDS_AGGREGATED,
   56     63   
        &DESCRIBEAGGREGATEIDFORMATOUTPUT_MEMBER_STATUSES,
          64  +
        &DESCRIBEAGGREGATEIDFORMATOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl DescribeAggregateIdFormatOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEAGGREGATEIDFORMATOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeAggregateIdFormatOutput {
   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.use_long_ids_aggregated {
   70     78   
            ser.write_boolean(&DESCRIBEAGGREGATEIDFORMATOUTPUT_MEMBER_USE_LONG_IDS_AGGREGATED, *val)?;
   71     79   
        }
   72     80   
        if let Some(ref val) = self.statuses {
   73     81   
            ser.write_list(
   74     82   
                &DESCRIBEAGGREGATEIDFORMATOUTPUT_MEMBER_STATUSES,
   75     83   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   76     84   
                    for item in val {
   77     85   
                        ser.write_struct(crate::types::IdFormat::SCHEMA, item)?;
   78     86   
                    }
   79     87   
                    Ok(())
   80     88   
                },
   81     89   
            )?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl DescribeAggregateIdFormatOutput {
   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,
   90     98   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   91     99   
        #[allow(unused_variables, unused_mut)]
   92    100   
        let mut builder = Self::builder();
   93    101   
        #[allow(
   94    102   
            unused_variables,
   95    103   
            unreachable_code,
   96    104   
            clippy::single_match,
   97    105   
            clippy::match_single_binding,
   98    106   
            clippy::diverging_sub_expression
   99    107   
        )]
  100         -
        deserializer.read_struct(&DESCRIBEAGGREGATEIDFORMATOUTPUT_SCHEMA, (), |_, member, deser| {
         108  +
        deserializer.read_struct(&DESCRIBEAGGREGATEIDFORMATOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.use_long_ids_aggregated = Some(deser.read_boolean(member)?);
         112  +
                }
         113  +
                Some(1) => {
         114  +
                    builder.statuses = Some({
         115  +
                        let mut container = Vec::new();
         116  +
                        deser.read_list(member, &mut |deser| {
         117  +
                            container.push(crate::types::IdFormat::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 DescribeAggregateIdFormatOutput {
         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],
         142  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         143  +
        #[allow(unused_variables, unused_mut)]
         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  +
        }
         148  +
        #[allow(
         149  +
            unused_variables,
         150  +
            unreachable_code,
         151  +
            clippy::single_match,
         152  +
            clippy::match_single_binding,
         153  +
            clippy::diverging_sub_expression
         154  +
        )]
         155  +
        deserializer.read_struct(&DESCRIBEAGGREGATEIDFORMATOUTPUT_SCHEMA, &mut |member, deser| {
  101    156   
            match member.member_index() {
  102    157   
                Some(0) => {
  103    158   
                    builder.use_long_ids_aggregated = Some(deser.read_boolean(member)?);
  104    159   
                }
  105    160   
                Some(1) => {
  106    161   
                    builder.statuses = 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::IdFormat::deserialize(deser)?);
  114         -
                            Ok(list)
  115         -
                        })?
         162  +
                        let mut container = Vec::new();
         163  +
                        deser.read_list(member, &mut |deser| {
         164  +
                            container.push(crate::types::IdFormat::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 DescribeAggregateIdFormatOutput {

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

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

@@ -77,77 +180,180 @@
   97     97   
    "com.amazonaws.ec2.synthetic",
   98     98   
    "DescribeAvailabilityZonesInput",
   99     99   
);
  100    100   
static DESCRIBEAVAILABILITYZONESINPUT_MEMBER_ZONE_NAMES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  101    101   
    ::aws_smithy_schema::ShapeId::from_static(
  102    102   
        "com.amazonaws.ec2.synthetic#DescribeAvailabilityZonesInput$ZoneNames",
  103    103   
        "com.amazonaws.ec2.synthetic",
  104    104   
        "DescribeAvailabilityZonesInput",
  105    105   
    ),
  106    106   
    ::aws_smithy_schema::ShapeType::List,
  107         -
    "zone_names",
         107  +
    "ZoneNames",
  108    108   
    0,
  109    109   
)
  110    110   
.with_xml_name("ZoneName");
  111    111   
static DESCRIBEAVAILABILITYZONESINPUT_MEMBER_ZONE_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  112    112   
    ::aws_smithy_schema::ShapeId::from_static(
  113    113   
        "com.amazonaws.ec2.synthetic#DescribeAvailabilityZonesInput$ZoneIds",
  114    114   
        "com.amazonaws.ec2.synthetic",
  115    115   
        "DescribeAvailabilityZonesInput",
  116    116   
    ),
  117    117   
    ::aws_smithy_schema::ShapeType::List,
  118         -
    "zone_ids",
         118  +
    "ZoneIds",
  119    119   
    1,
  120    120   
)
  121    121   
.with_xml_name("ZoneId");
  122    122   
static DESCRIBEAVAILABILITYZONESINPUT_MEMBER_ALL_AVAILABILITY_ZONES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  123    123   
    ::aws_smithy_schema::ShapeId::from_static(
  124    124   
        "com.amazonaws.ec2.synthetic#DescribeAvailabilityZonesInput$AllAvailabilityZones",
  125    125   
        "com.amazonaws.ec2.synthetic",
  126    126   
        "DescribeAvailabilityZonesInput",
  127    127   
    ),
  128    128   
    ::aws_smithy_schema::ShapeType::Boolean,
  129         -
    "all_availability_zones",
         129  +
    "AllAvailabilityZones",
  130    130   
    2,
  131    131   
);
  132    132   
static DESCRIBEAVAILABILITYZONESINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  133    133   
    ::aws_smithy_schema::ShapeId::from_static(
  134    134   
        "com.amazonaws.ec2.synthetic#DescribeAvailabilityZonesInput$DryRun",
  135    135   
        "com.amazonaws.ec2.synthetic",
  136    136   
        "DescribeAvailabilityZonesInput",
  137    137   
    ),
  138    138   
    ::aws_smithy_schema::ShapeType::Boolean,
  139         -
    "dry_run",
         139  +
    "DryRun",
  140    140   
    3,
  141    141   
)
  142    142   
.with_xml_name("dryRun");
  143    143   
static DESCRIBEAVAILABILITYZONESINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  144    144   
    ::aws_smithy_schema::ShapeId::from_static(
  145    145   
        "com.amazonaws.ec2.synthetic#DescribeAvailabilityZonesInput$Filters",
  146    146   
        "com.amazonaws.ec2.synthetic",
  147    147   
        "DescribeAvailabilityZonesInput",
  148    148   
    ),
  149    149   
    ::aws_smithy_schema::ShapeType::List,
  150         -
    "filters",
         150  +
    "Filters",
  151    151   
    4,
  152    152   
)
  153    153   
.with_xml_name("Filter");
  154    154   
static DESCRIBEAVAILABILITYZONESINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  155    155   
    DESCRIBEAVAILABILITYZONESINPUT_SCHEMA_ID,
  156    156   
    ::aws_smithy_schema::ShapeType::Structure,
  157    157   
    &[
  158    158   
        &DESCRIBEAVAILABILITYZONESINPUT_MEMBER_ZONE_NAMES,
  159    159   
        &DESCRIBEAVAILABILITYZONESINPUT_MEMBER_ZONE_IDS,
  160    160   
        &DESCRIBEAVAILABILITYZONESINPUT_MEMBER_ALL_AVAILABILITY_ZONES,
@@ -189,189 +316,304 @@
  209    209   
                    }
  210    210   
                    Ok(())
  211    211   
                },
  212    212   
            )?;
  213    213   
        }
  214    214   
        Ok(())
  215    215   
    }
  216    216   
}
  217    217   
impl DescribeAvailabilityZonesInput {
  218    218   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  219         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  220         -
        deserializer: &mut D,
         219  +
    pub fn deserialize(
         220  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  221    221   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  222    222   
        #[allow(unused_variables, unused_mut)]
  223    223   
        let mut builder = Self::builder();
  224    224   
        #[allow(
  225    225   
            unused_variables,
  226    226   
            unreachable_code,
  227    227   
            clippy::single_match,
  228    228   
            clippy::match_single_binding,
  229    229   
            clippy::diverging_sub_expression
  230    230   
        )]
  231         -
        deserializer.read_struct(&DESCRIBEAVAILABILITYZONESINPUT_SCHEMA, (), |_, member, deser| {
         231  +
        deserializer.read_struct(&DESCRIBEAVAILABILITYZONESINPUT_SCHEMA, &mut |member, deser| {
  232    232   
            match member.member_index() {
  233    233   
                Some(0) => {
  234         -
                    builder.zone_names = Some({
  235         -
                        let container = if let Some(cap) = deser.container_size() {
  236         -
                            Vec::with_capacity(cap)
  237         -
                        } else {
  238         -
                            Vec::new()
  239         -
                        };
  240         -
                        deser.read_list(member, container, |mut list, deser| {
  241         -
                            list.push(deser.read_string(member)?);
  242         -
                            Ok(list)
  243         -
                        })?
  244         -
                    });
         234  +
                    builder.zone_names = Some(deser.read_string_list(member)?);
  245    235   
                }
  246    236   
                Some(1) => {
  247         -
                    builder.zone_ids = Some({
  248         -
                        let container = if let Some(cap) = deser.container_size() {
  249         -
                            Vec::with_capacity(cap)
  250         -
                        } else {
  251         -
                            Vec::new()
  252         -
                        };
  253         -
                        deser.read_list(member, container, |mut list, deser| {
  254         -
                            list.push(deser.read_string(member)?);
  255         -
                            Ok(list)
  256         -
                        })?
  257         -
                    });
         237  +
                    builder.zone_ids = Some(deser.read_string_list(member)?);
  258    238   
                }
  259    239   
                Some(2) => {
  260    240   
                    builder.all_availability_zones = Some(deser.read_boolean(member)?);
  261    241   
                }
  262    242   
                Some(3) => {
  263    243   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  264    244   
                }
  265    245   
                Some(4) => {
  266    246   
                    builder.filters = Some({
  267         -
                        let container = if let Some(cap) = deser.container_size() {
  268         -
                            Vec::with_capacity(cap)
  269         -
                        } else {
  270         -
                            Vec::new()
  271         -
                        };
  272         -
                        deser.read_list(member, container, |mut list, deser| {
  273         -
                            list.push(crate::types::Filter::deserialize(deser)?);
  274         -
                            Ok(list)
  275         -
                        })?
         247  +
                        let mut container = Vec::new();
         248  +
                        deser.read_list(member, &mut |deser| {
         249  +
                            container.push(crate::types::Filter::deserialize(deser)?);
         250  +
                            Ok(())
         251  +
                        })?;
         252  +
                        container
  276    253   
                    });
  277    254   
                }
  278    255   
                _ => {}
  279    256   
            }
  280    257   
            Ok(())
  281    258   
        })?;
  282    259   
        builder
  283    260   
            .build()
  284    261   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  285    262   
    }
  286    263   
}
         264  +
impl DescribeAvailabilityZonesInput {
         265  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         266  +
    pub fn deserialize_with_response(
         267  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         268  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         269  +
        _status: u16,
         270  +
        _body: &[u8],
         271  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         272  +
        Self::deserialize(deserializer)
         273  +
    }
         274  +
}
  287    275   
impl DescribeAvailabilityZonesInput {
  288    276   
    /// Creates a new builder-style object to manufacture [`DescribeAvailabilityZonesInput`](crate::operation::describe_availability_zones::DescribeAvailabilityZonesInput).
  289    277   
    pub fn builder() -> crate::operation::describe_availability_zones::builders::DescribeAvailabilityZonesInputBuilder {
  290    278   
        crate::operation::describe_availability_zones::builders::DescribeAvailabilityZonesInputBuilder::default()
  291    279   
    }
  292    280   
}
  293    281   
  294    282   
/// A builder for [`DescribeAvailabilityZonesInput`](crate::operation::describe_availability_zones::DescribeAvailabilityZonesInput).
  295    283   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  296    284   
#[non_exhaustive]

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

@@ -1,1 +119,170 @@
   20     20   
    "com.amazonaws.ec2.synthetic",
   21     21   
    "DescribeAvailabilityZonesOutput",
   22     22   
);
   23     23   
static DESCRIBEAVAILABILITYZONESOUTPUT_MEMBER_AVAILABILITY_ZONES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   24     24   
    ::aws_smithy_schema::ShapeId::from_static(
   25     25   
        "com.amazonaws.ec2.synthetic#DescribeAvailabilityZonesOutput$AvailabilityZones",
   26     26   
        "com.amazonaws.ec2.synthetic",
   27     27   
        "DescribeAvailabilityZonesOutput",
   28     28   
    ),
   29     29   
    ::aws_smithy_schema::ShapeType::List,
   30         -
    "availability_zones",
          30  +
    "AvailabilityZones",
   31     31   
    0,
   32     32   
)
   33     33   
.with_xml_name("availabilityZoneInfo");
          34  +
static DESCRIBEAVAILABILITYZONESOUTPUT_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 DESCRIBEAVAILABILITYZONESOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   35     42   
    DESCRIBEAVAILABILITYZONESOUTPUT_SCHEMA_ID,
   36     43   
    ::aws_smithy_schema::ShapeType::Structure,
   37         -
    &[&DESCRIBEAVAILABILITYZONESOUTPUT_MEMBER_AVAILABILITY_ZONES],
          44  +
    &[
          45  +
        &DESCRIBEAVAILABILITYZONESOUTPUT_MEMBER_AVAILABILITY_ZONES,
          46  +
        &DESCRIBEAVAILABILITYZONESOUTPUT_MEMBER__REQUEST_ID,
          47  +
    ],
   38     48   
);
   39     49   
impl DescribeAvailabilityZonesOutput {
   40     50   
    /// The schema for this shape.
   41     51   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEAVAILABILITYZONESOUTPUT_SCHEMA;
   42     52   
}
   43     53   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeAvailabilityZonesOutput {
   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.availability_zones {
   50     60   
            ser.write_list(
   51     61   
                &DESCRIBEAVAILABILITYZONESOUTPUT_MEMBER_AVAILABILITY_ZONES,
   52     62   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   53     63   
                    for item in val {
   54     64   
                        ser.write_struct(crate::types::AvailabilityZone::SCHEMA, item)?;
   55     65   
                    }
   56     66   
                    Ok(())
   57     67   
                },
   58     68   
            )?;
   59     69   
        }
   60     70   
        Ok(())
   61     71   
    }
   62     72   
}
   63     73   
impl DescribeAvailabilityZonesOutput {
   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(&DESCRIBEAVAILABILITYZONESOUTPUT_SCHEMA, &mut |member, deser| {
          88  +
            match member.member_index() {
          89  +
                Some(0) => {
          90  +
                    builder.availability_zones = Some({
          91  +
                        let mut container = Vec::new();
          92  +
                        deser.read_list(member, &mut |deser| {
          93  +
                            container.push(crate::types::AvailabilityZone::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 DescribeAvailabilityZonesOutput {
         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(&DESCRIBEAVAILABILITYZONESOUTPUT_SCHEMA, (), |_, member, deser| {
         131  +
        deserializer.read_struct(&DESCRIBEAVAILABILITYZONESOUTPUT_SCHEMA, &mut |member, deser| {
   78    132   
            match member.member_index() {
   79    133   
                Some(0) => {
   80    134   
                    builder.availability_zones = 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::AvailabilityZone::deserialize(deser)?);
   88         -
                            Ok(list)
   89         -
                        })?
         135  +
                        let mut container = Vec::new();
         136  +
                        deser.read_list(member, &mut |deser| {
         137  +
                            container.push(crate::types::AvailabilityZone::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 DescribeAvailabilityZonesOutput {

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

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

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

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

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