ReplicationDestinationProperty Struct
A container for information about the replication destination and its configurations including enabling the S3 Replication Time Control (S3 RTC).
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const replicationDestinationProperty: s3.CfnBucket.ReplicationDestinationProperty = {
bucket: 'bucket',
// the properties below are optional
accessControlTranslation: {
owner: 'owner',
},
account: 'account',
encryptionConfiguration: {
replicaKmsKeyId: 'replicaKmsKeyId',
},
metrics: {
status: 'status',
// the properties below are optional
eventThreshold: {
minutes: 123,
},
},
replicationTime: {
status: 'status',
time: {
minutes: 123,
},
},
storageClass: 'storageClass',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3 as s3
replication_destination_property = s3.CfnBucket.ReplicationDestinationProperty(
bucket="bucket",
# the properties below are optional
access_control_translation=s3.CfnBucket.AccessControlTranslationProperty(
owner="owner"
),
account="account",
encryption_configuration=s3.CfnBucket.EncryptionConfigurationProperty(
replica_kms_key_id="replicaKmsKeyId"
),
metrics=s3.CfnBucket.MetricsProperty(
status="status",
# the properties below are optional
event_threshold=s3.CfnBucket.ReplicationTimeValueProperty(
minutes=123
)
),
replication_time=s3.CfnBucket.ReplicationTimeProperty(
status="status",
time=s3.CfnBucket.ReplicationTimeValueProperty(
minutes=123
)
),
storage_class="storageClass"
)
// 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.*;
ReplicationDestinationProperty replicationDestinationProperty = 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();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;
var replicationDestinationProperty = new ReplicationDestinationProperty {
Bucket = "bucket",
// the properties below are optional
AccessControlTranslation = new AccessControlTranslationProperty {
Owner = "owner"
},
Account = "account",
EncryptionConfiguration = new EncryptionConfigurationProperty {
ReplicaKmsKeyId = "replicaKmsKeyId"
},
Metrics = new MetricsProperty {
Status = "status",
// the properties below are optional
EventThreshold = new ReplicationTimeValueProperty {
Minutes = 123
}
},
ReplicationTime = new ReplicationTimeProperty {
Status = "status",
Time = new ReplicationTimeValueProperty {
Minutes = 123
}
},
StorageClass = "storageClass"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
replicationDestinationProperty := &ReplicationDestinationProperty{
Bucket: jsii.String("bucket"),
// the properties below are optional
AccessControlTranslation: &AccessControlTranslationProperty{
Owner: jsii.String("owner"),
},
Account: jsii.String("account"),
EncryptionConfiguration: &EncryptionConfigurationProperty{
ReplicaKmsKeyId: jsii.String("replicaKmsKeyId"),
},
Metrics: &MetricsProperty{
Status: jsii.String("status"),
// the properties below are optional
EventThreshold: &ReplicationTimeValueProperty{
Minutes: jsii.Number(123),
},
},
ReplicationTime: &ReplicationTimeProperty{
Status: jsii.String("status"),
Time: &ReplicationTimeValueProperty{
Minutes: jsii.Number(123),
},
},
StorageClass: jsii.String("storageClass"),
}
Properties
accessControlTranslationoptionalIResolvable | CfnBucket.access_control_translationoptionaltyping.Union[IResolvable, AccessControlTranslationProperty]accessControlTranslationoptionalIResolvableAccessControlTranslationoptionalIResolvableAccessControlTranslationoptionalinterface{} #If this is not specified in the replication configuration, the replicas are owned by same AWS account that owns the source object.
accountoptionalstringaccountoptionalstraccountoptionalStringAccountoptionalstringAccountoptional*string #notes
In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the AWS 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 Cross-Region Replication Additional Configuration: Change Replica Owner in the Amazon S3 User Guide .
If you specify the AccessControlTranslation property, the Account property is required.
encryptionConfigurationoptionalIResolvable | CfnBucket.encryption_configurationoptionaltyping.Union[IResolvable, EncryptionConfigurationProperty]encryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalinterface{} #metricsoptionalIResolvable | CfnBucket.MetricsPropertymetricsoptionaltyping.Union[IResolvable, MetricsProperty]metricsoptionalIResolvableMetricsoptionalIResolvableMetricsoptionalinterface{} #replicationTimeoptionalIResolvable | CfnBucket.replication_timeoptionaltyping.Union[IResolvable, ReplicationTimeProperty]replicationTimeoptionalIResolvableReplicationTimeoptionalIResolvableReplicationTimeoptionalinterface{} #Must be specified together with a Metrics block.
storageClassoptionalstringstorage_classoptionalstrstorageClassoptionalStringStorageClassoptionalstringStorageClassoptional*string #notes
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 .
FSX_OPENZFS is not an accepted value when replicating objects.