AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12 (ignoring whitespace)

Files changed:

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

@@ -6,6 +142,194 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeTransitGatewaysOutput",
   28     28   
);
   29     29   
static DESCRIBETRANSITGATEWAYSOUTPUT_MEMBER_TRANSIT_GATEWAYS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeTransitGatewaysOutput$TransitGateways",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeTransitGatewaysOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "transit_gateways",
          36  +
    "TransitGateways",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("transitGatewaySet");
   40     40   
static DESCRIBETRANSITGATEWAYSOUTPUT_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#DescribeTransitGatewaysOutput$NextToken",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeTransitGatewaysOutput",
   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 DESCRIBETRANSITGATEWAYSOUTPUT_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 DESCRIBETRANSITGATEWAYSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBETRANSITGATEWAYSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &DESCRIBETRANSITGATEWAYSOUTPUT_MEMBER_TRANSIT_GATEWAYS,
   56     63   
        &DESCRIBETRANSITGATEWAYSOUTPUT_MEMBER_NEXT_TOKEN,
          64  +
        &DESCRIBETRANSITGATEWAYSOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl DescribeTransitGatewaysOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBETRANSITGATEWAYSOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeTransitGatewaysOutput {
   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.transit_gateways {
   70     78   
            ser.write_list(
   71     79   
                &DESCRIBETRANSITGATEWAYSOUTPUT_MEMBER_TRANSIT_GATEWAYS,
   72     80   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   73     81   
                    for item in val {
   74     82   
                        ser.write_struct(crate::types::TransitGateway::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(&DESCRIBETRANSITGATEWAYSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl DescribeTransitGatewaysOutput {
   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(&DESCRIBETRANSITGATEWAYSOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.transit_gateways = Some({
         112  +
                        let mut container = Vec::new();
         113  +
                        deser.read_list(member, &mut |deser| {
         114  +
                            container.push(crate::types::TransitGateway::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 DescribeTransitGatewaysOutput {
         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(&DESCRIBETRANSITGATEWAYSOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBETRANSITGATEWAYSOUTPUT_SCHEMA, &mut |member, deser| {
  101    156   
            match member.member_index() {
  102    157   
                Some(0) => {
  103    158   
                    builder.transit_gateways = 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::TransitGateway::deserialize(deser)?);
  111         -
                            Ok(list)
  112         -
                        })?
         159  +
                        let mut container = Vec::new();
         160  +
                        deser.read_list(member, &mut |deser| {
         161  +
                            container.push(crate::types::TransitGateway::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_trunk_interface_associations.rs

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `DescribeTrunkInterfaceAssociations`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeTrunkInterfaceAssociations;
    6      6   
impl DescribeTrunkInterfaceAssociations {
    7      7   
    /// Creates a new `DescribeTrunkInterfaceAssociations`
    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_trunk_interface_associations::DescribeTrunkInterfaceAssociationsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsOutput::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_trunk_interface_associations::DescribeTrunkInterfaceAssociationsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::describe_trunk_interface_associations::DescribeTrunkInterfaceAssociationsError,
  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 DescribeTrunkInterfaceAssociationsResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeTrunkInterfaceAssociationsResponseDeserializer {
  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_trunk_interface_associations::de_describe_trunk_interface_associations_http_error(
  166    173   
                status, headers, body,

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

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

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

@@ -6,6 +142,194 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeTrunkInterfaceAssociationsOutput",
   28     28   
);
   29     29   
static DESCRIBETRUNKINTERFACEASSOCIATIONSOUTPUT_MEMBER_INTERFACE_ASSOCIATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeTrunkInterfaceAssociationsOutput$InterfaceAssociations",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeTrunkInterfaceAssociationsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "interface_associations",
          36  +
    "InterfaceAssociations",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("interfaceAssociationSet");
   40     40   
static DESCRIBETRUNKINTERFACEASSOCIATIONSOUTPUT_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#DescribeTrunkInterfaceAssociationsOutput$NextToken",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeTrunkInterfaceAssociationsOutput",
   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 DESCRIBETRUNKINTERFACEASSOCIATIONSOUTPUT_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 DESCRIBETRUNKINTERFACEASSOCIATIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBETRUNKINTERFACEASSOCIATIONSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &DESCRIBETRUNKINTERFACEASSOCIATIONSOUTPUT_MEMBER_INTERFACE_ASSOCIATIONS,
   56     63   
        &DESCRIBETRUNKINTERFACEASSOCIATIONSOUTPUT_MEMBER_NEXT_TOKEN,
          64  +
        &DESCRIBETRUNKINTERFACEASSOCIATIONSOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl DescribeTrunkInterfaceAssociationsOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBETRUNKINTERFACEASSOCIATIONSOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeTrunkInterfaceAssociationsOutput {
   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.interface_associations {
   70     78   
            ser.write_list(
   71     79   
                &DESCRIBETRUNKINTERFACEASSOCIATIONSOUTPUT_MEMBER_INTERFACE_ASSOCIATIONS,
   72     80   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   73     81   
                    for item in val {
   74     82   
                        ser.write_struct(crate::types::TrunkInterfaceAssociation::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(&DESCRIBETRUNKINTERFACEASSOCIATIONSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl DescribeTrunkInterfaceAssociationsOutput {
   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(&DESCRIBETRUNKINTERFACEASSOCIATIONSOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.interface_associations = Some({
         112  +
                        let mut container = Vec::new();
         113  +
                        deser.read_list(member, &mut |deser| {
         114  +
                            container.push(crate::types::TrunkInterfaceAssociation::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 DescribeTrunkInterfaceAssociationsOutput {
         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(&DESCRIBETRUNKINTERFACEASSOCIATIONSOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBETRUNKINTERFACEASSOCIATIONSOUTPUT_SCHEMA, &mut |member, deser| {
  101    156   
            match member.member_index() {
  102    157   
                Some(0) => {
  103    158   
                    builder.interface_associations = 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::TrunkInterfaceAssociation::deserialize(deser)?);
  111         -
                            Ok(list)
  112         -
                        })?
         159  +
                        let mut container = Vec::new();
         160  +
                        deser.read_list(member, &mut |deser| {
         161  +
                            container.push(crate::types::TrunkInterfaceAssociation::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_verified_access_endpoints.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 `DescribeVerifiedAccessEndpoints`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeVerifiedAccessEndpoints;
    6      6   
impl DescribeVerifiedAccessEndpoints {
    7      7   
    /// Creates a new `DescribeVerifiedAccessEndpoints`
    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_verified_access_endpoints::DescribeVerifiedAccessEndpointsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsOutput::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_verified_access_endpoints::DescribeVerifiedAccessEndpointsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::describe_verified_access_endpoints::DescribeVerifiedAccessEndpointsError,
  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 DescribeVerifiedAccessEndpointsResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeVerifiedAccessEndpointsResponseDeserializer {
  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_verified_access_endpoints::de_describe_verified_access_endpoints_http_error(status, headers, body)
  166    173   
        } else {

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

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

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

@@ -6,6 +142,194 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeVerifiedAccessEndpointsOutput",
   28     28   
);
   29     29   
static DESCRIBEVERIFIEDACCESSENDPOINTSOUTPUT_MEMBER_VERIFIED_ACCESS_ENDPOINTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeVerifiedAccessEndpointsOutput$VerifiedAccessEndpoints",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeVerifiedAccessEndpointsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "verified_access_endpoints",
          36  +
    "VerifiedAccessEndpoints",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("verifiedAccessEndpointSet");
   40     40   
static DESCRIBEVERIFIEDACCESSENDPOINTSOUTPUT_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#DescribeVerifiedAccessEndpointsOutput$NextToken",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeVerifiedAccessEndpointsOutput",
   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 DESCRIBEVERIFIEDACCESSENDPOINTSOUTPUT_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 DESCRIBEVERIFIEDACCESSENDPOINTSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBEVERIFIEDACCESSENDPOINTSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &DESCRIBEVERIFIEDACCESSENDPOINTSOUTPUT_MEMBER_VERIFIED_ACCESS_ENDPOINTS,
   56     63   
        &DESCRIBEVERIFIEDACCESSENDPOINTSOUTPUT_MEMBER_NEXT_TOKEN,
          64  +
        &DESCRIBEVERIFIEDACCESSENDPOINTSOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl DescribeVerifiedAccessEndpointsOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEVERIFIEDACCESSENDPOINTSOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeVerifiedAccessEndpointsOutput {
   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.verified_access_endpoints {
   70     78   
            ser.write_list(
   71     79   
                &DESCRIBEVERIFIEDACCESSENDPOINTSOUTPUT_MEMBER_VERIFIED_ACCESS_ENDPOINTS,
   72     80   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   73     81   
                    for item in val {
   74     82   
                        ser.write_struct(crate::types::VerifiedAccessEndpoint::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(&DESCRIBEVERIFIEDACCESSENDPOINTSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl DescribeVerifiedAccessEndpointsOutput {
   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(&DESCRIBEVERIFIEDACCESSENDPOINTSOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.verified_access_endpoints = Some({
         112  +
                        let mut container = Vec::new();
         113  +
                        deser.read_list(member, &mut |deser| {
         114  +
                            container.push(crate::types::VerifiedAccessEndpoint::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 DescribeVerifiedAccessEndpointsOutput {
         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(&DESCRIBEVERIFIEDACCESSENDPOINTSOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBEVERIFIEDACCESSENDPOINTSOUTPUT_SCHEMA, &mut |member, deser| {
  101    156   
            match member.member_index() {
  102    157   
                Some(0) => {
  103    158   
                    builder.verified_access_endpoints = 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::VerifiedAccessEndpoint::deserialize(deser)?);
  111         -
                            Ok(list)
  112         -
                        })?
         159  +
                        let mut container = Vec::new();
         160  +
                        deser.read_list(member, &mut |deser| {
         161  +
                            container.push(crate::types::VerifiedAccessEndpoint::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_verified_access_groups.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 `DescribeVerifiedAccessGroups`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeVerifiedAccessGroups;
    6      6   
impl DescribeVerifiedAccessGroups {
    7      7   
    /// Creates a new `DescribeVerifiedAccessGroups`
    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_verified_access_groups::DescribeVerifiedAccessGroupsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsOutput::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_verified_access_groups::DescribeVerifiedAccessGroupsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsError,
  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 DescribeVerifiedAccessGroupsResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeVerifiedAccessGroupsResponseDeserializer {
  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_verified_access_groups::de_describe_verified_access_groups_http_error(status, headers, body)
  160    167   
        } else {

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

@@ -31,31 +143,143 @@
   51     51   
    "com.amazonaws.ec2.synthetic",
   52     52   
    "DescribeVerifiedAccessGroupsInput",
   53     53   
);
   54     54   
static DESCRIBEVERIFIEDACCESSGROUPSINPUT_MEMBER_VERIFIED_ACCESS_GROUP_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   55     55   
    ::aws_smithy_schema::ShapeId::from_static(
   56     56   
        "com.amazonaws.ec2.synthetic#DescribeVerifiedAccessGroupsInput$VerifiedAccessGroupIds",
   57     57   
        "com.amazonaws.ec2.synthetic",
   58     58   
        "DescribeVerifiedAccessGroupsInput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::List,
   61         -
    "verified_access_group_ids",
          61  +
    "VerifiedAccessGroupIds",
   62     62   
    0,
   63     63   
)
   64     64   
.with_xml_name("VerifiedAccessGroupId");
   65     65   
static DESCRIBEVERIFIEDACCESSGROUPSINPUT_MEMBER_VERIFIED_ACCESS_INSTANCE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   66     66   
    ::aws_smithy_schema::ShapeId::from_static(
   67     67   
        "com.amazonaws.ec2.synthetic#DescribeVerifiedAccessGroupsInput$VerifiedAccessInstanceId",
   68     68   
        "com.amazonaws.ec2.synthetic",
   69     69   
        "DescribeVerifiedAccessGroupsInput",
   70     70   
    ),
   71     71   
    ::aws_smithy_schema::ShapeType::String,
   72         -
    "verified_access_instance_id",
          72  +
    "VerifiedAccessInstanceId",
   73     73   
    1,
   74     74   
);
   75     75   
static DESCRIBEVERIFIEDACCESSGROUPSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   76     76   
    ::aws_smithy_schema::ShapeId::from_static(
   77     77   
        "com.amazonaws.ec2.synthetic#DescribeVerifiedAccessGroupsInput$MaxResults",
   78     78   
        "com.amazonaws.ec2.synthetic",
   79     79   
        "DescribeVerifiedAccessGroupsInput",
   80     80   
    ),
   81     81   
    ::aws_smithy_schema::ShapeType::Integer,
   82         -
    "max_results",
          82  +
    "MaxResults",
   83     83   
    2,
   84     84   
);
   85     85   
static DESCRIBEVERIFIEDACCESSGROUPSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   86     86   
    ::aws_smithy_schema::ShapeId::from_static(
   87     87   
        "com.amazonaws.ec2.synthetic#DescribeVerifiedAccessGroupsInput$NextToken",
   88     88   
        "com.amazonaws.ec2.synthetic",
   89     89   
        "DescribeVerifiedAccessGroupsInput",
   90     90   
    ),
   91     91   
    ::aws_smithy_schema::ShapeType::String,
   92         -
    "next_token",
          92  +
    "NextToken",
   93     93   
    3,
   94     94   
);
   95     95   
static DESCRIBEVERIFIEDACCESSGROUPSINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   96     96   
    ::aws_smithy_schema::ShapeId::from_static(
   97     97   
        "com.amazonaws.ec2.synthetic#DescribeVerifiedAccessGroupsInput$Filters",
   98     98   
        "com.amazonaws.ec2.synthetic",
   99     99   
        "DescribeVerifiedAccessGroupsInput",
  100    100   
    ),
  101    101   
    ::aws_smithy_schema::ShapeType::List,
  102         -
    "filters",
         102  +
    "Filters",
  103    103   
    4,
  104    104   
)
  105    105   
.with_xml_name("Filter");
  106    106   
static DESCRIBEVERIFIEDACCESSGROUPSINPUT_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#DescribeVerifiedAccessGroupsInput$DryRun",
  109    109   
        "com.amazonaws.ec2.synthetic",
  110    110   
        "DescribeVerifiedAccessGroupsInput",
  111    111   
    ),
  112    112   
    ::aws_smithy_schema::ShapeType::Boolean,
  113         -
    "dry_run",
         113  +
    "DryRun",
  114    114   
    5,
  115    115   
);
  116    116   
static DESCRIBEVERIFIEDACCESSGROUPSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  117    117   
    DESCRIBEVERIFIEDACCESSGROUPSINPUT_SCHEMA_ID,
  118    118   
    ::aws_smithy_schema::ShapeType::Structure,
  119    119   
    &[
  120    120   
        &DESCRIBEVERIFIEDACCESSGROUPSINPUT_MEMBER_VERIFIED_ACCESS_GROUP_IDS,
  121    121   
        &DESCRIBEVERIFIEDACCESSGROUPSINPUT_MEMBER_VERIFIED_ACCESS_INSTANCE_ID,
  122    122   
        &DESCRIBEVERIFIEDACCESSGROUPSINPUT_MEMBER_MAX_RESULTS,
  123    123   
        &DESCRIBEVERIFIEDACCESSGROUPSINPUT_MEMBER_NEXT_TOKEN,
@@ -147,147 +267,265 @@
  167    167   
            )?;
  168    168   
        }
  169    169   
        if let Some(ref val) = self.dry_run {
  170    170   
            ser.write_boolean(&DESCRIBEVERIFIEDACCESSGROUPSINPUT_MEMBER_DRY_RUN, *val)?;
  171    171   
        }
  172    172   
        Ok(())
  173    173   
    }
  174    174   
}
  175    175   
impl DescribeVerifiedAccessGroupsInput {
  176    176   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  177         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  178         -
        deserializer: &mut D,
         177  +
    pub fn deserialize(
         178  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  179    179   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  180    180   
        #[allow(unused_variables, unused_mut)]
  181    181   
        let mut builder = Self::builder();
  182    182   
        #[allow(
  183    183   
            unused_variables,
  184    184   
            unreachable_code,
  185    185   
            clippy::single_match,
  186    186   
            clippy::match_single_binding,
  187    187   
            clippy::diverging_sub_expression
  188    188   
        )]
  189         -
        deserializer.read_struct(&DESCRIBEVERIFIEDACCESSGROUPSINPUT_SCHEMA, (), |_, member, deser| {
         189  +
        deserializer.read_struct(&DESCRIBEVERIFIEDACCESSGROUPSINPUT_SCHEMA, &mut |member, deser| {
  190    190   
            match member.member_index() {
  191    191   
                Some(0) => {
  192         -
                    builder.verified_access_group_ids = Some({
  193         -
                        let container = if let Some(cap) = deser.container_size() {
  194         -
                            Vec::with_capacity(cap)
  195         -
                        } else {
  196         -
                            Vec::new()
  197         -
                        };
  198         -
                        deser.read_list(member, container, |mut list, deser| {
  199         -
                            list.push(deser.read_string(member)?);
  200         -
                            Ok(list)
  201         -
                        })?
  202         -
                    });
         192  +
                    builder.verified_access_group_ids = Some(deser.read_string_list(member)?);
  203    193   
                }
  204    194   
                Some(1) => {
  205    195   
                    builder.verified_access_instance_id = Some(deser.read_string(member)?);
  206    196   
                }
  207    197   
                Some(2) => {
  208    198   
                    builder.max_results = Some(deser.read_integer(member)?);
  209    199   
                }
  210    200   
                Some(3) => {
  211    201   
                    builder.next_token = Some(deser.read_string(member)?);
  212    202   
                }
  213    203   
                Some(4) => {
  214    204   
                    builder.filters = Some({
  215         -
                        let container = if let Some(cap) = deser.container_size() {
  216         -
                            Vec::with_capacity(cap)
  217         -
                        } else {
  218         -
                            Vec::new()
  219         -
                        };
  220         -
                        deser.read_list(member, container, |mut list, deser| {
  221         -
                            list.push(crate::types::Filter::deserialize(deser)?);
  222         -
                            Ok(list)
  223         -
                        })?
         205  +
                        let mut container = Vec::new();
         206  +
                        deser.read_list(member, &mut |deser| {
         207  +
                            container.push(crate::types::Filter::deserialize(deser)?);
         208  +
                            Ok(())
         209  +
                        })?;
         210  +
                        container
  224    211   
                    });
  225    212   
                }
  226    213   
                Some(5) => {
  227    214   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  228    215   
                }
  229    216   
                _ => {}
  230    217   
            }
  231    218   
            Ok(())
  232    219   
        })?;
  233    220   
        builder
  234    221   
            .build()
  235    222   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  236    223   
    }
  237    224   
}
         225  +
impl DescribeVerifiedAccessGroupsInput {
         226  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         227  +
    pub fn deserialize_with_response(
         228  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         229  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         230  +
        _status: u16,
         231  +
        _body: &[u8],
         232  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         233  +
        Self::deserialize(deserializer)
         234  +
    }
         235  +
}
  238    236   
impl DescribeVerifiedAccessGroupsInput {
  239    237   
    /// Creates a new builder-style object to manufacture [`DescribeVerifiedAccessGroupsInput`](crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsInput).
  240    238   
    pub fn builder() -> crate::operation::describe_verified_access_groups::builders::DescribeVerifiedAccessGroupsInputBuilder {
  241    239   
        crate::operation::describe_verified_access_groups::builders::DescribeVerifiedAccessGroupsInputBuilder::default()
  242    240   
    }
  243    241   
}
  244    242   
  245    243   
/// A builder for [`DescribeVerifiedAccessGroupsInput`](crate::operation::describe_verified_access_groups::DescribeVerifiedAccessGroupsInput).
  246    244   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  247    245   
#[non_exhaustive]

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

@@ -6,6 +142,194 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeVerifiedAccessGroupsOutput",
   28     28   
);
   29     29   
static DESCRIBEVERIFIEDACCESSGROUPSOUTPUT_MEMBER_VERIFIED_ACCESS_GROUPS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeVerifiedAccessGroupsOutput$VerifiedAccessGroups",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeVerifiedAccessGroupsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "verified_access_groups",
          36  +
    "VerifiedAccessGroups",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("verifiedAccessGroupSet");
   40     40   
static DESCRIBEVERIFIEDACCESSGROUPSOUTPUT_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#DescribeVerifiedAccessGroupsOutput$NextToken",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeVerifiedAccessGroupsOutput",
   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 DESCRIBEVERIFIEDACCESSGROUPSOUTPUT_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 DESCRIBEVERIFIEDACCESSGROUPSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBEVERIFIEDACCESSGROUPSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &DESCRIBEVERIFIEDACCESSGROUPSOUTPUT_MEMBER_VERIFIED_ACCESS_GROUPS,
   56     63   
        &DESCRIBEVERIFIEDACCESSGROUPSOUTPUT_MEMBER_NEXT_TOKEN,
          64  +
        &DESCRIBEVERIFIEDACCESSGROUPSOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl DescribeVerifiedAccessGroupsOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEVERIFIEDACCESSGROUPSOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeVerifiedAccessGroupsOutput {
   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.verified_access_groups {
   70     78   
            ser.write_list(
   71     79   
                &DESCRIBEVERIFIEDACCESSGROUPSOUTPUT_MEMBER_VERIFIED_ACCESS_GROUPS,
   72     80   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   73     81   
                    for item in val {
   74     82   
                        ser.write_struct(crate::types::VerifiedAccessGroup::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(&DESCRIBEVERIFIEDACCESSGROUPSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl DescribeVerifiedAccessGroupsOutput {
   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(&DESCRIBEVERIFIEDACCESSGROUPSOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.verified_access_groups = Some({
         112  +
                        let mut container = Vec::new();
         113  +
                        deser.read_list(member, &mut |deser| {
         114  +
                            container.push(crate::types::VerifiedAccessGroup::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 DescribeVerifiedAccessGroupsOutput {
         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(&DESCRIBEVERIFIEDACCESSGROUPSOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBEVERIFIEDACCESSGROUPSOUTPUT_SCHEMA, &mut |member, deser| {
  101    156   
            match member.member_index() {
  102    157   
                Some(0) => {
  103    158   
                    builder.verified_access_groups = 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::VerifiedAccessGroup::deserialize(deser)?);
  111         -
                            Ok(list)
  112         -
                        })?
         159  +
                        let mut container = Vec::new();
         160  +
                        deser.read_list(member, &mut |deser| {
         161  +
                            container.push(crate::types::VerifiedAccessGroup::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_verified_access_instance_logging_configurations.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 `DescribeVerifiedAccessInstanceLoggingConfigurations`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeVerifiedAccessInstanceLoggingConfigurations;
    6      6   
impl DescribeVerifiedAccessInstanceLoggingConfigurations {
    7      7   
    /// Creates a new `DescribeVerifiedAccessInstanceLoggingConfigurations`
    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_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsOutput::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_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -121,127 +183,190 @@
  141    147   
            crate::operation::describe_verified_access_instance_logging_configurations::DescribeVerifiedAccessInstanceLoggingConfigurationsError,
  142    148   
        >::new());
  143    149   
  144    150   
        ::std::borrow::Cow::Owned(rcb)
  145    151   
    }
  146    152   
}
  147    153   
  148    154   
#[derive(Debug)]
  149    155   
struct DescribeVerifiedAccessInstanceLoggingConfigurationsResponseDeserializer;
  150    156   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeVerifiedAccessInstanceLoggingConfigurationsResponseDeserializer {
  151         -
    fn deserialize_nonstreaming(
         157  +
    fn deserialize_nonstreaming_with_config(
  152    158   
        &self,
  153    159   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         160  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  154    161   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  155    162   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  156    163   
        let headers = response.headers();
  157    164   
        let body = response.body().bytes().expect("body loaded");
  158    165   
        #[allow(unused_mut)]
  159    166   
        let mut force_error = false;
  160    167   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  161    168   
        let parse_result = if !success && status != 200 || force_error {
  162    169   
            crate::protocol_serde::shape_describe_verified_access_instance_logging_configurations::de_describe_verified_access_instance_logging_configurations_http_error(status, headers, body)
  163    170   
        } else {

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

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

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

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

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

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

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

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

@@ -6,6 +142,194 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeVerifiedAccessInstancesOutput",
   28     28   
);
   29     29   
static DESCRIBEVERIFIEDACCESSINSTANCESOUTPUT_MEMBER_VERIFIED_ACCESS_INSTANCES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeVerifiedAccessInstancesOutput$VerifiedAccessInstances",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeVerifiedAccessInstancesOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "verified_access_instances",
          36  +
    "VerifiedAccessInstances",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("verifiedAccessInstanceSet");
   40     40   
static DESCRIBEVERIFIEDACCESSINSTANCESOUTPUT_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#DescribeVerifiedAccessInstancesOutput$NextToken",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeVerifiedAccessInstancesOutput",
   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 DESCRIBEVERIFIEDACCESSINSTANCESOUTPUT_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 DESCRIBEVERIFIEDACCESSINSTANCESOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBEVERIFIEDACCESSINSTANCESOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &DESCRIBEVERIFIEDACCESSINSTANCESOUTPUT_MEMBER_VERIFIED_ACCESS_INSTANCES,
   56     63   
        &DESCRIBEVERIFIEDACCESSINSTANCESOUTPUT_MEMBER_NEXT_TOKEN,
          64  +
        &DESCRIBEVERIFIEDACCESSINSTANCESOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl DescribeVerifiedAccessInstancesOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEVERIFIEDACCESSINSTANCESOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeVerifiedAccessInstancesOutput {
   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.verified_access_instances {
   70     78   
            ser.write_list(
   71     79   
                &DESCRIBEVERIFIEDACCESSINSTANCESOUTPUT_MEMBER_VERIFIED_ACCESS_INSTANCES,
   72     80   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   73     81   
                    for item in val {
   74     82   
                        ser.write_struct(crate::types::VerifiedAccessInstance::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(&DESCRIBEVERIFIEDACCESSINSTANCESOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl DescribeVerifiedAccessInstancesOutput {
   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(&DESCRIBEVERIFIEDACCESSINSTANCESOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.verified_access_instances = Some({
         112  +
                        let mut container = Vec::new();
         113  +
                        deser.read_list(member, &mut |deser| {
         114  +
                            container.push(crate::types::VerifiedAccessInstance::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 DescribeVerifiedAccessInstancesOutput {
         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(&DESCRIBEVERIFIEDACCESSINSTANCESOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBEVERIFIEDACCESSINSTANCESOUTPUT_SCHEMA, &mut |member, deser| {
  101    156   
            match member.member_index() {
  102    157   
                Some(0) => {
  103    158   
                    builder.verified_access_instances = 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::VerifiedAccessInstance::deserialize(deser)?);
  111         -
                            Ok(list)
  112         -
                        })?
         159  +
                        let mut container = Vec::new();
         160  +
                        deser.read_list(member, &mut |deser| {
         161  +
                            container.push(crate::types::VerifiedAccessInstance::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())