interface GrantReplicationPermissionDestinationProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.S3.GrantReplicationPermissionDestinationProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awss3#GrantReplicationPermissionDestinationProps |
![]() | software.amazon.awscdk.services.s3.GrantReplicationPermissionDestinationProps |
![]() | aws_cdk.aws_s3.GrantReplicationPermissionDestinationProps |
![]() | aws-cdk-lib » aws_s3 » GrantReplicationPermissionDestinationProps |
The properties for the destination bucket for granting replication permission.
Example
// 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
Name | Type | Description |
---|---|---|
bucket | IBucket | The destination bucket. |
encryption | IKey | The KMS key to use for encryption if a destination bucket needs to be encrypted with a customer-managed KMS key. |
bucket
Type:
IBucket
The destination bucket.
encryptionKey?
Type:
IKey
(optional, default: no KMS key is used for replication.)
The KMS key to use for encryption if a destination bucket needs to be encrypted with a customer-managed KMS key.