aws-cdk-lib.aws_s3.CfnBucket.AccessControlTranslationProperty

interface AccessControlTranslationProperty

LanguageType name
.NETAmazon.CDK.AWS.S3.CfnBucket.AccessControlTranslationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awss3#CfnBucket_AccessControlTranslationProperty
Javasoftware.amazon.awscdk.services.s3.CfnBucket.AccessControlTranslationProperty
Pythonaws_cdk.aws_s3.CfnBucket.AccessControlTranslationProperty
TypeScript aws-cdk-lib » aws_s3 » CfnBucket » AccessControlTranslationProperty

Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS account that owns the destination bucket.

If this is not specified in the replication configuration, the replicas are owned by same AWS account that owns the source object.

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 accessControlTranslationProperty: s3.CfnBucket.AccessControlTranslationProperty = {
  owner: 'owner',
};

Properties

NameTypeDescription
ownerstringSpecifies the replica ownership.

owner

Type: string

Specifies the replica ownership.

For default and valid values, see PUT bucket replication in the Amazon S3 API Reference .