AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406 (ignoring whitespace)

Files changed:

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

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

@@ -47,47 +158,158 @@
   67     67   
    "com.amazonaws.ec2.synthetic",
   68     68   
    "DescribeClientVpnTargetNetworksInput",
   69     69   
);
   70     70   
static DESCRIBECLIENTVPNTARGETNETWORKSINPUT_MEMBER_CLIENT_VPN_ENDPOINT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   71     71   
    ::aws_smithy_schema::ShapeId::from_static(
   72     72   
        "com.amazonaws.ec2.synthetic#DescribeClientVpnTargetNetworksInput$ClientVpnEndpointId",
   73     73   
        "com.amazonaws.ec2.synthetic",
   74     74   
        "DescribeClientVpnTargetNetworksInput",
   75     75   
    ),
   76     76   
    ::aws_smithy_schema::ShapeType::String,
   77         -
    "client_vpn_endpoint_id",
          77  +
    "ClientVpnEndpointId",
   78     78   
    0,
   79     79   
);
   80     80   
static DESCRIBECLIENTVPNTARGETNETWORKSINPUT_MEMBER_ASSOCIATION_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   81     81   
    ::aws_smithy_schema::ShapeId::from_static(
   82     82   
        "com.amazonaws.ec2.synthetic#DescribeClientVpnTargetNetworksInput$AssociationIds",
   83     83   
        "com.amazonaws.ec2.synthetic",
   84     84   
        "DescribeClientVpnTargetNetworksInput",
   85     85   
    ),
   86     86   
    ::aws_smithy_schema::ShapeType::List,
   87         -
    "association_ids",
          87  +
    "AssociationIds",
   88     88   
    1,
   89     89   
);
   90     90   
static DESCRIBECLIENTVPNTARGETNETWORKSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static(
   92     92   
        "com.amazonaws.ec2.synthetic#DescribeClientVpnTargetNetworksInput$MaxResults",
   93     93   
        "com.amazonaws.ec2.synthetic",
   94     94   
        "DescribeClientVpnTargetNetworksInput",
   95     95   
    ),
   96     96   
    ::aws_smithy_schema::ShapeType::Integer,
   97         -
    "max_results",
          97  +
    "MaxResults",
   98     98   
    2,
   99     99   
);
  100    100   
static DESCRIBECLIENTVPNTARGETNETWORKSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  101    101   
    ::aws_smithy_schema::ShapeId::from_static(
  102    102   
        "com.amazonaws.ec2.synthetic#DescribeClientVpnTargetNetworksInput$NextToken",
  103    103   
        "com.amazonaws.ec2.synthetic",
  104    104   
        "DescribeClientVpnTargetNetworksInput",
  105    105   
    ),
  106    106   
    ::aws_smithy_schema::ShapeType::String,
  107         -
    "next_token",
         107  +
    "NextToken",
  108    108   
    3,
  109    109   
);
  110    110   
static DESCRIBECLIENTVPNTARGETNETWORKSINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  111    111   
    ::aws_smithy_schema::ShapeId::from_static(
  112    112   
        "com.amazonaws.ec2.synthetic#DescribeClientVpnTargetNetworksInput$Filters",
  113    113   
        "com.amazonaws.ec2.synthetic",
  114    114   
        "DescribeClientVpnTargetNetworksInput",
  115    115   
    ),
  116    116   
    ::aws_smithy_schema::ShapeType::List,
  117         -
    "filters",
         117  +
    "Filters",
  118    118   
    4,
  119    119   
)
  120    120   
.with_xml_name("Filter");
  121    121   
static DESCRIBECLIENTVPNTARGETNETWORKSINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  122    122   
    ::aws_smithy_schema::ShapeId::from_static(
  123    123   
        "com.amazonaws.ec2.synthetic#DescribeClientVpnTargetNetworksInput$DryRun",
  124    124   
        "com.amazonaws.ec2.synthetic",
  125    125   
        "DescribeClientVpnTargetNetworksInput",
  126    126   
    ),
  127    127   
    ::aws_smithy_schema::ShapeType::Boolean,
  128         -
    "dry_run",
         128  +
    "DryRun",
  129    129   
    5,
  130    130   
);
  131    131   
static DESCRIBECLIENTVPNTARGETNETWORKSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  132    132   
    DESCRIBECLIENTVPNTARGETNETWORKSINPUT_SCHEMA_ID,
  133    133   
    ::aws_smithy_schema::ShapeType::Structure,
  134    134   
    &[
  135    135   
        &DESCRIBECLIENTVPNTARGETNETWORKSINPUT_MEMBER_CLIENT_VPN_ENDPOINT_ID,
  136    136   
        &DESCRIBECLIENTVPNTARGETNETWORKSINPUT_MEMBER_ASSOCIATION_IDS,
  137    137   
        &DESCRIBECLIENTVPNTARGETNETWORKSINPUT_MEMBER_MAX_RESULTS,
  138    138   
        &DESCRIBECLIENTVPNTARGETNETWORKSINPUT_MEMBER_NEXT_TOKEN,
@@ -162,162 +282,281 @@
  182    182   
            )?;
  183    183   
        }
  184    184   
        if let Some(ref val) = self.dry_run {
  185    185   
            ser.write_boolean(&DESCRIBECLIENTVPNTARGETNETWORKSINPUT_MEMBER_DRY_RUN, *val)?;
  186    186   
        }
  187    187   
        Ok(())
  188    188   
    }
  189    189   
}
  190    190   
impl DescribeClientVpnTargetNetworksInput {
  191    191   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  192         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  193         -
        deserializer: &mut D,
         192  +
    pub fn deserialize(
         193  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  194    194   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  195    195   
        #[allow(unused_variables, unused_mut)]
  196    196   
        let mut builder = Self::builder();
  197    197   
        #[allow(
  198    198   
            unused_variables,
  199    199   
            unreachable_code,
  200    200   
            clippy::single_match,
  201    201   
            clippy::match_single_binding,
  202    202   
            clippy::diverging_sub_expression
  203    203   
        )]
  204         -
        deserializer.read_struct(&DESCRIBECLIENTVPNTARGETNETWORKSINPUT_SCHEMA, (), |_, member, deser| {
         204  +
        deserializer.read_struct(&DESCRIBECLIENTVPNTARGETNETWORKSINPUT_SCHEMA, &mut |member, deser| {
  205    205   
            match member.member_index() {
  206    206   
                Some(0) => {
  207    207   
                    builder.client_vpn_endpoint_id = Some(deser.read_string(member)?);
  208    208   
                }
  209    209   
                Some(1) => {
  210         -
                    builder.association_ids = Some({
  211         -
                        let container = if let Some(cap) = deser.container_size() {
  212         -
                            Vec::with_capacity(cap)
  213         -
                        } else {
  214         -
                            Vec::new()
  215         -
                        };
  216         -
                        deser.read_list(member, container, |mut list, deser| {
  217         -
                            list.push(deser.read_string(member)?);
  218         -
                            Ok(list)
  219         -
                        })?
  220         -
                    });
         210  +
                    builder.association_ids = Some(deser.read_string_list(member)?);
  221    211   
                }
  222    212   
                Some(2) => {
  223    213   
                    builder.max_results = Some(deser.read_integer(member)?);
  224    214   
                }
  225    215   
                Some(3) => {
  226    216   
                    builder.next_token = Some(deser.read_string(member)?);
  227    217   
                }
  228    218   
                Some(4) => {
  229    219   
                    builder.filters = Some({
  230         -
                        let container = if let Some(cap) = deser.container_size() {
  231         -
                            Vec::with_capacity(cap)
  232         -
                        } else {
  233         -
                            Vec::new()
  234         -
                        };
  235         -
                        deser.read_list(member, container, |mut list, deser| {
  236         -
                            list.push(crate::types::Filter::deserialize(deser)?);
  237         -
                            Ok(list)
  238         -
                        })?
         220  +
                        let mut container = Vec::new();
         221  +
                        deser.read_list(member, &mut |deser| {
         222  +
                            container.push(crate::types::Filter::deserialize(deser)?);
         223  +
                            Ok(())
         224  +
                        })?;
         225  +
                        container
  239    226   
                    });
  240    227   
                }
  241    228   
                Some(5) => {
  242    229   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  243    230   
                }
  244    231   
                _ => {}
  245    232   
            }
  246    233   
            Ok(())
  247    234   
        })?;
         235  +
        builder.client_vpn_endpoint_id = builder.client_vpn_endpoint_id.or(Some(String::new()));
  248    236   
        builder
  249    237   
            .build()
  250    238   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  251    239   
    }
  252    240   
}
         241  +
impl DescribeClientVpnTargetNetworksInput {
         242  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         243  +
    pub fn deserialize_with_response(
         244  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         245  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         246  +
        _status: u16,
         247  +
        _body: &[u8],
         248  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         249  +
        Self::deserialize(deserializer)
         250  +
    }
         251  +
}
  253    252   
impl DescribeClientVpnTargetNetworksInput {
  254    253   
    /// Creates a new builder-style object to manufacture [`DescribeClientVpnTargetNetworksInput`](crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksInput).
  255    254   
    pub fn builder() -> crate::operation::describe_client_vpn_target_networks::builders::DescribeClientVpnTargetNetworksInputBuilder {
  256    255   
        crate::operation::describe_client_vpn_target_networks::builders::DescribeClientVpnTargetNetworksInputBuilder::default()
  257    256   
    }
  258    257   
}
  259    258   
  260    259   
/// A builder for [`DescribeClientVpnTargetNetworksInput`](crate::operation::describe_client_vpn_target_networks::DescribeClientVpnTargetNetworksInput).
  261    260   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  262    261   
#[non_exhaustive]

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/describe_coip_pools.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 `DescribeCoipPools`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeCoipPools;
    6      6   
impl DescribeCoipPools {
    7      7   
    /// Creates a new `DescribeCoipPools`
    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_coip_pools::DescribeCoipPoolsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_coip_pools::DescribeCoipPoolsOutput::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_coip_pools::DescribeCoipPoolsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::describe_coip_pools::DescribeCoipPoolsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::describe_coip_pools::DescribeCoipPoolsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::describe_coip_pools::DescribeCoipPoolsError,
  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 DescribeCoipPoolsResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeCoipPoolsResponseDeserializer {
  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_coip_pools::de_describe_coip_pools_http_error(status, headers, body)
  157    162   
        } else {

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

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

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

@@ -6,6 +139,194 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeCoipPoolsOutput",
   28     28   
);
   29     29   
static DESCRIBECOIPPOOLSOUTPUT_MEMBER_COIP_POOLS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeCoipPoolsOutput$CoipPools",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeCoipPoolsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "coip_pools",
          36  +
    "CoipPools",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("coipPoolSet");
   40     40   
static DESCRIBECOIPPOOLSOUTPUT_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#DescribeCoipPoolsOutput$NextToken",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeCoipPoolsOutput",
   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 DESCRIBECOIPPOOLSOUTPUT_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 DESCRIBECOIPPOOLSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBECOIPPOOLSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54         -
    &[&DESCRIBECOIPPOOLSOUTPUT_MEMBER_COIP_POOLS, &DESCRIBECOIPPOOLSOUTPUT_MEMBER_NEXT_TOKEN],
          61  +
    &[
          62  +
        &DESCRIBECOIPPOOLSOUTPUT_MEMBER_COIP_POOLS,
          63  +
        &DESCRIBECOIPPOOLSOUTPUT_MEMBER_NEXT_TOKEN,
          64  +
        &DESCRIBECOIPPOOLSOUTPUT_MEMBER__REQUEST_ID,
          65  +
    ],
   55     66   
);
   56     67   
impl DescribeCoipPoolsOutput {
   57     68   
    /// The schema for this shape.
   58     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBECOIPPOOLSOUTPUT_SCHEMA;
   59     70   
}
   60     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeCoipPoolsOutput {
   61     72   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   62     73   
    fn serialize_members(
   63     74   
        &self,
   64     75   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   65     76   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   66     77   
        if let Some(ref val) = self.coip_pools {
   67     78   
            ser.write_list(
   68     79   
                &DESCRIBECOIPPOOLSOUTPUT_MEMBER_COIP_POOLS,
   69     80   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   70     81   
                    for item in val {
   71     82   
                        ser.write_struct(crate::types::CoipPool::SCHEMA, item)?;
   72     83   
                    }
   73     84   
                    Ok(())
   74     85   
                },
   75     86   
            )?;
   76     87   
        }
   77     88   
        if let Some(ref val) = self.next_token {
   78     89   
            ser.write_string(&DESCRIBECOIPPOOLSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   79     90   
        }
   80     91   
        Ok(())
   81     92   
    }
   82     93   
}
   83     94   
impl DescribeCoipPoolsOutput {
   84     95   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   85         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   86         -
        deserializer: &mut D,
          96  +
    pub fn deserialize(
          97  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   87     98   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   88     99   
        #[allow(unused_variables, unused_mut)]
   89    100   
        let mut builder = Self::builder();
   90    101   
        #[allow(
   91    102   
            unused_variables,
   92    103   
            unreachable_code,
   93    104   
            clippy::single_match,
   94    105   
            clippy::match_single_binding,
   95    106   
            clippy::diverging_sub_expression
   96    107   
        )]
   97         -
        deserializer.read_struct(&DESCRIBECOIPPOOLSOUTPUT_SCHEMA, (), |_, member, deser| {
         108  +
        deserializer.read_struct(&DESCRIBECOIPPOOLSOUTPUT_SCHEMA, &mut |member, deser| {
   98    109   
            match member.member_index() {
   99    110   
                Some(0) => {
  100    111   
                    builder.coip_pools = Some({
  101         -
                        let container = if let Some(cap) = deser.container_size() {
  102         -
                            Vec::with_capacity(cap)
  103         -
                        } else {
  104         -
                            Vec::new()
  105         -
                        };
  106         -
                        deser.read_list(member, container, |mut list, deser| {
  107         -
                            list.push(crate::types::CoipPool::deserialize(deser)?);
  108         -
                            Ok(list)
  109         -
                        })?
         112  +
                        let mut container = Vec::new();
         113  +
                        deser.read_list(member, &mut |deser| {
         114  +
                            container.push(crate::types::CoipPool::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 DescribeCoipPoolsOutput {
         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(&DESCRIBECOIPPOOLSOUTPUT_SCHEMA, &mut |member, deser| {
         156  +
            match member.member_index() {
         157  +
                Some(0) => {
         158  +
                    builder.coip_pools = Some({
         159  +
                        let mut container = Vec::new();
         160  +
                        deser.read_list(member, &mut |deser| {
         161  +
                            container.push(crate::types::CoipPool::deserialize(deser)?);
         162  +
                            Ok(())
         163  +
                        })?;
         164  +
                        container
  110    165   
                    });
  111    166   
                }
  112    167   
                Some(1) => {
  113    168   
                    builder.next_token = Some(deser.read_string(member)?);
  114    169   
                }
  115    170   
                _ => {}
  116    171   
            }
  117    172   
            Ok(())
  118    173   
        })?;
  119    174   
        Ok(builder.build())

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

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

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

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

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

@@ -1,1 +119,170 @@
   20     20   
    "com.amazonaws.ec2.synthetic",
   21     21   
    "DescribeConversionTasksOutput",
   22     22   
);
   23     23   
static DESCRIBECONVERSIONTASKSOUTPUT_MEMBER_CONVERSION_TASKS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   24     24   
    ::aws_smithy_schema::ShapeId::from_static(
   25     25   
        "com.amazonaws.ec2.synthetic#DescribeConversionTasksOutput$ConversionTasks",
   26     26   
        "com.amazonaws.ec2.synthetic",
   27     27   
        "DescribeConversionTasksOutput",
   28     28   
    ),
   29     29   
    ::aws_smithy_schema::ShapeType::List,
   30         -
    "conversion_tasks",
          30  +
    "ConversionTasks",
   31     31   
    0,
   32     32   
)
   33     33   
.with_xml_name("conversionTasks");
          34  +
static DESCRIBECONVERSIONTASKSOUTPUT_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 DESCRIBECONVERSIONTASKSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   35     42   
    DESCRIBECONVERSIONTASKSOUTPUT_SCHEMA_ID,
   36     43   
    ::aws_smithy_schema::ShapeType::Structure,
   37         -
    &[&DESCRIBECONVERSIONTASKSOUTPUT_MEMBER_CONVERSION_TASKS],
          44  +
    &[
          45  +
        &DESCRIBECONVERSIONTASKSOUTPUT_MEMBER_CONVERSION_TASKS,
          46  +
        &DESCRIBECONVERSIONTASKSOUTPUT_MEMBER__REQUEST_ID,
          47  +
    ],
   38     48   
);
   39     49   
impl DescribeConversionTasksOutput {
   40     50   
    /// The schema for this shape.
   41     51   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBECONVERSIONTASKSOUTPUT_SCHEMA;
   42     52   
}
   43     53   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeConversionTasksOutput {
   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.conversion_tasks {
   50     60   
            ser.write_list(
   51     61   
                &DESCRIBECONVERSIONTASKSOUTPUT_MEMBER_CONVERSION_TASKS,
   52     62   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   53     63   
                    for item in val {
   54     64   
                        ser.write_struct(crate::types::ConversionTask::SCHEMA, item)?;
   55     65   
                    }
   56     66   
                    Ok(())
   57     67   
                },
   58     68   
            )?;
   59     69   
        }
   60     70   
        Ok(())
   61     71   
    }
   62     72   
}
   63     73   
impl DescribeConversionTasksOutput {
   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,
   67     77   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   68     78   
        #[allow(unused_variables, unused_mut)]
   69     79   
        let mut builder = Self::builder();
   70     80   
        #[allow(
   71     81   
            unused_variables,
   72     82   
            unreachable_code,
   73     83   
            clippy::single_match,
   74     84   
            clippy::match_single_binding,
   75     85   
            clippy::diverging_sub_expression
   76     86   
        )]
   77         -
        deserializer.read_struct(&DESCRIBECONVERSIONTASKSOUTPUT_SCHEMA, (), |_, member, deser| {
          87  +
        deserializer.read_struct(&DESCRIBECONVERSIONTASKSOUTPUT_SCHEMA, &mut |member, deser| {
   78     88   
            match member.member_index() {
   79     89   
                Some(0) => {
   80     90   
                    builder.conversion_tasks = 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::ConversionTask::deserialize(deser)?);
   88         -
                            Ok(list)
   89         -
                        })?
          91  +
                        let mut container = Vec::new();
          92  +
                        deser.read_list(member, &mut |deser| {
          93  +
                            container.push(crate::types::ConversionTask::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 DescribeConversionTasksOutput {
         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],
         118  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         119  +
        #[allow(unused_variables, unused_mut)]
         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  +
        }
         124  +
        #[allow(
         125  +
            unused_variables,
         126  +
            unreachable_code,
         127  +
            clippy::single_match,
         128  +
            clippy::match_single_binding,
         129  +
            clippy::diverging_sub_expression
         130  +
        )]
         131  +
        deserializer.read_struct(&DESCRIBECONVERSIONTASKSOUTPUT_SCHEMA, &mut |member, deser| {
         132  +
            match member.member_index() {
         133  +
                Some(0) => {
         134  +
                    builder.conversion_tasks = Some({
         135  +
                        let mut container = Vec::new();
         136  +
                        deser.read_list(member, &mut |deser| {
         137  +
                            container.push(crate::types::ConversionTask::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 DescribeConversionTasksOutput {

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

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

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

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

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

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

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

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

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

@@ -6,6 +145,197 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeDeclarativePoliciesReportsOutput",
   28     28   
);
   29     29   
static DESCRIBEDECLARATIVEPOLICIESREPORTSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeDeclarativePoliciesReportsOutput$NextToken",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeDeclarativePoliciesReportsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::String,
   36         -
    "next_token",
          36  +
    "NextToken",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("nextToken");
   40     40   
static DESCRIBEDECLARATIVEPOLICIESREPORTSOUTPUT_MEMBER_REPORTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.ec2.synthetic#DescribeDeclarativePoliciesReportsOutput$Reports",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeDeclarativePoliciesReportsOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::List,
   47         -
    "reports",
          47  +
    "Reports",
   48     48   
    1,
   49     49   
)
   50     50   
.with_xml_name("reportSet");
          51  +
static DESCRIBEDECLARATIVEPOLICIESREPORTSOUTPUT_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 DESCRIBEDECLARATIVEPOLICIESREPORTSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBEDECLARATIVEPOLICIESREPORTSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &DESCRIBEDECLARATIVEPOLICIESREPORTSOUTPUT_MEMBER_NEXT_TOKEN,
   56     63   
        &DESCRIBEDECLARATIVEPOLICIESREPORTSOUTPUT_MEMBER_REPORTS,
          64  +
        &DESCRIBEDECLARATIVEPOLICIESREPORTSOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl DescribeDeclarativePoliciesReportsOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEDECLARATIVEPOLICIESREPORTSOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeDeclarativePoliciesReportsOutput {
   64     72   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   65     73   
    fn serialize_members(
   66     74   
        &self,
   67     75   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   68     76   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   69     77   
        if let Some(ref val) = self.next_token {
   70     78   
            ser.write_string(&DESCRIBEDECLARATIVEPOLICIESREPORTSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   71     79   
        }
   72     80   
        if let Some(ref val) = self.reports {
   73     81   
            ser.write_list(
   74     82   
                &DESCRIBEDECLARATIVEPOLICIESREPORTSOUTPUT_MEMBER_REPORTS,
   75     83   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   76     84   
                    for item in val {
   77     85   
                        ser.write_struct(crate::types::DeclarativePoliciesReport::SCHEMA, item)?;
   78     86   
                    }
   79     87   
                    Ok(())
   80     88   
                },
   81     89   
            )?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl DescribeDeclarativePoliciesReportsOutput {
   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(&DESCRIBEDECLARATIVEPOLICIESREPORTSOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.next_token = Some(deser.read_string(member)?);
         112  +
                }
         113  +
                Some(1) => {
         114  +
                    builder.reports = Some({
         115  +
                        let mut container = Vec::new();
         116  +
                        deser.read_list(member, &mut |deser| {
         117  +
                            container.push(crate::types::DeclarativePoliciesReport::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 DescribeDeclarativePoliciesReportsOutput {
         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(&DESCRIBEDECLARATIVEPOLICIESREPORTSOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBEDECLARATIVEPOLICIESREPORTSOUTPUT_SCHEMA, &mut |member, deser| {
  101    156   
            match member.member_index() {
  102    157   
                Some(0) => {
  103    158   
                    builder.next_token = Some(deser.read_string(member)?);
  104    159   
                }
  105    160   
                Some(1) => {
  106    161   
                    builder.reports = 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::DeclarativePoliciesReport::deserialize(deser)?);
  114         -
                            Ok(list)
  115         -
                        })?
         162  +
                        let mut container = Vec::new();
         163  +
                        deser.read_list(member, &mut |deser| {
         164  +
                            container.push(crate::types::DeclarativePoliciesReport::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 DescribeDeclarativePoliciesReportsOutput {

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

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