AWS SDK

AWS SDK

rev. e6785b15a6b118e5a6960c94143c0d982a485bbb

Files changed:

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

@@ -1,1 +120,114 @@
    6      6   
/// variant in a current version of SDK, your code should continue to work when you
    7      7   
/// upgrade SDK to a future version in which the enum does include a variant for that
    8      8   
/// feature.
    9      9   
///
   10     10   
/// Here is an example of how you can make a match expression forward-compatible:
   11     11   
///
   12     12   
/// ```text
   13     13   
/// # let serversideencryption = unimplemented!();
   14     14   
/// match serversideencryption {
   15     15   
///     ServerSideEncryption::Aes256 => { /* ... */ },
   16         -
///     ServerSideEncryption::AwsFsx => { /* ... */ },
   17     16   
///     ServerSideEncryption::AwsKms => { /* ... */ },
   18     17   
///     ServerSideEncryption::AwsKmsDsse => { /* ... */ },
   19     18   
///     other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
   20     19   
///     _ => { /* ... */ },
   21     20   
/// }
   22     21   
/// ```
   23     22   
/// The above code demonstrates that when `serversideencryption` represents
   24     23   
/// `NewFeature`, the execution path will lead to the second last match arm,
   25     24   
/// even though the enum does not contain a variant `ServerSideEncryption::NewFeature`
   26     25   
/// in the current version of SDK. The reason is that the variable `other`,
   27     26   
/// created by the `@` operator, is bound to
   28     27   
/// `ServerSideEncryption::Unknown(UnknownVariantValue("NewFeature".to_owned()))`
   29     28   
/// and calling `as_str` on it yields `"NewFeature"`.
   30     29   
/// This match expression is forward-compatible when executed with a newer
   31     30   
/// version of SDK where the variant `ServerSideEncryption::NewFeature` is defined.
   32     31   
/// Specifically, when `serversideencryption` represents `NewFeature`,
   33     32   
/// the execution path will hit the second last match arm as before by virtue of
   34     33   
/// calling `as_str` on `ServerSideEncryption::NewFeature` also yielding `"NewFeature"`.
   35     34   
///
   36     35   
/// Explicitly matching on the `Unknown` variant should
   37     36   
/// be avoided for two reasons:
   38     37   
/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted.
   39     38   
/// - It might inadvertently shadow other intended match arms.
   40     39   
///
   41     40   
#[allow(missing_docs)] // documentation missing in model
   42     41   
#[non_exhaustive]
   43     42   
#[derive(
   44     43   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash,
   45     44   
)]
   46     45   
pub enum ServerSideEncryption {
   47     46   
    #[allow(missing_docs)] // documentation missing in model
   48     47   
    Aes256,
   49     48   
    #[allow(missing_docs)] // documentation missing in model
   50         -
    AwsFsx,
   51         -
    #[allow(missing_docs)] // documentation missing in model
   52     49   
    AwsKms,
   53     50   
    #[allow(missing_docs)] // documentation missing in model
   54     51   
    AwsKmsDsse,
   55     52   
    /// `Unknown` contains new variants that have been added since this code was generated.
   56     53   
    #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")]
   57     54   
    Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue),
   58     55   
}
   59     56   
impl ::std::convert::From<&str> for ServerSideEncryption {
   60     57   
    fn from(s: &str) -> Self {
   61     58   
        match s {
   62     59   
            "AES256" => ServerSideEncryption::Aes256,
   63         -
            "aws:fsx" => ServerSideEncryption::AwsFsx,
   64     60   
            "aws:kms" => ServerSideEncryption::AwsKms,
   65     61   
            "aws:kms:dsse" => ServerSideEncryption::AwsKmsDsse,
   66     62   
            other => ServerSideEncryption::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())),
   67     63   
        }
   68     64   
    }
   69     65   
}
   70     66   
impl ::std::str::FromStr for ServerSideEncryption {
   71     67   
    type Err = ::std::convert::Infallible;
   72     68   
   73     69   
    fn from_str(s: &str) -> ::std::result::Result<Self, <Self as ::std::str::FromStr>::Err> {
   74     70   
        ::std::result::Result::Ok(ServerSideEncryption::from(s))
   75     71   
    }
   76     72   
}
   77     73   
impl ServerSideEncryption {
   78     74   
    /// Returns the `&str` value of the enum member.
   79     75   
    pub fn as_str(&self) -> &str {
   80     76   
        match self {
   81     77   
            ServerSideEncryption::Aes256 => "AES256",
   82         -
            ServerSideEncryption::AwsFsx => "aws:fsx",
   83     78   
            ServerSideEncryption::AwsKms => "aws:kms",
   84     79   
            ServerSideEncryption::AwsKmsDsse => "aws:kms:dsse",
   85     80   
            ServerSideEncryption::Unknown(value) => value.as_str(),
   86     81   
        }
   87     82   
    }
   88     83   
    /// Returns all the `&str` representations of the enum members.
   89     84   
    pub const fn values() -> &'static [&'static str] {
   90         -
        &["AES256", "aws:fsx", "aws:kms", "aws:kms:dsse"]
          85  +
        &["AES256", "aws:kms", "aws:kms:dsse"]
   91     86   
    }
   92     87   
}
   93     88   
impl ::std::convert::AsRef<str> for ServerSideEncryption {
   94     89   
    fn as_ref(&self) -> &str {
   95     90   
        self.as_str()
   96     91   
    }
   97     92   
}
   98     93   
impl ServerSideEncryption {
   99     94   
    /// Parses the enum value while disallowing unknown variants.
  100     95   
    ///
  101     96   
    /// Unknown variants will result in an error.
  102     97   
    pub fn try_parse(value: &str) -> ::std::result::Result<Self, crate::error::UnknownVariantError> {
  103     98   
        match Self::from(value) {
  104     99   
            #[allow(deprecated)]
  105    100   
            Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)),
  106    101   
            known => Ok(known),
  107    102   
        }
  108    103   
    }
  109    104   
}
  110    105   
impl ::std::fmt::Display for ServerSideEncryption {
  111    106   
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  112    107   
        match self {
  113    108   
            ServerSideEncryption::Aes256 => write!(f, "AES256"),
  114         -
            ServerSideEncryption::AwsFsx => write!(f, "aws:fsx"),
  115    109   
            ServerSideEncryption::AwsKms => write!(f, "aws:kms"),
  116    110   
            ServerSideEncryption::AwsKmsDsse => write!(f, "aws:kms:dsse"),
  117    111   
            ServerSideEncryption::Unknown(value) => write!(f, "{value}"),
  118    112   
        }
  119    113   
    }
  120    114   
}

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

@@ -1,0 +94,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Container for the stats details.</p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct Stats {
    7         -
    /// <p>The total number of object bytes scanned.</p>
    8         -
    pub bytes_scanned: ::std::option::Option<i64>,
    9         -
    /// <p>The total number of uncompressed object bytes processed.</p>
   10         -
    pub bytes_processed: ::std::option::Option<i64>,
   11         -
    /// <p>The total number of bytes of records payload data returned.</p>
   12         -
    pub bytes_returned: ::std::option::Option<i64>,
   13         -
}
   14         -
impl Stats {
   15         -
    /// <p>The total number of object bytes scanned.</p>
   16         -
    pub fn bytes_scanned(&self) -> ::std::option::Option<i64> {
   17         -
        self.bytes_scanned
   18         -
    }
   19         -
    /// <p>The total number of uncompressed object bytes processed.</p>
   20         -
    pub fn bytes_processed(&self) -> ::std::option::Option<i64> {
   21         -
        self.bytes_processed
   22         -
    }
   23         -
    /// <p>The total number of bytes of records payload data returned.</p>
   24         -
    pub fn bytes_returned(&self) -> ::std::option::Option<i64> {
   25         -
        self.bytes_returned
   26         -
    }
   27         -
}
   28         -
impl Stats {
   29         -
    /// Creates a new builder-style object to manufacture [`Stats`](crate::types::Stats).
   30         -
    pub fn builder() -> crate::types::builders::StatsBuilder {
   31         -
        crate::types::builders::StatsBuilder::default()
   32         -
    }
   33         -
}
   34         -
   35         -
/// A builder for [`Stats`](crate::types::Stats).
   36         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   37         -
#[non_exhaustive]
   38         -
pub struct StatsBuilder {
   39         -
    pub(crate) bytes_scanned: ::std::option::Option<i64>,
   40         -
    pub(crate) bytes_processed: ::std::option::Option<i64>,
   41         -
    pub(crate) bytes_returned: ::std::option::Option<i64>,
   42         -
}
   43         -
impl StatsBuilder {
   44         -
    /// <p>The total number of object bytes scanned.</p>
   45         -
    pub fn bytes_scanned(mut self, input: i64) -> Self {
   46         -
        self.bytes_scanned = ::std::option::Option::Some(input);
   47         -
        self
   48         -
    }
   49         -
    /// <p>The total number of object bytes scanned.</p>
   50         -
    pub fn set_bytes_scanned(mut self, input: ::std::option::Option<i64>) -> Self {
   51         -
        self.bytes_scanned = input;
   52         -
        self
   53         -
    }
   54         -
    /// <p>The total number of object bytes scanned.</p>
   55         -
    pub fn get_bytes_scanned(&self) -> &::std::option::Option<i64> {
   56         -
        &self.bytes_scanned
   57         -
    }
   58         -
    /// <p>The total number of uncompressed object bytes processed.</p>
   59         -
    pub fn bytes_processed(mut self, input: i64) -> Self {
   60         -
        self.bytes_processed = ::std::option::Option::Some(input);
   61         -
        self
   62         -
    }
   63         -
    /// <p>The total number of uncompressed object bytes processed.</p>
   64         -
    pub fn set_bytes_processed(mut self, input: ::std::option::Option<i64>) -> Self {
   65         -
        self.bytes_processed = input;
   66         -
        self
   67         -
    }
   68         -
    /// <p>The total number of uncompressed object bytes processed.</p>
   69         -
    pub fn get_bytes_processed(&self) -> &::std::option::Option<i64> {
   70         -
        &self.bytes_processed
   71         -
    }
   72         -
    /// <p>The total number of bytes of records payload data returned.</p>
   73         -
    pub fn bytes_returned(mut self, input: i64) -> Self {
   74         -
        self.bytes_returned = ::std::option::Option::Some(input);
   75         -
        self
   76         -
    }
   77         -
    /// <p>The total number of bytes of records payload data returned.</p>
   78         -
    pub fn set_bytes_returned(mut self, input: ::std::option::Option<i64>) -> Self {
   79         -
        self.bytes_returned = input;
   80         -
        self
   81         -
    }
   82         -
    /// <p>The total number of bytes of records payload data returned.</p>
   83         -
    pub fn get_bytes_returned(&self) -> &::std::option::Option<i64> {
   84         -
        &self.bytes_returned
   85         -
    }
   86         -
    /// Consumes the builder and constructs a [`Stats`](crate::types::Stats).
   87         -
    pub fn build(self) -> crate::types::Stats {
   88         -
        crate::types::Stats {
   89         -
            bytes_scanned: self.bytes_scanned,
   90         -
            bytes_processed: self.bytes_processed,
   91         -
            bytes_returned: self.bytes_returned,
   92         -
        }
   93         -
    }
   94         -
}

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

@@ -1,0 +48,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Container for the Stats Event.</p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct StatsEvent {
    7         -
    /// <p>The Stats event details.</p>
    8         -
    pub details: ::std::option::Option<crate::types::Stats>,
    9         -
}
   10         -
impl StatsEvent {
   11         -
    /// <p>The Stats event details.</p>
   12         -
    pub fn details(&self) -> ::std::option::Option<&crate::types::Stats> {
   13         -
        self.details.as_ref()
   14         -
    }
   15         -
}
   16         -
impl StatsEvent {
   17         -
    /// Creates a new builder-style object to manufacture [`StatsEvent`](crate::types::StatsEvent).
   18         -
    pub fn builder() -> crate::types::builders::StatsEventBuilder {
   19         -
        crate::types::builders::StatsEventBuilder::default()
   20         -
    }
   21         -
}
   22         -
   23         -
/// A builder for [`StatsEvent`](crate::types::StatsEvent).
   24         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   25         -
#[non_exhaustive]
   26         -
pub struct StatsEventBuilder {
   27         -
    pub(crate) details: ::std::option::Option<crate::types::Stats>,
   28         -
}
   29         -
impl StatsEventBuilder {
   30         -
    /// <p>The Stats event details.</p>
   31         -
    pub fn details(mut self, input: crate::types::Stats) -> Self {
   32         -
        self.details = ::std::option::Option::Some(input);
   33         -
        self
   34         -
    }
   35         -
    /// <p>The Stats event details.</p>
   36         -
    pub fn set_details(mut self, input: ::std::option::Option<crate::types::Stats>) -> Self {
   37         -
        self.details = input;
   38         -
        self
   39         -
    }
   40         -
    /// <p>The Stats event details.</p>
   41         -
    pub fn get_details(&self) -> &::std::option::Option<crate::types::Stats> {
   42         -
        &self.details
   43         -
    }
   44         -
    /// Consumes the builder and constructs a [`StatsEvent`](crate::types::StatsEvent).
   45         -
    pub fn build(self) -> crate::types::StatsEvent {
   46         -
        crate::types::StatsEvent { details: self.details }
   47         -
    }
   48         -
}

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

@@ -1,1 +181,174 @@
    7      7   
/// upgrade SDK to a future version in which the enum does include a variant for that
    8      8   
/// feature.
    9      9   
///
   10     10   
/// Here is an example of how you can make a match expression forward-compatible:
   11     11   
///
   12     12   
/// ```text
   13     13   
/// # let storageclass = unimplemented!();
   14     14   
/// match storageclass {
   15     15   
///     StorageClass::DeepArchive => { /* ... */ },
   16     16   
///     StorageClass::ExpressOnezone => { /* ... */ },
   17         -
///     StorageClass::FsxOpenzfs => { /* ... */ },
   18     17   
///     StorageClass::Glacier => { /* ... */ },
   19     18   
///     StorageClass::GlacierIr => { /* ... */ },
   20     19   
///     StorageClass::IntelligentTiering => { /* ... */ },
   21     20   
///     StorageClass::OnezoneIa => { /* ... */ },
   22     21   
///     StorageClass::Outposts => { /* ... */ },
   23     22   
///     StorageClass::ReducedRedundancy => { /* ... */ },
   24     23   
///     StorageClass::Snow => { /* ... */ },
   25     24   
///     StorageClass::Standard => { /* ... */ },
   26     25   
///     StorageClass::StandardIa => { /* ... */ },
   27     26   
///     other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
   28     27   
///     _ => { /* ... */ },
   29     28   
/// }
   30     29   
/// ```
   31     30   
/// The above code demonstrates that when `storageclass` represents
   32     31   
/// `NewFeature`, the execution path will lead to the second last match arm,
   33     32   
/// even though the enum does not contain a variant `StorageClass::NewFeature`
   34     33   
/// in the current version of SDK. The reason is that the variable `other`,
   35     34   
/// created by the `@` operator, is bound to
   36     35   
/// `StorageClass::Unknown(UnknownVariantValue("NewFeature".to_owned()))`
   37     36   
/// and calling `as_str` on it yields `"NewFeature"`.
   38     37   
/// This match expression is forward-compatible when executed with a newer
   39     38   
/// version of SDK where the variant `StorageClass::NewFeature` is defined.
   40     39   
/// Specifically, when `storageclass` represents `NewFeature`,
   41     40   
/// the execution path will hit the second last match arm as before by virtue of
   42     41   
/// calling `as_str` on `StorageClass::NewFeature` also yielding `"NewFeature"`.
   43     42   
///
   44     43   
/// Explicitly matching on the `Unknown` variant should
   45     44   
/// be avoided for two reasons:
   46     45   
/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted.
   47     46   
/// - It might inadvertently shadow other intended match arms.
   48     47   
///
   49     48   
#[allow(missing_docs)] // documentation missing in model
   50     49   
#[non_exhaustive]
   51     50   
#[derive(
   52     51   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash,
   53     52   
)]
   54     53   
pub enum StorageClass {
   55     54   
    #[allow(missing_docs)] // documentation missing in model
   56     55   
    DeepArchive,
   57     56   
    #[allow(missing_docs)] // documentation missing in model
   58     57   
    ExpressOnezone,
   59     58   
    #[allow(missing_docs)] // documentation missing in model
   60         -
    FsxOpenzfs,
   61         -
    #[allow(missing_docs)] // documentation missing in model
   62     59   
    Glacier,
   63     60   
    #[allow(missing_docs)] // documentation missing in model
   64     61   
    GlacierIr,
   65     62   
    #[allow(missing_docs)] // documentation missing in model
   66     63   
    IntelligentTiering,
   67     64   
    #[allow(missing_docs)] // documentation missing in model
   68     65   
    OnezoneIa,
   69     66   
    #[allow(missing_docs)] // documentation missing in model
   70     67   
    Outposts,
   71     68   
    #[allow(missing_docs)] // documentation missing in model
   72     69   
    ReducedRedundancy,
   73     70   
    #[allow(missing_docs)] // documentation missing in model
   74     71   
    Snow,
   75     72   
    #[allow(missing_docs)] // documentation missing in model
   76     73   
    Standard,
   77     74   
    #[allow(missing_docs)] // documentation missing in model
   78     75   
    StandardIa,
   79     76   
    /// `Unknown` contains new variants that have been added since this code was generated.
   80     77   
    #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")]
   81     78   
    Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue),
   82     79   
}
   83     80   
impl ::std::convert::From<&str> for StorageClass {
   84     81   
    fn from(s: &str) -> Self {
   85     82   
        match s {
   86     83   
            "DEEP_ARCHIVE" => StorageClass::DeepArchive,
   87     84   
            "EXPRESS_ONEZONE" => StorageClass::ExpressOnezone,
   88         -
            "FSX_OPENZFS" => StorageClass::FsxOpenzfs,
   89     85   
            "GLACIER" => StorageClass::Glacier,
   90     86   
            "GLACIER_IR" => StorageClass::GlacierIr,
   91     87   
            "INTELLIGENT_TIERING" => StorageClass::IntelligentTiering,
   92     88   
            "ONEZONE_IA" => StorageClass::OnezoneIa,
   93     89   
            "OUTPOSTS" => StorageClass::Outposts,
   94     90   
            "REDUCED_REDUNDANCY" => StorageClass::ReducedRedundancy,
   95     91   
            "SNOW" => StorageClass::Snow,
   96     92   
            "STANDARD" => StorageClass::Standard,
   97     93   
            "STANDARD_IA" => StorageClass::StandardIa,
   98     94   
            other => StorageClass::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())),
   99     95   
        }
  100     96   
    }
  101     97   
}
  102     98   
impl ::std::str::FromStr for StorageClass {
  103     99   
    type Err = ::std::convert::Infallible;
  104    100   
  105    101   
    fn from_str(s: &str) -> ::std::result::Result<Self, <Self as ::std::str::FromStr>::Err> {
  106    102   
        ::std::result::Result::Ok(StorageClass::from(s))
  107    103   
    }
  108    104   
}
  109    105   
impl StorageClass {
  110    106   
    /// Returns the `&str` value of the enum member.
  111    107   
    pub fn as_str(&self) -> &str {
  112    108   
        match self {
  113    109   
            StorageClass::DeepArchive => "DEEP_ARCHIVE",
  114    110   
            StorageClass::ExpressOnezone => "EXPRESS_ONEZONE",
  115         -
            StorageClass::FsxOpenzfs => "FSX_OPENZFS",
  116    111   
            StorageClass::Glacier => "GLACIER",
  117    112   
            StorageClass::GlacierIr => "GLACIER_IR",
  118    113   
            StorageClass::IntelligentTiering => "INTELLIGENT_TIERING",
  119    114   
            StorageClass::OnezoneIa => "ONEZONE_IA",
  120    115   
            StorageClass::Outposts => "OUTPOSTS",
  121    116   
            StorageClass::ReducedRedundancy => "REDUCED_REDUNDANCY",
  122    117   
            StorageClass::Snow => "SNOW",
  123    118   
            StorageClass::Standard => "STANDARD",
  124    119   
            StorageClass::StandardIa => "STANDARD_IA",
  125    120   
            StorageClass::Unknown(value) => value.as_str(),
  126    121   
        }
  127    122   
    }
  128    123   
    /// Returns all the `&str` representations of the enum members.
  129    124   
    pub const fn values() -> &'static [&'static str] {
  130    125   
        &[
  131    126   
            "DEEP_ARCHIVE",
  132    127   
            "EXPRESS_ONEZONE",
  133         -
            "FSX_OPENZFS",
  134    128   
            "GLACIER",
  135    129   
            "GLACIER_IR",
  136    130   
            "INTELLIGENT_TIERING",
  137    131   
            "ONEZONE_IA",
  138    132   
            "OUTPOSTS",
  139    133   
            "REDUCED_REDUNDANCY",
  140    134   
            "SNOW",
  141    135   
            "STANDARD",
  142    136   
            "STANDARD_IA",
  143    137   
        ]
  144    138   
    }
  145    139   
}
  146    140   
impl ::std::convert::AsRef<str> for StorageClass {
  147    141   
    fn as_ref(&self) -> &str {
  148    142   
        self.as_str()
  149    143   
    }
  150    144   
}
  151    145   
impl StorageClass {
  152    146   
    /// Parses the enum value while disallowing unknown variants.
  153    147   
    ///
  154    148   
    /// Unknown variants will result in an error.
  155    149   
    pub fn try_parse(value: &str) -> ::std::result::Result<Self, crate::error::UnknownVariantError> {
  156    150   
        match Self::from(value) {
  157    151   
            #[allow(deprecated)]
  158    152   
            Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)),
  159    153   
            known => Ok(known),
  160    154   
        }
  161    155   
    }
  162    156   
}
  163    157   
impl ::std::fmt::Display for StorageClass {
  164    158   
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  165    159   
        match self {
  166    160   
            StorageClass::DeepArchive => write!(f, "DEEP_ARCHIVE"),
  167    161   
            StorageClass::ExpressOnezone => write!(f, "EXPRESS_ONEZONE"),
  168         -
            StorageClass::FsxOpenzfs => write!(f, "FSX_OPENZFS"),
  169    162   
            StorageClass::Glacier => write!(f, "GLACIER"),
  170    163   
            StorageClass::GlacierIr => write!(f, "GLACIER_IR"),
  171    164   
            StorageClass::IntelligentTiering => write!(f, "INTELLIGENT_TIERING"),
  172    165   
            StorageClass::OnezoneIa => write!(f, "ONEZONE_IA"),
  173    166   
            StorageClass::Outposts => write!(f, "OUTPOSTS"),
  174    167   
            StorageClass::ReducedRedundancy => write!(f, "REDUCED_REDUNDANCY"),
  175    168   
            StorageClass::Snow => write!(f, "SNOW"),
  176    169   
            StorageClass::Standard => write!(f, "STANDARD"),
  177    170   
            StorageClass::StandardIa => write!(f, "STANDARD_IA"),
  178    171   
            StorageClass::Unknown(value) => write!(f, "{value}"),

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

@@ -1,0 +108,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// When writing a match expression against `TableSseAlgorithm`, it is important to ensure
    4         -
/// your code is forward-compatible. That is, if a match arm handles a case for a
    5         -
/// feature that is supported by the service but has not been represented as an enum
    6         -
/// variant in a current version of SDK, your code should continue to work when you
    7         -
/// upgrade SDK to a future version in which the enum does include a variant for that
    8         -
/// feature.
    9         -
///
   10         -
/// Here is an example of how you can make a match expression forward-compatible:
   11         -
///
   12         -
/// ```text
   13         -
/// # let tablessealgorithm = unimplemented!();
   14         -
/// match tablessealgorithm {
   15         -
///     TableSseAlgorithm::Aes256 => { /* ... */ },
   16         -
///     TableSseAlgorithm::AwsKms => { /* ... */ },
   17         -
///     other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
   18         -
///     _ => { /* ... */ },
   19         -
/// }
   20         -
/// ```
   21         -
/// The above code demonstrates that when `tablessealgorithm` represents
   22         -
/// `NewFeature`, the execution path will lead to the second last match arm,
   23         -
/// even though the enum does not contain a variant `TableSseAlgorithm::NewFeature`
   24         -
/// in the current version of SDK. The reason is that the variable `other`,
   25         -
/// created by the `@` operator, is bound to
   26         -
/// `TableSseAlgorithm::Unknown(UnknownVariantValue("NewFeature".to_owned()))`
   27         -
/// and calling `as_str` on it yields `"NewFeature"`.
   28         -
/// This match expression is forward-compatible when executed with a newer
   29         -
/// version of SDK where the variant `TableSseAlgorithm::NewFeature` is defined.
   30         -
/// Specifically, when `tablessealgorithm` represents `NewFeature`,
   31         -
/// the execution path will hit the second last match arm as before by virtue of
   32         -
/// calling `as_str` on `TableSseAlgorithm::NewFeature` also yielding `"NewFeature"`.
   33         -
///
   34         -
/// Explicitly matching on the `Unknown` variant should
   35         -
/// be avoided for two reasons:
   36         -
/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted.
   37         -
/// - It might inadvertently shadow other intended match arms.
   38         -
///
   39         -
#[allow(missing_docs)] // documentation missing in model
   40         -
#[non_exhaustive]
   41         -
#[derive(
   42         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash,
   43         -
)]
   44         -
pub enum TableSseAlgorithm {
   45         -
    #[allow(missing_docs)] // documentation missing in model
   46         -
    Aes256,
   47         -
    #[allow(missing_docs)] // documentation missing in model
   48         -
    AwsKms,
   49         -
    /// `Unknown` contains new variants that have been added since this code was generated.
   50         -
    #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")]
   51         -
    Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue),
   52         -
}
   53         -
impl ::std::convert::From<&str> for TableSseAlgorithm {
   54         -
    fn from(s: &str) -> Self {
   55         -
        match s {
   56         -
            "AES256" => TableSseAlgorithm::Aes256,
   57         -
            "aws:kms" => TableSseAlgorithm::AwsKms,
   58         -
            other => TableSseAlgorithm::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())),
   59         -
        }
   60         -
    }
   61         -
}
   62         -
impl ::std::str::FromStr for TableSseAlgorithm {
   63         -
    type Err = ::std::convert::Infallible;
   64         -
   65         -
    fn from_str(s: &str) -> ::std::result::Result<Self, <Self as ::std::str::FromStr>::Err> {
   66         -
        ::std::result::Result::Ok(TableSseAlgorithm::from(s))
   67         -
    }
   68         -
}
   69         -
impl TableSseAlgorithm {
   70         -
    /// Returns the `&str` value of the enum member.
   71         -
    pub fn as_str(&self) -> &str {
   72         -
        match self {
   73         -
            TableSseAlgorithm::Aes256 => "AES256",
   74         -
            TableSseAlgorithm::AwsKms => "aws:kms",
   75         -
            TableSseAlgorithm::Unknown(value) => value.as_str(),
   76         -
        }
   77         -
    }
   78         -
    /// Returns all the `&str` representations of the enum members.
   79         -
    pub const fn values() -> &'static [&'static str] {
   80         -
        &["AES256", "aws:kms"]
   81         -
    }
   82         -
}
   83         -
impl ::std::convert::AsRef<str> for TableSseAlgorithm {
   84         -
    fn as_ref(&self) -> &str {
   85         -
        self.as_str()
   86         -
    }
   87         -
}
   88         -
impl TableSseAlgorithm {
   89         -
    /// Parses the enum value while disallowing unknown variants.
   90         -
    ///
   91         -
    /// Unknown variants will result in an error.
   92         -
    pub fn try_parse(value: &str) -> ::std::result::Result<Self, crate::error::UnknownVariantError> {
   93         -
        match Self::from(value) {
   94         -
            #[allow(deprecated)]
   95         -
            Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)),
   96         -
            known => Ok(known),
   97         -
        }
   98         -
    }
   99         -
}
  100         -
impl ::std::fmt::Display for TableSseAlgorithm {
  101         -
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  102         -
        match self {
  103         -
            TableSseAlgorithm::Aes256 => write!(f, "AES256"),
  104         -
            TableSseAlgorithm::AwsKms => write!(f, "aws:kms"),
  105         -
            TableSseAlgorithm::Unknown(value) => write!(f, "{value}"),
  106         -
        }
  107         -
    }
  108         -
}

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

@@ -1,1 +93,51 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub use crate::types::_copy_part_result::CopyPartResultBuilder;
    3      3   
    4         -
pub use crate::types::_journal_table_configuration_updates::JournalTableConfigurationUpdatesBuilder;
    5         -
    6         -
pub use crate::types::_record_expiration::RecordExpirationBuilder;
    7         -
    8         -
pub use crate::types::_inventory_table_configuration_updates::InventoryTableConfigurationUpdatesBuilder;
    9         -
   10         -
pub use crate::types::_metadata_table_encryption_configuration::MetadataTableEncryptionConfigurationBuilder;
   11         -
   12         -
pub use crate::types::_end_event::EndEventBuilder;
   13         -
   14         -
pub use crate::types::_continuation_event::ContinuationEventBuilder;
   15         -
   16         -
pub use crate::types::_progress_event::ProgressEventBuilder;
   17         -
   18         -
pub use crate::types::_progress::ProgressBuilder;
   19         -
   20         -
pub use crate::types::_stats_event::StatsEventBuilder;
   21         -
   22         -
pub use crate::types::_stats::StatsBuilder;
   23         -
   24         -
pub use crate::types::_records_event::RecordsEventBuilder;
   25         -
   26         -
pub use crate::types::_scan_range::ScanRangeBuilder;
   27         -
   28         -
pub use crate::types::_output_serialization::OutputSerializationBuilder;
   29         -
   30         -
pub use crate::types::_json_output::JsonOutputBuilder;
   31         -
   32         -
pub use crate::types::_csv_output::CsvOutputBuilder;
   33         -
   34         -
pub use crate::types::_input_serialization::InputSerializationBuilder;
   35         -
   36         -
pub use crate::types::_parquet_input::ParquetInputBuilder;
   37         -
   38         -
pub use crate::types::_json_input::JsonInputBuilder;
   39         -
   40         -
pub use crate::types::_csv_input::CsvInputBuilder;
   41         -
   42         -
pub use crate::types::_request_progress::RequestProgressBuilder;
   43         -
   44      4   
pub use crate::types::_restore_request::RestoreRequestBuilder;
   45      5   
   46      6   
pub use crate::types::_output_location::OutputLocationBuilder;
   47      7   
   48      8   
pub use crate::types::_s3_location::S3LocationBuilder;
   49      9   
   50     10   
pub use crate::types::_metadata_entry::MetadataEntryBuilder;
   51     11   
   52     12   
pub use crate::types::_tagging::TaggingBuilder;
   53     13   
   54     14   
pub use crate::types::_tag::TagBuilder;
   55     15   
   56     16   
pub use crate::types::_grant::GrantBuilder;
   57     17   
   58     18   
pub use crate::types::_grantee::GranteeBuilder;
   59     19   
   60     20   
pub use crate::types::_encryption::EncryptionBuilder;
   61     21   
   62         -
pub use crate::types::_select_parameters::SelectParametersBuilder;
   63         -
   64     22   
pub use crate::types::_glacier_job_parameters::GlacierJobParametersBuilder;
   65     23   
   66     24   
pub use crate::types::_public_access_block_configuration::PublicAccessBlockConfigurationBuilder;
   67     25   
   68     26   
pub use crate::types::_object_lock_retention::ObjectLockRetentionBuilder;
   69     27   
   70     28   
pub use crate::types::_object_lock_configuration::ObjectLockConfigurationBuilder;
   71     29   
   72     30   
pub use crate::types::_object_lock_rule::ObjectLockRuleBuilder;
   73     31   
@@ -236,194 +306,248 @@
  256    214   
pub use crate::types::_policy_status::PolicyStatusBuilder;
  257    215   
  258    216   
pub use crate::types::_get_bucket_metadata_table_configuration_result::GetBucketMetadataTableConfigurationResultBuilder;
  259    217   
  260    218   
pub use crate::types::_error_details::ErrorDetailsBuilder;
  261    219   
  262    220   
pub use crate::types::_metadata_table_configuration_result::MetadataTableConfigurationResultBuilder;
  263    221   
  264    222   
pub use crate::types::_s3_tables_destination_result::S3TablesDestinationResultBuilder;
  265    223   
  266         -
pub use crate::types::_get_bucket_metadata_configuration_result::GetBucketMetadataConfigurationResultBuilder;
  267         -
  268         -
pub use crate::types::_metadata_configuration_result::MetadataConfigurationResultBuilder;
  269         -
  270         -
pub use crate::types::_inventory_table_configuration_result::InventoryTableConfigurationResultBuilder;
  271         -
  272         -
pub use crate::types::_journal_table_configuration_result::JournalTableConfigurationResultBuilder;
  273         -
  274         -
pub use crate::types::_destination_result::DestinationResultBuilder;
  275         -
  276    224   
pub use crate::types::_error::ErrorBuilder;
  277    225   
  278    226   
pub use crate::types::_deleted_object::DeletedObjectBuilder;
  279    227   
  280    228   
pub use crate::types::_delete::DeleteBuilder;
  281    229   
  282    230   
pub use crate::types::_object_identifier::ObjectIdentifierBuilder;
  283    231   
  284    232   
pub use crate::types::_session_credentials::SessionCredentialsBuilder;
  285    233   
  286    234   
pub use crate::types::_metadata_table_configuration::MetadataTableConfigurationBuilder;
  287    235   
  288    236   
pub use crate::types::_s3_tables_destination::S3TablesDestinationBuilder;
  289    237   
  290         -
pub use crate::types::_metadata_configuration::MetadataConfigurationBuilder;
  291         -
  292         -
pub use crate::types::_inventory_table_configuration::InventoryTableConfigurationBuilder;
  293         -
  294         -
pub use crate::types::_journal_table_configuration::JournalTableConfigurationBuilder;
  295         -
  296    238   
pub use crate::types::_create_bucket_configuration::CreateBucketConfigurationBuilder;
  297    239   
  298    240   
pub use crate::types::_bucket_info::BucketInfoBuilder;
  299    241   
  300    242   
pub use crate::types::_location_info::LocationInfoBuilder;
  301    243   
  302    244   
pub use crate::types::_copy_object_result::CopyObjectResultBuilder;
  303    245   
  304    246   
pub use crate::types::_completed_multipart_upload::CompletedMultipartUploadBuilder;
  305    247   

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         -
    &nbsp;&nbsp;&nbsp;`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   
}