interface ReplicationConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.S3.Mixins.CfnBucketPropsMixin.ReplicationConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awss3/mixins#CfnBucketPropsMixin_ReplicationConfigurationProperty |
Java | software.amazon.awscdk.mixins.preview.services.s3.mixins.CfnBucketPropsMixin.ReplicationConfigurationProperty |
Python | aws_cdk.mixins_preview.aws_s3.mixins.CfnBucketPropsMixin.ReplicationConfigurationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_s3 » mixins » CfnBucketPropsMixin » ReplicationConfigurationProperty |
A container for replication rules.
You can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB. The latest version of the replication configuration XML is V2. For more information about XML V2 replication configurations, see Replication configuration in the Amazon S3 User Guide .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as s3_mixins } from '@aws-cdk/mixins-preview/aws-s3';
const replicationConfigurationProperty: s3_mixins.CfnBucketPropsMixin.ReplicationConfigurationProperty = {
role: 'role',
rules: [{
deleteMarkerReplication: {
status: 'status',
},
destination: {
accessControlTranslation: {
owner: 'owner',
},
account: 'account',
bucket: 'bucket',
encryptionConfiguration: {
replicaKmsKeyId: 'replicaKmsKeyId',
},
metrics: {
eventThreshold: {
minutes: 123,
},
status: 'status',
},
replicationTime: {
status: 'status',
time: {
minutes: 123,
},
},
storageClass: 'storageClass',
},
filter: {
and: {
prefix: 'prefix',
tagFilters: [{
key: 'key',
value: 'value',
}],
},
prefix: 'prefix',
tagFilter: {
key: 'key',
value: 'value',
},
},
id: 'id',
prefix: 'prefix',
priority: 123,
sourceSelectionCriteria: {
replicaModifications: {
status: 'status',
},
sseKmsEncryptedObjects: {
status: 'status',
},
},
status: 'status',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| role? | string | The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects. |
| rules? | IResolvable | (IResolvable | Replication)[] | A container for one or more replication rules. |
role?
Type:
string
(optional)
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects.
For more information, see How to Set Up Replication in the Amazon S3 User Guide .
rules?
Type:
IResolvable | (IResolvable | Replication)[]
(optional)
A container for one or more replication rules.
A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.

.NET
Go
Java
Python
TypeScript