AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045

Files changed:

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_environment_error.rs

@@ -1,0 +47,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_environment_error<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::EnvironmentError>, ::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::EnvironmentErrorBuilder::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         -
                        "ErrorCode" => {
   19         -
                            builder = builder.set_error_code(
   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         -
                        "Message" => {
   26         -
                            builder = builder.set_message(
   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         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   33         -
                    },
   34         -
                    other => {
   35         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   36         -
                            "expected object key or end object, found: {other:?}"
   37         -
                        )))
   38         -
                    }
   39         -
                }
   40         -
            }
   41         -
            Ok(Some(builder.build()))
   42         -
        }
   43         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   44         -
            "expected start object or null",
   45         -
        )),
   46         -
    }
   47         -
}

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_environment_response.rs

@@ -1,0 +41,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_environment_response<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::EnvironmentResponse>, ::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::EnvironmentResponseBuilder::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         -
                        "Variables" => {
   19         -
                            builder = builder.set_variables(crate::protocol_serde::shape_environment_variables::de_environment_variables(
   20         -
                                tokens, _value,
   21         -
                            )?);
   22         -
                        }
   23         -
                        "Error" => {
   24         -
                            builder = builder.set_error(crate::protocol_serde::shape_environment_error::de_environment_error(tokens, _value)?);
   25         -
                        }
   26         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   27         -
                    },
   28         -
                    other => {
   29         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   30         -
                            "expected object key or end object, found: {other:?}"
   31         -
                        )))
   32         -
                    }
   33         -
                }
   34         -
            }
   35         -
            Ok(Some(builder.build()))
   36         -
        }
   37         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   38         -
            "expected start object or null",
   39         -
        )),
   40         -
    }
   41         -
}

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_environment_variables.rs

@@ -1,0 +48,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_environment_variables<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<
    6         -
    Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    7         -
    ::aws_smithy_json::deserialize::error::DeserializeError,
    8         -
>
    9         -
where
   10         -
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
   11         -
{
   12         -
    match tokens.next().transpose()? {
   13         -
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   14         -
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   15         -
            let mut map = ::std::collections::HashMap::new();
   16         -
            loop {
   17         -
                match tokens.next().transpose()? {
   18         -
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   19         -
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
   20         -
                        let key = key.to_unescaped().map(|u| u.into_owned())?;
   21         -
                        let value = ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   22         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   23         -
                            .transpose()?;
   24         -
                        match value {
   25         -
                            Some(value) => {
   26         -
                                map.insert(key, value);
   27         -
                            }
   28         -
                            None => {
   29         -
                                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   30         -
                                    "dense map cannot contain null values",
   31         -
                                ))
   32         -
                            }
   33         -
                        }
   34         -
                    }
   35         -
                    other => {
   36         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   37         -
                            "expected object key or end object, found: {other:?}"
   38         -
                        )))
   39         -
                    }
   40         -
                }
   41         -
            }
   42         -
            Ok(Some(map))
   43         -
        }
   44         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   45         -
            "expected start object or null",
   46         -
        )),
   47         -
    }
   48         -
}

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_ephemeral_storage.rs

@@ -1,0 +55,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_ephemeral_storage<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::EphemeralStorage>, ::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::EphemeralStorageBuilder::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         -
                        "Size" => {
   19         -
                            builder = builder.set_size(
   20         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   21         -
                                    .map(i32::try_from)
   22         -
                                    .transpose()?,
   23         -
                            );
   24         -
                        }
   25         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   26         -
                    },
   27         -
                    other => {
   28         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   29         -
                            "expected object key or end object, found: {other:?}"
   30         -
                        )))
   31         -
                    }
   32         -
                }
   33         -
            }
   34         -
            Ok(Some(crate::serde_util::ephemeral_storage_correct_errors(builder).build().map_err(
   35         -
                |err| ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err),
   36         -
            )?))
   37         -
        }
   38         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   39         -
            "expected start object or null",
   40         -
        )),
   41         -
    }
   42         -
}
   43         -
   44         -
pub fn ser_ephemeral_storage(
   45         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
   46         -
    input: &crate::types::EphemeralStorage,
   47         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
   48         -
    {
   49         -
        object.key("Size").number(
   50         -
            #[allow(clippy::useless_conversion)]
   51         -
            ::aws_smithy_types::Number::NegInt((input.size).into()),
   52         -
        );
   53         -
    }
   54         -
    Ok(())
   55         -
}

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_event_source_mapping_configuration.rs

@@ -1,0 +221,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_event_source_mapping_configuration<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::EventSourceMappingConfiguration>, ::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::EventSourceMappingConfigurationBuilder::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         -
                        "UUID" => {
   19         -
                            builder = builder.set_uuid(
   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         -
                        "StartingPosition" => {
   26         -
                            builder = builder.set_starting_position(
   27         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   28         -
                                    .map(|s| s.to_unescaped().map(|u| crate::types::EventSourcePosition::from(u.as_ref())))
   29         -
                                    .transpose()?,
   30         -
                            );
   31         -
                        }
   32         -
                        "StartingPositionTimestamp" => {
   33         -
                            builder = builder.set_starting_position_timestamp(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   34         -
                                tokens.next(),
   35         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   36         -
                            )?);
   37         -
                        }
   38         -
                        "BatchSize" => {
   39         -
                            builder = builder.set_batch_size(
   40         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   41         -
                                    .map(i32::try_from)
   42         -
                                    .transpose()?,
   43         -
                            );
   44         -
                        }
   45         -
                        "MaximumBatchingWindowInSeconds" => {
   46         -
                            builder = builder.set_maximum_batching_window_in_seconds(
   47         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   48         -
                                    .map(i32::try_from)
   49         -
                                    .transpose()?,
   50         -
                            );
   51         -
                        }
   52         -
                        "ParallelizationFactor" => {
   53         -
                            builder = builder.set_parallelization_factor(
   54         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
   55         -
                                    .map(i32::try_from)
   56         -
                                    .transpose()?,
   57         -
                            );
   58         -
                        }
   59         -
                        "EventSourceArn" => {
   60         -
                            builder = builder.set_event_source_arn(
   61         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   62         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   63         -
                                    .transpose()?,
   64         -
                            );
   65         -
                        }
   66         -
                        "FilterCriteria" => {
   67         -
                            builder = builder.set_filter_criteria(crate::protocol_serde::shape_filter_criteria::de_filter_criteria(tokens, _value)?);
   68         -
                        }
   69         -
                        "FunctionArn" => {
   70         -
                            builder = builder.set_function_arn(
   71         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   72         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   73         -
                                    .transpose()?,
   74         -
                            );
   75         -
                        }
   76         -
                        "LastModified" => {
   77         -
                            builder = builder.set_last_modified(::aws_smithy_json::deserialize::token::expect_timestamp_or_null(
   78         -
                                tokens.next(),
   79         -
                                ::aws_smithy_types::date_time::Format::EpochSeconds,
   80         -
                            )?);
   81         -
                        }
   82         -
                        "LastProcessingResult" => {
   83         -
                            builder = builder.set_last_processing_result(
   84         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   85         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   86         -
                                    .transpose()?,
   87         -
                            );
   88         -
                        }
   89         -
                        "State" => {
   90         -
                            builder = builder.set_state(
   91         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   92         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   93         -
                                    .transpose()?,
   94         -
                            );
   95         -
                        }
   96         -
                        "StateTransitionReason" => {
   97         -
                            builder = builder.set_state_transition_reason(
   98         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   99         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  100         -
                                    .transpose()?,
  101         -
                            );
  102         -
                        }
  103         -
                        "DestinationConfig" => {
  104         -
                            builder = builder
  105         -
                                .set_destination_config(crate::protocol_serde::shape_destination_config::de_destination_config(tokens, _value)?);
  106         -
                        }
  107         -
                        "Topics" => {
  108         -
                            builder = builder.set_topics(crate::protocol_serde::shape_topics::de_topics(tokens, _value)?);
  109         -
                        }
  110         -
                        "Queues" => {
  111         -
                            builder = builder.set_queues(crate::protocol_serde::shape_queues::de_queues(tokens, _value)?);
  112         -
                        }
  113         -
                        "SourceAccessConfigurations" => {
  114         -
                            builder = builder.set_source_access_configurations(
  115         -
                                crate::protocol_serde::shape_source_access_configurations::de_source_access_configurations(tokens, _value)?,
  116         -
                            );
  117         -
                        }
  118         -
                        "SelfManagedEventSource" => {
  119         -
                            builder = builder.set_self_managed_event_source(
  120         -
                                crate::protocol_serde::shape_self_managed_event_source::de_self_managed_event_source(tokens, _value)?,
  121         -
                            );
  122         -
                        }
  123         -
                        "MaximumRecordAgeInSeconds" => {
  124         -
                            builder = builder.set_maximum_record_age_in_seconds(
  125         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
  126         -
                                    .map(i32::try_from)
  127         -
                                    .transpose()?,
  128         -
                            );
  129         -
                        }
  130         -
                        "BisectBatchOnFunctionError" => {
  131         -
                            builder = builder
  132         -
                                .set_bisect_batch_on_function_error(::aws_smithy_json::deserialize::token::expect_bool_or_null(tokens.next())?);
  133         -
                        }
  134         -
                        "MaximumRetryAttempts" => {
  135         -
                            builder = builder.set_maximum_retry_attempts(
  136         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
  137         -
                                    .map(i32::try_from)
  138         -
                                    .transpose()?,
  139         -
                            );
  140         -
                        }
  141         -
                        "TumblingWindowInSeconds" => {
  142         -
                            builder = builder.set_tumbling_window_in_seconds(
  143         -
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
  144         -
                                    .map(i32::try_from)
  145         -
                                    .transpose()?,
  146         -
                            );
  147         -
                        }
  148         -
                        "FunctionResponseTypes" => {
  149         -
                            builder = builder.set_function_response_types(
  150         -
                                crate::protocol_serde::shape_function_response_type_list::de_function_response_type_list(tokens, _value)?,
  151         -
                            );
  152         -
                        }
  153         -
                        "AmazonManagedKafkaEventSourceConfig" => {
  154         -
                            builder = builder.set_amazon_managed_kafka_event_source_config(
  155         -
                                crate::protocol_serde::shape_amazon_managed_kafka_event_source_config::de_amazon_managed_kafka_event_source_config(
  156         -
                                    tokens, _value,
  157         -
                                )?,
  158         -
                            );
  159         -
                        }
  160         -
                        "SelfManagedKafkaEventSourceConfig" => {
  161         -
                            builder = builder.set_self_managed_kafka_event_source_config(
  162         -
                                crate::protocol_serde::shape_self_managed_kafka_event_source_config::de_self_managed_kafka_event_source_config(
  163         -
                                    tokens, _value,
  164         -
                                )?,
  165         -
                            );
  166         -
                        }
  167         -
                        "ScalingConfig" => {
  168         -
                            builder = builder.set_scaling_config(crate::protocol_serde::shape_scaling_config::de_scaling_config(tokens, _value)?);
  169         -
                        }
  170         -
                        "DocumentDBEventSourceConfig" => {
  171         -
                            builder = builder.set_document_db_event_source_config(
  172         -
                                crate::protocol_serde::shape_document_db_event_source_config::de_document_db_event_source_config(tokens, _value)?,
  173         -
                            );
  174         -
                        }
  175         -
                        "KMSKeyArn" => {
  176         -
                            builder = builder.set_kms_key_arn(
  177         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  178         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  179         -
                                    .transpose()?,
  180         -
                            );
  181         -
                        }
  182         -
                        "FilterCriteriaError" => {
  183         -
                            builder = builder.set_filter_criteria_error(
  184         -
                                crate::protocol_serde::shape_filter_criteria_error::de_filter_criteria_error(tokens, _value)?,
  185         -
                            );
  186         -
                        }
  187         -
                        "EventSourceMappingArn" => {
  188         -
                            builder = builder.set_event_source_mapping_arn(
  189         -
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
  190         -
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
  191         -
                                    .transpose()?,
  192         -
                            );
  193         -
                        }
  194         -
                        "MetricsConfig" => {
  195         -
                            builder = builder.set_metrics_config(
  196         -
                                crate::protocol_serde::shape_event_source_mapping_metrics_config::de_event_source_mapping_metrics_config(
  197         -
                                    tokens, _value,
  198         -
                                )?,
  199         -
                            );
  200         -
                        }
  201         -
                        "ProvisionedPollerConfig" => {
  202         -
                            builder = builder.set_provisioned_poller_config(
  203         -
                                crate::protocol_serde::shape_provisioned_poller_config::de_provisioned_poller_config(tokens, _value)?,
  204         -
                            );
  205         -
                        }
  206         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
  207         -
                    },
  208         -
                    other => {
  209         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
  210         -
                            "expected object key or end object, found: {other:?}"
  211         -
                        )))
  212         -
                    }
  213         -
                }
  214         -
            }
  215         -
            Ok(Some(builder.build()))
  216         -
        }
  217         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
  218         -
            "expected start object or null",
  219         -
        )),
  220         -
    }
  221         -
}

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_event_source_mapping_metric_list.rs

@@ -1,0 +39,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_event_source_mapping_metric_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::EventSourceMappingMetric>>, ::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 = ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21         -
                            .map(|s| s.to_unescaped().map(|u| crate::types::EventSourceMappingMetric::from(u.as_ref())))
   22         -
                            .transpose()?;
   23         -
                        if let Some(value) = value {
   24         -
                            items.push(value);
   25         -
                        } else {
   26         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   27         -
                                "dense list cannot contain null values",
   28         -
                            ));
   29         -
                        }
   30         -
                    }
   31         -
                }
   32         -
            }
   33         -
            Ok(Some(items))
   34         -
        }
   35         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   36         -
            "expected start array or null",
   37         -
        )),
   38         -
    }
   39         -
}

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_event_source_mapping_metrics_config.rs

@@ -1,0 +54,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_event_source_mapping_metrics_config<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::EventSourceMappingMetricsConfig>, ::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::EventSourceMappingMetricsConfigBuilder::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         -
                        "Metrics" => {
   19         -
                            builder = builder.set_metrics(
   20         -
                                crate::protocol_serde::shape_event_source_mapping_metric_list::de_event_source_mapping_metric_list(tokens, _value)?,
   21         -
                            );
   22         -
                        }
   23         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   24         -
                    },
   25         -
                    other => {
   26         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   27         -
                            "expected object key or end object, found: {other:?}"
   28         -
                        )))
   29         -
                    }
   30         -
                }
   31         -
            }
   32         -
            Ok(Some(builder.build()))
   33         -
        }
   34         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   35         -
            "expected start object or null",
   36         -
        )),
   37         -
    }
   38         -
}
   39         -
   40         -
pub fn ser_event_source_mapping_metrics_config(
   41         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
   42         -
    input: &crate::types::EventSourceMappingMetricsConfig,
   43         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
   44         -
    if let Some(var_1) = &input.metrics {
   45         -
        let mut array_2 = object.key("Metrics").start_array();
   46         -
        for item_3 in var_1 {
   47         -
            {
   48         -
                array_2.value().string(item_3.as_str());
   49         -
            }
   50         -
        }
   51         -
        array_2.finish();
   52         -
    }
   53         -
    Ok(())
   54         -
}

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_event_source_mappings_list.rs

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

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_file_system_config.rs

@@ -1,0 +62,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_file_system_config(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::FileSystemConfig,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    {
    7         -
        object.key("Arn").string(input.arn.as_str());
    8         -
    }
    9         -
    {
   10         -
        object.key("LocalMountPath").string(input.local_mount_path.as_str());
   11         -
    }
   12         -
    Ok(())
   13         -
}
   14         -
   15         -
pub(crate) fn de_file_system_config<'a, I>(
   16         -
    tokens: &mut ::std::iter::Peekable<I>,
   17         -
    _value: &'a [u8],
   18         -
) -> ::std::result::Result<Option<crate::types::FileSystemConfig>, ::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::FileSystemConfigBuilder::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         -
                        "Arn" => {
   32         -
                            builder = builder.set_arn(
   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         -
                        "LocalMountPath" => {
   39         -
                            builder = builder.set_local_mount_path(
   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::file_system_config_correct_errors(builder).build().map_err(
   55         -
                |err| ::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/lambda/src/protocol_serde/shape_file_system_config_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_file_system_config_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::FileSystemConfig>>, ::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_file_system_config::de_file_system_config(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/lambda/src/protocol_serde/shape_filter.rs

@@ -1,0 +50,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_filter(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::Filter,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.pattern {
    7         -
        object.key("Pattern").string(var_1.as_str());
    8         -
    }
    9         -
    Ok(())
   10         -
}
   11         -
   12         -
pub(crate) fn de_filter<'a, I>(
   13         -
    tokens: &mut ::std::iter::Peekable<I>,
   14         -
    _value: &'a [u8],
   15         -
) -> ::std::result::Result<Option<crate::types::Filter>, ::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::FilterBuilder::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         -
                        "Pattern" => {
   29         -
                            builder = builder.set_pattern(
   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(builder.build()))
   45         -
        }
   46         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   47         -
            "expected start object or null",
   48         -
        )),
   49         -
    }
   50         -
}

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_filter_criteria.rs

@@ -1,0 +55,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_filter_criteria<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::FilterCriteria>, ::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::FilterCriteriaBuilder::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         -
                        "Filters" => {
   19         -
                            builder = builder.set_filters(crate::protocol_serde::shape_filter_list::de_filter_list(tokens, _value)?);
   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         -
            Ok(Some(builder.build()))
   31         -
        }
   32         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   33         -
            "expected start object or null",
   34         -
        )),
   35         -
    }
   36         -
}
   37         -
   38         -
pub fn ser_filter_criteria(
   39         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
   40         -
    input: &crate::types::FilterCriteria,
   41         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
   42         -
    if let Some(var_1) = &input.filters {
   43         -
        let mut array_2 = object.key("Filters").start_array();
   44         -
        for item_3 in var_1 {
   45         -
            {
   46         -
                #[allow(unused_mut)]
   47         -
                let mut object_4 = array_2.value().start_object();
   48         -
                crate::protocol_serde::shape_filter::ser_filter(&mut object_4, item_3)?;
   49         -
                object_4.finish();
   50         -
            }
   51         -
        }
   52         -
        array_2.finish();
   53         -
    }
   54         -
    Ok(())
   55         -
}

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_filter_criteria_error.rs

@@ -1,0 +47,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_filter_criteria_error<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<crate::types::FilterCriteriaError>, ::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::FilterCriteriaErrorBuilder::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         -
                        "ErrorCode" => {
   19         -
                            builder = builder.set_error_code(
   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         -
                        "Message" => {
   26         -
                            builder = builder.set_message(
   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         -
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   33         -
                    },
   34         -
                    other => {
   35         -
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   36         -
                            "expected object key or end object, found: {other:?}"
   37         -
                        )))
   38         -
                    }
   39         -
                }
   40         -
            }
   41         -
            Ok(Some(builder.build()))
   42         -
        }
   43         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   44         -
            "expected start object or null",
   45         -
        )),
   46         -
    }
   47         -
}

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_filter_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_filter_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<crate::types::Filter>>, ::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_filter::de_filter(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/lambda/src/protocol_serde/shape_function_arn_list.rs

@@ -1,0 +39,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_function_arn_list<'a, I>(
    3         -
    tokens: &mut ::std::iter::Peekable<I>,
    4         -
    _value: &'a [u8],
    5         -
) -> ::std::result::Result<Option<::std::vec::Vec<::std::string::String>>, ::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 = ::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         -
                        if let Some(value) = value {
   24         -
                            items.push(value);
   25         -
                        } else {
   26         -
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   27         -
                                "dense list cannot contain null values",
   28         -
                            ));
   29         -
                        }
   30         -
                    }
   31         -
                }
   32         -
            }
   33         -
            Ok(Some(items))
   34         -
        }
   35         -
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   36         -
            "expected start array or null",
   37         -
        )),
   38         -
    }
   39         -
}

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_function_code.rs

@@ -1,0 +25,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_function_code(
    3         -
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4         -
    input: &crate::types::FunctionCode,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    if let Some(var_1) = &input.zip_file {
    7         -
        object.key("ZipFile").string_unchecked(&::aws_smithy_types::base64::encode(var_1));
    8         -
    }
    9         -
    if let Some(var_2) = &input.s3_bucket {
   10         -
        object.key("S3Bucket").string(var_2.as_str());
   11         -
    }
   12         -
    if let Some(var_3) = &input.s3_key {
   13         -
        object.key("S3Key").string(var_3.as_str());
   14         -
    }
   15         -
    if let Some(var_4) = &input.s3_object_version {
   16         -
        object.key("S3ObjectVersion").string(var_4.as_str());
   17         -
    }
   18         -
    if let Some(var_5) = &input.image_uri {
   19         -
        object.key("ImageUri").string(var_5.as_str());
   20         -
    }
   21         -
    if let Some(var_6) = &input.source_kms_key_arn {
   22         -
        object.key("SourceKMSKeyArn").string(var_6.as_str());
   23         -
    }
   24         -
    Ok(())
   25         -
}