AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045 (ignoring whitespace)

Files changed:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -79,79 +191,191 @@
   99     99   
    "com.amazonaws.ec2.synthetic",
  100    100   
    "DescribeVpcEndpointServicesInput",
  101    101   
);
  102    102   
static DESCRIBEVPCENDPOINTSERVICESINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  103    103   
    ::aws_smithy_schema::ShapeId::from_static(
  104    104   
        "com.amazonaws.ec2.synthetic#DescribeVpcEndpointServicesInput$DryRun",
  105    105   
        "com.amazonaws.ec2.synthetic",
  106    106   
        "DescribeVpcEndpointServicesInput",
  107    107   
    ),
  108    108   
    ::aws_smithy_schema::ShapeType::Boolean,
  109         -
    "dry_run",
         109  +
    "DryRun",
  110    110   
    0,
  111    111   
);
  112    112   
static DESCRIBEVPCENDPOINTSERVICESINPUT_MEMBER_SERVICE_NAMES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  113    113   
    ::aws_smithy_schema::ShapeId::from_static(
  114    114   
        "com.amazonaws.ec2.synthetic#DescribeVpcEndpointServicesInput$ServiceNames",
  115    115   
        "com.amazonaws.ec2.synthetic",
  116    116   
        "DescribeVpcEndpointServicesInput",
  117    117   
    ),
  118    118   
    ::aws_smithy_schema::ShapeType::List,
  119         -
    "service_names",
         119  +
    "ServiceNames",
  120    120   
    1,
  121    121   
)
  122    122   
.with_xml_name("ServiceName");
  123    123   
static DESCRIBEVPCENDPOINTSERVICESINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  124    124   
    ::aws_smithy_schema::ShapeId::from_static(
  125    125   
        "com.amazonaws.ec2.synthetic#DescribeVpcEndpointServicesInput$Filters",
  126    126   
        "com.amazonaws.ec2.synthetic",
  127    127   
        "DescribeVpcEndpointServicesInput",
  128    128   
    ),
  129    129   
    ::aws_smithy_schema::ShapeType::List,
  130         -
    "filters",
         130  +
    "Filters",
  131    131   
    2,
  132    132   
)
  133    133   
.with_xml_name("Filter");
  134    134   
static DESCRIBEVPCENDPOINTSERVICESINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  135    135   
    ::aws_smithy_schema::ShapeId::from_static(
  136    136   
        "com.amazonaws.ec2.synthetic#DescribeVpcEndpointServicesInput$MaxResults",
  137    137   
        "com.amazonaws.ec2.synthetic",
  138    138   
        "DescribeVpcEndpointServicesInput",
  139    139   
    ),
  140    140   
    ::aws_smithy_schema::ShapeType::Integer,
  141         -
    "max_results",
         141  +
    "MaxResults",
  142    142   
    3,
  143    143   
);
  144    144   
static DESCRIBEVPCENDPOINTSERVICESINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  145    145   
    ::aws_smithy_schema::ShapeId::from_static(
  146    146   
        "com.amazonaws.ec2.synthetic#DescribeVpcEndpointServicesInput$NextToken",
  147    147   
        "com.amazonaws.ec2.synthetic",
  148    148   
        "DescribeVpcEndpointServicesInput",
  149    149   
    ),
  150    150   
    ::aws_smithy_schema::ShapeType::String,
  151         -
    "next_token",
         151  +
    "NextToken",
  152    152   
    4,
  153    153   
);
  154    154   
static DESCRIBEVPCENDPOINTSERVICESINPUT_MEMBER_SERVICE_REGIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  155    155   
    ::aws_smithy_schema::ShapeId::from_static(
  156    156   
        "com.amazonaws.ec2.synthetic#DescribeVpcEndpointServicesInput$ServiceRegions",
  157    157   
        "com.amazonaws.ec2.synthetic",
  158    158   
        "DescribeVpcEndpointServicesInput",
  159    159   
    ),
  160    160   
    ::aws_smithy_schema::ShapeType::List,
  161         -
    "service_regions",
         161  +
    "ServiceRegions",
  162    162   
    5,
  163    163   
)
  164    164   
.with_xml_name("ServiceRegion");
  165    165   
static DESCRIBEVPCENDPOINTSERVICESINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  166    166   
    DESCRIBEVPCENDPOINTSERVICESINPUT_SCHEMA_ID,
  167    167   
    ::aws_smithy_schema::ShapeType::Structure,
  168    168   
    &[
  169    169   
        &DESCRIBEVPCENDPOINTSERVICESINPUT_MEMBER_DRY_RUN,
  170    170   
        &DESCRIBEVPCENDPOINTSERVICESINPUT_MEMBER_SERVICE_NAMES,
  171    171   
        &DESCRIBEVPCENDPOINTSERVICESINPUT_MEMBER_FILTERS,
@@ -204,204 +334,322 @@
  224    224   
                    }
  225    225   
                    Ok(())
  226    226   
                },
  227    227   
            )?;
  228    228   
        }
  229    229   
        Ok(())
  230    230   
    }
  231    231   
}
  232    232   
impl DescribeVpcEndpointServicesInput {
  233    233   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  234         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  235         -
        deserializer: &mut D,
         234  +
    pub fn deserialize(
         235  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  236    236   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  237    237   
        #[allow(unused_variables, unused_mut)]
  238    238   
        let mut builder = Self::builder();
  239    239   
        #[allow(
  240    240   
            unused_variables,
  241    241   
            unreachable_code,
  242    242   
            clippy::single_match,
  243    243   
            clippy::match_single_binding,
  244    244   
            clippy::diverging_sub_expression
  245    245   
        )]
  246         -
        deserializer.read_struct(&DESCRIBEVPCENDPOINTSERVICESINPUT_SCHEMA, (), |_, member, deser| {
         246  +
        deserializer.read_struct(&DESCRIBEVPCENDPOINTSERVICESINPUT_SCHEMA, &mut |member, deser| {
  247    247   
            match member.member_index() {
  248    248   
                Some(0) => {
  249    249   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  250    250   
                }
  251    251   
                Some(1) => {
  252         -
                    builder.service_names = Some({
  253         -
                        let container = if let Some(cap) = deser.container_size() {
  254         -
                            Vec::with_capacity(cap)
  255         -
                        } else {
  256         -
                            Vec::new()
  257         -
                        };
  258         -
                        deser.read_list(member, container, |mut list, deser| {
  259         -
                            list.push(deser.read_string(member)?);
  260         -
                            Ok(list)
  261         -
                        })?
  262         -
                    });
         252  +
                    builder.service_names = Some(deser.read_string_list(member)?);
  263    253   
                }
  264    254   
                Some(2) => {
  265    255   
                    builder.filters = Some({
  266         -
                        let container = if let Some(cap) = deser.container_size() {
  267         -
                            Vec::with_capacity(cap)
  268         -
                        } else {
  269         -
                            Vec::new()
  270         -
                        };
  271         -
                        deser.read_list(member, container, |mut list, deser| {
  272         -
                            list.push(crate::types::Filter::deserialize(deser)?);
  273         -
                            Ok(list)
  274         -
                        })?
         256  +
                        let mut container = Vec::new();
         257  +
                        deser.read_list(member, &mut |deser| {
         258  +
                            container.push(crate::types::Filter::deserialize(deser)?);
         259  +
                            Ok(())
         260  +
                        })?;
         261  +
                        container
  275    262   
                    });
  276    263   
                }
  277    264   
                Some(3) => {
  278    265   
                    builder.max_results = Some(deser.read_integer(member)?);
  279    266   
                }
  280    267   
                Some(4) => {
  281    268   
                    builder.next_token = Some(deser.read_string(member)?);
  282    269   
                }
  283    270   
                Some(5) => {
  284         -
                    builder.service_regions = Some({
  285         -
                        let container = if let Some(cap) = deser.container_size() {
  286         -
                            Vec::with_capacity(cap)
  287         -
                        } else {
  288         -
                            Vec::new()
  289         -
                        };
  290         -
                        deser.read_list(member, container, |mut list, deser| {
  291         -
                            list.push(deser.read_string(member)?);
  292         -
                            Ok(list)
  293         -
                        })?
  294         -
                    });
         271  +
                    builder.service_regions = Some(deser.read_string_list(member)?);
  295    272   
                }
  296    273   
                _ => {}
  297    274   
            }
  298    275   
            Ok(())
  299    276   
        })?;
  300    277   
        builder
  301    278   
            .build()
  302    279   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  303    280   
    }
  304    281   
}
         282  +
impl DescribeVpcEndpointServicesInput {
         283  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         284  +
    pub fn deserialize_with_response(
         285  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         286  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         287  +
        _status: u16,
         288  +
        _body: &[u8],
         289  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         290  +
        Self::deserialize(deserializer)
         291  +
    }
         292  +
}
  305    293   
impl DescribeVpcEndpointServicesInput {
  306    294   
    /// Creates a new builder-style object to manufacture [`DescribeVpcEndpointServicesInput`](crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesInput).
  307    295   
    pub fn builder() -> crate::operation::describe_vpc_endpoint_services::builders::DescribeVpcEndpointServicesInputBuilder {
  308    296   
        crate::operation::describe_vpc_endpoint_services::builders::DescribeVpcEndpointServicesInputBuilder::default()
  309    297   
    }
  310    298   
}
  311    299   
  312    300   
/// A builder for [`DescribeVpcEndpointServicesInput`](crate::operation::describe_vpc_endpoint_services::DescribeVpcEndpointServicesInput).
  313    301   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  314    302   
#[non_exhaustive]

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

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