AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_scheduled_query.rs

@@ -1,0 +90,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_scheduled_query<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ScheduledQuery>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   12         -
            #[allow(unused_mut)]
   13         -
            let mut builder = crate::types::builders::ScheduledQueryBuilder::default();
   14         -
            loop {
   15         -
                match tokens.next().transpose()? {
   16         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   17         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   18         -
                        "Arn" => {
   19         -
                            builder = builder.set_arn(
   20         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   22         -
                                    .transpose()?,
   23         -
                            );
   24         -
                        }
   25         -
                        "Name" => {
   26         -
                            builder = builder.set_name(
   27         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   28         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   29         -
                                    .transpose()?,
   30         -
                            );
   31         -
                        }
   32         -
                        "CreationTime" => {
   33         -
                            builder = builder.set_creation_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   34         -
                                tokens.next(),
   35         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   36         -
                            )?);
   37         -
                        }
   38         -
                        "State" => {
   39         -
                            builder = builder.set_state(
   40         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   41         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::ScheduledQueryState::from(u.as_ref())))
   42         -
                                    .transpose()?,
   43         -
                            );
   44         -
                        }
   45         -
                        "PreviousInvocationTime" => {
   46         -
                            builder = builder.set_previous_invocation_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   47         -
                                tokens.next(),
   48         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   49         -
                            )?);
   50         -
                        }
   51         -
                        "NextInvocationTime" => {
   52         -
                            builder = builder.set_next_invocation_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   53         -
                                tokens.next(),
   54         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   55         -
                            )?);
   56         -
                        }
   57         -
                        "ErrorReportConfiguration" => {
   58         -
                            builder = builder.set_error_report_configuration(
   59         -
                                crate::protocol_serde::shape_error_report_configuration::de_error_report_configuration(tokens, _value)?,
   60         -
                            );
   61         -
                        }
   62         -
                        "TargetDestination" => {
   63         -
                            builder = builder
   64         -
                                .set_target_destination(crate::protocol_serde::shape_target_destination::de_target_destination(tokens, _value)?);
   65         -
                        }
   66         -
                        "LastRunStatus" => {
   67         -
                            builder = builder.set_last_run_status(
   68         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   69         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::ScheduledQueryRunStatus::from(u.as_ref())))
   70         -
                                    .transpose()?,
   71         -
                            );
   72         -
                        }
   73         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   74         -
                    },
   75         -
                    other => {
   76         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   77         -
                            "expected object key or end object, found: {other:?}"
   78         -
                        )))
   79         -
                    }
   80         -
                }
   81         -
            }
   82         -
            Ok(Some(crate::serde_util::scheduled_query_correct_errors(builder).build().map_err(
   83         -
                |err| ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err),
   84         -
            )?))
   85         -
        }
   86         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   87         -
            "expected start object or null",
   88         -
        )),
   89         -
    }
   90         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_scheduled_query_description.rs

@@ -1,0 +127,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_scheduled_query_description<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ScheduledQueryDescription>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   12         -
            #[allow(unused_mut)]
   13         -
            let mut builder = crate::types::builders::ScheduledQueryDescriptionBuilder::default();
   14         -
            loop {
   15         -
                match tokens.next().transpose()? {
   16         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   17         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   18         -
                        "Arn" => {
   19         -
                            builder = builder.set_arn(
   20         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   22         -
                                    .transpose()?,
   23         -
                            );
   24         -
                        }
   25         -
                        "Name" => {
   26         -
                            builder = builder.set_name(
   27         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   28         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   29         -
                                    .transpose()?,
   30         -
                            );
   31         -
                        }
   32         -
                        "QueryString" => {
   33         -
                            builder = builder.set_query_string(
   34         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   35         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   36         -
                                    .transpose()?,
   37         -
                            );
   38         -
                        }
   39         -
                        "CreationTime" => {
   40         -
                            builder = builder.set_creation_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   41         -
                                tokens.next(),
   42         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   43         -
                            )?);
   44         -
                        }
   45         -
                        "State" => {
   46         -
                            builder = builder.set_state(
   47         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   48         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::ScheduledQueryState::from(u.as_ref())))
   49         -
                                    .transpose()?,
   50         -
                            );
   51         -
                        }
   52         -
                        "PreviousInvocationTime" => {
   53         -
                            builder = builder.set_previous_invocation_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   54         -
                                tokens.next(),
   55         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   56         -
                            )?);
   57         -
                        }
   58         -
                        "NextInvocationTime" => {
   59         -
                            builder = builder.set_next_invocation_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   60         -
                                tokens.next(),
   61         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   62         -
                            )?);
   63         -
                        }
   64         -
                        "ScheduleConfiguration" => {
   65         -
                            builder = builder.set_schedule_configuration(
   66         -
                                crate::protocol_serde::shape_schedule_configuration::de_schedule_configuration(tokens, _value)?,
   67         -
                            );
   68         -
                        }
   69         -
                        "NotificationConfiguration" => {
   70         -
                            builder = builder.set_notification_configuration(
   71         -
                                crate::protocol_serde::shape_notification_configuration::de_notification_configuration(tokens, _value)?,
   72         -
                            );
   73         -
                        }
   74         -
                        "TargetConfiguration" => {
   75         -
                            builder = builder.set_target_configuration(crate::protocol_serde::shape_target_configuration::de_target_configuration(
   76         -
                                tokens, _value,
   77         -
                            )?);
   78         -
                        }
   79         -
                        "ScheduledQueryExecutionRoleArn" => {
   80         -
                            builder = builder.set_scheduled_query_execution_role_arn(
   81         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   82         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   83         -
                                    .transpose()?,
   84         -
                            );
   85         -
                        }
   86         -
                        "KmsKeyId" => {
   87         -
                            builder = builder.set_kms_key_id(
   88         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   89         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   90         -
                                    .transpose()?,
   91         -
                            );
   92         -
                        }
   93         -
                        "ErrorReportConfiguration" => {
   94         -
                            builder = builder.set_error_report_configuration(
   95         -
                                crate::protocol_serde::shape_error_report_configuration::de_error_report_configuration(tokens, _value)?,
   96         -
                            );
   97         -
                        }
   98         -
                        "LastRunSummary" => {
   99         -
                            builder = builder.set_last_run_summary(
  100         -
                                crate::protocol_serde::shape_scheduled_query_run_summary::de_scheduled_query_run_summary(tokens, _value)?,
  101         -
                            );
  102         -
                        }
  103         -
                        "RecentlyFailedRuns" => {
  104         -
                            builder = builder.set_recently_failed_runs(
  105         -
                                crate::protocol_serde::shape_scheduled_query_run_summary_list::de_scheduled_query_run_summary_list(tokens, _value)?,
  106         -
                            );
  107         -
                        }
  108         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  109         -
                    },
  110         -
                    other => {
  111         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  112         -
                            "expected object key or end object, found: {other:?}"
  113         -
                        )))
  114         -
                    }
  115         -
                }
  116         -
            }
  117         -
            Ok(Some(
  118         -
                crate::serde_util::scheduled_query_description_correct_errors(builder)
  119         -
                    .build()
  120         -
                    .map_err(|err| ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err))?,
  121         -
            ))
  122         -
        }
  123         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  124         -
            "expected start object or null",
  125         -
        )),
  126         -
    }
  127         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_scheduled_query_insights.rs

@@ -1,0 +10,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_scheduled_query_insights(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::ScheduledQueryInsights,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    {
    7         -
        object.key("Mode").string(input.mode.as_str());
    8         -
    }
    9         -
    Ok(())
   10         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_scheduled_query_insights_response.rs

@@ -1,0 +64,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_scheduled_query_insights_response<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ScheduledQueryInsightsResponse>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   12         -
            #[allow(unused_mut)]
   13         -
            let mut builder = crate::types::builders::ScheduledQueryInsightsResponseBuilder::default();
   14         -
            loop {
   15         -
                match tokens.next().transpose()? {
   16         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   17         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   18         -
                        "QuerySpatialCoverage" => {
   19         -
                            builder = builder.set_query_spatial_coverage(
   20         -
                                crate::protocol_serde::shape_query_spatial_coverage::de_query_spatial_coverage(tokens, _value)?,
   21         -
                            );
   22         -
                        }
   23         -
                        "QueryTemporalRange" => {
   24         -
                            builder = builder.set_query_temporal_range(crate::protocol_serde::shape_query_temporal_range::de_query_temporal_range(
   25         -
                                tokens, _value,
   26         -
                            )?);
   27         -
                        }
   28         -
                        "QueryTableCount" => {
   29         -
                            builder = builder.set_query_table_count(
   30         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   31         -
                                    .map(i64::try_from)
   32         -
                                    .transpose()?,
   33         -
                            );
   34         -
                        }
   35         -
                        "OutputRows" => {
   36         -
                            builder = builder.set_output_rows(
   37         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   38         -
                                    .map(i64::try_from)
   39         -
                                    .transpose()?,
   40         -
                            );
   41         -
                        }
   42         -
                        "OutputBytes" => {
   43         -
                            builder = builder.set_output_bytes(
   44         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   45         -
                                    .map(i64::try_from)
   46         -
                                    .transpose()?,
   47         -
                            );
   48         -
                        }
   49         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   50         -
                    },
   51         -
                    other => {
   52         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   53         -
                            "expected object key or end object, found: {other:?}"
   54         -
                        )))
   55         -
                    }
   56         -
                }
   57         -
            }
   58         -
            Ok(Some(builder.build()))
   59         -
        }
   60         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   61         -
            "expected start object or null",
   62         -
        )),
   63         -
    }
   64         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_scheduled_query_list.rs

@@ -1,0 +37,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_scheduled_query_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::ScheduledQuery>>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
   12         -
            let mut items = Vec::new();
   13         -
            loop {
   14         -
                match tokens.peek() {
   15         -
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16         -
                        tokens.next().transpose().unwrap();
   17         -
                        break;
   18         -
                    }
   19         -
                    _ => {
   20         -
                        let value = crate::protocol_serde::shape_scheduled_query::de_scheduled_query(tokens, _value)?;
   21         -
                        if let Some(value) = value {
   22         -
                            items.push(value);
   23         -
                        } else {
   24         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   25         -
                                "dense list cannot contain null values",
   26         -
                            ));
   27         -
                        }
   28         -
                    }
   29         -
                }
   30         -
            }
   31         -
            Ok(Some(items))
   32         -
        }
   33         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   34         -
            "expected start array or null",
   35         -
        )),
   36         -
    }
   37         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_scheduled_query_run_summary.rs

@@ -1,0 +72,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_scheduled_query_run_summary<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::ScheduledQueryRunSummary>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   12         -
            #[allow(unused_mut)]
   13         -
            let mut builder = crate::types::builders::ScheduledQueryRunSummaryBuilder::default();
   14         -
            loop {
   15         -
                match tokens.next().transpose()? {
   16         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   17         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   18         -
                        "InvocationTime" => {
   19         -
                            builder = builder.set_invocation_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   20         -
                                tokens.next(),
   21         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   22         -
                            )?);
   23         -
                        }
   24         -
                        "TriggerTime" => {
   25         -
                            builder = builder.set_trigger_time(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   26         -
                                tokens.next(),
   27         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   28         -
                            )?);
   29         -
                        }
   30         -
                        "RunStatus" => {
   31         -
                            builder = builder.set_run_status(
   32         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   33         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::ScheduledQueryRunStatus::from(u.as_ref())))
   34         -
                                    .transpose()?,
   35         -
                            );
   36         -
                        }
   37         -
                        "ExecutionStats" => {
   38         -
                            builder = builder.set_execution_stats(crate::protocol_serde::shape_execution_stats::de_execution_stats(tokens, _value)?);
   39         -
                        }
   40         -
                        "QueryInsightsResponse" => {
   41         -
                            builder = builder.set_query_insights_response(
   42         -
                                crate::protocol_serde::shape_scheduled_query_insights_response::de_scheduled_query_insights_response(tokens, _value)?,
   43         -
                            );
   44         -
                        }
   45         -
                        "ErrorReportLocation" => {
   46         -
                            builder = builder.set_error_report_location(
   47         -
                                crate::protocol_serde::shape_error_report_location::de_error_report_location(tokens, _value)?,
   48         -
                            );
   49         -
                        }
   50         -
                        "FailureReason" => {
   51         -
                            builder = builder.set_failure_reason(
   52         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   53         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   54         -
                                    .transpose()?,
   55         -
                            );
   56         -
                        }
   57         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   58         -
                    },
   59         -
                    other => {
   60         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   61         -
                            "expected object key or end object, found: {other:?}"
   62         -
                        )))
   63         -
                    }
   64         -
                }
   65         -
            }
   66         -
            Ok(Some(builder.build()))
   67         -
        }
   68         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   69         -
            "expected start object or null",
   70         -
        )),
   71         -
    }
   72         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_scheduled_query_run_summary_list.rs

@@ -1,0 +37,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_scheduled_query_run_summary_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::ScheduledQueryRunSummary>>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
   12         -
            let mut items = Vec::new();
   13         -
            loop {
   14         -
                match tokens.peek() {
   15         -
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16         -
                        tokens.next().transpose().unwrap();
   17         -
                        break;
   18         -
                    }
   19         -
                    _ => {
   20         -
                        let value = crate::protocol_serde::shape_scheduled_query_run_summary::de_scheduled_query_run_summary(tokens, _value)?;
   21         -
                        if let Some(value) = value {
   22         -
                            items.push(value);
   23         -
                        } else {
   24         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   25         -
                                "dense list cannot contain null values",
   26         -
                            ));
   27         -
                        }
   28         -
                    }
   29         -
                }
   30         -
            }
   31         -
            Ok(Some(items))
   32         -
        }
   33         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   34         -
            "expected start array or null",
   35         -
        )),
   36         -
    }
   37         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_select_column.rs

@@ -1,0 +60,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_select_column<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::SelectColumn>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   12         -
            #[allow(unused_mut)]
   13         -
            let mut builder = crate::types::builders::SelectColumnBuilder::default();
   14         -
            loop {
   15         -
                match tokens.next().transpose()? {
   16         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   17         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   18         -
                        "Name" => {
   19         -
                            builder = builder.set_name(
   20         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   22         -
                                    .transpose()?,
   23         -
                            );
   24         -
                        }
   25         -
                        "Type" => {
   26         -
                            builder = builder.set_type(crate::protocol_serde::shape_type::de_type(tokens, _value)?);
   27         -
                        }
   28         -
                        "DatabaseName" => {
   29         -
                            builder = builder.set_database_name(
   30         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   31         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   32         -
                                    .transpose()?,
   33         -
                            );
   34         -
                        }
   35         -
                        "TableName" => {
   36         -
                            builder = builder.set_table_name(
   37         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   38         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   39         -
                                    .transpose()?,
   40         -
                            );
   41         -
                        }
   42         -
                        "Aliased" => {
   43         -
                            builder = builder.set_aliased(::aws_smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?);
   44         -
                        }
   45         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   46         -
                    },
   47         -
                    other => {
   48         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   49         -
                            "expected object key or end object, found: {other:?}"
   50         -
                        )))
   51         -
                    }
   52         -
                }
   53         -
            }
   54         -
            Ok(Some(builder.build()))
   55         -
        }
   56         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   57         -
            "expected start object or null",
   58         -
        )),
   59         -
    }
   60         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_select_column_list.rs

@@ -1,0 +37,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_select_column_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::SelectColumn>>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
   12         -
            let mut items = Vec::new();
   13         -
            loop {
   14         -
                match tokens.peek() {
   15         -
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16         -
                        tokens.next().transpose().unwrap();
   17         -
                        break;
   18         -
                    }
   19         -
                    _ => {
   20         -
                        let value = crate::protocol_serde::shape_select_column::de_select_column(tokens, _value)?;
   21         -
                        if let Some(value) = value {
   22         -
                            items.push(value);
   23         -
                        } else {
   24         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   25         -
                                "dense list cannot contain null values",
   26         -
                            ));
   27         -
                        }
   28         -
                    }
   29         -
                }
   30         -
            }
   31         -
            Ok(Some(items))
   32         -
        }
   33         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   34         -
            "expected start array or null",
   35         -
        )),
   36         -
    }
   37         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_service_quota_exceeded_exception.rs

@@ -1,0 +36,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_service_quota_exceeded_exception_json_err(
    3         -
    _value: &[u8],
    4         -
    mut builder: crate::types::error::builders::ServiceQuotaExceededExceptionBuilder,
    5         -
) -> ::std::result::Result<crate::types::error::builders::ServiceQuotaExceededExceptionBuilder, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
{
    7         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
    8         -
    let tokens = &mut tokens_owned;
    9         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
   10         -
    loop {
   11         -
        match tokens.next().transpose()? {
   12         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   13         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   14         -
                "Message" => {
   15         -
                    builder = builder.set_message(
   16         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   17         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   18         -
                            .transpose()?,
   19         -
                    );
   20         -
                }
   21         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   22         -
            },
   23         -
            other => {
   24         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   25         -
                    "expected object key or end object, found: {other:?}"
   26         -
                )))
   27         -
            }
   28         -
        }
   29         -
    }
   30         -
    if tokens.next().is_some() {
   31         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   32         -
            "found more JSON tokens after completing parsing",
   33         -
        ));
   34         -
    }
   35         -
    Ok(builder)
   36         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_sns_configuration.rs

@@ -1,0 +52,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_sns_configuration(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::SnsConfiguration,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    {
    7         -
        object.key("TopicArn").string(input.topic_arn.as_str());
    8         -
    }
    9         -
    Ok(())
   10         -
}
   11         -
   12         -
pub(crate) fn de_sns_configuration<'a, I>(
   13         -
    tokens: &mut ::std::iter::Peekable<I>,
   14         -
    _value: &'a [u8],
   15         -
) -> ::std::result::Result<Option<crate::types::SnsConfiguration>, ::aws_smithy_json::deserialize::error::DeserializeError>
   16         -
where
   17         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
   18         -
{
   19         -
    match tokens.next().transpose()? {
   20         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   21         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   22         -
            #[allow(unused_mut)]
   23         -
            let mut builder = crate::types::builders::SnsConfigurationBuilder::default();
   24         -
            loop {
   25         -
                match tokens.next().transpose()? {
   26         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   27         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   28         -
                        "TopicArn" => {
   29         -
                            builder = builder.set_topic_arn(
   30         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   31         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   32         -
                                    .transpose()?,
   33         -
                            );
   34         -
                        }
   35         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   36         -
                    },
   37         -
                    other => {
   38         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   39         -
                            "expected object key or end object, found: {other:?}"
   40         -
                        )))
   41         -
                    }
   42         -
                }
   43         -
            }
   44         -
            Ok(Some(crate::serde_util::sns_configuration_correct_errors(builder).build().map_err(
   45         -
                |err| ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err),
   46         -
            )?))
   47         -
        }
   48         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   49         -
            "expected start object or null",
   50         -
        )),
   51         -
    }
   52         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_tag.rs

@@ -1,0 +62,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_tag(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::Tag,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    {
    7         -
        object.key("Key").string(input.key.as_str());
    8         -
    }
    9         -
    {
   10         -
        object.key("Value").string(input.value.as_str());
   11         -
    }
   12         -
    Ok(())
   13         -
}
   14         -
   15         -
pub(crate) fn de_tag<'a, I>(
   16         -
    tokens: &mut ::std::iter::Peekable<I>,
   17         -
    _value: &'a [u8],
   18         -
) -> ::std::result::Result<Option<crate::types::Tag>, ::aws_smithy_json::deserialize::error::DeserializeError>
   19         -
where
   20         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
   21         -
{
   22         -
    match tokens.next().transpose()? {
   23         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   24         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   25         -
            #[allow(unused_mut)]
   26         -
            let mut builder = crate::types::builders::TagBuilder::default();
   27         -
            loop {
   28         -
                match tokens.next().transpose()? {
   29         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   30         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   31         -
                        "Key" => {
   32         -
                            builder = builder.set_key(
   33         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   34         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   35         -
                                    .transpose()?,
   36         -
                            );
   37         -
                        }
   38         -
                        "Value" => {
   39         -
                            builder = builder.set_value(
   40         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   41         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   42         -
                                    .transpose()?,
   43         -
                            );
   44         -
                        }
   45         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   46         -
                    },
   47         -
                    other => {
   48         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   49         -
                            "expected object key or end object, found: {other:?}"
   50         -
                        )))
   51         -
                    }
   52         -
                }
   53         -
            }
   54         -
            Ok(Some(crate::serde_util::tag_correct_errors(builder).build().map_err(|err| {
   55         -
                ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err)
   56         -
            })?))
   57         -
        }
   58         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   59         -
            "expected start object or null",
   60         -
        )),
   61         -
    }
   62         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_tag_list.rs

@@ -1,0 +37,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_tag_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::Tag>>, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
where
    7         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
    8         -
{
    9         -
    match tokens.next().transpose()? {
   10         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   11         -
        Some(::aws_smithy_json::deserialize::Token::StartArray { .. }) => {
   12         -
            let mut items = Vec::new();
   13         -
            loop {
   14         -
                match tokens.peek() {
   15         -
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16         -
                        tokens.next().transpose().unwrap();
   17         -
                        break;
   18         -
                    }
   19         -
                    _ => {
   20         -
                        let value = crate::protocol_serde::shape_tag::de_tag(tokens, _value)?;
   21         -
                        if let Some(value) = value {
   22         -
                            items.push(value);
   23         -
                        } else {
   24         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   25         -
                                "dense list cannot contain null values",
   26         -
                            ));
   27         -
                        }
   28         -
                    }
   29         -
                }
   30         -
            }
   31         -
            Ok(Some(items))
   32         -
        }
   33         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   34         -
            "expected start array or null",
   35         -
        )),
   36         -
    }
   37         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_tag_resource.rs

@@ -1,0 +124,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_tag_resource_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<crate::operation::tag_resource::TagResourceOutput, crate::operation::tag_resource::TagResourceError> {
    8         -
    #[allow(unused_mut)]
    9         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   10         -
        .map_err(crate::operation::tag_resource::TagResourceError::unhandled)?;
   11         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   12         -
    let generic = generic_builder.build();
   13         -
    let error_code = match generic.code() {
   14         -
        Some(code) => code,
   15         -
        None => return Err(crate::operation::tag_resource::TagResourceError::unhandled(generic)),
   16         -
    };
   17         -
   18         -
    let _error_message = generic.message().map(|msg| msg.to_owned());
   19         -
    Err(match error_code {
   20         -
        "InvalidEndpointException" => crate::operation::tag_resource::TagResourceError::InvalidEndpointException({
   21         -
            #[allow(unused_mut)]
   22         -
            let mut tmp = {
   23         -
                #[allow(unused_mut)]
   24         -
                let mut output = crate::types::error::builders::InvalidEndpointExceptionBuilder::default();
   25         -
                output = crate::protocol_serde::shape_invalid_endpoint_exception::de_invalid_endpoint_exception_json_err(_response_body, output)
   26         -
                    .map_err(crate::operation::tag_resource::TagResourceError::unhandled)?;
   27         -
                let output = output.meta(generic);
   28         -
                output.build()
   29         -
            };
   30         -
            if tmp.message.is_none() {
   31         -
                tmp.message = _error_message;
   32         -
            }
   33         -
            tmp
   34         -
        }),
   35         -
        "ResourceNotFoundException" => crate::operation::tag_resource::TagResourceError::ResourceNotFoundException({
   36         -
            #[allow(unused_mut)]
   37         -
            let mut tmp = {
   38         -
                #[allow(unused_mut)]
   39         -
                let mut output = crate::types::error::builders::ResourceNotFoundExceptionBuilder::default();
   40         -
                output = crate::protocol_serde::shape_resource_not_found_exception::de_resource_not_found_exception_json_err(_response_body, output)
   41         -
                    .map_err(crate::operation::tag_resource::TagResourceError::unhandled)?;
   42         -
                let output = output.meta(generic);
   43         -
                output.build()
   44         -
            };
   45         -
            if tmp.message.is_none() {
   46         -
                tmp.message = _error_message;
   47         -
            }
   48         -
            tmp
   49         -
        }),
   50         -
        "ServiceQuotaExceededException" => crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException({
   51         -
            #[allow(unused_mut)]
   52         -
            let mut tmp = {
   53         -
                #[allow(unused_mut)]
   54         -
                let mut output = crate::types::error::builders::ServiceQuotaExceededExceptionBuilder::default();
   55         -
                output = crate::protocol_serde::shape_service_quota_exceeded_exception::de_service_quota_exceeded_exception_json_err(
   56         -
                    _response_body,
   57         -
                    output,
   58         -
                )
   59         -
                .map_err(crate::operation::tag_resource::TagResourceError::unhandled)?;
   60         -
                let output = output.meta(generic);
   61         -
                output.build()
   62         -
            };
   63         -
            if tmp.message.is_none() {
   64         -
                tmp.message = _error_message;
   65         -
            }
   66         -
            tmp
   67         -
        }),
   68         -
        "ThrottlingException" => crate::operation::tag_resource::TagResourceError::ThrottlingException({
   69         -
            #[allow(unused_mut)]
   70         -
            let mut tmp = {
   71         -
                #[allow(unused_mut)]
   72         -
                let mut output = crate::types::error::builders::ThrottlingExceptionBuilder::default();
   73         -
                output = crate::protocol_serde::shape_throttling_exception::de_throttling_exception_json_err(_response_body, output)
   74         -
                    .map_err(crate::operation::tag_resource::TagResourceError::unhandled)?;
   75         -
                let output = output.meta(generic);
   76         -
                output.build()
   77         -
            };
   78         -
            if tmp.message.is_none() {
   79         -
                tmp.message = _error_message;
   80         -
            }
   81         -
            tmp
   82         -
        }),
   83         -
        "ValidationException" => crate::operation::tag_resource::TagResourceError::ValidationException({
   84         -
            #[allow(unused_mut)]
   85         -
            let mut tmp = {
   86         -
                #[allow(unused_mut)]
   87         -
                let mut output = crate::types::error::builders::ValidationExceptionBuilder::default();
   88         -
                output = crate::protocol_serde::shape_validation_exception::de_validation_exception_json_err(_response_body, output)
   89         -
                    .map_err(crate::operation::tag_resource::TagResourceError::unhandled)?;
   90         -
                let output = output.meta(generic);
   91         -
                output.build()
   92         -
            };
   93         -
            if tmp.message.is_none() {
   94         -
                tmp.message = _error_message;
   95         -
            }
   96         -
            tmp
   97         -
        }),
   98         -
        _ => crate::operation::tag_resource::TagResourceError::generic(generic),
   99         -
    })
  100         -
}
  101         -
  102         -
#[allow(clippy::unnecessary_wraps)]
  103         -
pub fn de_tag_resource_http_response(
  104         -
    _response_status: u16,
  105         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
  106         -
    _response_body: &[u8],
  107         -
) -> std::result::Result<crate::operation::tag_resource::TagResourceOutput, crate::operation::tag_resource::TagResourceError> {
  108         -
    Ok({
  109         -
        #[allow(unused_mut)]
  110         -
        let mut output = crate::operation::tag_resource::builders::TagResourceOutputBuilder::default();
  111         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
  112         -
        output.build()
  113         -
    })
  114         -
}
  115         -
  116         -
pub fn ser_tag_resource_input(
  117         -
    input: &crate::operation::tag_resource::TagResourceInput,
  118         -
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
  119         -
    let mut out = String::new();
  120         -
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
  121         -
    crate::protocol_serde::shape_tag_resource_input::ser_tag_resource_input_input(&mut object, input)?;
  122         -
    object.finish();
  123         -
    Ok(::aws_smithy_types::body::SdkBody::from(out))
  124         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_tag_resource_input.rs

@@ -1,0 +22,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_tag_resource_input_input(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::operation::tag_resource::TagResourceInput,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.resource_arn {
    7         -
        object.key("ResourceARN").string(var_1.as_str());
    8         -
    }
    9         -
    if let Some(var_2) = &input.tags {
   10         -
        let mut array_3 = object.key("Tags").start_array();
   11         -
        for item_4 in var_2 {
   12         -
            {
   13         -
                #[allow(unused_mut)]
   14         -
                let mut object_5 = array_3.value().start_object();
   15         -
                crate::protocol_serde::shape_tag::ser_tag(&mut object_5, item_4)?;
   16         -
                object_5.finish();
   17         -
            }
   18         -
        }
   19         -
        array_3.finish();
   20         -
    }
   21         -
    Ok(())
   22         -
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/protocol_serde/shape_target_configuration.rs

@@ -1,0 +51,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_target_configuration(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::TargetConfiguration,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.timestream_configuration {
    7         -
        #[allow(unused_mut)]
    8         -
        let mut object_2 = object.key("TimestreamConfiguration").start_object();
    9         -
        crate::protocol_serde::shape_timestream_configuration::ser_timestream_configuration(&mut object_2, var_1)?;
   10         -
        object_2.finish();
   11         -
    }
   12         -
    Ok(())
   13         -
}
   14         -
   15         -
pub(crate) fn de_target_configuration<'a, I>(
   16         -
    tokens: &mut ::std::iter::Peekable<I>,
   17         -
    _value: &'a [u8],
   18         -
) -> ::std::result::Result<Option<crate::types::TargetConfiguration>, ::aws_smithy_json::deserialize::error::DeserializeError>
   19         -
where
   20         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
   21         -
{
   22         -
    match tokens.next().transpose()? {
   23         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   24         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   25         -
            #[allow(unused_mut)]
   26         -
            let mut builder = crate::types::builders::TargetConfigurationBuilder::default();
   27         -
            loop {
   28         -
                match tokens.next().transpose()? {
   29         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   30         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   31         -
                        "TimestreamConfiguration" => {
   32         -
                            builder = builder.set_timestream_configuration(
   33         -
                                crate::protocol_serde::shape_timestream_configuration::de_timestream_configuration(tokens, _value)?,
   34         -
                            );
   35         -
                        }
   36         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   37         -
                    },
   38         -
                    other => {
   39         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   40         -
                            "expected object key or end object, found: {other:?}"
   41         -
                        )))
   42         -
                    }
   43         -
                }
   44         -
            }
   45         -
            Ok(Some(crate::serde_util::target_configuration_correct_errors(builder).build()))
   46         -
        }
   47         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   48         -
            "expected start object or null",
   49         -
        )),
   50         -
    }
   51         -
}