AWS SDK

AWS SDK

rev. eb19c4c7998eaae1210cb747286b497c3425236c

Files changed:

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/protocol_serde.rs

@@ -0,1 +0,86 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) fn type_erase_result<O, E>(
           3  +
    result: ::std::result::Result<O, E>,
           4  +
) -> ::std::result::Result<
           5  +
    ::aws_smithy_runtime_api::client::interceptors::context::Output,
           6  +
    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
           7  +
>
           8  +
where
           9  +
    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
          10  +
    E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
          11  +
{
          12  +
    result
          13  +
        .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
          14  +
        .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
          15  +
        .map_err(::std::convert::Into::into)
          16  +
}
          17  +
          18  +
pub fn parse_http_error_metadata(
          19  +
    _response_status: u16,
          20  +
    response_headers: &::aws_smithy_runtime_api::http::Headers,
          21  +
    response_body: &[u8],
          22  +
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
          23  +
    crate::json_errors::parse_error_metadata(response_body, response_headers)
          24  +
}
          25  +
          26  +
pub(crate) mod shape_send_command;
          27  +
          28  +
pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
          29  +
    if data.is_empty() {
          30  +
        b"{}"
          31  +
    } else {
          32  +
        data
          33  +
    }
          34  +
}
          35  +
          36  +
pub(crate) mod shape_bad_request_exception;
          37  +
          38  +
pub(crate) mod shape_capacity_exceeded_exception;
          39  +
          40  +
pub(crate) mod shape_invalid_session_exception;
          41  +
          42  +
pub(crate) mod shape_limit_exceeded_exception;
          43  +
          44  +
pub(crate) mod shape_occ_conflict_exception;
          45  +
          46  +
pub(crate) mod shape_rate_exceeded_exception;
          47  +
          48  +
pub(crate) mod shape_send_command_input;
          49  +
          50  +
pub(crate) mod shape_abort_transaction_request;
          51  +
          52  +
pub(crate) mod shape_abort_transaction_result;
          53  +
          54  +
pub(crate) mod shape_commit_transaction_request;
          55  +
          56  +
pub(crate) mod shape_commit_transaction_result;
          57  +
          58  +
pub(crate) mod shape_end_session_request;
          59  +
          60  +
pub(crate) mod shape_end_session_result;
          61  +
          62  +
pub(crate) mod shape_execute_statement_request;
          63  +
          64  +
pub(crate) mod shape_execute_statement_result;
          65  +
          66  +
pub(crate) mod shape_fetch_page_request;
          67  +
          68  +
pub(crate) mod shape_fetch_page_result;
          69  +
          70  +
pub(crate) mod shape_start_session_request;
          71  +
          72  +
pub(crate) mod shape_start_session_result;
          73  +
          74  +
pub(crate) mod shape_start_transaction_request;
          75  +
          76  +
pub(crate) mod shape_start_transaction_result;
          77  +
          78  +
pub(crate) mod shape_io_usage;
          79  +
          80  +
pub(crate) mod shape_page;
          81  +
          82  +
pub(crate) mod shape_timing_information;
          83  +
          84  +
pub(crate) mod shape_value_holder;
          85  +
          86  +
pub(crate) mod shape_value_holders;

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/protocol_serde/shape_abort_transaction_request.rs

@@ -0,1 +0,7 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub fn ser_abort_transaction_request(
           3  +
    #[allow(unused_variables)] object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
           4  +
    #[allow(unused_variables)] input: &crate::types::AbortTransactionRequest,
           5  +
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           6  +
    Ok(())
           7  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/protocol_serde/shape_abort_transaction_result.rs

@@ -0,1 +0,35 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) fn de_abort_transaction_result<'a, I>(
           3  +
    tokens: &mut ::std::iter::Peekable<I>,
           4  +
) -> ::std::result::Result<Option<crate::types::AbortTransactionResult>, ::aws_smithy_json::deserialize::error::DeserializeError>
           5  +
where
           6  +
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
           7  +
{
           8  +
    match tokens.next().transpose()? {
           9  +
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
          10  +
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
          11  +
            #[allow(unused_mut)]
          12  +
            let mut builder = crate::types::builders::AbortTransactionResultBuilder::default();
          13  +
            loop {
          14  +
                match tokens.next().transpose()? {
          15  +
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          16  +
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
          17  +
                        "TimingInformation" => {
          18  +
                            builder = builder.set_timing_information(crate::protocol_serde::shape_timing_information::de_timing_information(tokens)?);
          19  +
                        }
          20  +
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
          21  +
                    },
          22  +
                    other => {
          23  +
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
          24  +
                            "expected object key or end object, found: {other:?}"
          25  +
                        )))
          26  +
                    }
          27  +
                }
          28  +
            }
          29  +
            Ok(Some(builder.build()))
          30  +
        }
          31  +
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          32  +
            "expected start object or null",
          33  +
        )),
          34  +
    }
          35  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/protocol_serde/shape_bad_request_exception.rs

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

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/protocol_serde/shape_capacity_exceeded_exception.rs

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

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/protocol_serde/shape_commit_transaction_request.rs

@@ -0,1 +0,15 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub fn ser_commit_transaction_request(
           3  +
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
           4  +
    input: &crate::types::CommitTransactionRequest,
           5  +
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           6  +
    {
           7  +
        object.key("TransactionId").string(input.transaction_id.as_str());
           8  +
    }
           9  +
    {
          10  +
        object
          11  +
            .key("CommitDigest")
          12  +
            .string_unchecked(&::aws_smithy_types::base64::encode(&input.commit_digest));
          13  +
    }
          14  +
    Ok(())
          15  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/protocol_serde/shape_commit_transaction_result.rs

@@ -0,1 +0,48 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) fn de_commit_transaction_result<'a, I>(
           3  +
    tokens: &mut ::std::iter::Peekable<I>,
           4  +
) -> ::std::result::Result<Option<crate::types::CommitTransactionResult>, ::aws_smithy_json::deserialize::error::DeserializeError>
           5  +
where
           6  +
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
           7  +
{
           8  +
    match tokens.next().transpose()? {
           9  +
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
          10  +
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
          11  +
            #[allow(unused_mut)]
          12  +
            let mut builder = crate::types::builders::CommitTransactionResultBuilder::default();
          13  +
            loop {
          14  +
                match tokens.next().transpose()? {
          15  +
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          16  +
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
          17  +
                        "TransactionId" => {
          18  +
                            builder = builder.set_transaction_id(
          19  +
                                ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
          20  +
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
          21  +
                                    .transpose()?,
          22  +
                            );
          23  +
                        }
          24  +
                        "CommitDigest" => {
          25  +
                            builder = builder.set_commit_digest(::aws_smithy_json::deserialize::token::expect_blob_or_null(tokens.next())?);
          26  +
                        }
          27  +
                        "TimingInformation" => {
          28  +
                            builder = builder.set_timing_information(crate::protocol_serde::shape_timing_information::de_timing_information(tokens)?);
          29  +
                        }
          30  +
                        "ConsumedIOs" => {
          31  +
                            builder = builder.set_consumed_ios(crate::protocol_serde::shape_io_usage::de_io_usage(tokens)?);
          32  +
                        }
          33  +
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
          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(builder.build()))
          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/qldbsession/src/protocol_serde/shape_end_session_request.rs

@@ -0,1 +0,7 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub fn ser_end_session_request(
           3  +
    #[allow(unused_variables)] object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
           4  +
    #[allow(unused_variables)] input: &crate::types::EndSessionRequest,
           5  +
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           6  +
    Ok(())
           7  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/protocol_serde/shape_end_session_result.rs

@@ -0,1 +0,35 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) fn de_end_session_result<'a, I>(
           3  +
    tokens: &mut ::std::iter::Peekable<I>,
           4  +
) -> ::std::result::Result<Option<crate::types::EndSessionResult>, ::aws_smithy_json::deserialize::error::DeserializeError>
           5  +
where
           6  +
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
           7  +
{
           8  +
    match tokens.next().transpose()? {
           9  +
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
          10  +
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
          11  +
            #[allow(unused_mut)]
          12  +
            let mut builder = crate::types::builders::EndSessionResultBuilder::default();
          13  +
            loop {
          14  +
                match tokens.next().transpose()? {
          15  +
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          16  +
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
          17  +
                        "TimingInformation" => {
          18  +
                            builder = builder.set_timing_information(crate::protocol_serde::shape_timing_information::de_timing_information(tokens)?);
          19  +
                        }
          20  +
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
          21  +
                    },
          22  +
                    other => {
          23  +
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
          24  +
                            "expected object key or end object, found: {other:?}"
          25  +
                        )))
          26  +
                    }
          27  +
                }
          28  +
            }
          29  +
            Ok(Some(builder.build()))
          30  +
        }
          31  +
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          32  +
            "expected start object or null",
          33  +
        )),
          34  +
    }
          35  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/protocol_serde/shape_execute_statement_request.rs

@@ -0,1 +0,25 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub fn ser_execute_statement_request(
           3  +
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
           4  +
    input: &crate::types::ExecuteStatementRequest,
           5  +
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           6  +
    {
           7  +
        object.key("TransactionId").string(input.transaction_id.as_str());
           8  +
    }
           9  +
    {
          10  +
        object.key("Statement").string(input.statement.as_str());
          11  +
    }
          12  +
    if let Some(var_1) = &input.parameters {
          13  +
        let mut array_2 = object.key("Parameters").start_array();
          14  +
        for item_3 in var_1 {
          15  +
            {
          16  +
                #[allow(unused_mut)]
          17  +
                let mut object_4 = array_2.value().start_object();
          18  +
                crate::protocol_serde::shape_value_holder::ser_value_holder(&mut object_4, item_3)?;
          19  +
                object_4.finish();
          20  +
            }
          21  +
        }
          22  +
        array_2.finish();
          23  +
    }
          24  +
    Ok(())
          25  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/protocol_serde/shape_execute_statement_result.rs

@@ -0,1 +0,41 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) fn de_execute_statement_result<'a, I>(
           3  +
    tokens: &mut ::std::iter::Peekable<I>,
           4  +
) -> ::std::result::Result<Option<crate::types::ExecuteStatementResult>, ::aws_smithy_json::deserialize::error::DeserializeError>
           5  +
where
           6  +
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
           7  +
{
           8  +
    match tokens.next().transpose()? {
           9  +
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
          10  +
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
          11  +
            #[allow(unused_mut)]
          12  +
            let mut builder = crate::types::builders::ExecuteStatementResultBuilder::default();
          13  +
            loop {
          14  +
                match tokens.next().transpose()? {
          15  +
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          16  +
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
          17  +
                        "FirstPage" => {
          18  +
                            builder = builder.set_first_page(crate::protocol_serde::shape_page::de_page(tokens)?);
          19  +
                        }
          20  +
                        "TimingInformation" => {
          21  +
                            builder = builder.set_timing_information(crate::protocol_serde::shape_timing_information::de_timing_information(tokens)?);
          22  +
                        }
          23  +
                        "ConsumedIOs" => {
          24  +
                            builder = builder.set_consumed_ios(crate::protocol_serde::shape_io_usage::de_io_usage(tokens)?);
          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/qldbsession/src/protocol_serde/shape_fetch_page_request.rs

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

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/protocol_serde/shape_fetch_page_result.rs

@@ -0,1 +0,41 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) fn de_fetch_page_result<'a, I>(
           3  +
    tokens: &mut ::std::iter::Peekable<I>,
           4  +
) -> ::std::result::Result<Option<crate::types::FetchPageResult>, ::aws_smithy_json::deserialize::error::DeserializeError>
           5  +
where
           6  +
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
           7  +
{
           8  +
    match tokens.next().transpose()? {
           9  +
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
          10  +
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
          11  +
            #[allow(unused_mut)]
          12  +
            let mut builder = crate::types::builders::FetchPageResultBuilder::default();
          13  +
            loop {
          14  +
                match tokens.next().transpose()? {
          15  +
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          16  +
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
          17  +
                        "Page" => {
          18  +
                            builder = builder.set_page(crate::protocol_serde::shape_page::de_page(tokens)?);
          19  +
                        }
          20  +
                        "TimingInformation" => {
          21  +
                            builder = builder.set_timing_information(crate::protocol_serde::shape_timing_information::de_timing_information(tokens)?);
          22  +
                        }
          23  +
                        "ConsumedIOs" => {
          24  +
                            builder = builder.set_consumed_ios(crate::protocol_serde::shape_io_usage::de_io_usage(tokens)?);
          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/qldbsession/src/protocol_serde/shape_invalid_session_exception.rs

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

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/protocol_serde/shape_io_usage.rs

@@ -0,1 +0,46 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) fn de_io_usage<'a, I>(
           3  +
    tokens: &mut ::std::iter::Peekable<I>,
           4  +
) -> ::std::result::Result<Option<crate::types::IoUsage>, ::aws_smithy_json::deserialize::error::DeserializeError>
           5  +
where
           6  +
    I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
           7  +
{
           8  +
    match tokens.next().transpose()? {
           9  +
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
          10  +
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
          11  +
            #[allow(unused_mut)]
          12  +
            let mut builder = crate::types::builders::IoUsageBuilder::default();
          13  +
            loop {
          14  +
                match tokens.next().transpose()? {
          15  +
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
          16  +
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
          17  +
                        "ReadIOs" => {
          18  +
                            builder = builder.set_read_ios(
          19  +
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
          20  +
                                    .map(i64::try_from)
          21  +
                                    .transpose()?,
          22  +
                            );
          23  +
                        }
          24  +
                        "WriteIOs" => {
          25  +
                            builder = builder.set_write_ios(
          26  +
                                ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())?
          27  +
                                    .map(i64::try_from)
          28  +
                                    .transpose()?,
          29  +
                            );
          30  +
                        }
          31  +
                        _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
          32  +
                    },
          33  +
                    other => {
          34  +
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
          35  +
                            "expected object key or end object, found: {other:?}"
          36  +
                        )))
          37  +
                    }
          38  +
                }
          39  +
            }
          40  +
            Ok(Some(builder.build()))
          41  +
        }
          42  +
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          43  +
            "expected start object or null",
          44  +
        )),
          45  +
    }
          46  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/protocol_serde/shape_limit_exceeded_exception.rs

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