AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12

Files changed:

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

@@ -11,11 +158,170 @@
   31     31   
    "DeleteNetworkInterfacePermissionInput",
   32     32   
);
   33     33   
static DELETENETWORKINTERFACEPERMISSIONINPUT_MEMBER_NETWORK_INTERFACE_PERMISSION_ID: ::aws_smithy_schema::Schema =
   34     34   
    ::aws_smithy_schema::Schema::new_member(
   35     35   
        ::aws_smithy_schema::ShapeId::from_static(
   36     36   
            "com.amazonaws.ec2.synthetic#DeleteNetworkInterfacePermissionInput$NetworkInterfacePermissionId",
   37     37   
            "com.amazonaws.ec2.synthetic",
   38     38   
            "DeleteNetworkInterfacePermissionInput",
   39     39   
        ),
   40     40   
        ::aws_smithy_schema::ShapeType::String,
   41         -
        "network_interface_permission_id",
          41  +
        "NetworkInterfacePermissionId",
   42     42   
        0,
   43     43   
    );
   44     44   
static DELETENETWORKINTERFACEPERMISSIONINPUT_MEMBER_FORCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static(
   46     46   
        "com.amazonaws.ec2.synthetic#DeleteNetworkInterfacePermissionInput$Force",
   47     47   
        "com.amazonaws.ec2.synthetic",
   48     48   
        "DeleteNetworkInterfacePermissionInput",
   49     49   
    ),
   50     50   
    ::aws_smithy_schema::ShapeType::Boolean,
   51         -
    "force",
          51  +
    "Force",
   52     52   
    1,
   53     53   
);
   54     54   
static DELETENETWORKINTERFACEPERMISSIONINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   55     55   
    ::aws_smithy_schema::ShapeId::from_static(
   56     56   
        "com.amazonaws.ec2.synthetic#DeleteNetworkInterfacePermissionInput$DryRun",
   57     57   
        "com.amazonaws.ec2.synthetic",
   58     58   
        "DeleteNetworkInterfacePermissionInput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::Boolean,
   61         -
    "dry_run",
          61  +
    "DryRun",
   62     62   
    2,
   63     63   
);
   64     64   
static DELETENETWORKINTERFACEPERMISSIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   65     65   
    DELETENETWORKINTERFACEPERMISSIONINPUT_SCHEMA_ID,
   66     66   
    ::aws_smithy_schema::ShapeType::Structure,
   67     67   
    &[
   68     68   
        &DELETENETWORKINTERFACEPERMISSIONINPUT_MEMBER_NETWORK_INTERFACE_PERMISSION_ID,
   69     69   
        &DELETENETWORKINTERFACEPERMISSIONINPUT_MEMBER_FORCE,
   70     70   
        &DELETENETWORKINTERFACEPERMISSIONINPUT_MEMBER_DRY_RUN,
   71     71   
    ],
   72     72   
);
   73     73   
impl DeleteNetworkInterfacePermissionInput {
   74     74   
    /// The schema for this shape.
   75     75   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETENETWORKINTERFACEPERMISSIONINPUT_SCHEMA;
   76     76   
}
   77     77   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteNetworkInterfacePermissionInput {
   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.network_interface_permission_id {
   84     84   
            ser.write_string(&DELETENETWORKINTERFACEPERMISSIONINPUT_MEMBER_NETWORK_INTERFACE_PERMISSION_ID, val)?;
   85     85   
        }
   86     86   
        if let Some(ref val) = self.force {
   87     87   
            ser.write_boolean(&DELETENETWORKINTERFACEPERMISSIONINPUT_MEMBER_FORCE, *val)?;
   88     88   
        }
   89     89   
        if let Some(ref val) = self.dry_run {
   90     90   
            ser.write_boolean(&DELETENETWORKINTERFACEPERMISSIONINPUT_MEMBER_DRY_RUN, *val)?;
   91     91   
        }
   92     92   
        Ok(())
   93     93   
    }
   94     94   
}
   95     95   
impl DeleteNetworkInterfacePermissionInput {
   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(&DELETENETWORKINTERFACEPERMISSIONINPUT_SCHEMA, (), |_, member, deser| {
         109  +
        deserializer.read_struct(&DELETENETWORKINTERFACEPERMISSIONINPUT_SCHEMA, &mut |member, deser| {
  110    110   
            match member.member_index() {
  111    111   
                Some(0) => {
  112    112   
                    builder.network_interface_permission_id = Some(deser.read_string(member)?);
  113    113   
                }
  114    114   
                Some(1) => {
  115    115   
                    builder.force = Some(deser.read_boolean(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.network_interface_permission_id = builder.network_interface_permission_id.or(Some(String::new()));
  124    125   
        builder
  125    126   
            .build()
  126    127   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  127    128   
    }
  128    129   
}
         130  +
impl DeleteNetworkInterfacePermissionInput {
         131  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         132  +
    pub fn deserialize_with_response(
         133  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         134  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         135  +
        _status: u16,
         136  +
        _body: &[u8],
         137  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         138  +
        Self::deserialize(deserializer)
         139  +
    }
         140  +
}
  129    141   
impl DeleteNetworkInterfacePermissionInput {
  130    142   
    /// Creates a new builder-style object to manufacture [`DeleteNetworkInterfacePermissionInput`](crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionInput).
  131    143   
    pub fn builder() -> crate::operation::delete_network_interface_permission::builders::DeleteNetworkInterfacePermissionInputBuilder {
  132    144   
        crate::operation::delete_network_interface_permission::builders::DeleteNetworkInterfacePermissionInputBuilder::default()
  133    145   
    }
  134    146   
}
  135    147   
  136    148   
/// A builder for [`DeleteNetworkInterfacePermissionInput`](crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionInput).
  137    149   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  138    150   
#[non_exhaustive]

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

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

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

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

@@ -3,3 +132,144 @@
   23     23   
    "com.amazonaws.ec2.synthetic",
   24     24   
    "DeletePlacementGroupInput",
   25     25   
);
   26     26   
static DELETEPLACEMENTGROUPINPUT_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#DeletePlacementGroupInput$DryRun",
   29     29   
        "com.amazonaws.ec2.synthetic",
   30     30   
        "DeletePlacementGroupInput",
   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 DELETEPLACEMENTGROUPINPUT_MEMBER_GROUP_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   38     38   
    ::aws_smithy_schema::ShapeId::from_static(
   39     39   
        "com.amazonaws.ec2.synthetic#DeletePlacementGroupInput$GroupName",
   40     40   
        "com.amazonaws.ec2.synthetic",
   41     41   
        "DeletePlacementGroupInput",
   42     42   
    ),
   43     43   
    ::aws_smithy_schema::ShapeType::String,
   44         -
    "group_name",
          44  +
    "GroupName",
   45     45   
    1,
   46     46   
)
   47     47   
.with_xml_name("groupName");
   48     48   
static DELETEPLACEMENTGROUPINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    DELETEPLACEMENTGROUPINPUT_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[&DELETEPLACEMENTGROUPINPUT_MEMBER_DRY_RUN, &DELETEPLACEMENTGROUPINPUT_MEMBER_GROUP_NAME],
   52     52   
);
   53     53   
impl DeletePlacementGroupInput {
   54     54   
    /// The schema for this shape.
   55     55   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEPLACEMENTGROUPINPUT_SCHEMA;
   56     56   
}
   57     57   
impl ::aws_smithy_schema::serde::SerializableStruct for DeletePlacementGroupInput {
   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(&DELETEPLACEMENTGROUPINPUT_MEMBER_DRY_RUN, *val)?;
   65     65   
        }
   66     66   
        if let Some(ref val) = self.group_name {
   67     67   
            ser.write_string(&DELETEPLACEMENTGROUPINPUT_MEMBER_GROUP_NAME, val)?;
   68     68   
        }
   69     69   
        Ok(())
   70     70   
    }
   71     71   
}
   72     72   
impl DeletePlacementGroupInput {
   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(&DELETEPLACEMENTGROUPINPUT_SCHEMA, (), |_, member, deser| {
          86  +
        deserializer.read_struct(&DELETEPLACEMENTGROUPINPUT_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.group_name = Some(deser.read_string(member)?);
   93     93   
                }
   94     94   
                _ => {}
   95     95   
            }
   96     96   
            Ok(())
   97     97   
        })?;
          98  +
        builder.group_name = builder.group_name.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 DeletePlacementGroupInput {
         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 DeletePlacementGroupInput {
  104    116   
    /// Creates a new builder-style object to manufacture [`DeletePlacementGroupInput`](crate::operation::delete_placement_group::DeletePlacementGroupInput).
  105    117   
    pub fn builder() -> crate::operation::delete_placement_group::builders::DeletePlacementGroupInputBuilder {
  106    118   
        crate::operation::delete_placement_group::builders::DeletePlacementGroupInputBuilder::default()
  107    119   
    }
  108    120   
}
  109    121   
  110    122   
/// A builder for [`DeletePlacementGroupInput`](crate::operation::delete_placement_group::DeletePlacementGroupInput).
  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/delete_placement_group/_delete_placement_group_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 DeletePlacementGroupOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static DELETEPLACEMENTGROUPOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.ec2.synthetic#DeletePlacementGroupOutput",
   10     10   
    "com.amazonaws.ec2.synthetic",
   11     11   
    "DeletePlacementGroupOutput",
   12     12   
);
   13         -
static DELETEPLACEMENTGROUPOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(DELETEPLACEMENTGROUPOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static DELETEPLACEMENTGROUPOUTPUT_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 DELETEPLACEMENTGROUPOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    DELETEPLACEMENTGROUPOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&DELETEPLACEMENTGROUPOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl DeletePlacementGroupOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEPLACEMENTGROUPOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for DeletePlacementGroupOutput {
   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 DeletePlacementGroupOutput {
   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(&DELETEPLACEMENTGROUPOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&DELETEPLACEMENTGROUPOUTPUT_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 DeletePlacementGroupOutput {
          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 DeletePlacementGroupOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl DeletePlacementGroupOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`DeletePlacementGroupOutput`](crate::operation::delete_placement_group::DeletePlacementGroupOutput).
   58     89   
    pub fn builder() -> crate::operation::delete_placement_group::builders::DeletePlacementGroupOutputBuilder {
   59     90   
        crate::operation::delete_placement_group::builders::DeletePlacementGroupOutputBuilder::default()
   60     91   
    }

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

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

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

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

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "DeletePublicIpv4PoolOutput",
   20     20   
);
   21     21   
static DELETEPUBLICIPV4POOLOUTPUT_MEMBER_RETURN_VALUE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ec2.synthetic#DeletePublicIpv4PoolOutput$ReturnValue",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "DeletePublicIpv4PoolOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Boolean,
   28         -
    "return_value",
          28  +
    "ReturnValue",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_name("returnValue");
          32  +
static DELETEPUBLICIPV4POOLOUTPUT_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 DELETEPUBLICIPV4POOLOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    DELETEPUBLICIPV4POOLOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&DELETEPUBLICIPV4POOLOUTPUT_MEMBER_RETURN_VALUE],
          42  +
    &[
          43  +
        &DELETEPUBLICIPV4POOLOUTPUT_MEMBER_RETURN_VALUE,
          44  +
        &DELETEPUBLICIPV4POOLOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl DeletePublicIpv4PoolOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEPUBLICIPV4POOLOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for DeletePublicIpv4PoolOutput {
   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.return_value {
   48     58   
            ser.write_boolean(&DELETEPUBLICIPV4POOLOUTPUT_MEMBER_RETURN_VALUE, *val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl DeletePublicIpv4PoolOutput {
   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(&DELETEPUBLICIPV4POOLOUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&DELETEPUBLICIPV4POOLOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.return_value = 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 DeletePublicIpv4PoolOutput {
          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(&DELETEPUBLICIPV4POOLOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.return_value = 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/delete_queued_reserved_instances.rs

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `DeleteQueuedReservedInstances`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteQueuedReservedInstances;
    6      6   
impl DeleteQueuedReservedInstances {
    7      7   
    /// Creates a new `DeleteQueuedReservedInstances`
    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::delete_queued_reserved_instances::DeleteQueuedReservedInstancesInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesOutput::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::delete_queued_reserved_instances::DeleteQueuedReservedInstancesInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::delete_queued_reserved_instances::DeleteQueuedReservedInstancesError,
  139    145   
            >::new());
  140    146   
  141    147   
        ::std::borrow::Cow::Owned(rcb)
  142    148   
    }
  143    149   
}
  144    150   
  145    151   
#[derive(Debug)]
  146    152   
struct DeleteQueuedReservedInstancesResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteQueuedReservedInstancesResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         154  +
    fn deserialize_nonstreaming_with_config(
  149    155   
        &self,
  150    156   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         157  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    158   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    159   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153    160   
        let headers = response.headers();
  154    161   
        let body = response.body().bytes().expect("body loaded");
  155    162   
        #[allow(unused_mut)]
  156    163   
        let mut force_error = false;
  157    164   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158    165   
        let parse_result = if !success && status != 200 || force_error {
  159    166   
            crate::protocol_serde::shape_delete_queued_reserved_instances::de_delete_queued_reserved_instances_http_error(status, headers, body)
  160    167   
        } else {

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

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

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

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

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

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

@@ -21,21 +206,218 @@
   41     41   
    "com.amazonaws.ec2.synthetic",
   42     42   
    "DeleteRouteInput",
   43     43   
);
   44     44   
static DELETEROUTEINPUT_MEMBER_DESTINATION_PREFIX_LIST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static(
   46     46   
        "com.amazonaws.ec2.synthetic#DeleteRouteInput$DestinationPrefixListId",
   47     47   
        "com.amazonaws.ec2.synthetic",
   48     48   
        "DeleteRouteInput",
   49     49   
    ),
   50     50   
    ::aws_smithy_schema::ShapeType::String,
   51         -
    "destination_prefix_list_id",
          51  +
    "DestinationPrefixListId",
   52     52   
    0,
   53     53   
);
   54     54   
static DELETEROUTEINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   55     55   
    ::aws_smithy_schema::ShapeId::from_static(
   56     56   
        "com.amazonaws.ec2.synthetic#DeleteRouteInput$DryRun",
   57     57   
        "com.amazonaws.ec2.synthetic",
   58     58   
        "DeleteRouteInput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::Boolean,
   61         -
    "dry_run",
          61  +
    "DryRun",
   62     62   
    1,
   63     63   
)
   64     64   
.with_xml_name("dryRun");
   65     65   
static DELETEROUTEINPUT_MEMBER_ROUTE_TABLE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   66     66   
    ::aws_smithy_schema::ShapeId::from_static(
   67     67   
        "com.amazonaws.ec2.synthetic#DeleteRouteInput$RouteTableId",
   68     68   
        "com.amazonaws.ec2.synthetic",
   69     69   
        "DeleteRouteInput",
   70     70   
    ),
   71     71   
    ::aws_smithy_schema::ShapeType::String,
   72         -
    "route_table_id",
          72  +
    "RouteTableId",
   73     73   
    2,
   74     74   
)
   75     75   
.with_xml_name("routeTableId");
   76     76   
static DELETEROUTEINPUT_MEMBER_DESTINATION_CIDR_BLOCK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   77     77   
    ::aws_smithy_schema::ShapeId::from_static(
   78     78   
        "com.amazonaws.ec2.synthetic#DeleteRouteInput$DestinationCidrBlock",
   79     79   
        "com.amazonaws.ec2.synthetic",
   80     80   
        "DeleteRouteInput",
   81     81   
    ),
   82     82   
    ::aws_smithy_schema::ShapeType::String,
   83         -
    "destination_cidr_block",
          83  +
    "DestinationCidrBlock",
   84     84   
    3,
   85     85   
)
   86     86   
.with_xml_name("destinationCidrBlock");
   87     87   
static DELETEROUTEINPUT_MEMBER_DESTINATION_IPV6_CIDR_BLOCK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.ec2.synthetic#DeleteRouteInput$DestinationIpv6CidrBlock",
   90     90   
        "com.amazonaws.ec2.synthetic",
   91     91   
        "DeleteRouteInput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::String,
   94         -
    "destination_ipv6_cidr_block",
          94  +
    "DestinationIpv6CidrBlock",
   95     95   
    4,
   96     96   
)
   97     97   
.with_xml_name("destinationIpv6CidrBlock");
   98     98   
static DELETEROUTEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   99     99   
    DELETEROUTEINPUT_SCHEMA_ID,
  100    100   
    ::aws_smithy_schema::ShapeType::Structure,
  101    101   
    &[
  102    102   
        &DELETEROUTEINPUT_MEMBER_DESTINATION_PREFIX_LIST_ID,
  103    103   
        &DELETEROUTEINPUT_MEMBER_DRY_RUN,
  104    104   
        &DELETEROUTEINPUT_MEMBER_ROUTE_TABLE_ID,
  105    105   
        &DELETEROUTEINPUT_MEMBER_DESTINATION_CIDR_BLOCK,
  106    106   
        &DELETEROUTEINPUT_MEMBER_DESTINATION_IPV6_CIDR_BLOCK,
  107    107   
    ],
  108    108   
);
  109    109   
impl DeleteRouteInput {
  110    110   
    /// The schema for this shape.
  111    111   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEROUTEINPUT_SCHEMA;
  112    112   
}
  113    113   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteRouteInput {
  114    114   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  115    115   
    fn serialize_members(
  116    116   
        &self,
  117    117   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  118    118   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  119    119   
        if let Some(ref val) = self.destination_prefix_list_id {
  120    120   
            ser.write_string(&DELETEROUTEINPUT_MEMBER_DESTINATION_PREFIX_LIST_ID, val)?;
  121    121   
        }
  122    122   
        if let Some(ref val) = self.dry_run {
  123    123   
            ser.write_boolean(&DELETEROUTEINPUT_MEMBER_DRY_RUN, *val)?;
  124    124   
        }
  125    125   
        if let Some(ref val) = self.route_table_id {
  126    126   
            ser.write_string(&DELETEROUTEINPUT_MEMBER_ROUTE_TABLE_ID, val)?;
  127    127   
        }
  128    128   
        if let Some(ref val) = self.destination_cidr_block {
  129    129   
            ser.write_string(&DELETEROUTEINPUT_MEMBER_DESTINATION_CIDR_BLOCK, val)?;
  130    130   
        }
  131    131   
        if let Some(ref val) = self.destination_ipv6_cidr_block {
  132    132   
            ser.write_string(&DELETEROUTEINPUT_MEMBER_DESTINATION_IPV6_CIDR_BLOCK, val)?;
  133    133   
        }
  134    134   
        Ok(())
  135    135   
    }
  136    136   
}
  137    137   
impl DeleteRouteInput {
  138    138   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  139         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  140         -
        deserializer: &mut D,
         139  +
    pub fn deserialize(
         140  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  141    141   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  142    142   
        #[allow(unused_variables, unused_mut)]
  143    143   
        let mut builder = Self::builder();
  144    144   
        #[allow(
  145    145   
            unused_variables,
  146    146   
            unreachable_code,
  147    147   
            clippy::single_match,
  148    148   
            clippy::match_single_binding,
  149    149   
            clippy::diverging_sub_expression
  150    150   
        )]
  151         -
        deserializer.read_struct(&DELETEROUTEINPUT_SCHEMA, (), |_, member, deser| {
         151  +
        deserializer.read_struct(&DELETEROUTEINPUT_SCHEMA, &mut |member, deser| {
  152    152   
            match member.member_index() {
  153    153   
                Some(0) => {
  154    154   
                    builder.destination_prefix_list_id = Some(deser.read_string(member)?);
  155    155   
                }
  156    156   
                Some(1) => {
  157    157   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  158    158   
                }
  159    159   
                Some(2) => {
  160    160   
                    builder.route_table_id = Some(deser.read_string(member)?);
  161    161   
                }
  162    162   
                Some(3) => {
  163    163   
                    builder.destination_cidr_block = Some(deser.read_string(member)?);
  164    164   
                }
  165    165   
                Some(4) => {
  166    166   
                    builder.destination_ipv6_cidr_block = Some(deser.read_string(member)?);
  167    167   
                }
  168    168   
                _ => {}
  169    169   
            }
  170    170   
            Ok(())
  171    171   
        })?;
         172  +
        builder.route_table_id = builder.route_table_id.or(Some(String::new()));
  172    173   
        builder
  173    174   
            .build()
  174    175   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  175    176   
    }
  176    177   
}
         178  +
impl DeleteRouteInput {
         179  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         180  +
    pub fn deserialize_with_response(
         181  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         182  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         183  +
        _status: u16,
         184  +
        _body: &[u8],
         185  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         186  +
        Self::deserialize(deserializer)
         187  +
    }
         188  +
}
  177    189   
impl DeleteRouteInput {
  178    190   
    /// Creates a new builder-style object to manufacture [`DeleteRouteInput`](crate::operation::delete_route::DeleteRouteInput).
  179    191   
    pub fn builder() -> crate::operation::delete_route::builders::DeleteRouteInputBuilder {
  180    192   
        crate::operation::delete_route::builders::DeleteRouteInputBuilder::default()
  181    193   
    }
  182    194   
}
  183    195   
  184    196   
/// A builder for [`DeleteRouteInput`](crate::operation::delete_route::DeleteRouteInput).
  185    197   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  186    198   
#[non_exhaustive]

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

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

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

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