Struct aws_sdk_s3::model::DeleteMarkerReplication
source · #[non_exhaustive]pub struct DeleteMarkerReplication { /* private fields */ }
Expand description
Specifies whether Amazon S3 replicates delete markers. If you specify a Filter
in your replication configuration, you must also include a DeleteMarkerReplication
element. If your Filter
includes a Tag
element, the DeleteMarkerReplication
Status
must be set to Disabled, because Amazon S3 does not support replicating delete markers for tag-based rules. For an example configuration, see Basic Rule Configuration.
For more information about delete marker replication, see Basic Rule Configuration.
If you are using an earlier version of the replication configuration, Amazon S3 handles replication of delete markers differently. For more information, see Backward Compatibility.
Implementations§
source§impl DeleteMarkerReplication
impl DeleteMarkerReplication
sourcepub fn status(&self) -> Option<&DeleteMarkerReplicationStatus>
pub fn status(&self) -> Option<&DeleteMarkerReplicationStatus>
Indicates whether to replicate delete markers.
Indicates whether to replicate delete markers.
source§impl DeleteMarkerReplication
impl DeleteMarkerReplication
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DeleteMarkerReplication
.
Examples found in repository?
7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390
pub fn deser_structure_crate_model_delete_marker_replication(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::DeleteMarkerReplication, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::DeleteMarkerReplication::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Status") /* Status com.amazonaws.s3#DeleteMarkerReplication$Status */ => {
let var_406 =
Some(
Result::<crate::model::DeleteMarkerReplicationStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeleteMarkerReplicationStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_406);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for DeleteMarkerReplication
impl Clone for DeleteMarkerReplication
source§fn clone(&self) -> DeleteMarkerReplication
fn clone(&self) -> DeleteMarkerReplication
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more