Skip to content
v2.278.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,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_kms as kms
from aws_cdk import aws_s3 as s3

# bucket: s3.Bucket
# key: kms.Key

grant_replication_permission_destination_props = s3.GrantReplicationPermissionDestinationProps(
    bucket=bucket,

    # the properties below are optional
    encryption_key=key
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.kms.*;
import software.amazon.awscdk.services.s3.*;

Bucket bucket;
Key key;

GrantReplicationPermissionDestinationProps grantReplicationPermissionDestinationProps = GrantReplicationPermissionDestinationProps.builder()
        .bucket(bucket)

        // the properties below are optional
        .encryptionKey(key)
        .build();
csharp
// 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.KMS;
using Amazon.CDK.AWS.S3;

Bucket bucket;
Key key;

var grantReplicationPermissionDestinationProps = new GrantReplicationPermissionDestinationProps {
    Bucket = bucket,

    // the properties below are optional
    EncryptionKey = key
};
go
// 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"
import "github.com/aws/aws-cdk-go/awscdk"

var bucket Bucket
var key Key

grantReplicationPermissionDestinationProps := &GrantReplicationPermissionDestinationProps{
	Bucket: bucket,

	// the properties below are optional
	EncryptionKey: key,
}

Properties ​

bucketIBucketbucketIBucketbucketIBucketBucketIBucketBucketIBucket required #
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.