AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045

Files changed:

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

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct AttachInternetGatewayOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static ATTACHINTERNETGATEWAYOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.ec2.synthetic#AttachInternetGatewayOutput",
   10     10   
    "com.amazonaws.ec2.synthetic",
   11     11   
    "AttachInternetGatewayOutput",
   12     12   
);
   13         -
static ATTACHINTERNETGATEWAYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(ATTACHINTERNETGATEWAYOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static ATTACHINTERNETGATEWAYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
          20  +
static ATTACHINTERNETGATEWAYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    ATTACHINTERNETGATEWAYOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&ATTACHINTERNETGATEWAYOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl AttachInternetGatewayOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ATTACHINTERNETGATEWAYOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for AttachInternetGatewayOutput {
   20     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   21     31   
    fn serialize_members(
   22     32   
        &self,
   23     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   24     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   25     35   
        Ok(())
   26     36   
    }
   27     37   
}
   28     38   
impl AttachInternetGatewayOutput {
   29     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   30         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   31         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   32     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   33     43   
        #[allow(unused_variables, unused_mut)]
   34     44   
        let mut builder = Self::builder();
   35     45   
        #[allow(
   36     46   
            unused_variables,
   37     47   
            unreachable_code,
   38     48   
            clippy::single_match,
   39     49   
            clippy::match_single_binding,
   40     50   
            clippy::diverging_sub_expression
   41     51   
        )]
   42         -
        deserializer.read_struct(&ATTACHINTERNETGATEWAYOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&ATTACHINTERNETGATEWAYOUTPUT_SCHEMA, &mut |member, deser| {
   43     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   44     57   
                _ => {}
   45     58   
            }
   46     59   
            Ok(())
   47     60   
        })?;
   48     61   
        Ok(builder.build())
   49     62   
    }
   50     63   
}
          64  +
impl AttachInternetGatewayOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   51     82   
impl ::aws_types::request_id::RequestId for AttachInternetGatewayOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl AttachInternetGatewayOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`AttachInternetGatewayOutput`](crate::operation::attach_internet_gateway::AttachInternetGatewayOutput).
   58     89   
    pub fn builder() -> crate::operation::attach_internet_gateway::builders::AttachInternetGatewayOutputBuilder {
   59     90   
        crate::operation::attach_internet_gateway::builders::AttachInternetGatewayOutputBuilder::default()
   60     91   
    }

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

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

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

@@ -34,34 +253,267 @@
   54     54   
    "com.amazonaws.ec2.synthetic",
   55     55   
    "AttachNetworkInterfaceInput",
   56     56   
);
   57     57   
static ATTACHNETWORKINTERFACEINPUT_MEMBER_NETWORK_CARD_INDEX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   58     58   
    ::aws_smithy_schema::ShapeId::from_static(
   59     59   
        "com.amazonaws.ec2.synthetic#AttachNetworkInterfaceInput$NetworkCardIndex",
   60     60   
        "com.amazonaws.ec2.synthetic",
   61     61   
        "AttachNetworkInterfaceInput",
   62     62   
    ),
   63     63   
    ::aws_smithy_schema::ShapeType::Integer,
   64         -
    "network_card_index",
          64  +
    "NetworkCardIndex",
   65     65   
    0,
   66     66   
);
   67     67   
static ATTACHNETWORKINTERFACEINPUT_MEMBER_ENA_SRD_SPECIFICATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   68     68   
    ::aws_smithy_schema::ShapeId::from_static(
   69     69   
        "com.amazonaws.ec2.synthetic#AttachNetworkInterfaceInput$EnaSrdSpecification",
   70     70   
        "com.amazonaws.ec2.synthetic",
   71     71   
        "AttachNetworkInterfaceInput",
   72     72   
    ),
   73     73   
    ::aws_smithy_schema::ShapeType::Structure,
   74         -
    "ena_srd_specification",
          74  +
    "EnaSrdSpecification",
   75     75   
    1,
   76     76   
);
   77     77   
static ATTACHNETWORKINTERFACEINPUT_MEMBER_ENA_QUEUE_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.ec2.synthetic#AttachNetworkInterfaceInput$EnaQueueCount",
   80     80   
        "com.amazonaws.ec2.synthetic",
   81     81   
        "AttachNetworkInterfaceInput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::Integer,
   84         -
    "ena_queue_count",
          84  +
    "EnaQueueCount",
   85     85   
    2,
   86     86   
);
   87     87   
static ATTACHNETWORKINTERFACEINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.ec2.synthetic#AttachNetworkInterfaceInput$DryRun",
   90     90   
        "com.amazonaws.ec2.synthetic",
   91     91   
        "AttachNetworkInterfaceInput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::Boolean,
   94         -
    "dry_run",
          94  +
    "DryRun",
   95     95   
    3,
   96     96   
)
   97     97   
.with_xml_name("dryRun");
   98     98   
static ATTACHNETWORKINTERFACEINPUT_MEMBER_NETWORK_INTERFACE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   99     99   
    ::aws_smithy_schema::ShapeId::from_static(
  100    100   
        "com.amazonaws.ec2.synthetic#AttachNetworkInterfaceInput$NetworkInterfaceId",
  101    101   
        "com.amazonaws.ec2.synthetic",
  102    102   
        "AttachNetworkInterfaceInput",
  103    103   
    ),
  104    104   
    ::aws_smithy_schema::ShapeType::String,
  105         -
    "network_interface_id",
         105  +
    "NetworkInterfaceId",
  106    106   
    4,
  107    107   
)
  108    108   
.with_xml_name("networkInterfaceId");
  109    109   
static ATTACHNETWORKINTERFACEINPUT_MEMBER_INSTANCE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  110    110   
    ::aws_smithy_schema::ShapeId::from_static(
  111    111   
        "com.amazonaws.ec2.synthetic#AttachNetworkInterfaceInput$InstanceId",
  112    112   
        "com.amazonaws.ec2.synthetic",
  113    113   
        "AttachNetworkInterfaceInput",
  114    114   
    ),
  115    115   
    ::aws_smithy_schema::ShapeType::String,
  116         -
    "instance_id",
         116  +
    "InstanceId",
  117    117   
    5,
  118    118   
)
  119    119   
.with_xml_name("instanceId");
  120    120   
static ATTACHNETWORKINTERFACEINPUT_MEMBER_DEVICE_INDEX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  121    121   
    ::aws_smithy_schema::ShapeId::from_static(
  122    122   
        "com.amazonaws.ec2.synthetic#AttachNetworkInterfaceInput$DeviceIndex",
  123    123   
        "com.amazonaws.ec2.synthetic",
  124    124   
        "AttachNetworkInterfaceInput",
  125    125   
    ),
  126    126   
    ::aws_smithy_schema::ShapeType::Integer,
  127         -
    "device_index",
         127  +
    "DeviceIndex",
  128    128   
    6,
  129    129   
)
  130    130   
.with_xml_name("deviceIndex");
  131    131   
static ATTACHNETWORKINTERFACEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  132    132   
    ATTACHNETWORKINTERFACEINPUT_SCHEMA_ID,
  133    133   
    ::aws_smithy_schema::ShapeType::Structure,
  134    134   
    &[
  135    135   
        &ATTACHNETWORKINTERFACEINPUT_MEMBER_NETWORK_CARD_INDEX,
  136    136   
        &ATTACHNETWORKINTERFACEINPUT_MEMBER_ENA_SRD_SPECIFICATION,
  137    137   
        &ATTACHNETWORKINTERFACEINPUT_MEMBER_ENA_QUEUE_COUNT,
  138    138   
        &ATTACHNETWORKINTERFACEINPUT_MEMBER_DRY_RUN,
  139    139   
        &ATTACHNETWORKINTERFACEINPUT_MEMBER_NETWORK_INTERFACE_ID,
  140    140   
        &ATTACHNETWORKINTERFACEINPUT_MEMBER_INSTANCE_ID,
  141    141   
        &ATTACHNETWORKINTERFACEINPUT_MEMBER_DEVICE_INDEX,
  142    142   
    ],
  143    143   
);
  144    144   
impl AttachNetworkInterfaceInput {
  145    145   
    /// The schema for this shape.
  146    146   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ATTACHNETWORKINTERFACEINPUT_SCHEMA;
  147    147   
}
  148    148   
impl ::aws_smithy_schema::serde::SerializableStruct for AttachNetworkInterfaceInput {
  149    149   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  150    150   
    fn serialize_members(
  151    151   
        &self,
  152    152   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  153    153   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  154    154   
        if let Some(ref val) = self.network_card_index {
  155    155   
            ser.write_integer(&ATTACHNETWORKINTERFACEINPUT_MEMBER_NETWORK_CARD_INDEX, *val)?;
  156    156   
        }
  157    157   
        if let Some(ref val) = self.ena_srd_specification {
  158    158   
            ser.write_struct(&ATTACHNETWORKINTERFACEINPUT_MEMBER_ENA_SRD_SPECIFICATION, val)?;
  159    159   
        }
  160    160   
        if let Some(ref val) = self.ena_queue_count {
  161    161   
            ser.write_integer(&ATTACHNETWORKINTERFACEINPUT_MEMBER_ENA_QUEUE_COUNT, *val)?;
  162    162   
        }
  163    163   
        if let Some(ref val) = self.dry_run {
  164    164   
            ser.write_boolean(&ATTACHNETWORKINTERFACEINPUT_MEMBER_DRY_RUN, *val)?;
  165    165   
        }
  166    166   
        if let Some(ref val) = self.network_interface_id {
  167    167   
            ser.write_string(&ATTACHNETWORKINTERFACEINPUT_MEMBER_NETWORK_INTERFACE_ID, val)?;
  168    168   
        }
  169    169   
        if let Some(ref val) = self.instance_id {
  170    170   
            ser.write_string(&ATTACHNETWORKINTERFACEINPUT_MEMBER_INSTANCE_ID, val)?;
  171    171   
        }
  172    172   
        if let Some(ref val) = self.device_index {
  173    173   
            ser.write_integer(&ATTACHNETWORKINTERFACEINPUT_MEMBER_DEVICE_INDEX, *val)?;
  174    174   
        }
  175    175   
        Ok(())
  176    176   
    }
  177    177   
}
  178    178   
impl AttachNetworkInterfaceInput {
  179    179   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  180         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  181         -
        deserializer: &mut D,
         180  +
    pub fn deserialize(
         181  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  182    182   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  183    183   
        #[allow(unused_variables, unused_mut)]
  184    184   
        let mut builder = Self::builder();
  185    185   
        #[allow(
  186    186   
            unused_variables,
  187    187   
            unreachable_code,
  188    188   
            clippy::single_match,
  189    189   
            clippy::match_single_binding,
  190    190   
            clippy::diverging_sub_expression
  191    191   
        )]
  192         -
        deserializer.read_struct(&ATTACHNETWORKINTERFACEINPUT_SCHEMA, (), |_, member, deser| {
         192  +
        deserializer.read_struct(&ATTACHNETWORKINTERFACEINPUT_SCHEMA, &mut |member, deser| {
  193    193   
            match member.member_index() {
  194    194   
                Some(0) => {
  195    195   
                    builder.network_card_index = Some(deser.read_integer(member)?);
  196    196   
                }
  197    197   
                Some(1) => {
  198    198   
                    builder.ena_srd_specification = Some(crate::types::EnaSrdSpecification::deserialize(deser)?);
  199    199   
                }
  200    200   
                Some(2) => {
  201    201   
                    builder.ena_queue_count = Some(deser.read_integer(member)?);
  202    202   
                }
  203    203   
                Some(3) => {
  204    204   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  205    205   
                }
  206    206   
                Some(4) => {
  207    207   
                    builder.network_interface_id = Some(deser.read_string(member)?);
  208    208   
                }
  209    209   
                Some(5) => {
  210    210   
                    builder.instance_id = Some(deser.read_string(member)?);
  211    211   
                }
  212    212   
                Some(6) => {
  213    213   
                    builder.device_index = Some(deser.read_integer(member)?);
  214    214   
                }
  215    215   
                _ => {}
  216    216   
            }
  217    217   
            Ok(())
  218    218   
        })?;
         219  +
        builder.network_interface_id = builder.network_interface_id.or(Some(String::new()));
         220  +
        builder.instance_id = builder.instance_id.or(Some(String::new()));
         221  +
        builder.device_index = builder.device_index.or(Some(0i32));
  219    222   
        builder
  220    223   
            .build()
  221    224   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  222    225   
    }
  223    226   
}
         227  +
impl AttachNetworkInterfaceInput {
         228  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         229  +
    pub fn deserialize_with_response(
         230  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         231  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         232  +
        _status: u16,
         233  +
        _body: &[u8],
         234  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         235  +
        Self::deserialize(deserializer)
         236  +
    }
         237  +
}
  224    238   
impl AttachNetworkInterfaceInput {
  225    239   
    /// Creates a new builder-style object to manufacture [`AttachNetworkInterfaceInput`](crate::operation::attach_network_interface::AttachNetworkInterfaceInput).
  226    240   
    pub fn builder() -> crate::operation::attach_network_interface::builders::AttachNetworkInterfaceInputBuilder {
  227    241   
        crate::operation::attach_network_interface::builders::AttachNetworkInterfaceInputBuilder::default()
  228    242   
    }
  229    243   
}
  230    244   
  231    245   
/// A builder for [`AttachNetworkInterfaceInput`](crate::operation::attach_network_interface::AttachNetworkInterfaceInput).
  232    246   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  233    247   
#[non_exhaustive]

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/attach_verified_access_trust_provider.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 `AttachVerifiedAccessTrustProvider`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct AttachVerifiedAccessTrustProvider;
    6      6   
impl AttachVerifiedAccessTrustProvider {
    7      7   
    /// Creates a new `AttachVerifiedAccessTrustProvider`
    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::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderOutput::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::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -133,139 +195,202 @@
  153    159   
                crate::operation::attach_verified_access_trust_provider::AttachVerifiedAccessTrustProviderError,
  154    160   
            >::new());
  155    161   
  156    162   
        ::std::borrow::Cow::Owned(rcb)
  157    163   
    }
  158    164   
}
  159    165   
  160    166   
#[derive(Debug)]
  161    167   
struct AttachVerifiedAccessTrustProviderResponseDeserializer;
  162    168   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for AttachVerifiedAccessTrustProviderResponseDeserializer {
  163         -
    fn deserialize_nonstreaming(
         169  +
    fn deserialize_nonstreaming_with_config(
  164    170   
        &self,
  165    171   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         172  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  166    173   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  167    174   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  168    175   
        let headers = response.headers();
  169    176   
        let body = response.body().bytes().expect("body loaded");
  170    177   
        #[allow(unused_mut)]
  171    178   
        let mut force_error = false;
  172    179   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  173    180   
        let parse_result = if !success && status != 200 || force_error {
  174    181   
            crate::protocol_serde::shape_attach_verified_access_trust_provider::de_attach_verified_access_trust_provider_http_error(
  175    182   
                status, headers, body,

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

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

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

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

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

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

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

@@ -15,15 +180,194 @@
   35     35   
    "com.amazonaws.ec2.synthetic",
   36     36   
    "AttachVolumeInput",
   37     37   
);
   38     38   
static ATTACHVOLUMEINPUT_MEMBER_DEVICE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.ec2.synthetic#AttachVolumeInput$Device",
   41     41   
        "com.amazonaws.ec2.synthetic",
   42     42   
        "AttachVolumeInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "device",
          45  +
    "Device",
   46     46   
    0,
   47     47   
);
   48     48   
static ATTACHVOLUMEINPUT_MEMBER_INSTANCE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   49     49   
    ::aws_smithy_schema::ShapeId::from_static(
   50     50   
        "com.amazonaws.ec2.synthetic#AttachVolumeInput$InstanceId",
   51     51   
        "com.amazonaws.ec2.synthetic",
   52     52   
        "AttachVolumeInput",
   53     53   
    ),
   54     54   
    ::aws_smithy_schema::ShapeType::String,
   55         -
    "instance_id",
          55  +
    "InstanceId",
   56     56   
    1,
   57     57   
);
   58     58   
static ATTACHVOLUMEINPUT_MEMBER_VOLUME_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   59     59   
    ::aws_smithy_schema::ShapeId::from_static(
   60     60   
        "com.amazonaws.ec2.synthetic#AttachVolumeInput$VolumeId",
   61     61   
        "com.amazonaws.ec2.synthetic",
   62     62   
        "AttachVolumeInput",
   63     63   
    ),
   64     64   
    ::aws_smithy_schema::ShapeType::String,
   65         -
    "volume_id",
          65  +
    "VolumeId",
   66     66   
    2,
   67     67   
);
   68     68   
static ATTACHVOLUMEINPUT_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#AttachVolumeInput$DryRun",
   71     71   
        "com.amazonaws.ec2.synthetic",
   72     72   
        "AttachVolumeInput",
   73     73   
    ),
   74     74   
    ::aws_smithy_schema::ShapeType::Boolean,
   75         -
    "dry_run",
          75  +
    "DryRun",
   76     76   
    3,
   77     77   
)
   78     78   
.with_xml_name("dryRun");
   79     79   
static ATTACHVOLUMEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   80     80   
    ATTACHVOLUMEINPUT_SCHEMA_ID,
   81     81   
    ::aws_smithy_schema::ShapeType::Structure,
   82     82   
    &[
   83     83   
        &ATTACHVOLUMEINPUT_MEMBER_DEVICE,
   84     84   
        &ATTACHVOLUMEINPUT_MEMBER_INSTANCE_ID,
   85     85   
        &ATTACHVOLUMEINPUT_MEMBER_VOLUME_ID,
   86     86   
        &ATTACHVOLUMEINPUT_MEMBER_DRY_RUN,
   87     87   
    ],
   88     88   
);
   89     89   
impl AttachVolumeInput {
   90     90   
    /// The schema for this shape.
   91     91   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ATTACHVOLUMEINPUT_SCHEMA;
   92     92   
}
   93     93   
impl ::aws_smithy_schema::serde::SerializableStruct for AttachVolumeInput {
   94     94   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   95     95   
    fn serialize_members(
   96     96   
        &self,
   97     97   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   98     98   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   99     99   
        if let Some(ref val) = self.device {
  100    100   
            ser.write_string(&ATTACHVOLUMEINPUT_MEMBER_DEVICE, val)?;
  101    101   
        }
  102    102   
        if let Some(ref val) = self.instance_id {
  103    103   
            ser.write_string(&ATTACHVOLUMEINPUT_MEMBER_INSTANCE_ID, val)?;
  104    104   
        }
  105    105   
        if let Some(ref val) = self.volume_id {
  106    106   
            ser.write_string(&ATTACHVOLUMEINPUT_MEMBER_VOLUME_ID, val)?;
  107    107   
        }
  108    108   
        if let Some(ref val) = self.dry_run {
  109    109   
            ser.write_boolean(&ATTACHVOLUMEINPUT_MEMBER_DRY_RUN, *val)?;
  110    110   
        }
  111    111   
        Ok(())
  112    112   
    }
  113    113   
}
  114    114   
impl AttachVolumeInput {
  115    115   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  116         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  117         -
        deserializer: &mut D,
         116  +
    pub fn deserialize(
         117  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  118    118   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  119    119   
        #[allow(unused_variables, unused_mut)]
  120    120   
        let mut builder = Self::builder();
  121    121   
        #[allow(
  122    122   
            unused_variables,
  123    123   
            unreachable_code,
  124    124   
            clippy::single_match,
  125    125   
            clippy::match_single_binding,
  126    126   
            clippy::diverging_sub_expression
  127    127   
        )]
  128         -
        deserializer.read_struct(&ATTACHVOLUMEINPUT_SCHEMA, (), |_, member, deser| {
         128  +
        deserializer.read_struct(&ATTACHVOLUMEINPUT_SCHEMA, &mut |member, deser| {
  129    129   
            match member.member_index() {
  130    130   
                Some(0) => {
  131    131   
                    builder.device = Some(deser.read_string(member)?);
  132    132   
                }
  133    133   
                Some(1) => {
  134    134   
                    builder.instance_id = Some(deser.read_string(member)?);
  135    135   
                }
  136    136   
                Some(2) => {
  137    137   
                    builder.volume_id = Some(deser.read_string(member)?);
  138    138   
                }
  139    139   
                Some(3) => {
  140    140   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  141    141   
                }
  142    142   
                _ => {}
  143    143   
            }
  144    144   
            Ok(())
  145    145   
        })?;
         146  +
        builder.device = builder.device.or(Some(String::new()));
         147  +
        builder.instance_id = builder.instance_id.or(Some(String::new()));
         148  +
        builder.volume_id = builder.volume_id.or(Some(String::new()));
  146    149   
        builder
  147    150   
            .build()
  148    151   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  149    152   
    }
  150    153   
}
         154  +
impl AttachVolumeInput {
         155  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         156  +
    pub fn deserialize_with_response(
         157  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         158  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         159  +
        _status: u16,
         160  +
        _body: &[u8],
         161  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         162  +
        Self::deserialize(deserializer)
         163  +
    }
         164  +
}
  151    165   
impl AttachVolumeInput {
  152    166   
    /// Creates a new builder-style object to manufacture [`AttachVolumeInput`](crate::operation::attach_volume::AttachVolumeInput).
  153    167   
    pub fn builder() -> crate::operation::attach_volume::builders::AttachVolumeInputBuilder {
  154    168   
        crate::operation::attach_volume::builders::AttachVolumeInputBuilder::default()
  155    169   
    }
  156    170   
}
  157    171   
  158    172   
/// A builder for [`AttachVolumeInput`](crate::operation::attach_volume::AttachVolumeInput).
  159    173   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  160    174   
#[non_exhaustive]

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

@@ -47,47 +253,319 @@
   67     67   
    "com.amazonaws.ec2.synthetic",
   68     68   
    "AttachVolumeOutput",
   69     69   
);
   70     70   
static ATTACHVOLUMEOUTPUT_MEMBER_DELETE_ON_TERMINATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   71     71   
    ::aws_smithy_schema::ShapeId::from_static(
   72     72   
        "com.amazonaws.ec2.synthetic#AttachVolumeOutput$DeleteOnTermination",
   73     73   
        "com.amazonaws.ec2.synthetic",
   74     74   
        "AttachVolumeOutput",
   75     75   
    ),
   76     76   
    ::aws_smithy_schema::ShapeType::Boolean,
   77         -
    "delete_on_termination",
          77  +
    "DeleteOnTermination",
   78     78   
    0,
   79     79   
)
   80     80   
.with_xml_name("deleteOnTermination");
   81     81   
static ATTACHVOLUMEOUTPUT_MEMBER_ASSOCIATED_RESOURCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   82     82   
    ::aws_smithy_schema::ShapeId::from_static(
   83     83   
        "com.amazonaws.ec2.synthetic#AttachVolumeOutput$AssociatedResource",
   84     84   
        "com.amazonaws.ec2.synthetic",
   85     85   
        "AttachVolumeOutput",
   86     86   
    ),
   87     87   
    ::aws_smithy_schema::ShapeType::String,
   88         -
    "associated_resource",
          88  +
    "AssociatedResource",
   89     89   
    1,
   90     90   
)
   91     91   
.with_xml_name("associatedResource");
   92     92   
static ATTACHVOLUMEOUTPUT_MEMBER_INSTANCE_OWNING_SERVICE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   93     93   
    ::aws_smithy_schema::ShapeId::from_static(
   94     94   
        "com.amazonaws.ec2.synthetic#AttachVolumeOutput$InstanceOwningService",
   95     95   
        "com.amazonaws.ec2.synthetic",
   96     96   
        "AttachVolumeOutput",
   97     97   
    ),
   98     98   
    ::aws_smithy_schema::ShapeType::String,
   99         -
    "instance_owning_service",
          99  +
    "InstanceOwningService",
  100    100   
    2,
  101    101   
)
  102    102   
.with_xml_name("instanceOwningService");
  103    103   
static ATTACHVOLUMEOUTPUT_MEMBER_VOLUME_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  104    104   
    ::aws_smithy_schema::ShapeId::from_static(
  105    105   
        "com.amazonaws.ec2.synthetic#AttachVolumeOutput$VolumeId",
  106    106   
        "com.amazonaws.ec2.synthetic",
  107    107   
        "AttachVolumeOutput",
  108    108   
    ),
  109    109   
    ::aws_smithy_schema::ShapeType::String,
  110         -
    "volume_id",
         110  +
    "VolumeId",
  111    111   
    3,
  112    112   
)
  113    113   
.with_xml_name("volumeId");
  114    114   
static ATTACHVOLUMEOUTPUT_MEMBER_INSTANCE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  115    115   
    ::aws_smithy_schema::ShapeId::from_static(
  116    116   
        "com.amazonaws.ec2.synthetic#AttachVolumeOutput$InstanceId",
  117    117   
        "com.amazonaws.ec2.synthetic",
  118    118   
        "AttachVolumeOutput",
  119    119   
    ),
  120    120   
    ::aws_smithy_schema::ShapeType::String,
  121         -
    "instance_id",
         121  +
    "InstanceId",
  122    122   
    4,
  123    123   
)
  124    124   
.with_xml_name("instanceId");
  125    125   
static ATTACHVOLUMEOUTPUT_MEMBER_DEVICE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  126    126   
    ::aws_smithy_schema::ShapeId::from_static(
  127    127   
        "com.amazonaws.ec2.synthetic#AttachVolumeOutput$Device",
  128    128   
        "com.amazonaws.ec2.synthetic",
  129    129   
        "AttachVolumeOutput",
  130    130   
    ),
  131    131   
    ::aws_smithy_schema::ShapeType::String,
  132         -
    "device",
         132  +
    "Device",
  133    133   
    5,
  134    134   
)
  135    135   
.with_xml_name("device");
  136    136   
static ATTACHVOLUMEOUTPUT_MEMBER_STATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  137    137   
    ::aws_smithy_schema::ShapeId::from_static(
  138    138   
        "com.amazonaws.ec2.synthetic#AttachVolumeOutput$State",
  139    139   
        "com.amazonaws.ec2.synthetic",
  140    140   
        "AttachVolumeOutput",
  141    141   
    ),
  142    142   
    ::aws_smithy_schema::ShapeType::String,
  143         -
    "state",
         143  +
    "State",
  144    144   
    6,
  145    145   
)
  146    146   
.with_xml_name("status");
  147    147   
static ATTACHVOLUMEOUTPUT_MEMBER_ATTACH_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  148    148   
    ::aws_smithy_schema::ShapeId::from_static(
  149    149   
        "com.amazonaws.ec2.synthetic#AttachVolumeOutput$AttachTime",
  150    150   
        "com.amazonaws.ec2.synthetic",
  151    151   
        "AttachVolumeOutput",
  152    152   
    ),
  153    153   
    ::aws_smithy_schema::ShapeType::Timestamp,
  154         -
    "attach_time",
         154  +
    "AttachTime",
  155    155   
    7,
  156    156   
)
  157    157   
.with_xml_name("attachTime");
         158  +
static ATTACHVOLUMEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         159  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         160  +
    ::aws_smithy_schema::ShapeType::String,
         161  +
    "request_id",
         162  +
    8,
         163  +
)
         164  +
.with_http_header("x-amzn-requestid");
  158    165   
static ATTACHVOLUMEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  159    166   
    ATTACHVOLUMEOUTPUT_SCHEMA_ID,
  160    167   
    ::aws_smithy_schema::ShapeType::Structure,
  161    168   
    &[
  162    169   
        &ATTACHVOLUMEOUTPUT_MEMBER_DELETE_ON_TERMINATION,
  163    170   
        &ATTACHVOLUMEOUTPUT_MEMBER_ASSOCIATED_RESOURCE,
  164    171   
        &ATTACHVOLUMEOUTPUT_MEMBER_INSTANCE_OWNING_SERVICE,
  165    172   
        &ATTACHVOLUMEOUTPUT_MEMBER_VOLUME_ID,
  166    173   
        &ATTACHVOLUMEOUTPUT_MEMBER_INSTANCE_ID,
  167    174   
        &ATTACHVOLUMEOUTPUT_MEMBER_DEVICE,
  168    175   
        &ATTACHVOLUMEOUTPUT_MEMBER_STATE,
  169    176   
        &ATTACHVOLUMEOUTPUT_MEMBER_ATTACH_TIME,
         177  +
        &ATTACHVOLUMEOUTPUT_MEMBER__REQUEST_ID,
  170    178   
    ],
  171    179   
);
  172    180   
impl AttachVolumeOutput {
  173    181   
    /// The schema for this shape.
  174    182   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ATTACHVOLUMEOUTPUT_SCHEMA;
  175    183   
}
  176    184   
impl ::aws_smithy_schema::serde::SerializableStruct for AttachVolumeOutput {
  177    185   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  178    186   
    fn serialize_members(
  179    187   
        &self,
  180    188   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  181    189   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  182    190   
        if let Some(ref val) = self.delete_on_termination {
  183    191   
            ser.write_boolean(&ATTACHVOLUMEOUTPUT_MEMBER_DELETE_ON_TERMINATION, *val)?;
  184    192   
        }
  185    193   
        if let Some(ref val) = self.associated_resource {
  186    194   
            ser.write_string(&ATTACHVOLUMEOUTPUT_MEMBER_ASSOCIATED_RESOURCE, val)?;
  187    195   
        }
  188    196   
        if let Some(ref val) = self.instance_owning_service {
  189    197   
            ser.write_string(&ATTACHVOLUMEOUTPUT_MEMBER_INSTANCE_OWNING_SERVICE, val)?;
  190    198   
        }
  191    199   
        if let Some(ref val) = self.volume_id {
  192    200   
            ser.write_string(&ATTACHVOLUMEOUTPUT_MEMBER_VOLUME_ID, val)?;
  193    201   
        }
  194    202   
        if let Some(ref val) = self.instance_id {
  195    203   
            ser.write_string(&ATTACHVOLUMEOUTPUT_MEMBER_INSTANCE_ID, val)?;
  196    204   
        }
  197    205   
        if let Some(ref val) = self.device {
  198    206   
            ser.write_string(&ATTACHVOLUMEOUTPUT_MEMBER_DEVICE, val)?;
  199    207   
        }
  200    208   
        if let Some(ref val) = self.state {
  201    209   
            ser.write_string(&ATTACHVOLUMEOUTPUT_MEMBER_STATE, val.as_str())?;
  202    210   
        }
  203    211   
        if let Some(ref val) = self.attach_time {
  204    212   
            ser.write_timestamp(&ATTACHVOLUMEOUTPUT_MEMBER_ATTACH_TIME, val)?;
  205    213   
        }
  206    214   
        Ok(())
  207    215   
    }
  208    216   
}
  209    217   
impl AttachVolumeOutput {
  210    218   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  211         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  212         -
        deserializer: &mut D,
         219  +
    pub fn deserialize(
         220  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  213    221   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  214    222   
        #[allow(unused_variables, unused_mut)]
  215    223   
        let mut builder = Self::builder();
  216    224   
        #[allow(
  217    225   
            unused_variables,
  218    226   
            unreachable_code,
  219    227   
            clippy::single_match,
  220    228   
            clippy::match_single_binding,
  221    229   
            clippy::diverging_sub_expression
  222    230   
        )]
  223         -
        deserializer.read_struct(&ATTACHVOLUMEOUTPUT_SCHEMA, (), |_, member, deser| {
         231  +
        deserializer.read_struct(&ATTACHVOLUMEOUTPUT_SCHEMA, &mut |member, deser| {
         232  +
            match member.member_index() {
         233  +
                Some(0) => {
         234  +
                    builder.delete_on_termination = Some(deser.read_boolean(member)?);
         235  +
                }
         236  +
                Some(1) => {
         237  +
                    builder.associated_resource = Some(deser.read_string(member)?);
         238  +
                }
         239  +
                Some(2) => {
         240  +
                    builder.instance_owning_service = Some(deser.read_string(member)?);
         241  +
                }
         242  +
                Some(3) => {
         243  +
                    builder.volume_id = Some(deser.read_string(member)?);
         244  +
                }
         245  +
                Some(4) => {
         246  +
                    builder.instance_id = Some(deser.read_string(member)?);
         247  +
                }
         248  +
                Some(5) => {
         249  +
                    builder.device = Some(deser.read_string(member)?);
         250  +
                }
         251  +
                Some(6) => {
         252  +
                    builder.state = Some(crate::types::VolumeAttachmentState::from(deser.read_string(member)?.as_str()));
         253  +
                }
         254  +
                Some(7) => {
         255  +
                    builder.attach_time = Some(deser.read_timestamp(member)?);
         256  +
                }
         257  +
                Some(8) => {
         258  +
                    builder._request_id = Some(deser.read_string(member)?);
         259  +
                }
         260  +
                _ => {}
         261  +
            }
         262  +
            Ok(())
         263  +
        })?;
         264  +
        Ok(builder.build())
         265  +
    }
         266  +
}
         267  +
impl AttachVolumeOutput {
         268  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         269  +
    /// Header-bound members are read directly from headers, avoiding runtime
         270  +
    /// member iteration overhead. Body members are read via the deserializer.
         271  +
    pub fn deserialize_with_response(
         272  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         273  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         274  +
        _status: u16,
         275  +
        _body: &[u8],
         276  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         277  +
        #[allow(unused_variables, unused_mut)]
         278  +
        let mut builder = Self::builder();
         279  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         280  +
            builder._request_id = Some(val.to_string());
         281  +
        }
         282  +
        #[allow(
         283  +
            unused_variables,
         284  +
            unreachable_code,
         285  +
            clippy::single_match,
         286  +
            clippy::match_single_binding,
         287  +
            clippy::diverging_sub_expression
         288  +
        )]
         289  +
        deserializer.read_struct(&ATTACHVOLUMEOUTPUT_SCHEMA, &mut |member, deser| {
  224    290   
            match member.member_index() {
  225    291   
                Some(0) => {
  226    292   
                    builder.delete_on_termination = Some(deser.read_boolean(member)?);
  227    293   
                }
  228    294   
                Some(1) => {
  229    295   
                    builder.associated_resource = Some(deser.read_string(member)?);
  230    296   
                }
  231    297   
                Some(2) => {
  232    298   
                    builder.instance_owning_service = Some(deser.read_string(member)?);
  233    299   
                }

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

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

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

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

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

@@ -1,1 +98,142 @@
   19     19   
    "com.amazonaws.ec2.synthetic",
   20     20   
    "AttachVpnGatewayOutput",
   21     21   
);
   22     22   
static ATTACHVPNGATEWAYOUTPUT_MEMBER_VPC_ATTACHMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   23     23   
    ::aws_smithy_schema::ShapeId::from_static(
   24     24   
        "com.amazonaws.ec2.synthetic#AttachVpnGatewayOutput$VpcAttachment",
   25     25   
        "com.amazonaws.ec2.synthetic",
   26     26   
        "AttachVpnGatewayOutput",
   27     27   
    ),
   28     28   
    ::aws_smithy_schema::ShapeType::Structure,
   29         -
    "vpc_attachment",
          29  +
    "VpcAttachment",
   30     30   
    0,
   31     31   
)
   32     32   
.with_xml_name("attachment");
          33  +
static ATTACHVPNGATEWAYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          34  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          35  +
    ::aws_smithy_schema::ShapeType::String,
          36  +
    "request_id",
          37  +
    1,
          38  +
)
          39  +
.with_http_header("x-amzn-requestid");
   33     40   
static ATTACHVPNGATEWAYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   34     41   
    ATTACHVPNGATEWAYOUTPUT_SCHEMA_ID,
   35     42   
    ::aws_smithy_schema::ShapeType::Structure,
   36         -
    &[&ATTACHVPNGATEWAYOUTPUT_MEMBER_VPC_ATTACHMENT],
          43  +
    &[&ATTACHVPNGATEWAYOUTPUT_MEMBER_VPC_ATTACHMENT, &ATTACHVPNGATEWAYOUTPUT_MEMBER__REQUEST_ID],
   37     44   
);
   38     45   
impl AttachVpnGatewayOutput {
   39     46   
    /// The schema for this shape.
   40     47   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ATTACHVPNGATEWAYOUTPUT_SCHEMA;
   41     48   
}
   42     49   
impl ::aws_smithy_schema::serde::SerializableStruct for AttachVpnGatewayOutput {
   43     50   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   44     51   
    fn serialize_members(
   45     52   
        &self,
   46     53   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   47     54   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   48     55   
        if let Some(ref val) = self.vpc_attachment {
   49     56   
            ser.write_struct(&ATTACHVPNGATEWAYOUTPUT_MEMBER_VPC_ATTACHMENT, val)?;
   50     57   
        }
   51     58   
        Ok(())
   52     59   
    }
   53     60   
}
   54     61   
impl AttachVpnGatewayOutput {
   55     62   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   56         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   57         -
        deserializer: &mut D,
          63  +
    pub fn deserialize(
          64  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   58     65   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   59     66   
        #[allow(unused_variables, unused_mut)]
   60     67   
        let mut builder = Self::builder();
   61     68   
        #[allow(
   62     69   
            unused_variables,
   63     70   
            unreachable_code,
   64     71   
            clippy::single_match,
   65     72   
            clippy::match_single_binding,
   66     73   
            clippy::diverging_sub_expression
   67     74   
        )]
   68         -
        deserializer.read_struct(&ATTACHVPNGATEWAYOUTPUT_SCHEMA, (), |_, member, deser| {
          75  +
        deserializer.read_struct(&ATTACHVPNGATEWAYOUTPUT_SCHEMA, &mut |member, deser| {
          76  +
            match member.member_index() {
          77  +
                Some(0) => {
          78  +
                    builder.vpc_attachment = Some(crate::types::VpcAttachment::deserialize(deser)?);
          79  +
                }
          80  +
                Some(1) => {
          81  +
                    builder._request_id = Some(deser.read_string(member)?);
          82  +
                }
          83  +
                _ => {}
          84  +
            }
          85  +
            Ok(())
          86  +
        })?;
          87  +
        Ok(builder.build())
          88  +
    }
          89  +
}
          90  +
impl AttachVpnGatewayOutput {
          91  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          92  +
    /// Header-bound members are read directly from headers, avoiding runtime
          93  +
    /// member iteration overhead. Body members are read via the deserializer.
          94  +
    pub fn deserialize_with_response(
          95  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          96  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          97  +
        _status: u16,
          98  +
        _body: &[u8],
          99  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         100  +
        #[allow(unused_variables, unused_mut)]
         101  +
        let mut builder = Self::builder();
         102  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         103  +
            builder._request_id = Some(val.to_string());
         104  +
        }
         105  +
        #[allow(
         106  +
            unused_variables,
         107  +
            unreachable_code,
         108  +
            clippy::single_match,
         109  +
            clippy::match_single_binding,
         110  +
            clippy::diverging_sub_expression
         111  +
        )]
         112  +
        deserializer.read_struct(&ATTACHVPNGATEWAYOUTPUT_SCHEMA, &mut |member, deser| {
   69    113   
            match member.member_index() {
   70    114   
                Some(0) => {
   71    115   
                    builder.vpc_attachment = Some(crate::types::VpcAttachment::deserialize(deser)?);
   72    116   
                }
   73    117   
                _ => {}
   74    118   
            }
   75    119   
            Ok(())
   76    120   
        })?;
   77    121   
        Ok(builder.build())
   78    122   
    }

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

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

@@ -33,33 +248,261 @@
   53     53   
    "com.amazonaws.ec2.synthetic",
   54     54   
    "AuthorizeClientVpnIngressInput",
   55     55   
);
   56     56   
static AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_CLIENT_VPN_ENDPOINT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   57     57   
    ::aws_smithy_schema::ShapeId::from_static(
   58     58   
        "com.amazonaws.ec2.synthetic#AuthorizeClientVpnIngressInput$ClientVpnEndpointId",
   59     59   
        "com.amazonaws.ec2.synthetic",
   60     60   
        "AuthorizeClientVpnIngressInput",
   61     61   
    ),
   62     62   
    ::aws_smithy_schema::ShapeType::String,
   63         -
    "client_vpn_endpoint_id",
          63  +
    "ClientVpnEndpointId",
   64     64   
    0,
   65     65   
);
   66     66   
static AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_TARGET_NETWORK_CIDR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   67     67   
    ::aws_smithy_schema::ShapeId::from_static(
   68     68   
        "com.amazonaws.ec2.synthetic#AuthorizeClientVpnIngressInput$TargetNetworkCidr",
   69     69   
        "com.amazonaws.ec2.synthetic",
   70     70   
        "AuthorizeClientVpnIngressInput",
   71     71   
    ),
   72     72   
    ::aws_smithy_schema::ShapeType::String,
   73         -
    "target_network_cidr",
          73  +
    "TargetNetworkCidr",
   74     74   
    1,
   75     75   
);
   76     76   
static AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_ACCESS_GROUP_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   77     77   
    ::aws_smithy_schema::ShapeId::from_static(
   78     78   
        "com.amazonaws.ec2.synthetic#AuthorizeClientVpnIngressInput$AccessGroupId",
   79     79   
        "com.amazonaws.ec2.synthetic",
   80     80   
        "AuthorizeClientVpnIngressInput",
   81     81   
    ),
   82     82   
    ::aws_smithy_schema::ShapeType::String,
   83         -
    "access_group_id",
          83  +
    "AccessGroupId",
   84     84   
    2,
   85     85   
);
   86     86   
static AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_AUTHORIZE_ALL_GROUPS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   87     87   
    ::aws_smithy_schema::ShapeId::from_static(
   88     88   
        "com.amazonaws.ec2.synthetic#AuthorizeClientVpnIngressInput$AuthorizeAllGroups",
   89     89   
        "com.amazonaws.ec2.synthetic",
   90     90   
        "AuthorizeClientVpnIngressInput",
   91     91   
    ),
   92     92   
    ::aws_smithy_schema::ShapeType::Boolean,
   93         -
    "authorize_all_groups",
          93  +
    "AuthorizeAllGroups",
   94     94   
    3,
   95     95   
);
   96     96   
static AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   97     97   
    ::aws_smithy_schema::ShapeId::from_static(
   98     98   
        "com.amazonaws.ec2.synthetic#AuthorizeClientVpnIngressInput$Description",
   99     99   
        "com.amazonaws.ec2.synthetic",
  100    100   
        "AuthorizeClientVpnIngressInput",
  101    101   
    ),
  102    102   
    ::aws_smithy_schema::ShapeType::String,
  103         -
    "description",
         103  +
    "Description",
  104    104   
    4,
  105    105   
);
  106    106   
static AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  107    107   
    ::aws_smithy_schema::ShapeId::from_static(
  108    108   
        "com.amazonaws.ec2.synthetic#AuthorizeClientVpnIngressInput$ClientToken",
  109    109   
        "com.amazonaws.ec2.synthetic",
  110    110   
        "AuthorizeClientVpnIngressInput",
  111    111   
    ),
  112    112   
    ::aws_smithy_schema::ShapeType::String,
  113         -
    "client_token",
         113  +
    "ClientToken",
  114    114   
    5,
  115    115   
);
  116    116   
static AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  117    117   
    ::aws_smithy_schema::ShapeId::from_static(
  118    118   
        "com.amazonaws.ec2.synthetic#AuthorizeClientVpnIngressInput$DryRun",
  119    119   
        "com.amazonaws.ec2.synthetic",
  120    120   
        "AuthorizeClientVpnIngressInput",
  121    121   
    ),
  122    122   
    ::aws_smithy_schema::ShapeType::Boolean,
  123         -
    "dry_run",
         123  +
    "DryRun",
  124    124   
    6,
  125    125   
);
  126    126   
static AUTHORIZECLIENTVPNINGRESSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  127    127   
    AUTHORIZECLIENTVPNINGRESSINPUT_SCHEMA_ID,
  128    128   
    ::aws_smithy_schema::ShapeType::Structure,
  129    129   
    &[
  130    130   
        &AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_CLIENT_VPN_ENDPOINT_ID,
  131    131   
        &AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_TARGET_NETWORK_CIDR,
  132    132   
        &AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_ACCESS_GROUP_ID,
  133    133   
        &AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_AUTHORIZE_ALL_GROUPS,
  134    134   
        &AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_DESCRIPTION,
  135    135   
        &AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_CLIENT_TOKEN,
  136    136   
        &AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_DRY_RUN,
  137    137   
    ],
  138    138   
);
  139    139   
impl AuthorizeClientVpnIngressInput {
  140    140   
    /// The schema for this shape.
  141    141   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &AUTHORIZECLIENTVPNINGRESSINPUT_SCHEMA;
  142    142   
}
  143    143   
impl ::aws_smithy_schema::serde::SerializableStruct for AuthorizeClientVpnIngressInput {
  144    144   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  145    145   
    fn serialize_members(
  146    146   
        &self,
  147    147   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  148    148   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  149    149   
        if let Some(ref val) = self.client_vpn_endpoint_id {
  150    150   
            ser.write_string(&AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_CLIENT_VPN_ENDPOINT_ID, val)?;
  151    151   
        }
  152    152   
        if let Some(ref val) = self.target_network_cidr {
  153    153   
            ser.write_string(&AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_TARGET_NETWORK_CIDR, val)?;
  154    154   
        }
  155    155   
        if let Some(ref val) = self.access_group_id {
  156    156   
            ser.write_string(&AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_ACCESS_GROUP_ID, val)?;
  157    157   
        }
  158    158   
        if let Some(ref val) = self.authorize_all_groups {
  159    159   
            ser.write_boolean(&AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_AUTHORIZE_ALL_GROUPS, *val)?;
  160    160   
        }
  161    161   
        if let Some(ref val) = self.description {
  162    162   
            ser.write_string(&AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_DESCRIPTION, val)?;
  163    163   
        }
  164    164   
        if let Some(ref val) = self.client_token {
  165    165   
            ser.write_string(&AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_CLIENT_TOKEN, val)?;
  166    166   
        }
  167    167   
        if let Some(ref val) = self.dry_run {
  168    168   
            ser.write_boolean(&AUTHORIZECLIENTVPNINGRESSINPUT_MEMBER_DRY_RUN, *val)?;
  169    169   
        }
  170    170   
        Ok(())
  171    171   
    }
  172    172   
}
  173    173   
impl AuthorizeClientVpnIngressInput {
  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(&AUTHORIZECLIENTVPNINGRESSINPUT_SCHEMA, (), |_, member, deser| {
         187  +
        deserializer.read_struct(&AUTHORIZECLIENTVPNINGRESSINPUT_SCHEMA, &mut |member, deser| {
  188    188   
            match member.member_index() {
  189    189   
                Some(0) => {
  190    190   
                    builder.client_vpn_endpoint_id = Some(deser.read_string(member)?);
  191    191   
                }
  192    192   
                Some(1) => {
  193    193   
                    builder.target_network_cidr = Some(deser.read_string(member)?);
  194    194   
                }
  195    195   
                Some(2) => {
  196    196   
                    builder.access_group_id = Some(deser.read_string(member)?);
  197    197   
                }
  198    198   
                Some(3) => {
  199    199   
                    builder.authorize_all_groups = Some(deser.read_boolean(member)?);
  200    200   
                }
  201    201   
                Some(4) => {
  202    202   
                    builder.description = Some(deser.read_string(member)?);
  203    203   
                }
  204    204   
                Some(5) => {
  205    205   
                    builder.client_token = Some(deser.read_string(member)?);
  206    206   
                }
  207    207   
                Some(6) => {
  208    208   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  209    209   
                }
  210    210   
                _ => {}
  211    211   
            }
  212    212   
            Ok(())
  213    213   
        })?;
         214  +
        builder.client_vpn_endpoint_id = builder.client_vpn_endpoint_id.or(Some(String::new()));
         215  +
        builder.target_network_cidr = builder.target_network_cidr.or(Some(String::new()));
  214    216   
        builder
  215    217   
            .build()
  216    218   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  217    219   
    }
  218    220   
}
         221  +
impl AuthorizeClientVpnIngressInput {
         222  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         223  +
    pub fn deserialize_with_response(
         224  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         225  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         226  +
        _status: u16,
         227  +
        _body: &[u8],
         228  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         229  +
        Self::deserialize(deserializer)
         230  +
    }
         231  +
}
  219    232   
impl AuthorizeClientVpnIngressInput {
  220    233   
    /// Creates a new builder-style object to manufacture [`AuthorizeClientVpnIngressInput`](crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressInput).
  221    234   
    pub fn builder() -> crate::operation::authorize_client_vpn_ingress::builders::AuthorizeClientVpnIngressInputBuilder {
  222    235   
        crate::operation::authorize_client_vpn_ingress::builders::AuthorizeClientVpnIngressInputBuilder::default()
  223    236   
    }
  224    237   
}
  225    238   
  226    239   
/// A builder for [`AuthorizeClientVpnIngressInput`](crate::operation::authorize_client_vpn_ingress::AuthorizeClientVpnIngressInput).
  227    240   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  228    241   
#[non_exhaustive]

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

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "AuthorizeClientVpnIngressOutput",
   20     20   
);
   21     21   
static AUTHORIZECLIENTVPNINGRESSOUTPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ec2.synthetic#AuthorizeClientVpnIngressOutput$Status",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "AuthorizeClientVpnIngressOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "status",
          28  +
    "Status",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_name("status");
          32  +
static AUTHORIZECLIENTVPNINGRESSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          33  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          34  +
    ::aws_smithy_schema::ShapeType::String,
          35  +
    "request_id",
          36  +
    1,
          37  +
)
          38  +
.with_http_header("x-amzn-requestid");
   32     39   
static AUTHORIZECLIENTVPNINGRESSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    AUTHORIZECLIENTVPNINGRESSOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&AUTHORIZECLIENTVPNINGRESSOUTPUT_MEMBER_STATUS],
          42  +
    &[
          43  +
        &AUTHORIZECLIENTVPNINGRESSOUTPUT_MEMBER_STATUS,
          44  +
        &AUTHORIZECLIENTVPNINGRESSOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl AuthorizeClientVpnIngressOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &AUTHORIZECLIENTVPNINGRESSOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for AuthorizeClientVpnIngressOutput {
   42     52   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   43     53   
    fn serialize_members(
   44     54   
        &self,
   45     55   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   46     56   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   47     57   
        if let Some(ref val) = self.status {
   48     58   
            ser.write_struct(&AUTHORIZECLIENTVPNINGRESSOUTPUT_MEMBER_STATUS, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl AuthorizeClientVpnIngressOutput {
   54     64   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   55         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   56         -
        deserializer: &mut D,
          65  +
    pub fn deserialize(
          66  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   57     67   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   58     68   
        #[allow(unused_variables, unused_mut)]
   59     69   
        let mut builder = Self::builder();
   60     70   
        #[allow(
   61     71   
            unused_variables,
   62     72   
            unreachable_code,
   63     73   
            clippy::single_match,
   64     74   
            clippy::match_single_binding,
   65     75   
            clippy::diverging_sub_expression
   66     76   
        )]
   67         -
        deserializer.read_struct(&AUTHORIZECLIENTVPNINGRESSOUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&AUTHORIZECLIENTVPNINGRESSOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.status = Some(crate::types::ClientVpnAuthorizationRuleStatus::deserialize(deser)?);
          81  +
                }
          82  +
                Some(1) => {
          83  +
                    builder._request_id = Some(deser.read_string(member)?);
          84  +
                }
          85  +
                _ => {}
          86  +
            }
          87  +
            Ok(())
          88  +
        })?;
          89  +
        Ok(builder.build())
          90  +
    }
          91  +
}
          92  +
impl AuthorizeClientVpnIngressOutput {
          93  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          94  +
    /// Header-bound members are read directly from headers, avoiding runtime
          95  +
    /// member iteration overhead. Body members are read via the deserializer.
          96  +
    pub fn deserialize_with_response(
          97  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          98  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          99  +
        _status: u16,
         100  +
        _body: &[u8],
         101  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         102  +
        #[allow(unused_variables, unused_mut)]
         103  +
        let mut builder = Self::builder();
         104  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         105  +
            builder._request_id = Some(val.to_string());
         106  +
        }
         107  +
        #[allow(
         108  +
            unused_variables,
         109  +
            unreachable_code,
         110  +
            clippy::single_match,
         111  +
            clippy::match_single_binding,
         112  +
            clippy::diverging_sub_expression
         113  +
        )]
         114  +
        deserializer.read_struct(&AUTHORIZECLIENTVPNINGRESSOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.status = Some(crate::types::ClientVpnAuthorizationRuleStatus::deserialize(deser)?);
   71    118   
                }
   72    119   
                _ => {}
   73    120   
            }
   74    121   
            Ok(())
   75    122   
        })?;
   76    123   
        Ok(builder.build())
   77    124   
    }