AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36

Files changed:

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

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/modify_snapshot_tier.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 `ModifySnapshotTier`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ModifySnapshotTier;
    6      6   
impl ModifySnapshotTier {
    7      7   
    /// Creates a new `ModifySnapshotTier`
    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::modify_snapshot_tier::ModifySnapshotTierInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::modify_snapshot_tier::ModifySnapshotTierOutput::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::modify_snapshot_tier::ModifySnapshotTierInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::modify_snapshot_tier::ModifySnapshotTierOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::modify_snapshot_tier::ModifySnapshotTierError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +177,182 @@
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct ModifySnapshotTierResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ModifySnapshotTierResponseDeserializer {
  145    149   
    fn deserialize_nonstreaming(
  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_modify_snapshot_tier::de_modify_snapshot_tier_http_error(status, headers, body)
  157    162   
        } else {

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

@@ -9,9 +156,168 @@
   29     29   
    "com.amazonaws.ec2.synthetic",
   30     30   
    "ModifySnapshotTierInput",
   31     31   
);
   32     32   
static MODIFYSNAPSHOTTIERINPUT_MEMBER_SNAPSHOT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   33     33   
    ::aws_smithy_schema::ShapeId::from_static(
   34     34   
        "com.amazonaws.ec2.synthetic#ModifySnapshotTierInput$SnapshotId",
   35     35   
        "com.amazonaws.ec2.synthetic",
   36     36   
        "ModifySnapshotTierInput",
   37     37   
    ),
   38     38   
    ::aws_smithy_schema::ShapeType::String,
   39         -
    "snapshot_id",
          39  +
    "SnapshotId",
   40     40   
    0,
   41     41   
);
   42     42   
static MODIFYSNAPSHOTTIERINPUT_MEMBER_STORAGE_TIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   43     43   
    ::aws_smithy_schema::ShapeId::from_static(
   44     44   
        "com.amazonaws.ec2.synthetic#ModifySnapshotTierInput$StorageTier",
   45     45   
        "com.amazonaws.ec2.synthetic",
   46     46   
        "ModifySnapshotTierInput",
   47     47   
    ),
   48     48   
    ::aws_smithy_schema::ShapeType::String,
   49         -
    "storage_tier",
          49  +
    "StorageTier",
   50     50   
    1,
   51     51   
);
   52     52   
static MODIFYSNAPSHOTTIERINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   53     53   
    ::aws_smithy_schema::ShapeId::from_static(
   54     54   
        "com.amazonaws.ec2.synthetic#ModifySnapshotTierInput$DryRun",
   55     55   
        "com.amazonaws.ec2.synthetic",
   56     56   
        "ModifySnapshotTierInput",
   57     57   
    ),
   58     58   
    ::aws_smithy_schema::ShapeType::Boolean,
   59         -
    "dry_run",
          59  +
    "DryRun",
   60     60   
    2,
   61     61   
);
   62     62   
static MODIFYSNAPSHOTTIERINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   63     63   
    MODIFYSNAPSHOTTIERINPUT_SCHEMA_ID,
   64     64   
    ::aws_smithy_schema::ShapeType::Structure,
   65     65   
    &[
   66     66   
        &MODIFYSNAPSHOTTIERINPUT_MEMBER_SNAPSHOT_ID,
   67     67   
        &MODIFYSNAPSHOTTIERINPUT_MEMBER_STORAGE_TIER,
   68     68   
        &MODIFYSNAPSHOTTIERINPUT_MEMBER_DRY_RUN,
   69     69   
    ],
   70     70   
);
   71     71   
impl ModifySnapshotTierInput {
   72     72   
    /// The schema for this shape.
   73     73   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &MODIFYSNAPSHOTTIERINPUT_SCHEMA;
   74     74   
}
   75     75   
impl ::aws_smithy_schema::serde::SerializableStruct for ModifySnapshotTierInput {
   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.snapshot_id {
   82     82   
            ser.write_string(&MODIFYSNAPSHOTTIERINPUT_MEMBER_SNAPSHOT_ID, val)?;
   83     83   
        }
   84     84   
        if let Some(ref val) = self.storage_tier {
   85     85   
            ser.write_string(&MODIFYSNAPSHOTTIERINPUT_MEMBER_STORAGE_TIER, val.as_str())?;
   86     86   
        }
   87     87   
        if let Some(ref val) = self.dry_run {
   88     88   
            ser.write_boolean(&MODIFYSNAPSHOTTIERINPUT_MEMBER_DRY_RUN, *val)?;
   89     89   
        }
   90     90   
        Ok(())
   91     91   
    }
   92     92   
}
   93     93   
impl ModifySnapshotTierInput {
   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(&MODIFYSNAPSHOTTIERINPUT_SCHEMA, (), |_, member, deser| {
         107  +
        deserializer.read_struct(&MODIFYSNAPSHOTTIERINPUT_SCHEMA, &mut |member, deser| {
  108    108   
            match member.member_index() {
  109    109   
                Some(0) => {
  110    110   
                    builder.snapshot_id = Some(deser.read_string(member)?);
  111    111   
                }
  112    112   
                Some(1) => {
  113    113   
                    builder.storage_tier = Some(crate::types::TargetStorageTier::from(deser.read_string(member)?.as_str()));
  114    114   
                }
  115    115   
                Some(2) => {
  116    116   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  117    117   
                }
  118    118   
                _ => {}
  119    119   
            }
  120    120   
            Ok(())
  121    121   
        })?;
         122  +
        builder.snapshot_id = builder.snapshot_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 ModifySnapshotTierInput {
         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 ModifySnapshotTierInput {
  128    140   
    /// Creates a new builder-style object to manufacture [`ModifySnapshotTierInput`](crate::operation::modify_snapshot_tier::ModifySnapshotTierInput).
  129    141   
    pub fn builder() -> crate::operation::modify_snapshot_tier::builders::ModifySnapshotTierInputBuilder {
  130    142   
        crate::operation::modify_snapshot_tier::builders::ModifySnapshotTierInputBuilder::default()
  131    143   
    }
  132    144   
}
  133    145   
  134    146   
/// A builder for [`ModifySnapshotTierInput`](crate::operation::modify_snapshot_tier::ModifySnapshotTierInput).
  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/modify_snapshot_tier/_modify_snapshot_tier_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/modify_spot_fleet_request.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 `ModifySpotFleetRequest`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ModifySpotFleetRequest;
    6      6   
impl ModifySpotFleetRequest {
    7      7   
    /// Creates a new `ModifySpotFleetRequest`
    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::modify_spot_fleet_request::ModifySpotFleetRequestInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestOutput::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::modify_spot_fleet_request::ModifySpotFleetRequestInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::modify_spot_fleet_request::ModifySpotFleetRequestError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -121,125 +180,185 @@
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct ModifySpotFleetRequestResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ModifySpotFleetRequestResponseDeserializer {
  148    152   
    fn deserialize_nonstreaming(
  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_modify_spot_fleet_request::de_modify_spot_fleet_request_http_error(status, headers, body)
  160    165   
        } else {

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

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

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

@@ -1,1 +98,145 @@
   19     19   
    "com.amazonaws.ec2.synthetic",
   20     20   
    "ModifySpotFleetRequestOutput",
   21     21   
);
   22     22   
static MODIFYSPOTFLEETREQUESTOUTPUT_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#ModifySpotFleetRequestOutput$Return",
   25     25   
        "com.amazonaws.ec2.synthetic",
   26     26   
        "ModifySpotFleetRequestOutput",
   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 MODIFYSPOTFLEETREQUESTOUTPUT_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 MODIFYSPOTFLEETREQUESTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   34     41   
    MODIFYSPOTFLEETREQUESTOUTPUT_SCHEMA_ID,
   35     42   
    ::aws_smithy_schema::ShapeType::Structure,
   36         -
    &[&MODIFYSPOTFLEETREQUESTOUTPUT_MEMBER_RETURN],
          43  +
    &[
          44  +
        &MODIFYSPOTFLEETREQUESTOUTPUT_MEMBER_RETURN,
          45  +
        &MODIFYSPOTFLEETREQUESTOUTPUT_MEMBER__REQUEST_ID,
          46  +
    ],
   37     47   
);
   38     48   
impl ModifySpotFleetRequestOutput {
   39     49   
    /// The schema for this shape.
   40     50   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &MODIFYSPOTFLEETREQUESTOUTPUT_SCHEMA;
   41     51   
}
   42     52   
impl ::aws_smithy_schema::serde::SerializableStruct for ModifySpotFleetRequestOutput {
   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(&MODIFYSPOTFLEETREQUESTOUTPUT_MEMBER_RETURN, *val)?;
   50     60   
        }
   51     61   
        Ok(())
   52     62   
    }
   53     63   
}
   54     64   
impl ModifySpotFleetRequestOutput {
   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(&MODIFYSPOTFLEETREQUESTOUTPUT_SCHEMA, (), |_, member, deser| {
          78  +
        deserializer.read_struct(&MODIFYSPOTFLEETREQUESTOUTPUT_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 ModifySpotFleetRequestOutput {
          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(&MODIFYSPOTFLEETREQUESTOUTPUT_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/modify_subnet_attribute.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 `ModifySubnetAttribute`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ModifySubnetAttribute;
    6      6   
impl ModifySubnetAttribute {
    7      7   
    /// Creates a new `ModifySubnetAttribute`
    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::modify_subnet_attribute::ModifySubnetAttributeInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::modify_subnet_attribute::ModifySubnetAttributeOutput::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::modify_subnet_attribute::ModifySubnetAttributeInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::modify_subnet_attribute::ModifySubnetAttributeOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::modify_subnet_attribute::ModifySubnetAttributeError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -121,125 +180,185 @@
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct ModifySubnetAttributeResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ModifySubnetAttributeResponseDeserializer {
  148    152   
    fn deserialize_nonstreaming(
  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_modify_subnet_attribute::de_modify_subnet_attribute_http_error(status, headers, body)
  160    165   
        } else {

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

@@ -67,67 +230,230 @@
   87     87   
    "com.amazonaws.ec2.synthetic",
   88     88   
    "ModifySubnetAttributeInput",
   89     89   
);
   90     90   
static MODIFYSUBNETATTRIBUTEINPUT_MEMBER_ASSIGN_IPV6_ADDRESS_ON_CREATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static(
   92     92   
        "com.amazonaws.ec2.synthetic#ModifySubnetAttributeInput$AssignIpv6AddressOnCreation",
   93     93   
        "com.amazonaws.ec2.synthetic",
   94     94   
        "ModifySubnetAttributeInput",
   95     95   
    ),
   96     96   
    ::aws_smithy_schema::ShapeType::Structure,
   97         -
    "assign_ipv6_address_on_creation",
          97  +
    "AssignIpv6AddressOnCreation",
   98     98   
    0,
   99     99   
);
  100    100   
static MODIFYSUBNETATTRIBUTEINPUT_MEMBER_MAP_PUBLIC_IP_ON_LAUNCH: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  101    101   
    ::aws_smithy_schema::ShapeId::from_static(
  102    102   
        "com.amazonaws.ec2.synthetic#ModifySubnetAttributeInput$MapPublicIpOnLaunch",
  103    103   
        "com.amazonaws.ec2.synthetic",
  104    104   
        "ModifySubnetAttributeInput",
  105    105   
    ),
  106    106   
    ::aws_smithy_schema::ShapeType::Structure,
  107         -
    "map_public_ip_on_launch",
         107  +
    "MapPublicIpOnLaunch",
  108    108   
    1,
  109    109   
);
  110    110   
static MODIFYSUBNETATTRIBUTEINPUT_MEMBER_SUBNET_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  111    111   
    ::aws_smithy_schema::ShapeId::from_static(
  112    112   
        "com.amazonaws.ec2.synthetic#ModifySubnetAttributeInput$SubnetId",
  113    113   
        "com.amazonaws.ec2.synthetic",
  114    114   
        "ModifySubnetAttributeInput",
  115    115   
    ),
  116    116   
    ::aws_smithy_schema::ShapeType::String,
  117         -
    "subnet_id",
         117  +
    "SubnetId",
  118    118   
    2,
  119    119   
)
  120    120   
.with_xml_name("subnetId");
  121    121   
static MODIFYSUBNETATTRIBUTEINPUT_MEMBER_MAP_CUSTOMER_OWNED_IP_ON_LAUNCH: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  122    122   
    ::aws_smithy_schema::ShapeId::from_static(
  123    123   
        "com.amazonaws.ec2.synthetic#ModifySubnetAttributeInput$MapCustomerOwnedIpOnLaunch",
  124    124   
        "com.amazonaws.ec2.synthetic",
  125    125   
        "ModifySubnetAttributeInput",
  126    126   
    ),
  127    127   
    ::aws_smithy_schema::ShapeType::Structure,
  128         -
    "map_customer_owned_ip_on_launch",
         128  +
    "MapCustomerOwnedIpOnLaunch",
  129    129   
    3,
  130    130   
);
  131    131   
static MODIFYSUBNETATTRIBUTEINPUT_MEMBER_CUSTOMER_OWNED_IPV4_POOL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  132    132   
    ::aws_smithy_schema::ShapeId::from_static(
  133    133   
        "com.amazonaws.ec2.synthetic#ModifySubnetAttributeInput$CustomerOwnedIpv4Pool",
  134    134   
        "com.amazonaws.ec2.synthetic",
  135    135   
        "ModifySubnetAttributeInput",
  136    136   
    ),
  137    137   
    ::aws_smithy_schema::ShapeType::String,
  138         -
    "customer_owned_ipv4_pool",
         138  +
    "CustomerOwnedIpv4Pool",
  139    139   
    4,
  140    140   
);
  141    141   
static MODIFYSUBNETATTRIBUTEINPUT_MEMBER_ENABLE_DNS64: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  142    142   
    ::aws_smithy_schema::ShapeId::from_static(
  143    143   
        "com.amazonaws.ec2.synthetic#ModifySubnetAttributeInput$EnableDns64",
  144    144   
        "com.amazonaws.ec2.synthetic",
  145    145   
        "ModifySubnetAttributeInput",
  146    146   
    ),
  147    147   
    ::aws_smithy_schema::ShapeType::Structure,
  148         -
    "enable_dns64",
         148  +
    "EnableDns64",
  149    149   
    5,
  150    150   
);
  151    151   
static MODIFYSUBNETATTRIBUTEINPUT_MEMBER_PRIVATE_DNS_HOSTNAME_TYPE_ON_LAUNCH: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  152    152   
    ::aws_smithy_schema::ShapeId::from_static(
  153    153   
        "com.amazonaws.ec2.synthetic#ModifySubnetAttributeInput$PrivateDnsHostnameTypeOnLaunch",
  154    154   
        "com.amazonaws.ec2.synthetic",
  155    155   
        "ModifySubnetAttributeInput",
  156    156   
    ),
  157    157   
    ::aws_smithy_schema::ShapeType::String,
  158         -
    "private_dns_hostname_type_on_launch",
         158  +
    "PrivateDnsHostnameTypeOnLaunch",
  159    159   
    6,
  160    160   
);
  161    161   
static MODIFYSUBNETATTRIBUTEINPUT_MEMBER_ENABLE_RESOURCE_NAME_DNS_A_RECORD_ON_LAUNCH: ::aws_smithy_schema::Schema =
  162    162   
    ::aws_smithy_schema::Schema::new_member(
  163    163   
        ::aws_smithy_schema::ShapeId::from_static(
  164    164   
            "com.amazonaws.ec2.synthetic#ModifySubnetAttributeInput$EnableResourceNameDnsARecordOnLaunch",
  165    165   
            "com.amazonaws.ec2.synthetic",
  166    166   
            "ModifySubnetAttributeInput",
  167    167   
        ),
  168    168   
        ::aws_smithy_schema::ShapeType::Structure,
  169         -
        "enable_resource_name_dns_a_record_on_launch",
         169  +
        "EnableResourceNameDnsARecordOnLaunch",
  170    170   
        7,
  171    171   
    );
  172    172   
static MODIFYSUBNETATTRIBUTEINPUT_MEMBER_ENABLE_RESOURCE_NAME_DNS_AAAA_RECORD_ON_LAUNCH: ::aws_smithy_schema::Schema =
  173    173   
    ::aws_smithy_schema::Schema::new_member(
  174    174   
        ::aws_smithy_schema::ShapeId::from_static(
  175    175   
            "com.amazonaws.ec2.synthetic#ModifySubnetAttributeInput$EnableResourceNameDnsAAAARecordOnLaunch",
  176    176   
            "com.amazonaws.ec2.synthetic",
  177    177   
            "ModifySubnetAttributeInput",
  178    178   
        ),
  179    179   
        ::aws_smithy_schema::ShapeType::Structure,
  180         -
        "enable_resource_name_dns_aaaa_record_on_launch",
         180  +
        "EnableResourceNameDnsAAAARecordOnLaunch",
  181    181   
        8,
  182    182   
    );
  183    183   
static MODIFYSUBNETATTRIBUTEINPUT_MEMBER_ENABLE_LNI_AT_DEVICE_INDEX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  184    184   
    ::aws_smithy_schema::ShapeId::from_static(
  185    185   
        "com.amazonaws.ec2.synthetic#ModifySubnetAttributeInput$EnableLniAtDeviceIndex",
  186    186   
        "com.amazonaws.ec2.synthetic",
  187    187   
        "ModifySubnetAttributeInput",
  188    188   
    ),
  189    189   
    ::aws_smithy_schema::ShapeType::Integer,
  190         -
    "enable_lni_at_device_index",
         190  +
    "EnableLniAtDeviceIndex",
  191    191   
    9,
  192    192   
);
  193    193   
static MODIFYSUBNETATTRIBUTEINPUT_MEMBER_DISABLE_LNI_AT_DEVICE_INDEX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  194    194   
    ::aws_smithy_schema::ShapeId::from_static(
  195    195   
        "com.amazonaws.ec2.synthetic#ModifySubnetAttributeInput$DisableLniAtDeviceIndex",
  196    196   
        "com.amazonaws.ec2.synthetic",
  197    197   
        "ModifySubnetAttributeInput",
  198    198   
    ),
  199    199   
    ::aws_smithy_schema::ShapeType::Structure,
  200         -
    "disable_lni_at_device_index",
         200  +
    "DisableLniAtDeviceIndex",
  201    201   
    10,
  202    202   
);
  203    203   
static MODIFYSUBNETATTRIBUTEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  204    204   
    MODIFYSUBNETATTRIBUTEINPUT_SCHEMA_ID,
  205    205   
    ::aws_smithy_schema::ShapeType::Structure,
  206    206   
    &[
  207    207   
        &MODIFYSUBNETATTRIBUTEINPUT_MEMBER_ASSIGN_IPV6_ADDRESS_ON_CREATION,
  208    208   
        &MODIFYSUBNETATTRIBUTEINPUT_MEMBER_MAP_PUBLIC_IP_ON_LAUNCH,
  209    209   
        &MODIFYSUBNETATTRIBUTEINPUT_MEMBER_SUBNET_ID,
  210    210   
        &MODIFYSUBNETATTRIBUTEINPUT_MEMBER_MAP_CUSTOMER_OWNED_IP_ON_LAUNCH,
@@ -238,238 +353,365 @@
  258    258   
            ser.write_integer(&MODIFYSUBNETATTRIBUTEINPUT_MEMBER_ENABLE_LNI_AT_DEVICE_INDEX, *val)?;
  259    259   
        }
  260    260   
        if let Some(ref val) = self.disable_lni_at_device_index {
  261    261   
            ser.write_struct(&MODIFYSUBNETATTRIBUTEINPUT_MEMBER_DISABLE_LNI_AT_DEVICE_INDEX, val)?;
  262    262   
        }
  263    263   
        Ok(())
  264    264   
    }
  265    265   
}
  266    266   
impl ModifySubnetAttributeInput {
  267    267   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  268         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  269         -
        deserializer: &mut D,
         268  +
    pub fn deserialize(
         269  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  270    270   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  271    271   
        #[allow(unused_variables, unused_mut)]
  272    272   
        let mut builder = Self::builder();
  273    273   
        #[allow(
  274    274   
            unused_variables,
  275    275   
            unreachable_code,
  276    276   
            clippy::single_match,
  277    277   
            clippy::match_single_binding,
  278    278   
            clippy::diverging_sub_expression
  279    279   
        )]
  280         -
        deserializer.read_struct(&MODIFYSUBNETATTRIBUTEINPUT_SCHEMA, (), |_, member, deser| {
         280  +
        deserializer.read_struct(&MODIFYSUBNETATTRIBUTEINPUT_SCHEMA, &mut |member, deser| {
  281    281   
            match member.member_index() {
  282    282   
                Some(0) => {
  283    283   
                    builder.assign_ipv6_address_on_creation = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
  284    284   
                }
  285    285   
                Some(1) => {
  286    286   
                    builder.map_public_ip_on_launch = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
  287    287   
                }
  288    288   
                Some(2) => {
  289    289   
                    builder.subnet_id = Some(deser.read_string(member)?);
  290    290   
                }
  291    291   
                Some(3) => {
  292    292   
                    builder.map_customer_owned_ip_on_launch = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
  293    293   
                }
  294    294   
                Some(4) => {
  295    295   
                    builder.customer_owned_ipv4_pool = Some(deser.read_string(member)?);
  296    296   
                }
  297    297   
                Some(5) => {
  298    298   
                    builder.enable_dns64 = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
  299    299   
                }
  300    300   
                Some(6) => {
  301    301   
                    builder.private_dns_hostname_type_on_launch = Some(crate::types::HostnameType::from(deser.read_string(member)?.as_str()));
  302    302   
                }
  303    303   
                Some(7) => {
  304    304   
                    builder.enable_resource_name_dns_a_record_on_launch = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
  305    305   
                }
  306    306   
                Some(8) => {
  307    307   
                    builder.enable_resource_name_dns_aaaa_record_on_launch = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
  308    308   
                }
  309    309   
                Some(9) => {
  310    310   
                    builder.enable_lni_at_device_index = Some(deser.read_integer(member)?);
  311    311   
                }
  312    312   
                Some(10) => {
  313    313   
                    builder.disable_lni_at_device_index = Some(crate::types::AttributeBooleanValue::deserialize(deser)?);
  314    314   
                }
  315    315   
                _ => {}
  316    316   
            }
  317    317   
            Ok(())
  318    318   
        })?;
         319  +
        builder.subnet_id = builder.subnet_id.or(Some(String::new()));
  319    320   
        builder
  320    321   
            .build()
  321    322   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  322    323   
    }
  323    324   
}
         325  +
impl ModifySubnetAttributeInput {
         326  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         327  +
    pub fn deserialize_with_response(
         328  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         329  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         330  +
        _status: u16,
         331  +
        _body: &[u8],
         332  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         333  +
        Self::deserialize(deserializer)
         334  +
    }
         335  +
}
  324    336   
impl ModifySubnetAttributeInput {
  325    337   
    /// Creates a new builder-style object to manufacture [`ModifySubnetAttributeInput`](crate::operation::modify_subnet_attribute::ModifySubnetAttributeInput).
  326    338   
    pub fn builder() -> crate::operation::modify_subnet_attribute::builders::ModifySubnetAttributeInputBuilder {
  327    339   
        crate::operation::modify_subnet_attribute::builders::ModifySubnetAttributeInputBuilder::default()
  328    340   
    }
  329    341   
}
  330    342   
  331    343   
/// A builder for [`ModifySubnetAttributeInput`](crate::operation::modify_subnet_attribute::ModifySubnetAttributeInput).
  332    344   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  333    345   
#[non_exhaustive]

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

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

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

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

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

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

@@ -1,1 +98,145 @@
   19     19   
    "ModifyTrafficMirrorFilterNetworkServicesOutput",
   20     20   
);
   21     21   
static MODIFYTRAFFICMIRRORFILTERNETWORKSERVICESOUTPUT_MEMBER_TRAFFIC_MIRROR_FILTER: ::aws_smithy_schema::Schema =
   22     22   
    ::aws_smithy_schema::Schema::new_member(
   23     23   
        ::aws_smithy_schema::ShapeId::from_static(
   24     24   
            "com.amazonaws.ec2.synthetic#ModifyTrafficMirrorFilterNetworkServicesOutput$TrafficMirrorFilter",
   25     25   
            "com.amazonaws.ec2.synthetic",
   26     26   
            "ModifyTrafficMirrorFilterNetworkServicesOutput",
   27     27   
        ),
   28     28   
        ::aws_smithy_schema::ShapeType::Structure,
   29         -
        "traffic_mirror_filter",
          29  +
        "TrafficMirrorFilter",
   30     30   
        0,
   31     31   
    )
   32     32   
    .with_xml_name("trafficMirrorFilter");
          33  +
static MODIFYTRAFFICMIRRORFILTERNETWORKSERVICESOUTPUT_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 MODIFYTRAFFICMIRRORFILTERNETWORKSERVICESOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   34     41   
    MODIFYTRAFFICMIRRORFILTERNETWORKSERVICESOUTPUT_SCHEMA_ID,
   35     42   
    ::aws_smithy_schema::ShapeType::Structure,
   36         -
    &[&MODIFYTRAFFICMIRRORFILTERNETWORKSERVICESOUTPUT_MEMBER_TRAFFIC_MIRROR_FILTER],
          43  +
    &[
          44  +
        &MODIFYTRAFFICMIRRORFILTERNETWORKSERVICESOUTPUT_MEMBER_TRAFFIC_MIRROR_FILTER,
          45  +
        &MODIFYTRAFFICMIRRORFILTERNETWORKSERVICESOUTPUT_MEMBER__REQUEST_ID,
          46  +
    ],
   37     47   
);
   38     48   
impl ModifyTrafficMirrorFilterNetworkServicesOutput {
   39     49   
    /// The schema for this shape.
   40     50   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &MODIFYTRAFFICMIRRORFILTERNETWORKSERVICESOUTPUT_SCHEMA;
   41     51   
}
   42     52   
impl ::aws_smithy_schema::serde::SerializableStruct for ModifyTrafficMirrorFilterNetworkServicesOutput {
   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.traffic_mirror_filter {
   49     59   
            ser.write_struct(&MODIFYTRAFFICMIRRORFILTERNETWORKSERVICESOUTPUT_MEMBER_TRAFFIC_MIRROR_FILTER, val)?;
   50     60   
        }
   51     61   
        Ok(())
   52     62   
    }
   53     63   
}
   54     64   
impl ModifyTrafficMirrorFilterNetworkServicesOutput {
   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(&MODIFYTRAFFICMIRRORFILTERNETWORKSERVICESOUTPUT_SCHEMA, (), |_, member, deser| {
          78  +
        deserializer.read_struct(&MODIFYTRAFFICMIRRORFILTERNETWORKSERVICESOUTPUT_SCHEMA, &mut |member, deser| {
          79  +
            match member.member_index() {
          80  +
                Some(0) => {
          81  +
                    builder.traffic_mirror_filter = Some(crate::types::TrafficMirrorFilter::deserialize(deser)?);
          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 ModifyTrafficMirrorFilterNetworkServicesOutput {
          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(&MODIFYTRAFFICMIRRORFILTERNETWORKSERVICESOUTPUT_SCHEMA, &mut |member, deser| {
   69    116   
            match member.member_index() {
   70    117   
                Some(0) => {
   71    118   
                    builder.traffic_mirror_filter = Some(crate::types::TrafficMirrorFilter::deserialize(deser)?);
   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/modify_traffic_mirror_filter_rule.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 `ModifyTrafficMirrorFilterRule`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ModifyTrafficMirrorFilterRule;
    6      6   
impl ModifyTrafficMirrorFilterRule {
    7      7   
    /// Creates a new `ModifyTrafficMirrorFilterRule`
    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::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleOutput::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::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::modify_traffic_mirror_filter_rule::ModifyTrafficMirrorFilterRuleError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -121,127 +180,187 @@
  141    147   
        ::std::borrow::Cow::Owned(rcb)
  142    148   
    }
  143    149   
}
  144    150   
  145    151   
#[derive(Debug)]
  146    152   
struct ModifyTrafficMirrorFilterRuleResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ModifyTrafficMirrorFilterRuleResponseDeserializer {
  148    154   
    fn deserialize_nonstreaming(
  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_modify_traffic_mirror_filter_rule::de_modify_traffic_mirror_filter_rule_http_error(status, headers, body)
  160    167   
        } else {