@Stability(value=Stable)
public static interface CfnBucket.ReplicationConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
You can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3.*;
ReplicationConfigurationProperty replicationConfigurationProperty = ReplicationConfigurationProperty.builder()
.role("role")
.rules(List.of(ReplicationRuleProperty.builder()
.destination(ReplicationDestinationProperty.builder()
.bucket("bucket")
// the properties below are optional
.accessControlTranslation(AccessControlTranslationProperty.builder()
.owner("owner")
.build())
.account("account")
.encryptionConfiguration(EncryptionConfigurationProperty.builder()
.replicaKmsKeyId("replicaKmsKeyId")
.build())
.metrics(MetricsProperty.builder()
.status("status")
// the properties below are optional
.eventThreshold(ReplicationTimeValueProperty.builder()
.minutes(123)
.build())
.build())
.replicationTime(ReplicationTimeProperty.builder()
.status("status")
.time(ReplicationTimeValueProperty.builder()
.minutes(123)
.build())
.build())
.storageClass("storageClass")
.build())
.status("status")
// the properties below are optional
.deleteMarkerReplication(DeleteMarkerReplicationProperty.builder()
.status("status")
.build())
.filter(ReplicationRuleFilterProperty.builder()
.and(ReplicationRuleAndOperatorProperty.builder()
.prefix("prefix")
.tagFilters(List.of(TagFilterProperty.builder()
.key("key")
.value("value")
.build()))
.build())
.prefix("prefix")
.tagFilter(TagFilterProperty.builder()
.key("key")
.value("value")
.build())
.build())
.id("id")
.prefix("prefix")
.priority(123)
.sourceSelectionCriteria(SourceSelectionCriteriaProperty.builder()
.replicaModifications(ReplicaModificationsProperty.builder()
.status("status")
.build())
.sseKmsEncryptedObjects(SseKmsEncryptedObjectsProperty.builder()
.status("status")
.build())
.build())
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBucket.ReplicationConfigurationProperty.Builder
A builder for
CfnBucket.ReplicationConfigurationProperty |
static class |
CfnBucket.ReplicationConfigurationProperty.Jsii$Proxy
An implementation for
CfnBucket.ReplicationConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBucket.ReplicationConfigurationProperty.Builder |
builder() |
String |
getRole()
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects.
|
Object |
getRules()
A container for one or more replication rules.
|
@Stability(value=Stable) @NotNull String getRole()
For more information, see How to Set Up Replication in the Amazon S3 User Guide .
@Stability(value=Stable) @NotNull Object getRules()
A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.
@Stability(value=Stable) static CfnBucket.ReplicationConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.