AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c (ignoring whitespace)

Files changed:

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

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

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

@@ -6,6 +145,197 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeDhcpOptionsOutput",
   28     28   
);
   29     29   
static DESCRIBEDHCPOPTIONSOUTPUT_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#DescribeDhcpOptionsOutput$NextToken",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeDhcpOptionsOutput",
   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 DESCRIBEDHCPOPTIONSOUTPUT_MEMBER_DHCP_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.ec2.synthetic#DescribeDhcpOptionsOutput$DhcpOptions",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeDhcpOptionsOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::List,
   47         -
    "dhcp_options",
          47  +
    "DhcpOptions",
   48     48   
    1,
   49     49   
)
   50     50   
.with_xml_name("dhcpOptionsSet");
          51  +
static DESCRIBEDHCPOPTIONSOUTPUT_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 DESCRIBEDHCPOPTIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBEDHCPOPTIONSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &DESCRIBEDHCPOPTIONSOUTPUT_MEMBER_NEXT_TOKEN,
   56     63   
        &DESCRIBEDHCPOPTIONSOUTPUT_MEMBER_DHCP_OPTIONS,
          64  +
        &DESCRIBEDHCPOPTIONSOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl DescribeDhcpOptionsOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEDHCPOPTIONSOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeDhcpOptionsOutput {
   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(&DESCRIBEDHCPOPTIONSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   71     79   
        }
   72     80   
        if let Some(ref val) = self.dhcp_options {
   73     81   
            ser.write_list(
   74     82   
                &DESCRIBEDHCPOPTIONSOUTPUT_MEMBER_DHCP_OPTIONS,
   75     83   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   76     84   
                    for item in val {
   77     85   
                        ser.write_struct(crate::types::DhcpOptions::SCHEMA, item)?;
   78     86   
                    }
   79     87   
                    Ok(())
   80     88   
                },
   81     89   
            )?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl DescribeDhcpOptionsOutput {
   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(&DESCRIBEDHCPOPTIONSOUTPUT_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.dhcp_options = Some({
         115  +
                        let mut container = Vec::new();
         116  +
                        deser.read_list(member, &mut |deser| {
         117  +
                            container.push(crate::types::DhcpOptions::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 DescribeDhcpOptionsOutput {
         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(&DESCRIBEDHCPOPTIONSOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBEDHCPOPTIONSOUTPUT_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.dhcp_options = 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::DhcpOptions::deserialize(deser)?);
  114         -
                            Ok(list)
  115         -
                        })?
         162  +
                        let mut container = Vec::new();
         163  +
                        deser.read_list(member, &mut |deser| {
         164  +
                            container.push(crate::types::DhcpOptions::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 DescribeDhcpOptionsOutput {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/describe_egress_only_internet_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 `DescribeEgressOnlyInternetGateways`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeEgressOnlyInternetGateways;
    6      6   
impl DescribeEgressOnlyInternetGateways {
    7      7   
    /// Creates a new `DescribeEgressOnlyInternetGateways`
    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_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysOutput::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_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::describe_egress_only_internet_gateways::DescribeEgressOnlyInternetGatewaysError,
  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 DescribeEgressOnlyInternetGatewaysResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeEgressOnlyInternetGatewaysResponseDeserializer {
  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_egress_only_internet_gateways::de_describe_egress_only_internet_gateways_http_error(
  166    173   
                status, headers, body,

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

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

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

@@ -7,7 +143,195 @@
   27     27   
    "DescribeEgressOnlyInternetGatewaysOutput",
   28     28   
);
   29     29   
static DESCRIBEEGRESSONLYINTERNETGATEWAYSOUTPUT_MEMBER_EGRESS_ONLY_INTERNET_GATEWAYS: ::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#DescribeEgressOnlyInternetGatewaysOutput$EgressOnlyInternetGateways",
   33     33   
            "com.amazonaws.ec2.synthetic",
   34     34   
            "DescribeEgressOnlyInternetGatewaysOutput",
   35     35   
        ),
   36     36   
        ::aws_smithy_schema::ShapeType::List,
   37         -
        "egress_only_internet_gateways",
          37  +
        "EgressOnlyInternetGateways",
   38     38   
        0,
   39     39   
    )
   40     40   
    .with_xml_name("egressOnlyInternetGatewaySet");
   41     41   
static DESCRIBEEGRESSONLYINTERNETGATEWAYSOUTPUT_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#DescribeEgressOnlyInternetGatewaysOutput$NextToken",
   44     44   
        "com.amazonaws.ec2.synthetic",
   45     45   
        "DescribeEgressOnlyInternetGatewaysOutput",
   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 DESCRIBEEGRESSONLYINTERNETGATEWAYSOUTPUT_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 DESCRIBEEGRESSONLYINTERNETGATEWAYSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   53     60   
    DESCRIBEEGRESSONLYINTERNETGATEWAYSOUTPUT_SCHEMA_ID,
   54     61   
    ::aws_smithy_schema::ShapeType::Structure,
   55     62   
    &[
   56     63   
        &DESCRIBEEGRESSONLYINTERNETGATEWAYSOUTPUT_MEMBER_EGRESS_ONLY_INTERNET_GATEWAYS,
   57     64   
        &DESCRIBEEGRESSONLYINTERNETGATEWAYSOUTPUT_MEMBER_NEXT_TOKEN,
          65  +
        &DESCRIBEEGRESSONLYINTERNETGATEWAYSOUTPUT_MEMBER__REQUEST_ID,
   58     66   
    ],
   59     67   
);
   60     68   
impl DescribeEgressOnlyInternetGatewaysOutput {
   61     69   
    /// The schema for this shape.
   62     70   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEEGRESSONLYINTERNETGATEWAYSOUTPUT_SCHEMA;
   63     71   
}
   64     72   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeEgressOnlyInternetGatewaysOutput {
   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.egress_only_internet_gateways {
   71     79   
            ser.write_list(
   72     80   
                &DESCRIBEEGRESSONLYINTERNETGATEWAYSOUTPUT_MEMBER_EGRESS_ONLY_INTERNET_GATEWAYS,
   73     81   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   74     82   
                    for item in val {
   75     83   
                        ser.write_struct(crate::types::EgressOnlyInternetGateway::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(&DESCRIBEEGRESSONLYINTERNETGATEWAYSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   83     91   
        }
   84     92   
        Ok(())
   85     93   
    }
   86     94   
}
   87     95   
impl DescribeEgressOnlyInternetGatewaysOutput {
   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(&DESCRIBEEGRESSONLYINTERNETGATEWAYSOUTPUT_SCHEMA, &mut |member, deser| {
         110  +
            match member.member_index() {
         111  +
                Some(0) => {
         112  +
                    builder.egress_only_internet_gateways = Some({
         113  +
                        let mut container = Vec::new();
         114  +
                        deser.read_list(member, &mut |deser| {
         115  +
                            container.push(crate::types::EgressOnlyInternetGateway::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 DescribeEgressOnlyInternetGatewaysOutput {
         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(&DESCRIBEEGRESSONLYINTERNETGATEWAYSOUTPUT_SCHEMA, (), |_, member, deser| {
         156  +
        deserializer.read_struct(&DESCRIBEEGRESSONLYINTERNETGATEWAYSOUTPUT_SCHEMA, &mut |member, deser| {
  102    157   
            match member.member_index() {
  103    158   
                Some(0) => {
  104    159   
                    builder.egress_only_internet_gateways = 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::EgressOnlyInternetGateway::deserialize(deser)?);
  112         -
                            Ok(list)
  113         -
                        })?
         160  +
                        let mut container = Vec::new();
         161  +
                        deser.read_list(member, &mut |deser| {
         162  +
                            container.push(crate::types::EgressOnlyInternetGateway::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_elastic_gpus.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 `DescribeElasticGpus`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeElasticGpus;
    6      6   
impl DescribeElasticGpus {
    7      7   
    /// Creates a new `DescribeElasticGpus`
    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_elastic_gpus::DescribeElasticGpusInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_elastic_gpus::DescribeElasticGpusOutput::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_elastic_gpus::DescribeElasticGpusInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::describe_elastic_gpus::DescribeElasticGpusOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::describe_elastic_gpus::DescribeElasticGpusError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::describe_elastic_gpus::DescribeElasticGpusError,
  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 DescribeElasticGpusResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeElasticGpusResponseDeserializer {
  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_elastic_gpus::de_describe_elastic_gpus_http_error(status, headers, body)
  160    165   
        } else {

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

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

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

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

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

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/describe_export_tasks.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 `DescribeExportTasks`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeExportTasks;
    6      6   
impl DescribeExportTasks {
    7      7   
    /// Creates a new `DescribeExportTasks`
    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_export_tasks::DescribeExportTasksInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_export_tasks::DescribeExportTasksOutput::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_export_tasks::DescribeExportTasksInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::describe_export_tasks::DescribeExportTasksOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::describe_export_tasks::DescribeExportTasksError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::describe_export_tasks::DescribeExportTasksError,
  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 DescribeExportTasksResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeExportTasksResponseDeserializer {
  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_export_tasks::de_describe_export_tasks_http_error(status, headers, body)
  160    165   
        } else {

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

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

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

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

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

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

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