Struct aws_sdk_s3::model::SourceSelectionCriteria
source · #[non_exhaustive]pub struct SourceSelectionCriteria { /* private fields */ }
Expand description
A container that describes additional filters for identifying the source objects that you want to replicate. You can choose to enable or disable the replication of these objects. Currently, Amazon S3 supports only the filter that you can specify for objects created with server-side encryption using a customer managed key stored in Amazon Web Services Key Management Service (SSE-KMS).
Implementations§
source§impl SourceSelectionCriteria
impl SourceSelectionCriteria
sourcepub fn sse_kms_encrypted_objects(&self) -> Option<&SseKmsEncryptedObjects>
pub fn sse_kms_encrypted_objects(&self) -> Option<&SseKmsEncryptedObjects>
A container for filter information for the selection of Amazon S3 objects encrypted with Amazon Web Services KMS. If you include SourceSelectionCriteria
in the replication configuration, this element is required.
sourcepub fn replica_modifications(&self) -> Option<&ReplicaModifications>
pub fn replica_modifications(&self) -> Option<&ReplicaModifications>
A filter that you can specify for selections for modifications on replicas. Amazon S3 doesn't replicate replica modifications by default. In the latest version of replication configuration (when Filter
is specified), you can specify this element and set the status to Enabled
to replicate modifications on replicas.
If you don't specify the Filter
element, Amazon S3 assumes that the replication configuration is the earlier version, V1. In the earlier version, this element is not allowed
source§impl SourceSelectionCriteria
impl SourceSelectionCriteria
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SourceSelectionCriteria
.
Examples found in repository?
7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243
pub fn deser_structure_crate_model_source_selection_criteria(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SourceSelectionCriteria, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SourceSelectionCriteria::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("SseKmsEncryptedObjects") /* SseKmsEncryptedObjects com.amazonaws.s3#SourceSelectionCriteria$SseKmsEncryptedObjects */ => {
let var_396 =
Some(
crate::xml_deser::deser_structure_crate_model_sse_kms_encrypted_objects(&mut tag)
?
)
;
builder = builder.set_sse_kms_encrypted_objects(var_396);
}
,
s if s.matches("ReplicaModifications") /* ReplicaModifications com.amazonaws.s3#SourceSelectionCriteria$ReplicaModifications */ => {
let var_397 =
Some(
crate::xml_deser::deser_structure_crate_model_replica_modifications(&mut tag)
?
)
;
builder = builder.set_replica_modifications(var_397);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for SourceSelectionCriteria
impl Clone for SourceSelectionCriteria
source§fn clone(&self) -> SourceSelectionCriteria
fn clone(&self) -> SourceSelectionCriteria
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more