Struct aws_sdk_s3::types::InventoryConfiguration
source · #[non_exhaustive]pub struct InventoryConfiguration {
pub destination: Option<InventoryDestination>,
pub is_enabled: bool,
pub filter: Option<InventoryFilter>,
pub id: String,
pub included_object_versions: InventoryIncludedObjectVersions,
pub optional_fields: Option<Vec<InventoryOptionalField>>,
pub schedule: Option<InventorySchedule>,
}
Expand description
Specifies the inventory configuration for an Amazon S3 bucket. For more information, see GET Bucket inventory in the Amazon S3 API Reference.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.destination: Option<InventoryDestination>
Contains information about where to publish the inventory results.
is_enabled: bool
Specifies whether the inventory is enabled or disabled. If set to True
, an inventory list is generated. If set to False
, no inventory list is generated.
filter: Option<InventoryFilter>
Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.
id: String
The ID used to identify the inventory configuration.
included_object_versions: InventoryIncludedObjectVersions
Object versions to include in the inventory list. If set to All
, the list includes all the object versions, which adds the version-related fields VersionId
, IsLatest
, and DeleteMarker
to the list. If set to Current
, the list does not contain these version-related fields.
optional_fields: Option<Vec<InventoryOptionalField>>
Contains the optional fields that are included in the inventory results.
schedule: Option<InventorySchedule>
Specifies the schedule for generating inventory results.
Implementations§
source§impl InventoryConfiguration
impl InventoryConfiguration
sourcepub fn destination(&self) -> Option<&InventoryDestination>
pub fn destination(&self) -> Option<&InventoryDestination>
Contains information about where to publish the inventory results.
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Specifies whether the inventory is enabled or disabled. If set to True
, an inventory list is generated. If set to False
, no inventory list is generated.
sourcepub fn filter(&self) -> Option<&InventoryFilter>
pub fn filter(&self) -> Option<&InventoryFilter>
Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.
sourcepub fn included_object_versions(&self) -> &InventoryIncludedObjectVersions
pub fn included_object_versions(&self) -> &InventoryIncludedObjectVersions
Object versions to include in the inventory list. If set to All
, the list includes all the object versions, which adds the version-related fields VersionId
, IsLatest
, and DeleteMarker
to the list. If set to Current
, the list does not contain these version-related fields.
sourcepub fn optional_fields(&self) -> &[InventoryOptionalField]
pub fn optional_fields(&self) -> &[InventoryOptionalField]
Contains the optional fields that are included in the inventory results.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .optional_fields.is_none()
.
sourcepub fn schedule(&self) -> Option<&InventorySchedule>
pub fn schedule(&self) -> Option<&InventorySchedule>
Specifies the schedule for generating inventory results.
source§impl InventoryConfiguration
impl InventoryConfiguration
sourcepub fn builder() -> InventoryConfigurationBuilder
pub fn builder() -> InventoryConfigurationBuilder
Creates a new builder-style object to manufacture InventoryConfiguration
.
Trait Implementations§
source§impl Clone for InventoryConfiguration
impl Clone for InventoryConfiguration
source§fn clone(&self) -> InventoryConfiguration
fn clone(&self) -> InventoryConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InventoryConfiguration
impl Debug for InventoryConfiguration
source§impl PartialEq for InventoryConfiguration
impl PartialEq for InventoryConfiguration
source§fn eq(&self, other: &InventoryConfiguration) -> bool
fn eq(&self, other: &InventoryConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.