AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/delete_scheduled_query/_delete_scheduled_query_input.rs

@@ -1,1 +108,120 @@
   17     17   
    "com.amazonaws.timestreamquery.synthetic",
   18     18   
    "DeleteScheduledQueryInput",
   19     19   
);
   20     20   
static DELETESCHEDULEDQUERYINPUT_MEMBER_SCHEDULED_QUERY_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   21     21   
    ::aws_smithy_schema::ShapeId::from_static(
   22     22   
        "com.amazonaws.timestreamquery.synthetic#DeleteScheduledQueryInput$ScheduledQueryArn",
   23     23   
        "com.amazonaws.timestreamquery.synthetic",
   24     24   
        "DeleteScheduledQueryInput",
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::String,
   27         -
    "scheduled_query_arn",
          27  +
    "ScheduledQueryArn",
   28     28   
    0,
   29     29   
);
   30     30   
static DELETESCHEDULEDQUERYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   31     31   
    DELETESCHEDULEDQUERYINPUT_SCHEMA_ID,
   32     32   
    ::aws_smithy_schema::ShapeType::Structure,
   33     33   
    &[&DELETESCHEDULEDQUERYINPUT_MEMBER_SCHEDULED_QUERY_ARN],
   34     34   
);
   35     35   
impl DeleteScheduledQueryInput {
   36     36   
    /// The schema for this shape.
   37     37   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETESCHEDULEDQUERYINPUT_SCHEMA;
   38     38   
}
   39     39   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteScheduledQueryInput {
   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.scheduled_query_arn {
   46     46   
            ser.write_string(&DELETESCHEDULEDQUERYINPUT_MEMBER_SCHEDULED_QUERY_ARN, val)?;
   47     47   
        }
   48     48   
        Ok(())
   49     49   
    }
   50     50   
}
   51     51   
impl DeleteScheduledQueryInput {
   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(&DELETESCHEDULEDQUERYINPUT_SCHEMA, (), |_, member, deser| {
          65  +
        deserializer.read_struct(&DELETESCHEDULEDQUERYINPUT_SCHEMA, &mut |member, deser| {
   66     66   
            match member.member_index() {
   67     67   
                Some(0) => {
   68     68   
                    builder.scheduled_query_arn = Some(deser.read_string(member)?);
   69     69   
                }
   70     70   
                _ => {}
   71     71   
            }
   72     72   
            Ok(())
   73     73   
        })?;
          74  +
        builder.scheduled_query_arn = builder.scheduled_query_arn.or(Some(String::new()));
   74     75   
        builder
   75     76   
            .build()
   76     77   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   77     78   
    }
   78     79   
}
          80  +
impl DeleteScheduledQueryInput {
          81  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          82  +
    pub fn deserialize_with_response(
          83  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          84  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          85  +
        _status: u16,
          86  +
        _body: &[u8],
          87  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          88  +
        Self::deserialize(deserializer)
          89  +
    }
          90  +
}
   79     91   
impl DeleteScheduledQueryInput {
   80     92   
    /// Creates a new builder-style object to manufacture [`DeleteScheduledQueryInput`](crate::operation::delete_scheduled_query::DeleteScheduledQueryInput).
   81     93   
    pub fn builder() -> crate::operation::delete_scheduled_query::builders::DeleteScheduledQueryInputBuilder {
   82     94   
        crate::operation::delete_scheduled_query::builders::DeleteScheduledQueryInputBuilder::default()
   83     95   
    }
   84     96   
}
   85     97   
   86     98   
/// A builder for [`DeleteScheduledQueryInput`](crate::operation::delete_scheduled_query::DeleteScheduledQueryInput).
   87     99   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   88    100   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/delete_scheduled_query/_delete_scheduled_query_output.rs

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct DeleteScheduledQueryOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static DELETESCHEDULEDQUERYOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.timestreamquery.synthetic#DeleteScheduledQueryOutput",
   10     10   
    "com.amazonaws.timestreamquery.synthetic",
   11     11   
    "DeleteScheduledQueryOutput",
   12     12   
);
   13         -
static DELETESCHEDULEDQUERYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(DELETESCHEDULEDQUERYOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static DELETESCHEDULEDQUERYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
          20  +
static DELETESCHEDULEDQUERYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    DELETESCHEDULEDQUERYOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&DELETESCHEDULEDQUERYOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl DeleteScheduledQueryOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETESCHEDULEDQUERYOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteScheduledQueryOutput {
   20     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   21     31   
    fn serialize_members(
   22     32   
        &self,
   23     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   24     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   25     35   
        Ok(())
   26     36   
    }
   27     37   
}
   28     38   
impl DeleteScheduledQueryOutput {
   29     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   30         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   31         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   32     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   33     43   
        #[allow(unused_variables, unused_mut)]
   34     44   
        let mut builder = Self::builder();
   35     45   
        #[allow(
   36     46   
            unused_variables,
   37     47   
            unreachable_code,
   38     48   
            clippy::single_match,
   39     49   
            clippy::match_single_binding,
   40     50   
            clippy::diverging_sub_expression
   41     51   
        )]
   42         -
        deserializer.read_struct(&DELETESCHEDULEDQUERYOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&DELETESCHEDULEDQUERYOUTPUT_SCHEMA, &mut |member, deser| {
   43     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   44     57   
                _ => {}
   45     58   
            }
   46     59   
            Ok(())
   47     60   
        })?;
   48     61   
        Ok(builder.build())
   49     62   
    }
   50     63   
}
          64  +
impl DeleteScheduledQueryOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   51     82   
impl ::aws_types::request_id::RequestId for DeleteScheduledQueryOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl DeleteScheduledQueryOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`DeleteScheduledQueryOutput`](crate::operation::delete_scheduled_query::DeleteScheduledQueryOutput).
   58     89   
    pub fn builder() -> crate::operation::delete_scheduled_query::builders::DeleteScheduledQueryOutputBuilder {
   59     90   
        crate::operation::delete_scheduled_query::builders::DeleteScheduledQueryOutputBuilder::default()
   60     91   
    }

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/describe_account_settings.rs

@@ -1,1 +40,45 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `DescribeAccountSettings`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeAccountSettings;
    6      6   
impl DescribeAccountSettings {
    7      7   
    /// Creates a new `DescribeAccountSettings`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_account_settings::DescribeAccountSettingsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          15  +
        crate::operation::describe_account_settings::DescribeAccountSettingsOutput::SCHEMA;
   11     16   
    pub(crate) async fn orchestrate(
   12     17   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     18   
        input: crate::operation::describe_account_settings::DescribeAccountSettingsInput,
   14     19   
    ) -> ::std::result::Result<
   15     20   
        crate::operation::describe_account_settings::DescribeAccountSettingsOutput,
   16     21   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     22   
            crate::operation::describe_account_settings::DescribeAccountSettingsError,
   18     23   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     24   
        >,
   20     25   
    > {
@@ -124,129 +250,365 @@
  144    149   
                crate::operation::describe_account_settings::DescribeAccountSettingsError,
  145    150   
            >::new());
  146    151   
  147    152   
        ::std::borrow::Cow::Owned(rcb)
  148    153   
    }
  149    154   
}
  150    155   
  151    156   
#[derive(Debug)]
  152    157   
struct DescribeAccountSettingsResponseDeserializer;
  153    158   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeAccountSettingsResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         159  +
    fn deserialize_nonstreaming_with_config(
  155    160   
        &self,
  156    161   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         162  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    163   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    164   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159         -
        let headers = response.headers();
  160         -
        let body = response.body().bytes().expect("body loaded");
  161    165   
        #[allow(unused_mut)]
  162    166   
        let mut force_error = false;
  163    167   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164         -
        let parse_result = if !success && status != 200 || force_error {
  165         -
            crate::protocol_serde::shape_describe_account_settings::de_describe_account_settings_http_error(status, headers, body)
  166         -
        } else {
  167         -
            crate::protocol_serde::shape_describe_account_settings::de_describe_account_settings_http_response(status, headers, body)
         168  +
        if !success && status != 200 || force_error {
         169  +
            let headers = response.headers();
         170  +
            let body = response.body().bytes().expect("body loaded");
         171  +
            #[allow(unused_mut)]
         172  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         173  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         174  +
            })?;
         175  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         176  +
            let generic = generic_builder.build();
         177  +
            let error_code = match generic.code() {
         178  +
                ::std::option::Option::Some(code) => code,
         179  +
                ::std::option::Option::None => {
         180  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         181  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         182  +
                            crate::operation::describe_account_settings::DescribeAccountSettingsError::unhandled(generic),
         183  +
                        ),
         184  +
                    ))
         185  +
                }
  168    186   
            };
  169         -
        crate::protocol_serde::type_erase_result(parse_result)
         187  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         188  +
            let protocol = _cfg
         189  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         190  +
                .expect("a SharedClientProtocol is required");
         191  +
            let err = match error_code {
         192  +
                "AccessDeniedException" => crate::operation::describe_account_settings::DescribeAccountSettingsError::AccessDeniedException({
         193  +
                    let mut tmp = match protocol
         194  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         195  +
                        .and_then(|mut deser| {
         196  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         197  +
                                &mut *deser,
         198  +
                                response.headers(),
         199  +
                                response.status().into(),
         200  +
                                body,
         201  +
                            )
         202  +
                        }) {
         203  +
                        ::std::result::Result::Ok(val) => val,
         204  +
                        ::std::result::Result::Err(e) => {
         205  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         206  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         207  +
                            ))
         208  +
                        }
         209  +
                    };
         210  +
                    tmp.meta = generic;
         211  +
                    if tmp.message.is_none() {
         212  +
                        tmp.message = _error_message;
         213  +
                    }
         214  +
                    tmp
         215  +
                }),
         216  +
                "InternalServerException" => crate::operation::describe_account_settings::DescribeAccountSettingsError::InternalServerException({
         217  +
                    let mut tmp = match protocol
         218  +
                        .deserialize_response(response, crate::types::error::InternalServerException::SCHEMA, _cfg)
         219  +
                        .and_then(|mut deser| {
         220  +
                            crate::types::error::InternalServerException::deserialize_with_response(
         221  +
                                &mut *deser,
         222  +
                                response.headers(),
         223  +
                                response.status().into(),
         224  +
                                body,
         225  +
                            )
         226  +
                        }) {
         227  +
                        ::std::result::Result::Ok(val) => val,
         228  +
                        ::std::result::Result::Err(e) => {
         229  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         230  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         231  +
                            ))
         232  +
                        }
         233  +
                    };
         234  +
                    tmp.meta = generic;
         235  +
                    if tmp.message.is_none() {
         236  +
                        tmp.message = _error_message;
         237  +
                    }
         238  +
                    tmp
         239  +
                }),
         240  +
                "InvalidEndpointException" => crate::operation::describe_account_settings::DescribeAccountSettingsError::InvalidEndpointException({
         241  +
                    let mut tmp = match protocol
         242  +
                        .deserialize_response(response, crate::types::error::InvalidEndpointException::SCHEMA, _cfg)
         243  +
                        .and_then(|mut deser| {
         244  +
                            crate::types::error::InvalidEndpointException::deserialize_with_response(
         245  +
                                &mut *deser,
         246  +
                                response.headers(),
         247  +
                                response.status().into(),
         248  +
                                body,
         249  +
                            )
         250  +
                        }) {
         251  +
                        ::std::result::Result::Ok(val) => val,
         252  +
                        ::std::result::Result::Err(e) => {
         253  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         254  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         255  +
                            ))
         256  +
                        }
         257  +
                    };
         258  +
                    tmp.meta = generic;
         259  +
                    if tmp.message.is_none() {
         260  +
                        tmp.message = _error_message;
         261  +
                    }
         262  +
                    tmp
         263  +
                }),
         264  +
                "ThrottlingException" => crate::operation::describe_account_settings::DescribeAccountSettingsError::ThrottlingException({
         265  +
                    let mut tmp = match protocol
         266  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         267  +
                        .and_then(|mut deser| {
         268  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         269  +
                                &mut *deser,
         270  +
                                response.headers(),
         271  +
                                response.status().into(),
         272  +
                                body,
         273  +
                            )
         274  +
                        }) {
         275  +
                        ::std::result::Result::Ok(val) => val,
         276  +
                        ::std::result::Result::Err(e) => {
         277  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         278  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         279  +
                            ))
         280  +
                        }
         281  +
                    };
         282  +
                    tmp.meta = generic;
         283  +
                    if tmp.message.is_none() {
         284  +
                        tmp.message = _error_message;
         285  +
                    }
         286  +
                    tmp
         287  +
                }),
         288  +
                _ => crate::operation::describe_account_settings::DescribeAccountSettingsError::generic(generic),
         289  +
            };
         290  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         291  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         292  +
            ))
         293  +
        } else {
         294  +
            let protocol = _cfg
         295  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         296  +
                .expect("a SharedClientProtocol is required");
         297  +
            let mut deser = protocol
         298  +
                .deserialize_response(response, DescribeAccountSettings::OUTPUT_SCHEMA, _cfg)
         299  +
                .map_err(|e| {
         300  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         301  +
                })?;
         302  +
            let body = response.body().bytes().expect("body loaded");
         303  +
            let output = crate::operation::describe_account_settings::DescribeAccountSettingsOutput::deserialize_with_response(
         304  +
                &mut *deser,
         305  +
                response.headers(),
         306  +
                response.status().into(),
         307  +
                body,
         308  +
            )
         309  +
            .map_err(|e| {
         310  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         311  +
            })?;
         312  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         313  +
        }
  170    314   
    }
  171    315   
}
  172    316   
#[derive(Debug)]
  173    317   
struct DescribeAccountSettingsRequestSerializer;
  174    318   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeAccountSettingsRequestSerializer {
  175    319   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  176    320   
    fn serialize_input(
  177    321   
        &self,
  178    322   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  179    323   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  180    324   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  181    325   
        let input = input
  182    326   
            .downcast::<crate::operation::describe_account_settings::DescribeAccountSettingsInput>()
  183    327   
            .expect("correct type");
  184         -
        let _header_serialization_settings = _cfg
  185         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  186         -
            .cloned()
  187         -
            .unwrap_or_default();
  188         -
        let mut request_builder = {
  189         -
            #[allow(clippy::uninlined_format_args)]
  190         -
            fn uri_base(
  191         -
                _input: &crate::operation::describe_account_settings::DescribeAccountSettingsInput,
  192         -
                output: &mut ::std::string::String,
  193         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  194         -
                use ::std::fmt::Write as _;
  195         -
                ::std::write!(output, "/").expect("formatting should succeed");
  196         -
                ::std::result::Result::Ok(())
  197         -
            }
  198         -
            #[allow(clippy::unnecessary_wraps)]
  199         -
            fn update_http_builder(
  200         -
                input: &crate::operation::describe_account_settings::DescribeAccountSettingsInput,
  201         -
                builder: ::http_1x::request::Builder,
  202         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  203         -
                let mut uri = ::std::string::String::new();
  204         -
                uri_base(input, &mut uri)?;
  205         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  206         -
            }
  207         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  208         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  209         -
            builder = _header_serialization_settings.set_default_header(
  210         -
                builder,
  211         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  212         -
                "Timestream_20181101.DescribeAccountSettings",
  213         -
            );
  214         -
            builder
  215         -
        };
  216         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  217         -
            crate::protocol_serde::shape_describe_account_settings::ser_describe_account_settings_input(&input)?,
  218         -
        );
         328  +
        let protocol = _cfg
         329  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         330  +
            .expect("a SharedClientProtocol is required");
         331  +
        let mut request = protocol
         332  +
            .serialize_request(&input, DescribeAccountSettings::INPUT_SCHEMA, "", _cfg)
         333  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  219    334   
  220         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         335  +
        return ::std::result::Result::Ok(request);
  221    336   
    }
  222    337   
}
  223    338   
#[derive(Debug)]
  224    339   
struct DescribeAccountSettingsEndpointParamsInterceptor;
  225    340   
  226    341   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeAccountSettingsEndpointParamsInterceptor {
  227    342   
    fn name(&self) -> &'static str {
  228    343   
        "DescribeAccountSettingsEndpointParamsInterceptor"
  229    344   
    }
  230    345   

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/describe_account_settings/_describe_account_settings_input.rs

@@ -1,1 +72,85 @@
   18     18   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   19     19   
    fn serialize_members(
   20     20   
        &self,
   21     21   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   22     22   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   23     23   
        Ok(())
   24     24   
    }
   25     25   
}
   26     26   
impl DescribeAccountSettingsInput {
   27     27   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   28         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   29         -
        deserializer: &mut D,
          28  +
    pub fn deserialize(
          29  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   30     30   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   31     31   
        #[allow(unused_variables, unused_mut)]
   32     32   
        let mut builder = Self::builder();
   33     33   
        #[allow(
   34     34   
            unused_variables,
   35     35   
            unreachable_code,
   36     36   
            clippy::single_match,
   37     37   
            clippy::match_single_binding,
   38     38   
            clippy::diverging_sub_expression
   39     39   
        )]
   40         -
        deserializer.read_struct(&DESCRIBEACCOUNTSETTINGSINPUT_SCHEMA, (), |_, member, deser| {
          40  +
        deserializer.read_struct(&DESCRIBEACCOUNTSETTINGSINPUT_SCHEMA, &mut |member, deser| {
   41     41   
            match member.member_index() {
   42     42   
                _ => {}
   43     43   
            }
   44     44   
            Ok(())
   45     45   
        })?;
   46     46   
        builder
   47     47   
            .build()
   48     48   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   49     49   
    }
   50     50   
}
          51  +
impl DescribeAccountSettingsInput {
          52  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          53  +
    pub fn deserialize_with_response(
          54  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          55  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          56  +
        _status: u16,
          57  +
        _body: &[u8],
          58  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          59  +
        Self::builder()
          60  +
            .build()
          61  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
          62  +
    }
          63  +
}
   51     64   
impl DescribeAccountSettingsInput {
   52     65   
    /// Creates a new builder-style object to manufacture [`DescribeAccountSettingsInput`](crate::operation::describe_account_settings::DescribeAccountSettingsInput).
   53     66   
    pub fn builder() -> crate::operation::describe_account_settings::builders::DescribeAccountSettingsInputBuilder {
   54     67   
        crate::operation::describe_account_settings::builders::DescribeAccountSettingsInputBuilder::default()
   55     68   
    }
   56     69   
}
   57     70   
   58     71   
/// A builder for [`DescribeAccountSettingsInput`](crate::operation::describe_account_settings::DescribeAccountSettingsInput).
   59     72   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   60     73   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/describe_account_settings/_describe_account_settings_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/describe_endpoints.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 `DescribeEndpoints`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeEndpoints;
    6      6   
impl DescribeEndpoints {
    7      7   
    /// Creates a new `DescribeEndpoints`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_endpoints::DescribeEndpointsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_endpoints::DescribeEndpointsOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::describe_endpoints::DescribeEndpointsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::describe_endpoints::DescribeEndpointsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::describe_endpoints::DescribeEndpointsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -124,128 +248,340 @@
  144    148   
                crate::operation::describe_endpoints::DescribeEndpointsError,
  145    149   
            >::new());
  146    150   
  147    151   
        ::std::borrow::Cow::Owned(rcb)
  148    152   
    }
  149    153   
}
  150    154   
  151    155   
#[derive(Debug)]
  152    156   
struct DescribeEndpointsResponseDeserializer;
  153    157   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeEndpointsResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         158  +
    fn deserialize_nonstreaming_with_config(
  155    159   
        &self,
  156    160   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         161  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    162   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    163   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159         -
        let headers = response.headers();
  160         -
        let body = response.body().bytes().expect("body loaded");
  161    164   
        #[allow(unused_mut)]
  162    165   
        let mut force_error = false;
  163    166   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164         -
        let parse_result = if !success && status != 200 || force_error {
  165         -
            crate::protocol_serde::shape_describe_endpoints::de_describe_endpoints_http_error(status, headers, body)
  166         -
        } else {
  167         -
            crate::protocol_serde::shape_describe_endpoints::de_describe_endpoints_http_response(status, headers, body)
         167  +
        if !success && status != 200 || force_error {
         168  +
            let headers = response.headers();
         169  +
            let body = response.body().bytes().expect("body loaded");
         170  +
            #[allow(unused_mut)]
         171  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         172  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         173  +
            })?;
         174  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         175  +
            let generic = generic_builder.build();
         176  +
            let error_code = match generic.code() {
         177  +
                ::std::option::Option::Some(code) => code,
         178  +
                ::std::option::Option::None => {
         179  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         180  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::describe_endpoints::DescribeEndpointsError::unhandled(
         181  +
                            generic,
         182  +
                        )),
         183  +
                    ))
         184  +
                }
  168    185   
            };
  169         -
        crate::protocol_serde::type_erase_result(parse_result)
         186  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         187  +
            let protocol = _cfg
         188  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         189  +
                .expect("a SharedClientProtocol is required");
         190  +
            let err = match error_code {
         191  +
                "InternalServerException" => crate::operation::describe_endpoints::DescribeEndpointsError::InternalServerException({
         192  +
                    let mut tmp = match protocol
         193  +
                        .deserialize_response(response, crate::types::error::InternalServerException::SCHEMA, _cfg)
         194  +
                        .and_then(|mut deser| {
         195  +
                            crate::types::error::InternalServerException::deserialize_with_response(
         196  +
                                &mut *deser,
         197  +
                                response.headers(),
         198  +
                                response.status().into(),
         199  +
                                body,
         200  +
                            )
         201  +
                        }) {
         202  +
                        ::std::result::Result::Ok(val) => val,
         203  +
                        ::std::result::Result::Err(e) => {
         204  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         205  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         206  +
                            ))
         207  +
                        }
         208  +
                    };
         209  +
                    tmp.meta = generic;
         210  +
                    if tmp.message.is_none() {
         211  +
                        tmp.message = _error_message;
         212  +
                    }
         213  +
                    tmp
         214  +
                }),
         215  +
                "ThrottlingException" => crate::operation::describe_endpoints::DescribeEndpointsError::ThrottlingException({
         216  +
                    let mut tmp = match protocol
         217  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         218  +
                        .and_then(|mut deser| {
         219  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         220  +
                                &mut *deser,
         221  +
                                response.headers(),
         222  +
                                response.status().into(),
         223  +
                                body,
         224  +
                            )
         225  +
                        }) {
         226  +
                        ::std::result::Result::Ok(val) => val,
         227  +
                        ::std::result::Result::Err(e) => {
         228  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         229  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         230  +
                            ))
         231  +
                        }
         232  +
                    };
         233  +
                    tmp.meta = generic;
         234  +
                    if tmp.message.is_none() {
         235  +
                        tmp.message = _error_message;
         236  +
                    }
         237  +
                    tmp
         238  +
                }),
         239  +
                "ValidationException" => crate::operation::describe_endpoints::DescribeEndpointsError::ValidationException({
         240  +
                    let mut tmp = match protocol
         241  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         242  +
                        .and_then(|mut deser| {
         243  +
                            crate::types::error::ValidationException::deserialize_with_response(
         244  +
                                &mut *deser,
         245  +
                                response.headers(),
         246  +
                                response.status().into(),
         247  +
                                body,
         248  +
                            )
         249  +
                        }) {
         250  +
                        ::std::result::Result::Ok(val) => val,
         251  +
                        ::std::result::Result::Err(e) => {
         252  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         253  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         254  +
                            ))
         255  +
                        }
         256  +
                    };
         257  +
                    tmp.meta = generic;
         258  +
                    if tmp.message.is_none() {
         259  +
                        tmp.message = _error_message;
         260  +
                    }
         261  +
                    tmp
         262  +
                }),
         263  +
                _ => crate::operation::describe_endpoints::DescribeEndpointsError::generic(generic),
         264  +
            };
         265  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         266  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         267  +
            ))
         268  +
        } else {
         269  +
            let protocol = _cfg
         270  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         271  +
                .expect("a SharedClientProtocol is required");
         272  +
            let mut deser = protocol
         273  +
                .deserialize_response(response, DescribeEndpoints::OUTPUT_SCHEMA, _cfg)
         274  +
                .map_err(|e| {
         275  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         276  +
                })?;
         277  +
            let body = response.body().bytes().expect("body loaded");
         278  +
            let output = crate::operation::describe_endpoints::DescribeEndpointsOutput::deserialize_with_response(
         279  +
                &mut *deser,
         280  +
                response.headers(),
         281  +
                response.status().into(),
         282  +
                body,
         283  +
            )
         284  +
            .map_err(|e| {
         285  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         286  +
            })?;
         287  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         288  +
        }
  170    289   
    }
  171    290   
}
  172    291   
#[derive(Debug)]
  173    292   
struct DescribeEndpointsRequestSerializer;
  174    293   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeEndpointsRequestSerializer {
  175    294   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  176    295   
    fn serialize_input(
  177    296   
        &self,
  178    297   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  179    298   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  180    299   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  181    300   
        let input = input
  182    301   
            .downcast::<crate::operation::describe_endpoints::DescribeEndpointsInput>()
  183    302   
            .expect("correct type");
  184         -
        let _header_serialization_settings = _cfg
  185         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  186         -
            .cloned()
  187         -
            .unwrap_or_default();
  188         -
        let mut request_builder = {
  189         -
            #[allow(clippy::uninlined_format_args)]
  190         -
            fn uri_base(
  191         -
                _input: &crate::operation::describe_endpoints::DescribeEndpointsInput,
  192         -
                output: &mut ::std::string::String,
  193         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  194         -
                use ::std::fmt::Write as _;
  195         -
                ::std::write!(output, "/").expect("formatting should succeed");
  196         -
                ::std::result::Result::Ok(())
  197         -
            }
  198         -
            #[allow(clippy::unnecessary_wraps)]
  199         -
            fn update_http_builder(
  200         -
                input: &crate::operation::describe_endpoints::DescribeEndpointsInput,
  201         -
                builder: ::http_1x::request::Builder,
  202         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  203         -
                let mut uri = ::std::string::String::new();
  204         -
                uri_base(input, &mut uri)?;
  205         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  206         -
            }
  207         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  208         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  209         -
            builder = _header_serialization_settings.set_default_header(
  210         -
                builder,
  211         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  212         -
                "Timestream_20181101.DescribeEndpoints",
  213         -
            );
  214         -
            builder
  215         -
        };
  216         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_describe_endpoints::ser_describe_endpoints_input(&input)?);
         303  +
        let protocol = _cfg
         304  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         305  +
            .expect("a SharedClientProtocol is required");
         306  +
        let mut request = protocol
         307  +
            .serialize_request(&input, DescribeEndpoints::INPUT_SCHEMA, "", _cfg)
         308  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  217    309   
  218         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         310  +
        return ::std::result::Result::Ok(request);
  219    311   
    }
  220    312   
}
  221    313   
#[derive(Debug)]
  222    314   
struct DescribeEndpointsEndpointParamsInterceptor;
  223    315   
  224    316   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeEndpointsEndpointParamsInterceptor {
  225    317   
    fn name(&self) -> &'static str {
  226    318   
        "DescribeEndpointsEndpointParamsInterceptor"
  227    319   
    }
  228    320   

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/describe_endpoints/_describe_endpoints_input.rs

@@ -1,1 +69,82 @@
   18     18   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   19     19   
    fn serialize_members(
   20     20   
        &self,
   21     21   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   22     22   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   23     23   
        Ok(())
   24     24   
    }
   25     25   
}
   26     26   
impl DescribeEndpointsInput {
   27     27   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   28         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   29         -
        deserializer: &mut D,
          28  +
    pub fn deserialize(
          29  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   30     30   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   31     31   
        #[allow(unused_variables, unused_mut)]
   32     32   
        let mut builder = Self::builder();
   33     33   
        #[allow(
   34     34   
            unused_variables,
   35     35   
            unreachable_code,
   36     36   
            clippy::single_match,
   37     37   
            clippy::match_single_binding,
   38     38   
            clippy::diverging_sub_expression
   39     39   
        )]
   40         -
        deserializer.read_struct(&DESCRIBEENDPOINTSINPUT_SCHEMA, (), |_, member, deser| {
          40  +
        deserializer.read_struct(&DESCRIBEENDPOINTSINPUT_SCHEMA, &mut |member, deser| {
   41     41   
            match member.member_index() {
   42     42   
                _ => {}
   43     43   
            }
   44     44   
            Ok(())
   45     45   
        })?;
   46     46   
        builder
   47     47   
            .build()
   48     48   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   49     49   
    }
   50     50   
}
          51  +
impl DescribeEndpointsInput {
          52  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          53  +
    pub fn deserialize_with_response(
          54  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          55  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          56  +
        _status: u16,
          57  +
        _body: &[u8],
          58  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          59  +
        Self::builder()
          60  +
            .build()
          61  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
          62  +
    }
          63  +
}
   51     64   
impl DescribeEndpointsInput {
   52     65   
    /// Creates a new builder-style object to manufacture [`DescribeEndpointsInput`](crate::operation::describe_endpoints::DescribeEndpointsInput).
   53     66   
    pub fn builder() -> crate::operation::describe_endpoints::builders::DescribeEndpointsInputBuilder {
   54     67   
        crate::operation::describe_endpoints::builders::DescribeEndpointsInputBuilder::default()
   55     68   
    }
   56     69   
}
   57     70   
   58     71   
/// A builder for [`DescribeEndpointsInput`](crate::operation::describe_endpoints::DescribeEndpointsInput).
   59     72   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   60     73   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/describe_endpoints/_describe_endpoints_output.rs

@@ -1,1 +119,170 @@
   19     19   
    "com.amazonaws.timestreamquery.synthetic",
   20     20   
    "DescribeEndpointsOutput",
   21     21   
);
   22     22   
static DESCRIBEENDPOINTSOUTPUT_MEMBER_ENDPOINTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   23     23   
    ::aws_smithy_schema::ShapeId::from_static(
   24     24   
        "com.amazonaws.timestreamquery.synthetic#DescribeEndpointsOutput$Endpoints",
   25     25   
        "com.amazonaws.timestreamquery.synthetic",
   26     26   
        "DescribeEndpointsOutput",
   27     27   
    ),
   28     28   
    ::aws_smithy_schema::ShapeType::List,
   29         -
    "endpoints",
          29  +
    "Endpoints",
   30     30   
    0,
   31     31   
);
          32  +
static DESCRIBEENDPOINTSOUTPUT_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 DESCRIBEENDPOINTSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    DESCRIBEENDPOINTSOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&DESCRIBEENDPOINTSOUTPUT_MEMBER_ENDPOINTS],
          42  +
    &[&DESCRIBEENDPOINTSOUTPUT_MEMBER_ENDPOINTS, &DESCRIBEENDPOINTSOUTPUT_MEMBER__REQUEST_ID],
   36     43   
);
   37     44   
impl DescribeEndpointsOutput {
   38     45   
    /// The schema for this shape.
   39     46   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEENDPOINTSOUTPUT_SCHEMA;
   40     47   
}
   41     48   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeEndpointsOutput {
   42     49   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   43     50   
    fn serialize_members(
   44     51   
        &self,
   45     52   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   46     53   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   47     54   
        {
   48     55   
            let val = &self.endpoints;
   49     56   
   50     57   
            ser.write_list(
   51     58   
                &DESCRIBEENDPOINTSOUTPUT_MEMBER_ENDPOINTS,
   52     59   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   53     60   
                    for item in val {
   54     61   
                        ser.write_struct(crate::types::Endpoint::SCHEMA, item)?;
   55     62   
                    }
   56     63   
                    Ok(())
   57     64   
                },
   58     65   
            )?;
   59     66   
        }
   60     67   
        Ok(())
   61     68   
    }
   62     69   
}
   63     70   
impl DescribeEndpointsOutput {
   64     71   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   65         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   66         -
        deserializer: &mut D,
          72  +
    pub fn deserialize(
          73  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          74  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          75  +
        #[allow(unused_variables, unused_mut)]
          76  +
        let mut builder = Self::builder();
          77  +
        #[allow(
          78  +
            unused_variables,
          79  +
            unreachable_code,
          80  +
            clippy::single_match,
          81  +
            clippy::match_single_binding,
          82  +
            clippy::diverging_sub_expression
          83  +
        )]
          84  +
        deserializer.read_struct(&DESCRIBEENDPOINTSOUTPUT_SCHEMA, &mut |member, deser| {
          85  +
            match member.member_index() {
          86  +
                Some(0) => {
          87  +
                    builder.endpoints = Some({
          88  +
                        let mut container = Vec::new();
          89  +
                        deser.read_list(member, &mut |deser| {
          90  +
                            container.push(crate::types::Endpoint::deserialize(deser)?);
          91  +
                            Ok(())
          92  +
                        })?;
          93  +
                        container
          94  +
                    });
          95  +
                }
          96  +
                Some(1) => {
          97  +
                    builder._request_id = Some(deser.read_string(member)?);
          98  +
                }
          99  +
                _ => {}
         100  +
            }
         101  +
            Ok(())
         102  +
        })?;
         103  +
        builder.endpoints = builder.endpoints.or(Some(Vec::new()));
         104  +
        builder
         105  +
            .build()
         106  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         107  +
    }
         108  +
}
         109  +
impl DescribeEndpointsOutput {
         110  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         111  +
    /// Header-bound members are read directly from headers, avoiding runtime
         112  +
    /// member iteration overhead. Body members are read via the deserializer.
         113  +
    pub fn deserialize_with_response(
         114  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         115  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         116  +
        _status: u16,
         117  +
        _body: &[u8],
   67    118   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   68    119   
        #[allow(unused_variables, unused_mut)]
   69    120   
        let mut builder = Self::builder();
         121  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         122  +
            builder._request_id = Some(val.to_string());
         123  +
        }
   70    124   
        #[allow(
   71    125   
            unused_variables,
   72    126   
            unreachable_code,
   73    127   
            clippy::single_match,
   74    128   
            clippy::match_single_binding,
   75    129   
            clippy::diverging_sub_expression
   76    130   
        )]
   77         -
        deserializer.read_struct(&DESCRIBEENDPOINTSOUTPUT_SCHEMA, (), |_, member, deser| {
         131  +
        deserializer.read_struct(&DESCRIBEENDPOINTSOUTPUT_SCHEMA, &mut |member, deser| {
   78    132   
            match member.member_index() {
   79    133   
                Some(0) => {
   80    134   
                    builder.endpoints = Some({
   81         -
                        let container = if let Some(cap) = deser.container_size() {
   82         -
                            Vec::with_capacity(cap)
   83         -
                        } else {
   84         -
                            Vec::new()
   85         -
                        };
   86         -
                        deser.read_list(member, container, |mut list, deser| {
   87         -
                            list.push(crate::types::Endpoint::deserialize(deser)?);
   88         -
                            Ok(list)
   89         -
                        })?
         135  +
                        let mut container = Vec::new();
         136  +
                        deser.read_list(member, &mut |deser| {
         137  +
                            container.push(crate::types::Endpoint::deserialize(deser)?);
         138  +
                            Ok(())
         139  +
                        })?;
         140  +
                        container
   90    141   
                    });
   91    142   
                }
   92    143   
                _ => {}
   93    144   
            }
   94    145   
            Ok(())
   95    146   
        })?;
   96    147   
        builder
   97    148   
            .build()
   98    149   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   99    150   
    }

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/describe_scheduled_query.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 `DescribeScheduledQuery`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeScheduledQuery;
    6      6   
impl DescribeScheduledQuery {
    7      7   
    /// Creates a new `DescribeScheduledQuery`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_scheduled_query::DescribeScheduledQueryInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_scheduled_query::DescribeScheduledQueryOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::describe_scheduled_query::DescribeScheduledQueryInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::describe_scheduled_query::DescribeScheduledQueryOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::describe_scheduled_query::DescribeScheduledQueryError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -125,129 +254,413 @@
  145    149   
                crate::operation::describe_scheduled_query::DescribeScheduledQueryError,
  146    150   
            >::new());
  147    151   
  148    152   
        ::std::borrow::Cow::Owned(rcb)
  149    153   
    }
  150    154   
}
  151    155   
  152    156   
#[derive(Debug)]
  153    157   
struct DescribeScheduledQueryResponseDeserializer;
  154    158   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeScheduledQueryResponseDeserializer {
  155         -
    fn deserialize_nonstreaming(
         159  +
    fn deserialize_nonstreaming_with_config(
  156    160   
        &self,
  157    161   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         162  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  158    163   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  159    164   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  160         -
        let headers = response.headers();
  161         -
        let body = response.body().bytes().expect("body loaded");
  162    165   
        #[allow(unused_mut)]
  163    166   
        let mut force_error = false;
  164    167   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  165         -
        let parse_result = if !success && status != 200 || force_error {
  166         -
            crate::protocol_serde::shape_describe_scheduled_query::de_describe_scheduled_query_http_error(status, headers, body)
  167         -
        } else {
  168         -
            crate::protocol_serde::shape_describe_scheduled_query::de_describe_scheduled_query_http_response(status, headers, body)
         168  +
        if !success && status != 200 || force_error {
         169  +
            let headers = response.headers();
         170  +
            let body = response.body().bytes().expect("body loaded");
         171  +
            #[allow(unused_mut)]
         172  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         173  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         174  +
            })?;
         175  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         176  +
            let generic = generic_builder.build();
         177  +
            let error_code = match generic.code() {
         178  +
                ::std::option::Option::Some(code) => code,
         179  +
                ::std::option::Option::None => {
         180  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         181  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         182  +
                            crate::operation::describe_scheduled_query::DescribeScheduledQueryError::unhandled(generic),
         183  +
                        ),
         184  +
                    ))
         185  +
                }
         186  +
            };
         187  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         188  +
            let protocol = _cfg
         189  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         190  +
                .expect("a SharedClientProtocol is required");
         191  +
            let err = match error_code {
         192  +
                "AccessDeniedException" => crate::operation::describe_scheduled_query::DescribeScheduledQueryError::AccessDeniedException({
         193  +
                    let mut tmp = match protocol
         194  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         195  +
                        .and_then(|mut deser| {
         196  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         197  +
                                &mut *deser,
         198  +
                                response.headers(),
         199  +
                                response.status().into(),
         200  +
                                body,
         201  +
                            )
         202  +
                        }) {
         203  +
                        ::std::result::Result::Ok(val) => val,
         204  +
                        ::std::result::Result::Err(e) => {
         205  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         206  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         207  +
                            ))
         208  +
                        }
         209  +
                    };
         210  +
                    tmp.meta = generic;
         211  +
                    if tmp.message.is_none() {
         212  +
                        tmp.message = _error_message;
         213  +
                    }
         214  +
                    tmp
         215  +
                }),
         216  +
                "InternalServerException" => crate::operation::describe_scheduled_query::DescribeScheduledQueryError::InternalServerException({
         217  +
                    let mut tmp = match protocol
         218  +
                        .deserialize_response(response, crate::types::error::InternalServerException::SCHEMA, _cfg)
         219  +
                        .and_then(|mut deser| {
         220  +
                            crate::types::error::InternalServerException::deserialize_with_response(
         221  +
                                &mut *deser,
         222  +
                                response.headers(),
         223  +
                                response.status().into(),
         224  +
                                body,
         225  +
                            )
         226  +
                        }) {
         227  +
                        ::std::result::Result::Ok(val) => val,
         228  +
                        ::std::result::Result::Err(e) => {
         229  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         230  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         231  +
                            ))
         232  +
                        }
         233  +
                    };
         234  +
                    tmp.meta = generic;
         235  +
                    if tmp.message.is_none() {
         236  +
                        tmp.message = _error_message;
         237  +
                    }
         238  +
                    tmp
         239  +
                }),
         240  +
                "InvalidEndpointException" => crate::operation::describe_scheduled_query::DescribeScheduledQueryError::InvalidEndpointException({
         241  +
                    let mut tmp = match protocol
         242  +
                        .deserialize_response(response, crate::types::error::InvalidEndpointException::SCHEMA, _cfg)
         243  +
                        .and_then(|mut deser| {
         244  +
                            crate::types::error::InvalidEndpointException::deserialize_with_response(
         245  +
                                &mut *deser,
         246  +
                                response.headers(),
         247  +
                                response.status().into(),
         248  +
                                body,
         249  +
                            )
         250  +
                        }) {
         251  +
                        ::std::result::Result::Ok(val) => val,
         252  +
                        ::std::result::Result::Err(e) => {
         253  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         254  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         255  +
                            ))
         256  +
                        }
         257  +
                    };
         258  +
                    tmp.meta = generic;
         259  +
                    if tmp.message.is_none() {
         260  +
                        tmp.message = _error_message;
         261  +
                    }
         262  +
                    tmp
         263  +
                }),
         264  +
                "ResourceNotFoundException" => crate::operation::describe_scheduled_query::DescribeScheduledQueryError::ResourceNotFoundException({
         265  +
                    let mut tmp = match protocol
         266  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         267  +
                        .and_then(|mut deser| {
         268  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         269  +
                                &mut *deser,
         270  +
                                response.headers(),
         271  +
                                response.status().into(),
         272  +
                                body,
         273  +
                            )
         274  +
                        }) {
         275  +
                        ::std::result::Result::Ok(val) => val,
         276  +
                        ::std::result::Result::Err(e) => {
         277  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         278  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         279  +
                            ))
         280  +
                        }
         281  +
                    };
         282  +
                    tmp.meta = generic;
         283  +
                    if tmp.message.is_none() {
         284  +
                        tmp.message = _error_message;
         285  +
                    }
         286  +
                    tmp
         287  +
                }),
         288  +
                "ThrottlingException" => crate::operation::describe_scheduled_query::DescribeScheduledQueryError::ThrottlingException({
         289  +
                    let mut tmp = match protocol
         290  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         291  +
                        .and_then(|mut deser| {
         292  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         293  +
                                &mut *deser,
         294  +
                                response.headers(),
         295  +
                                response.status().into(),
         296  +
                                body,
         297  +
                            )
         298  +
                        }) {
         299  +
                        ::std::result::Result::Ok(val) => val,
         300  +
                        ::std::result::Result::Err(e) => {
         301  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         302  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         303  +
                            ))
         304  +
                        }
  169    305   
                    };
  170         -
        crate::protocol_serde::type_erase_result(parse_result)
         306  +
                    tmp.meta = generic;
         307  +
                    if tmp.message.is_none() {
         308  +
                        tmp.message = _error_message;
         309  +
                    }
         310  +
                    tmp
         311  +
                }),
         312  +
                "ValidationException" => crate::operation::describe_scheduled_query::DescribeScheduledQueryError::ValidationException({
         313  +
                    let mut tmp = match protocol
         314  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         315  +
                        .and_then(|mut deser| {
         316  +
                            crate::types::error::ValidationException::deserialize_with_response(
         317  +
                                &mut *deser,
         318  +
                                response.headers(),
         319  +
                                response.status().into(),
         320  +
                                body,
         321  +
                            )
         322  +
                        }) {
         323  +
                        ::std::result::Result::Ok(val) => val,
         324  +
                        ::std::result::Result::Err(e) => {
         325  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         326  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         327  +
                            ))
         328  +
                        }
         329  +
                    };
         330  +
                    tmp.meta = generic;
         331  +
                    if tmp.message.is_none() {
         332  +
                        tmp.message = _error_message;
         333  +
                    }
         334  +
                    tmp
         335  +
                }),
         336  +
                _ => crate::operation::describe_scheduled_query::DescribeScheduledQueryError::generic(generic),
         337  +
            };
         338  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         339  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         340  +
            ))
         341  +
        } else {
         342  +
            let protocol = _cfg
         343  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         344  +
                .expect("a SharedClientProtocol is required");
         345  +
            let mut deser = protocol
         346  +
                .deserialize_response(response, DescribeScheduledQuery::OUTPUT_SCHEMA, _cfg)
         347  +
                .map_err(|e| {
         348  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         349  +
                })?;
         350  +
            let body = response.body().bytes().expect("body loaded");
         351  +
            let output = crate::operation::describe_scheduled_query::DescribeScheduledQueryOutput::deserialize_with_response(
         352  +
                &mut *deser,
         353  +
                response.headers(),
         354  +
                response.status().into(),
         355  +
                body,
         356  +
            )
         357  +
            .map_err(|e| {
         358  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         359  +
            })?;
         360  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         361  +
        }
  171    362   
    }
  172    363   
}
  173    364   
#[derive(Debug)]
  174    365   
struct DescribeScheduledQueryRequestSerializer;
  175    366   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeScheduledQueryRequestSerializer {
  176    367   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  177    368   
    fn serialize_input(
  178    369   
        &self,
  179    370   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  180    371   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  181    372   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  182    373   
        let input = input
  183    374   
            .downcast::<crate::operation::describe_scheduled_query::DescribeScheduledQueryInput>()
  184    375   
            .expect("correct type");
  185         -
        let _header_serialization_settings = _cfg
  186         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  187         -
            .cloned()
  188         -
            .unwrap_or_default();
  189         -
        let mut request_builder = {
  190         -
            #[allow(clippy::uninlined_format_args)]
  191         -
            fn uri_base(
  192         -
                _input: &crate::operation::describe_scheduled_query::DescribeScheduledQueryInput,
  193         -
                output: &mut ::std::string::String,
  194         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  195         -
                use ::std::fmt::Write as _;
  196         -
                ::std::write!(output, "/").expect("formatting should succeed");
  197         -
                ::std::result::Result::Ok(())
  198         -
            }
  199         -
            #[allow(clippy::unnecessary_wraps)]
  200         -
            fn update_http_builder(
  201         -
                input: &crate::operation::describe_scheduled_query::DescribeScheduledQueryInput,
  202         -
                builder: ::http_1x::request::Builder,
  203         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  204         -
                let mut uri = ::std::string::String::new();
  205         -
                uri_base(input, &mut uri)?;
  206         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  207         -
            }
  208         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  209         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  210         -
            builder = _header_serialization_settings.set_default_header(
  211         -
                builder,
  212         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  213         -
                "Timestream_20181101.DescribeScheduledQuery",
  214         -
            );
  215         -
            builder
  216         -
        };
  217         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  218         -
            crate::protocol_serde::shape_describe_scheduled_query::ser_describe_scheduled_query_input(&input)?,
  219         -
        );
  220         -
        if let Some(content_length) = body.content_length() {
  221         -
            let content_length = content_length.to_string();
  222         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  223         -
        }
  224         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         376  +
        let protocol = _cfg
         377  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         378  +
            .expect("a SharedClientProtocol is required");
         379  +
        let mut request = protocol
         380  +
            .serialize_request(&input, DescribeScheduledQuery::INPUT_SCHEMA, "", _cfg)
         381  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         382  +
         383  +
        return ::std::result::Result::Ok(request);
  225    384   
    }
  226    385   
}
  227    386   
#[derive(Debug)]
  228    387   
struct DescribeScheduledQueryEndpointParamsInterceptor;
  229    388   
  230    389   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeScheduledQueryEndpointParamsInterceptor {
  231    390   
    fn name(&self) -> &'static str {
  232    391   
        "DescribeScheduledQueryEndpointParamsInterceptor"
  233    392   
    }
  234    393   

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/describe_scheduled_query/_describe_scheduled_query_input.rs

@@ -1,1 +108,120 @@
   17     17   
    "com.amazonaws.timestreamquery.synthetic",
   18     18   
    "DescribeScheduledQueryInput",
   19     19   
);
   20     20   
static DESCRIBESCHEDULEDQUERYINPUT_MEMBER_SCHEDULED_QUERY_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   21     21   
    ::aws_smithy_schema::ShapeId::from_static(
   22     22   
        "com.amazonaws.timestreamquery.synthetic#DescribeScheduledQueryInput$ScheduledQueryArn",
   23     23   
        "com.amazonaws.timestreamquery.synthetic",
   24     24   
        "DescribeScheduledQueryInput",
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::String,
   27         -
    "scheduled_query_arn",
          27  +
    "ScheduledQueryArn",
   28     28   
    0,
   29     29   
);
   30     30   
static DESCRIBESCHEDULEDQUERYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   31     31   
    DESCRIBESCHEDULEDQUERYINPUT_SCHEMA_ID,
   32     32   
    ::aws_smithy_schema::ShapeType::Structure,
   33     33   
    &[&DESCRIBESCHEDULEDQUERYINPUT_MEMBER_SCHEDULED_QUERY_ARN],
   34     34   
);
   35     35   
impl DescribeScheduledQueryInput {
   36     36   
    /// The schema for this shape.
   37     37   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBESCHEDULEDQUERYINPUT_SCHEMA;
   38     38   
}
   39     39   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeScheduledQueryInput {
   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.scheduled_query_arn {
   46     46   
            ser.write_string(&DESCRIBESCHEDULEDQUERYINPUT_MEMBER_SCHEDULED_QUERY_ARN, val)?;
   47     47   
        }
   48     48   
        Ok(())
   49     49   
    }
   50     50   
}
   51     51   
impl DescribeScheduledQueryInput {
   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(&DESCRIBESCHEDULEDQUERYINPUT_SCHEMA, (), |_, member, deser| {
          65  +
        deserializer.read_struct(&DESCRIBESCHEDULEDQUERYINPUT_SCHEMA, &mut |member, deser| {
   66     66   
            match member.member_index() {
   67     67   
                Some(0) => {
   68     68   
                    builder.scheduled_query_arn = Some(deser.read_string(member)?);
   69     69   
                }
   70     70   
                _ => {}
   71     71   
            }
   72     72   
            Ok(())
   73     73   
        })?;
          74  +
        builder.scheduled_query_arn = builder.scheduled_query_arn.or(Some(String::new()));
   74     75   
        builder
   75     76   
            .build()
   76     77   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   77     78   
    }
   78     79   
}
          80  +
impl DescribeScheduledQueryInput {
          81  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          82  +
    pub fn deserialize_with_response(
          83  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          84  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          85  +
        _status: u16,
          86  +
        _body: &[u8],
          87  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          88  +
        Self::deserialize(deserializer)
          89  +
    }
          90  +
}
   79     91   
impl DescribeScheduledQueryInput {
   80     92   
    /// Creates a new builder-style object to manufacture [`DescribeScheduledQueryInput`](crate::operation::describe_scheduled_query::DescribeScheduledQueryInput).
   81     93   
    pub fn builder() -> crate::operation::describe_scheduled_query::builders::DescribeScheduledQueryInputBuilder {
   82     94   
        crate::operation::describe_scheduled_query::builders::DescribeScheduledQueryInputBuilder::default()
   83     95   
    }
   84     96   
}
   85     97   
   86     98   
/// A builder for [`DescribeScheduledQueryInput`](crate::operation::describe_scheduled_query::DescribeScheduledQueryInput).
   87     99   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   88    100   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/describe_scheduled_query/_describe_scheduled_query_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/execute_scheduled_query.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 `ExecuteScheduledQuery`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ExecuteScheduledQuery;
    6      6   
impl ExecuteScheduledQuery {
    7      7   
    /// Creates a new `ExecuteScheduledQuery`
    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::execute_scheduled_query::ExecuteScheduledQueryInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::execute_scheduled_query::ExecuteScheduledQueryOutput::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::execute_scheduled_query::ExecuteScheduledQueryInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::execute_scheduled_query::ExecuteScheduledQueryOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::execute_scheduled_query::ExecuteScheduledQueryError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -131,135 +260,419 @@
  151    155   
                crate::operation::execute_scheduled_query::ExecuteScheduledQueryError,
  152    156   
            >::new());
  153    157   
  154    158   
        ::std::borrow::Cow::Owned(rcb)
  155    159   
    }
  156    160   
}
  157    161   
  158    162   
#[derive(Debug)]
  159    163   
struct ExecuteScheduledQueryResponseDeserializer;
  160    164   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ExecuteScheduledQueryResponseDeserializer {
  161         -
    fn deserialize_nonstreaming(
         165  +
    fn deserialize_nonstreaming_with_config(
  162    166   
        &self,
  163    167   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         168  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  164    169   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  165    170   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  166         -
        let headers = response.headers();
  167         -
        let body = response.body().bytes().expect("body loaded");
  168    171   
        #[allow(unused_mut)]
  169    172   
        let mut force_error = false;
  170    173   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  171         -
        let parse_result = if !success && status != 200 || force_error {
  172         -
            crate::protocol_serde::shape_execute_scheduled_query::de_execute_scheduled_query_http_error(status, headers, body)
  173         -
        } else {
  174         -
            crate::protocol_serde::shape_execute_scheduled_query::de_execute_scheduled_query_http_response(status, headers, body)
         174  +
        if !success && status != 200 || force_error {
         175  +
            let headers = response.headers();
         176  +
            let body = response.body().bytes().expect("body loaded");
         177  +
            #[allow(unused_mut)]
         178  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         179  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         180  +
            })?;
         181  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         182  +
            let generic = generic_builder.build();
         183  +
            let error_code = match generic.code() {
         184  +
                ::std::option::Option::Some(code) => code,
         185  +
                ::std::option::Option::None => {
         186  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         187  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         188  +
                            crate::operation::execute_scheduled_query::ExecuteScheduledQueryError::unhandled(generic),
         189  +
                        ),
         190  +
                    ))
         191  +
                }
         192  +
            };
         193  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         194  +
            let protocol = _cfg
         195  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         196  +
                .expect("a SharedClientProtocol is required");
         197  +
            let err = match error_code {
         198  +
                "AccessDeniedException" => crate::operation::execute_scheduled_query::ExecuteScheduledQueryError::AccessDeniedException({
         199  +
                    let mut tmp = match protocol
         200  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         201  +
                        .and_then(|mut deser| {
         202  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         203  +
                                &mut *deser,
         204  +
                                response.headers(),
         205  +
                                response.status().into(),
         206  +
                                body,
         207  +
                            )
         208  +
                        }) {
         209  +
                        ::std::result::Result::Ok(val) => val,
         210  +
                        ::std::result::Result::Err(e) => {
         211  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         212  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         213  +
                            ))
         214  +
                        }
         215  +
                    };
         216  +
                    tmp.meta = generic;
         217  +
                    if tmp.message.is_none() {
         218  +
                        tmp.message = _error_message;
         219  +
                    }
         220  +
                    tmp
         221  +
                }),
         222  +
                "InternalServerException" => crate::operation::execute_scheduled_query::ExecuteScheduledQueryError::InternalServerException({
         223  +
                    let mut tmp = match protocol
         224  +
                        .deserialize_response(response, crate::types::error::InternalServerException::SCHEMA, _cfg)
         225  +
                        .and_then(|mut deser| {
         226  +
                            crate::types::error::InternalServerException::deserialize_with_response(
         227  +
                                &mut *deser,
         228  +
                                response.headers(),
         229  +
                                response.status().into(),
         230  +
                                body,
         231  +
                            )
         232  +
                        }) {
         233  +
                        ::std::result::Result::Ok(val) => val,
         234  +
                        ::std::result::Result::Err(e) => {
         235  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         236  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         237  +
                            ))
         238  +
                        }
         239  +
                    };
         240  +
                    tmp.meta = generic;
         241  +
                    if tmp.message.is_none() {
         242  +
                        tmp.message = _error_message;
         243  +
                    }
         244  +
                    tmp
         245  +
                }),
         246  +
                "InvalidEndpointException" => crate::operation::execute_scheduled_query::ExecuteScheduledQueryError::InvalidEndpointException({
         247  +
                    let mut tmp = match protocol
         248  +
                        .deserialize_response(response, crate::types::error::InvalidEndpointException::SCHEMA, _cfg)
         249  +
                        .and_then(|mut deser| {
         250  +
                            crate::types::error::InvalidEndpointException::deserialize_with_response(
         251  +
                                &mut *deser,
         252  +
                                response.headers(),
         253  +
                                response.status().into(),
         254  +
                                body,
         255  +
                            )
         256  +
                        }) {
         257  +
                        ::std::result::Result::Ok(val) => val,
         258  +
                        ::std::result::Result::Err(e) => {
         259  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         260  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         261  +
                            ))
         262  +
                        }
         263  +
                    };
         264  +
                    tmp.meta = generic;
         265  +
                    if tmp.message.is_none() {
         266  +
                        tmp.message = _error_message;
         267  +
                    }
         268  +
                    tmp
         269  +
                }),
         270  +
                "ResourceNotFoundException" => crate::operation::execute_scheduled_query::ExecuteScheduledQueryError::ResourceNotFoundException({
         271  +
                    let mut tmp = match protocol
         272  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         273  +
                        .and_then(|mut deser| {
         274  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         275  +
                                &mut *deser,
         276  +
                                response.headers(),
         277  +
                                response.status().into(),
         278  +
                                body,
         279  +
                            )
         280  +
                        }) {
         281  +
                        ::std::result::Result::Ok(val) => val,
         282  +
                        ::std::result::Result::Err(e) => {
         283  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         284  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         285  +
                            ))
         286  +
                        }
         287  +
                    };
         288  +
                    tmp.meta = generic;
         289  +
                    if tmp.message.is_none() {
         290  +
                        tmp.message = _error_message;
         291  +
                    }
         292  +
                    tmp
         293  +
                }),
         294  +
                "ThrottlingException" => crate::operation::execute_scheduled_query::ExecuteScheduledQueryError::ThrottlingException({
         295  +
                    let mut tmp = match protocol
         296  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         297  +
                        .and_then(|mut deser| {
         298  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         299  +
                                &mut *deser,
         300  +
                                response.headers(),
         301  +
                                response.status().into(),
         302  +
                                body,
         303  +
                            )
         304  +
                        }) {
         305  +
                        ::std::result::Result::Ok(val) => val,
         306  +
                        ::std::result::Result::Err(e) => {
         307  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         308  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         309  +
                            ))
         310  +
                        }
  175    311   
                    };
  176         -
        crate::protocol_serde::type_erase_result(parse_result)
         312  +
                    tmp.meta = generic;
         313  +
                    if tmp.message.is_none() {
         314  +
                        tmp.message = _error_message;
         315  +
                    }
         316  +
                    tmp
         317  +
                }),
         318  +
                "ValidationException" => crate::operation::execute_scheduled_query::ExecuteScheduledQueryError::ValidationException({
         319  +
                    let mut tmp = match protocol
         320  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         321  +
                        .and_then(|mut deser| {
         322  +
                            crate::types::error::ValidationException::deserialize_with_response(
         323  +
                                &mut *deser,
         324  +
                                response.headers(),
         325  +
                                response.status().into(),
         326  +
                                body,
         327  +
                            )
         328  +
                        }) {
         329  +
                        ::std::result::Result::Ok(val) => val,
         330  +
                        ::std::result::Result::Err(e) => {
         331  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         332  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         333  +
                            ))
         334  +
                        }
         335  +
                    };
         336  +
                    tmp.meta = generic;
         337  +
                    if tmp.message.is_none() {
         338  +
                        tmp.message = _error_message;
         339  +
                    }
         340  +
                    tmp
         341  +
                }),
         342  +
                _ => crate::operation::execute_scheduled_query::ExecuteScheduledQueryError::generic(generic),
         343  +
            };
         344  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         345  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         346  +
            ))
         347  +
        } else {
         348  +
            let protocol = _cfg
         349  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         350  +
                .expect("a SharedClientProtocol is required");
         351  +
            let mut deser = protocol
         352  +
                .deserialize_response(response, ExecuteScheduledQuery::OUTPUT_SCHEMA, _cfg)
         353  +
                .map_err(|e| {
         354  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         355  +
                })?;
         356  +
            let body = response.body().bytes().expect("body loaded");
         357  +
            let output = crate::operation::execute_scheduled_query::ExecuteScheduledQueryOutput::deserialize_with_response(
         358  +
                &mut *deser,
         359  +
                response.headers(),
         360  +
                response.status().into(),
         361  +
                body,
         362  +
            )
         363  +
            .map_err(|e| {
         364  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         365  +
            })?;
         366  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         367  +
        }
  177    368   
    }
  178    369   
}
  179    370   
#[derive(Debug)]
  180    371   
struct ExecuteScheduledQueryRequestSerializer;
  181    372   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ExecuteScheduledQueryRequestSerializer {
  182    373   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  183    374   
    fn serialize_input(
  184    375   
        &self,
  185    376   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  186    377   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  187    378   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  188    379   
        let input = input
  189    380   
            .downcast::<crate::operation::execute_scheduled_query::ExecuteScheduledQueryInput>()
  190    381   
            .expect("correct type");
  191         -
        let _header_serialization_settings = _cfg
  192         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  193         -
            .cloned()
  194         -
            .unwrap_or_default();
  195         -
        let mut request_builder = {
  196         -
            #[allow(clippy::uninlined_format_args)]
  197         -
            fn uri_base(
  198         -
                _input: &crate::operation::execute_scheduled_query::ExecuteScheduledQueryInput,
  199         -
                output: &mut ::std::string::String,
  200         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  201         -
                use ::std::fmt::Write as _;
  202         -
                ::std::write!(output, "/").expect("formatting should succeed");
  203         -
                ::std::result::Result::Ok(())
  204         -
            }
  205         -
            #[allow(clippy::unnecessary_wraps)]
  206         -
            fn update_http_builder(
  207         -
                input: &crate::operation::execute_scheduled_query::ExecuteScheduledQueryInput,
  208         -
                builder: ::http_1x::request::Builder,
  209         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  210         -
                let mut uri = ::std::string::String::new();
  211         -
                uri_base(input, &mut uri)?;
  212         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  213         -
            }
  214         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  215         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  216         -
            builder = _header_serialization_settings.set_default_header(
  217         -
                builder,
  218         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  219         -
                "Timestream_20181101.ExecuteScheduledQuery",
  220         -
            );
  221         -
            builder
  222         -
        };
  223         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_execute_scheduled_query::ser_execute_scheduled_query_input(
  224         -
            &input,
  225         -
        )?);
  226         -
        if let Some(content_length) = body.content_length() {
  227         -
            let content_length = content_length.to_string();
  228         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  229         -
        }
  230         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         382  +
        let protocol = _cfg
         383  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         384  +
            .expect("a SharedClientProtocol is required");
         385  +
        let mut request = protocol
         386  +
            .serialize_request(&input, ExecuteScheduledQuery::INPUT_SCHEMA, "", _cfg)
         387  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         388  +
         389  +
        return ::std::result::Result::Ok(request);
  231    390   
    }
  232    391   
}
  233    392   
#[derive(Debug)]
  234    393   
struct ExecuteScheduledQueryEndpointParamsInterceptor;
  235    394   
  236    395   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ExecuteScheduledQueryEndpointParamsInterceptor {
  237    396   
    fn name(&self) -> &'static str {
  238    397   
        "ExecuteScheduledQueryEndpointParamsInterceptor"
  239    398   
    }
  240    399