Skip to content
v2.274.0

GrantReplicationPermissionDestinationProps Struct ​

The properties for the destination bucket for granting replication permission.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kms as kms } from 'aws-cdk-lib';
import { aws_s3 as s3 } from 'aws-cdk-lib';

declare const bucket: s3.Bucket;
declare const key: kms.Key;
const grantReplicationPermissionDestinationProps: s3.GrantReplicationPermissionDestinationProps = {
  bucket: bucket,

  // the properties below are optional
  encryptionKey: key,
};

Properties ​

bucketIBucketbucketIBucketbucketIBucketBucketIBucketBucketIBucketrequired#
The destination bucket.
encryptionKeyoptionalIKeyencryption_keyoptionalIKeyencryptionKeyoptionalIKeyEncryptionKeyoptionalIKeyEncryptionKeyoptionalIKey#
The KMS key to use for encryption if a destination bucket needs to be encrypted with a customer-managed KMS key.

Default: no KMS key is used for replication.