Struct aws_sdk_s3::model::Destination
source · #[non_exhaustive]pub struct Destination { /* private fields */ }
Expand description
Specifies information about where to publish analysis or configuration results for an Amazon S3 bucket and S3 Replication Time Control (S3 RTC).
Implementations§
source§impl Destination
impl Destination
sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.
sourcepub fn account(&self) -> Option<&str>
pub fn account(&self) -> Option<&str>
Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the Amazon Web Services account that owns the destination bucket by specifying the AccessControlTranslation
property, this is the account ID of the destination bucket owner. For more information, see Replication Additional Configuration: Changing the Replica Owner in the Amazon S3 User Guide.
sourcepub fn storage_class(&self) -> Option<&StorageClass>
pub fn storage_class(&self) -> Option<&StorageClass>
The storage class to use when replicating objects, such as S3 Standard or reduced redundancy. By default, Amazon S3 uses the storage class of the source object to create the object replica.
For valid values, see the StorageClass
element of the PUT Bucket replication action in the Amazon S3 API Reference.
sourcepub fn access_control_translation(&self) -> Option<&AccessControlTranslation>
pub fn access_control_translation(&self) -> Option<&AccessControlTranslation>
Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the Amazon Web Services account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same Amazon Web Services account that owns the source object.
sourcepub fn encryption_configuration(&self) -> Option<&EncryptionConfiguration>
pub fn encryption_configuration(&self) -> Option<&EncryptionConfiguration>
A container that provides information about encryption. If SourceSelectionCriteria
is specified, you must specify this element.
sourcepub fn replication_time(&self) -> Option<&ReplicationTime>
pub fn replication_time(&self) -> Option<&ReplicationTime>
A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a Metrics
block.
source§impl Destination
impl Destination
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture Destination
.
Examples found in repository?
7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363
pub fn deser_structure_crate_model_destination(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Destination, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Destination::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Bucket") /* Bucket com.amazonaws.s3#Destination$Bucket */ => {
let var_399 =
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_bucket(var_399);
}
,
s if s.matches("Account") /* Account com.amazonaws.s3#Destination$Account */ => {
let var_400 =
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(var_400);
}
,
s if s.matches("StorageClass") /* StorageClass com.amazonaws.s3#Destination$StorageClass */ => {
let var_401 =
Some(
Result::<crate::model::StorageClass, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StorageClass::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_storage_class(var_401);
}
,
s if s.matches("AccessControlTranslation") /* AccessControlTranslation com.amazonaws.s3#Destination$AccessControlTranslation */ => {
let var_402 =
Some(
crate::xml_deser::deser_structure_crate_model_access_control_translation(&mut tag)
?
)
;
builder = builder.set_access_control_translation(var_402);
}
,
s if s.matches("EncryptionConfiguration") /* EncryptionConfiguration com.amazonaws.s3#Destination$EncryptionConfiguration */ => {
let var_403 =
Some(
crate::xml_deser::deser_structure_crate_model_encryption_configuration(&mut tag)
?
)
;
builder = builder.set_encryption_configuration(var_403);
}
,
s if s.matches("ReplicationTime") /* ReplicationTime com.amazonaws.s3#Destination$ReplicationTime */ => {
let var_404 =
Some(
crate::xml_deser::deser_structure_crate_model_replication_time(&mut tag)
?
)
;
builder = builder.set_replication_time(var_404);
}
,
s if s.matches("Metrics") /* Metrics com.amazonaws.s3#Destination$Metrics */ => {
let var_405 =
Some(
crate::xml_deser::deser_structure_crate_model_metrics(&mut tag)
?
)
;
builder = builder.set_metrics(var_405);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for Destination
impl Clone for Destination
source§fn clone(&self) -> Destination
fn clone(&self) -> Destination
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more