AWS SDK

AWS SDK

rev. eb19c4c7998eaae1210cb747286b497c3425236c (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_start_transaction_request.rs

@@ -0,1 +0,23 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Specifies a request to start a transaction.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct StartTransactionRequest {}
           7  +
impl StartTransactionRequest {
           8  +
    /// Creates a new builder-style object to manufacture [`StartTransactionRequest`](crate::types::StartTransactionRequest).
           9  +
    pub fn builder() -> crate::types::builders::StartTransactionRequestBuilder {
          10  +
        crate::types::builders::StartTransactionRequestBuilder::default()
          11  +
    }
          12  +
}
          13  +
          14  +
/// A builder for [`StartTransactionRequest`](crate::types::StartTransactionRequest).
          15  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          16  +
#[non_exhaustive]
          17  +
pub struct StartTransactionRequestBuilder {}
          18  +
impl StartTransactionRequestBuilder {
          19  +
    /// Consumes the builder and constructs a [`StartTransactionRequest`](crate::types::StartTransactionRequest).
          20  +
    pub fn build(self) -> crate::types::StartTransactionRequest {
          21  +
        crate::types::StartTransactionRequest {}
          22  +
    }
          23  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_start_transaction_result.rs

@@ -0,1 +0,72 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Contains the details of the started transaction.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct StartTransactionResult {
           7  +
    /// <p>The transaction ID of the started transaction.</p>
           8  +
    pub transaction_id: ::std::option::Option<::std::string::String>,
           9  +
    /// <p>Contains server-side performance information for the command.</p>
          10  +
    pub timing_information: ::std::option::Option<crate::types::TimingInformation>,
          11  +
}
          12  +
impl StartTransactionResult {
          13  +
    /// <p>The transaction ID of the started transaction.</p>
          14  +
    pub fn transaction_id(&self) -> ::std::option::Option<&str> {
          15  +
        self.transaction_id.as_deref()
          16  +
    }
          17  +
    /// <p>Contains server-side performance information for the command.</p>
          18  +
    pub fn timing_information(&self) -> ::std::option::Option<&crate::types::TimingInformation> {
          19  +
        self.timing_information.as_ref()
          20  +
    }
          21  +
}
          22  +
impl StartTransactionResult {
          23  +
    /// Creates a new builder-style object to manufacture [`StartTransactionResult`](crate::types::StartTransactionResult).
          24  +
    pub fn builder() -> crate::types::builders::StartTransactionResultBuilder {
          25  +
        crate::types::builders::StartTransactionResultBuilder::default()
          26  +
    }
          27  +
}
          28  +
          29  +
/// A builder for [`StartTransactionResult`](crate::types::StartTransactionResult).
          30  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          31  +
#[non_exhaustive]
          32  +
pub struct StartTransactionResultBuilder {
          33  +
    pub(crate) transaction_id: ::std::option::Option<::std::string::String>,
          34  +
    pub(crate) timing_information: ::std::option::Option<crate::types::TimingInformation>,
          35  +
}
          36  +
impl StartTransactionResultBuilder {
          37  +
    /// <p>The transaction ID of the started transaction.</p>
          38  +
    pub fn transaction_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          39  +
        self.transaction_id = ::std::option::Option::Some(input.into());
          40  +
        self
          41  +
    }
          42  +
    /// <p>The transaction ID of the started transaction.</p>
          43  +
    pub fn set_transaction_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          44  +
        self.transaction_id = input;
          45  +
        self
          46  +
    }
          47  +
    /// <p>The transaction ID of the started transaction.</p>
          48  +
    pub fn get_transaction_id(&self) -> &::std::option::Option<::std::string::String> {
          49  +
        &self.transaction_id
          50  +
    }
          51  +
    /// <p>Contains server-side performance information for the command.</p>
          52  +
    pub fn timing_information(mut self, input: crate::types::TimingInformation) -> Self {
          53  +
        self.timing_information = ::std::option::Option::Some(input);
          54  +
        self
          55  +
    }
          56  +
    /// <p>Contains server-side performance information for the command.</p>
          57  +
    pub fn set_timing_information(mut self, input: ::std::option::Option<crate::types::TimingInformation>) -> Self {
          58  +
        self.timing_information = input;
          59  +
        self
          60  +
    }
          61  +
    /// <p>Contains server-side performance information for the command.</p>
          62  +
    pub fn get_timing_information(&self) -> &::std::option::Option<crate::types::TimingInformation> {
          63  +
        &self.timing_information
          64  +
    }
          65  +
    /// Consumes the builder and constructs a [`StartTransactionResult`](crate::types::StartTransactionResult).
          66  +
    pub fn build(self) -> crate::types::StartTransactionResult {
          67  +
        crate::types::StartTransactionResult {
          68  +
            transaction_id: self.transaction_id,
          69  +
            timing_information: self.timing_information,
          70  +
        }
          71  +
    }
          72  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_timing_information.rs

@@ -0,1 +0,50 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Contains server-side performance information for a command. Amazon QLDB captures timing information between the times when it receives the request and when it sends the corresponding response.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct TimingInformation {
           7  +
    /// <p>The amount of time that QLDB spent on processing the command, measured in milliseconds.</p>
           8  +
    pub processing_time_milliseconds: i64,
           9  +
}
          10  +
impl TimingInformation {
          11  +
    /// <p>The amount of time that QLDB spent on processing the command, measured in milliseconds.</p>
          12  +
    pub fn processing_time_milliseconds(&self) -> i64 {
          13  +
        self.processing_time_milliseconds
          14  +
    }
          15  +
}
          16  +
impl TimingInformation {
          17  +
    /// Creates a new builder-style object to manufacture [`TimingInformation`](crate::types::TimingInformation).
          18  +
    pub fn builder() -> crate::types::builders::TimingInformationBuilder {
          19  +
        crate::types::builders::TimingInformationBuilder::default()
          20  +
    }
          21  +
}
          22  +
          23  +
/// A builder for [`TimingInformation`](crate::types::TimingInformation).
          24  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          25  +
#[non_exhaustive]
          26  +
pub struct TimingInformationBuilder {
          27  +
    pub(crate) processing_time_milliseconds: ::std::option::Option<i64>,
          28  +
}
          29  +
impl TimingInformationBuilder {
          30  +
    /// <p>The amount of time that QLDB spent on processing the command, measured in milliseconds.</p>
          31  +
    pub fn processing_time_milliseconds(mut self, input: i64) -> Self {
          32  +
        self.processing_time_milliseconds = ::std::option::Option::Some(input);
          33  +
        self
          34  +
    }
          35  +
    /// <p>The amount of time that QLDB spent on processing the command, measured in milliseconds.</p>
          36  +
    pub fn set_processing_time_milliseconds(mut self, input: ::std::option::Option<i64>) -> Self {
          37  +
        self.processing_time_milliseconds = input;
          38  +
        self
          39  +
    }
          40  +
    /// <p>The amount of time that QLDB spent on processing the command, measured in milliseconds.</p>
          41  +
    pub fn get_processing_time_milliseconds(&self) -> &::std::option::Option<i64> {
          42  +
        &self.processing_time_milliseconds
          43  +
    }
          44  +
    /// Consumes the builder and constructs a [`TimingInformation`](crate::types::TimingInformation).
          45  +
    pub fn build(self) -> crate::types::TimingInformation {
          46  +
        crate::types::TimingInformation {
          47  +
            processing_time_milliseconds: self.processing_time_milliseconds.unwrap_or_default(),
          48  +
        }
          49  +
    }
          50  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_value_holder.rs

@@ -0,1 +0,72 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>A structure that can contain a value in multiple encoding formats.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct ValueHolder {
           7  +
    /// <p>An Amazon Ion binary value contained in a <code>ValueHolder</code> structure.</p>
           8  +
    pub ion_binary: ::std::option::Option<::aws_smithy_types::Blob>,
           9  +
    /// <p>An Amazon Ion plaintext value contained in a <code>ValueHolder</code> structure.</p>
          10  +
    pub ion_text: ::std::option::Option<::std::string::String>,
          11  +
}
          12  +
impl ValueHolder {
          13  +
    /// <p>An Amazon Ion binary value contained in a <code>ValueHolder</code> structure.</p>
          14  +
    pub fn ion_binary(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
          15  +
        self.ion_binary.as_ref()
          16  +
    }
          17  +
    /// <p>An Amazon Ion plaintext value contained in a <code>ValueHolder</code> structure.</p>
          18  +
    pub fn ion_text(&self) -> ::std::option::Option<&str> {
          19  +
        self.ion_text.as_deref()
          20  +
    }
          21  +
}
          22  +
impl ValueHolder {
          23  +
    /// Creates a new builder-style object to manufacture [`ValueHolder`](crate::types::ValueHolder).
          24  +
    pub fn builder() -> crate::types::builders::ValueHolderBuilder {
          25  +
        crate::types::builders::ValueHolderBuilder::default()
          26  +
    }
          27  +
}
          28  +
          29  +
/// A builder for [`ValueHolder`](crate::types::ValueHolder).
          30  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          31  +
#[non_exhaustive]
          32  +
pub struct ValueHolderBuilder {
          33  +
    pub(crate) ion_binary: ::std::option::Option<::aws_smithy_types::Blob>,
          34  +
    pub(crate) ion_text: ::std::option::Option<::std::string::String>,
          35  +
}
          36  +
impl ValueHolderBuilder {
          37  +
    /// <p>An Amazon Ion binary value contained in a <code>ValueHolder</code> structure.</p>
          38  +
    pub fn ion_binary(mut self, input: ::aws_smithy_types::Blob) -> Self {
          39  +
        self.ion_binary = ::std::option::Option::Some(input);
          40  +
        self
          41  +
    }
          42  +
    /// <p>An Amazon Ion binary value contained in a <code>ValueHolder</code> structure.</p>
          43  +
    pub fn set_ion_binary(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
          44  +
        self.ion_binary = input;
          45  +
        self
          46  +
    }
          47  +
    /// <p>An Amazon Ion binary value contained in a <code>ValueHolder</code> structure.</p>
          48  +
    pub fn get_ion_binary(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
          49  +
        &self.ion_binary
          50  +
    }
          51  +
    /// <p>An Amazon Ion plaintext value contained in a <code>ValueHolder</code> structure.</p>
          52  +
    pub fn ion_text(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          53  +
        self.ion_text = ::std::option::Option::Some(input.into());
          54  +
        self
          55  +
    }
          56  +
    /// <p>An Amazon Ion plaintext value contained in a <code>ValueHolder</code> structure.</p>
          57  +
    pub fn set_ion_text(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          58  +
        self.ion_text = input;
          59  +
        self
          60  +
    }
          61  +
    /// <p>An Amazon Ion plaintext value contained in a <code>ValueHolder</code> structure.</p>
          62  +
    pub fn get_ion_text(&self) -> &::std::option::Option<::std::string::String> {
          63  +
        &self.ion_text
          64  +
    }
          65  +
    /// Consumes the builder and constructs a [`ValueHolder`](crate::types::ValueHolder).
          66  +
    pub fn build(self) -> crate::types::ValueHolder {
          67  +
        crate::types::ValueHolder {
          68  +
            ion_binary: self.ion_binary,
          69  +
            ion_text: self.ion_text,
          70  +
        }
          71  +
    }
          72  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/builders.rs

@@ -0,1 +0,36 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::types::_fetch_page_result::FetchPageResultBuilder;
           3  +
           4  +
pub use crate::types::_io_usage::IoUsageBuilder;
           5  +
           6  +
pub use crate::types::_timing_information::TimingInformationBuilder;
           7  +
           8  +
pub use crate::types::_page::PageBuilder;
           9  +
          10  +
pub use crate::types::_value_holder::ValueHolderBuilder;
          11  +
          12  +
pub use crate::types::_execute_statement_result::ExecuteStatementResultBuilder;
          13  +
          14  +
pub use crate::types::_abort_transaction_result::AbortTransactionResultBuilder;
          15  +
          16  +
pub use crate::types::_commit_transaction_result::CommitTransactionResultBuilder;
          17  +
          18  +
pub use crate::types::_end_session_result::EndSessionResultBuilder;
          19  +
          20  +
pub use crate::types::_start_transaction_result::StartTransactionResultBuilder;
          21  +
          22  +
pub use crate::types::_start_session_result::StartSessionResultBuilder;
          23  +
          24  +
pub use crate::types::_fetch_page_request::FetchPageRequestBuilder;
          25  +
          26  +
pub use crate::types::_execute_statement_request::ExecuteStatementRequestBuilder;
          27  +
          28  +
pub use crate::types::_abort_transaction_request::AbortTransactionRequestBuilder;
          29  +
          30  +
pub use crate::types::_commit_transaction_request::CommitTransactionRequestBuilder;
          31  +
          32  +
pub use crate::types::_end_session_request::EndSessionRequestBuilder;
          33  +
          34  +
pub use crate::types::_start_transaction_request::StartTransactionRequestBuilder;
          35  +
          36  +
pub use crate::types::_start_session_request::StartSessionRequestBuilder;

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

@@ -0,1 +0,27 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::types::error::_rate_exceeded_exception::RateExceededException;
           3  +
           4  +
pub use crate::types::error::_occ_conflict_exception::OccConflictException;
           5  +
           6  +
pub use crate::types::error::_limit_exceeded_exception::LimitExceededException;
           7  +
           8  +
pub use crate::types::error::_invalid_session_exception::InvalidSessionException;
           9  +
          10  +
pub use crate::types::error::_capacity_exceeded_exception::CapacityExceededException;
          11  +
          12  +
pub use crate::types::error::_bad_request_exception::BadRequestException;
          13  +
          14  +
mod _bad_request_exception;
          15  +
          16  +
mod _capacity_exceeded_exception;
          17  +
          18  +
mod _invalid_session_exception;
          19  +
          20  +
mod _limit_exceeded_exception;
          21  +
          22  +
mod _occ_conflict_exception;
          23  +
          24  +
mod _rate_exceeded_exception;
          25  +
          26  +
/// Builders
          27  +
pub mod builders;

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/error/_bad_request_exception.rs

@@ -0,1 +0,111 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Returned if the request is malformed or contains an error such as an invalid parameter value or a missing required parameter.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct BadRequestException {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub message: ::std::option::Option<::std::string::String>,
           9  +
    #[allow(missing_docs)] // documentation missing in model
          10  +
    pub code: ::std::option::Option<::std::string::String>,
          11  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
}
          13  +
impl BadRequestException {
          14  +
    #[allow(missing_docs)] // documentation missing in model
          15  +
    pub fn code(&self) -> ::std::option::Option<&str> {
          16  +
        self.code.as_deref()
          17  +
    }
          18  +
}
          19  +
impl BadRequestException {
          20  +
    /// Returns the error message.
          21  +
    pub fn message(&self) -> ::std::option::Option<&str> {
          22  +
        self.message.as_deref()
          23  +
    }
          24  +
}
          25  +
impl ::std::fmt::Display for BadRequestException {
          26  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          27  +
        ::std::write!(f, "BadRequestException")?;
          28  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
          29  +
            {
          30  +
                ::std::write!(f, ": {inner_1}")?;
          31  +
            }
          32  +
        }
          33  +
        Ok(())
          34  +
    }
          35  +
}
          36  +
impl ::std::error::Error for BadRequestException {}
          37  +
impl ::aws_types::request_id::RequestId for crate::types::error::BadRequestException {
          38  +
    fn request_id(&self) -> Option<&str> {
          39  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
          40  +
        self.meta().request_id()
          41  +
    }
          42  +
}
          43  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for BadRequestException {
          44  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
          45  +
        &self.meta
          46  +
    }
          47  +
}
          48  +
impl BadRequestException {
          49  +
    /// Creates a new builder-style object to manufacture [`BadRequestException`](crate::types::error::BadRequestException).
          50  +
    pub fn builder() -> crate::types::error::builders::BadRequestExceptionBuilder {
          51  +
        crate::types::error::builders::BadRequestExceptionBuilder::default()
          52  +
    }
          53  +
}
          54  +
          55  +
/// A builder for [`BadRequestException`](crate::types::error::BadRequestException).
          56  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          57  +
#[non_exhaustive]
          58  +
pub struct BadRequestExceptionBuilder {
          59  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
          60  +
    pub(crate) code: ::std::option::Option<::std::string::String>,
          61  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          62  +
}
          63  +
impl BadRequestExceptionBuilder {
          64  +
    #[allow(missing_docs)] // documentation missing in model
          65  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          66  +
        self.message = ::std::option::Option::Some(input.into());
          67  +
        self
          68  +
    }
          69  +
    #[allow(missing_docs)] // documentation missing in model
          70  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          71  +
        self.message = input;
          72  +
        self
          73  +
    }
          74  +
    #[allow(missing_docs)] // documentation missing in model
          75  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
          76  +
        &self.message
          77  +
    }
          78  +
    #[allow(missing_docs)] // documentation missing in model
          79  +
    pub fn code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          80  +
        self.code = ::std::option::Option::Some(input.into());
          81  +
        self
          82  +
    }
          83  +
    #[allow(missing_docs)] // documentation missing in model
          84  +
    pub fn set_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          85  +
        self.code = input;
          86  +
        self
          87  +
    }
          88  +
    #[allow(missing_docs)] // documentation missing in model
          89  +
    pub fn get_code(&self) -> &::std::option::Option<::std::string::String> {
          90  +
        &self.code
          91  +
    }
          92  +
    /// Sets error metadata
          93  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
          94  +
        self.meta = Some(meta);
          95  +
        self
          96  +
    }
          97  +
          98  +
    /// Sets error metadata
          99  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
         100  +
        self.meta = meta;
         101  +
        self
         102  +
    }
         103  +
    /// Consumes the builder and constructs a [`BadRequestException`](crate::types::error::BadRequestException).
         104  +
    pub fn build(self) -> crate::types::error::BadRequestException {
         105  +
        crate::types::error::BadRequestException {
         106  +
            message: self.message,
         107  +
            code: self.code,
         108  +
            meta: self.meta.unwrap_or_default(),
         109  +
        }
         110  +
    }
         111  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/error/_capacity_exceeded_exception.rs

@@ -0,1 +0,87 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Returned when the request exceeds the processing capacity of the ledger.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct CapacityExceededException {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub message: ::std::option::Option<::std::string::String>,
           9  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          10  +
}
          11  +
impl CapacityExceededException {
          12  +
    /// Returns the error message.
          13  +
    pub fn message(&self) -> ::std::option::Option<&str> {
          14  +
        self.message.as_deref()
          15  +
    }
          16  +
}
          17  +
impl ::std::fmt::Display for CapacityExceededException {
          18  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          19  +
        ::std::write!(f, "CapacityExceededException")?;
          20  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
          21  +
            {
          22  +
                ::std::write!(f, ": {inner_1}")?;
          23  +
            }
          24  +
        }
          25  +
        Ok(())
          26  +
    }
          27  +
}
          28  +
impl ::std::error::Error for CapacityExceededException {}
          29  +
impl ::aws_types::request_id::RequestId for crate::types::error::CapacityExceededException {
          30  +
    fn request_id(&self) -> Option<&str> {
          31  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
          32  +
        self.meta().request_id()
          33  +
    }
          34  +
}
          35  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CapacityExceededException {
          36  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
          37  +
        &self.meta
          38  +
    }
          39  +
}
          40  +
impl CapacityExceededException {
          41  +
    /// Creates a new builder-style object to manufacture [`CapacityExceededException`](crate::types::error::CapacityExceededException).
          42  +
    pub fn builder() -> crate::types::error::builders::CapacityExceededExceptionBuilder {
          43  +
        crate::types::error::builders::CapacityExceededExceptionBuilder::default()
          44  +
    }
          45  +
}
          46  +
          47  +
/// A builder for [`CapacityExceededException`](crate::types::error::CapacityExceededException).
          48  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          49  +
#[non_exhaustive]
          50  +
pub struct CapacityExceededExceptionBuilder {
          51  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
          52  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          53  +
}
          54  +
impl CapacityExceededExceptionBuilder {
          55  +
    #[allow(missing_docs)] // documentation missing in model
          56  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          57  +
        self.message = ::std::option::Option::Some(input.into());
          58  +
        self
          59  +
    }
          60  +
    #[allow(missing_docs)] // documentation missing in model
          61  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          62  +
        self.message = input;
          63  +
        self
          64  +
    }
          65  +
    #[allow(missing_docs)] // documentation missing in model
          66  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
          67  +
        &self.message
          68  +
    }
          69  +
    /// Sets error metadata
          70  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
          71  +
        self.meta = Some(meta);
          72  +
        self
          73  +
    }
          74  +
          75  +
    /// Sets error metadata
          76  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
          77  +
        self.meta = meta;
          78  +
        self
          79  +
    }
          80  +
    /// Consumes the builder and constructs a [`CapacityExceededException`](crate::types::error::CapacityExceededException).
          81  +
    pub fn build(self) -> crate::types::error::CapacityExceededException {
          82  +
        crate::types::error::CapacityExceededException {
          83  +
            message: self.message,
          84  +
            meta: self.meta.unwrap_or_default(),
          85  +
        }
          86  +
    }
          87  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/error/_invalid_session_exception.rs

@@ -0,1 +0,111 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Returned if the session doesn't exist anymore because it timed out or expired.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct InvalidSessionException {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub message: ::std::option::Option<::std::string::String>,
           9  +
    #[allow(missing_docs)] // documentation missing in model
          10  +
    pub code: ::std::option::Option<::std::string::String>,
          11  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          12  +
}
          13  +
impl InvalidSessionException {
          14  +
    #[allow(missing_docs)] // documentation missing in model
          15  +
    pub fn code(&self) -> ::std::option::Option<&str> {
          16  +
        self.code.as_deref()
          17  +
    }
          18  +
}
          19  +
impl InvalidSessionException {
          20  +
    /// Returns the error message.
          21  +
    pub fn message(&self) -> ::std::option::Option<&str> {
          22  +
        self.message.as_deref()
          23  +
    }
          24  +
}
          25  +
impl ::std::fmt::Display for InvalidSessionException {
          26  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          27  +
        ::std::write!(f, "InvalidSessionException")?;
          28  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
          29  +
            {
          30  +
                ::std::write!(f, ": {inner_1}")?;
          31  +
            }
          32  +
        }
          33  +
        Ok(())
          34  +
    }
          35  +
}
          36  +
impl ::std::error::Error for InvalidSessionException {}
          37  +
impl ::aws_types::request_id::RequestId for crate::types::error::InvalidSessionException {
          38  +
    fn request_id(&self) -> Option<&str> {
          39  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
          40  +
        self.meta().request_id()
          41  +
    }
          42  +
}
          43  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for InvalidSessionException {
          44  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
          45  +
        &self.meta
          46  +
    }
          47  +
}
          48  +
impl InvalidSessionException {
          49  +
    /// Creates a new builder-style object to manufacture [`InvalidSessionException`](crate::types::error::InvalidSessionException).
          50  +
    pub fn builder() -> crate::types::error::builders::InvalidSessionExceptionBuilder {
          51  +
        crate::types::error::builders::InvalidSessionExceptionBuilder::default()
          52  +
    }
          53  +
}
          54  +
          55  +
/// A builder for [`InvalidSessionException`](crate::types::error::InvalidSessionException).
          56  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          57  +
#[non_exhaustive]
          58  +
pub struct InvalidSessionExceptionBuilder {
          59  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
          60  +
    pub(crate) code: ::std::option::Option<::std::string::String>,
          61  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          62  +
}
          63  +
impl InvalidSessionExceptionBuilder {
          64  +
    #[allow(missing_docs)] // documentation missing in model
          65  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          66  +
        self.message = ::std::option::Option::Some(input.into());
          67  +
        self
          68  +
    }
          69  +
    #[allow(missing_docs)] // documentation missing in model
          70  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          71  +
        self.message = input;
          72  +
        self
          73  +
    }
          74  +
    #[allow(missing_docs)] // documentation missing in model
          75  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
          76  +
        &self.message
          77  +
    }
          78  +
    #[allow(missing_docs)] // documentation missing in model
          79  +
    pub fn code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          80  +
        self.code = ::std::option::Option::Some(input.into());
          81  +
        self
          82  +
    }
          83  +
    #[allow(missing_docs)] // documentation missing in model
          84  +
    pub fn set_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          85  +
        self.code = input;
          86  +
        self
          87  +
    }
          88  +
    #[allow(missing_docs)] // documentation missing in model
          89  +
    pub fn get_code(&self) -> &::std::option::Option<::std::string::String> {
          90  +
        &self.code
          91  +
    }
          92  +
    /// Sets error metadata
          93  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
          94  +
        self.meta = Some(meta);
          95  +
        self
          96  +
    }
          97  +
          98  +
    /// Sets error metadata
          99  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
         100  +
        self.meta = meta;
         101  +
        self
         102  +
    }
         103  +
    /// Consumes the builder and constructs a [`InvalidSessionException`](crate::types::error::InvalidSessionException).
         104  +
    pub fn build(self) -> crate::types::error::InvalidSessionException {
         105  +
        crate::types::error::InvalidSessionException {
         106  +
            message: self.message,
         107  +
            code: self.code,
         108  +
            meta: self.meta.unwrap_or_default(),
         109  +
        }
         110  +
    }
         111  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/error/_limit_exceeded_exception.rs

@@ -0,1 +0,87 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Returned if a resource limit such as number of active sessions is exceeded.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct LimitExceededException {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub message: ::std::option::Option<::std::string::String>,
           9  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          10  +
}
          11  +
impl LimitExceededException {
          12  +
    /// Returns the error message.
          13  +
    pub fn message(&self) -> ::std::option::Option<&str> {
          14  +
        self.message.as_deref()
          15  +
    }
          16  +
}
          17  +
impl ::std::fmt::Display for LimitExceededException {
          18  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          19  +
        ::std::write!(f, "LimitExceededException")?;
          20  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
          21  +
            {
          22  +
                ::std::write!(f, ": {inner_1}")?;
          23  +
            }
          24  +
        }
          25  +
        Ok(())
          26  +
    }
          27  +
}
          28  +
impl ::std::error::Error for LimitExceededException {}
          29  +
impl ::aws_types::request_id::RequestId for crate::types::error::LimitExceededException {
          30  +
    fn request_id(&self) -> Option<&str> {
          31  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
          32  +
        self.meta().request_id()
          33  +
    }
          34  +
}
          35  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for LimitExceededException {
          36  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
          37  +
        &self.meta
          38  +
    }
          39  +
}
          40  +
impl LimitExceededException {
          41  +
    /// Creates a new builder-style object to manufacture [`LimitExceededException`](crate::types::error::LimitExceededException).
          42  +
    pub fn builder() -> crate::types::error::builders::LimitExceededExceptionBuilder {
          43  +
        crate::types::error::builders::LimitExceededExceptionBuilder::default()
          44  +
    }
          45  +
}
          46  +
          47  +
/// A builder for [`LimitExceededException`](crate::types::error::LimitExceededException).
          48  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          49  +
#[non_exhaustive]
          50  +
pub struct LimitExceededExceptionBuilder {
          51  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
          52  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          53  +
}
          54  +
impl LimitExceededExceptionBuilder {
          55  +
    #[allow(missing_docs)] // documentation missing in model
          56  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          57  +
        self.message = ::std::option::Option::Some(input.into());
          58  +
        self
          59  +
    }
          60  +
    #[allow(missing_docs)] // documentation missing in model
          61  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          62  +
        self.message = input;
          63  +
        self
          64  +
    }
          65  +
    #[allow(missing_docs)] // documentation missing in model
          66  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
          67  +
        &self.message
          68  +
    }
          69  +
    /// Sets error metadata
          70  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
          71  +
        self.meta = Some(meta);
          72  +
        self
          73  +
    }
          74  +
          75  +
    /// Sets error metadata
          76  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
          77  +
        self.meta = meta;
          78  +
        self
          79  +
    }
          80  +
    /// Consumes the builder and constructs a [`LimitExceededException`](crate::types::error::LimitExceededException).
          81  +
    pub fn build(self) -> crate::types::error::LimitExceededException {
          82  +
        crate::types::error::LimitExceededException {
          83  +
            message: self.message,
          84  +
            meta: self.meta.unwrap_or_default(),
          85  +
        }
          86  +
    }
          87  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/error/_occ_conflict_exception.rs

@@ -0,1 +0,87 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Returned when a transaction cannot be written to the journal due to a failure in the verification phase of <i>optimistic concurrency control</i> (OCC).</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct OccConflictException {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub message: ::std::option::Option<::std::string::String>,
           9  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          10  +
}
          11  +
impl OccConflictException {
          12  +
    /// Returns the error message.
          13  +
    pub fn message(&self) -> ::std::option::Option<&str> {
          14  +
        self.message.as_deref()
          15  +
    }
          16  +
}
          17  +
impl ::std::fmt::Display for OccConflictException {
          18  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          19  +
        ::std::write!(f, "OccConflictException")?;
          20  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
          21  +
            {
          22  +
                ::std::write!(f, ": {inner_1}")?;
          23  +
            }
          24  +
        }
          25  +
        Ok(())
          26  +
    }
          27  +
}
          28  +
impl ::std::error::Error for OccConflictException {}
          29  +
impl ::aws_types::request_id::RequestId for crate::types::error::OccConflictException {
          30  +
    fn request_id(&self) -> Option<&str> {
          31  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
          32  +
        self.meta().request_id()
          33  +
    }
          34  +
}
          35  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for OccConflictException {
          36  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
          37  +
        &self.meta
          38  +
    }
          39  +
}
          40  +
impl OccConflictException {
          41  +
    /// Creates a new builder-style object to manufacture [`OccConflictException`](crate::types::error::OccConflictException).
          42  +
    pub fn builder() -> crate::types::error::builders::OccConflictExceptionBuilder {
          43  +
        crate::types::error::builders::OccConflictExceptionBuilder::default()
          44  +
    }
          45  +
}
          46  +
          47  +
/// A builder for [`OccConflictException`](crate::types::error::OccConflictException).
          48  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          49  +
#[non_exhaustive]
          50  +
pub struct OccConflictExceptionBuilder {
          51  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
          52  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          53  +
}
          54  +
impl OccConflictExceptionBuilder {
          55  +
    #[allow(missing_docs)] // documentation missing in model
          56  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          57  +
        self.message = ::std::option::Option::Some(input.into());
          58  +
        self
          59  +
    }
          60  +
    #[allow(missing_docs)] // documentation missing in model
          61  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          62  +
        self.message = input;
          63  +
        self
          64  +
    }
          65  +
    #[allow(missing_docs)] // documentation missing in model
          66  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
          67  +
        &self.message
          68  +
    }
          69  +
    /// Sets error metadata
          70  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
          71  +
        self.meta = Some(meta);
          72  +
        self
          73  +
    }
          74  +
          75  +
    /// Sets error metadata
          76  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
          77  +
        self.meta = meta;
          78  +
        self
          79  +
    }
          80  +
    /// Consumes the builder and constructs a [`OccConflictException`](crate::types::error::OccConflictException).
          81  +
    pub fn build(self) -> crate::types::error::OccConflictException {
          82  +
        crate::types::error::OccConflictException {
          83  +
            message: self.message,
          84  +
            meta: self.meta.unwrap_or_default(),
          85  +
        }
          86  +
    }
          87  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/error/_rate_exceeded_exception.rs

@@ -0,1 +0,87 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Returned when the rate of requests exceeds the allowed throughput.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct RateExceededException {
           7  +
    #[allow(missing_docs)] // documentation missing in model
           8  +
    pub message: ::std::option::Option<::std::string::String>,
           9  +
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
          10  +
}
          11  +
impl RateExceededException {
          12  +
    /// Returns the error message.
          13  +
    pub fn message(&self) -> ::std::option::Option<&str> {
          14  +
        self.message.as_deref()
          15  +
    }
          16  +
}
          17  +
impl ::std::fmt::Display for RateExceededException {
          18  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          19  +
        ::std::write!(f, "RateExceededException")?;
          20  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
          21  +
            {
          22  +
                ::std::write!(f, ": {inner_1}")?;
          23  +
            }
          24  +
        }
          25  +
        Ok(())
          26  +
    }
          27  +
}
          28  +
impl ::std::error::Error for RateExceededException {}
          29  +
impl ::aws_types::request_id::RequestId for crate::types::error::RateExceededException {
          30  +
    fn request_id(&self) -> Option<&str> {
          31  +
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
          32  +
        self.meta().request_id()
          33  +
    }
          34  +
}
          35  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for RateExceededException {
          36  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
          37  +
        &self.meta
          38  +
    }
          39  +
}
          40  +
impl RateExceededException {
          41  +
    /// Creates a new builder-style object to manufacture [`RateExceededException`](crate::types::error::RateExceededException).
          42  +
    pub fn builder() -> crate::types::error::builders::RateExceededExceptionBuilder {
          43  +
        crate::types::error::builders::RateExceededExceptionBuilder::default()
          44  +
    }
          45  +
}
          46  +
          47  +
/// A builder for [`RateExceededException`](crate::types::error::RateExceededException).
          48  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          49  +
#[non_exhaustive]
          50  +
pub struct RateExceededExceptionBuilder {
          51  +
    pub(crate) message: ::std::option::Option<::std::string::String>,
          52  +
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
          53  +
}
          54  +
impl RateExceededExceptionBuilder {
          55  +
    #[allow(missing_docs)] // documentation missing in model
          56  +
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          57  +
        self.message = ::std::option::Option::Some(input.into());
          58  +
        self
          59  +
    }
          60  +
    #[allow(missing_docs)] // documentation missing in model
          61  +
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          62  +
        self.message = input;
          63  +
        self
          64  +
    }
          65  +
    #[allow(missing_docs)] // documentation missing in model
          66  +
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
          67  +
        &self.message
          68  +
    }
          69  +
    /// Sets error metadata
          70  +
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
          71  +
        self.meta = Some(meta);
          72  +
        self
          73  +
    }
          74  +
          75  +
    /// Sets error metadata
          76  +
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
          77  +
        self.meta = meta;
          78  +
        self
          79  +
    }
          80  +
    /// Consumes the builder and constructs a [`RateExceededException`](crate::types::error::RateExceededException).
          81  +
    pub fn build(self) -> crate::types::error::RateExceededException {
          82  +
        crate::types::error::RateExceededException {
          83  +
            message: self.message,
          84  +
            meta: self.meta.unwrap_or_default(),
          85  +
        }
          86  +
    }
          87  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/error/builders.rs

@@ -0,1 +0,12 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::types::error::_rate_exceeded_exception::RateExceededExceptionBuilder;
           3  +
           4  +
pub use crate::types::error::_occ_conflict_exception::OccConflictExceptionBuilder;
           5  +
           6  +
pub use crate::types::error::_limit_exceeded_exception::LimitExceededExceptionBuilder;
           7  +
           8  +
pub use crate::types::error::_invalid_session_exception::InvalidSessionExceptionBuilder;
           9  +
          10  +
pub use crate::types::error::_capacity_exceeded_exception::CapacityExceededExceptionBuilder;
          11  +
          12  +
pub use crate::types::error::_bad_request_exception::BadRequestExceptionBuilder;

tmp-codegen-diff/aws-sdk/sdk/qldbsession/tests/endpoint_tests.rs

@@ -0,1 +0,2 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#![cfg(feature = "test-util")]

tmp-codegen-diff/aws-sdk/sdk/qldbsession/tests/integration.rs

@@ -0,1 +0,59 @@
           1  +
/*
           2  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
           3  +
 * SPDX-License-Identifier: Apache-2.0
           4  +
 */
           5  +
           6  +
#![cfg(feature = "test-util")]
           7  +
           8  +
use aws_sdk_qldbsession::config::{Config, Credentials, Region};
           9  +
use aws_sdk_qldbsession::types::StartSessionRequest;
          10  +
use aws_sdk_qldbsession::Client;
          11  +
use aws_smithy_http_client::test_util::{ReplayEvent, StaticReplayClient};
          12  +
use aws_smithy_types::body::SdkBody;
          13  +
use http_1x::Uri;
          14  +
          15  +
#[cfg(feature = "test-util")]
          16  +
#[tokio::test]
          17  +
async fn signv4_use_correct_service_name() {
          18  +
    let http_client = StaticReplayClient::new(vec![ReplayEvent::new(
          19  +
        http_1x::Request::builder()
          20  +
            .header("content-type", "application/x-amz-json-1.0")
          21  +
            .header("x-amz-target", "QLDBSession.SendCommand")
          22  +
            .header("content-length", "49")
          23  +
            .header("authorization", "AWS4-HMAC-SHA256 Credential=ANOTREAL/20090213/us-east-1/qldb/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-target;x-amz-user-agent, Signature=9a07c60550504d015fb9a2b0f1b175a4d906651f9dd4ee44bebb32a802d03815")
          24  +
            // qldbsession uses the signing name 'qldb' in signature _________________________^^^^
          25  +
            .header("x-amz-date", "20090213T233130Z")
          26  +
            .header("user-agent", "aws-sdk-rust/0.123.test os/windows/XPSP3 lang/rust/1.50.0")
          27  +
            .uri(Uri::from_static("https://session.qldb.us-east-1.amazonaws.com/"))
          28  +
            .body(SdkBody::from(r#"{"StartSession":{"LedgerName":"not-real-ledger"}}"#)).unwrap(),
          29  +
        http_1x::Response::builder()
          30  +
            .status(http_1x::StatusCode::from_u16(200).unwrap())
          31  +
            .body(SdkBody::from(r#"{}"#)).unwrap()),
          32  +
    ]);
          33  +
    let conf = Config::builder()
          34  +
        .http_client(http_client.clone())
          35  +
        .region(Region::new("us-east-1"))
          36  +
        .credentials_provider(Credentials::for_tests_with_session_token())
          37  +
        .with_test_defaults()
          38  +
        .build();
          39  +
    let client = Client::from_conf(conf);
          40  +
          41  +
    let _ = client
          42  +
        .send_command()
          43  +
        .start_session(
          44  +
            StartSessionRequest::builder()
          45  +
                .ledger_name("not-real-ledger")
          46  +
                .build()
          47  +
                .unwrap(),
          48  +
        )
          49  +
        .customize()
          50  +
        .mutate_request(|req| {
          51  +
            // Remove the invocation ID since the signed request above doesn't have it
          52  +
            req.headers_mut().remove("amz-sdk-invocation-id");
          53  +
        })
          54  +
        .send()
          55  +
        .await
          56  +
        .expect("request should succeed");
          57  +
          58  +
    http_client.assert_requests_match(&["authorization"]);
          59  +
}

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

@@ -1,1 +103,103 @@
   10     10   
rust-version = "1.88.0"
   11     11   
readme = "README.md"
   12     12   
[package.metadata.smithy]
   13     13   
codegen-version = "ci"
   14     14   
protocol = "aws.protocols#restXml"
   15     15   
[package.metadata.docs.rs]
   16     16   
all-features = true
   17     17   
targets = ["x86_64-unknown-linux-gnu"]
   18     18   
[dependencies.aws-credential-types]
   19     19   
path = "../aws-credential-types"
   20         -
version = "1.2.8"
          20  +
version = "1.2.9"
   21     21   
   22     22   
[dependencies.aws-runtime]
   23     23   
path = "../aws-runtime"
   24     24   
version = "1.5.13"
   25     25   
   26     26   
[dependencies.aws-smithy-async]
   27     27   
path = "../aws-smithy-async"
   28     28   
version = "1.2.6"
   29     29   
   30     30   
[dependencies.aws-smithy-http]
   31     31   
path = "../aws-smithy-http"
   32     32   
version = "0.62.5"
   33     33   
   34     34   
[dependencies.aws-smithy-json]
   35     35   
path = "../aws-smithy-json"
   36     36   
version = "0.61.7"
   37     37   
   38     38   
[dependencies.aws-smithy-runtime]
   39     39   
path = "../aws-smithy-runtime"
   40     40   
features = ["client"]
   41     41   
version = "1.9.4"
   42     42   
   43     43   
[dependencies.aws-smithy-runtime-api]
   44     44   
path = "../aws-smithy-runtime-api"
   45     45   
features = ["client", "http-02x"]
   46     46   
version = "1.9.2"
   47     47   
   48     48   
[dependencies.aws-smithy-types]
   49     49   
path = "../aws-smithy-types"
   50     50   
version = "1.3.4"
   51     51   
   52     52   
[dependencies.aws-smithy-xml]
   53     53   
path = "../aws-smithy-xml"
   54     54   
version = "0.60.12"
   55     55   
   56     56   
[dependencies.aws-types]
   57     57   
path = "../aws-types"
   58     58   
version = "1.3.10"
   59     59   
   60     60   
[dependencies.fastrand]
   61     61   
version = "2.0.0"
   62     62   
   63     63   
[dependencies.http]
   64     64   
version = "0.2.9"
   65     65   
   66     66   
[dependencies.regex-lite]
   67     67   
version = "0.1.5"
   68     68   
   69     69   
[dependencies.tracing]
   70     70   
version = "0.1"
   71     71   
[dev-dependencies.aws-config]
   72     72   
path = "../aws-config"
   73     73   
version = "1.8.10"
   74     74   
   75     75   
[dev-dependencies.aws-credential-types]
   76     76   
path = "../aws-credential-types"
   77     77   
features = ["test-util"]
   78         -
version = "1.2.8"
          78  +
version = "1.2.9"
   79     79   
   80     80   
[dev-dependencies.aws-smithy-http-client]
   81     81   
path = "../aws-smithy-http-client"
   82     82   
features = ["test-util"]
   83     83   
version = "1.1.4"
   84     84   
   85     85   
[dev-dependencies.pretty_assertions]
   86     86   
version = "1.3.0"
   87     87   
   88     88   
[dev-dependencies.tokio]