AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c

Files changed:

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

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

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

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

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

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

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

@@ -3,3 +133,145 @@
   23     23   
    "com.amazonaws.ec2.synthetic",
   24     24   
    "GetDeclarativePoliciesReportSummaryInput",
   25     25   
);
   26     26   
static GETDECLARATIVEPOLICIESREPORTSUMMARYINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   27     27   
    ::aws_smithy_schema::ShapeId::from_static(
   28     28   
        "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryInput$DryRun",
   29     29   
        "com.amazonaws.ec2.synthetic",
   30     30   
        "GetDeclarativePoliciesReportSummaryInput",
   31     31   
    ),
   32     32   
    ::aws_smithy_schema::ShapeType::Boolean,
   33         -
    "dry_run",
          33  +
    "DryRun",
   34     34   
    0,
   35     35   
);
   36     36   
static GETDECLARATIVEPOLICIESREPORTSUMMARYINPUT_MEMBER_REPORT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static(
   38     38   
        "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryInput$ReportId",
   39     39   
        "com.amazonaws.ec2.synthetic",
   40     40   
        "GetDeclarativePoliciesReportSummaryInput",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::String,
   43         -
    "report_id",
          43  +
    "ReportId",
   44     44   
    1,
   45     45   
);
   46     46   
static GETDECLARATIVEPOLICIESREPORTSUMMARYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   47     47   
    GETDECLARATIVEPOLICIESREPORTSUMMARYINPUT_SCHEMA_ID,
   48     48   
    ::aws_smithy_schema::ShapeType::Structure,
   49     49   
    &[
   50     50   
        &GETDECLARATIVEPOLICIESREPORTSUMMARYINPUT_MEMBER_DRY_RUN,
   51     51   
        &GETDECLARATIVEPOLICIESREPORTSUMMARYINPUT_MEMBER_REPORT_ID,
   52     52   
    ],
   53     53   
);
   54     54   
impl GetDeclarativePoliciesReportSummaryInput {
   55     55   
    /// The schema for this shape.
   56     56   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETDECLARATIVEPOLICIESREPORTSUMMARYINPUT_SCHEMA;
   57     57   
}
   58     58   
impl ::aws_smithy_schema::serde::SerializableStruct for GetDeclarativePoliciesReportSummaryInput {
   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.dry_run {
   65     65   
            ser.write_boolean(&GETDECLARATIVEPOLICIESREPORTSUMMARYINPUT_MEMBER_DRY_RUN, *val)?;
   66     66   
        }
   67     67   
        if let Some(ref val) = self.report_id {
   68     68   
            ser.write_string(&GETDECLARATIVEPOLICIESREPORTSUMMARYINPUT_MEMBER_REPORT_ID, val)?;
   69     69   
        }
   70     70   
        Ok(())
   71     71   
    }
   72     72   
}
   73     73   
impl GetDeclarativePoliciesReportSummaryInput {
   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(&GETDECLARATIVEPOLICIESREPORTSUMMARYINPUT_SCHEMA, (), |_, member, deser| {
          87  +
        deserializer.read_struct(&GETDECLARATIVEPOLICIESREPORTSUMMARYINPUT_SCHEMA, &mut |member, deser| {
   88     88   
            match member.member_index() {
   89     89   
                Some(0) => {
   90     90   
                    builder.dry_run = Some(deser.read_boolean(member)?);
   91     91   
                }
   92     92   
                Some(1) => {
   93     93   
                    builder.report_id = Some(deser.read_string(member)?);
   94     94   
                }
   95     95   
                _ => {}
   96     96   
            }
   97     97   
            Ok(())
   98     98   
        })?;
          99  +
        builder.report_id = builder.report_id.or(Some(String::new()));
   99    100   
        builder
  100    101   
            .build()
  101    102   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  102    103   
    }
  103    104   
}
         105  +
impl GetDeclarativePoliciesReportSummaryInput {
         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  +
}
  104    116   
impl GetDeclarativePoliciesReportSummaryInput {
  105    117   
    /// Creates a new builder-style object to manufacture [`GetDeclarativePoliciesReportSummaryInput`](crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryInput).
  106    118   
    pub fn builder() -> crate::operation::get_declarative_policies_report_summary::builders::GetDeclarativePoliciesReportSummaryInputBuilder {
  107    119   
        crate::operation::get_declarative_policies_report_summary::builders::GetDeclarativePoliciesReportSummaryInputBuilder::default()
  108    120   
    }
  109    121   
}
  110    122   
  111    123   
/// A builder for [`GetDeclarativePoliciesReportSummaryInput`](crate::operation::get_declarative_policies_report_summary::GetDeclarativePoliciesReportSummaryInput).
  112    124   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  113    125   
#[non_exhaustive]

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

@@ -66,66 +332,405 @@
   86     86   
    "com.amazonaws.ec2.synthetic",
   87     87   
    "GetDeclarativePoliciesReportSummaryOutput",
   88     88   
);
   89     89   
static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_REPORT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   90     90   
    ::aws_smithy_schema::ShapeId::from_static(
   91     91   
        "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$ReportId",
   92     92   
        "com.amazonaws.ec2.synthetic",
   93     93   
        "GetDeclarativePoliciesReportSummaryOutput",
   94     94   
    ),
   95     95   
    ::aws_smithy_schema::ShapeType::String,
   96         -
    "report_id",
          96  +
    "ReportId",
   97     97   
    0,
   98     98   
)
   99     99   
.with_xml_name("reportId");
  100    100   
static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_S3_BUCKET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  101    101   
    ::aws_smithy_schema::ShapeId::from_static(
  102    102   
        "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$S3Bucket",
  103    103   
        "com.amazonaws.ec2.synthetic",
  104    104   
        "GetDeclarativePoliciesReportSummaryOutput",
  105    105   
    ),
  106    106   
    ::aws_smithy_schema::ShapeType::String,
  107         -
    "s3_bucket",
         107  +
    "S3Bucket",
  108    108   
    1,
  109    109   
)
  110    110   
.with_xml_name("s3Bucket");
  111    111   
static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_S3_PREFIX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  112    112   
    ::aws_smithy_schema::ShapeId::from_static(
  113    113   
        "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$S3Prefix",
  114    114   
        "com.amazonaws.ec2.synthetic",
  115    115   
        "GetDeclarativePoliciesReportSummaryOutput",
  116    116   
    ),
  117    117   
    ::aws_smithy_schema::ShapeType::String,
  118         -
    "s3_prefix",
         118  +
    "S3Prefix",
  119    119   
    2,
  120    120   
)
  121    121   
.with_xml_name("s3Prefix");
  122    122   
static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_TARGET_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  123    123   
    ::aws_smithy_schema::ShapeId::from_static(
  124    124   
        "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$TargetId",
  125    125   
        "com.amazonaws.ec2.synthetic",
  126    126   
        "GetDeclarativePoliciesReportSummaryOutput",
  127    127   
    ),
  128    128   
    ::aws_smithy_schema::ShapeType::String,
  129         -
    "target_id",
         129  +
    "TargetId",
  130    130   
    3,
  131    131   
)
  132    132   
.with_xml_name("targetId");
  133    133   
static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_START_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  134    134   
    ::aws_smithy_schema::ShapeId::from_static(
  135    135   
        "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$StartTime",
  136    136   
        "com.amazonaws.ec2.synthetic",
  137    137   
        "GetDeclarativePoliciesReportSummaryOutput",
  138    138   
    ),
  139    139   
    ::aws_smithy_schema::ShapeType::Timestamp,
  140         -
    "start_time",
         140  +
    "StartTime",
  141    141   
    4,
  142    142   
)
  143    143   
.with_xml_name("startTime");
  144    144   
static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_END_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  145    145   
    ::aws_smithy_schema::ShapeId::from_static(
  146    146   
        "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$EndTime",
  147    147   
        "com.amazonaws.ec2.synthetic",
  148    148   
        "GetDeclarativePoliciesReportSummaryOutput",
  149    149   
    ),
  150    150   
    ::aws_smithy_schema::ShapeType::Timestamp,
  151         -
    "end_time",
         151  +
    "EndTime",
  152    152   
    5,
  153    153   
)
  154    154   
.with_xml_name("endTime");
  155    155   
static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_NUMBER_OF_ACCOUNTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  156    156   
    ::aws_smithy_schema::ShapeId::from_static(
  157    157   
        "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$NumberOfAccounts",
  158    158   
        "com.amazonaws.ec2.synthetic",
  159    159   
        "GetDeclarativePoliciesReportSummaryOutput",
  160    160   
    ),
  161    161   
    ::aws_smithy_schema::ShapeType::Integer,
  162         -
    "number_of_accounts",
         162  +
    "NumberOfAccounts",
  163    163   
    6,
  164    164   
)
  165    165   
.with_xml_name("numberOfAccounts");
  166    166   
static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_NUMBER_OF_FAILED_ACCOUNTS: ::aws_smithy_schema::Schema =
  167    167   
    ::aws_smithy_schema::Schema::new_member(
  168    168   
        ::aws_smithy_schema::ShapeId::from_static(
  169    169   
            "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$NumberOfFailedAccounts",
  170    170   
            "com.amazonaws.ec2.synthetic",
  171    171   
            "GetDeclarativePoliciesReportSummaryOutput",
  172    172   
        ),
  173    173   
        ::aws_smithy_schema::ShapeType::Integer,
  174         -
        "number_of_failed_accounts",
         174  +
        "NumberOfFailedAccounts",
  175    175   
        7,
  176    176   
    )
  177    177   
    .with_xml_name("numberOfFailedAccounts");
  178    178   
static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_ATTRIBUTE_SUMMARIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  179    179   
    ::aws_smithy_schema::ShapeId::from_static(
  180    180   
        "com.amazonaws.ec2.synthetic#GetDeclarativePoliciesReportSummaryOutput$AttributeSummaries",
  181    181   
        "com.amazonaws.ec2.synthetic",
  182    182   
        "GetDeclarativePoliciesReportSummaryOutput",
  183    183   
    ),
  184    184   
    ::aws_smithy_schema::ShapeType::List,
  185         -
    "attribute_summaries",
         185  +
    "AttributeSummaries",
  186    186   
    8,
  187    187   
)
  188    188   
.with_xml_name("attributeSummarySet");
         189  +
static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         190  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         191  +
    ::aws_smithy_schema::ShapeType::String,
         192  +
    "request_id",
         193  +
    9,
         194  +
)
         195  +
.with_http_header("x-amzn-requestid");
  189    196   
static GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  190    197   
    GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_SCHEMA_ID,
  191    198   
    ::aws_smithy_schema::ShapeType::Structure,
  192    199   
    &[
  193    200   
        &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_REPORT_ID,
  194    201   
        &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_S3_BUCKET,
  195    202   
        &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_S3_PREFIX,
  196    203   
        &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_TARGET_ID,
  197    204   
        &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_START_TIME,
  198    205   
        &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_END_TIME,
  199    206   
        &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_NUMBER_OF_ACCOUNTS,
  200    207   
        &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_NUMBER_OF_FAILED_ACCOUNTS,
  201    208   
        &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_ATTRIBUTE_SUMMARIES,
         209  +
        &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER__REQUEST_ID,
  202    210   
    ],
  203    211   
);
  204    212   
impl GetDeclarativePoliciesReportSummaryOutput {
  205    213   
    /// The schema for this shape.
  206    214   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_SCHEMA;
  207    215   
}
  208    216   
impl ::aws_smithy_schema::serde::SerializableStruct for GetDeclarativePoliciesReportSummaryOutput {
  209    217   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  210    218   
    fn serialize_members(
  211    219   
        &self,
  212    220   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  213    221   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  214    222   
        if let Some(ref val) = self.report_id {
  215    223   
            ser.write_string(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_REPORT_ID, val)?;
  216    224   
        }
  217    225   
        if let Some(ref val) = self.s3_bucket {
  218    226   
            ser.write_string(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_S3_BUCKET, val)?;
  219    227   
        }
  220    228   
        if let Some(ref val) = self.s3_prefix {
  221    229   
            ser.write_string(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_S3_PREFIX, val)?;
  222    230   
        }
  223    231   
        if let Some(ref val) = self.target_id {
  224    232   
            ser.write_string(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_TARGET_ID, val)?;
  225    233   
        }
  226    234   
        if let Some(ref val) = self.start_time {
  227    235   
            ser.write_timestamp(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_START_TIME, val)?;
  228    236   
        }
  229    237   
        if let Some(ref val) = self.end_time {
  230    238   
            ser.write_timestamp(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_END_TIME, val)?;
  231    239   
        }
  232    240   
        if let Some(ref val) = self.number_of_accounts {
  233    241   
            ser.write_integer(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_NUMBER_OF_ACCOUNTS, *val)?;
  234    242   
        }
  235    243   
        if let Some(ref val) = self.number_of_failed_accounts {
  236    244   
            ser.write_integer(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_NUMBER_OF_FAILED_ACCOUNTS, *val)?;
  237    245   
        }
  238    246   
        if let Some(ref val) = self.attribute_summaries {
  239    247   
            ser.write_list(
  240    248   
                &GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_MEMBER_ATTRIBUTE_SUMMARIES,
  241    249   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  242    250   
                    for item in val {
  243    251   
                        ser.write_struct(crate::types::AttributeSummary::SCHEMA, item)?;
  244    252   
                    }
  245    253   
                    Ok(())
  246    254   
                },
  247    255   
            )?;
  248    256   
        }
  249    257   
        Ok(())
  250    258   
    }
  251    259   
}
  252    260   
impl GetDeclarativePoliciesReportSummaryOutput {
  253    261   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  254         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  255         -
        deserializer: &mut D,
         262  +
    pub fn deserialize(
         263  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  256    264   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  257    265   
        #[allow(unused_variables, unused_mut)]
  258    266   
        let mut builder = Self::builder();
  259    267   
        #[allow(
  260    268   
            unused_variables,
  261    269   
            unreachable_code,
  262    270   
            clippy::single_match,
  263    271   
            clippy::match_single_binding,
  264    272   
            clippy::diverging_sub_expression
  265    273   
        )]
  266         -
        deserializer.read_struct(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_SCHEMA, (), |_, member, deser| {
         274  +
        deserializer.read_struct(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_SCHEMA, &mut |member, deser| {
         275  +
            match member.member_index() {
         276  +
                Some(0) => {
         277  +
                    builder.report_id = Some(deser.read_string(member)?);
         278  +
                }
         279  +
                Some(1) => {
         280  +
                    builder.s3_bucket = Some(deser.read_string(member)?);
         281  +
                }
         282  +
                Some(2) => {
         283  +
                    builder.s3_prefix = Some(deser.read_string(member)?);
         284  +
                }
         285  +
                Some(3) => {
         286  +
                    builder.target_id = Some(deser.read_string(member)?);
         287  +
                }
         288  +
                Some(4) => {
         289  +
                    builder.start_time = Some(deser.read_timestamp(member)?);
         290  +
                }
         291  +
                Some(5) => {
         292  +
                    builder.end_time = Some(deser.read_timestamp(member)?);
         293  +
                }
         294  +
                Some(6) => {
         295  +
                    builder.number_of_accounts = Some(deser.read_integer(member)?);
         296  +
                }
         297  +
                Some(7) => {
         298  +
                    builder.number_of_failed_accounts = Some(deser.read_integer(member)?);
         299  +
                }
         300  +
                Some(8) => {
         301  +
                    builder.attribute_summaries = Some({
         302  +
                        let mut container = Vec::new();
         303  +
                        deser.read_list(member, &mut |deser| {
         304  +
                            container.push(crate::types::AttributeSummary::deserialize(deser)?);
         305  +
                            Ok(())
         306  +
                        })?;
         307  +
                        container
         308  +
                    });
         309  +
                }
         310  +
                Some(9) => {
         311  +
                    builder._request_id = Some(deser.read_string(member)?);
         312  +
                }
         313  +
                _ => {}
         314  +
            }
         315  +
            Ok(())
         316  +
        })?;
         317  +
        Ok(builder.build())
         318  +
    }
         319  +
}
         320  +
impl GetDeclarativePoliciesReportSummaryOutput {
         321  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         322  +
    /// Header-bound members are read directly from headers, avoiding runtime
         323  +
    /// member iteration overhead. Body members are read via the deserializer.
         324  +
    pub fn deserialize_with_response(
         325  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         326  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         327  +
        _status: u16,
         328  +
        _body: &[u8],
         329  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         330  +
        #[allow(unused_variables, unused_mut)]
         331  +
        let mut builder = Self::builder();
         332  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         333  +
            builder._request_id = Some(val.to_string());
         334  +
        }
         335  +
        #[allow(
         336  +
            unused_variables,
         337  +
            unreachable_code,
         338  +
            clippy::single_match,
         339  +
            clippy::match_single_binding,
         340  +
            clippy::diverging_sub_expression
         341  +
        )]
         342  +
        deserializer.read_struct(&GETDECLARATIVEPOLICIESREPORTSUMMARYOUTPUT_SCHEMA, &mut |member, deser| {
  267    343   
            match member.member_index() {
  268    344   
                Some(0) => {
  269    345   
                    builder.report_id = Some(deser.read_string(member)?);
  270    346   
                }
  271    347   
                Some(1) => {
  272    348   
                    builder.s3_bucket = Some(deser.read_string(member)?);
  273    349   
                }
  274    350   
                Some(2) => {
  275    351   
                    builder.s3_prefix = Some(deser.read_string(member)?);
  276    352   
                }
  277    353   
                Some(3) => {
  278    354   
                    builder.target_id = Some(deser.read_string(member)?);
  279    355   
                }
  280    356   
                Some(4) => {
  281    357   
                    builder.start_time = Some(deser.read_timestamp(member)?);
  282    358   
                }
  283    359   
                Some(5) => {
  284    360   
                    builder.end_time = Some(deser.read_timestamp(member)?);
  285    361   
                }
  286    362   
                Some(6) => {
  287    363   
                    builder.number_of_accounts = Some(deser.read_integer(member)?);
  288    364   
                }
  289    365   
                Some(7) => {
  290    366   
                    builder.number_of_failed_accounts = Some(deser.read_integer(member)?);
  291    367   
                }
  292    368   
                Some(8) => {
  293    369   
                    builder.attribute_summaries = Some({
  294         -
                        let container = if let Some(cap) = deser.container_size() {
  295         -
                            Vec::with_capacity(cap)
  296         -
                        } else {
  297         -
                            Vec::new()
  298         -
                        };
  299         -
                        deser.read_list(member, container, |mut list, deser| {
  300         -
                            list.push(crate::types::AttributeSummary::deserialize(deser)?);
  301         -
                            Ok(list)
  302         -
                        })?
         370  +
                        let mut container = Vec::new();
         371  +
                        deser.read_list(member, &mut |deser| {
         372  +
                            container.push(crate::types::AttributeSummary::deserialize(deser)?);
         373  +
                            Ok(())
         374  +
                        })?;
         375  +
                        container
  303    376   
                    });
  304    377   
                }
  305    378   
                _ => {}
  306    379   
            }
  307    380   
            Ok(())
  308    381   
        })?;
  309    382   
        Ok(builder.build())
  310    383   
    }
  311    384   
}
  312    385   
impl ::aws_types::request_id::RequestId for GetDeclarativePoliciesReportSummaryOutput {

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

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

@@ -3,3 +133,144 @@
   23     23   
    "com.amazonaws.ec2.synthetic",
   24     24   
    "GetDefaultCreditSpecificationInput",
   25     25   
);
   26     26   
static GETDEFAULTCREDITSPECIFICATIONINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   27     27   
    ::aws_smithy_schema::ShapeId::from_static(
   28     28   
        "com.amazonaws.ec2.synthetic#GetDefaultCreditSpecificationInput$DryRun",
   29     29   
        "com.amazonaws.ec2.synthetic",
   30     30   
        "GetDefaultCreditSpecificationInput",
   31     31   
    ),
   32     32   
    ::aws_smithy_schema::ShapeType::Boolean,
   33         -
    "dry_run",
          33  +
    "DryRun",
   34     34   
    0,
   35     35   
);
   36     36   
static GETDEFAULTCREDITSPECIFICATIONINPUT_MEMBER_INSTANCE_FAMILY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static(
   38     38   
        "com.amazonaws.ec2.synthetic#GetDefaultCreditSpecificationInput$InstanceFamily",
   39     39   
        "com.amazonaws.ec2.synthetic",
   40     40   
        "GetDefaultCreditSpecificationInput",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::String,
   43         -
    "instance_family",
          43  +
    "InstanceFamily",
   44     44   
    1,
   45     45   
);
   46     46   
static GETDEFAULTCREDITSPECIFICATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   47     47   
    GETDEFAULTCREDITSPECIFICATIONINPUT_SCHEMA_ID,
   48     48   
    ::aws_smithy_schema::ShapeType::Structure,
   49     49   
    &[
   50     50   
        &GETDEFAULTCREDITSPECIFICATIONINPUT_MEMBER_DRY_RUN,
   51     51   
        &GETDEFAULTCREDITSPECIFICATIONINPUT_MEMBER_INSTANCE_FAMILY,
   52     52   
    ],
   53     53   
);
   54     54   
impl GetDefaultCreditSpecificationInput {
   55     55   
    /// The schema for this shape.
   56     56   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETDEFAULTCREDITSPECIFICATIONINPUT_SCHEMA;
   57     57   
}
   58     58   
impl ::aws_smithy_schema::serde::SerializableStruct for GetDefaultCreditSpecificationInput {
   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.dry_run {
   65     65   
            ser.write_boolean(&GETDEFAULTCREDITSPECIFICATIONINPUT_MEMBER_DRY_RUN, *val)?;
   66     66   
        }
   67     67   
        if let Some(ref val) = self.instance_family {
   68     68   
            ser.write_string(&GETDEFAULTCREDITSPECIFICATIONINPUT_MEMBER_INSTANCE_FAMILY, val.as_str())?;
   69     69   
        }
   70     70   
        Ok(())
   71     71   
    }
   72     72   
}
   73     73   
impl GetDefaultCreditSpecificationInput {
   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(&GETDEFAULTCREDITSPECIFICATIONINPUT_SCHEMA, (), |_, member, deser| {
          87  +
        deserializer.read_struct(&GETDEFAULTCREDITSPECIFICATIONINPUT_SCHEMA, &mut |member, deser| {
   88     88   
            match member.member_index() {
   89     89   
                Some(0) => {
   90     90   
                    builder.dry_run = Some(deser.read_boolean(member)?);
   91     91   
                }
   92     92   
                Some(1) => {
   93     93   
                    builder.instance_family = Some(crate::types::UnlimitedSupportedInstanceFamily::from(deser.read_string(member)?.as_str()));
   94     94   
                }
   95     95   
                _ => {}
   96     96   
            }
   97     97   
            Ok(())
   98     98   
        })?;
   99     99   
        builder
  100    100   
            .build()
  101    101   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  102    102   
    }
  103    103   
}
         104  +
impl GetDefaultCreditSpecificationInput {
         105  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         106  +
    pub fn deserialize_with_response(
         107  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         108  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         109  +
        _status: u16,
         110  +
        _body: &[u8],
         111  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         112  +
        Self::deserialize(deserializer)
         113  +
    }
         114  +
}
  104    115   
impl GetDefaultCreditSpecificationInput {
  105    116   
    /// Creates a new builder-style object to manufacture [`GetDefaultCreditSpecificationInput`](crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationInput).
  106    117   
    pub fn builder() -> crate::operation::get_default_credit_specification::builders::GetDefaultCreditSpecificationInputBuilder {
  107    118   
        crate::operation::get_default_credit_specification::builders::GetDefaultCreditSpecificationInputBuilder::default()
  108    119   
    }
  109    120   
}
  110    121   
  111    122   
/// A builder for [`GetDefaultCreditSpecificationInput`](crate::operation::get_default_credit_specification::GetDefaultCreditSpecificationInput).
  112    123   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  113    124   
#[non_exhaustive]

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

@@ -1,1 +98,145 @@
   19     19   
    "GetDefaultCreditSpecificationOutput",
   20     20   
);
   21     21   
static GETDEFAULTCREDITSPECIFICATIONOUTPUT_MEMBER_INSTANCE_FAMILY_CREDIT_SPECIFICATION: ::aws_smithy_schema::Schema =
   22     22   
    ::aws_smithy_schema::Schema::new_member(
   23     23   
        ::aws_smithy_schema::ShapeId::from_static(
   24     24   
            "com.amazonaws.ec2.synthetic#GetDefaultCreditSpecificationOutput$InstanceFamilyCreditSpecification",
   25     25   
            "com.amazonaws.ec2.synthetic",
   26     26   
            "GetDefaultCreditSpecificationOutput",
   27     27   
        ),
   28     28   
        ::aws_smithy_schema::ShapeType::Structure,
   29         -
        "instance_family_credit_specification",
          29  +
        "InstanceFamilyCreditSpecification",
   30     30   
        0,
   31     31   
    )
   32     32   
    .with_xml_name("instanceFamilyCreditSpecification");
          33  +
static GETDEFAULTCREDITSPECIFICATIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          34  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          35  +
    ::aws_smithy_schema::ShapeType::String,
          36  +
    "request_id",
          37  +
    1,
          38  +
)
          39  +
.with_http_header("x-amzn-requestid");
   33     40   
static GETDEFAULTCREDITSPECIFICATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   34     41   
    GETDEFAULTCREDITSPECIFICATIONOUTPUT_SCHEMA_ID,
   35     42   
    ::aws_smithy_schema::ShapeType::Structure,
   36         -
    &[&GETDEFAULTCREDITSPECIFICATIONOUTPUT_MEMBER_INSTANCE_FAMILY_CREDIT_SPECIFICATION],
          43  +
    &[
          44  +
        &GETDEFAULTCREDITSPECIFICATIONOUTPUT_MEMBER_INSTANCE_FAMILY_CREDIT_SPECIFICATION,
          45  +
        &GETDEFAULTCREDITSPECIFICATIONOUTPUT_MEMBER__REQUEST_ID,
          46  +
    ],
   37     47   
);
   38     48   
impl GetDefaultCreditSpecificationOutput {
   39     49   
    /// The schema for this shape.
   40     50   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETDEFAULTCREDITSPECIFICATIONOUTPUT_SCHEMA;
   41     51   
}
   42     52   
impl ::aws_smithy_schema::serde::SerializableStruct for GetDefaultCreditSpecificationOutput {
   43     53   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   44     54   
    fn serialize_members(
   45     55   
        &self,
   46     56   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   47     57   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   48     58   
        if let Some(ref val) = self.instance_family_credit_specification {
   49     59   
            ser.write_struct(&GETDEFAULTCREDITSPECIFICATIONOUTPUT_MEMBER_INSTANCE_FAMILY_CREDIT_SPECIFICATION, val)?;
   50     60   
        }
   51     61   
        Ok(())
   52     62   
    }
   53     63   
}
   54     64   
impl GetDefaultCreditSpecificationOutput {
   55     65   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   56         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   57         -
        deserializer: &mut D,
          66  +
    pub fn deserialize(
          67  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   58     68   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   59     69   
        #[allow(unused_variables, unused_mut)]
   60     70   
        let mut builder = Self::builder();
   61     71   
        #[allow(
   62     72   
            unused_variables,
   63     73   
            unreachable_code,
   64     74   
            clippy::single_match,
   65     75   
            clippy::match_single_binding,
   66     76   
            clippy::diverging_sub_expression
   67     77   
        )]
   68         -
        deserializer.read_struct(&GETDEFAULTCREDITSPECIFICATIONOUTPUT_SCHEMA, (), |_, member, deser| {
          78  +
        deserializer.read_struct(&GETDEFAULTCREDITSPECIFICATIONOUTPUT_SCHEMA, &mut |member, deser| {
          79  +
            match member.member_index() {
          80  +
                Some(0) => {
          81  +
                    builder.instance_family_credit_specification = Some(crate::types::InstanceFamilyCreditSpecification::deserialize(deser)?);
          82  +
                }
          83  +
                Some(1) => {
          84  +
                    builder._request_id = Some(deser.read_string(member)?);
          85  +
                }
          86  +
                _ => {}
          87  +
            }
          88  +
            Ok(())
          89  +
        })?;
          90  +
        Ok(builder.build())
          91  +
    }
          92  +
}
          93  +
impl GetDefaultCreditSpecificationOutput {
          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(&GETDEFAULTCREDITSPECIFICATIONOUTPUT_SCHEMA, &mut |member, deser| {
   69    116   
            match member.member_index() {
   70    117   
                Some(0) => {
   71    118   
                    builder.instance_family_credit_specification = Some(crate::types::InstanceFamilyCreditSpecification::deserialize(deser)?);
   72    119   
                }
   73    120   
                _ => {}
   74    121   
            }
   75    122   
            Ok(())
   76    123   
        })?;
   77    124   
        Ok(builder.build())
   78    125   
    }

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

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

@@ -1,1 +108,119 @@
   17     17   
    "com.amazonaws.ec2.synthetic",
   18     18   
    "GetEbsDefaultKmsKeyIdInput",
   19     19   
);
   20     20   
static GETEBSDEFAULTKMSKEYIDINPUT_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#GetEbsDefaultKmsKeyIdInput$DryRun",
   23     23   
        "com.amazonaws.ec2.synthetic",
   24     24   
        "GetEbsDefaultKmsKeyIdInput",
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::Boolean,
   27         -
    "dry_run",
          27  +
    "DryRun",
   28     28   
    0,
   29     29   
);
   30     30   
static GETEBSDEFAULTKMSKEYIDINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   31     31   
    GETEBSDEFAULTKMSKEYIDINPUT_SCHEMA_ID,
   32     32   
    ::aws_smithy_schema::ShapeType::Structure,
   33     33   
    &[&GETEBSDEFAULTKMSKEYIDINPUT_MEMBER_DRY_RUN],
   34     34   
);
   35     35   
impl GetEbsDefaultKmsKeyIdInput {
   36     36   
    /// The schema for this shape.
   37     37   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETEBSDEFAULTKMSKEYIDINPUT_SCHEMA;
   38     38   
}
   39     39   
impl ::aws_smithy_schema::serde::SerializableStruct for GetEbsDefaultKmsKeyIdInput {
   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(&GETEBSDEFAULTKMSKEYIDINPUT_MEMBER_DRY_RUN, *val)?;
   47     47   
        }
   48     48   
        Ok(())
   49     49   
    }
   50     50   
}
   51     51   
impl GetEbsDefaultKmsKeyIdInput {
   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(&GETEBSDEFAULTKMSKEYIDINPUT_SCHEMA, (), |_, member, deser| {
          65  +
        deserializer.read_struct(&GETEBSDEFAULTKMSKEYIDINPUT_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 GetEbsDefaultKmsKeyIdInput {
          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 GetEbsDefaultKmsKeyIdInput {
   80     91   
    /// Creates a new builder-style object to manufacture [`GetEbsDefaultKmsKeyIdInput`](crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdInput).
   81     92   
    pub fn builder() -> crate::operation::get_ebs_default_kms_key_id::builders::GetEbsDefaultKmsKeyIdInputBuilder {
   82     93   
        crate::operation::get_ebs_default_kms_key_id::builders::GetEbsDefaultKmsKeyIdInputBuilder::default()
   83     94   
    }
   84     95   
}
   85     96   
   86     97   
/// A builder for [`GetEbsDefaultKmsKeyIdInput`](crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdInput).
   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/get_ebs_default_kms_key_id/_get_ebs_default_kms_key_id_output.rs

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "GetEbsDefaultKmsKeyIdOutput",
   20     20   
);
   21     21   
static GETEBSDEFAULTKMSKEYIDOUTPUT_MEMBER_KMS_KEY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ec2.synthetic#GetEbsDefaultKmsKeyIdOutput$KmsKeyId",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "GetEbsDefaultKmsKeyIdOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::String,
   28         -
    "kms_key_id",
          28  +
    "KmsKeyId",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_name("kmsKeyId");
          32  +
static GETEBSDEFAULTKMSKEYIDOUTPUT_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 GETEBSDEFAULTKMSKEYIDOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    GETEBSDEFAULTKMSKEYIDOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&GETEBSDEFAULTKMSKEYIDOUTPUT_MEMBER_KMS_KEY_ID],
          42  +
    &[
          43  +
        &GETEBSDEFAULTKMSKEYIDOUTPUT_MEMBER_KMS_KEY_ID,
          44  +
        &GETEBSDEFAULTKMSKEYIDOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl GetEbsDefaultKmsKeyIdOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETEBSDEFAULTKMSKEYIDOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for GetEbsDefaultKmsKeyIdOutput {
   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.kms_key_id {
   48     58   
            ser.write_string(&GETEBSDEFAULTKMSKEYIDOUTPUT_MEMBER_KMS_KEY_ID, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl GetEbsDefaultKmsKeyIdOutput {
   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,
          67  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          68  +
        #[allow(unused_variables, unused_mut)]
          69  +
        let mut builder = Self::builder();
          70  +
        #[allow(
          71  +
            unused_variables,
          72  +
            unreachable_code,
          73  +
            clippy::single_match,
          74  +
            clippy::match_single_binding,
          75  +
            clippy::diverging_sub_expression
          76  +
        )]
          77  +
        deserializer.read_struct(&GETEBSDEFAULTKMSKEYIDOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.kms_key_id = Some(deser.read_string(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 GetEbsDefaultKmsKeyIdOutput {
          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],
   57    101   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   58    102   
        #[allow(unused_variables, unused_mut)]
   59    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  +
        }
   60    107   
        #[allow(
   61    108   
            unused_variables,
   62    109   
            unreachable_code,
   63    110   
            clippy::single_match,
   64    111   
            clippy::match_single_binding,
   65    112   
            clippy::diverging_sub_expression
   66    113   
        )]
   67         -
        deserializer.read_struct(&GETEBSDEFAULTKMSKEYIDOUTPUT_SCHEMA, (), |_, member, deser| {
         114  +
        deserializer.read_struct(&GETEBSDEFAULTKMSKEYIDOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.kms_key_id = Some(deser.read_string(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/get_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 `GetEbsEncryptionByDefault`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetEbsEncryptionByDefault;
    6      6   
impl GetEbsEncryptionByDefault {
    7      7   
    /// Creates a new `GetEbsEncryptionByDefault`
    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::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultOutput::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::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultError,
  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 GetEbsEncryptionByDefaultResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetEbsEncryptionByDefaultResponseDeserializer {
  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_get_ebs_encryption_by_default::de_get_ebs_encryption_by_default_http_error(status, headers, body)
  160    167   
        } else {

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

@@ -1,1 +108,119 @@
   17     17   
    "com.amazonaws.ec2.synthetic",
   18     18   
    "GetEbsEncryptionByDefaultInput",
   19     19   
);
   20     20   
static GETEBSENCRYPTIONBYDEFAULTINPUT_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#GetEbsEncryptionByDefaultInput$DryRun",
   23     23   
        "com.amazonaws.ec2.synthetic",
   24     24   
        "GetEbsEncryptionByDefaultInput",
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::Boolean,
   27         -
    "dry_run",
          27  +
    "DryRun",
   28     28   
    0,
   29     29   
);
   30     30   
static GETEBSENCRYPTIONBYDEFAULTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   31     31   
    GETEBSENCRYPTIONBYDEFAULTINPUT_SCHEMA_ID,
   32     32   
    ::aws_smithy_schema::ShapeType::Structure,
   33     33   
    &[&GETEBSENCRYPTIONBYDEFAULTINPUT_MEMBER_DRY_RUN],
   34     34   
);
   35     35   
impl GetEbsEncryptionByDefaultInput {
   36     36   
    /// The schema for this shape.
   37     37   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETEBSENCRYPTIONBYDEFAULTINPUT_SCHEMA;
   38     38   
}
   39     39   
impl ::aws_smithy_schema::serde::SerializableStruct for GetEbsEncryptionByDefaultInput {
   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(&GETEBSENCRYPTIONBYDEFAULTINPUT_MEMBER_DRY_RUN, *val)?;
   47     47   
        }
   48     48   
        Ok(())
   49     49   
    }
   50     50   
}
   51     51   
impl GetEbsEncryptionByDefaultInput {
   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(&GETEBSENCRYPTIONBYDEFAULTINPUT_SCHEMA, (), |_, member, deser| {
          65  +
        deserializer.read_struct(&GETEBSENCRYPTIONBYDEFAULTINPUT_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 GetEbsEncryptionByDefaultInput {
          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 GetEbsEncryptionByDefaultInput {
   80     91   
    /// Creates a new builder-style object to manufacture [`GetEbsEncryptionByDefaultInput`](crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultInput).
   81     92   
    pub fn builder() -> crate::operation::get_ebs_encryption_by_default::builders::GetEbsEncryptionByDefaultInputBuilder {
   82     93   
        crate::operation::get_ebs_encryption_by_default::builders::GetEbsEncryptionByDefaultInputBuilder::default()
   83     94   
    }
   84     95   
}
   85     96   
   86     97   
/// A builder for [`GetEbsEncryptionByDefaultInput`](crate::operation::get_ebs_encryption_by_default::GetEbsEncryptionByDefaultInput).
   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/get_ebs_encryption_by_default/_get_ebs_encryption_by_default_output.rs

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

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