AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/describe_fpga_image_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 `DescribeFpgaImageAttribute`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeFpgaImageAttribute;
    6      6   
impl DescribeFpgaImageAttribute {
    7      7   
    /// Creates a new `DescribeFpgaImageAttribute`
    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_fpga_image_attribute::DescribeFpgaImageAttributeInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeOutput::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_fpga_image_attribute::DescribeFpgaImageAttributeInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::describe_fpga_image_attribute::DescribeFpgaImageAttributeError,
  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 DescribeFpgaImageAttributeResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeFpgaImageAttributeResponseDeserializer {
  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_fpga_image_attribute::de_describe_fpga_image_attribute_http_error(status, headers, body)
  160    167   
        } else {

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

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

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

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

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

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

@@ -93,93 +206,206 @@
  113    113   
    "com.amazonaws.ec2.synthetic",
  114    114   
    "DescribeFpgaImagesInput",
  115    115   
);
  116    116   
static DESCRIBEFPGAIMAGESINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  117    117   
    ::aws_smithy_schema::ShapeId::from_static(
  118    118   
        "com.amazonaws.ec2.synthetic#DescribeFpgaImagesInput$DryRun",
  119    119   
        "com.amazonaws.ec2.synthetic",
  120    120   
        "DescribeFpgaImagesInput",
  121    121   
    ),
  122    122   
    ::aws_smithy_schema::ShapeType::Boolean,
  123         -
    "dry_run",
         123  +
    "DryRun",
  124    124   
    0,
  125    125   
);
  126    126   
static DESCRIBEFPGAIMAGESINPUT_MEMBER_FPGA_IMAGE_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  127    127   
    ::aws_smithy_schema::ShapeId::from_static(
  128    128   
        "com.amazonaws.ec2.synthetic#DescribeFpgaImagesInput$FpgaImageIds",
  129    129   
        "com.amazonaws.ec2.synthetic",
  130    130   
        "DescribeFpgaImagesInput",
  131    131   
    ),
  132    132   
    ::aws_smithy_schema::ShapeType::List,
  133         -
    "fpga_image_ids",
         133  +
    "FpgaImageIds",
  134    134   
    1,
  135    135   
)
  136    136   
.with_xml_name("FpgaImageId");
  137    137   
static DESCRIBEFPGAIMAGESINPUT_MEMBER_OWNERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  138    138   
    ::aws_smithy_schema::ShapeId::from_static(
  139    139   
        "com.amazonaws.ec2.synthetic#DescribeFpgaImagesInput$Owners",
  140    140   
        "com.amazonaws.ec2.synthetic",
  141    141   
        "DescribeFpgaImagesInput",
  142    142   
    ),
  143    143   
    ::aws_smithy_schema::ShapeType::List,
  144         -
    "owners",
         144  +
    "Owners",
  145    145   
    2,
  146    146   
)
  147    147   
.with_xml_name("Owner");
  148    148   
static DESCRIBEFPGAIMAGESINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  149    149   
    ::aws_smithy_schema::ShapeId::from_static(
  150    150   
        "com.amazonaws.ec2.synthetic#DescribeFpgaImagesInput$Filters",
  151    151   
        "com.amazonaws.ec2.synthetic",
  152    152   
        "DescribeFpgaImagesInput",
  153    153   
    ),
  154    154   
    ::aws_smithy_schema::ShapeType::List,
  155         -
    "filters",
         155  +
    "Filters",
  156    156   
    3,
  157    157   
)
  158    158   
.with_xml_name("Filter");
  159    159   
static DESCRIBEFPGAIMAGESINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  160    160   
    ::aws_smithy_schema::ShapeId::from_static(
  161    161   
        "com.amazonaws.ec2.synthetic#DescribeFpgaImagesInput$NextToken",
  162    162   
        "com.amazonaws.ec2.synthetic",
  163    163   
        "DescribeFpgaImagesInput",
  164    164   
    ),
  165    165   
    ::aws_smithy_schema::ShapeType::String,
  166         -
    "next_token",
         166  +
    "NextToken",
  167    167   
    4,
  168    168   
);
  169    169   
static DESCRIBEFPGAIMAGESINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  170    170   
    ::aws_smithy_schema::ShapeId::from_static(
  171    171   
        "com.amazonaws.ec2.synthetic#DescribeFpgaImagesInput$MaxResults",
  172    172   
        "com.amazonaws.ec2.synthetic",
  173    173   
        "DescribeFpgaImagesInput",
  174    174   
    ),
  175    175   
    ::aws_smithy_schema::ShapeType::Integer,
  176         -
    "max_results",
         176  +
    "MaxResults",
  177    177   
    5,
  178    178   
);
  179    179   
static DESCRIBEFPGAIMAGESINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  180    180   
    DESCRIBEFPGAIMAGESINPUT_SCHEMA_ID,
  181    181   
    ::aws_smithy_schema::ShapeType::Structure,
  182    182   
    &[
  183    183   
        &DESCRIBEFPGAIMAGESINPUT_MEMBER_DRY_RUN,
  184    184   
        &DESCRIBEFPGAIMAGESINPUT_MEMBER_FPGA_IMAGE_IDS,
  185    185   
        &DESCRIBEFPGAIMAGESINPUT_MEMBER_OWNERS,
  186    186   
        &DESCRIBEFPGAIMAGESINPUT_MEMBER_FILTERS,
@@ -218,218 +348,336 @@
  238    238   
            ser.write_string(&DESCRIBEFPGAIMAGESINPUT_MEMBER_NEXT_TOKEN, val)?;
  239    239   
        }
  240    240   
        if let Some(ref val) = self.max_results {
  241    241   
            ser.write_integer(&DESCRIBEFPGAIMAGESINPUT_MEMBER_MAX_RESULTS, *val)?;
  242    242   
        }
  243    243   
        Ok(())
  244    244   
    }
  245    245   
}
  246    246   
impl DescribeFpgaImagesInput {
  247    247   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  248         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  249         -
        deserializer: &mut D,
         248  +
    pub fn deserialize(
         249  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  250    250   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  251    251   
        #[allow(unused_variables, unused_mut)]
  252    252   
        let mut builder = Self::builder();
  253    253   
        #[allow(
  254    254   
            unused_variables,
  255    255   
            unreachable_code,
  256    256   
            clippy::single_match,
  257    257   
            clippy::match_single_binding,
  258    258   
            clippy::diverging_sub_expression
  259    259   
        )]
  260         -
        deserializer.read_struct(&DESCRIBEFPGAIMAGESINPUT_SCHEMA, (), |_, member, deser| {
         260  +
        deserializer.read_struct(&DESCRIBEFPGAIMAGESINPUT_SCHEMA, &mut |member, deser| {
  261    261   
            match member.member_index() {
  262    262   
                Some(0) => {
  263    263   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  264    264   
                }
  265    265   
                Some(1) => {
  266         -
                    builder.fpga_image_ids = Some({
  267         -
                        let container = if let Some(cap) = deser.container_size() {
  268         -
                            Vec::with_capacity(cap)
  269         -
                        } else {
  270         -
                            Vec::new()
  271         -
                        };
  272         -
                        deser.read_list(member, container, |mut list, deser| {
  273         -
                            list.push(deser.read_string(member)?);
  274         -
                            Ok(list)
  275         -
                        })?
  276         -
                    });
         266  +
                    builder.fpga_image_ids = Some(deser.read_string_list(member)?);
  277    267   
                }
  278    268   
                Some(2) => {
  279         -
                    builder.owners = Some({
  280         -
                        let container = if let Some(cap) = deser.container_size() {
  281         -
                            Vec::with_capacity(cap)
  282         -
                        } else {
  283         -
                            Vec::new()
  284         -
                        };
  285         -
                        deser.read_list(member, container, |mut list, deser| {
  286         -
                            list.push(deser.read_string(member)?);
  287         -
                            Ok(list)
  288         -
                        })?
  289         -
                    });
         269  +
                    builder.owners = Some(deser.read_string_list(member)?);
  290    270   
                }
  291    271   
                Some(3) => {
  292    272   
                    builder.filters = Some({
  293         -
                        let container = if let Some(cap) = deser.container_size() {
  294         -
                            Vec::with_capacity(cap)
  295         -
                        } else {
  296         -
                            Vec::new()
  297         -
                        };
  298         -
                        deser.read_list(member, container, |mut list, deser| {
  299         -
                            list.push(crate::types::Filter::deserialize(deser)?);
  300         -
                            Ok(list)
  301         -
                        })?
         273  +
                        let mut container = Vec::new();
         274  +
                        deser.read_list(member, &mut |deser| {
         275  +
                            container.push(crate::types::Filter::deserialize(deser)?);
         276  +
                            Ok(())
         277  +
                        })?;
         278  +
                        container
  302    279   
                    });
  303    280   
                }
  304    281   
                Some(4) => {
  305    282   
                    builder.next_token = Some(deser.read_string(member)?);
  306    283   
                }
  307    284   
                Some(5) => {
  308    285   
                    builder.max_results = Some(deser.read_integer(member)?);
  309    286   
                }
  310    287   
                _ => {}
  311    288   
            }
  312    289   
            Ok(())
  313    290   
        })?;
  314    291   
        builder
  315    292   
            .build()
  316    293   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  317    294   
    }
  318    295   
}
         296  +
impl DescribeFpgaImagesInput {
         297  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         298  +
    pub fn deserialize_with_response(
         299  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         300  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         301  +
        _status: u16,
         302  +
        _body: &[u8],
         303  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         304  +
        Self::deserialize(deserializer)
         305  +
    }
         306  +
}
  319    307   
impl DescribeFpgaImagesInput {
  320    308   
    /// Creates a new builder-style object to manufacture [`DescribeFpgaImagesInput`](crate::operation::describe_fpga_images::DescribeFpgaImagesInput).
  321    309   
    pub fn builder() -> crate::operation::describe_fpga_images::builders::DescribeFpgaImagesInputBuilder {
  322    310   
        crate::operation::describe_fpga_images::builders::DescribeFpgaImagesInputBuilder::default()
  323    311   
    }
  324    312   
}
  325    313   
  326    314   
/// A builder for [`DescribeFpgaImagesInput`](crate::operation::describe_fpga_images::DescribeFpgaImagesInput).
  327    315   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  328    316   
#[non_exhaustive]

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

@@ -6,6 +139,194 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeFpgaImagesOutput",
   28     28   
);
   29     29   
static DESCRIBEFPGAIMAGESOUTPUT_MEMBER_FPGA_IMAGES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeFpgaImagesOutput$FpgaImages",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeFpgaImagesOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "fpga_images",
          36  +
    "FpgaImages",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("fpgaImageSet");
   40     40   
static DESCRIBEFPGAIMAGESOUTPUT_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#DescribeFpgaImagesOutput$NextToken",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeFpgaImagesOutput",
   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 DESCRIBEFPGAIMAGESOUTPUT_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 DESCRIBEFPGAIMAGESOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBEFPGAIMAGESOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54         -
    &[&DESCRIBEFPGAIMAGESOUTPUT_MEMBER_FPGA_IMAGES, &DESCRIBEFPGAIMAGESOUTPUT_MEMBER_NEXT_TOKEN],
          61  +
    &[
          62  +
        &DESCRIBEFPGAIMAGESOUTPUT_MEMBER_FPGA_IMAGES,
          63  +
        &DESCRIBEFPGAIMAGESOUTPUT_MEMBER_NEXT_TOKEN,
          64  +
        &DESCRIBEFPGAIMAGESOUTPUT_MEMBER__REQUEST_ID,
          65  +
    ],
   55     66   
);
   56     67   
impl DescribeFpgaImagesOutput {
   57     68   
    /// The schema for this shape.
   58     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEFPGAIMAGESOUTPUT_SCHEMA;
   59     70   
}
   60     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeFpgaImagesOutput {
   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.fpga_images {
   67     78   
            ser.write_list(
   68     79   
                &DESCRIBEFPGAIMAGESOUTPUT_MEMBER_FPGA_IMAGES,
   69     80   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   70     81   
                    for item in val {
   71     82   
                        ser.write_struct(crate::types::FpgaImage::SCHEMA, item)?;
   72     83   
                    }
   73     84   
                    Ok(())
   74     85   
                },
   75     86   
            )?;
   76     87   
        }
   77     88   
        if let Some(ref val) = self.next_token {
   78     89   
            ser.write_string(&DESCRIBEFPGAIMAGESOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   79     90   
        }
   80     91   
        Ok(())
   81     92   
    }
   82     93   
}
   83     94   
impl DescribeFpgaImagesOutput {
   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,
          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(&DESCRIBEFPGAIMAGESOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.fpga_images = Some({
         112  +
                        let mut container = Vec::new();
         113  +
                        deser.read_list(member, &mut |deser| {
         114  +
                            container.push(crate::types::FpgaImage::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 DescribeFpgaImagesOutput {
         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],
   87    142   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   88    143   
        #[allow(unused_variables, unused_mut)]
   89    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  +
        }
   90    148   
        #[allow(
   91    149   
            unused_variables,
   92    150   
            unreachable_code,
   93    151   
            clippy::single_match,
   94    152   
            clippy::match_single_binding,
   95    153   
            clippy::diverging_sub_expression
   96    154   
        )]
   97         -
        deserializer.read_struct(&DESCRIBEFPGAIMAGESOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBEFPGAIMAGESOUTPUT_SCHEMA, &mut |member, deser| {
   98    156   
            match member.member_index() {
   99    157   
                Some(0) => {
  100    158   
                    builder.fpga_images = Some({
  101         -
                        let container = if let Some(cap) = deser.container_size() {
  102         -
                            Vec::with_capacity(cap)
  103         -
                        } else {
  104         -
                            Vec::new()
  105         -
                        };
  106         -
                        deser.read_list(member, container, |mut list, deser| {
  107         -
                            list.push(crate::types::FpgaImage::deserialize(deser)?);
  108         -
                            Ok(list)
  109         -
                        })?
         159  +
                        let mut container = Vec::new();
         160  +
                        deser.read_list(member, &mut |deser| {
         161  +
                            container.push(crate::types::FpgaImage::deserialize(deser)?);
         162  +
                            Ok(())
         163  +
                        })?;
         164  +
                        container
  110    165   
                    });
  111    166   
                }
  112    167   
                Some(1) => {
  113    168   
                    builder.next_token = Some(deser.read_string(member)?);
  114    169   
                }
  115    170   
                _ => {}
  116    171   
            }
  117    172   
            Ok(())
  118    173   
        })?;
  119    174   
        Ok(builder.build())

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/describe_host_reservation_offerings.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 `DescribeHostReservationOfferings`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeHostReservationOfferings;
    6      6   
impl DescribeHostReservationOfferings {
    7      7   
    /// Creates a new `DescribeHostReservationOfferings`
    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_host_reservation_offerings::DescribeHostReservationOfferingsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsOutput::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_host_reservation_offerings::DescribeHostReservationOfferingsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::describe_host_reservation_offerings::DescribeHostReservationOfferingsError,
  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 DescribeHostReservationOfferingsResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeHostReservationOfferingsResponseDeserializer {
  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_host_reservation_offerings::de_describe_host_reservation_offerings_http_error(status, headers, body)
  166    173   
        } else {

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

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

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

@@ -6,6 +145,197 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeHostReservationOfferingsOutput",
   28     28   
);
   29     29   
static DESCRIBEHOSTRESERVATIONOFFERINGSOUTPUT_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#DescribeHostReservationOfferingsOutput$NextToken",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeHostReservationOfferingsOutput",
   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 DESCRIBEHOSTRESERVATIONOFFERINGSOUTPUT_MEMBER_OFFERING_SET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.ec2.synthetic#DescribeHostReservationOfferingsOutput$OfferingSet",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeHostReservationOfferingsOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::List,
   47         -
    "offering_set",
          47  +
    "OfferingSet",
   48     48   
    1,
   49     49   
)
   50     50   
.with_xml_name("offeringSet");
          51  +
static DESCRIBEHOSTRESERVATIONOFFERINGSOUTPUT_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 DESCRIBEHOSTRESERVATIONOFFERINGSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBEHOSTRESERVATIONOFFERINGSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &DESCRIBEHOSTRESERVATIONOFFERINGSOUTPUT_MEMBER_NEXT_TOKEN,
   56     63   
        &DESCRIBEHOSTRESERVATIONOFFERINGSOUTPUT_MEMBER_OFFERING_SET,
          64  +
        &DESCRIBEHOSTRESERVATIONOFFERINGSOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl DescribeHostReservationOfferingsOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEHOSTRESERVATIONOFFERINGSOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeHostReservationOfferingsOutput {
   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.next_token {
   70     78   
            ser.write_string(&DESCRIBEHOSTRESERVATIONOFFERINGSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   71     79   
        }
   72     80   
        if let Some(ref val) = self.offering_set {
   73     81   
            ser.write_list(
   74     82   
                &DESCRIBEHOSTRESERVATIONOFFERINGSOUTPUT_MEMBER_OFFERING_SET,
   75     83   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   76     84   
                    for item in val {
   77     85   
                        ser.write_struct(crate::types::HostOffering::SCHEMA, item)?;
   78     86   
                    }
   79     87   
                    Ok(())
   80     88   
                },
   81     89   
            )?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl DescribeHostReservationOfferingsOutput {
   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(&DESCRIBEHOSTRESERVATIONOFFERINGSOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.next_token = Some(deser.read_string(member)?);
         112  +
                }
         113  +
                Some(1) => {
         114  +
                    builder.offering_set = Some({
         115  +
                        let mut container = Vec::new();
         116  +
                        deser.read_list(member, &mut |deser| {
         117  +
                            container.push(crate::types::HostOffering::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 DescribeHostReservationOfferingsOutput {
         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(&DESCRIBEHOSTRESERVATIONOFFERINGSOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBEHOSTRESERVATIONOFFERINGSOUTPUT_SCHEMA, &mut |member, deser| {
  101    156   
            match member.member_index() {
  102    157   
                Some(0) => {
  103    158   
                    builder.next_token = Some(deser.read_string(member)?);
  104    159   
                }
  105    160   
                Some(1) => {
  106    161   
                    builder.offering_set = Some({
  107         -
                        let container = if let Some(cap) = deser.container_size() {
  108         -
                            Vec::with_capacity(cap)
  109         -
                        } else {
  110         -
                            Vec::new()
  111         -
                        };
  112         -
                        deser.read_list(member, container, |mut list, deser| {
  113         -
                            list.push(crate::types::HostOffering::deserialize(deser)?);
  114         -
                            Ok(list)
  115         -
                        })?
         162  +
                        let mut container = Vec::new();
         163  +
                        deser.read_list(member, &mut |deser| {
         164  +
                            container.push(crate::types::HostOffering::deserialize(deser)?);
         165  +
                            Ok(())
         166  +
                        })?;
         167  +
                        container
  116    168   
                    });
  117    169   
                }
  118    170   
                _ => {}
  119    171   
            }
  120    172   
            Ok(())
  121    173   
        })?;
  122    174   
        Ok(builder.build())
  123    175   
    }
  124    176   
}
  125    177   
impl ::aws_types::request_id::RequestId for DescribeHostReservationOfferingsOutput {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/describe_host_reservations.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 `DescribeHostReservations`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeHostReservations;
    6      6   
impl DescribeHostReservations {
    7      7   
    /// Creates a new `DescribeHostReservations`
    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_host_reservations::DescribeHostReservationsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_host_reservations::DescribeHostReservationsOutput::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_host_reservations::DescribeHostReservationsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_host_reservations::DescribeHostReservationsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_host_reservations::DescribeHostReservationsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::describe_host_reservations::DescribeHostReservationsError,
  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 DescribeHostReservationsResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeHostReservationsResponseDeserializer {
  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_host_reservations::de_describe_host_reservations_http_error(status, headers, body)
  160    167   
        } else {

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

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

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

@@ -6,6 +142,194 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeHostReservationsOutput",
   28     28   
);
   29     29   
static DESCRIBEHOSTRESERVATIONSOUTPUT_MEMBER_HOST_RESERVATION_SET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeHostReservationsOutput$HostReservationSet",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeHostReservationsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "host_reservation_set",
          36  +
    "HostReservationSet",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("hostReservationSet");
   40     40   
static DESCRIBEHOSTRESERVATIONSOUTPUT_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#DescribeHostReservationsOutput$NextToken",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeHostReservationsOutput",
   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 DESCRIBEHOSTRESERVATIONSOUTPUT_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 DESCRIBEHOSTRESERVATIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBEHOSTRESERVATIONSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &DESCRIBEHOSTRESERVATIONSOUTPUT_MEMBER_HOST_RESERVATION_SET,
   56     63   
        &DESCRIBEHOSTRESERVATIONSOUTPUT_MEMBER_NEXT_TOKEN,
          64  +
        &DESCRIBEHOSTRESERVATIONSOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl DescribeHostReservationsOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEHOSTRESERVATIONSOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeHostReservationsOutput {
   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.host_reservation_set {
   70     78   
            ser.write_list(
   71     79   
                &DESCRIBEHOSTRESERVATIONSOUTPUT_MEMBER_HOST_RESERVATION_SET,
   72     80   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   73     81   
                    for item in val {
   74     82   
                        ser.write_struct(crate::types::HostReservation::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(&DESCRIBEHOSTRESERVATIONSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl DescribeHostReservationsOutput {
   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(&DESCRIBEHOSTRESERVATIONSOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.host_reservation_set = Some({
         112  +
                        let mut container = Vec::new();
         113  +
                        deser.read_list(member, &mut |deser| {
         114  +
                            container.push(crate::types::HostReservation::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 DescribeHostReservationsOutput {
         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(&DESCRIBEHOSTRESERVATIONSOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBEHOSTRESERVATIONSOUTPUT_SCHEMA, &mut |member, deser| {
  101    156   
            match member.member_index() {
  102    157   
                Some(0) => {
  103    158   
                    builder.host_reservation_set = 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::HostReservation::deserialize(deser)?);
  111         -
                            Ok(list)
  112         -
                        })?
         159  +
                        let mut container = Vec::new();
         160  +
                        deser.read_list(member, &mut |deser| {
         161  +
                            container.push(crate::types::HostReservation::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_hosts.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 `DescribeHosts`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeHosts;
    6      6   
impl DescribeHosts {
    7      7   
    /// Creates a new `DescribeHosts`
    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_hosts::DescribeHostsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_hosts::DescribeHostsOutput::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_hosts::DescribeHostsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::describe_hosts::DescribeHostsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::describe_hosts::DescribeHostsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::describe_hosts::DescribeHostsError,
  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 DescribeHostsResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeHostsResponseDeserializer {
  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_hosts::de_describe_hosts_http_error(status, headers, body)
  157    162   
        } else {

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

@@ -53,53 +257,255 @@
   73     73   
    "com.amazonaws.ec2.synthetic",
   74     74   
    "DescribeHostsInput",
   75     75   
);
   76     76   
static DESCRIBEHOSTSINPUT_MEMBER_HOST_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   77     77   
    ::aws_smithy_schema::ShapeId::from_static(
   78     78   
        "com.amazonaws.ec2.synthetic#DescribeHostsInput$HostIds",
   79     79   
        "com.amazonaws.ec2.synthetic",
   80     80   
        "DescribeHostsInput",
   81     81   
    ),
   82     82   
    ::aws_smithy_schema::ShapeType::List,
   83         -
    "host_ids",
          83  +
    "HostIds",
   84     84   
    0,
   85     85   
)
   86     86   
.with_xml_name("hostId");
   87     87   
static DESCRIBEHOSTSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.ec2.synthetic#DescribeHostsInput$NextToken",
   90     90   
        "com.amazonaws.ec2.synthetic",
   91     91   
        "DescribeHostsInput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::String,
   94         -
    "next_token",
          94  +
    "NextToken",
   95     95   
    1,
   96     96   
)
   97     97   
.with_xml_name("nextToken");
   98     98   
static DESCRIBEHOSTSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   99     99   
    ::aws_smithy_schema::ShapeId::from_static(
  100    100   
        "com.amazonaws.ec2.synthetic#DescribeHostsInput$MaxResults",
  101    101   
        "com.amazonaws.ec2.synthetic",
  102    102   
        "DescribeHostsInput",
  103    103   
    ),
  104    104   
    ::aws_smithy_schema::ShapeType::Integer,
  105         -
    "max_results",
         105  +
    "MaxResults",
  106    106   
    2,
  107    107   
)
  108    108   
.with_xml_name("maxResults");
  109    109   
static DESCRIBEHOSTSINPUT_MEMBER_FILTER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  110    110   
    ::aws_smithy_schema::ShapeId::from_static(
  111    111   
        "com.amazonaws.ec2.synthetic#DescribeHostsInput$Filter",
  112    112   
        "com.amazonaws.ec2.synthetic",
  113    113   
        "DescribeHostsInput",
  114    114   
    ),
  115    115   
    ::aws_smithy_schema::ShapeType::List,
  116         -
    "filter",
         116  +
    "Filter",
  117    117   
    3,
  118    118   
)
  119    119   
.with_xml_name("filter");
  120    120   
static DESCRIBEHOSTSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  121    121   
    DESCRIBEHOSTSINPUT_SCHEMA_ID,
  122    122   
    ::aws_smithy_schema::ShapeType::Structure,
  123    123   
    &[
  124    124   
        &DESCRIBEHOSTSINPUT_MEMBER_HOST_IDS,
  125    125   
        &DESCRIBEHOSTSINPUT_MEMBER_NEXT_TOKEN,
  126    126   
        &DESCRIBEHOSTSINPUT_MEMBER_MAX_RESULTS,
  127    127   
        &DESCRIBEHOSTSINPUT_MEMBER_FILTER,
  128    128   
    ],
  129    129   
);
  130    130   
impl DescribeHostsInput {
  131    131   
    /// The schema for this shape.
  132    132   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEHOSTSINPUT_SCHEMA;
  133    133   
}
  134    134   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeHostsInput {
  135    135   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  136    136   
    fn serialize_members(
  137    137   
        &self,
  138    138   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  139    139   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  140    140   
        if let Some(ref val) = self.host_ids {
  141    141   
            ser.write_list(
  142    142   
                &DESCRIBEHOSTSINPUT_MEMBER_HOST_IDS,
  143    143   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  144    144   
                    for item in val {
  145    145   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
  146    146   
                    }
  147    147   
                    Ok(())
  148    148   
                },
  149    149   
            )?;
  150    150   
        }
  151    151   
        if let Some(ref val) = self.next_token {
  152    152   
            ser.write_string(&DESCRIBEHOSTSINPUT_MEMBER_NEXT_TOKEN, val)?;
  153    153   
        }
  154    154   
        if let Some(ref val) = self.max_results {
  155    155   
            ser.write_integer(&DESCRIBEHOSTSINPUT_MEMBER_MAX_RESULTS, *val)?;
  156    156   
        }
  157    157   
        if let Some(ref val) = self.filter {
  158    158   
            ser.write_list(
  159    159   
                &DESCRIBEHOSTSINPUT_MEMBER_FILTER,
  160    160   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  161    161   
                    for item in val {
  162    162   
                        ser.write_struct(crate::types::Filter::SCHEMA, item)?;
  163    163   
                    }
  164    164   
                    Ok(())
  165    165   
                },
  166    166   
            )?;
  167    167   
        }
  168    168   
        Ok(())
  169    169   
    }
  170    170   
}
  171    171   
impl DescribeHostsInput {
  172    172   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  173         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  174         -
        deserializer: &mut D,
         173  +
    pub fn deserialize(
         174  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  175    175   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  176    176   
        #[allow(unused_variables, unused_mut)]
  177    177   
        let mut builder = Self::builder();
  178    178   
        #[allow(
  179    179   
            unused_variables,
  180    180   
            unreachable_code,
  181    181   
            clippy::single_match,
  182    182   
            clippy::match_single_binding,
  183    183   
            clippy::diverging_sub_expression
  184    184   
        )]
  185         -
        deserializer.read_struct(&DESCRIBEHOSTSINPUT_SCHEMA, (), |_, member, deser| {
         185  +
        deserializer.read_struct(&DESCRIBEHOSTSINPUT_SCHEMA, &mut |member, deser| {
  186    186   
            match member.member_index() {
  187    187   
                Some(0) => {
  188         -
                    builder.host_ids = Some({
  189         -
                        let container = if let Some(cap) = deser.container_size() {
  190         -
                            Vec::with_capacity(cap)
  191         -
                        } else {
  192         -
                            Vec::new()
  193         -
                        };
  194         -
                        deser.read_list(member, container, |mut list, deser| {
  195         -
                            list.push(deser.read_string(member)?);
  196         -
                            Ok(list)
  197         -
                        })?
  198         -
                    });
         188  +
                    builder.host_ids = Some(deser.read_string_list(member)?);
  199    189   
                }
  200    190   
                Some(1) => {
  201    191   
                    builder.next_token = Some(deser.read_string(member)?);
  202    192   
                }
  203    193   
                Some(2) => {
  204    194   
                    builder.max_results = Some(deser.read_integer(member)?);
  205    195   
                }
  206    196   
                Some(3) => {
  207    197   
                    builder.filter = Some({
  208         -
                        let container = if let Some(cap) = deser.container_size() {
  209         -
                            Vec::with_capacity(cap)
  210         -
                        } else {
  211         -
                            Vec::new()
  212         -
                        };
  213         -
                        deser.read_list(member, container, |mut list, deser| {
  214         -
                            list.push(crate::types::Filter::deserialize(deser)?);
  215         -
                            Ok(list)
  216         -
                        })?
         198  +
                        let mut container = Vec::new();
         199  +
                        deser.read_list(member, &mut |deser| {
         200  +
                            container.push(crate::types::Filter::deserialize(deser)?);
         201  +
                            Ok(())
         202  +
                        })?;
         203  +
                        container
  217    204   
                    });
  218    205   
                }
  219    206   
                _ => {}
  220    207   
            }
  221    208   
            Ok(())
  222    209   
        })?;
  223    210   
        builder
  224    211   
            .build()
  225    212   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  226    213   
    }
  227    214   
}
         215  +
impl DescribeHostsInput {
         216  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         217  +
    pub fn deserialize_with_response(
         218  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         219  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         220  +
        _status: u16,
         221  +
        _body: &[u8],
         222  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         223  +
        Self::deserialize(deserializer)
         224  +
    }
         225  +
}
  228    226   
impl DescribeHostsInput {
  229    227   
    /// Creates a new builder-style object to manufacture [`DescribeHostsInput`](crate::operation::describe_hosts::DescribeHostsInput).
  230    228   
    pub fn builder() -> crate::operation::describe_hosts::builders::DescribeHostsInputBuilder {
  231    229   
        crate::operation::describe_hosts::builders::DescribeHostsInputBuilder::default()
  232    230   
    }
  233    231   
}
  234    232   
  235    233   
/// A builder for [`DescribeHostsInput`](crate::operation::describe_hosts::DescribeHostsInput).
  236    234   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  237    235   
#[non_exhaustive]

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

@@ -6,6 +139,194 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeHostsOutput",
   28     28   
);
   29     29   
static DESCRIBEHOSTSOUTPUT_MEMBER_HOSTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeHostsOutput$Hosts",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeHostsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "hosts",
          36  +
    "Hosts",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("hostSet");
   40     40   
static DESCRIBEHOSTSOUTPUT_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#DescribeHostsOutput$NextToken",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeHostsOutput",
   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 DESCRIBEHOSTSOUTPUT_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 DESCRIBEHOSTSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBEHOSTSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54         -
    &[&DESCRIBEHOSTSOUTPUT_MEMBER_HOSTS, &DESCRIBEHOSTSOUTPUT_MEMBER_NEXT_TOKEN],
          61  +
    &[
          62  +
        &DESCRIBEHOSTSOUTPUT_MEMBER_HOSTS,
          63  +
        &DESCRIBEHOSTSOUTPUT_MEMBER_NEXT_TOKEN,
          64  +
        &DESCRIBEHOSTSOUTPUT_MEMBER__REQUEST_ID,
          65  +
    ],
   55     66   
);
   56     67   
impl DescribeHostsOutput {
   57     68   
    /// The schema for this shape.
   58     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEHOSTSOUTPUT_SCHEMA;
   59     70   
}
   60     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeHostsOutput {
   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.hosts {
   67     78   
            ser.write_list(
   68     79   
                &DESCRIBEHOSTSOUTPUT_MEMBER_HOSTS,
   69     80   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   70     81   
                    for item in val {
   71     82   
                        ser.write_struct(crate::types::Host::SCHEMA, item)?;
   72     83   
                    }
   73     84   
                    Ok(())
   74     85   
                },
   75     86   
            )?;
   76     87   
        }
   77     88   
        if let Some(ref val) = self.next_token {
   78     89   
            ser.write_string(&DESCRIBEHOSTSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   79     90   
        }
   80     91   
        Ok(())
   81     92   
    }
   82     93   
}
   83     94   
impl DescribeHostsOutput {
   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,
          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(&DESCRIBEHOSTSOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.hosts = Some({
         112  +
                        let mut container = Vec::new();
         113  +
                        deser.read_list(member, &mut |deser| {
         114  +
                            container.push(crate::types::Host::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 DescribeHostsOutput {
         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],
   87    142   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   88    143   
        #[allow(unused_variables, unused_mut)]
   89    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  +
        }
   90    148   
        #[allow(
   91    149   
            unused_variables,
   92    150   
            unreachable_code,
   93    151   
            clippy::single_match,
   94    152   
            clippy::match_single_binding,
   95    153   
            clippy::diverging_sub_expression
   96    154   
        )]
   97         -
        deserializer.read_struct(&DESCRIBEHOSTSOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBEHOSTSOUTPUT_SCHEMA, &mut |member, deser| {
   98    156   
            match member.member_index() {
   99    157   
                Some(0) => {
  100    158   
                    builder.hosts = Some({
  101         -
                        let container = if let Some(cap) = deser.container_size() {
  102         -
                            Vec::with_capacity(cap)
  103         -
                        } else {
  104         -
                            Vec::new()
  105         -
                        };
  106         -
                        deser.read_list(member, container, |mut list, deser| {
  107         -
                            list.push(crate::types::Host::deserialize(deser)?);
  108         -
                            Ok(list)
  109         -
                        })?
         159  +
                        let mut container = Vec::new();
         160  +
                        deser.read_list(member, &mut |deser| {
         161  +
                            container.push(crate::types::Host::deserialize(deser)?);
         162  +
                            Ok(())
         163  +
                        })?;
         164  +
                        container
  110    165   
                    });
  111    166   
                }
  112    167   
                Some(1) => {
  113    168   
                    builder.next_token = Some(deser.read_string(member)?);
  114    169   
                }
  115    170   
                _ => {}
  116    171   
            }
  117    172   
            Ok(())
  118    173   
        })?;
  119    174   
        Ok(builder.build())

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/describe_iam_instance_profile_associations.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 `DescribeIamInstanceProfileAssociations`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeIamInstanceProfileAssociations;
    6      6   
impl DescribeIamInstanceProfileAssociations {
    7      7   
    /// Creates a new `DescribeIamInstanceProfileAssociations`
    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_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsOutput::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_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::describe_iam_instance_profile_associations::DescribeIamInstanceProfileAssociationsError,
  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 DescribeIamInstanceProfileAssociationsResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeIamInstanceProfileAssociationsResponseDeserializer {
  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_iam_instance_profile_associations::de_describe_iam_instance_profile_associations_http_error(
  166    173   
                status, headers, body,