AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/describe_snapshot_attribute.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 `DescribeSnapshotAttribute`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeSnapshotAttribute;
    6      6   
impl DescribeSnapshotAttribute {
    7      7   
    /// Creates a new `DescribeSnapshotAttribute`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::describe_snapshot_attribute::DescribeSnapshotAttributeError,
  139    145   
            >::new());
  140    146   
  141    147   
        ::std::borrow::Cow::Owned(rcb)
  142    148   
    }
  143    149   
}
  144    150   
  145    151   
#[derive(Debug)]
  146    152   
struct DescribeSnapshotAttributeResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeSnapshotAttributeResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         154  +
    fn deserialize_nonstreaming_with_config(
  149    155   
        &self,
  150    156   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         157  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    158   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    159   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153    160   
        let headers = response.headers();
  154    161   
        let body = response.body().bytes().expect("body loaded");
  155    162   
        #[allow(unused_mut)]
  156    163   
        let mut force_error = false;
  157    164   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158    165   
        let parse_result = if !success && status != 200 || force_error {
  159    166   
            crate::protocol_serde::shape_describe_snapshot_attribute::de_describe_snapshot_attribute_http_error(status, headers, body)
  160    167   
        } else {

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/describe_snapshot_tier_status.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 `DescribeSnapshotTierStatus`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeSnapshotTierStatus;
    6      6   
impl DescribeSnapshotTierStatus {
    7      7   
    /// Creates a new `DescribeSnapshotTierStatus`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::describe_snapshot_tier_status::DescribeSnapshotTierStatusError,
  139    145   
            >::new());
  140    146   
  141    147   
        ::std::borrow::Cow::Owned(rcb)
  142    148   
    }
  143    149   
}
  144    150   
  145    151   
#[derive(Debug)]
  146    152   
struct DescribeSnapshotTierStatusResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeSnapshotTierStatusResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         154  +
    fn deserialize_nonstreaming_with_config(
  149    155   
        &self,
  150    156   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         157  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    158   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    159   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153    160   
        let headers = response.headers();
  154    161   
        let body = response.body().bytes().expect("body loaded");
  155    162   
        #[allow(unused_mut)]
  156    163   
        let mut force_error = false;
  157    164   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158    165   
        let parse_result = if !success && status != 200 || force_error {
  159    166   
            crate::protocol_serde::shape_describe_snapshot_tier_status::de_describe_snapshot_tier_status_http_error(status, headers, body)
  160    167   
        } else {

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

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

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

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

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

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

@@ -115,115 +239,239 @@
  135    135   
    "com.amazonaws.ec2.synthetic",
  136    136   
    "DescribeSnapshotsInput",
  137    137   
);
  138    138   
static DESCRIBESNAPSHOTSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  139    139   
    ::aws_smithy_schema::ShapeId::from_static(
  140    140   
        "com.amazonaws.ec2.synthetic#DescribeSnapshotsInput$MaxResults",
  141    141   
        "com.amazonaws.ec2.synthetic",
  142    142   
        "DescribeSnapshotsInput",
  143    143   
    ),
  144    144   
    ::aws_smithy_schema::ShapeType::Integer,
  145         -
    "max_results",
         145  +
    "MaxResults",
  146    146   
    0,
  147    147   
);
  148    148   
static DESCRIBESNAPSHOTSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  149    149   
    ::aws_smithy_schema::ShapeId::from_static(
  150    150   
        "com.amazonaws.ec2.synthetic#DescribeSnapshotsInput$NextToken",
  151    151   
        "com.amazonaws.ec2.synthetic",
  152    152   
        "DescribeSnapshotsInput",
  153    153   
    ),
  154    154   
    ::aws_smithy_schema::ShapeType::String,
  155         -
    "next_token",
         155  +
    "NextToken",
  156    156   
    1,
  157    157   
);
  158    158   
static DESCRIBESNAPSHOTSINPUT_MEMBER_OWNER_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  159    159   
    ::aws_smithy_schema::ShapeId::from_static(
  160    160   
        "com.amazonaws.ec2.synthetic#DescribeSnapshotsInput$OwnerIds",
  161    161   
        "com.amazonaws.ec2.synthetic",
  162    162   
        "DescribeSnapshotsInput",
  163    163   
    ),
  164    164   
    ::aws_smithy_schema::ShapeType::List,
  165         -
    "owner_ids",
         165  +
    "OwnerIds",
  166    166   
    2,
  167    167   
)
  168    168   
.with_xml_name("Owner");
  169    169   
static DESCRIBESNAPSHOTSINPUT_MEMBER_RESTORABLE_BY_USER_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  170    170   
    ::aws_smithy_schema::ShapeId::from_static(
  171    171   
        "com.amazonaws.ec2.synthetic#DescribeSnapshotsInput$RestorableByUserIds",
  172    172   
        "com.amazonaws.ec2.synthetic",
  173    173   
        "DescribeSnapshotsInput",
  174    174   
    ),
  175    175   
    ::aws_smithy_schema::ShapeType::List,
  176         -
    "restorable_by_user_ids",
         176  +
    "RestorableByUserIds",
  177    177   
    3,
  178    178   
)
  179    179   
.with_xml_name("RestorableBy");
  180    180   
static DESCRIBESNAPSHOTSINPUT_MEMBER_SNAPSHOT_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  181    181   
    ::aws_smithy_schema::ShapeId::from_static(
  182    182   
        "com.amazonaws.ec2.synthetic#DescribeSnapshotsInput$SnapshotIds",
  183    183   
        "com.amazonaws.ec2.synthetic",
  184    184   
        "DescribeSnapshotsInput",
  185    185   
    ),
  186    186   
    ::aws_smithy_schema::ShapeType::List,
  187         -
    "snapshot_ids",
         187  +
    "SnapshotIds",
  188    188   
    4,
  189    189   
)
  190    190   
.with_xml_name("SnapshotId");
  191    191   
static DESCRIBESNAPSHOTSINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  192    192   
    ::aws_smithy_schema::ShapeId::from_static(
  193    193   
        "com.amazonaws.ec2.synthetic#DescribeSnapshotsInput$DryRun",
  194    194   
        "com.amazonaws.ec2.synthetic",
  195    195   
        "DescribeSnapshotsInput",
  196    196   
    ),
  197    197   
    ::aws_smithy_schema::ShapeType::Boolean,
  198         -
    "dry_run",
         198  +
    "DryRun",
  199    199   
    5,
  200    200   
)
  201    201   
.with_xml_name("dryRun");
  202    202   
static DESCRIBESNAPSHOTSINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  203    203   
    ::aws_smithy_schema::ShapeId::from_static(
  204    204   
        "com.amazonaws.ec2.synthetic#DescribeSnapshotsInput$Filters",
  205    205   
        "com.amazonaws.ec2.synthetic",
  206    206   
        "DescribeSnapshotsInput",
  207    207   
    ),
  208    208   
    ::aws_smithy_schema::ShapeType::List,
  209         -
    "filters",
         209  +
    "Filters",
  210    210   
    6,
  211    211   
)
  212    212   
.with_xml_name("Filter");
  213    213   
static DESCRIBESNAPSHOTSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  214    214   
    DESCRIBESNAPSHOTSINPUT_SCHEMA_ID,
  215    215   
    ::aws_smithy_schema::ShapeType::Structure,
  216    216   
    &[
  217    217   
        &DESCRIBESNAPSHOTSINPUT_MEMBER_MAX_RESULTS,
  218    218   
        &DESCRIBESNAPSHOTSINPUT_MEMBER_NEXT_TOKEN,
  219    219   
        &DESCRIBESNAPSHOTSINPUT_MEMBER_OWNER_IDS,
@@ -264,264 +407,385 @@
  284    284   
                    }
  285    285   
                    Ok(())
  286    286   
                },
  287    287   
            )?;
  288    288   
        }
  289    289   
        Ok(())
  290    290   
    }
  291    291   
}
  292    292   
impl DescribeSnapshotsInput {
  293    293   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  294         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  295         -
        deserializer: &mut D,
         294  +
    pub fn deserialize(
         295  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  296    296   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  297    297   
        #[allow(unused_variables, unused_mut)]
  298    298   
        let mut builder = Self::builder();
  299    299   
        #[allow(
  300    300   
            unused_variables,
  301    301   
            unreachable_code,
  302    302   
            clippy::single_match,
  303    303   
            clippy::match_single_binding,
  304    304   
            clippy::diverging_sub_expression
  305    305   
        )]
  306         -
        deserializer.read_struct(&DESCRIBESNAPSHOTSINPUT_SCHEMA, (), |_, member, deser| {
         306  +
        deserializer.read_struct(&DESCRIBESNAPSHOTSINPUT_SCHEMA, &mut |member, deser| {
  307    307   
            match member.member_index() {
  308    308   
                Some(0) => {
  309    309   
                    builder.max_results = Some(deser.read_integer(member)?);
  310    310   
                }
  311    311   
                Some(1) => {
  312    312   
                    builder.next_token = Some(deser.read_string(member)?);
  313    313   
                }
  314    314   
                Some(2) => {
  315         -
                    builder.owner_ids = Some({
  316         -
                        let container = if let Some(cap) = deser.container_size() {
  317         -
                            Vec::with_capacity(cap)
  318         -
                        } else {
  319         -
                            Vec::new()
  320         -
                        };
  321         -
                        deser.read_list(member, container, |mut list, deser| {
  322         -
                            list.push(deser.read_string(member)?);
  323         -
                            Ok(list)
  324         -
                        })?
  325         -
                    });
         315  +
                    builder.owner_ids = Some(deser.read_string_list(member)?);
  326    316   
                }
  327    317   
                Some(3) => {
  328         -
                    builder.restorable_by_user_ids = Some({
  329         -
                        let container = if let Some(cap) = deser.container_size() {
  330         -
                            Vec::with_capacity(cap)
  331         -
                        } else {
  332         -
                            Vec::new()
  333         -
                        };
  334         -
                        deser.read_list(member, container, |mut list, deser| {
  335         -
                            list.push(deser.read_string(member)?);
  336         -
                            Ok(list)
  337         -
                        })?
  338         -
                    });
         318  +
                    builder.restorable_by_user_ids = Some(deser.read_string_list(member)?);
  339    319   
                }
  340    320   
                Some(4) => {
  341         -
                    builder.snapshot_ids = Some({
  342         -
                        let container = if let Some(cap) = deser.container_size() {
  343         -
                            Vec::with_capacity(cap)
  344         -
                        } else {
  345         -
                            Vec::new()
  346         -
                        };
  347         -
                        deser.read_list(member, container, |mut list, deser| {
  348         -
                            list.push(deser.read_string(member)?);
  349         -
                            Ok(list)
  350         -
                        })?
  351         -
                    });
         321  +
                    builder.snapshot_ids = Some(deser.read_string_list(member)?);
  352    322   
                }
  353    323   
                Some(5) => {
  354    324   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  355    325   
                }
  356    326   
                Some(6) => {
  357    327   
                    builder.filters = Some({
  358         -
                        let container = if let Some(cap) = deser.container_size() {
  359         -
                            Vec::with_capacity(cap)
  360         -
                        } else {
  361         -
                            Vec::new()
  362         -
                        };
  363         -
                        deser.read_list(member, container, |mut list, deser| {
  364         -
                            list.push(crate::types::Filter::deserialize(deser)?);
  365         -
                            Ok(list)
  366         -
                        })?
         328  +
                        let mut container = Vec::new();
         329  +
                        deser.read_list(member, &mut |deser| {
         330  +
                            container.push(crate::types::Filter::deserialize(deser)?);
         331  +
                            Ok(())
         332  +
                        })?;
         333  +
                        container
  367    334   
                    });
  368    335   
                }
  369    336   
                _ => {}
  370    337   
            }
  371    338   
            Ok(())
  372    339   
        })?;
  373    340   
        builder
  374    341   
            .build()
  375    342   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  376    343   
    }
  377    344   
}
         345  +
impl DescribeSnapshotsInput {
         346  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         347  +
    pub fn deserialize_with_response(
         348  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         349  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         350  +
        _status: u16,
         351  +
        _body: &[u8],
         352  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         353  +
        Self::deserialize(deserializer)
         354  +
    }
         355  +
}
  378    356   
impl DescribeSnapshotsInput {
  379    357   
    /// Creates a new builder-style object to manufacture [`DescribeSnapshotsInput`](crate::operation::describe_snapshots::DescribeSnapshotsInput).
  380    358   
    pub fn builder() -> crate::operation::describe_snapshots::builders::DescribeSnapshotsInputBuilder {
  381    359   
        crate::operation::describe_snapshots::builders::DescribeSnapshotsInputBuilder::default()
  382    360   
    }
  383    361   
}
  384    362   
  385    363   
/// A builder for [`DescribeSnapshotsInput`](crate::operation::describe_snapshots::DescribeSnapshotsInput).
  386    364   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  387    365   
#[non_exhaustive]

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

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

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

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

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

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

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

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

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

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

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

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

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

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