Struct aws_sdk_s3control::model::StorageLensConfiguration
source · #[non_exhaustive]pub struct StorageLensConfiguration { /* private fields */ }
Expand description
A container for the Amazon S3 Storage Lens configuration.
Implementations§
source§impl StorageLensConfiguration
impl StorageLensConfiguration
sourcepub fn account_level(&self) -> Option<&AccountLevel>
pub fn account_level(&self) -> Option<&AccountLevel>
A container for all the account-level configurations of your S3 Storage Lens configuration.
sourcepub fn include(&self) -> Option<&Include>
pub fn include(&self) -> Option<&Include>
A container for what is included in this configuration. This container can only be valid if there is no Exclude
container submitted, and it's not empty.
sourcepub fn exclude(&self) -> Option<&Exclude>
pub fn exclude(&self) -> Option<&Exclude>
A container for what is excluded in this configuration. This container can only be valid if there is no Include
container submitted, and it's not empty.
sourcepub fn data_export(&self) -> Option<&StorageLensDataExport>
pub fn data_export(&self) -> Option<&StorageLensDataExport>
A container to specify the properties of your S3 Storage Lens metrics export including, the destination, schema and format.
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
A container for whether the S3 Storage Lens configuration is enabled.
sourcepub fn aws_org(&self) -> Option<&StorageLensAwsOrg>
pub fn aws_org(&self) -> Option<&StorageLensAwsOrg>
A container for the Amazon Web Services organization for this S3 Storage Lens configuration.
sourcepub fn storage_lens_arn(&self) -> Option<&str>
pub fn storage_lens_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the S3 Storage Lens configuration. This property is read-only and follows the following format: arn:aws:s3:us-east-1:example-account-id:storage-lens/your-dashboard-name
source§impl StorageLensConfiguration
impl StorageLensConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StorageLensConfiguration
.
Examples found in repository?
2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085
pub fn deser_structure_crate_model_storage_lens_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StorageLensConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StorageLensConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Id") /* Id com.amazonaws.s3control#StorageLensConfiguration$Id */ => {
let var_118 =
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_118);
}
,
s if s.matches("AccountLevel") /* AccountLevel com.amazonaws.s3control#StorageLensConfiguration$AccountLevel */ => {
let var_119 =
Some(
crate::xml_deser::deser_structure_crate_model_account_level(&mut tag)
?
)
;
builder = builder.set_account_level(var_119);
}
,
s if s.matches("Include") /* Include com.amazonaws.s3control#StorageLensConfiguration$Include */ => {
let var_120 =
Some(
crate::xml_deser::deser_structure_crate_model_include(&mut tag)
?
)
;
builder = builder.set_include(var_120);
}
,
s if s.matches("Exclude") /* Exclude com.amazonaws.s3control#StorageLensConfiguration$Exclude */ => {
let var_121 =
Some(
crate::xml_deser::deser_structure_crate_model_exclude(&mut tag)
?
)
;
builder = builder.set_exclude(var_121);
}
,
s if s.matches("DataExport") /* DataExport com.amazonaws.s3control#StorageLensConfiguration$DataExport */ => {
let var_122 =
Some(
crate::xml_deser::deser_structure_crate_model_storage_lens_data_export(&mut tag)
?
)
;
builder = builder.set_data_export(var_122);
}
,
s if s.matches("IsEnabled") /* IsEnabled com.amazonaws.s3control#StorageLensConfiguration$IsEnabled */ => {
let var_123 =
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.s3control#IsEnabled`)"))
}
?
)
;
builder = builder.set_is_enabled(var_123);
}
,
s if s.matches("AwsOrg") /* AwsOrg com.amazonaws.s3control#StorageLensConfiguration$AwsOrg */ => {
let var_124 =
Some(
crate::xml_deser::deser_structure_crate_model_storage_lens_aws_org(&mut tag)
?
)
;
builder = builder.set_aws_org(var_124);
}
,
s if s.matches("StorageLensArn") /* StorageLensArn com.amazonaws.s3control#StorageLensConfiguration$StorageLensArn */ => {
let var_125 =
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_storage_lens_arn(var_125);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for StorageLensConfiguration
impl Clone for StorageLensConfiguration
source§fn clone(&self) -> StorageLensConfiguration
fn clone(&self) -> StorageLensConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more