AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045

Files changed:

tmp-codegen-diff/aws-sdk/sdk/sts/src/types/error/_region_disabled_exception.rs

@@ -28,28 +111,122 @@
   48     48   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   49     49   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   50     50   
        if let Some(ref val) = self.message {
   51     51   
            ser.write_string(&REGIONDISABLEDEXCEPTION_MEMBER_MESSAGE, val)?;
   52     52   
        }
   53     53   
        Ok(())
   54     54   
    }
   55     55   
}
   56     56   
impl RegionDisabledException {
   57     57   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   58         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   59         -
        deserializer: &mut D,
          58  +
    pub fn deserialize(
          59  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   60     60   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   61     61   
        #[allow(unused_variables, unused_mut)]
   62     62   
        let mut builder = Self::builder();
   63     63   
        #[allow(
   64     64   
            unused_variables,
   65     65   
            unreachable_code,
   66     66   
            clippy::single_match,
   67     67   
            clippy::match_single_binding,
   68     68   
            clippy::diverging_sub_expression
   69     69   
        )]
   70         -
        deserializer.read_struct(&REGIONDISABLEDEXCEPTION_SCHEMA, (), |_, member, deser| {
          70  +
        deserializer.read_struct(&REGIONDISABLEDEXCEPTION_SCHEMA, &mut |member, deser| {
   71     71   
            match member.member_index() {
   72     72   
                Some(0) => {
   73     73   
                    builder.message = Some(deser.read_string(member)?);
   74     74   
                }
   75     75   
                _ => {}
   76     76   
            }
   77     77   
            Ok(())
   78     78   
        })?;
   79     79   
        Ok(builder.build())
   80     80   
    }
   81     81   
}
          82  +
impl RegionDisabledException {
          83  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          84  +
    pub fn deserialize_with_response(
          85  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          86  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          87  +
        _status: u16,
          88  +
        _body: &[u8],
          89  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          90  +
        Self::deserialize(deserializer)
          91  +
    }
          92  +
}
   82     93   
impl RegionDisabledException {
   83     94   
    /// Returns the error message.
   84     95   
    pub fn message(&self) -> ::std::option::Option<&str> {
   85     96   
        self.message.as_deref()
   86     97   
    }
   87     98   
}
   88     99   
impl ::std::fmt::Display for RegionDisabledException {
   89    100   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
   90    101   
        ::std::write!(f, "RegionDisabledException")?;
   91    102   
        if let ::std::option::Option::Some(inner_1) = &self.message {

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/Cargo.toml

@@ -15,15 +80,80 @@
   35     35   
path = "../aws-smithy-json"
   36     36   
version = "0.62.6"
   37     37   
   38     38   
[dependencies.aws-smithy-observability]
   39     39   
path = "../aws-smithy-observability"
   40     40   
version = "0.2.6"
   41     41   
   42     42   
[dependencies.aws-smithy-runtime]
   43     43   
path = "../aws-smithy-runtime"
   44     44   
features = ["client"]
   45         -
version = "1.10.3"
          45  +
version = "1.10.4"
   46     46   
   47     47   
[dependencies.aws-smithy-runtime-api]
   48     48   
path = "../aws-smithy-runtime-api"
   49     49   
features = ["client", "http-1x"]
   50         -
version = "1.11.6"
          50  +
version = "1.11.7"
   51     51   
   52     52   
[dependencies.aws-smithy-schema]
   53     53   
path = "../aws-smithy-schema"
   54     54   
version = "1.0.0"
   55     55   
   56     56   
[dependencies.aws-smithy-types]
   57     57   
path = "../aws-smithy-types"
   58     58   
features = ["http-body-1-x"]
   59     59   
version = "1.4.7"
   60     60   
@@ -88,88 +153,153 @@
  108    108   
features = ["test-util", "wire-mock"]
  109    109   
version = "1.1.12"
  110    110   
  111    111   
[dev-dependencies.aws-smithy-protocol-test]
  112    112   
path = "../aws-smithy-protocol-test"
  113    113   
version = "0.63.14"
  114    114   
  115    115   
[dev-dependencies.aws-smithy-runtime]
  116    116   
path = "../aws-smithy-runtime"
  117    117   
features = ["test-util"]
  118         -
version = "1.10.3"
         118  +
version = "1.10.4"
  119    119   
  120    120   
[dev-dependencies.aws-smithy-runtime-api]
  121    121   
path = "../aws-smithy-runtime-api"
  122    122   
features = ["test-util"]
  123         -
version = "1.11.6"
         123  +
version = "1.11.7"
  124    124   
  125    125   
[dev-dependencies.aws-smithy-types]
  126    126   
path = "../aws-smithy-types"
  127    127   
features = ["http-body-1-x", "test-util"]
  128    128   
version = "1.4.7"
  129    129   
  130    130   
[dev-dependencies.futures-util]
  131    131   
version = "0.3.25"
  132    132   
features = ["alloc"]
  133    133   
default-features = false

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/config.rs

@@ -23,23 +82,86 @@
   43     43   
            config: self.cloneable.clone(),
   44     44   
            runtime_components: self.runtime_components.clone(),
   45     45   
            runtime_plugins: self.runtime_plugins.clone(),
   46     46   
            behavior_version: self.behavior_version,
   47     47   
        }
   48     48   
    }
   49     49   
    /// Return a reference to the stalled stream protection configuration contained in this config, if any.
   50     50   
    pub fn stalled_stream_protection(&self) -> ::std::option::Option<&crate::config::StalledStreamProtectionConfig> {
   51     51   
        self.config.load::<crate::config::StalledStreamProtectionConfig>()
   52     52   
    }
          53  +
    /// Returns the client protocol used for serialization and deserialization.
          54  +
    pub fn protocol(&self) -> ::std::option::Option<&::aws_smithy_schema::protocol::SharedClientProtocol> {
          55  +
        self.config.load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
          56  +
    }
   53     57   
    /// Return the [`SharedHttpClient`](crate::config::SharedHttpClient) to use when making requests, if any.
   54     58   
    pub fn http_client(&self) -> Option<crate::config::SharedHttpClient> {
   55     59   
        self.runtime_components.http_client()
   56     60   
    }
   57     61   
    /// Return the auth schemes configured on this service config
   58     62   
    pub fn auth_schemes(&self) -> impl Iterator<Item = ::aws_smithy_runtime_api::client::auth::SharedAuthScheme> + '_ {
   59     63   
        self.runtime_components.auth_schemes()
   60     64   
    }
   61     65   
   62     66   
    /// Return the auth scheme resolver configured on this service config
@@ -153,157 +254,277 @@
  173    177   
    ///
  174    178   
    pub fn new() -> Self {
  175    179   
        Self::default()
  176    180   
    }
  177    181   
    /// Constructs a config builder from the given `config_bag`, setting only fields stored in the config bag,
  178    182   
    /// but not those in runtime components.
  179    183   
    #[allow(unused)]
  180    184   
    pub(crate) fn from_config_bag(config_bag: &::aws_smithy_types::config_bag::ConfigBag) -> Self {
  181    185   
        let mut builder = Self::new();
  182    186   
        builder.set_stalled_stream_protection(config_bag.load::<crate::config::StalledStreamProtectionConfig>().cloned());
         187  +
        if let ::std::option::Option::Some(protocol) = config_bag.load::<::aws_smithy_schema::protocol::SharedClientProtocol>().cloned() {
         188  +
            builder.set_protocol(::std::option::Option::Some(protocol));
         189  +
        }
  183    190   
        builder.set_auth_scheme_preference(config_bag.load::<::aws_smithy_runtime_api::client::auth::AuthSchemePreference>().cloned());
  184    191   
        builder.set_retry_config(config_bag.load::<::aws_smithy_types::retry::RetryConfig>().cloned());
  185    192   
        builder.set_timeout_config(config_bag.load::<::aws_smithy_types::timeout::TimeoutConfig>().cloned());
  186    193   
        builder.set_retry_partition(config_bag.load::<::aws_smithy_runtime::client::retries::RetryPartition>().cloned());
  187    194   
        builder.set_app_name(config_bag.load::<::aws_types::app_name::AppName>().cloned());
  188    195   
        builder.set_endpoint_url(config_bag.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()));
  189    196   
        builder.set_use_dual_stack(config_bag.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0));
  190    197   
        builder.set_use_fips(config_bag.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0));
  191    198   
        builder.set_region(config_bag.load::<crate::config::Region>().cloned());
  192    199   
        builder
  193    200   
    }
  194    201   
    /// Set the [`StalledStreamProtectionConfig`](crate::config::StalledStreamProtectionConfig)
  195    202   
    /// to configure protection for stalled streams.
  196    203   
    pub fn stalled_stream_protection(mut self, stalled_stream_protection_config: crate::config::StalledStreamProtectionConfig) -> Self {
  197    204   
        self.set_stalled_stream_protection(::std::option::Option::Some(stalled_stream_protection_config));
  198    205   
        self
  199    206   
    }
  200    207   
    /// Set the [`StalledStreamProtectionConfig`](crate::config::StalledStreamProtectionConfig)
  201    208   
    /// to configure protection for stalled streams.
  202    209   
    pub fn set_stalled_stream_protection(
  203    210   
        &mut self,
  204    211   
        stalled_stream_protection_config: ::std::option::Option<crate::config::StalledStreamProtectionConfig>,
  205    212   
    ) -> &mut Self {
  206    213   
        self.config.store_or_unset(stalled_stream_protection_config);
  207    214   
        self
  208    215   
    }
  209    216   
    /// Sets the idempotency token provider to use for service calls that require tokens.
  210    217   
    pub fn idempotency_token_provider(
  211    218   
        mut self,
  212    219   
        idempotency_token_provider: impl ::std::convert::Into<crate::idempotency_token::IdempotencyTokenProvider>,
  213    220   
    ) -> Self {
  214    221   
        self.set_idempotency_token_provider(::std::option::Option::Some(idempotency_token_provider.into()));
  215    222   
        self
  216    223   
    }
  217    224   
    /// Sets the idempotency token provider to use for service calls that require tokens.
  218    225   
    pub fn set_idempotency_token_provider(
  219    226   
        &mut self,
  220    227   
        idempotency_token_provider: ::std::option::Option<crate::idempotency_token::IdempotencyTokenProvider>,
  221    228   
    ) -> &mut Self {
  222    229   
        self.config.store_or_unset(idempotency_token_provider);
  223    230   
        self
  224    231   
    }
         232  +
    /// Sets the client protocol to use for serialization and deserialization.
         233  +
    ///
         234  +
    /// This overrides the default protocol determined by the service model,
         235  +
    /// enabling runtime protocol selection.
         236  +
    pub fn protocol(mut self, protocol: impl ::aws_smithy_schema::protocol::ClientProtocol + 'static) -> Self {
         237  +
        self.set_protocol(::std::option::Option::Some(::aws_smithy_schema::protocol::SharedClientProtocol::new(
         238  +
            protocol,
         239  +
        )));
         240  +
        self
         241  +
    }
         242  +
         243  +
    /// Sets the client protocol to use for serialization and deserialization.
         244  +
    pub fn set_protocol(&mut self, protocol: ::std::option::Option<::aws_smithy_schema::protocol::SharedClientProtocol>) -> &mut Self {
         245  +
        self.config.store_or_unset(protocol);
         246  +
        self
         247  +
    }
  225    248   
    /// Sets the HTTP client to use when making requests.
  226    249   
    ///
  227    250   
    /// # Examples
  228    251   
    /// ```no_run
  229    252   
    /// # #[cfg(test)]
  230    253   
    /// # mod tests {
  231    254   
    /// # #[test]
  232    255   
    /// # fn example() {
  233    256   
    /// use std::time::Duration;
  234    257   
    /// use aws_sdk_timestreamquery::config::Config;
@@ -1290,1313 +1349,1377 @@
 1310   1333   
pub(crate) struct ServiceRuntimePlugin {
 1311   1334   
    config: ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer>,
 1312   1335   
    runtime_components: ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
 1313   1336   
}
 1314   1337   
 1315   1338   
impl ServiceRuntimePlugin {
 1316   1339   
    pub fn new(_service_config: crate::config::Config) -> Self {
 1317   1340   
        let config = {
 1318   1341   
            let mut cfg = ::aws_smithy_types::config_bag::Layer::new("Timestream_20181101");
 1319   1342   
            cfg.store_put(crate::idempotency_token::default_provider());
        1343  +
            if _service_config.protocol().is_none() {
        1344  +
                cfg.store_put(::aws_smithy_schema::protocol::SharedClientProtocol::new(
        1345  +
                    ::aws_smithy_json::protocol::aws_json_rpc::AwsJsonRpcProtocol::aws_json_1_0("Timestream_20181101"),
        1346  +
                ));
        1347  +
            }
 1320   1348   
            cfg.store_put(::aws_smithy_runtime::client::orchestrator::AuthSchemeAndEndpointOrchestrationV2);
 1321   1349   
            ::std::option::Option::Some(cfg.freeze())
 1322   1350   
        };
 1323   1351   
        let mut runtime_components = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("ServiceRuntimePlugin");
 1324   1352   
        runtime_components.set_auth_scheme_option_resolver(::std::option::Option::Some({
 1325   1353   
            use crate::config::auth::ResolveAuthScheme;
 1326   1354   
            crate::config::auth::DefaultAuthSchemeResolver::default().into_shared_resolver()
 1327   1355   
        }));
 1328   1356   
        runtime_components.set_endpoint_resolver(::std::option::Option::Some({
 1329   1357   
            use crate::config::endpoint::ResolveEndpoint;
@@ -1425,1453 +1484,1515 @@
 1445   1473   
        }
 1446   1474   
        // resiliency
 1447   1475   
        builder.set_retry_config(input.retry_config().cloned());
 1448   1476   
        builder.set_timeout_config(input.timeout_config().cloned());
 1449   1477   
        builder.set_sleep_impl(input.sleep_impl());
 1450   1478   
 1451   1479   
        builder.set_http_client(input.http_client());
 1452   1480   
        builder.set_time_source(input.time_source());
 1453   1481   
        builder.set_behavior_version(input.behavior_version());
 1454   1482   
        builder.set_auth_scheme_preference(input.auth_scheme_preference().cloned());
        1483  +
        if let Some(protocol) = input.protocol() {
        1484  +
            builder.set_protocol(Some(protocol.clone()));
        1485  +
        }
 1455   1486   
        // setting `None` here removes the default
 1456   1487   
        if let Some(config) = input.stalled_stream_protection() {
 1457   1488   
            builder.set_stalled_stream_protection(Some(config));
 1458   1489   
        }
 1459   1490   
 1460   1491   
        if let Some(cache) = input.identity_cache() {
 1461   1492   
            builder.set_identity_cache(cache);
 1462   1493   
        }
 1463   1494   
        builder.set_app_name(input.app_name().cloned());
 1464   1495   

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/lib.rs

@@ -174,174 +215,211 @@
  194    194   
pub mod endpoint_discovery;
  195    195   
  196    196   
mod idempotency_token;
  197    197   
  198    198   
mod observability_feature;
  199    199   
  200    200   
pub(crate) mod protocol_serde;
  201    201   
  202    202   
mod sdk_feature_tracker;
  203    203   
  204         -
mod serialization_settings;
  205         -
  206    204   
mod endpoint_lib;
  207    205   
  208         -
mod lens;
  209         -
  210         -
mod serde_util;
  211         -
  212    206   
mod json_errors;
  213    207   
         208  +
mod lens;
         209  +
  214    210   
#[doc(inline)]
  215    211   
pub use client::Client;

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

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

@@ -1,1 +108,120 @@
   17     17   
    "com.amazonaws.timestreamquery.synthetic",
   18     18   
    "CancelQueryInput",
   19     19   
);
   20     20   
static CANCELQUERYINPUT_MEMBER_QUERY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   21     21   
    ::aws_smithy_schema::ShapeId::from_static(
   22     22   
        "com.amazonaws.timestreamquery.synthetic#CancelQueryInput$QueryId",
   23     23   
        "com.amazonaws.timestreamquery.synthetic",
   24     24   
        "CancelQueryInput",
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::String,
   27         -
    "query_id",
          27  +
    "QueryId",
   28     28   
    0,
   29     29   
);
   30     30   
static CANCELQUERYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   31     31   
    CANCELQUERYINPUT_SCHEMA_ID,
   32     32   
    ::aws_smithy_schema::ShapeType::Structure,
   33     33   
    &[&CANCELQUERYINPUT_MEMBER_QUERY_ID],
   34     34   
);
   35     35   
impl CancelQueryInput {
   36     36   
    /// The schema for this shape.
   37     37   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CANCELQUERYINPUT_SCHEMA;
   38     38   
}
   39     39   
impl ::aws_smithy_schema::serde::SerializableStruct for CancelQueryInput {
   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.query_id {
   46     46   
            ser.write_string(&CANCELQUERYINPUT_MEMBER_QUERY_ID, val)?;
   47     47   
        }
   48     48   
        Ok(())
   49     49   
    }
   50     50   
}
   51     51   
impl CancelQueryInput {
   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(&CANCELQUERYINPUT_SCHEMA, (), |_, member, deser| {
          65  +
        deserializer.read_struct(&CANCELQUERYINPUT_SCHEMA, &mut |member, deser| {
   66     66   
            match member.member_index() {
   67     67   
                Some(0) => {
   68     68   
                    builder.query_id = Some(deser.read_string(member)?);
   69     69   
                }
   70     70   
                _ => {}
   71     71   
            }
   72     72   
            Ok(())
   73     73   
        })?;
          74  +
        builder.query_id = builder.query_id.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 CancelQueryInput {
          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 CancelQueryInput {
   80     92   
    /// Creates a new builder-style object to manufacture [`CancelQueryInput`](crate::operation::cancel_query::CancelQueryInput).
   81     93   
    pub fn builder() -> crate::operation::cancel_query::builders::CancelQueryInputBuilder {
   82     94   
        crate::operation::cancel_query::builders::CancelQueryInputBuilder::default()
   83     95   
    }
   84     96   
}
   85     97   
   86     98   
/// A builder for [`CancelQueryInput`](crate::operation::cancel_query::CancelQueryInput).
   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/cancel_query/_cancel_query_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/create_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 `CreateScheduledQuery`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateScheduledQuery;
    6      6   
impl CreateScheduledQuery {
    7      7   
    /// Creates a new `CreateScheduledQuery`
    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::create_scheduled_query::CreateScheduledQueryInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::create_scheduled_query::CreateScheduledQueryOutput::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::create_scheduled_query::CreateScheduledQueryInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::create_scheduled_query::CreateScheduledQueryOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::create_scheduled_query::CreateScheduledQueryError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -131,135 +260,445 @@
  151    155   
                crate::operation::create_scheduled_query::CreateScheduledQueryError,
  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 CreateScheduledQueryResponseDeserializer;
  160    164   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateScheduledQueryResponseDeserializer {
  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_create_scheduled_query::de_create_scheduled_query_http_error(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::create_scheduled_query::CreateScheduledQueryError::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::create_scheduled_query::CreateScheduledQueryError::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  +
                "ConflictException" => crate::operation::create_scheduled_query::CreateScheduledQueryError::ConflictException({
         223  +
                    let mut tmp = match protocol
         224  +
                        .deserialize_response(response, crate::types::error::ConflictException::SCHEMA, _cfg)
         225  +
                        .and_then(|mut deser| {
         226  +
                            crate::types::error::ConflictException::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  +
                "InternalServerException" => crate::operation::create_scheduled_query::CreateScheduledQueryError::InternalServerException({
         247  +
                    let mut tmp = match protocol
         248  +
                        .deserialize_response(response, crate::types::error::InternalServerException::SCHEMA, _cfg)
         249  +
                        .and_then(|mut deser| {
         250  +
                            crate::types::error::InternalServerException::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  +
                "InvalidEndpointException" => crate::operation::create_scheduled_query::CreateScheduledQueryError::InvalidEndpointException({
         271  +
                    let mut tmp = match protocol
         272  +
                        .deserialize_response(response, crate::types::error::InvalidEndpointException::SCHEMA, _cfg)
         273  +
                        .and_then(|mut deser| {
         274  +
                            crate::types::error::InvalidEndpointException::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  +
                "ServiceQuotaExceededException" => {
         295  +
                    crate::operation::create_scheduled_query::CreateScheduledQueryError::ServiceQuotaExceededException({
         296  +
                        let mut tmp = match protocol
         297  +
                            .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         298  +
                            .and_then(|mut deser| {
         299  +
                                crate::types::error::ServiceQuotaExceededException::deserialize_with_response(
         300  +
                                    &mut *deser,
         301  +
                                    response.headers(),
         302  +
                                    response.status().into(),
         303  +
                                    body,
         304  +
                                )
         305  +
                            }) {
         306  +
                            ::std::result::Result::Ok(val) => val,
         307  +
                            ::std::result::Result::Err(e) => {
         308  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         309  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         310  +
                                ))
         311  +
                            }
         312  +
                        };
         313  +
                        tmp.meta = generic;
         314  +
                        if tmp.message.is_none() {
         315  +
                            tmp.message = _error_message;
         316  +
                        }
         317  +
                        tmp
         318  +
                    })
         319  +
                }
         320  +
                "ThrottlingException" => crate::operation::create_scheduled_query::CreateScheduledQueryError::ThrottlingException({
         321  +
                    let mut tmp = match protocol
         322  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         323  +
                        .and_then(|mut deser| {
         324  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         325  +
                                &mut *deser,
         326  +
                                response.headers(),
         327  +
                                response.status().into(),
         328  +
                                body,
         329  +
                            )
         330  +
                        }) {
         331  +
                        ::std::result::Result::Ok(val) => val,
         332  +
                        ::std::result::Result::Err(e) => {
         333  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         334  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         335  +
                            ))
         336  +
                        }
         337  +
                    };
         338  +
                    tmp.meta = generic;
         339  +
                    if tmp.message.is_none() {
         340  +
                        tmp.message = _error_message;
         341  +
                    }
         342  +
                    tmp
         343  +
                }),
         344  +
                "ValidationException" => crate::operation::create_scheduled_query::CreateScheduledQueryError::ValidationException({
         345  +
                    let mut tmp = match protocol
         346  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         347  +
                        .and_then(|mut deser| {
         348  +
                            crate::types::error::ValidationException::deserialize_with_response(
         349  +
                                &mut *deser,
         350  +
                                response.headers(),
         351  +
                                response.status().into(),
         352  +
                                body,
         353  +
                            )
         354  +
                        }) {
         355  +
                        ::std::result::Result::Ok(val) => val,
         356  +
                        ::std::result::Result::Err(e) => {
         357  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         358  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         359  +
                            ))
         360  +
                        }
         361  +
                    };
         362  +
                    tmp.meta = generic;
         363  +
                    if tmp.message.is_none() {
         364  +
                        tmp.message = _error_message;
         365  +
                    }
         366  +
                    tmp
         367  +
                }),
         368  +
                _ => crate::operation::create_scheduled_query::CreateScheduledQueryError::generic(generic),
         369  +
            };
         370  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         371  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         372  +
            ))
  173    373   
        } else {
  174         -
            crate::protocol_serde::shape_create_scheduled_query::de_create_scheduled_query_http_response(status, headers, body)
  175         -
        };
  176         -
        crate::protocol_serde::type_erase_result(parse_result)
         374  +
            let protocol = _cfg
         375  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         376  +
                .expect("a SharedClientProtocol is required");
         377  +
            let mut deser = protocol
         378  +
                .deserialize_response(response, CreateScheduledQuery::OUTPUT_SCHEMA, _cfg)
         379  +
                .map_err(|e| {
         380  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         381  +
                })?;
         382  +
            let body = response.body().bytes().expect("body loaded");
         383  +
            let output = crate::operation::create_scheduled_query::CreateScheduledQueryOutput::deserialize_with_response(
         384  +
                &mut *deser,
         385  +
                response.headers(),
         386  +
                response.status().into(),
         387  +
                body,
         388  +
            )
         389  +
            .map_err(|e| {
         390  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         391  +
            })?;
         392  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         393  +
        }
  177    394   
    }
  178    395   
}
  179    396   
#[derive(Debug)]
  180    397   
struct CreateScheduledQueryRequestSerializer;
  181    398   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for CreateScheduledQueryRequestSerializer {
  182    399   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  183    400   
    fn serialize_input(
  184    401   
        &self,
  185    402   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  186    403   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  187    404   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  188    405   
        let input = input
  189    406   
            .downcast::<crate::operation::create_scheduled_query::CreateScheduledQueryInput>()
  190    407   
            .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::create_scheduled_query::CreateScheduledQueryInput,
  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::create_scheduled_query::CreateScheduledQueryInput,
  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.CreateScheduledQuery",
  220         -
            );
  221         -
            builder
  222         -
        };
  223         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_create_scheduled_query::ser_create_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())
         408  +
        let protocol = _cfg
         409  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         410  +
            .expect("a SharedClientProtocol is required");
         411  +
        let mut request = protocol
         412  +
            .serialize_request(&input, CreateScheduledQuery::INPUT_SCHEMA, "", _cfg)
         413  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         414  +
         415  +
        return ::std::result::Result::Ok(request);
  231    416   
    }
  232    417   
}
  233    418   
#[derive(Debug)]
  234    419   
struct CreateScheduledQueryEndpointParamsInterceptor;
  235    420   
  236    421   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateScheduledQueryEndpointParamsInterceptor {
  237    422   
    fn name(&self) -> &'static str {
  238    423   
        "CreateScheduledQueryEndpointParamsInterceptor"
  239    424   
    }
  240    425   

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

@@ -85,85 +235,235 @@
  105    105   
    "com.amazonaws.timestreamquery.synthetic",
  106    106   
    "CreateScheduledQueryInput",
  107    107   
);
  108    108   
static CREATESCHEDULEDQUERYINPUT_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  109    109   
    ::aws_smithy_schema::ShapeId::from_static(
  110    110   
        "com.amazonaws.timestreamquery.synthetic#CreateScheduledQueryInput$Name",
  111    111   
        "com.amazonaws.timestreamquery.synthetic",
  112    112   
        "CreateScheduledQueryInput",
  113    113   
    ),
  114    114   
    ::aws_smithy_schema::ShapeType::String,
  115         -
    "name",
         115  +
    "Name",
  116    116   
    0,
  117    117   
);
  118    118   
static CREATESCHEDULEDQUERYINPUT_MEMBER_QUERY_STRING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  119    119   
    ::aws_smithy_schema::ShapeId::from_static(
  120    120   
        "com.amazonaws.timestreamquery.synthetic#CreateScheduledQueryInput$QueryString",
  121    121   
        "com.amazonaws.timestreamquery.synthetic",
  122    122   
        "CreateScheduledQueryInput",
  123    123   
    ),
  124    124   
    ::aws_smithy_schema::ShapeType::String,
  125         -
    "query_string",
         125  +
    "QueryString",
  126    126   
    1,
  127    127   
);
  128    128   
static CREATESCHEDULEDQUERYINPUT_MEMBER_SCHEDULE_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  129    129   
    ::aws_smithy_schema::ShapeId::from_static(
  130    130   
        "com.amazonaws.timestreamquery.synthetic#CreateScheduledQueryInput$ScheduleConfiguration",
  131    131   
        "com.amazonaws.timestreamquery.synthetic",
  132    132   
        "CreateScheduledQueryInput",
  133    133   
    ),
  134    134   
    ::aws_smithy_schema::ShapeType::Structure,
  135         -
    "schedule_configuration",
         135  +
    "ScheduleConfiguration",
  136    136   
    2,
  137    137   
);
  138    138   
static CREATESCHEDULEDQUERYINPUT_MEMBER_NOTIFICATION_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  139    139   
    ::aws_smithy_schema::ShapeId::from_static(
  140    140   
        "com.amazonaws.timestreamquery.synthetic#CreateScheduledQueryInput$NotificationConfiguration",
  141    141   
        "com.amazonaws.timestreamquery.synthetic",
  142    142   
        "CreateScheduledQueryInput",
  143    143   
    ),
  144    144   
    ::aws_smithy_schema::ShapeType::Structure,
  145         -
    "notification_configuration",
         145  +
    "NotificationConfiguration",
  146    146   
    3,
  147    147   
);
  148    148   
static CREATESCHEDULEDQUERYINPUT_MEMBER_TARGET_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  149    149   
    ::aws_smithy_schema::ShapeId::from_static(
  150    150   
        "com.amazonaws.timestreamquery.synthetic#CreateScheduledQueryInput$TargetConfiguration",
  151    151   
        "com.amazonaws.timestreamquery.synthetic",
  152    152   
        "CreateScheduledQueryInput",
  153    153   
    ),
  154    154   
    ::aws_smithy_schema::ShapeType::Structure,
  155         -
    "target_configuration",
         155  +
    "TargetConfiguration",
  156    156   
    4,
  157    157   
);
  158    158   
static CREATESCHEDULEDQUERYINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  159    159   
    ::aws_smithy_schema::ShapeId::from_static(
  160    160   
        "com.amazonaws.timestreamquery.synthetic#CreateScheduledQueryInput$ClientToken",
  161    161   
        "com.amazonaws.timestreamquery.synthetic",
  162    162   
        "CreateScheduledQueryInput",
  163    163   
    ),
  164    164   
    ::aws_smithy_schema::ShapeType::String,
  165         -
    "client_token",
         165  +
    "ClientToken",
  166    166   
    5,
  167    167   
);
  168    168   
static CREATESCHEDULEDQUERYINPUT_MEMBER_SCHEDULED_QUERY_EXECUTION_ROLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  169    169   
    ::aws_smithy_schema::ShapeId::from_static(
  170    170   
        "com.amazonaws.timestreamquery.synthetic#CreateScheduledQueryInput$ScheduledQueryExecutionRoleArn",
  171    171   
        "com.amazonaws.timestreamquery.synthetic",
  172    172   
        "CreateScheduledQueryInput",
  173    173   
    ),
  174    174   
    ::aws_smithy_schema::ShapeType::String,
  175         -
    "scheduled_query_execution_role_arn",
         175  +
    "ScheduledQueryExecutionRoleArn",
  176    176   
    6,
  177    177   
);
  178    178   
static CREATESCHEDULEDQUERYINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  179    179   
    ::aws_smithy_schema::ShapeId::from_static(
  180    180   
        "com.amazonaws.timestreamquery.synthetic#CreateScheduledQueryInput$Tags",
  181    181   
        "com.amazonaws.timestreamquery.synthetic",
  182    182   
        "CreateScheduledQueryInput",
  183    183   
    ),
  184    184   
    ::aws_smithy_schema::ShapeType::List,
  185         -
    "tags",
         185  +
    "Tags",
  186    186   
    7,
  187    187   
);
  188    188   
static CREATESCHEDULEDQUERYINPUT_MEMBER_KMS_KEY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  189    189   
    ::aws_smithy_schema::ShapeId::from_static(
  190    190   
        "com.amazonaws.timestreamquery.synthetic#CreateScheduledQueryInput$KmsKeyId",
  191    191   
        "com.amazonaws.timestreamquery.synthetic",
  192    192   
        "CreateScheduledQueryInput",
  193    193   
    ),
  194    194   
    ::aws_smithy_schema::ShapeType::String,
  195         -
    "kms_key_id",
         195  +
    "KmsKeyId",
  196    196   
    8,
  197    197   
);
  198    198   
static CREATESCHEDULEDQUERYINPUT_MEMBER_ERROR_REPORT_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  199    199   
    ::aws_smithy_schema::ShapeId::from_static(
  200    200   
        "com.amazonaws.timestreamquery.synthetic#CreateScheduledQueryInput$ErrorReportConfiguration",
  201    201   
        "com.amazonaws.timestreamquery.synthetic",
  202    202   
        "CreateScheduledQueryInput",
  203    203   
    ),
  204    204   
    ::aws_smithy_schema::ShapeType::Structure,
  205         -
    "error_report_configuration",
         205  +
    "ErrorReportConfiguration",
  206    206   
    9,
  207    207   
);
  208    208   
static CREATESCHEDULEDQUERYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  209    209   
    CREATESCHEDULEDQUERYINPUT_SCHEMA_ID,
  210    210   
    ::aws_smithy_schema::ShapeType::Structure,
  211    211   
    &[
  212    212   
        &CREATESCHEDULEDQUERYINPUT_MEMBER_NAME,
  213    213   
        &CREATESCHEDULEDQUERYINPUT_MEMBER_QUERY_STRING,
  214    214   
        &CREATESCHEDULEDQUERYINPUT_MEMBER_SCHEDULE_CONFIGURATION,
  215    215   
        &CREATESCHEDULEDQUERYINPUT_MEMBER_NOTIFICATION_CONFIGURATION,
@@ -247,247 +369,380 @@
  267    267   
            ser.write_string(&CREATESCHEDULEDQUERYINPUT_MEMBER_KMS_KEY_ID, val)?;
  268    268   
        }
  269    269   
        if let Some(ref val) = self.error_report_configuration {
  270    270   
            ser.write_struct(&CREATESCHEDULEDQUERYINPUT_MEMBER_ERROR_REPORT_CONFIGURATION, val)?;
  271    271   
        }
  272    272   
        Ok(())
  273    273   
    }
  274    274   
}
  275    275   
impl CreateScheduledQueryInput {
  276    276   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  277         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  278         -
        deserializer: &mut D,
         277  +
    pub fn deserialize(
         278  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  279    279   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  280    280   
        #[allow(unused_variables, unused_mut)]
  281    281   
        let mut builder = Self::builder();
  282    282   
        #[allow(
  283    283   
            unused_variables,
  284    284   
            unreachable_code,
  285    285   
            clippy::single_match,
  286    286   
            clippy::match_single_binding,
  287    287   
            clippy::diverging_sub_expression
  288    288   
        )]
  289         -
        deserializer.read_struct(&CREATESCHEDULEDQUERYINPUT_SCHEMA, (), |_, member, deser| {
         289  +
        deserializer.read_struct(&CREATESCHEDULEDQUERYINPUT_SCHEMA, &mut |member, deser| {
  290    290   
            match member.member_index() {
  291    291   
                Some(0) => {
  292    292   
                    builder.name = Some(deser.read_string(member)?);
  293    293   
                }
  294    294   
                Some(1) => {
  295    295   
                    builder.query_string = Some(deser.read_string(member)?);
  296    296   
                }
  297    297   
                Some(2) => {
  298    298   
                    builder.schedule_configuration = Some(crate::types::ScheduleConfiguration::deserialize(deser)?);
  299    299   
                }
  300    300   
                Some(3) => {
  301    301   
                    builder.notification_configuration = Some(crate::types::NotificationConfiguration::deserialize(deser)?);
  302    302   
                }
  303    303   
                Some(4) => {
  304    304   
                    builder.target_configuration = Some(crate::types::TargetConfiguration::deserialize(deser)?);
  305    305   
                }
  306    306   
                Some(5) => {
  307    307   
                    builder.client_token = Some(deser.read_string(member)?);
  308    308   
                }
  309    309   
                Some(6) => {
  310    310   
                    builder.scheduled_query_execution_role_arn = Some(deser.read_string(member)?);
  311    311   
                }
  312    312   
                Some(7) => {
  313    313   
                    builder.tags = Some({
  314         -
                        let container = if let Some(cap) = deser.container_size() {
  315         -
                            Vec::with_capacity(cap)
  316         -
                        } else {
  317         -
                            Vec::new()
  318         -
                        };
  319         -
                        deser.read_list(member, container, |mut list, deser| {
  320         -
                            list.push(crate::types::Tag::deserialize(deser)?);
  321         -
                            Ok(list)
  322         -
                        })?
         314  +
                        let mut container = Vec::new();
         315  +
                        deser.read_list(member, &mut |deser| {
         316  +
                            container.push(crate::types::Tag::deserialize(deser)?);
         317  +
                            Ok(())
         318  +
                        })?;
         319  +
                        container
  323    320   
                    });
  324    321   
                }
  325    322   
                Some(8) => {
  326    323   
                    builder.kms_key_id = Some(deser.read_string(member)?);
  327    324   
                }
  328    325   
                Some(9) => {
  329    326   
                    builder.error_report_configuration = Some(crate::types::ErrorReportConfiguration::deserialize(deser)?);
  330    327   
                }
  331    328   
                _ => {}
  332    329   
            }
  333    330   
            Ok(())
  334    331   
        })?;
         332  +
        builder.name = builder.name.or(Some(String::new()));
         333  +
        builder.query_string = builder.query_string.or(Some(String::new()));
         334  +
        builder.scheduled_query_execution_role_arn = builder.scheduled_query_execution_role_arn.or(Some(String::new()));
  335    335   
        builder
  336    336   
            .build()
  337    337   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  338    338   
    }
  339    339   
}
         340  +
impl CreateScheduledQueryInput {
         341  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         342  +
    pub fn deserialize_with_response(
         343  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         344  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         345  +
        _status: u16,
         346  +
        _body: &[u8],
         347  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         348  +
        Self::deserialize(deserializer)
         349  +
    }
         350  +
}
  340    351   
impl CreateScheduledQueryInput {
  341    352   
    /// Creates a new builder-style object to manufacture [`CreateScheduledQueryInput`](crate::operation::create_scheduled_query::CreateScheduledQueryInput).
  342    353   
    pub fn builder() -> crate::operation::create_scheduled_query::builders::CreateScheduledQueryInputBuilder {
  343    354   
        crate::operation::create_scheduled_query::builders::CreateScheduledQueryInputBuilder::default()
  344    355   
    }
  345    356   
}
  346    357   
  347    358   
/// A builder for [`CreateScheduledQueryInput`](crate::operation::create_scheduled_query::CreateScheduledQueryInput).
  348    359   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
  349    360   
#[non_exhaustive]

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

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

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/delete_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 `DeleteScheduledQuery`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteScheduledQuery;
    6      6   
impl DeleteScheduledQuery {
    7      7   
    /// Creates a new `DeleteScheduledQuery`
    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::delete_scheduled_query::DeleteScheduledQueryInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::delete_scheduled_query::DeleteScheduledQueryOutput::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::delete_scheduled_query::DeleteScheduledQueryInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::delete_scheduled_query::DeleteScheduledQueryOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::delete_scheduled_query::DeleteScheduledQueryError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -124,128 +253,412 @@
  144    148   
                crate::operation::delete_scheduled_query::DeleteScheduledQueryError,
  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 DeleteScheduledQueryResponseDeserializer;
  153    157   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteScheduledQueryResponseDeserializer {
  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_delete_scheduled_query::de_delete_scheduled_query_http_error(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(
         181  +
                            crate::operation::delete_scheduled_query::DeleteScheduledQueryError::unhandled(generic),
         182  +
                        ),
         183  +
                    ))
         184  +
                }
         185  +
            };
         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  +
                "AccessDeniedException" => crate::operation::delete_scheduled_query::DeleteScheduledQueryError::AccessDeniedException({
         192  +
                    let mut tmp = match protocol
         193  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         194  +
                        .and_then(|mut deser| {
         195  +
                            crate::types::error::AccessDeniedException::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  +
                "InternalServerException" => crate::operation::delete_scheduled_query::DeleteScheduledQueryError::InternalServerException({
         216  +
                    let mut tmp = match protocol
         217  +
                        .deserialize_response(response, crate::types::error::InternalServerException::SCHEMA, _cfg)
         218  +
                        .and_then(|mut deser| {
         219  +
                            crate::types::error::InternalServerException::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  +
                "InvalidEndpointException" => crate::operation::delete_scheduled_query::DeleteScheduledQueryError::InvalidEndpointException({
         240  +
                    let mut tmp = match protocol
         241  +
                        .deserialize_response(response, crate::types::error::InvalidEndpointException::SCHEMA, _cfg)
         242  +
                        .and_then(|mut deser| {
         243  +
                            crate::types::error::InvalidEndpointException::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  +
                "ResourceNotFoundException" => crate::operation::delete_scheduled_query::DeleteScheduledQueryError::ResourceNotFoundException({
         264  +
                    let mut tmp = match protocol
         265  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         266  +
                        .and_then(|mut deser| {
         267  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         268  +
                                &mut *deser,
         269  +
                                response.headers(),
         270  +
                                response.status().into(),
         271  +
                                body,
         272  +
                            )
         273  +
                        }) {
         274  +
                        ::std::result::Result::Ok(val) => val,
         275  +
                        ::std::result::Result::Err(e) => {
         276  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         277  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         278  +
                            ))
         279  +
                        }
         280  +
                    };
         281  +
                    tmp.meta = generic;
         282  +
                    if tmp.message.is_none() {
         283  +
                        tmp.message = _error_message;
         284  +
                    }
         285  +
                    tmp
         286  +
                }),
         287  +
                "ThrottlingException" => crate::operation::delete_scheduled_query::DeleteScheduledQueryError::ThrottlingException({
         288  +
                    let mut tmp = match protocol
         289  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         290  +
                        .and_then(|mut deser| {
         291  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         292  +
                                &mut *deser,
         293  +
                                response.headers(),
         294  +
                                response.status().into(),
         295  +
                                body,
         296  +
                            )
         297  +
                        }) {
         298  +
                        ::std::result::Result::Ok(val) => val,
         299  +
                        ::std::result::Result::Err(e) => {
         300  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         301  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         302  +
                            ))
         303  +
                        }
         304  +
                    };
         305  +
                    tmp.meta = generic;
         306  +
                    if tmp.message.is_none() {
         307  +
                        tmp.message = _error_message;
         308  +
                    }
         309  +
                    tmp
         310  +
                }),
         311  +
                "ValidationException" => crate::operation::delete_scheduled_query::DeleteScheduledQueryError::ValidationException({
         312  +
                    let mut tmp = match protocol
         313  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         314  +
                        .and_then(|mut deser| {
         315  +
                            crate::types::error::ValidationException::deserialize_with_response(
         316  +
                                &mut *deser,
         317  +
                                response.headers(),
         318  +
                                response.status().into(),
         319  +
                                body,
         320  +
                            )
         321  +
                        }) {
         322  +
                        ::std::result::Result::Ok(val) => val,
         323  +
                        ::std::result::Result::Err(e) => {
         324  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         325  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         326  +
                            ))
         327  +
                        }
         328  +
                    };
         329  +
                    tmp.meta = generic;
         330  +
                    if tmp.message.is_none() {
         331  +
                        tmp.message = _error_message;
         332  +
                    }
         333  +
                    tmp
         334  +
                }),
         335  +
                _ => crate::operation::delete_scheduled_query::DeleteScheduledQueryError::generic(generic),
         336  +
            };
         337  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         338  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         339  +
            ))
  166    340   
        } else {
  167         -
            crate::protocol_serde::shape_delete_scheduled_query::de_delete_scheduled_query_http_response(status, headers, body)
  168         -
        };
  169         -
        crate::protocol_serde::type_erase_result(parse_result)
         341  +
            let protocol = _cfg
         342  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         343  +
                .expect("a SharedClientProtocol is required");
         344  +
            let mut deser = protocol
         345  +
                .deserialize_response(response, DeleteScheduledQuery::OUTPUT_SCHEMA, _cfg)
         346  +
                .map_err(|e| {
         347  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         348  +
                })?;
         349  +
            let body = response.body().bytes().expect("body loaded");
         350  +
            let output = crate::operation::delete_scheduled_query::DeleteScheduledQueryOutput::deserialize_with_response(
         351  +
                &mut *deser,
         352  +
                response.headers(),
         353  +
                response.status().into(),
         354  +
                body,
         355  +
            )
         356  +
            .map_err(|e| {
         357  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         358  +
            })?;
         359  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         360  +
        }
  170    361   
    }
  171    362   
}
  172    363   
#[derive(Debug)]
  173    364   
struct DeleteScheduledQueryRequestSerializer;
  174    365   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteScheduledQueryRequestSerializer {
  175    366   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  176    367   
    fn serialize_input(
  177    368   
        &self,
  178    369   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  179    370   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  180    371   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  181    372   
        let input = input
  182    373   
            .downcast::<crate::operation::delete_scheduled_query::DeleteScheduledQueryInput>()
  183    374   
            .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::delete_scheduled_query::DeleteScheduledQueryInput,
  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::delete_scheduled_query::DeleteScheduledQueryInput,
  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.DeleteScheduledQuery",
  213         -
            );
  214         -
            builder
  215         -
        };
  216         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_delete_scheduled_query::ser_delete_scheduled_query_input(
  217         -
            &input,
  218         -
        )?);
  219         -
        if let Some(content_length) = body.content_length() {
  220         -
            let content_length = content_length.to_string();
  221         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  222         -
        }
  223         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         375  +
        let protocol = _cfg
         376  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         377  +
            .expect("a SharedClientProtocol is required");
         378  +
        let mut request = protocol
         379  +
            .serialize_request(&input, DeleteScheduledQuery::INPUT_SCHEMA, "", _cfg)
         380  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         381  +
         382  +
        return ::std::result::Result::Ok(request);
  224    383   
    }
  225    384   
}
  226    385   
#[derive(Debug)]
  227    386   
struct DeleteScheduledQueryEndpointParamsInterceptor;
  228    387   
  229    388   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteScheduledQueryEndpointParamsInterceptor {
  230    389   
    fn name(&self) -> &'static str {
  231    390   
        "DeleteScheduledQueryEndpointParamsInterceptor"
  232    391   
    }
  233    392