Struct aws_sdk_s3::model::InventoryConfiguration
source · #[non_exhaustive]pub struct InventoryConfiguration { /* private fields */ }
Expand description
Specifies the inventory configuration for an Amazon S3 bucket. For more information, see GET Bucket inventory in the Amazon S3 API Reference.
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
) -> Option<&InventoryIncludedObjectVersions>
pub fn included_object_versions(
&self
) -> Option<&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) -> Option<&[InventoryOptionalField]>
pub fn optional_fields(&self) -> Option<&[InventoryOptionalField]>
Contains the optional fields that are included in the inventory results.
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() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture InventoryConfiguration
.
Examples found in repository?
4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111
pub fn deser_structure_crate_model_inventory_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InventoryConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InventoryConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Destination") /* Destination com.amazonaws.s3#InventoryConfiguration$Destination */ => {
let var_222 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_destination(&mut tag)
?
)
;
builder = builder.set_destination(var_222);
}
,
s if s.matches("IsEnabled") /* IsEnabled com.amazonaws.s3#InventoryConfiguration$IsEnabled */ => {
let var_223 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.s3#IsEnabled`)"))
}
?
)
;
builder = builder.set_is_enabled(var_223);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#InventoryConfiguration$Filter */ => {
let var_224 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_224);
}
,
s if s.matches("Id") /* Id com.amazonaws.s3#InventoryConfiguration$Id */ => {
let var_225 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_id(var_225);
}
,
s if s.matches("IncludedObjectVersions") /* IncludedObjectVersions com.amazonaws.s3#InventoryConfiguration$IncludedObjectVersions */ => {
let var_226 =
Some(
Result::<crate::model::InventoryIncludedObjectVersions, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InventoryIncludedObjectVersions::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_included_object_versions(var_226);
}
,
s if s.matches("OptionalFields") /* OptionalFields com.amazonaws.s3#InventoryConfiguration$OptionalFields */ => {
let var_227 =
Some(
crate::xml_deser::deser_list_com_amazonaws_s3_inventory_optional_fields(&mut tag)
?
)
;
builder = builder.set_optional_fields(var_227);
}
,
s if s.matches("Schedule") /* Schedule com.amazonaws.s3#InventoryConfiguration$Schedule */ => {
let var_228 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_schedule(&mut tag)
?
)
;
builder = builder.set_schedule(var_228);
}
,
_ => {}
}
}
Ok(builder.build())
}
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 more