Struct aws_sdk_s3control::model::S3BucketDestination
source · #[non_exhaustive]pub struct S3BucketDestination { /* private fields */ }
Expand description
A container for the bucket where the Amazon S3 Storage Lens metrics export files are located.
Implementations§
source§impl S3BucketDestination
impl S3BucketDestination
sourcepub fn output_schema_version(&self) -> Option<&OutputSchemaVersion>
pub fn output_schema_version(&self) -> Option<&OutputSchemaVersion>
The schema version of the export file.
sourcepub fn account_id(&self) -> Option<&str>
pub fn account_id(&self) -> Option<&str>
The account ID of the owner of the S3 Storage Lens metrics export bucket.
sourcepub fn arn(&self) -> Option<&str>
pub fn arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the bucket. This property is read-only and follows the following format: arn:aws:s3:us-east-1:example-account-id:bucket/your-destination-bucket-name
sourcepub fn prefix(&self) -> Option<&str>
pub fn prefix(&self) -> Option<&str>
The prefix of the destination bucket where the metrics export will be delivered.
sourcepub fn encryption(&self) -> Option<&StorageLensDataExportEncryption>
pub fn encryption(&self) -> Option<&StorageLensDataExportEncryption>
The container for the type encryption of the metrics exports in this bucket.
source§impl S3BucketDestination
impl S3BucketDestination
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture S3BucketDestination
.
Examples found in repository?
src/xml_deser.rs (line 5622)
5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706
pub fn deser_structure_crate_model_s3_bucket_destination(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::S3BucketDestination, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::S3BucketDestination::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Format") /* Format com.amazonaws.s3control#S3BucketDestination$Format */ => {
let var_262 =
Some(
Result::<crate::model::Format, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::Format::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_format(var_262);
}
,
s if s.matches("OutputSchemaVersion") /* OutputSchemaVersion com.amazonaws.s3control#S3BucketDestination$OutputSchemaVersion */ => {
let var_263 =
Some(
Result::<crate::model::OutputSchemaVersion, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::OutputSchemaVersion::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_output_schema_version(var_263);
}
,
s if s.matches("AccountId") /* AccountId com.amazonaws.s3control#S3BucketDestination$AccountId */ => {
let var_264 =
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_account_id(var_264);
}
,
s if s.matches("Arn") /* Arn com.amazonaws.s3control#S3BucketDestination$Arn */ => {
let var_265 =
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_arn(var_265);
}
,
s if s.matches("Prefix") /* Prefix com.amazonaws.s3control#S3BucketDestination$Prefix */ => {
let var_266 =
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_prefix(var_266);
}
,
s if s.matches("Encryption") /* Encryption com.amazonaws.s3control#S3BucketDestination$Encryption */ => {
let var_267 =
Some(
crate::xml_deser::deser_structure_crate_model_storage_lens_data_export_encryption(&mut tag)
?
)
;
builder = builder.set_encryption(var_267);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for S3BucketDestination
impl Clone for S3BucketDestination
source§fn clone(&self) -> S3BucketDestination
fn clone(&self) -> S3BucketDestination
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more