AWS SDK

AWS SDK

rev. f50aa8c7588f148ef5f1d01ff1bfa3ac2f1cbded

Files changed:

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

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

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

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

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

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

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

@@ -1,1 +140,138 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3         -
/// <p>The V1 S3 Metadata configuration for a general purpose bucket.</p><note>
    4         -
/// <p>If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete and re-create your configuration by using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a> so that you can expire journal table records and create a live inventory table.</p>
    5         -
/// </note>
           3  +
/// <p>The metadata table configuration for a general purpose bucket.</p>
    6      4   
#[non_exhaustive]
    7      5   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    8      6   
pub struct GetBucketMetadataTableConfigurationResult {
    9         -
    /// <p>The V1 S3 Metadata configuration for a general purpose bucket.</p>
           7  +
    /// <p>The metadata table configuration for a general purpose bucket.</p>
   10      8   
    pub metadata_table_configuration_result: ::std::option::Option<crate::types::MetadataTableConfigurationResult>,
   11      9   
    /// <p>The status of the metadata table. The status values are:</p>
   12     10   
    /// <ul>
   13     11   
    /// <li>
   14     12   
    /// <p><code>CREATING</code> - The metadata table is in the process of being created in the specified table bucket.</p></li>
   15     13   
    /// <li>
   16         -
    /// <p><code>ACTIVE</code> - The metadata table has been created successfully, and records are being delivered to the table.</p></li>
          14  +
    /// <p><code>ACTIVE</code> - The metadata table has been created successfully and records are being delivered to the table.</p></li>
   17     15   
    /// <li>
   18     16   
    /// <p><code>FAILED</code> - Amazon S3 is unable to create the metadata table, or Amazon S3 is unable to deliver records. See <code>ErrorDetails</code> for details.</p></li>
   19     17   
    /// </ul>
   20     18   
    pub status: ::std::string::String,
   21     19   
    /// <p>If the <code>CreateBucketMetadataTableConfiguration</code> request succeeds, but S3 Metadata was unable to create the table, this structure contains the error code and error message.</p>
   22     20   
    pub error: ::std::option::Option<crate::types::ErrorDetails>,
   23     21   
}
   24     22   
impl GetBucketMetadataTableConfigurationResult {
   25         -
    /// <p>The V1 S3 Metadata configuration for a general purpose bucket.</p>
          23  +
    /// <p>The metadata table configuration for a general purpose bucket.</p>
   26     24   
    pub fn metadata_table_configuration_result(&self) -> ::std::option::Option<&crate::types::MetadataTableConfigurationResult> {
   27     25   
        self.metadata_table_configuration_result.as_ref()
   28     26   
    }
   29     27   
    /// <p>The status of the metadata table. The status values are:</p>
   30     28   
    /// <ul>
   31     29   
    /// <li>
   32     30   
    /// <p><code>CREATING</code> - The metadata table is in the process of being created in the specified table bucket.</p></li>
   33     31   
    /// <li>
   34         -
    /// <p><code>ACTIVE</code> - The metadata table has been created successfully, and records are being delivered to the table.</p></li>
          32  +
    /// <p><code>ACTIVE</code> - The metadata table has been created successfully and records are being delivered to the table.</p></li>
   35     33   
    /// <li>
   36     34   
    /// <p><code>FAILED</code> - Amazon S3 is unable to create the metadata table, or Amazon S3 is unable to deliver records. See <code>ErrorDetails</code> for details.</p></li>
   37     35   
    /// </ul>
   38     36   
    pub fn status(&self) -> &str {
   39     37   
        use std::ops::Deref;
   40     38   
        self.status.deref()
   41     39   
    }
   42     40   
    /// <p>If the <code>CreateBucketMetadataTableConfiguration</code> request succeeds, but S3 Metadata was unable to create the table, this structure contains the error code and error message.</p>
   43     41   
    pub fn error(&self) -> ::std::option::Option<&crate::types::ErrorDetails> {
   44     42   
        self.error.as_ref()
   45     43   
    }
   46     44   
}
   47     45   
impl GetBucketMetadataTableConfigurationResult {
   48     46   
    /// Creates a new builder-style object to manufacture [`GetBucketMetadataTableConfigurationResult`](crate::types::GetBucketMetadataTableConfigurationResult).
   49     47   
    pub fn builder() -> crate::types::builders::GetBucketMetadataTableConfigurationResultBuilder {
   50     48   
        crate::types::builders::GetBucketMetadataTableConfigurationResultBuilder::default()
   51     49   
    }
   52     50   
}
   53     51   
   54     52   
/// A builder for [`GetBucketMetadataTableConfigurationResult`](crate::types::GetBucketMetadataTableConfigurationResult).
   55     53   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   56     54   
#[non_exhaustive]
   57     55   
pub struct GetBucketMetadataTableConfigurationResultBuilder {
   58     56   
    pub(crate) metadata_table_configuration_result: ::std::option::Option<crate::types::MetadataTableConfigurationResult>,
   59     57   
    pub(crate) status: ::std::option::Option<::std::string::String>,
   60     58   
    pub(crate) error: ::std::option::Option<crate::types::ErrorDetails>,
   61     59   
}
   62     60   
impl GetBucketMetadataTableConfigurationResultBuilder {
   63         -
    /// <p>The V1 S3 Metadata configuration for a general purpose bucket.</p>
          61  +
    /// <p>The metadata table configuration for a general purpose bucket.</p>
   64     62   
    /// This field is required.
   65     63   
    pub fn metadata_table_configuration_result(mut self, input: crate::types::MetadataTableConfigurationResult) -> Self {
   66     64   
        self.metadata_table_configuration_result = ::std::option::Option::Some(input);
   67     65   
        self
   68     66   
    }
   69         -
    /// <p>The V1 S3 Metadata configuration for a general purpose bucket.</p>
          67  +
    /// <p>The metadata table configuration for a general purpose bucket.</p>
   70     68   
    pub fn set_metadata_table_configuration_result(mut self, input: ::std::option::Option<crate::types::MetadataTableConfigurationResult>) -> Self {
   71     69   
        self.metadata_table_configuration_result = input;
   72     70   
        self
   73     71   
    }
   74         -
    /// <p>The V1 S3 Metadata configuration for a general purpose bucket.</p>
          72  +
    /// <p>The metadata table configuration for a general purpose bucket.</p>
   75     73   
    pub fn get_metadata_table_configuration_result(&self) -> &::std::option::Option<crate::types::MetadataTableConfigurationResult> {
   76     74   
        &self.metadata_table_configuration_result
   77     75   
    }
   78     76   
    /// <p>The status of the metadata table. The status values are:</p>
   79     77   
    /// <ul>
   80     78   
    /// <li>
   81     79   
    /// <p><code>CREATING</code> - The metadata table is in the process of being created in the specified table bucket.</p></li>
   82     80   
    /// <li>
   83         -
    /// <p><code>ACTIVE</code> - The metadata table has been created successfully, and records are being delivered to the table.</p></li>
          81  +
    /// <p><code>ACTIVE</code> - The metadata table has been created successfully and records are being delivered to the table.</p></li>
   84     82   
    /// <li>
   85     83   
    /// <p><code>FAILED</code> - Amazon S3 is unable to create the metadata table, or Amazon S3 is unable to deliver records. See <code>ErrorDetails</code> for details.</p></li>
   86     84   
    /// </ul>
   87     85   
    /// This field is required.
   88     86   
    pub fn status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
   89     87   
        self.status = ::std::option::Option::Some(input.into());
   90     88   
        self
   91     89   
    }
   92     90   
    /// <p>The status of the metadata table. The status values are:</p>
   93     91   
    /// <ul>
   94     92   
    /// <li>
   95     93   
    /// <p><code>CREATING</code> - The metadata table is in the process of being created in the specified table bucket.</p></li>
   96     94   
    /// <li>
   97         -
    /// <p><code>ACTIVE</code> - The metadata table has been created successfully, and records are being delivered to the table.</p></li>
          95  +
    /// <p><code>ACTIVE</code> - The metadata table has been created successfully and records are being delivered to the table.</p></li>
   98     96   
    /// <li>
   99     97   
    /// <p><code>FAILED</code> - Amazon S3 is unable to create the metadata table, or Amazon S3 is unable to deliver records. See <code>ErrorDetails</code> for details.</p></li>
  100     98   
    /// </ul>
  101     99   
    pub fn set_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  102    100   
        self.status = input;
  103    101   
        self
  104    102   
    }
  105    103   
    /// <p>The status of the metadata table. The status values are:</p>
  106    104   
    /// <ul>
  107    105   
    /// <li>
  108    106   
    /// <p><code>CREATING</code> - The metadata table is in the process of being created in the specified table bucket.</p></li>
  109    107   
    /// <li>
  110         -
    /// <p><code>ACTIVE</code> - The metadata table has been created successfully, and records are being delivered to the table.</p></li>
         108  +
    /// <p><code>ACTIVE</code> - The metadata table has been created successfully and records are being delivered to the table.</p></li>
  111    109   
    /// <li>
  112    110   
    /// <p><code>FAILED</code> - Amazon S3 is unable to create the metadata table, or Amazon S3 is unable to deliver records. See <code>ErrorDetails</code> for details.</p></li>
  113    111   
    /// </ul>
  114    112   
    pub fn get_status(&self) -> &::std::option::Option<::std::string::String> {
  115    113   
        &self.status
  116    114   
    }
  117    115   
    /// <p>If the <code>CreateBucketMetadataTableConfiguration</code> request succeeds, but S3 Metadata was unable to create the table, this structure contains the error code and error message.</p>
  118    116   
    pub fn error(mut self, input: crate::types::ErrorDetails) -> Self {
  119    117   
        self.error = ::std::option::Option::Some(input);
  120    118   
        self

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

@@ -1,1 +83,83 @@
   10     10   
    pub part_number_marker: ::std::option::Option<::std::string::String>,
   11     11   
    /// <p>When a list is truncated, this element specifies the last part in the list, as well as the value to use for the <code>PartNumberMarker</code> request parameter in a subsequent request.</p>
   12     12   
    pub next_part_number_marker: ::std::option::Option<::std::string::String>,
   13     13   
    /// <p>The maximum number of parts allowed in the response.</p>
   14     14   
    pub max_parts: ::std::option::Option<i32>,
   15     15   
    /// <p>Indicates whether the returned list of parts is truncated. A value of <code>true</code> indicates that the list was truncated. A list can be truncated if the number of parts exceeds the limit returned in the <code>MaxParts</code> element.</p>
   16     16   
    pub is_truncated: ::std::option::Option<bool>,
   17     17   
    /// <p>A container for elements related to a particular part. A response can contain zero or more <code>Parts</code> elements.</p><note>
   18     18   
    /// <ul>
   19     19   
    /// <li>
   20         -
    /// <p><b>General purpose buckets</b> - For <code>GetObjectAttributes</code>, if an additional checksum (including <code>x-amz-checksum-crc32</code>, <code>x-amz-checksum-crc32c</code>, <code>x-amz-checksum-sha1</code>, or <code>x-amz-checksum-sha256</code>) isn't applied to the object specified in the request, the response doesn't return the <code>Part</code> element.</p></li>
          20  +
    /// <p><b>General purpose buckets</b> - For <code>GetObjectAttributes</code>, if a additional checksum (including <code>x-amz-checksum-crc32</code>, <code>x-amz-checksum-crc32c</code>, <code>x-amz-checksum-sha1</code>, or <code>x-amz-checksum-sha256</code>) isn't applied to the object specified in the request, the response doesn't return <code>Part</code>.</p></li>
   21     21   
    /// <li>
   22         -
    /// <p><b>Directory buckets</b> - For <code>GetObjectAttributes</code>, regardless of whether an additional checksum is applied to the object specified in the request, the response returns the <code>Part</code> element.</p></li>
          22  +
    /// <p><b>Directory buckets</b> - For <code>GetObjectAttributes</code>, no matter whether a additional checksum is applied to the object specified in the request, the response returns <code>Part</code>.</p></li>
   23     23   
    /// </ul>
   24     24   
    /// </note>
   25     25   
    pub parts: ::std::option::Option<::std::vec::Vec<crate::types::ObjectPart>>,
   26     26   
}
   27     27   
impl GetObjectAttributesParts {
   28     28   
    /// <p>The total number of parts.</p>
   29     29   
    pub fn total_parts_count(&self) -> ::std::option::Option<i32> {
   30     30   
        self.total_parts_count
   31     31   
    }
   32     32   
    /// <p>The marker for the current part.</p>
   33     33   
    pub fn part_number_marker(&self) -> ::std::option::Option<&str> {
   34     34   
        self.part_number_marker.as_deref()
   35     35   
    }
   36     36   
    /// <p>When a list is truncated, this element specifies the last part in the list, as well as the value to use for the <code>PartNumberMarker</code> request parameter in a subsequent request.</p>
   37     37   
    pub fn next_part_number_marker(&self) -> ::std::option::Option<&str> {
   38     38   
        self.next_part_number_marker.as_deref()
   39     39   
    }
   40     40   
    /// <p>The maximum number of parts allowed in the response.</p>
   41     41   
    pub fn max_parts(&self) -> ::std::option::Option<i32> {
   42     42   
        self.max_parts
   43     43   
    }
   44     44   
    /// <p>Indicates whether the returned list of parts is truncated. A value of <code>true</code> indicates that the list was truncated. A list can be truncated if the number of parts exceeds the limit returned in the <code>MaxParts</code> element.</p>
   45     45   
    pub fn is_truncated(&self) -> ::std::option::Option<bool> {
   46     46   
        self.is_truncated
   47     47   
    }
   48     48   
    /// <p>A container for elements related to a particular part. A response can contain zero or more <code>Parts</code> elements.</p><note>
   49     49   
    /// <ul>
   50     50   
    /// <li>
   51         -
    /// <p><b>General purpose buckets</b> - For <code>GetObjectAttributes</code>, if an additional checksum (including <code>x-amz-checksum-crc32</code>, <code>x-amz-checksum-crc32c</code>, <code>x-amz-checksum-sha1</code>, or <code>x-amz-checksum-sha256</code>) isn't applied to the object specified in the request, the response doesn't return the <code>Part</code> element.</p></li>
          51  +
    /// <p><b>General purpose buckets</b> - For <code>GetObjectAttributes</code>, if a additional checksum (including <code>x-amz-checksum-crc32</code>, <code>x-amz-checksum-crc32c</code>, <code>x-amz-checksum-sha1</code>, or <code>x-amz-checksum-sha256</code>) isn't applied to the object specified in the request, the response doesn't return <code>Part</code>.</p></li>
   52     52   
    /// <li>
   53         -
    /// <p><b>Directory buckets</b> - For <code>GetObjectAttributes</code>, regardless of whether an additional checksum is applied to the object specified in the request, the response returns the <code>Part</code> element.</p></li>
          53  +
    /// <p><b>Directory buckets</b> - For <code>GetObjectAttributes</code>, no matter whether a additional checksum is applied to the object specified in the request, the response returns <code>Part</code>.</p></li>
   54     54   
    /// </ul>
   55     55   
    /// </note>
   56     56   
    ///
   57     57   
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.parts.is_none()`.
   58     58   
    pub fn parts(&self) -> &[crate::types::ObjectPart] {
   59     59   
        self.parts.as_deref().unwrap_or_default()
   60     60   
    }
   61     61   
}
   62     62   
impl GetObjectAttributesParts {
   63     63   
    /// Creates a new builder-style object to manufacture [`GetObjectAttributesParts`](crate::types::GetObjectAttributesParts).
@@ -128,128 +203,203 @@
  148    148   
    pub fn get_is_truncated(&self) -> &::std::option::Option<bool> {
  149    149   
        &self.is_truncated
  150    150   
    }
  151    151   
    /// Appends an item to `parts`.
  152    152   
    ///
  153    153   
    /// To override the contents of this collection use [`set_parts`](Self::set_parts).
  154    154   
    ///
  155    155   
    /// <p>A container for elements related to a particular part. A response can contain zero or more <code>Parts</code> elements.</p><note>
  156    156   
    /// <ul>
  157    157   
    /// <li>
  158         -
    /// <p><b>General purpose buckets</b> - For <code>GetObjectAttributes</code>, if an additional checksum (including <code>x-amz-checksum-crc32</code>, <code>x-amz-checksum-crc32c</code>, <code>x-amz-checksum-sha1</code>, or <code>x-amz-checksum-sha256</code>) isn't applied to the object specified in the request, the response doesn't return the <code>Part</code> element.</p></li>
         158  +
    /// <p><b>General purpose buckets</b> - For <code>GetObjectAttributes</code>, if a additional checksum (including <code>x-amz-checksum-crc32</code>, <code>x-amz-checksum-crc32c</code>, <code>x-amz-checksum-sha1</code>, or <code>x-amz-checksum-sha256</code>) isn't applied to the object specified in the request, the response doesn't return <code>Part</code>.</p></li>
  159    159   
    /// <li>
  160         -
    /// <p><b>Directory buckets</b> - For <code>GetObjectAttributes</code>, regardless of whether an additional checksum is applied to the object specified in the request, the response returns the <code>Part</code> element.</p></li>
         160  +
    /// <p><b>Directory buckets</b> - For <code>GetObjectAttributes</code>, no matter whether a additional checksum is applied to the object specified in the request, the response returns <code>Part</code>.</p></li>
  161    161   
    /// </ul>
  162    162   
    /// </note>
  163    163   
    pub fn parts(mut self, input: crate::types::ObjectPart) -> Self {
  164    164   
        let mut v = self.parts.unwrap_or_default();
  165    165   
        v.push(input);
  166    166   
        self.parts = ::std::option::Option::Some(v);
  167    167   
        self
  168    168   
    }
  169    169   
    /// <p>A container for elements related to a particular part. A response can contain zero or more <code>Parts</code> elements.</p><note>
  170    170   
    /// <ul>
  171    171   
    /// <li>
  172         -
    /// <p><b>General purpose buckets</b> - For <code>GetObjectAttributes</code>, if an additional checksum (including <code>x-amz-checksum-crc32</code>, <code>x-amz-checksum-crc32c</code>, <code>x-amz-checksum-sha1</code>, or <code>x-amz-checksum-sha256</code>) isn't applied to the object specified in the request, the response doesn't return the <code>Part</code> element.</p></li>
         172  +
    /// <p><b>General purpose buckets</b> - For <code>GetObjectAttributes</code>, if a additional checksum (including <code>x-amz-checksum-crc32</code>, <code>x-amz-checksum-crc32c</code>, <code>x-amz-checksum-sha1</code>, or <code>x-amz-checksum-sha256</code>) isn't applied to the object specified in the request, the response doesn't return <code>Part</code>.</p></li>
  173    173   
    /// <li>
  174         -
    /// <p><b>Directory buckets</b> - For <code>GetObjectAttributes</code>, regardless of whether an additional checksum is applied to the object specified in the request, the response returns the <code>Part</code> element.</p></li>
         174  +
    /// <p><b>Directory buckets</b> - For <code>GetObjectAttributes</code>, no matter whether a additional checksum is applied to the object specified in the request, the response returns <code>Part</code>.</p></li>
  175    175   
    /// </ul>
  176    176   
    /// </note>
  177    177   
    pub fn set_parts(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ObjectPart>>) -> Self {
  178    178   
        self.parts = input;
  179    179   
        self
  180    180   
    }
  181    181   
    /// <p>A container for elements related to a particular part. A response can contain zero or more <code>Parts</code> elements.</p><note>
  182    182   
    /// <ul>
  183    183   
    /// <li>
  184         -
    /// <p><b>General purpose buckets</b> - For <code>GetObjectAttributes</code>, if an additional checksum (including <code>x-amz-checksum-crc32</code>, <code>x-amz-checksum-crc32c</code>, <code>x-amz-checksum-sha1</code>, or <code>x-amz-checksum-sha256</code>) isn't applied to the object specified in the request, the response doesn't return the <code>Part</code> element.</p></li>
         184  +
    /// <p><b>General purpose buckets</b> - For <code>GetObjectAttributes</code>, if a additional checksum (including <code>x-amz-checksum-crc32</code>, <code>x-amz-checksum-crc32c</code>, <code>x-amz-checksum-sha1</code>, or <code>x-amz-checksum-sha256</code>) isn't applied to the object specified in the request, the response doesn't return <code>Part</code>.</p></li>
  185    185   
    /// <li>
  186         -
    /// <p><b>Directory buckets</b> - For <code>GetObjectAttributes</code>, regardless of whether an additional checksum is applied to the object specified in the request, the response returns the <code>Part</code> element.</p></li>
         186  +
    /// <p><b>Directory buckets</b> - For <code>GetObjectAttributes</code>, no matter whether a additional checksum is applied to the object specified in the request, the response returns <code>Part</code>.</p></li>
  187    187   
    /// </ul>
  188    188   
    /// </note>
  189    189   
    pub fn get_parts(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ObjectPart>> {
  190    190   
        &self.parts
  191    191   
    }
  192    192   
    /// Consumes the builder and constructs a [`GetObjectAttributesParts`](crate::types::GetObjectAttributesParts).
  193    193   
    pub fn build(self) -> crate::types::GetObjectAttributesParts {
  194    194   
        crate::types::GetObjectAttributesParts {
  195    195   
            total_parts_count: self.total_parts_count,
  196    196   
            part_number_marker: self.part_number_marker,

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

@@ -1,0 +116,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Describes the serialization format of the object.</p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct InputSerialization {
    7         -
    /// <p>Describes the serialization of a CSV-encoded object.</p>
    8         -
    pub csv: ::std::option::Option<crate::types::CsvInput>,
    9         -
    /// <p>Specifies object's compression format. Valid values: NONE, GZIP, BZIP2. Default Value: NONE.</p>
   10         -
    pub compression_type: ::std::option::Option<crate::types::CompressionType>,
   11         -
    /// <p>Specifies JSON as object's input serialization format.</p>
   12         -
    pub json: ::std::option::Option<crate::types::JsonInput>,
   13         -
    /// <p>Specifies Parquet as object's input serialization format.</p>
   14         -
    pub parquet: ::std::option::Option<crate::types::ParquetInput>,
   15         -
}
   16         -
impl InputSerialization {
   17         -
    /// <p>Describes the serialization of a CSV-encoded object.</p>
   18         -
    pub fn csv(&self) -> ::std::option::Option<&crate::types::CsvInput> {
   19         -
        self.csv.as_ref()
   20         -
    }
   21         -
    /// <p>Specifies object's compression format. Valid values: NONE, GZIP, BZIP2. Default Value: NONE.</p>
   22         -
    pub fn compression_type(&self) -> ::std::option::Option<&crate::types::CompressionType> {
   23         -
        self.compression_type.as_ref()
   24         -
    }
   25         -
    /// <p>Specifies JSON as object's input serialization format.</p>
   26         -
    pub fn json(&self) -> ::std::option::Option<&crate::types::JsonInput> {
   27         -
        self.json.as_ref()
   28         -
    }
   29         -
    /// <p>Specifies Parquet as object's input serialization format.</p>
   30         -
    pub fn parquet(&self) -> ::std::option::Option<&crate::types::ParquetInput> {
   31         -
        self.parquet.as_ref()
   32         -
    }
   33         -
}
   34         -
impl InputSerialization {
   35         -
    /// Creates a new builder-style object to manufacture [`InputSerialization`](crate::types::InputSerialization).
   36         -
    pub fn builder() -> crate::types::builders::InputSerializationBuilder {
   37         -
        crate::types::builders::InputSerializationBuilder::default()
   38         -
    }
   39         -
}
   40         -
   41         -
/// A builder for [`InputSerialization`](crate::types::InputSerialization).
   42         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   43         -
#[non_exhaustive]
   44         -
pub struct InputSerializationBuilder {
   45         -
    pub(crate) csv: ::std::option::Option<crate::types::CsvInput>,
   46         -
    pub(crate) compression_type: ::std::option::Option<crate::types::CompressionType>,
   47         -
    pub(crate) json: ::std::option::Option<crate::types::JsonInput>,
   48         -
    pub(crate) parquet: ::std::option::Option<crate::types::ParquetInput>,
   49         -
}
   50         -
impl InputSerializationBuilder {
   51         -
    /// <p>Describes the serialization of a CSV-encoded object.</p>
   52         -
    pub fn csv(mut self, input: crate::types::CsvInput) -> Self {
   53         -
        self.csv = ::std::option::Option::Some(input);
   54         -
        self
   55         -
    }
   56         -
    /// <p>Describes the serialization of a CSV-encoded object.</p>
   57         -
    pub fn set_csv(mut self, input: ::std::option::Option<crate::types::CsvInput>) -> Self {
   58         -
        self.csv = input;
   59         -
        self
   60         -
    }
   61         -
    /// <p>Describes the serialization of a CSV-encoded object.</p>
   62         -
    pub fn get_csv(&self) -> &::std::option::Option<crate::types::CsvInput> {
   63         -
        &self.csv
   64         -
    }
   65         -
    /// <p>Specifies object's compression format. Valid values: NONE, GZIP, BZIP2. Default Value: NONE.</p>
   66         -
    pub fn compression_type(mut self, input: crate::types::CompressionType) -> Self {
   67         -
        self.compression_type = ::std::option::Option::Some(input);
   68         -
        self
   69         -
    }
   70         -
    /// <p>Specifies object's compression format. Valid values: NONE, GZIP, BZIP2. Default Value: NONE.</p>
   71         -
    pub fn set_compression_type(mut self, input: ::std::option::Option<crate::types::CompressionType>) -> Self {
   72         -
        self.compression_type = input;
   73         -
        self
   74         -
    }
   75         -
    /// <p>Specifies object's compression format. Valid values: NONE, GZIP, BZIP2. Default Value: NONE.</p>
   76         -
    pub fn get_compression_type(&self) -> &::std::option::Option<crate::types::CompressionType> {
   77         -
        &self.compression_type
   78         -
    }
   79         -
    /// <p>Specifies JSON as object's input serialization format.</p>
   80         -
    pub fn json(mut self, input: crate::types::JsonInput) -> Self {
   81         -
        self.json = ::std::option::Option::Some(input);
   82         -
        self
   83         -
    }
   84         -
    /// <p>Specifies JSON as object's input serialization format.</p>
   85         -
    pub fn set_json(mut self, input: ::std::option::Option<crate::types::JsonInput>) -> Self {
   86         -
        self.json = input;
   87         -
        self
   88         -
    }
   89         -
    /// <p>Specifies JSON as object's input serialization format.</p>
   90         -
    pub fn get_json(&self) -> &::std::option::Option<crate::types::JsonInput> {
   91         -
        &self.json
   92         -
    }
   93         -
    /// <p>Specifies Parquet as object's input serialization format.</p>
   94         -
    pub fn parquet(mut self, input: crate::types::ParquetInput) -> Self {
   95         -
        self.parquet = ::std::option::Option::Some(input);
   96         -
        self
   97         -
    }
   98         -
    /// <p>Specifies Parquet as object's input serialization format.</p>
   99         -
    pub fn set_parquet(mut self, input: ::std::option::Option<crate::types::ParquetInput>) -> Self {
  100         -
        self.parquet = input;
  101         -
        self
  102         -
    }
  103         -
    /// <p>Specifies Parquet as object's input serialization format.</p>
  104         -
    pub fn get_parquet(&self) -> &::std::option::Option<crate::types::ParquetInput> {
  105         -
        &self.parquet
  106         -
    }
  107         -
    /// Consumes the builder and constructs a [`InputSerialization`](crate::types::InputSerialization).
  108         -
    pub fn build(self) -> crate::types::InputSerialization {
  109         -
        crate::types::InputSerialization {
  110         -
            csv: self.csv,
  111         -
            compression_type: self.compression_type,
  112         -
            json: self.json,
  113         -
            parquet: self.parquet,
  114         -
        }
  115         -
    }
  116         -
}

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

@@ -1,1 +33,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3         -
/// <p>Specifies the S3 Inventory configuration for an Amazon S3 bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html">GET Bucket inventory</a> in the <i>Amazon S3 API Reference</i>.</p>
           3  +
/// <p>Specifies the inventory configuration for an Amazon S3 bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html">GET Bucket inventory</a> in the <i>Amazon S3 API Reference</i>.</p>
    4      4   
#[non_exhaustive]
    5      5   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6      6   
pub struct InventoryConfiguration {
    7      7   
    /// <p>Contains information about where to publish the inventory results.</p>
    8      8   
    pub destination: ::std::option::Option<crate::types::InventoryDestination>,
    9      9   
    /// <p>Specifies whether the inventory is enabled or disabled. If set to <code>True</code>, an inventory list is generated. If set to <code>False</code>, no inventory list is generated.</p>
   10     10   
    pub is_enabled: bool,
   11     11   
    /// <p>Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.</p>
   12     12   
    pub filter: ::std::option::Option<crate::types::InventoryFilter>,
   13     13   
    /// <p>The ID used to identify the inventory configuration.</p>

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_inventory_configuration_state.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 `InventoryConfigurationState`, 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 inventoryconfigurationstate = unimplemented!();
   14         -
/// match inventoryconfigurationstate {
   15         -
///     InventoryConfigurationState::Disabled => { /* ... */ },
   16         -
///     InventoryConfigurationState::Enabled => { /* ... */ },
   17         -
///     other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
   18         -
///     _ => { /* ... */ },
   19         -
/// }
   20         -
/// ```
   21         -
/// The above code demonstrates that when `inventoryconfigurationstate` represents
   22         -
/// `NewFeature`, the execution path will lead to the second last match arm,
   23         -
/// even though the enum does not contain a variant `InventoryConfigurationState::NewFeature`
   24         -
/// in the current version of SDK. The reason is that the variable `other`,
   25         -
/// created by the `@` operator, is bound to
   26         -
/// `InventoryConfigurationState::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 `InventoryConfigurationState::NewFeature` is defined.
   30         -
/// Specifically, when `inventoryconfigurationstate` represents `NewFeature`,
   31         -
/// the execution path will hit the second last match arm as before by virtue of
   32         -
/// calling `as_str` on `InventoryConfigurationState::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 InventoryConfigurationState {
   45         -
    #[allow(missing_docs)] // documentation missing in model
   46         -
    Disabled,
   47         -
    #[allow(missing_docs)] // documentation missing in model
   48         -
    Enabled,
   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 InventoryConfigurationState {
   54         -
    fn from(s: &str) -> Self {
   55         -
        match s {
   56         -
            "DISABLED" => InventoryConfigurationState::Disabled,
   57         -
            "ENABLED" => InventoryConfigurationState::Enabled,
   58         -
            other => InventoryConfigurationState::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())),
   59         -
        }
   60         -
    }
   61         -
}
   62         -
impl ::std::str::FromStr for InventoryConfigurationState {
   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(InventoryConfigurationState::from(s))
   67         -
    }
   68         -
}
   69         -
impl InventoryConfigurationState {
   70         -
    /// Returns the `&str` value of the enum member.
   71         -
    pub fn as_str(&self) -> &str {
   72         -
        match self {
   73         -
            InventoryConfigurationState::Disabled => "DISABLED",
   74         -
            InventoryConfigurationState::Enabled => "ENABLED",
   75         -
            InventoryConfigurationState::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         -
        &["DISABLED", "ENABLED"]
   81         -
    }
   82         -
}
   83         -
impl ::std::convert::AsRef<str> for InventoryConfigurationState {
   84         -
    fn as_ref(&self) -> &str {
   85         -
        self.as_str()
   86         -
    }
   87         -
}
   88         -
impl InventoryConfigurationState {
   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 InventoryConfigurationState {
  101         -
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  102         -
        match self {
  103         -
            InventoryConfigurationState::Disabled => write!(f, "DISABLED"),
  104         -
            InventoryConfigurationState::Enabled => write!(f, "ENABLED"),
  105         -
            InventoryConfigurationState::Unknown(value) => write!(f, "{value}"),
  106         -
        }
  107         -
    }
  108         -
}

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

@@ -1,1 +33,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3         -
/// <p>Specifies the S3 Inventory configuration for an Amazon S3 bucket.</p>
           3  +
/// <p>Specifies the inventory configuration for an Amazon S3 bucket.</p>
    4      4   
#[non_exhaustive]
    5      5   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6      6   
pub struct InventoryDestination {
    7      7   
    /// <p>Contains the bucket name, file format, bucket owner (optional), and prefix (optional) where inventory results are published.</p>
    8      8   
    pub s3_bucket_destination: ::std::option::Option<crate::types::InventoryS3BucketDestination>,
    9      9   
}
   10     10   
impl InventoryDestination {
   11     11   
    /// <p>Contains the bucket name, file format, bucket owner (optional), and prefix (optional) where inventory results are published.</p>
   12     12   
    pub fn s3_bucket_destination(&self) -> ::std::option::Option<&crate::types::InventoryS3BucketDestination> {
   13     13   
        self.s3_bucket_destination.as_ref()

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

@@ -1,1 +33,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3         -
/// <p>Contains the type of server-side encryption used to encrypt the S3 Inventory results.</p>
           3  +
/// <p>Contains the type of server-side encryption used to encrypt the inventory results.</p>
    4      4   
#[non_exhaustive]
    5      5   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6      6   
pub struct InventoryEncryption {
    7      7   
    /// <p>Specifies the use of SSE-S3 to encrypt delivered inventory reports.</p>
    8      8   
    pub sses3: ::std::option::Option<crate::types::Sses3>,
    9      9   
    /// <p>Specifies the use of SSE-KMS to encrypt delivered inventory reports.</p>
   10     10   
    pub ssekms: ::std::option::Option<crate::types::Ssekms>,
   11     11   
}
   12     12   
impl InventoryEncryption {
   13     13   
    /// <p>Specifies the use of SSE-S3 to encrypt delivered inventory reports.</p>

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

@@ -1,1 +33,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3         -
/// <p>Specifies an S3 Inventory filter. The inventory only includes objects that meet the filter's criteria.</p>
           3  +
/// <p>Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.</p>
    4      4   
#[non_exhaustive]
    5      5   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6      6   
pub struct InventoryFilter {
    7      7   
    /// <p>The prefix that an object must have to be included in the inventory results.</p>
    8      8   
    pub prefix: ::std::string::String,
    9      9   
}
   10     10   
impl InventoryFilter {
   11     11   
    /// <p>The prefix that an object must have to be included in the inventory results.</p>
   12     12   
    pub fn prefix(&self) -> &str {
   13     13   
        use std::ops::Deref;

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

@@ -1,1 +33,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3         -
/// <p>Contains the bucket name, file format, bucket owner (optional), and prefix (optional) where S3 Inventory results are published.</p>
           3  +
/// <p>Contains the bucket name, file format, bucket owner (optional), and prefix (optional) where inventory results are published.</p>
    4      4   
#[non_exhaustive]
    5      5   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6      6   
pub struct InventoryS3BucketDestination {
    7      7   
    /// <p>The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.</p><note>
    8      8   
    /// <p>Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.</p>
    9      9   
    /// </note>
   10     10   
    pub account_id: ::std::option::Option<::std::string::String>,
   11     11   
    /// <p>The Amazon Resource Name (ARN) of the bucket where inventory results will be published.</p>
   12     12   
    pub bucket: ::std::string::String,
   13     13   
    /// <p>Specifies the output format of the inventory results.</p>

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

@@ -1,1 +33,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3         -
/// <p>Specifies the schedule for generating S3 Inventory results.</p>
           3  +
/// <p>Specifies the schedule for generating inventory results.</p>
    4      4   
#[non_exhaustive]
    5      5   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6      6   
pub struct InventorySchedule {
    7      7   
    /// <p>Specifies how frequently inventory results are produced.</p>
    8      8   
    pub frequency: crate::types::InventoryFrequency,
    9      9   
}
   10     10   
impl InventorySchedule {
   11     11   
    /// <p>Specifies how frequently inventory results are produced.</p>
   12     12   
    pub fn frequency(&self) -> &crate::types::InventoryFrequency {
   13     13   
        &self.frequency

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

@@ -1,0 +80,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>The inventory table configuration for an S3 Metadata configuration.</p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct InventoryTableConfiguration {
    7         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
    8         -
    pub configuration_state: crate::types::InventoryConfigurationState,
    9         -
    /// <p>The encryption configuration for the inventory table.</p>
   10         -
    pub encryption_configuration: ::std::option::Option<crate::types::MetadataTableEncryptionConfiguration>,
   11         -
}
   12         -
impl InventoryTableConfiguration {
   13         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
   14         -
    pub fn configuration_state(&self) -> &crate::types::InventoryConfigurationState {
   15         -
        &self.configuration_state
   16         -
    }
   17         -
    /// <p>The encryption configuration for the inventory table.</p>
   18         -
    pub fn encryption_configuration(&self) -> ::std::option::Option<&crate::types::MetadataTableEncryptionConfiguration> {
   19         -
        self.encryption_configuration.as_ref()
   20         -
    }
   21         -
}
   22         -
impl InventoryTableConfiguration {
   23         -
    /// Creates a new builder-style object to manufacture [`InventoryTableConfiguration`](crate::types::InventoryTableConfiguration).
   24         -
    pub fn builder() -> crate::types::builders::InventoryTableConfigurationBuilder {
   25         -
        crate::types::builders::InventoryTableConfigurationBuilder::default()
   26         -
    }
   27         -
}
   28         -
   29         -
/// A builder for [`InventoryTableConfiguration`](crate::types::InventoryTableConfiguration).
   30         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   31         -
#[non_exhaustive]
   32         -
pub struct InventoryTableConfigurationBuilder {
   33         -
    pub(crate) configuration_state: ::std::option::Option<crate::types::InventoryConfigurationState>,
   34         -
    pub(crate) encryption_configuration: ::std::option::Option<crate::types::MetadataTableEncryptionConfiguration>,
   35         -
}
   36         -
impl InventoryTableConfigurationBuilder {
   37         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
   38         -
    /// This field is required.
   39         -
    pub fn configuration_state(mut self, input: crate::types::InventoryConfigurationState) -> Self {
   40         -
        self.configuration_state = ::std::option::Option::Some(input);
   41         -
        self
   42         -
    }
   43         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
   44         -
    pub fn set_configuration_state(mut self, input: ::std::option::Option<crate::types::InventoryConfigurationState>) -> Self {
   45         -
        self.configuration_state = input;
   46         -
        self
   47         -
    }
   48         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
   49         -
    pub fn get_configuration_state(&self) -> &::std::option::Option<crate::types::InventoryConfigurationState> {
   50         -
        &self.configuration_state
   51         -
    }
   52         -
    /// <p>The encryption configuration for the inventory table.</p>
   53         -
    pub fn encryption_configuration(mut self, input: crate::types::MetadataTableEncryptionConfiguration) -> Self {
   54         -
        self.encryption_configuration = ::std::option::Option::Some(input);
   55         -
        self
   56         -
    }
   57         -
    /// <p>The encryption configuration for the inventory table.</p>
   58         -
    pub fn set_encryption_configuration(mut self, input: ::std::option::Option<crate::types::MetadataTableEncryptionConfiguration>) -> Self {
   59         -
        self.encryption_configuration = input;
   60         -
        self
   61         -
    }
   62         -
    /// <p>The encryption configuration for the inventory table.</p>
   63         -
    pub fn get_encryption_configuration(&self) -> &::std::option::Option<crate::types::MetadataTableEncryptionConfiguration> {
   64         -
        &self.encryption_configuration
   65         -
    }
   66         -
    /// Consumes the builder and constructs a [`InventoryTableConfiguration`](crate::types::InventoryTableConfiguration).
   67         -
    /// This method will fail if any of the following fields are not set:
   68         -
    /// - [`configuration_state`](crate::types::builders::InventoryTableConfigurationBuilder::configuration_state)
   69         -
    pub fn build(self) -> ::std::result::Result<crate::types::InventoryTableConfiguration, ::aws_smithy_types::error::operation::BuildError> {
   70         -
        ::std::result::Result::Ok(crate::types::InventoryTableConfiguration {
   71         -
            configuration_state: self.configuration_state.ok_or_else(|| {
   72         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
   73         -
                    "configuration_state",
   74         -
                    "configuration_state was not specified but it is required when building InventoryTableConfiguration",
   75         -
                )
   76         -
            })?,
   77         -
            encryption_configuration: self.encryption_configuration,
   78         -
        })
   79         -
    }
   80         -
}

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

@@ -1,0 +206,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>The inventory table configuration for an S3 Metadata configuration.</p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct InventoryTableConfigurationResult {
    7         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
    8         -
    pub configuration_state: crate::types::InventoryConfigurationState,
    9         -
    /// <p>The status of the inventory table. The status values are:</p>
   10         -
    /// <ul>
   11         -
    /// <li>
   12         -
    /// <p><code>CREATING</code> - The inventory table is in the process of being created in the specified Amazon Web Services managed table bucket.</p></li>
   13         -
    /// <li>
   14         -
    /// <p><code>BACKFILLING</code> - The inventory table is in the process of being backfilled. When you enable the inventory table for your metadata configuration, the table goes through a process known as backfilling, during which Amazon S3 scans your general purpose bucket to retrieve the initial metadata for all objects in the bucket. Depending on the number of objects in your bucket, this process can take several hours. When the backfilling process is finished, the status of your inventory table changes from <code>BACKFILLING</code> to <code>ACTIVE</code>. After backfilling is completed, updates to your objects are reflected in the inventory table within one hour.</p></li>
   15         -
    /// <li>
   16         -
    /// <p><code>ACTIVE</code> - The inventory table has been created successfully, and records are being delivered to the table.</p></li>
   17         -
    /// <li>
   18         -
    /// <p><code>FAILED</code> - Amazon S3 is unable to create the inventory table, or Amazon S3 is unable to deliver records.</p></li>
   19         -
    /// </ul>
   20         -
    pub table_status: ::std::option::Option<::std::string::String>,
   21         -
    /// <p>If an S3 Metadata V1 <code>CreateBucketMetadataTableConfiguration</code> or V2 <code>CreateBucketMetadataConfiguration</code> request succeeds, but S3 Metadata was unable to create the table, this structure contains the error code and error message.</p><note>
   22         -
    /// <p>If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete and re-create your configuration by using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a> so that you can expire journal table records and create a live inventory table.</p>
   23         -
    /// </note>
   24         -
    pub error: ::std::option::Option<crate::types::ErrorDetails>,
   25         -
    /// <p>The name of the inventory table.</p>
   26         -
    pub table_name: ::std::option::Option<::std::string::String>,
   27         -
    /// <p>The Amazon Resource Name (ARN) for the inventory table.</p>
   28         -
    pub table_arn: ::std::option::Option<::std::string::String>,
   29         -
}
   30         -
impl InventoryTableConfigurationResult {
   31         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
   32         -
    pub fn configuration_state(&self) -> &crate::types::InventoryConfigurationState {
   33         -
        &self.configuration_state
   34         -
    }
   35         -
    /// <p>The status of the inventory table. The status values are:</p>
   36         -
    /// <ul>
   37         -
    /// <li>
   38         -
    /// <p><code>CREATING</code> - The inventory table is in the process of being created in the specified Amazon Web Services managed table bucket.</p></li>
   39         -
    /// <li>
   40         -
    /// <p><code>BACKFILLING</code> - The inventory table is in the process of being backfilled. When you enable the inventory table for your metadata configuration, the table goes through a process known as backfilling, during which Amazon S3 scans your general purpose bucket to retrieve the initial metadata for all objects in the bucket. Depending on the number of objects in your bucket, this process can take several hours. When the backfilling process is finished, the status of your inventory table changes from <code>BACKFILLING</code> to <code>ACTIVE</code>. After backfilling is completed, updates to your objects are reflected in the inventory table within one hour.</p></li>
   41         -
    /// <li>
   42         -
    /// <p><code>ACTIVE</code> - The inventory table has been created successfully, and records are being delivered to the table.</p></li>
   43         -
    /// <li>
   44         -
    /// <p><code>FAILED</code> - Amazon S3 is unable to create the inventory table, or Amazon S3 is unable to deliver records.</p></li>
   45         -
    /// </ul>
   46         -
    pub fn table_status(&self) -> ::std::option::Option<&str> {
   47         -
        self.table_status.as_deref()
   48         -
    }
   49         -
    /// <p>If an S3 Metadata V1 <code>CreateBucketMetadataTableConfiguration</code> or V2 <code>CreateBucketMetadataConfiguration</code> request succeeds, but S3 Metadata was unable to create the table, this structure contains the error code and error message.</p><note>
   50         -
    /// <p>If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete and re-create your configuration by using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a> so that you can expire journal table records and create a live inventory table.</p>
   51         -
    /// </note>
   52         -
    pub fn error(&self) -> ::std::option::Option<&crate::types::ErrorDetails> {
   53         -
        self.error.as_ref()
   54         -
    }
   55         -
    /// <p>The name of the inventory table.</p>
   56         -
    pub fn table_name(&self) -> ::std::option::Option<&str> {
   57         -
        self.table_name.as_deref()
   58         -
    }
   59         -
    /// <p>The Amazon Resource Name (ARN) for the inventory table.</p>
   60         -
    pub fn table_arn(&self) -> ::std::option::Option<&str> {
   61         -
        self.table_arn.as_deref()
   62         -
    }
   63         -
}
   64         -
impl InventoryTableConfigurationResult {
   65         -
    /// Creates a new builder-style object to manufacture [`InventoryTableConfigurationResult`](crate::types::InventoryTableConfigurationResult).
   66         -
    pub fn builder() -> crate::types::builders::InventoryTableConfigurationResultBuilder {
   67         -
        crate::types::builders::InventoryTableConfigurationResultBuilder::default()
   68         -
    }
   69         -
}
   70         -
   71         -
/// A builder for [`InventoryTableConfigurationResult`](crate::types::InventoryTableConfigurationResult).
   72         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   73         -
#[non_exhaustive]
   74         -
pub struct InventoryTableConfigurationResultBuilder {
   75         -
    pub(crate) configuration_state: ::std::option::Option<crate::types::InventoryConfigurationState>,
   76         -
    pub(crate) table_status: ::std::option::Option<::std::string::String>,
   77         -
    pub(crate) error: ::std::option::Option<crate::types::ErrorDetails>,
   78         -
    pub(crate) table_name: ::std::option::Option<::std::string::String>,
   79         -
    pub(crate) table_arn: ::std::option::Option<::std::string::String>,
   80         -
}
   81         -
impl InventoryTableConfigurationResultBuilder {
   82         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
   83         -
    /// This field is required.
   84         -
    pub fn configuration_state(mut self, input: crate::types::InventoryConfigurationState) -> Self {
   85         -
        self.configuration_state = ::std::option::Option::Some(input);
   86         -
        self
   87         -
    }
   88         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
   89         -
    pub fn set_configuration_state(mut self, input: ::std::option::Option<crate::types::InventoryConfigurationState>) -> Self {
   90         -
        self.configuration_state = input;
   91         -
        self
   92         -
    }
   93         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
   94         -
    pub fn get_configuration_state(&self) -> &::std::option::Option<crate::types::InventoryConfigurationState> {
   95         -
        &self.configuration_state
   96         -
    }
   97         -
    /// <p>The status of the inventory table. The status values are:</p>
   98         -
    /// <ul>
   99         -
    /// <li>
  100         -
    /// <p><code>CREATING</code> - The inventory table is in the process of being created in the specified Amazon Web Services managed table bucket.</p></li>
  101         -
    /// <li>
  102         -
    /// <p><code>BACKFILLING</code> - The inventory table is in the process of being backfilled. When you enable the inventory table for your metadata configuration, the table goes through a process known as backfilling, during which Amazon S3 scans your general purpose bucket to retrieve the initial metadata for all objects in the bucket. Depending on the number of objects in your bucket, this process can take several hours. When the backfilling process is finished, the status of your inventory table changes from <code>BACKFILLING</code> to <code>ACTIVE</code>. After backfilling is completed, updates to your objects are reflected in the inventory table within one hour.</p></li>
  103         -
    /// <li>
  104         -
    /// <p><code>ACTIVE</code> - The inventory table has been created successfully, and records are being delivered to the table.</p></li>
  105         -
    /// <li>
  106         -
    /// <p><code>FAILED</code> - Amazon S3 is unable to create the inventory table, or Amazon S3 is unable to deliver records.</p></li>
  107         -
    /// </ul>
  108         -
    pub fn table_status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  109         -
        self.table_status = ::std::option::Option::Some(input.into());
  110         -
        self
  111         -
    }
  112         -
    /// <p>The status of the inventory table. The status values are:</p>
  113         -
    /// <ul>
  114         -
    /// <li>
  115         -
    /// <p><code>CREATING</code> - The inventory table is in the process of being created in the specified Amazon Web Services managed table bucket.</p></li>
  116         -
    /// <li>
  117         -
    /// <p><code>BACKFILLING</code> - The inventory table is in the process of being backfilled. When you enable the inventory table for your metadata configuration, the table goes through a process known as backfilling, during which Amazon S3 scans your general purpose bucket to retrieve the initial metadata for all objects in the bucket. Depending on the number of objects in your bucket, this process can take several hours. When the backfilling process is finished, the status of your inventory table changes from <code>BACKFILLING</code> to <code>ACTIVE</code>. After backfilling is completed, updates to your objects are reflected in the inventory table within one hour.</p></li>
  118         -
    /// <li>
  119         -
    /// <p><code>ACTIVE</code> - The inventory table has been created successfully, and records are being delivered to the table.</p></li>
  120         -
    /// <li>
  121         -
    /// <p><code>FAILED</code> - Amazon S3 is unable to create the inventory table, or Amazon S3 is unable to deliver records.</p></li>
  122         -
    /// </ul>
  123         -
    pub fn set_table_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  124         -
        self.table_status = input;
  125         -
        self
  126         -
    }
  127         -
    /// <p>The status of the inventory table. The status values are:</p>
  128         -
    /// <ul>
  129         -
    /// <li>
  130         -
    /// <p><code>CREATING</code> - The inventory table is in the process of being created in the specified Amazon Web Services managed table bucket.</p></li>
  131         -
    /// <li>
  132         -
    /// <p><code>BACKFILLING</code> - The inventory table is in the process of being backfilled. When you enable the inventory table for your metadata configuration, the table goes through a process known as backfilling, during which Amazon S3 scans your general purpose bucket to retrieve the initial metadata for all objects in the bucket. Depending on the number of objects in your bucket, this process can take several hours. When the backfilling process is finished, the status of your inventory table changes from <code>BACKFILLING</code> to <code>ACTIVE</code>. After backfilling is completed, updates to your objects are reflected in the inventory table within one hour.</p></li>
  133         -
    /// <li>
  134         -
    /// <p><code>ACTIVE</code> - The inventory table has been created successfully, and records are being delivered to the table.</p></li>
  135         -
    /// <li>
  136         -
    /// <p><code>FAILED</code> - Amazon S3 is unable to create the inventory table, or Amazon S3 is unable to deliver records.</p></li>
  137         -
    /// </ul>
  138         -
    pub fn get_table_status(&self) -> &::std::option::Option<::std::string::String> {
  139         -
        &self.table_status
  140         -
    }
  141         -
    /// <p>If an S3 Metadata V1 <code>CreateBucketMetadataTableConfiguration</code> or V2 <code>CreateBucketMetadataConfiguration</code> request succeeds, but S3 Metadata was unable to create the table, this structure contains the error code and error message.</p><note>
  142         -
    /// <p>If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete and re-create your configuration by using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a> so that you can expire journal table records and create a live inventory table.</p>
  143         -
    /// </note>
  144         -
    pub fn error(mut self, input: crate::types::ErrorDetails) -> Self {
  145         -
        self.error = ::std::option::Option::Some(input);
  146         -
        self
  147         -
    }
  148         -
    /// <p>If an S3 Metadata V1 <code>CreateBucketMetadataTableConfiguration</code> or V2 <code>CreateBucketMetadataConfiguration</code> request succeeds, but S3 Metadata was unable to create the table, this structure contains the error code and error message.</p><note>
  149         -
    /// <p>If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete and re-create your configuration by using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a> so that you can expire journal table records and create a live inventory table.</p>
  150         -
    /// </note>
  151         -
    pub fn set_error(mut self, input: ::std::option::Option<crate::types::ErrorDetails>) -> Self {
  152         -
        self.error = input;
  153         -
        self
  154         -
    }
  155         -
    /// <p>If an S3 Metadata V1 <code>CreateBucketMetadataTableConfiguration</code> or V2 <code>CreateBucketMetadataConfiguration</code> request succeeds, but S3 Metadata was unable to create the table, this structure contains the error code and error message.</p><note>
  156         -
    /// <p>If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete and re-create your configuration by using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a> so that you can expire journal table records and create a live inventory table.</p>
  157         -
    /// </note>
  158         -
    pub fn get_error(&self) -> &::std::option::Option<crate::types::ErrorDetails> {
  159         -
        &self.error
  160         -
    }
  161         -
    /// <p>The name of the inventory table.</p>
  162         -
    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  163         -
        self.table_name = ::std::option::Option::Some(input.into());
  164         -
        self
  165         -
    }
  166         -
    /// <p>The name of the inventory table.</p>
  167         -
    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  168         -
        self.table_name = input;
  169         -
        self
  170         -
    }
  171         -
    /// <p>The name of the inventory table.</p>
  172         -
    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
  173         -
        &self.table_name
  174         -
    }
  175         -
    /// <p>The Amazon Resource Name (ARN) for the inventory table.</p>
  176         -
    pub fn table_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  177         -
        self.table_arn = ::std::option::Option::Some(input.into());
  178         -
        self
  179         -
    }
  180         -
    /// <p>The Amazon Resource Name (ARN) for the inventory table.</p>
  181         -
    pub fn set_table_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  182         -
        self.table_arn = input;
  183         -
        self
  184         -
    }
  185         -
    /// <p>The Amazon Resource Name (ARN) for the inventory table.</p>
  186         -
    pub fn get_table_arn(&self) -> &::std::option::Option<::std::string::String> {
  187         -
        &self.table_arn
  188         -
    }
  189         -
    /// Consumes the builder and constructs a [`InventoryTableConfigurationResult`](crate::types::InventoryTableConfigurationResult).
  190         -
    /// This method will fail if any of the following fields are not set:
  191         -
    /// - [`configuration_state`](crate::types::builders::InventoryTableConfigurationResultBuilder::configuration_state)
  192         -
    pub fn build(self) -> ::std::result::Result<crate::types::InventoryTableConfigurationResult, ::aws_smithy_types::error::operation::BuildError> {
  193         -
        ::std::result::Result::Ok(crate::types::InventoryTableConfigurationResult {
  194         -
            configuration_state: self.configuration_state.ok_or_else(|| {
  195         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  196         -
                    "configuration_state",
  197         -
                    "configuration_state was not specified but it is required when building InventoryTableConfigurationResult",
  198         -
                )
  199         -
            })?,
  200         -
            table_status: self.table_status,
  201         -
            error: self.error,
  202         -
            table_name: self.table_name,
  203         -
            table_arn: self.table_arn,
  204         -
        })
  205         -
    }
  206         -
}

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

@@ -1,0 +80,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>The specified updates to the S3 Metadata inventory table configuration.</p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct InventoryTableConfigurationUpdates {
    7         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
    8         -
    pub configuration_state: crate::types::InventoryConfigurationState,
    9         -
    /// <p>The encryption configuration for the inventory table.</p>
   10         -
    pub encryption_configuration: ::std::option::Option<crate::types::MetadataTableEncryptionConfiguration>,
   11         -
}
   12         -
impl InventoryTableConfigurationUpdates {
   13         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
   14         -
    pub fn configuration_state(&self) -> &crate::types::InventoryConfigurationState {
   15         -
        &self.configuration_state
   16         -
    }
   17         -
    /// <p>The encryption configuration for the inventory table.</p>
   18         -
    pub fn encryption_configuration(&self) -> ::std::option::Option<&crate::types::MetadataTableEncryptionConfiguration> {
   19         -
        self.encryption_configuration.as_ref()
   20         -
    }
   21         -
}
   22         -
impl InventoryTableConfigurationUpdates {
   23         -
    /// Creates a new builder-style object to manufacture [`InventoryTableConfigurationUpdates`](crate::types::InventoryTableConfigurationUpdates).
   24         -
    pub fn builder() -> crate::types::builders::InventoryTableConfigurationUpdatesBuilder {
   25         -
        crate::types::builders::InventoryTableConfigurationUpdatesBuilder::default()
   26         -
    }
   27         -
}
   28         -
   29         -
/// A builder for [`InventoryTableConfigurationUpdates`](crate::types::InventoryTableConfigurationUpdates).
   30         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   31         -
#[non_exhaustive]
   32         -
pub struct InventoryTableConfigurationUpdatesBuilder {
   33         -
    pub(crate) configuration_state: ::std::option::Option<crate::types::InventoryConfigurationState>,
   34         -
    pub(crate) encryption_configuration: ::std::option::Option<crate::types::MetadataTableEncryptionConfiguration>,
   35         -
}
   36         -
impl InventoryTableConfigurationUpdatesBuilder {
   37         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
   38         -
    /// This field is required.
   39         -
    pub fn configuration_state(mut self, input: crate::types::InventoryConfigurationState) -> Self {
   40         -
        self.configuration_state = ::std::option::Option::Some(input);
   41         -
        self
   42         -
    }
   43         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
   44         -
    pub fn set_configuration_state(mut self, input: ::std::option::Option<crate::types::InventoryConfigurationState>) -> Self {
   45         -
        self.configuration_state = input;
   46         -
        self
   47         -
    }
   48         -
    /// <p>The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.</p>
   49         -
    pub fn get_configuration_state(&self) -> &::std::option::Option<crate::types::InventoryConfigurationState> {
   50         -
        &self.configuration_state
   51         -
    }
   52         -
    /// <p>The encryption configuration for the inventory table.</p>
   53         -
    pub fn encryption_configuration(mut self, input: crate::types::MetadataTableEncryptionConfiguration) -> Self {
   54         -
        self.encryption_configuration = ::std::option::Option::Some(input);
   55         -
        self
   56         -
    }
   57         -
    /// <p>The encryption configuration for the inventory table.</p>
   58         -
    pub fn set_encryption_configuration(mut self, input: ::std::option::Option<crate::types::MetadataTableEncryptionConfiguration>) -> Self {
   59         -
        self.encryption_configuration = input;
   60         -
        self
   61         -
    }
   62         -
    /// <p>The encryption configuration for the inventory table.</p>
   63         -
    pub fn get_encryption_configuration(&self) -> &::std::option::Option<crate::types::MetadataTableEncryptionConfiguration> {
   64         -
        &self.encryption_configuration
   65         -
    }
   66         -
    /// Consumes the builder and constructs a [`InventoryTableConfigurationUpdates`](crate::types::InventoryTableConfigurationUpdates).
   67         -
    /// This method will fail if any of the following fields are not set:
   68         -
    /// - [`configuration_state`](crate::types::builders::InventoryTableConfigurationUpdatesBuilder::configuration_state)
   69         -
    pub fn build(self) -> ::std::result::Result<crate::types::InventoryTableConfigurationUpdates, ::aws_smithy_types::error::operation::BuildError> {
   70         -
        ::std::result::Result::Ok(crate::types::InventoryTableConfigurationUpdates {
   71         -
            configuration_state: self.configuration_state.ok_or_else(|| {
   72         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
   73         -
                    "configuration_state",
   74         -
                    "configuration_state was not specified but it is required when building InventoryTableConfigurationUpdates",
   75         -
                )
   76         -
            })?,
   77         -
            encryption_configuration: self.encryption_configuration,
   78         -
        })
   79         -
    }
   80         -
}