AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/put_transformer.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 `PutTransformer`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct PutTransformer;
    6      6   
impl PutTransformer {
    7      7   
    /// Creates a new `PutTransformer`
    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::put_transformer::PutTransformerInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::put_transformer::PutTransformerOutput::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::put_transformer::PutTransformerInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::put_transformer::PutTransformerOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::put_transformer::PutTransformerError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +245,406 @@
  138    142   
                crate::operation::put_transformer::PutTransformerError,
  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 PutTransformerResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for PutTransformerResponseDeserializer {
  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_put_transformer::de_put_transformer_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_put_transformer::de_put_transformer_http_response(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::put_transformer::PutTransformerError::unhandled(
         175  +
                            generic,
         176  +
                        )),
         177  +
                    ))
         178  +
                }
         179  +
            };
         180  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         181  +
            let protocol = _cfg
         182  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         183  +
                .expect("a SharedClientProtocol is required");
         184  +
            let err = match error_code {
         185  +
                "InvalidOperationException" => crate::operation::put_transformer::PutTransformerError::InvalidOperationException({
         186  +
                    let mut tmp = match protocol
         187  +
                        .deserialize_response(response, crate::types::error::InvalidOperationException::SCHEMA, _cfg)
         188  +
                        .and_then(|mut deser| {
         189  +
                            crate::types::error::InvalidOperationException::deserialize_with_response(
         190  +
                                &mut *deser,
         191  +
                                response.headers(),
         192  +
                                response.status().into(),
         193  +
                                body,
         194  +
                            )
         195  +
                        }) {
         196  +
                        ::std::result::Result::Ok(val) => val,
         197  +
                        ::std::result::Result::Err(e) => {
         198  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         199  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         200  +
                            ))
         201  +
                        }
         202  +
                    };
         203  +
                    tmp.meta = generic;
         204  +
                    if tmp.message.is_none() {
         205  +
                        tmp.message = _error_message;
         206  +
                    }
         207  +
                    tmp
         208  +
                }),
         209  +
                "InvalidParameterException" => crate::operation::put_transformer::PutTransformerError::InvalidParameterException({
         210  +
                    let mut tmp = match protocol
         211  +
                        .deserialize_response(response, crate::types::error::InvalidParameterException::SCHEMA, _cfg)
         212  +
                        .and_then(|mut deser| {
         213  +
                            crate::types::error::InvalidParameterException::deserialize_with_response(
         214  +
                                &mut *deser,
         215  +
                                response.headers(),
         216  +
                                response.status().into(),
         217  +
                                body,
         218  +
                            )
         219  +
                        }) {
         220  +
                        ::std::result::Result::Ok(val) => val,
         221  +
                        ::std::result::Result::Err(e) => {
         222  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         223  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         224  +
                            ))
         225  +
                        }
         226  +
                    };
         227  +
                    tmp.meta = generic;
         228  +
                    if tmp.message.is_none() {
         229  +
                        tmp.message = _error_message;
         230  +
                    }
         231  +
                    tmp
         232  +
                }),
         233  +
                "LimitExceededException" => crate::operation::put_transformer::PutTransformerError::LimitExceededException({
         234  +
                    let mut tmp = match protocol
         235  +
                        .deserialize_response(response, crate::types::error::LimitExceededException::SCHEMA, _cfg)
         236  +
                        .and_then(|mut deser| {
         237  +
                            crate::types::error::LimitExceededException::deserialize_with_response(
         238  +
                                &mut *deser,
         239  +
                                response.headers(),
         240  +
                                response.status().into(),
         241  +
                                body,
         242  +
                            )
         243  +
                        }) {
         244  +
                        ::std::result::Result::Ok(val) => val,
         245  +
                        ::std::result::Result::Err(e) => {
         246  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         247  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         248  +
                            ))
         249  +
                        }
  162    250   
                    };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         251  +
                    tmp.meta = generic;
         252  +
                    if tmp.message.is_none() {
         253  +
                        tmp.message = _error_message;
         254  +
                    }
         255  +
                    tmp
         256  +
                }),
         257  +
                "OperationAbortedException" => crate::operation::put_transformer::PutTransformerError::OperationAbortedException({
         258  +
                    let mut tmp = match protocol
         259  +
                        .deserialize_response(response, crate::types::error::OperationAbortedException::SCHEMA, _cfg)
         260  +
                        .and_then(|mut deser| {
         261  +
                            crate::types::error::OperationAbortedException::deserialize_with_response(
         262  +
                                &mut *deser,
         263  +
                                response.headers(),
         264  +
                                response.status().into(),
         265  +
                                body,
         266  +
                            )
         267  +
                        }) {
         268  +
                        ::std::result::Result::Ok(val) => val,
         269  +
                        ::std::result::Result::Err(e) => {
         270  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         271  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         272  +
                            ))
         273  +
                        }
         274  +
                    };
         275  +
                    tmp.meta = generic;
         276  +
                    if tmp.message.is_none() {
         277  +
                        tmp.message = _error_message;
         278  +
                    }
         279  +
                    tmp
         280  +
                }),
         281  +
                "ResourceNotFoundException" => crate::operation::put_transformer::PutTransformerError::ResourceNotFoundException({
         282  +
                    let mut tmp = match protocol
         283  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         284  +
                        .and_then(|mut deser| {
         285  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         286  +
                                &mut *deser,
         287  +
                                response.headers(),
         288  +
                                response.status().into(),
         289  +
                                body,
         290  +
                            )
         291  +
                        }) {
         292  +
                        ::std::result::Result::Ok(val) => val,
         293  +
                        ::std::result::Result::Err(e) => {
         294  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         295  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         296  +
                            ))
         297  +
                        }
         298  +
                    };
         299  +
                    tmp.meta = generic;
         300  +
                    if tmp.message.is_none() {
         301  +
                        tmp.message = _error_message;
         302  +
                    }
         303  +
                    tmp
         304  +
                }),
         305  +
                "ServiceUnavailableException" => crate::operation::put_transformer::PutTransformerError::ServiceUnavailableException({
         306  +
                    let mut tmp = match protocol
         307  +
                        .deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
         308  +
                        .and_then(|mut deser| {
         309  +
                            crate::types::error::ServiceUnavailableException::deserialize_with_response(
         310  +
                                &mut *deser,
         311  +
                                response.headers(),
         312  +
                                response.status().into(),
         313  +
                                body,
         314  +
                            )
         315  +
                        }) {
         316  +
                        ::std::result::Result::Ok(val) => val,
         317  +
                        ::std::result::Result::Err(e) => {
         318  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         319  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         320  +
                            ))
         321  +
                        }
         322  +
                    };
         323  +
                    tmp.meta = generic;
         324  +
                    if tmp.message.is_none() {
         325  +
                        tmp.message = _error_message;
         326  +
                    }
         327  +
                    tmp
         328  +
                }),
         329  +
                _ => crate::operation::put_transformer::PutTransformerError::generic(generic),
         330  +
            };
         331  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         332  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         333  +
            ))
         334  +
        } else {
         335  +
            let protocol = _cfg
         336  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         337  +
                .expect("a SharedClientProtocol is required");
         338  +
            let mut deser = protocol
         339  +
                .deserialize_response(response, PutTransformer::OUTPUT_SCHEMA, _cfg)
         340  +
                .map_err(|e| {
         341  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         342  +
                })?;
         343  +
            let body = response.body().bytes().expect("body loaded");
         344  +
            let output = crate::operation::put_transformer::PutTransformerOutput::deserialize_with_response(
         345  +
                &mut *deser,
         346  +
                response.headers(),
         347  +
                response.status().into(),
         348  +
                body,
         349  +
            )
         350  +
            .map_err(|e| {
         351  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         352  +
            })?;
         353  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         354  +
        }
  164    355   
    }
  165    356   
}
  166    357   
#[derive(Debug)]
  167    358   
struct PutTransformerRequestSerializer;
  168    359   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for PutTransformerRequestSerializer {
  169    360   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    361   
    fn serialize_input(
  171    362   
        &self,
  172    363   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    364   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    365   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    366   
        let input = input
  176    367   
            .downcast::<crate::operation::put_transformer::PutTransformerInput>()
  177    368   
            .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::put_transformer::PutTransformerInput,
  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::put_transformer::PutTransformerInput,
  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.1");
  203         -
            builder = _header_serialization_settings.set_default_header(
  204         -
                builder,
  205         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  206         -
                "Logs_20140328.PutTransformer",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_put_transformer::ser_put_transformer_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())
         369  +
        let protocol = _cfg
         370  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         371  +
            .expect("a SharedClientProtocol is required");
         372  +
        let mut request = protocol
         373  +
            .serialize_request(&input, PutTransformer::INPUT_SCHEMA, "", _cfg)
         374  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         375  +
         376  +
        return ::std::result::Result::Ok(request);
  216    377   
    }
  217    378   
}
  218    379   
#[derive(Debug)]
  219    380   
struct PutTransformerEndpointParamsInterceptor;
  220    381   
  221    382   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutTransformerEndpointParamsInterceptor {
  222    383   
    fn name(&self) -> &'static str {
  223    384   
        "PutTransformerEndpointParamsInterceptor"
  224    385   
    }
  225    386   

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/put_transformer/_put_transformer_input.rs

@@ -5,5 +153,163 @@
   25     25   
    "com.amazonaws.cloudwatchlogs.synthetic",
   26     26   
    "PutTransformerInput",
   27     27   
);
   28     28   
static PUTTRANSFORMERINPUT_MEMBER_LOG_GROUP_IDENTIFIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   29     29   
    ::aws_smithy_schema::ShapeId::from_static(
   30     30   
        "com.amazonaws.cloudwatchlogs.synthetic#PutTransformerInput$logGroupIdentifier",
   31     31   
        "com.amazonaws.cloudwatchlogs.synthetic",
   32     32   
        "PutTransformerInput",
   33     33   
    ),
   34     34   
    ::aws_smithy_schema::ShapeType::String,
   35         -
    "log_group_identifier",
          35  +
    "logGroupIdentifier",
   36     36   
    0,
   37     37   
);
   38     38   
static PUTTRANSFORMERINPUT_MEMBER_TRANSFORMER_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.cloudwatchlogs.synthetic#PutTransformerInput$transformerConfig",
   41     41   
        "com.amazonaws.cloudwatchlogs.synthetic",
   42     42   
        "PutTransformerInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::List,
   45         -
    "transformer_config",
          45  +
    "transformerConfig",
   46     46   
    1,
   47     47   
);
   48     48   
static PUTTRANSFORMERINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    PUTTRANSFORMERINPUT_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[
   52     52   
        &PUTTRANSFORMERINPUT_MEMBER_LOG_GROUP_IDENTIFIER,
   53     53   
        &PUTTRANSFORMERINPUT_MEMBER_TRANSFORMER_CONFIG,
   54     54   
    ],
   55     55   
);
   56     56   
impl PutTransformerInput {
   57     57   
    /// The schema for this shape.
   58     58   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PUTTRANSFORMERINPUT_SCHEMA;
   59     59   
}
   60     60   
impl ::aws_smithy_schema::serde::SerializableStruct for PutTransformerInput {
   61     61   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   62     62   
    fn serialize_members(
   63     63   
        &self,
   64     64   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   65     65   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   66     66   
        if let Some(ref val) = self.log_group_identifier {
   67     67   
            ser.write_string(&PUTTRANSFORMERINPUT_MEMBER_LOG_GROUP_IDENTIFIER, val)?;
   68     68   
        }
   69     69   
        if let Some(ref val) = self.transformer_config {
   70     70   
            ser.write_list(
   71     71   
                &PUTTRANSFORMERINPUT_MEMBER_TRANSFORMER_CONFIG,
   72     72   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   73     73   
                    for item in val {
   74     74   
                        ser.write_struct(crate::types::Processor::SCHEMA, item)?;
   75     75   
                    }
   76     76   
                    Ok(())
   77     77   
                },
   78     78   
            )?;
   79     79   
        }
   80     80   
        Ok(())
   81     81   
    }
   82     82   
}
   83     83   
impl PutTransformerInput {
   84     84   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   85         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   86         -
        deserializer: &mut D,
          85  +
    pub fn deserialize(
          86  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   87     87   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   88     88   
        #[allow(unused_variables, unused_mut)]
   89     89   
        let mut builder = Self::builder();
   90     90   
        #[allow(
   91     91   
            unused_variables,
   92     92   
            unreachable_code,
   93     93   
            clippy::single_match,
   94     94   
            clippy::match_single_binding,
   95     95   
            clippy::diverging_sub_expression
   96     96   
        )]
   97         -
        deserializer.read_struct(&PUTTRANSFORMERINPUT_SCHEMA, (), |_, member, deser| {
          97  +
        deserializer.read_struct(&PUTTRANSFORMERINPUT_SCHEMA, &mut |member, deser| {
   98     98   
            match member.member_index() {
   99     99   
                Some(0) => {
  100    100   
                    builder.log_group_identifier = Some(deser.read_string(member)?);
  101    101   
                }
  102    102   
                Some(1) => {
  103    103   
                    builder.transformer_config = Some({
  104         -
                        let container = if let Some(cap) = deser.container_size() {
  105         -
                            Vec::with_capacity(cap)
  106         -
                        } else {
  107         -
                            Vec::new()
  108         -
                        };
  109         -
                        deser.read_list(member, container, |mut list, deser| {
  110         -
                            list.push(crate::types::Processor::deserialize(deser)?);
  111         -
                            Ok(list)
  112         -
                        })?
         104  +
                        let mut container = Vec::new();
         105  +
                        deser.read_list(member, &mut |deser| {
         106  +
                            container.push(crate::types::Processor::deserialize(deser)?);
         107  +
                            Ok(())
         108  +
                        })?;
         109  +
                        container
  113    110   
                    });
  114    111   
                }
  115    112   
                _ => {}
  116    113   
            }
  117    114   
            Ok(())
  118    115   
        })?;
         116  +
        builder.log_group_identifier = builder.log_group_identifier.or(Some(String::new()));
         117  +
        builder.transformer_config = builder.transformer_config.or(Some(Vec::new()));
  119    118   
        builder
  120    119   
            .build()
  121    120   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  122    121   
    }
  123    122   
}
         123  +
impl PutTransformerInput {
         124  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         125  +
    pub fn deserialize_with_response(
         126  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         127  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         128  +
        _status: u16,
         129  +
        _body: &[u8],
         130  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         131  +
        Self::deserialize(deserializer)
         132  +
    }
         133  +
}
  124    134   
impl PutTransformerInput {
  125    135   
    /// Creates a new builder-style object to manufacture [`PutTransformerInput`](crate::operation::put_transformer::PutTransformerInput).
  126    136   
    pub fn builder() -> crate::operation::put_transformer::builders::PutTransformerInputBuilder {
  127    137   
        crate::operation::put_transformer::builders::PutTransformerInputBuilder::default()
  128    138   
    }
  129    139   
}
  130    140   
  131    141   
/// A builder for [`PutTransformerInput`](crate::operation::put_transformer::PutTransformerInput).
  132    142   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  133    143   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/put_transformer/_put_transformer_output.rs

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

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

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/start_live_tail/_start_live_tail_input.rs

@@ -45,45 +135,135 @@
   65     65   
    "com.amazonaws.cloudwatchlogs.synthetic",
   66     66   
    "StartLiveTailInput",
   67     67   
);
   68     68   
static STARTLIVETAILINPUT_MEMBER_LOG_GROUP_IDENTIFIERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   69     69   
    ::aws_smithy_schema::ShapeId::from_static(
   70     70   
        "com.amazonaws.cloudwatchlogs.synthetic#StartLiveTailInput$logGroupIdentifiers",
   71     71   
        "com.amazonaws.cloudwatchlogs.synthetic",
   72     72   
        "StartLiveTailInput",
   73     73   
    ),
   74     74   
    ::aws_smithy_schema::ShapeType::List,
   75         -
    "log_group_identifiers",
          75  +
    "logGroupIdentifiers",
   76     76   
    0,
   77     77   
);
   78     78   
static STARTLIVETAILINPUT_MEMBER_LOG_STREAM_NAMES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   79     79   
    ::aws_smithy_schema::ShapeId::from_static(
   80     80   
        "com.amazonaws.cloudwatchlogs.synthetic#StartLiveTailInput$logStreamNames",
   81     81   
        "com.amazonaws.cloudwatchlogs.synthetic",
   82     82   
        "StartLiveTailInput",
   83     83   
    ),
   84     84   
    ::aws_smithy_schema::ShapeType::List,
   85         -
    "log_stream_names",
          85  +
    "logStreamNames",
   86     86   
    1,
   87     87   
);
   88     88   
static STARTLIVETAILINPUT_MEMBER_LOG_STREAM_NAME_PREFIXES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   89     89   
    ::aws_smithy_schema::ShapeId::from_static(
   90     90   
        "com.amazonaws.cloudwatchlogs.synthetic#StartLiveTailInput$logStreamNamePrefixes",
   91     91   
        "com.amazonaws.cloudwatchlogs.synthetic",
   92     92   
        "StartLiveTailInput",
   93     93   
    ),
   94     94   
    ::aws_smithy_schema::ShapeType::List,
   95         -
    "log_stream_name_prefixes",
          95  +
    "logStreamNamePrefixes",
   96     96   
    2,
   97     97   
);
   98     98   
static STARTLIVETAILINPUT_MEMBER_LOG_EVENT_FILTER_PATTERN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   99     99   
    ::aws_smithy_schema::ShapeId::from_static(
  100    100   
        "com.amazonaws.cloudwatchlogs.synthetic#StartLiveTailInput$logEventFilterPattern",
  101    101   
        "com.amazonaws.cloudwatchlogs.synthetic",
  102    102   
        "StartLiveTailInput",
  103    103   
    ),
  104    104   
    ::aws_smithy_schema::ShapeType::String,
  105         -
    "log_event_filter_pattern",
         105  +
    "logEventFilterPattern",
  106    106   
    3,
  107    107   
);
  108    108   
static STARTLIVETAILINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  109    109   
    STARTLIVETAILINPUT_SCHEMA_ID,
  110    110   
    ::aws_smithy_schema::ShapeType::Structure,
  111    111   
    &[
  112    112   
        &STARTLIVETAILINPUT_MEMBER_LOG_GROUP_IDENTIFIERS,
  113    113   
        &STARTLIVETAILINPUT_MEMBER_LOG_STREAM_NAMES,
  114    114   
        &STARTLIVETAILINPUT_MEMBER_LOG_STREAM_NAME_PREFIXES,
  115    115   
        &STARTLIVETAILINPUT_MEMBER_LOG_EVENT_FILTER_PATTERN,
@@ -139,139 +263,245 @@
  159    159   
            )?;
  160    160   
        }
  161    161   
        if let Some(ref val) = self.log_event_filter_pattern {
  162    162   
            ser.write_string(&STARTLIVETAILINPUT_MEMBER_LOG_EVENT_FILTER_PATTERN, val)?;
  163    163   
        }
  164    164   
        Ok(())
  165    165   
    }
  166    166   
}
  167    167   
impl StartLiveTailInput {
  168    168   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  169         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  170         -
        deserializer: &mut D,
         169  +
    pub fn deserialize(
         170  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  171    171   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  172    172   
        #[allow(unused_variables, unused_mut)]
  173    173   
        let mut builder = Self::builder();
  174    174   
        #[allow(
  175    175   
            unused_variables,
  176    176   
            unreachable_code,
  177    177   
            clippy::single_match,
  178    178   
            clippy::match_single_binding,
  179    179   
            clippy::diverging_sub_expression
  180    180   
        )]
  181         -
        deserializer.read_struct(&STARTLIVETAILINPUT_SCHEMA, (), |_, member, deser| {
         181  +
        deserializer.read_struct(&STARTLIVETAILINPUT_SCHEMA, &mut |member, deser| {
  182    182   
            match member.member_index() {
  183    183   
                Some(0) => {
  184         -
                    builder.log_group_identifiers = Some({
  185         -
                        let container = if let Some(cap) = deser.container_size() {
  186         -
                            Vec::with_capacity(cap)
  187         -
                        } else {
  188         -
                            Vec::new()
  189         -
                        };
  190         -
                        deser.read_list(member, container, |mut list, deser| {
  191         -
                            list.push(deser.read_string(member)?);
  192         -
                            Ok(list)
  193         -
                        })?
  194         -
                    });
         184  +
                    builder.log_group_identifiers = Some(deser.read_string_list(member)?);
  195    185   
                }
  196    186   
                Some(1) => {
  197         -
                    builder.log_stream_names = Some({
  198         -
                        let container = if let Some(cap) = deser.container_size() {
  199         -
                            Vec::with_capacity(cap)
  200         -
                        } else {
  201         -
                            Vec::new()
  202         -
                        };
  203         -
                        deser.read_list(member, container, |mut list, deser| {
  204         -
                            list.push(deser.read_string(member)?);
  205         -
                            Ok(list)
  206         -
                        })?
  207         -
                    });
         187  +
                    builder.log_stream_names = Some(deser.read_string_list(member)?);
  208    188   
                }
  209    189   
                Some(2) => {
  210         -
                    builder.log_stream_name_prefixes = Some({
  211         -
                        let container = if let Some(cap) = deser.container_size() {
  212         -
                            Vec::with_capacity(cap)
  213         -
                        } else {
  214         -
                            Vec::new()
  215         -
                        };
  216         -
                        deser.read_list(member, container, |mut list, deser| {
  217         -
                            list.push(deser.read_string(member)?);
  218         -
                            Ok(list)
  219         -
                        })?
  220         -
                    });
         190  +
                    builder.log_stream_name_prefixes = Some(deser.read_string_list(member)?);
  221    191   
                }
  222    192   
                Some(3) => {
  223    193   
                    builder.log_event_filter_pattern = Some(deser.read_string(member)?);
  224    194   
                }
  225    195   
                _ => {}
  226    196   
            }
  227    197   
            Ok(())
  228    198   
        })?;
         199  +
        builder.log_group_identifiers = builder.log_group_identifiers.or(Some(Vec::new()));
  229    200   
        builder
  230    201   
            .build()
  231    202   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  232    203   
    }
  233    204   
}
         205  +
impl StartLiveTailInput {
         206  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         207  +
    pub fn deserialize_with_response(
         208  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         209  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         210  +
        _status: u16,
         211  +
        _body: &[u8],
         212  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         213  +
        Self::deserialize(deserializer)
         214  +
    }
         215  +
}
  234    216   
impl StartLiveTailInput {
  235    217   
    /// Creates a new builder-style object to manufacture [`StartLiveTailInput`](crate::operation::start_live_tail::StartLiveTailInput).
  236    218   
    pub fn builder() -> crate::operation::start_live_tail::builders::StartLiveTailInputBuilder {
  237    219   
        crate::operation::start_live_tail::builders::StartLiveTailInputBuilder::default()
  238    220   
    }
  239    221   
}
  240    222   
  241    223   
/// A builder for [`StartLiveTailInput`](crate::operation::start_live_tail::StartLiveTailInput).
  242    224   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  243    225   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/start_live_tail/_start_live_tail_output.rs

@@ -1,1 +105,150 @@
   21     21   
    "com.amazonaws.cloudwatchlogs.synthetic",
   22     22   
    "StartLiveTailOutput",
   23     23   
);
   24     24   
static STARTLIVETAILOUTPUT_MEMBER_RESPONSE_STREAM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   25     25   
    ::aws_smithy_schema::ShapeId::from_static(
   26     26   
        "com.amazonaws.cloudwatchlogs.synthetic#StartLiveTailOutput$responseStream",
   27     27   
        "com.amazonaws.cloudwatchlogs.synthetic",
   28     28   
        "StartLiveTailOutput",
   29     29   
    ),
   30     30   
    ::aws_smithy_schema::ShapeType::Union,
   31         -
    "response_stream",
          31  +
    "responseStream",
   32     32   
    0,
   33     33   
);
          34  +
static STARTLIVETAILOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          35  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          36  +
    ::aws_smithy_schema::ShapeType::String,
          37  +
    "request_id",
          38  +
    1,
          39  +
)
          40  +
.with_http_header("x-amzn-requestid");
   34     41   
static STARTLIVETAILOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   35     42   
    STARTLIVETAILOUTPUT_SCHEMA_ID,
   36     43   
    ::aws_smithy_schema::ShapeType::Structure,
   37         -
    &[&STARTLIVETAILOUTPUT_MEMBER_RESPONSE_STREAM],
          44  +
    &[&STARTLIVETAILOUTPUT_MEMBER_RESPONSE_STREAM, &STARTLIVETAILOUTPUT_MEMBER__REQUEST_ID],
   38     45   
);
   39     46   
impl StartLiveTailOutput {
   40     47   
    /// The schema for this shape.
   41     48   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &STARTLIVETAILOUTPUT_SCHEMA;
   42     49   
}
   43     50   
impl ::aws_smithy_schema::serde::SerializableStruct for StartLiveTailOutput {
   44     51   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   45     52   
    fn serialize_members(
   46     53   
        &self,
   47     54   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   48     55   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   49         -
        {
   50         -
            let val = &self.response_stream;
   51         -
            ser.write_null(&STARTLIVETAILOUTPUT_MEMBER_RESPONSE_STREAM)?;
   52         -
        }
   53     56   
        Ok(())
   54     57   
    }
   55     58   
}
   56     59   
impl StartLiveTailOutput {
   57     60   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   58         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   59         -
        deserializer: &mut D,
          61  +
    pub fn deserialize(
          62  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          63  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          64  +
        #[allow(unused_variables, unused_mut)]
          65  +
        let mut builder = Self::builder();
          66  +
        #[allow(
          67  +
            unused_variables,
          68  +
            unreachable_code,
          69  +
            clippy::single_match,
          70  +
            clippy::match_single_binding,
          71  +
            clippy::diverging_sub_expression
          72  +
        )]
          73  +
        deserializer.read_struct(&STARTLIVETAILOUTPUT_SCHEMA, &mut |member, deser| {
          74  +
            match member.member_index() {
          75  +
                Some(0) => {
          76  +
                    builder.response_stream = Some({
          77  +
                        let _ = member;
          78  +
                        todo!("deserialize streaming union")
          79  +
                    });
          80  +
                }
          81  +
                Some(1) => {
          82  +
                    builder._request_id = Some(deser.read_string(member)?);
          83  +
                }
          84  +
                _ => {}
          85  +
            }
          86  +
            Ok(())
          87  +
        })?;
          88  +
        builder
          89  +
            .build()
          90  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
          91  +
    }
          92  +
}
          93  +
impl StartLiveTailOutput {
          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],
   60    102   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   61    103   
        #[allow(unused_variables, unused_mut)]
   62    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  +
        }
   63    108   
        #[allow(
   64    109   
            unused_variables,
   65    110   
            unreachable_code,
   66    111   
            clippy::single_match,
   67    112   
            clippy::match_single_binding,
   68    113   
            clippy::diverging_sub_expression
   69    114   
        )]
   70         -
        deserializer.read_struct(&STARTLIVETAILOUTPUT_SCHEMA, (), |_, member, deser| {
         115  +
        deserializer.read_struct(&STARTLIVETAILOUTPUT_SCHEMA, &mut |member, deser| {
   71    116   
            match member.member_index() {
   72    117   
                Some(0) => {
   73    118   
                    builder.response_stream = Some({
   74    119   
                        let _ = member;
   75         -
                        todo!("deserialize aggregate")
         120  +
                        todo!("deserialize streaming union")
   76    121   
                    });
   77    122   
                }
   78    123   
                _ => {}
   79    124   
            }
   80    125   
            Ok(())
   81    126   
        })?;
   82    127   
        builder
   83    128   
            .build()
   84    129   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   85    130   
    }

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/start_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 `StartQuery`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct StartQuery;
    6      6   
impl StartQuery {
    7      7   
    /// Creates a new `StartQuery`
    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::start_query::StartQueryInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::start_query::StartQueryOutput::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::start_query::StartQueryInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::start_query::StartQueryOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::start_query::StartQueryError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +243,376 @@
  138    142   
                crate::operation::start_query::StartQueryError,
  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 StartQueryResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for StartQueryResponseDeserializer {
  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_start_query::de_start_query_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_start_query::de_start_query_http_response(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::start_query::StartQueryError::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  +
                "InvalidParameterException" => crate::operation::start_query::StartQueryError::InvalidParameterException({
         184  +
                    let mut tmp = match protocol
         185  +
                        .deserialize_response(response, crate::types::error::InvalidParameterException::SCHEMA, _cfg)
         186  +
                        .and_then(|mut deser| {
         187  +
                            crate::types::error::InvalidParameterException::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  +
                        }
  162    200   
                    };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         201  +
                    tmp.meta = generic;
         202  +
                    if tmp.message.is_none() {
         203  +
                        tmp.message = _error_message;
         204  +
                    }
         205  +
                    tmp
         206  +
                }),
         207  +
                "LimitExceededException" => crate::operation::start_query::StartQueryError::LimitExceededException({
         208  +
                    let mut tmp = match protocol
         209  +
                        .deserialize_response(response, crate::types::error::LimitExceededException::SCHEMA, _cfg)
         210  +
                        .and_then(|mut deser| {
         211  +
                            crate::types::error::LimitExceededException::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  +
                "MalformedQueryException" => crate::operation::start_query::StartQueryError::MalformedQueryException({
         232  +
                    let mut tmp = match protocol
         233  +
                        .deserialize_response(response, crate::types::error::MalformedQueryException::SCHEMA, _cfg)
         234  +
                        .and_then(|mut deser| {
         235  +
                            crate::types::error::MalformedQueryException::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  +
                "ResourceNotFoundException" => crate::operation::start_query::StartQueryError::ResourceNotFoundException({
         256  +
                    let mut tmp = match protocol
         257  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         258  +
                        .and_then(|mut deser| {
         259  +
                            crate::types::error::ResourceNotFoundException::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  +
                "ServiceUnavailableException" => crate::operation::start_query::StartQueryError::ServiceUnavailableException({
         280  +
                    let mut tmp = match protocol
         281  +
                        .deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
         282  +
                        .and_then(|mut deser| {
         283  +
                            crate::types::error::ServiceUnavailableException::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::start_query::StartQueryError::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  +
            ))
         308  +
        } else {
         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, StartQuery::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::start_query::StartQueryOutput::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 StartQueryRequestSerializer;
  168    331   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for StartQueryRequestSerializer {
  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.downcast::<crate::operation::start_query::StartQueryInput>().expect("correct type");
  176         -
        let _header_serialization_settings = _cfg
  177         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  178         -
            .cloned()
  179         -
            .unwrap_or_default();
  180         -
        let mut request_builder = {
  181         -
            #[allow(clippy::uninlined_format_args)]
  182         -
            fn uri_base(
  183         -
                _input: &crate::operation::start_query::StartQueryInput,
  184         -
                output: &mut ::std::string::String,
  185         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  186         -
                use ::std::fmt::Write as _;
  187         -
                ::std::write!(output, "/").expect("formatting should succeed");
  188         -
                ::std::result::Result::Ok(())
  189         -
            }
  190         -
            #[allow(clippy::unnecessary_wraps)]
  191         -
            fn update_http_builder(
  192         -
                input: &crate::operation::start_query::StartQueryInput,
  193         -
                builder: ::http_1x::request::Builder,
  194         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  195         -
                let mut uri = ::std::string::String::new();
  196         -
                uri_base(input, &mut uri)?;
  197         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  198         -
            }
  199         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  200         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  201         -
            builder = _header_serialization_settings.set_default_header(
  202         -
                builder,
  203         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  204         -
                "Logs_20140328.StartQuery",
  205         -
            );
  206         -
            builder
  207         -
        };
  208         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_start_query::ser_start_query_input(&input)?);
  209         -
        if let Some(content_length) = body.content_length() {
  210         -
            let content_length = content_length.to_string();
  211         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  212         -
        }
  213         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         339  +
        let protocol = _cfg
         340  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         341  +
            .expect("a SharedClientProtocol is required");
         342  +
        let mut request = protocol
         343  +
            .serialize_request(&input, StartQuery::INPUT_SCHEMA, "", _cfg)
         344  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         345  +
         346  +
        return ::std::result::Result::Ok(request);
  214    347   
    }
  215    348   
}
  216    349   
#[derive(Debug)]
  217    350   
struct StartQueryEndpointParamsInterceptor;
  218    351   
  219    352   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for StartQueryEndpointParamsInterceptor {
  220    353   
    fn name(&self) -> &'static str {
  221    354   
        "StartQueryEndpointParamsInterceptor"
  222    355   
    }
  223    356   

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/start_query/_start_query_input.rs

@@ -57,57 +177,177 @@
   77     77   
    "com.amazonaws.cloudwatchlogs.synthetic",
   78     78   
    "StartQueryInput",
   79     79   
);
   80     80   
static STARTQUERYINPUT_MEMBER_QUERY_LANGUAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   81     81   
    ::aws_smithy_schema::ShapeId::from_static(
   82     82   
        "com.amazonaws.cloudwatchlogs.synthetic#StartQueryInput$queryLanguage",
   83     83   
        "com.amazonaws.cloudwatchlogs.synthetic",
   84     84   
        "StartQueryInput",
   85     85   
    ),
   86     86   
    ::aws_smithy_schema::ShapeType::String,
   87         -
    "query_language",
          87  +
    "queryLanguage",
   88     88   
    0,
   89     89   
);
   90     90   
static STARTQUERYINPUT_MEMBER_LOG_GROUP_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static(
   92     92   
        "com.amazonaws.cloudwatchlogs.synthetic#StartQueryInput$logGroupName",
   93     93   
        "com.amazonaws.cloudwatchlogs.synthetic",
   94     94   
        "StartQueryInput",
   95     95   
    ),
   96     96   
    ::aws_smithy_schema::ShapeType::String,
   97         -
    "log_group_name",
          97  +
    "logGroupName",
   98     98   
    1,
   99     99   
);
  100    100   
static STARTQUERYINPUT_MEMBER_LOG_GROUP_NAMES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  101    101   
    ::aws_smithy_schema::ShapeId::from_static(
  102    102   
        "com.amazonaws.cloudwatchlogs.synthetic#StartQueryInput$logGroupNames",
  103    103   
        "com.amazonaws.cloudwatchlogs.synthetic",
  104    104   
        "StartQueryInput",
  105    105   
    ),
  106    106   
    ::aws_smithy_schema::ShapeType::List,
  107         -
    "log_group_names",
         107  +
    "logGroupNames",
  108    108   
    2,
  109    109   
);
  110    110   
static STARTQUERYINPUT_MEMBER_LOG_GROUP_IDENTIFIERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  111    111   
    ::aws_smithy_schema::ShapeId::from_static(
  112    112   
        "com.amazonaws.cloudwatchlogs.synthetic#StartQueryInput$logGroupIdentifiers",
  113    113   
        "com.amazonaws.cloudwatchlogs.synthetic",
  114    114   
        "StartQueryInput",
  115    115   
    ),
  116    116   
    ::aws_smithy_schema::ShapeType::List,
  117         -
    "log_group_identifiers",
         117  +
    "logGroupIdentifiers",
  118    118   
    3,
  119    119   
);
  120    120   
static STARTQUERYINPUT_MEMBER_START_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  121    121   
    ::aws_smithy_schema::ShapeId::from_static(
  122    122   
        "com.amazonaws.cloudwatchlogs.synthetic#StartQueryInput$startTime",
  123    123   
        "com.amazonaws.cloudwatchlogs.synthetic",
  124    124   
        "StartQueryInput",
  125    125   
    ),
  126    126   
    ::aws_smithy_schema::ShapeType::Long,
  127         -
    "start_time",
         127  +
    "startTime",
  128    128   
    4,
  129    129   
);
  130    130   
static STARTQUERYINPUT_MEMBER_END_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  131    131   
    ::aws_smithy_schema::ShapeId::from_static(
  132    132   
        "com.amazonaws.cloudwatchlogs.synthetic#StartQueryInput$endTime",
  133    133   
        "com.amazonaws.cloudwatchlogs.synthetic",
  134    134   
        "StartQueryInput",
  135    135   
    ),
  136    136   
    ::aws_smithy_schema::ShapeType::Long,
  137         -
    "end_time",
         137  +
    "endTime",
  138    138   
    5,
  139    139   
);
  140    140   
static STARTQUERYINPUT_MEMBER_QUERY_STRING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  141    141   
    ::aws_smithy_schema::ShapeId::from_static(
  142    142   
        "com.amazonaws.cloudwatchlogs.synthetic#StartQueryInput$queryString",
  143    143   
        "com.amazonaws.cloudwatchlogs.synthetic",
  144    144   
        "StartQueryInput",
  145    145   
    ),
  146    146   
    ::aws_smithy_schema::ShapeType::String,
  147         -
    "query_string",
         147  +
    "queryString",
  148    148   
    6,
  149    149   
);
  150    150   
static STARTQUERYINPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  151    151   
    ::aws_smithy_schema::ShapeId::from_static(
  152    152   
        "com.amazonaws.cloudwatchlogs.synthetic#StartQueryInput$limit",
  153    153   
        "com.amazonaws.cloudwatchlogs.synthetic",
  154    154   
        "StartQueryInput",
  155    155   
    ),
  156    156   
    ::aws_smithy_schema::ShapeType::Integer,
  157    157   
    "limit",
@@ -199,199 +325,319 @@
  219    219   
            ser.write_string(&STARTQUERYINPUT_MEMBER_QUERY_STRING, val)?;
  220    220   
        }
  221    221   
        if let Some(ref val) = self.limit {
  222    222   
            ser.write_integer(&STARTQUERYINPUT_MEMBER_LIMIT, *val)?;
  223    223   
        }
  224    224   
        Ok(())
  225    225   
    }
  226    226   
}
  227    227   
impl StartQueryInput {
  228    228   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  229         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  230         -
        deserializer: &mut D,
         229  +
    pub fn deserialize(
         230  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  231    231   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  232    232   
        #[allow(unused_variables, unused_mut)]
  233    233   
        let mut builder = Self::builder();
  234    234   
        #[allow(
  235    235   
            unused_variables,
  236    236   
            unreachable_code,
  237    237   
            clippy::single_match,
  238    238   
            clippy::match_single_binding,
  239    239   
            clippy::diverging_sub_expression
  240    240   
        )]
  241         -
        deserializer.read_struct(&STARTQUERYINPUT_SCHEMA, (), |_, member, deser| {
         241  +
        deserializer.read_struct(&STARTQUERYINPUT_SCHEMA, &mut |member, deser| {
  242    242   
            match member.member_index() {
  243    243   
                Some(0) => {
  244    244   
                    builder.query_language = Some(crate::types::QueryLanguage::from(deser.read_string(member)?.as_str()));
  245    245   
                }
  246    246   
                Some(1) => {
  247    247   
                    builder.log_group_name = Some(deser.read_string(member)?);
  248    248   
                }
  249    249   
                Some(2) => {
  250         -
                    builder.log_group_names = Some({
  251         -
                        let container = if let Some(cap) = deser.container_size() {
  252         -
                            Vec::with_capacity(cap)
  253         -
                        } else {
  254         -
                            Vec::new()
  255         -
                        };
  256         -
                        deser.read_list(member, container, |mut list, deser| {
  257         -
                            list.push(deser.read_string(member)?);
  258         -
                            Ok(list)
  259         -
                        })?
  260         -
                    });
         250  +
                    builder.log_group_names = Some(deser.read_string_list(member)?);
  261    251   
                }
  262    252   
                Some(3) => {
  263         -
                    builder.log_group_identifiers = Some({
  264         -
                        let container = if let Some(cap) = deser.container_size() {
  265         -
                            Vec::with_capacity(cap)
  266         -
                        } else {
  267         -
                            Vec::new()
  268         -
                        };
  269         -
                        deser.read_list(member, container, |mut list, deser| {
  270         -
                            list.push(deser.read_string(member)?);
  271         -
                            Ok(list)
  272         -
                        })?
  273         -
                    });
         253  +
                    builder.log_group_identifiers = Some(deser.read_string_list(member)?);
  274    254   
                }
  275    255   
                Some(4) => {
  276    256   
                    builder.start_time = Some(deser.read_long(member)?);
  277    257   
                }
  278    258   
                Some(5) => {
  279    259   
                    builder.end_time = Some(deser.read_long(member)?);
  280    260   
                }
  281    261   
                Some(6) => {
  282    262   
                    builder.query_string = Some(deser.read_string(member)?);
  283    263   
                }
  284    264   
                Some(7) => {
  285    265   
                    builder.limit = Some(deser.read_integer(member)?);
  286    266   
                }
  287    267   
                _ => {}
  288    268   
            }
  289    269   
            Ok(())
  290    270   
        })?;
         271  +
        builder.start_time = builder.start_time.or(Some(0i64));
         272  +
        builder.end_time = builder.end_time.or(Some(0i64));
         273  +
        builder.query_string = builder.query_string.or(Some(String::new()));
  291    274   
        builder
  292    275   
            .build()
  293    276   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  294    277   
    }
  295    278   
}
         279  +
impl StartQueryInput {
         280  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         281  +
    pub fn deserialize_with_response(
         282  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         283  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         284  +
        _status: u16,
         285  +
        _body: &[u8],
         286  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         287  +
        Self::deserialize(deserializer)
         288  +
    }
         289  +
}
  296    290   
impl StartQueryInput {
  297    291   
    /// Creates a new builder-style object to manufacture [`StartQueryInput`](crate::operation::start_query::StartQueryInput).
  298    292   
    pub fn builder() -> crate::operation::start_query::builders::StartQueryInputBuilder {
  299    293   
        crate::operation::start_query::builders::StartQueryInputBuilder::default()
  300    294   
    }
  301    295   
}
  302    296   
  303    297   
/// A builder for [`StartQueryInput`](crate::operation::start_query::StartQueryInput).
  304    298   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  305    299   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/start_query/_start_query_output.rs

@@ -1,1 +96,140 @@
   18     18   
    "com.amazonaws.cloudwatchlogs.synthetic",
   19     19   
    "StartQueryOutput",
   20     20   
);
   21     21   
static STARTQUERYOUTPUT_MEMBER_QUERY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.cloudwatchlogs.synthetic#StartQueryOutput$queryId",
   24     24   
        "com.amazonaws.cloudwatchlogs.synthetic",
   25     25   
        "StartQueryOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::String,
   28         -
    "query_id",
          28  +
    "queryId",
   29     29   
    0,
   30     30   
);
          31  +
static STARTQUERYOUTPUT_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 STARTQUERYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     39   
    STARTQUERYOUTPUT_SCHEMA_ID,
   33     40   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    &[&STARTQUERYOUTPUT_MEMBER_QUERY_ID],
          41  +
    &[&STARTQUERYOUTPUT_MEMBER_QUERY_ID, &STARTQUERYOUTPUT_MEMBER__REQUEST_ID],
   35     42   
);
   36     43   
impl StartQueryOutput {
   37     44   
    /// The schema for this shape.
   38     45   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &STARTQUERYOUTPUT_SCHEMA;
   39     46   
}
   40     47   
impl ::aws_smithy_schema::serde::SerializableStruct for StartQueryOutput {
   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.query_id {
   47     54   
            ser.write_string(&STARTQUERYOUTPUT_MEMBER_QUERY_ID, val)?;
   48     55   
        }
   49     56   
        Ok(())
   50     57   
    }
   51     58   
}
   52     59   
impl StartQueryOutput {
   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(&STARTQUERYOUTPUT_SCHEMA, (), |_, member, deser| {
          73  +
        deserializer.read_struct(&STARTQUERYOUTPUT_SCHEMA, &mut |member, deser| {
          74  +
            match member.member_index() {
          75  +
                Some(0) => {
          76  +
                    builder.query_id = 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 StartQueryOutput {
          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(&STARTQUERYOUTPUT_SCHEMA, &mut |member, deser| {
   67    111   
            match member.member_index() {
   68    112   
                Some(0) => {
   69    113   
                    builder.query_id = Some(deser.read_string(member)?);
   70    114   
                }
   71    115   
                _ => {}
   72    116   
            }
   73    117   
            Ok(())
   74    118   
        })?;
   75    119   
        Ok(builder.build())
   76    120   
    }