AWS SDK

AWS SDK

rev. 54a52cba1f1ff5fc52d06b3721da33bf6bc3bfda

Files changed:

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

@@ -1,1 +157,55 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
/// Error type for the `SelectObjectContentEventStreamError` operation.
    3         -
#[non_exhaustive]
    4         -
#[derive(::std::fmt::Debug)]
    5         -
pub enum SelectObjectContentEventStreamError {
    6         -
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
    7         -
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
    8         -
    variable wildcard pattern and check `.code()`:
    9         -
     \
   10         -
       `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
   11         -
     \
   12         -
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-SelectObjectContentEventStreamError) for what information is available for the error.")]
   13         -
    Unhandled(crate::error::sealed_unhandled::Unhandled),
   14         -
}
   15         -
impl SelectObjectContentEventStreamError {
   16         -
    /// Creates the `SelectObjectContentEventStreamError::Unhandled` variant from any error type.
   17         -
    pub fn unhandled(
   18         -
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
   19         -
    ) -> Self {
   20         -
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
   21         -
            source: err.into(),
   22         -
            meta: ::std::default::Default::default(),
   23         -
        })
   24         -
    }
   25         -
   26         -
    /// Creates the `SelectObjectContentEventStreamError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
   27         -
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   28         -
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
   29         -
            source: err.clone().into(),
   30         -
            meta: err,
   31         -
        })
   32         -
    }
   33         -
    ///
   34         -
    /// Returns error metadata, which includes the error code, message,
   35         -
    /// request ID, and potentially additional information.
   36         -
    ///
   37         -
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   38         -
        match self {
   39         -
            Self::Unhandled(e) => &e.meta,
   40         -
        }
   41         -
    }
   42         -
}
   43         -
impl ::std::error::Error for SelectObjectContentEventStreamError {
   44         -
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
   45         -
        match self {
   46         -
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
   47         -
        }
   48         -
    }
   49         -
}
   50         -
impl ::std::fmt::Display for SelectObjectContentEventStreamError {
   51         -
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
   52         -
        match self {
   53         -
            Self::Unhandled(_inner) => {
   54         -
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
   55         -
                    write!(f, "unhandled error ({code})")
   56         -
                } else {
   57         -
                    f.write_str("unhandled error")
   58         -
                }
   59         -
            }
   60         -
        }
   61         -
    }
   62         -
}
   63         -
impl ::aws_smithy_types::retry::ProvideErrorKind for SelectObjectContentEventStreamError {
   64         -
    fn code(&self) -> ::std::option::Option<&str> {
   65         -
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
   66         -
    }
   67         -
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
   68         -
        ::std::option::Option::None
   69         -
    }
   70         -
}
   71         -
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for SelectObjectContentEventStreamError {
   72         -
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   73         -
        match self {
   74         -
            Self::Unhandled(_inner) => &_inner.meta,
   75         -
        }
   76         -
    }
   77         -
}
   78         -
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for SelectObjectContentEventStreamError {
   79         -
    fn create_unhandled_error(
   80         -
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
   81         -
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
   82         -
    ) -> Self {
   83         -
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
   84         -
            source,
   85         -
            meta: meta.unwrap_or_default(),
   86         -
        })
   87         -
    }
   88         -
}
   89         -
impl crate::s3_request_id::RequestIdExt for crate::types::error::SelectObjectContentEventStreamError {
   90         -
    fn extended_request_id(&self) -> Option<&str> {
   91         -
        self.meta().extended_request_id()
   92         -
    }
   93         -
}
   94         -
impl ::aws_types::request_id::RequestId for crate::types::error::SelectObjectContentEventStreamError {
   95         -
    fn request_id(&self) -> Option<&str> {
   96         -
        self.meta().request_id()
   97         -
    }
   98         -
}
   99         -
  100      2   
pub use crate::types::error::_object_already_in_active_tier_error::ObjectAlreadyInActiveTierError;
  101      3   
  102         -
pub use crate::types::error::_idempotency_parameter_mismatch::IdempotencyParameterMismatch;
  103         -
  104      4   
pub use crate::types::error::_no_such_key::NoSuchKey;
  105      5   
  106      6   
pub use crate::types::error::_too_many_parts::TooManyParts;
  107      7   
  108      8   
pub use crate::types::error::_invalid_write_offset::InvalidWriteOffset;
  109      9   
  110     10   
pub use crate::types::error::_invalid_request::InvalidRequest;
  111     11   
  112     12   
pub use crate::types::error::_encryption_type_mismatch::EncryptionTypeMismatch;
  113     13   
  114     14   
pub use crate::types::error::_no_such_bucket::NoSuchBucket;
  115     15   
  116     16   
pub use crate::types::error::_not_found::NotFound;
  117     17   
  118     18   
pub use crate::types::error::_invalid_object_state::InvalidObjectState;
  119     19   
  120     20   
pub use crate::types::error::_bucket_already_owned_by_you::BucketAlreadyOwnedByYou;
  121     21   
  122     22   
pub use crate::types::error::_bucket_already_exists::BucketAlreadyExists;
  123     23   
  124     24   
pub use crate::types::error::_object_not_in_active_tier_error::ObjectNotInActiveTierError;
  125     25   
  126     26   
pub use crate::types::error::_no_such_upload::NoSuchUpload;
  127     27   
  128     28   
mod _bucket_already_exists;
  129     29   
  130     30   
mod _bucket_already_owned_by_you;
  131     31   
  132     32   
mod _encryption_type_mismatch;
  133     33   
  134         -
mod _idempotency_parameter_mismatch;
  135         -
  136     34   
mod _invalid_object_state;
  137     35   
  138     36   
mod _invalid_request;
  139     37   
  140     38   
mod _invalid_write_offset;
  141     39   
  142     40   
mod _no_such_bucket;
  143     41   
  144     42   
mod _no_such_key;
  145     43   

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

@@ -1,0 +96,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Parameters on this idempotent request are inconsistent with parameters used in previous request(s).</p>
    4         -
/// <p>For a list of error codes and more information on Amazon S3 errors, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList">Error codes</a>.</p><note>
    5         -
/// <p>Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.</p>
    6         -
/// </note>
    7         -
#[non_exhaustive]
    8         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    9         -
pub struct IdempotencyParameterMismatch {
   10         -
    #[allow(missing_docs)] // documentation missing in model
   11         -
    pub message: ::std::option::Option<::std::string::String>,
   12         -
    pub(crate) meta: ::aws_smithy_types::error::ErrorMetadata,
   13         -
}
   14         -
impl IdempotencyParameterMismatch {
   15         -
    /// Returns the error message.
   16         -
    pub fn message(&self) -> ::std::option::Option<&str> {
   17         -
        self.message.as_deref()
   18         -
    }
   19         -
}
   20         -
impl ::std::fmt::Display for IdempotencyParameterMismatch {
   21         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
   22         -
        ::std::write!(f, "IdempotencyParameterMismatch")?;
   23         -
        if let ::std::option::Option::Some(inner_1) = &self.message {
   24         -
            {
   25         -
                ::std::write!(f, ": {inner_1}")?;
   26         -
            }
   27         -
        }
   28         -
        Ok(())
   29         -
    }
   30         -
}
   31         -
impl ::std::error::Error for IdempotencyParameterMismatch {}
   32         -
impl crate::s3_request_id::RequestIdExt for crate::types::error::IdempotencyParameterMismatch {
   33         -
    fn extended_request_id(&self) -> Option<&str> {
   34         -
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
   35         -
        self.meta().extended_request_id()
   36         -
    }
   37         -
}
   38         -
impl ::aws_types::request_id::RequestId for crate::types::error::IdempotencyParameterMismatch {
   39         -
    fn request_id(&self) -> Option<&str> {
   40         -
        use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
   41         -
        self.meta().request_id()
   42         -
    }
   43         -
}
   44         -
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for IdempotencyParameterMismatch {
   45         -
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
   46         -
        &self.meta
   47         -
    }
   48         -
}
   49         -
impl IdempotencyParameterMismatch {
   50         -
    /// Creates a new builder-style object to manufacture [`IdempotencyParameterMismatch`](crate::types::error::IdempotencyParameterMismatch).
   51         -
    pub fn builder() -> crate::types::error::builders::IdempotencyParameterMismatchBuilder {
   52         -
        crate::types::error::builders::IdempotencyParameterMismatchBuilder::default()
   53         -
    }
   54         -
}
   55         -
   56         -
/// A builder for [`IdempotencyParameterMismatch`](crate::types::error::IdempotencyParameterMismatch).
   57         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   58         -
#[non_exhaustive]
   59         -
pub struct IdempotencyParameterMismatchBuilder {
   60         -
    pub(crate) message: ::std::option::Option<::std::string::String>,
   61         -
    meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
   62         -
}
   63         -
impl IdempotencyParameterMismatchBuilder {
   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         -
    /// Sets error metadata
   79         -
    pub fn meta(mut self, meta: ::aws_smithy_types::error::ErrorMetadata) -> Self {
   80         -
        self.meta = Some(meta);
   81         -
        self
   82         -
    }
   83         -
   84         -
    /// Sets error metadata
   85         -
    pub fn set_meta(&mut self, meta: std::option::Option<::aws_smithy_types::error::ErrorMetadata>) -> &mut Self {
   86         -
        self.meta = meta;
   87         -
        self
   88         -
    }
   89         -
    /// Consumes the builder and constructs a [`IdempotencyParameterMismatch`](crate::types::error::IdempotencyParameterMismatch).
   90         -
    pub fn build(self) -> crate::types::error::IdempotencyParameterMismatch {
   91         -
        crate::types::error::IdempotencyParameterMismatch {
   92         -
            message: self.message,
   93         -
            meta: self.meta.unwrap_or_default(),
   94         -
        }
   95         -
    }
   96         -
}

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

@@ -1,1 +28,26 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub use crate::types::error::_object_already_in_active_tier_error::ObjectAlreadyInActiveTierErrorBuilder;
    3      3   
    4         -
pub use crate::types::error::_idempotency_parameter_mismatch::IdempotencyParameterMismatchBuilder;
    5         -
    6      4   
pub use crate::types::error::_no_such_key::NoSuchKeyBuilder;
    7      5   
    8      6   
pub use crate::types::error::_too_many_parts::TooManyPartsBuilder;
    9      7   
   10      8   
pub use crate::types::error::_invalid_write_offset::InvalidWriteOffsetBuilder;
   11      9   
   12     10   
pub use crate::types::error::_invalid_request::InvalidRequestBuilder;
   13     11   
   14     12   
pub use crate::types::error::_encryption_type_mismatch::EncryptionTypeMismatchBuilder;
   15     13   

tmp-codegen-diff/aws-sdk/sdk/s3control/src/endpoint_lib/arn.rs

@@ -1,1 +42,42 @@
    2      2   
/*
    3      3   
 *  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    4      4   
 *  SPDX-License-Identifier: Apache-2.0
    5      5   
 */
    6      6   
    7      7   
use crate::endpoint_lib::diagnostic::DiagnosticCollector;
    8      8   
use std::borrow::Cow;
    9      9   
use std::error::Error;
   10     10   
use std::fmt::{Display, Formatter};
   11     11   
   12         -
#[derive(Debug, Eq, PartialEq)]
          12  +
#[derive(Debug, Eq, PartialEq, Clone, Default)]
   13     13   
pub(crate) struct Arn<'a> {
   14     14   
    partition: &'a str,
   15     15   
    service: &'a str,
   16     16   
    region: &'a str,
   17     17   
    account_id: &'a str,
   18     18   
    resource_id: Vec<&'a str>,
   19     19   
}
   20     20   
   21     21   
#[allow(unused)]
   22     22   
impl<'a> Arn<'a> {

tmp-codegen-diff/aws-sdk/sdk/s3control/src/endpoint_lib/diagnostic.rs

@@ -7,7 +45,46 @@
   27     27   
    pub(crate) fn capture<T, E: Into<Box<dyn Error + Send + Sync>>>(&mut self, err: Result<T, E>) -> Option<T> {
   28     28   
        match err {
   29     29   
            Ok(res) => Some(res),
   30     30   
            Err(e) => {
   31     31   
                self.report_error(e);
   32     32   
                None
   33     33   
            }
   34     34   
        }
   35     35   
    }
   36     36   
          37  +
    #[allow(dead_code)]
   37     38   
    pub(crate) fn take_last_error(&mut self) -> Option<Box<dyn Error + Send + Sync>> {
   38     39   
        self.last_error.take()
   39     40   
    }
   40     41   
   41     42   
    /// Create a new diagnostic collector
   42     43   
    pub(crate) fn new() -> Self {
   43     44   
        Self { last_error: None }
   44     45   
    }
   45     46   
}

tmp-codegen-diff/aws-sdk/sdk/s3control/src/endpoint_lib/parse_url.rs

@@ -1,1 +47,57 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/*
    3      3   
 *  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    4      4   
 *  SPDX-License-Identifier: Apache-2.0
    5      5   
 */
    6      6   
    7      7   
use crate::endpoint_lib::diagnostic::DiagnosticCollector;
    8      8   
use http::Uri;
    9      9   
use url::{Host, Url as ParsedUrl};
   10     10   
   11         -
#[derive(PartialEq, Debug)]
          11  +
#[derive(PartialEq, Debug, Clone)]
   12     12   
pub(crate) struct Url<'a> {
   13     13   
    uri: Uri,
   14     14   
    url: ParsedUrl,
   15     15   
    raw: &'a str,
   16     16   
}
   17     17   
          18  +
impl Default for Url<'_> {
          19  +
    fn default() -> Self {
          20  +
        Self {
          21  +
            uri: Uri::from_static("https://localhost"),
          22  +
            url: ParsedUrl::parse("https://localhost").unwrap(),
          23  +
            raw: "https://localhost",
          24  +
        }
          25  +
    }
          26  +
}
          27  +
   18     28   
// individual methods on parse_url might not be used (although the [`parse_url`] itself _MUST_ be used
   19     29   
// since stdlib functions are pulled into crate lazily)
   20     30   
#[allow(unused)]
   21     31   
impl Url<'_> {
   22     32   
    pub(crate) fn is_ip(&self) -> bool {
   23     33   
        matches!(self.url.host(), Some(Host::Ipv4(_) | Host::Ipv6(_)))
   24     34   
    }
   25     35   
    pub(crate) fn scheme(&self) -> &str {
   26     36   
        self.url.scheme()
   27     37   
    }

tmp-codegen-diff/aws-sdk/sdk/s3control/src/endpoint_lib/partition.rs

@@ -3,3 +62,63 @@
   23     23   
    partitions: Vec<PartitionMetadata>,
   24     24   
}
   25     25   
   26     26   
impl PartitionResolver {
   27     27   
    pub(crate) fn from_partitions(partitions: Vec<PartitionMetadata>) -> Self {
   28     28   
        Self { partitions }
   29     29   
    }
   30     30   
}
   31     31   
   32     32   
/// Partition result returned from partition resolver
          33  +
#[derive(Debug, Default, Clone)]
   33     34   
pub(crate) struct Partition<'a> {
   34     35   
    name: &'a str,
   35     36   
    dns_suffix: &'a str,
   36     37   
    dual_stack_dns_suffix: &'a str,
   37     38   
    supports_fips: bool,
   38     39   
    supports_dual_stack: bool,
   39     40   
    implicit_global_region: &'a str,
   40     41   
}
   41     42   
   42     43   
#[allow(unused)]

tmp-codegen-diff/aws-sdk/sdk/signin/src/endpoint_lib/diagnostic.rs

@@ -7,7 +45,46 @@
   27     27   
    pub(crate) fn capture<T, E: Into<Box<dyn Error + Send + Sync>>>(&mut self, err: Result<T, E>) -> Option<T> {
   28     28   
        match err {
   29     29   
            Ok(res) => Some(res),
   30     30   
            Err(e) => {
   31     31   
                self.report_error(e);
   32     32   
                None
   33     33   
            }
   34     34   
        }
   35     35   
    }
   36     36   
          37  +
    #[allow(dead_code)]
   37     38   
    pub(crate) fn take_last_error(&mut self) -> Option<Box<dyn Error + Send + Sync>> {
   38     39   
        self.last_error.take()
   39     40   
    }
   40     41   
   41     42   
    /// Create a new diagnostic collector
   42     43   
    pub(crate) fn new() -> Self {
   43     44   
        Self { last_error: None }
   44     45   
    }
   45     46   
}

tmp-codegen-diff/aws-sdk/sdk/signin/src/endpoint_lib/partition.rs

@@ -3,3 +62,63 @@
   23     23   
    partitions: Vec<PartitionMetadata>,
   24     24   
}
   25     25   
   26     26   
impl PartitionResolver {
   27     27   
    pub(crate) fn from_partitions(partitions: Vec<PartitionMetadata>) -> Self {
   28     28   
        Self { partitions }
   29     29   
    }
   30     30   
}
   31     31   
   32     32   
/// Partition result returned from partition resolver
          33  +
#[derive(Debug, Default, Clone)]
   33     34   
pub(crate) struct Partition<'a> {
   34     35   
    name: &'a str,
   35     36   
    dns_suffix: &'a str,
   36     37   
    dual_stack_dns_suffix: &'a str,
   37     38   
    supports_fips: bool,
   38     39   
    supports_dual_stack: bool,
   39     40   
    implicit_global_region: &'a str,
   40     41   
}
   41     42   
   42     43   
#[allow(unused)]

tmp-codegen-diff/aws-sdk/sdk/sso/src/endpoint_lib/diagnostic.rs

@@ -7,7 +45,46 @@
   27     27   
    pub(crate) fn capture<T, E: Into<Box<dyn Error + Send + Sync>>>(&mut self, err: Result<T, E>) -> Option<T> {
   28     28   
        match err {
   29     29   
            Ok(res) => Some(res),
   30     30   
            Err(e) => {
   31     31   
                self.report_error(e);
   32     32   
                None
   33     33   
            }
   34     34   
        }
   35     35   
    }
   36     36   
          37  +
    #[allow(dead_code)]
   37     38   
    pub(crate) fn take_last_error(&mut self) -> Option<Box<dyn Error + Send + Sync>> {
   38     39   
        self.last_error.take()
   39     40   
    }
   40     41   
   41     42   
    /// Create a new diagnostic collector
   42     43   
    pub(crate) fn new() -> Self {
   43     44   
        Self { last_error: None }
   44     45   
    }
   45     46   
}

tmp-codegen-diff/aws-sdk/sdk/sso/src/endpoint_lib/partition.rs

@@ -3,3 +62,63 @@
   23     23   
    partitions: Vec<PartitionMetadata>,
   24     24   
}
   25     25   
   26     26   
impl PartitionResolver {
   27     27   
    pub(crate) fn from_partitions(partitions: Vec<PartitionMetadata>) -> Self {
   28     28   
        Self { partitions }
   29     29   
    }
   30     30   
}
   31     31   
   32     32   
/// Partition result returned from partition resolver
          33  +
#[derive(Debug, Default, Clone)]
   33     34   
pub(crate) struct Partition<'a> {
   34     35   
    name: &'a str,
   35     36   
    dns_suffix: &'a str,
   36     37   
    dual_stack_dns_suffix: &'a str,
   37     38   
    supports_fips: bool,
   38     39   
    supports_dual_stack: bool,
   39     40   
    implicit_global_region: &'a str,
   40     41   
}
   41     42   
   42     43   
#[allow(unused)]

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/endpoint_lib/diagnostic.rs

@@ -7,7 +45,46 @@
   27     27   
    pub(crate) fn capture<T, E: Into<Box<dyn Error + Send + Sync>>>(&mut self, err: Result<T, E>) -> Option<T> {
   28     28   
        match err {
   29     29   
            Ok(res) => Some(res),
   30     30   
            Err(e) => {
   31     31   
                self.report_error(e);
   32     32   
                None
   33     33   
            }
   34     34   
        }
   35     35   
    }
   36     36   
          37  +
    #[allow(dead_code)]
   37     38   
    pub(crate) fn take_last_error(&mut self) -> Option<Box<dyn Error + Send + Sync>> {
   38     39   
        self.last_error.take()
   39     40   
    }
   40     41   
   41     42   
    /// Create a new diagnostic collector
   42     43   
    pub(crate) fn new() -> Self {
   43     44   
        Self { last_error: None }
   44     45   
    }
   45     46   
}

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/endpoint_lib/partition.rs

@@ -3,3 +62,63 @@
   23     23   
    partitions: Vec<PartitionMetadata>,
   24     24   
}
   25     25   
   26     26   
impl PartitionResolver {
   27     27   
    pub(crate) fn from_partitions(partitions: Vec<PartitionMetadata>) -> Self {
   28     28   
        Self { partitions }
   29     29   
    }
   30     30   
}
   31     31   
   32     32   
/// Partition result returned from partition resolver
          33  +
#[derive(Debug, Default, Clone)]
   33     34   
pub(crate) struct Partition<'a> {
   34     35   
    name: &'a str,
   35     36   
    dns_suffix: &'a str,
   36     37   
    dual_stack_dns_suffix: &'a str,
   37     38   
    supports_fips: bool,
   38     39   
    supports_dual_stack: bool,
   39     40   
    implicit_global_region: &'a str,
   40     41   
}
   41     42   
   42     43   
#[allow(unused)]

tmp-codegen-diff/aws-sdk/sdk/sts/src/endpoint_lib/diagnostic.rs

@@ -7,7 +45,46 @@
   27     27   
    pub(crate) fn capture<T, E: Into<Box<dyn Error + Send + Sync>>>(&mut self, err: Result<T, E>) -> Option<T> {
   28     28   
        match err {
   29     29   
            Ok(res) => Some(res),
   30     30   
            Err(e) => {
   31     31   
                self.report_error(e);
   32     32   
                None
   33     33   
            }
   34     34   
        }
   35     35   
    }
   36     36   
          37  +
    #[allow(dead_code)]
   37     38   
    pub(crate) fn take_last_error(&mut self) -> Option<Box<dyn Error + Send + Sync>> {
   38     39   
        self.last_error.take()
   39     40   
    }
   40     41   
   41     42   
    /// Create a new diagnostic collector
   42     43   
    pub(crate) fn new() -> Self {
   43     44   
        Self { last_error: None }
   44     45   
    }
   45     46   
}

tmp-codegen-diff/aws-sdk/sdk/sts/src/endpoint_lib/partition.rs

@@ -3,3 +62,63 @@
   23     23   
    partitions: Vec<PartitionMetadata>,
   24     24   
}
   25     25   
   26     26   
impl PartitionResolver {
   27     27   
    pub(crate) fn from_partitions(partitions: Vec<PartitionMetadata>) -> Self {
   28     28   
        Self { partitions }
   29     29   
    }
   30     30   
}
   31     31   
   32     32   
/// Partition result returned from partition resolver
          33  +
#[derive(Debug, Default, Clone)]
   33     34   
pub(crate) struct Partition<'a> {
   34     35   
    name: &'a str,
   35     36   
    dns_suffix: &'a str,
   36     37   
    dual_stack_dns_suffix: &'a str,
   37     38   
    supports_fips: bool,
   38     39   
    supports_dual_stack: bool,
   39     40   
    implicit_global_region: &'a str,
   40     41   
}
   41     42   
   42     43   
#[allow(unused)]

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/endpoint_lib/diagnostic.rs

@@ -7,7 +45,46 @@
   27     27   
    pub(crate) fn capture<T, E: Into<Box<dyn Error + Send + Sync>>>(&mut self, err: Result<T, E>) -> Option<T> {
   28     28   
        match err {
   29     29   
            Ok(res) => Some(res),
   30     30   
            Err(e) => {
   31     31   
                self.report_error(e);
   32     32   
                None
   33     33   
            }
   34     34   
        }
   35     35   
    }
   36     36   
          37  +
    #[allow(dead_code)]
   37     38   
    pub(crate) fn take_last_error(&mut self) -> Option<Box<dyn Error + Send + Sync>> {
   38     39   
        self.last_error.take()
   39     40   
    }
   40     41   
   41     42   
    /// Create a new diagnostic collector
   42     43   
    pub(crate) fn new() -> Self {
   43     44   
        Self { last_error: None }
   44     45   
    }
   45     46   
}