AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c

Files changed:

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/enable_volume_io/_enable_volume_io_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 EnableVolumeIoOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static ENABLEVOLUMEIOOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.ec2.synthetic#EnableVolumeIOOutput",
   10     10   
    "com.amazonaws.ec2.synthetic",
   11     11   
    "EnableVolumeIOOutput",
   12     12   
);
   13         -
static ENABLEVOLUMEIOOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(ENABLEVOLUMEIOOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static ENABLEVOLUMEIOOUTPUT_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 ENABLEVOLUMEIOOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    ENABLEVOLUMEIOOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&ENABLEVOLUMEIOOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl EnableVolumeIoOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ENABLEVOLUMEIOOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for EnableVolumeIoOutput {
   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 EnableVolumeIoOutput {
   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(&ENABLEVOLUMEIOOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&ENABLEVOLUMEIOOUTPUT_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 EnableVolumeIoOutput {
          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 EnableVolumeIoOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl EnableVolumeIoOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`EnableVolumeIoOutput`](crate::operation::enable_volume_io::EnableVolumeIoOutput).
   58     89   
    pub fn builder() -> crate::operation::enable_volume_io::builders::EnableVolumeIoOutputBuilder {
   59     90   
        crate::operation::enable_volume_io::builders::EnableVolumeIoOutputBuilder::default()
   60     91   
    }

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

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

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

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

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

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

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

@@ -1,1 +109,120 @@
   17     17   
    "com.amazonaws.ec2.synthetic",
   18     18   
    "EnableVpcClassicLinkDnsSupportInput",
   19     19   
);
   20     20   
static ENABLEVPCCLASSICLINKDNSSUPPORTINPUT_MEMBER_VPC_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   21     21   
    ::aws_smithy_schema::ShapeId::from_static(
   22     22   
        "com.amazonaws.ec2.synthetic#EnableVpcClassicLinkDnsSupportInput$VpcId",
   23     23   
        "com.amazonaws.ec2.synthetic",
   24     24   
        "EnableVpcClassicLinkDnsSupportInput",
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::String,
   27         -
    "vpc_id",
          27  +
    "VpcId",
   28     28   
    0,
   29     29   
)
   30     30   
.with_xml_name("VpcId");
   31     31   
static ENABLEVPCCLASSICLINKDNSSUPPORTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     32   
    ENABLEVPCCLASSICLINKDNSSUPPORTINPUT_SCHEMA_ID,
   33     33   
    ::aws_smithy_schema::ShapeType::Structure,
   34     34   
    &[&ENABLEVPCCLASSICLINKDNSSUPPORTINPUT_MEMBER_VPC_ID],
   35     35   
);
   36     36   
impl EnableVpcClassicLinkDnsSupportInput {
   37     37   
    /// The schema for this shape.
   38     38   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ENABLEVPCCLASSICLINKDNSSUPPORTINPUT_SCHEMA;
   39     39   
}
   40     40   
impl ::aws_smithy_schema::serde::SerializableStruct for EnableVpcClassicLinkDnsSupportInput {
   41     41   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   42     42   
    fn serialize_members(
   43     43   
        &self,
   44     44   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   45     45   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   46     46   
        if let Some(ref val) = self.vpc_id {
   47     47   
            ser.write_string(&ENABLEVPCCLASSICLINKDNSSUPPORTINPUT_MEMBER_VPC_ID, val)?;
   48     48   
        }
   49     49   
        Ok(())
   50     50   
    }
   51     51   
}
   52     52   
impl EnableVpcClassicLinkDnsSupportInput {
   53     53   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   54         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   55         -
        deserializer: &mut D,
          54  +
    pub fn deserialize(
          55  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   56     56   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   57     57   
        #[allow(unused_variables, unused_mut)]
   58     58   
        let mut builder = Self::builder();
   59     59   
        #[allow(
   60     60   
            unused_variables,
   61     61   
            unreachable_code,
   62     62   
            clippy::single_match,
   63     63   
            clippy::match_single_binding,
   64     64   
            clippy::diverging_sub_expression
   65     65   
        )]
   66         -
        deserializer.read_struct(&ENABLEVPCCLASSICLINKDNSSUPPORTINPUT_SCHEMA, (), |_, member, deser| {
          66  +
        deserializer.read_struct(&ENABLEVPCCLASSICLINKDNSSUPPORTINPUT_SCHEMA, &mut |member, deser| {
   67     67   
            match member.member_index() {
   68     68   
                Some(0) => {
   69     69   
                    builder.vpc_id = Some(deser.read_string(member)?);
   70     70   
                }
   71     71   
                _ => {}
   72     72   
            }
   73     73   
            Ok(())
   74     74   
        })?;
   75     75   
        builder
   76     76   
            .build()
   77     77   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   78     78   
    }
   79     79   
}
          80  +
impl EnableVpcClassicLinkDnsSupportInput {
          81  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          82  +
    pub fn deserialize_with_response(
          83  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          84  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          85  +
        _status: u16,
          86  +
        _body: &[u8],
          87  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          88  +
        Self::deserialize(deserializer)
          89  +
    }
          90  +
}
   80     91   
impl EnableVpcClassicLinkDnsSupportInput {
   81     92   
    /// Creates a new builder-style object to manufacture [`EnableVpcClassicLinkDnsSupportInput`](crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportInput).
   82     93   
    pub fn builder() -> crate::operation::enable_vpc_classic_link_dns_support::builders::EnableVpcClassicLinkDnsSupportInputBuilder {
   83     94   
        crate::operation::enable_vpc_classic_link_dns_support::builders::EnableVpcClassicLinkDnsSupportInputBuilder::default()
   84     95   
    }
   85     96   
}
   86     97   
   87     98   
/// A builder for [`EnableVpcClassicLinkDnsSupportInput`](crate::operation::enable_vpc_classic_link_dns_support::EnableVpcClassicLinkDnsSupportInput).
   88     99   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   89    100   
#[non_exhaustive]

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

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "EnableVpcClassicLinkDnsSupportOutput",
   20     20   
);
   21     21   
static ENABLEVPCCLASSICLINKDNSSUPPORTOUTPUT_MEMBER_RETURN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ec2.synthetic#EnableVpcClassicLinkDnsSupportOutput$Return",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "EnableVpcClassicLinkDnsSupportOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Boolean,
   28         -
    "r##return",
          28  +
    "Return",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_name("return");
          32  +
static ENABLEVPCCLASSICLINKDNSSUPPORTOUTPUT_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 ENABLEVPCCLASSICLINKDNSSUPPORTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    ENABLEVPCCLASSICLINKDNSSUPPORTOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&ENABLEVPCCLASSICLINKDNSSUPPORTOUTPUT_MEMBER_RETURN],
          42  +
    &[
          43  +
        &ENABLEVPCCLASSICLINKDNSSUPPORTOUTPUT_MEMBER_RETURN,
          44  +
        &ENABLEVPCCLASSICLINKDNSSUPPORTOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl EnableVpcClassicLinkDnsSupportOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ENABLEVPCCLASSICLINKDNSSUPPORTOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for EnableVpcClassicLinkDnsSupportOutput {
   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.r#return {
   48     58   
            ser.write_boolean(&ENABLEVPCCLASSICLINKDNSSUPPORTOUTPUT_MEMBER_RETURN, *val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl EnableVpcClassicLinkDnsSupportOutput {
   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(&ENABLEVPCCLASSICLINKDNSSUPPORTOUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&ENABLEVPCCLASSICLINKDNSSUPPORTOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.r#return = Some(deser.read_boolean(member)?);
          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 EnableVpcClassicLinkDnsSupportOutput {
          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(&ENABLEVPCCLASSICLINKDNSSUPPORTOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.r#return = Some(deser.read_boolean(member)?);
   71    118   
                }
   72    119   
                _ => {}
   73    120   
            }
   74    121   
            Ok(())
   75    122   
        })?;
   76    123   
        Ok(builder.build())
   77    124   
    }

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

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

@@ -4,4 +134,146 @@
   24     24   
    "ExportClientVpnClientCertificateRevocationListInput",
   25     25   
);
   26     26   
static EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTINPUT_MEMBER_CLIENT_VPN_ENDPOINT_ID: ::aws_smithy_schema::Schema =
   27     27   
    ::aws_smithy_schema::Schema::new_member(
   28     28   
        ::aws_smithy_schema::ShapeId::from_static(
   29     29   
            "com.amazonaws.ec2.synthetic#ExportClientVpnClientCertificateRevocationListInput$ClientVpnEndpointId",
   30     30   
            "com.amazonaws.ec2.synthetic",
   31     31   
            "ExportClientVpnClientCertificateRevocationListInput",
   32     32   
        ),
   33     33   
        ::aws_smithy_schema::ShapeType::String,
   34         -
        "client_vpn_endpoint_id",
          34  +
        "ClientVpnEndpointId",
   35     35   
        0,
   36     36   
    );
   37     37   
static EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   38     38   
    ::aws_smithy_schema::ShapeId::from_static(
   39     39   
        "com.amazonaws.ec2.synthetic#ExportClientVpnClientCertificateRevocationListInput$DryRun",
   40     40   
        "com.amazonaws.ec2.synthetic",
   41     41   
        "ExportClientVpnClientCertificateRevocationListInput",
   42     42   
    ),
   43     43   
    ::aws_smithy_schema::ShapeType::Boolean,
   44         -
    "dry_run",
          44  +
    "DryRun",
   45     45   
    1,
   46     46   
);
   47     47   
static EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   48     48   
    EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTINPUT_SCHEMA_ID,
   49     49   
    ::aws_smithy_schema::ShapeType::Structure,
   50     50   
    &[
   51     51   
        &EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTINPUT_MEMBER_CLIENT_VPN_ENDPOINT_ID,
   52     52   
        &EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTINPUT_MEMBER_DRY_RUN,
   53     53   
    ],
   54     54   
);
   55     55   
impl ExportClientVpnClientCertificateRevocationListInput {
   56     56   
    /// The schema for this shape.
   57     57   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTINPUT_SCHEMA;
   58     58   
}
   59     59   
impl ::aws_smithy_schema::serde::SerializableStruct for ExportClientVpnClientCertificateRevocationListInput {
   60     60   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   61     61   
    fn serialize_members(
   62     62   
        &self,
   63     63   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   64     64   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   65     65   
        if let Some(ref val) = self.client_vpn_endpoint_id {
   66     66   
            ser.write_string(&EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTINPUT_MEMBER_CLIENT_VPN_ENDPOINT_ID, val)?;
   67     67   
        }
   68     68   
        if let Some(ref val) = self.dry_run {
   69     69   
            ser.write_boolean(&EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTINPUT_MEMBER_DRY_RUN, *val)?;
   70     70   
        }
   71     71   
        Ok(())
   72     72   
    }
   73     73   
}
   74     74   
impl ExportClientVpnClientCertificateRevocationListInput {
   75     75   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   76         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   77         -
        deserializer: &mut D,
          76  +
    pub fn deserialize(
          77  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   78     78   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   79     79   
        #[allow(unused_variables, unused_mut)]
   80     80   
        let mut builder = Self::builder();
   81     81   
        #[allow(
   82     82   
            unused_variables,
   83     83   
            unreachable_code,
   84     84   
            clippy::single_match,
   85     85   
            clippy::match_single_binding,
   86     86   
            clippy::diverging_sub_expression
   87     87   
        )]
   88         -
        deserializer.read_struct(&EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTINPUT_SCHEMA, (), |_, member, deser| {
          88  +
        deserializer.read_struct(&EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTINPUT_SCHEMA, &mut |member, deser| {
   89     89   
            match member.member_index() {
   90     90   
                Some(0) => {
   91     91   
                    builder.client_vpn_endpoint_id = Some(deser.read_string(member)?);
   92     92   
                }
   93     93   
                Some(1) => {
   94     94   
                    builder.dry_run = Some(deser.read_boolean(member)?);
   95     95   
                }
   96     96   
                _ => {}
   97     97   
            }
   98     98   
            Ok(())
   99     99   
        })?;
         100  +
        builder.client_vpn_endpoint_id = builder.client_vpn_endpoint_id.or(Some(String::new()));
  100    101   
        builder
  101    102   
            .build()
  102    103   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  103    104   
    }
  104    105   
}
         106  +
impl ExportClientVpnClientCertificateRevocationListInput {
         107  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         108  +
    pub fn deserialize_with_response(
         109  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         110  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         111  +
        _status: u16,
         112  +
        _body: &[u8],
         113  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         114  +
        Self::deserialize(deserializer)
         115  +
    }
         116  +
}
  105    117   
impl ExportClientVpnClientCertificateRevocationListInput {
  106    118   
    /// Creates a new builder-style object to manufacture [`ExportClientVpnClientCertificateRevocationListInput`](crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListInput).
  107    119   
    pub fn builder(
  108    120   
    ) -> crate::operation::export_client_vpn_client_certificate_revocation_list::builders::ExportClientVpnClientCertificateRevocationListInputBuilder
  109    121   
    {
  110    122   
        crate::operation::export_client_vpn_client_certificate_revocation_list::builders::ExportClientVpnClientCertificateRevocationListInputBuilder::default()
  111    123   
    }
  112    124   
}
  113    125   
  114    126   
/// A builder for [`ExportClientVpnClientCertificateRevocationListInput`](crate::operation::export_client_vpn_client_certificate_revocation_list::ExportClientVpnClientCertificateRevocationListInput).

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

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

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

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

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

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

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "ExportClientVpnClientConfigurationOutput",
   20     20   
);
   21     21   
static EXPORTCLIENTVPNCLIENTCONFIGURATIONOUTPUT_MEMBER_CLIENT_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ec2.synthetic#ExportClientVpnClientConfigurationOutput$ClientConfiguration",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "ExportClientVpnClientConfigurationOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::String,
   28         -
    "client_configuration",
          28  +
    "ClientConfiguration",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_name("clientConfiguration");
          32  +
static EXPORTCLIENTVPNCLIENTCONFIGURATIONOUTPUT_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 EXPORTCLIENTVPNCLIENTCONFIGURATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    EXPORTCLIENTVPNCLIENTCONFIGURATIONOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&EXPORTCLIENTVPNCLIENTCONFIGURATIONOUTPUT_MEMBER_CLIENT_CONFIGURATION],
          42  +
    &[
          43  +
        &EXPORTCLIENTVPNCLIENTCONFIGURATIONOUTPUT_MEMBER_CLIENT_CONFIGURATION,
          44  +
        &EXPORTCLIENTVPNCLIENTCONFIGURATIONOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl ExportClientVpnClientConfigurationOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &EXPORTCLIENTVPNCLIENTCONFIGURATIONOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for ExportClientVpnClientConfigurationOutput {
   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.client_configuration {
   48     58   
            ser.write_string(&EXPORTCLIENTVPNCLIENTCONFIGURATIONOUTPUT_MEMBER_CLIENT_CONFIGURATION, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl ExportClientVpnClientConfigurationOutput {
   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,
          67  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          68  +
        #[allow(unused_variables, unused_mut)]
          69  +
        let mut builder = Self::builder();
          70  +
        #[allow(
          71  +
            unused_variables,
          72  +
            unreachable_code,
          73  +
            clippy::single_match,
          74  +
            clippy::match_single_binding,
          75  +
            clippy::diverging_sub_expression
          76  +
        )]
          77  +
        deserializer.read_struct(&EXPORTCLIENTVPNCLIENTCONFIGURATIONOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.client_configuration = Some(deser.read_string(member)?);
          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 ExportClientVpnClientConfigurationOutput {
          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],
   57    101   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   58    102   
        #[allow(unused_variables, unused_mut)]
   59    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  +
        }
   60    107   
        #[allow(
   61    108   
            unused_variables,
   62    109   
            unreachable_code,
   63    110   
            clippy::single_match,
   64    111   
            clippy::match_single_binding,
   65    112   
            clippy::diverging_sub_expression
   66    113   
        )]
   67         -
        deserializer.read_struct(&EXPORTCLIENTVPNCLIENTCONFIGURATIONOUTPUT_SCHEMA, (), |_, member, deser| {
         114  +
        deserializer.read_struct(&EXPORTCLIENTVPNCLIENTCONFIGURATIONOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.client_configuration = Some(deser.read_string(member)?);
   71    118   
                }
   72    119   
                _ => {}
   73    120   
            }
   74    121   
            Ok(())
   75    122   
        })?;
   76    123   
        Ok(builder.build())
   77    124   
    }

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