AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/enable_allowed_images_settings.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 `EnableAllowedImagesSettings`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct EnableAllowedImagesSettings;
    6      6   
impl EnableAllowedImagesSettings {
    7      7   
    /// Creates a new `EnableAllowedImagesSettings`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::enable_allowed_images_settings::EnableAllowedImagesSettingsError,
  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 EnableAllowedImagesSettingsResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for EnableAllowedImagesSettingsResponseDeserializer {
  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_enable_allowed_images_settings::de_enable_allowed_images_settings_http_error(status, headers, body)
  160    167   
        } else {

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

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

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

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

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

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

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/enable_ebs_encryption_by_default.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 `EnableEbsEncryptionByDefault`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct EnableEbsEncryptionByDefault;
    6      6   
impl EnableEbsEncryptionByDefault {
    7      7   
    /// Creates a new `EnableEbsEncryptionByDefault`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::enable_ebs_encryption_by_default::EnableEbsEncryptionByDefaultError,
  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 EnableEbsEncryptionByDefaultResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for EnableEbsEncryptionByDefaultResponseDeserializer {
  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_enable_ebs_encryption_by_default::de_enable_ebs_encryption_by_default_http_error(status, headers, body)
  160    167   
        } else {

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/enable_fast_launch.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 `EnableFastLaunch`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct EnableFastLaunch;
    6      6   
impl EnableFastLaunch {
    7      7   
    /// Creates a new `EnableFastLaunch`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::enable_fast_launch::EnableFastLaunchInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::enable_fast_launch::EnableFastLaunchOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::enable_fast_launch::EnableFastLaunchInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::enable_fast_launch::EnableFastLaunchOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::enable_fast_launch::EnableFastLaunchError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::enable_fast_launch::EnableFastLaunchError,
  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 EnableFastLaunchResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for EnableFastLaunchResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150    155   
        let headers = response.headers();
  151    156   
        let body = response.body().bytes().expect("body loaded");
  152    157   
        #[allow(unused_mut)]
  153    158   
        let mut force_error = false;
  154    159   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155    160   
        let parse_result = if !success && status != 200 || force_error {
  156    161   
            crate::protocol_serde::shape_enable_fast_launch::de_enable_fast_launch_http_error(status, headers, body)
  157    162   
        } else {

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

@@ -27,27 +225,237 @@
   47     47   
    "com.amazonaws.ec2.synthetic",
   48     48   
    "EnableFastLaunchInput",
   49     49   
);
   50     50   
static ENABLEFASTLAUNCHINPUT_MEMBER_IMAGE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   51     51   
    ::aws_smithy_schema::ShapeId::from_static(
   52     52   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchInput$ImageId",
   53     53   
        "com.amazonaws.ec2.synthetic",
   54     54   
        "EnableFastLaunchInput",
   55     55   
    ),
   56     56   
    ::aws_smithy_schema::ShapeType::String,
   57         -
    "image_id",
          57  +
    "ImageId",
   58     58   
    0,
   59     59   
);
   60     60   
static ENABLEFASTLAUNCHINPUT_MEMBER_RESOURCE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   61     61   
    ::aws_smithy_schema::ShapeId::from_static(
   62     62   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchInput$ResourceType",
   63     63   
        "com.amazonaws.ec2.synthetic",
   64     64   
        "EnableFastLaunchInput",
   65     65   
    ),
   66     66   
    ::aws_smithy_schema::ShapeType::String,
   67         -
    "resource_type",
          67  +
    "ResourceType",
   68     68   
    1,
   69     69   
);
   70     70   
static ENABLEFASTLAUNCHINPUT_MEMBER_SNAPSHOT_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   71     71   
    ::aws_smithy_schema::ShapeId::from_static(
   72     72   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchInput$SnapshotConfiguration",
   73     73   
        "com.amazonaws.ec2.synthetic",
   74     74   
        "EnableFastLaunchInput",
   75     75   
    ),
   76     76   
    ::aws_smithy_schema::ShapeType::Structure,
   77         -
    "snapshot_configuration",
          77  +
    "SnapshotConfiguration",
   78     78   
    2,
   79     79   
);
   80     80   
static ENABLEFASTLAUNCHINPUT_MEMBER_LAUNCH_TEMPLATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   81     81   
    ::aws_smithy_schema::ShapeId::from_static(
   82     82   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchInput$LaunchTemplate",
   83     83   
        "com.amazonaws.ec2.synthetic",
   84     84   
        "EnableFastLaunchInput",
   85     85   
    ),
   86     86   
    ::aws_smithy_schema::ShapeType::Structure,
   87         -
    "launch_template",
          87  +
    "LaunchTemplate",
   88     88   
    3,
   89     89   
);
   90     90   
static ENABLEFASTLAUNCHINPUT_MEMBER_MAX_PARALLEL_LAUNCHES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static(
   92     92   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchInput$MaxParallelLaunches",
   93     93   
        "com.amazonaws.ec2.synthetic",
   94     94   
        "EnableFastLaunchInput",
   95     95   
    ),
   96     96   
    ::aws_smithy_schema::ShapeType::Integer,
   97         -
    "max_parallel_launches",
          97  +
    "MaxParallelLaunches",
   98     98   
    4,
   99     99   
);
  100    100   
static ENABLEFASTLAUNCHINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  101    101   
    ::aws_smithy_schema::ShapeId::from_static(
  102    102   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchInput$DryRun",
  103    103   
        "com.amazonaws.ec2.synthetic",
  104    104   
        "EnableFastLaunchInput",
  105    105   
    ),
  106    106   
    ::aws_smithy_schema::ShapeType::Boolean,
  107         -
    "dry_run",
         107  +
    "DryRun",
  108    108   
    5,
  109    109   
);
  110    110   
static ENABLEFASTLAUNCHINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  111    111   
    ENABLEFASTLAUNCHINPUT_SCHEMA_ID,
  112    112   
    ::aws_smithy_schema::ShapeType::Structure,
  113    113   
    &[
  114    114   
        &ENABLEFASTLAUNCHINPUT_MEMBER_IMAGE_ID,
  115    115   
        &ENABLEFASTLAUNCHINPUT_MEMBER_RESOURCE_TYPE,
  116    116   
        &ENABLEFASTLAUNCHINPUT_MEMBER_SNAPSHOT_CONFIGURATION,
  117    117   
        &ENABLEFASTLAUNCHINPUT_MEMBER_LAUNCH_TEMPLATE,
  118    118   
        &ENABLEFASTLAUNCHINPUT_MEMBER_MAX_PARALLEL_LAUNCHES,
  119    119   
        &ENABLEFASTLAUNCHINPUT_MEMBER_DRY_RUN,
  120    120   
    ],
  121    121   
);
  122    122   
impl EnableFastLaunchInput {
  123    123   
    /// The schema for this shape.
  124    124   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ENABLEFASTLAUNCHINPUT_SCHEMA;
  125    125   
}
  126    126   
impl ::aws_smithy_schema::serde::SerializableStruct for EnableFastLaunchInput {
  127    127   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  128    128   
    fn serialize_members(
  129    129   
        &self,
  130    130   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  131    131   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  132    132   
        if let Some(ref val) = self.image_id {
  133    133   
            ser.write_string(&ENABLEFASTLAUNCHINPUT_MEMBER_IMAGE_ID, val)?;
  134    134   
        }
  135    135   
        if let Some(ref val) = self.resource_type {
  136    136   
            ser.write_string(&ENABLEFASTLAUNCHINPUT_MEMBER_RESOURCE_TYPE, val)?;
  137    137   
        }
  138    138   
        if let Some(ref val) = self.snapshot_configuration {
  139    139   
            ser.write_struct(&ENABLEFASTLAUNCHINPUT_MEMBER_SNAPSHOT_CONFIGURATION, val)?;
  140    140   
        }
  141    141   
        if let Some(ref val) = self.launch_template {
  142    142   
            ser.write_struct(&ENABLEFASTLAUNCHINPUT_MEMBER_LAUNCH_TEMPLATE, val)?;
  143    143   
        }
  144    144   
        if let Some(ref val) = self.max_parallel_launches {
  145    145   
            ser.write_integer(&ENABLEFASTLAUNCHINPUT_MEMBER_MAX_PARALLEL_LAUNCHES, *val)?;
  146    146   
        }
  147    147   
        if let Some(ref val) = self.dry_run {
  148    148   
            ser.write_boolean(&ENABLEFASTLAUNCHINPUT_MEMBER_DRY_RUN, *val)?;
  149    149   
        }
  150    150   
        Ok(())
  151    151   
    }
  152    152   
}
  153    153   
impl EnableFastLaunchInput {
  154    154   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  155         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  156         -
        deserializer: &mut D,
         155  +
    pub fn deserialize(
         156  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  157    157   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  158    158   
        #[allow(unused_variables, unused_mut)]
  159    159   
        let mut builder = Self::builder();
  160    160   
        #[allow(
  161    161   
            unused_variables,
  162    162   
            unreachable_code,
  163    163   
            clippy::single_match,
  164    164   
            clippy::match_single_binding,
  165    165   
            clippy::diverging_sub_expression
  166    166   
        )]
  167         -
        deserializer.read_struct(&ENABLEFASTLAUNCHINPUT_SCHEMA, (), |_, member, deser| {
         167  +
        deserializer.read_struct(&ENABLEFASTLAUNCHINPUT_SCHEMA, &mut |member, deser| {
  168    168   
            match member.member_index() {
  169    169   
                Some(0) => {
  170    170   
                    builder.image_id = Some(deser.read_string(member)?);
  171    171   
                }
  172    172   
                Some(1) => {
  173    173   
                    builder.resource_type = Some(deser.read_string(member)?);
  174    174   
                }
  175    175   
                Some(2) => {
  176    176   
                    builder.snapshot_configuration = Some(crate::types::FastLaunchSnapshotConfigurationRequest::deserialize(deser)?);
  177    177   
                }
  178    178   
                Some(3) => {
  179    179   
                    builder.launch_template = Some(crate::types::FastLaunchLaunchTemplateSpecificationRequest::deserialize(deser)?);
  180    180   
                }
  181    181   
                Some(4) => {
  182    182   
                    builder.max_parallel_launches = Some(deser.read_integer(member)?);
  183    183   
                }
  184    184   
                Some(5) => {
  185    185   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  186    186   
                }
  187    187   
                _ => {}
  188    188   
            }
  189    189   
            Ok(())
  190    190   
        })?;
         191  +
        builder.image_id = builder.image_id.or(Some(String::new()));
  191    192   
        builder
  192    193   
            .build()
  193    194   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  194    195   
    }
  195    196   
}
         197  +
impl EnableFastLaunchInput {
         198  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         199  +
    pub fn deserialize_with_response(
         200  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         201  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         202  +
        _status: u16,
         203  +
        _body: &[u8],
         204  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         205  +
        Self::deserialize(deserializer)
         206  +
    }
         207  +
}
  196    208   
impl EnableFastLaunchInput {
  197    209   
    /// Creates a new builder-style object to manufacture [`EnableFastLaunchInput`](crate::operation::enable_fast_launch::EnableFastLaunchInput).
  198    210   
    pub fn builder() -> crate::operation::enable_fast_launch::builders::EnableFastLaunchInputBuilder {
  199    211   
        crate::operation::enable_fast_launch::builders::EnableFastLaunchInputBuilder::default()
  200    212   
    }
  201    213   
}
  202    214   
  203    215   
/// A builder for [`EnableFastLaunchInput`](crate::operation::enable_fast_launch::EnableFastLaunchInput).
  204    216   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  205    217   
#[non_exhaustive]

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

@@ -46,46 +267,336 @@
   66     66   
    "com.amazonaws.ec2.synthetic",
   67     67   
    "EnableFastLaunchOutput",
   68     68   
);
   69     69   
static ENABLEFASTLAUNCHOUTPUT_MEMBER_IMAGE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   70     70   
    ::aws_smithy_schema::ShapeId::from_static(
   71     71   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchOutput$ImageId",
   72     72   
        "com.amazonaws.ec2.synthetic",
   73     73   
        "EnableFastLaunchOutput",
   74     74   
    ),
   75     75   
    ::aws_smithy_schema::ShapeType::String,
   76         -
    "image_id",
          76  +
    "ImageId",
   77     77   
    0,
   78     78   
)
   79     79   
.with_xml_name("imageId");
   80     80   
static ENABLEFASTLAUNCHOUTPUT_MEMBER_RESOURCE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   81     81   
    ::aws_smithy_schema::ShapeId::from_static(
   82     82   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchOutput$ResourceType",
   83     83   
        "com.amazonaws.ec2.synthetic",
   84     84   
        "EnableFastLaunchOutput",
   85     85   
    ),
   86     86   
    ::aws_smithy_schema::ShapeType::String,
   87         -
    "resource_type",
          87  +
    "ResourceType",
   88     88   
    1,
   89     89   
)
   90     90   
.with_xml_name("resourceType");
   91     91   
static ENABLEFASTLAUNCHOUTPUT_MEMBER_SNAPSHOT_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   92     92   
    ::aws_smithy_schema::ShapeId::from_static(
   93     93   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchOutput$SnapshotConfiguration",
   94     94   
        "com.amazonaws.ec2.synthetic",
   95     95   
        "EnableFastLaunchOutput",
   96     96   
    ),
   97     97   
    ::aws_smithy_schema::ShapeType::Structure,
   98         -
    "snapshot_configuration",
          98  +
    "SnapshotConfiguration",
   99     99   
    2,
  100    100   
)
  101    101   
.with_xml_name("snapshotConfiguration");
  102    102   
static ENABLEFASTLAUNCHOUTPUT_MEMBER_LAUNCH_TEMPLATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  103    103   
    ::aws_smithy_schema::ShapeId::from_static(
  104    104   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchOutput$LaunchTemplate",
  105    105   
        "com.amazonaws.ec2.synthetic",
  106    106   
        "EnableFastLaunchOutput",
  107    107   
    ),
  108    108   
    ::aws_smithy_schema::ShapeType::Structure,
  109         -
    "launch_template",
         109  +
    "LaunchTemplate",
  110    110   
    3,
  111    111   
)
  112    112   
.with_xml_name("launchTemplate");
  113    113   
static ENABLEFASTLAUNCHOUTPUT_MEMBER_MAX_PARALLEL_LAUNCHES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  114    114   
    ::aws_smithy_schema::ShapeId::from_static(
  115    115   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchOutput$MaxParallelLaunches",
  116    116   
        "com.amazonaws.ec2.synthetic",
  117    117   
        "EnableFastLaunchOutput",
  118    118   
    ),
  119    119   
    ::aws_smithy_schema::ShapeType::Integer,
  120         -
    "max_parallel_launches",
         120  +
    "MaxParallelLaunches",
  121    121   
    4,
  122    122   
)
  123    123   
.with_xml_name("maxParallelLaunches");
  124    124   
static ENABLEFASTLAUNCHOUTPUT_MEMBER_OWNER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  125    125   
    ::aws_smithy_schema::ShapeId::from_static(
  126    126   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchOutput$OwnerId",
  127    127   
        "com.amazonaws.ec2.synthetic",
  128    128   
        "EnableFastLaunchOutput",
  129    129   
    ),
  130    130   
    ::aws_smithy_schema::ShapeType::String,
  131         -
    "owner_id",
         131  +
    "OwnerId",
  132    132   
    5,
  133    133   
)
  134    134   
.with_xml_name("ownerId");
  135    135   
static ENABLEFASTLAUNCHOUTPUT_MEMBER_STATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  136    136   
    ::aws_smithy_schema::ShapeId::from_static(
  137    137   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchOutput$State",
  138    138   
        "com.amazonaws.ec2.synthetic",
  139    139   
        "EnableFastLaunchOutput",
  140    140   
    ),
  141    141   
    ::aws_smithy_schema::ShapeType::String,
  142         -
    "state",
         142  +
    "State",
  143    143   
    6,
  144    144   
)
  145    145   
.with_xml_name("state");
  146    146   
static ENABLEFASTLAUNCHOUTPUT_MEMBER_STATE_TRANSITION_REASON: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  147    147   
    ::aws_smithy_schema::ShapeId::from_static(
  148    148   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchOutput$StateTransitionReason",
  149    149   
        "com.amazonaws.ec2.synthetic",
  150    150   
        "EnableFastLaunchOutput",
  151    151   
    ),
  152    152   
    ::aws_smithy_schema::ShapeType::String,
  153         -
    "state_transition_reason",
         153  +
    "StateTransitionReason",
  154    154   
    7,
  155    155   
)
  156    156   
.with_xml_name("stateTransitionReason");
  157    157   
static ENABLEFASTLAUNCHOUTPUT_MEMBER_STATE_TRANSITION_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  158    158   
    ::aws_smithy_schema::ShapeId::from_static(
  159    159   
        "com.amazonaws.ec2.synthetic#EnableFastLaunchOutput$StateTransitionTime",
  160    160   
        "com.amazonaws.ec2.synthetic",
  161    161   
        "EnableFastLaunchOutput",
  162    162   
    ),
  163    163   
    ::aws_smithy_schema::ShapeType::Timestamp,
  164         -
    "state_transition_time",
         164  +
    "StateTransitionTime",
  165    165   
    8,
  166    166   
)
  167    167   
.with_xml_name("stateTransitionTime");
         168  +
static ENABLEFASTLAUNCHOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         169  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         170  +
    ::aws_smithy_schema::ShapeType::String,
         171  +
    "request_id",
         172  +
    9,
         173  +
)
         174  +
.with_http_header("x-amzn-requestid");
  168    175   
static ENABLEFASTLAUNCHOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  169    176   
    ENABLEFASTLAUNCHOUTPUT_SCHEMA_ID,
  170    177   
    ::aws_smithy_schema::ShapeType::Structure,
  171    178   
    &[
  172    179   
        &ENABLEFASTLAUNCHOUTPUT_MEMBER_IMAGE_ID,
  173    180   
        &ENABLEFASTLAUNCHOUTPUT_MEMBER_RESOURCE_TYPE,
  174    181   
        &ENABLEFASTLAUNCHOUTPUT_MEMBER_SNAPSHOT_CONFIGURATION,
  175    182   
        &ENABLEFASTLAUNCHOUTPUT_MEMBER_LAUNCH_TEMPLATE,
  176    183   
        &ENABLEFASTLAUNCHOUTPUT_MEMBER_MAX_PARALLEL_LAUNCHES,
  177    184   
        &ENABLEFASTLAUNCHOUTPUT_MEMBER_OWNER_ID,
  178    185   
        &ENABLEFASTLAUNCHOUTPUT_MEMBER_STATE,
  179    186   
        &ENABLEFASTLAUNCHOUTPUT_MEMBER_STATE_TRANSITION_REASON,
  180    187   
        &ENABLEFASTLAUNCHOUTPUT_MEMBER_STATE_TRANSITION_TIME,
         188  +
        &ENABLEFASTLAUNCHOUTPUT_MEMBER__REQUEST_ID,
  181    189   
    ],
  182    190   
);
  183    191   
impl EnableFastLaunchOutput {
  184    192   
    /// The schema for this shape.
  185    193   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ENABLEFASTLAUNCHOUTPUT_SCHEMA;
  186    194   
}
  187    195   
impl ::aws_smithy_schema::serde::SerializableStruct for EnableFastLaunchOutput {
  188    196   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  189    197   
    fn serialize_members(
  190    198   
        &self,
  191    199   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  192    200   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  193    201   
        if let Some(ref val) = self.image_id {
  194    202   
            ser.write_string(&ENABLEFASTLAUNCHOUTPUT_MEMBER_IMAGE_ID, val)?;
  195    203   
        }
  196    204   
        if let Some(ref val) = self.resource_type {
  197    205   
            ser.write_string(&ENABLEFASTLAUNCHOUTPUT_MEMBER_RESOURCE_TYPE, val.as_str())?;
  198    206   
        }
  199    207   
        if let Some(ref val) = self.snapshot_configuration {
  200    208   
            ser.write_struct(&ENABLEFASTLAUNCHOUTPUT_MEMBER_SNAPSHOT_CONFIGURATION, val)?;
  201    209   
        }
  202    210   
        if let Some(ref val) = self.launch_template {
  203    211   
            ser.write_struct(&ENABLEFASTLAUNCHOUTPUT_MEMBER_LAUNCH_TEMPLATE, val)?;
  204    212   
        }
  205    213   
        if let Some(ref val) = self.max_parallel_launches {
  206    214   
            ser.write_integer(&ENABLEFASTLAUNCHOUTPUT_MEMBER_MAX_PARALLEL_LAUNCHES, *val)?;
  207    215   
        }
  208    216   
        if let Some(ref val) = self.owner_id {
  209    217   
            ser.write_string(&ENABLEFASTLAUNCHOUTPUT_MEMBER_OWNER_ID, val)?;
  210    218   
        }
  211    219   
        if let Some(ref val) = self.state {
  212    220   
            ser.write_string(&ENABLEFASTLAUNCHOUTPUT_MEMBER_STATE, val.as_str())?;
  213    221   
        }
  214    222   
        if let Some(ref val) = self.state_transition_reason {
  215    223   
            ser.write_string(&ENABLEFASTLAUNCHOUTPUT_MEMBER_STATE_TRANSITION_REASON, val)?;
  216    224   
        }
  217    225   
        if let Some(ref val) = self.state_transition_time {
  218    226   
            ser.write_timestamp(&ENABLEFASTLAUNCHOUTPUT_MEMBER_STATE_TRANSITION_TIME, val)?;
  219    227   
        }
  220    228   
        Ok(())
  221    229   
    }
  222    230   
}
  223    231   
impl EnableFastLaunchOutput {
  224    232   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  225         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  226         -
        deserializer: &mut D,
         233  +
    pub fn deserialize(
         234  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         235  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         236  +
        #[allow(unused_variables, unused_mut)]
         237  +
        let mut builder = Self::builder();
         238  +
        #[allow(
         239  +
            unused_variables,
         240  +
            unreachable_code,
         241  +
            clippy::single_match,
         242  +
            clippy::match_single_binding,
         243  +
            clippy::diverging_sub_expression
         244  +
        )]
         245  +
        deserializer.read_struct(&ENABLEFASTLAUNCHOUTPUT_SCHEMA, &mut |member, deser| {
         246  +
            match member.member_index() {
         247  +
                Some(0) => {
         248  +
                    builder.image_id = Some(deser.read_string(member)?);
         249  +
                }
         250  +
                Some(1) => {
         251  +
                    builder.resource_type = Some(crate::types::FastLaunchResourceType::from(deser.read_string(member)?.as_str()));
         252  +
                }
         253  +
                Some(2) => {
         254  +
                    builder.snapshot_configuration = Some(crate::types::FastLaunchSnapshotConfigurationResponse::deserialize(deser)?);
         255  +
                }
         256  +
                Some(3) => {
         257  +
                    builder.launch_template = Some(crate::types::FastLaunchLaunchTemplateSpecificationResponse::deserialize(deser)?);
         258  +
                }
         259  +
                Some(4) => {
         260  +
                    builder.max_parallel_launches = Some(deser.read_integer(member)?);
         261  +
                }
         262  +
                Some(5) => {
         263  +
                    builder.owner_id = Some(deser.read_string(member)?);
         264  +
                }
         265  +
                Some(6) => {
         266  +
                    builder.state = Some(crate::types::FastLaunchStateCode::from(deser.read_string(member)?.as_str()));
         267  +
                }
         268  +
                Some(7) => {
         269  +
                    builder.state_transition_reason = Some(deser.read_string(member)?);
         270  +
                }
         271  +
                Some(8) => {
         272  +
                    builder.state_transition_time = Some(deser.read_timestamp(member)?);
         273  +
                }
         274  +
                Some(9) => {
         275  +
                    builder._request_id = Some(deser.read_string(member)?);
         276  +
                }
         277  +
                _ => {}
         278  +
            }
         279  +
            Ok(())
         280  +
        })?;
         281  +
        Ok(builder.build())
         282  +
    }
         283  +
}
         284  +
impl EnableFastLaunchOutput {
         285  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         286  +
    /// Header-bound members are read directly from headers, avoiding runtime
         287  +
    /// member iteration overhead. Body members are read via the deserializer.
         288  +
    pub fn deserialize_with_response(
         289  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         290  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         291  +
        _status: u16,
         292  +
        _body: &[u8],
  227    293   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  228    294   
        #[allow(unused_variables, unused_mut)]
  229    295   
        let mut builder = Self::builder();
         296  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         297  +
            builder._request_id = Some(val.to_string());
         298  +
        }
  230    299   
        #[allow(
  231    300   
            unused_variables,
  232    301   
            unreachable_code,
  233    302   
            clippy::single_match,
  234    303   
            clippy::match_single_binding,
  235    304   
            clippy::diverging_sub_expression
  236    305   
        )]
  237         -
        deserializer.read_struct(&ENABLEFASTLAUNCHOUTPUT_SCHEMA, (), |_, member, deser| {
         306  +
        deserializer.read_struct(&ENABLEFASTLAUNCHOUTPUT_SCHEMA, &mut |member, deser| {
  238    307   
            match member.member_index() {
  239    308   
                Some(0) => {
  240    309   
                    builder.image_id = Some(deser.read_string(member)?);
  241    310   
                }
  242    311   
                Some(1) => {
  243    312   
                    builder.resource_type = Some(crate::types::FastLaunchResourceType::from(deser.read_string(member)?.as_str()));
  244    313   
                }
  245    314   
                Some(2) => {
  246    315   
                    builder.snapshot_configuration = Some(crate::types::FastLaunchSnapshotConfigurationResponse::deserialize(deser)?);
  247    316   
                }

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/enable_fast_snapshot_restores.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 `EnableFastSnapshotRestores`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct EnableFastSnapshotRestores;
    6      6   
impl EnableFastSnapshotRestores {
    7      7   
    /// Creates a new `EnableFastSnapshotRestores`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError,
  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 EnableFastSnapshotRestoresResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for EnableFastSnapshotRestoresResponseDeserializer {
  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_enable_fast_snapshot_restores::de_enable_fast_snapshot_restores_http_error(status, headers, body)
  160    167   
        } else {

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

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

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

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

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `EnableImage`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct EnableImage;
    6      6   
impl EnableImage {
    7      7   
    /// Creates a new `EnableImage`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::enable_image::EnableImageInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::enable_image::EnableImageOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::enable_image::EnableImageInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::enable_image::EnableImageOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::enable_image::EnableImageError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::enable_image::EnableImageError,
  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 EnableImageResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for EnableImageResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150    155   
        let headers = response.headers();
  151    156   
        let body = response.body().bytes().expect("body loaded");
  152    157   
        #[allow(unused_mut)]
  153    158   
        let mut force_error = false;
  154    159   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155    160   
        let parse_result = if !success && status != 200 || force_error {
  156    161   
            crate::protocol_serde::shape_enable_image::de_enable_image_http_error(status, headers, body)
  157    162   
        } else {