Skip to content
v2.278.0

AccessControlTranslationProperty Struct ​

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 ​

ts
// 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',
};
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_s3 as s3

access_control_translation_property = s3.CfnBucket.AccessControlTranslationProperty(
    owner="owner"
)
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.s3.*;

AccessControlTranslationProperty accessControlTranslationProperty = AccessControlTranslationProperty.builder()
        .owner("owner")
        .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.S3;

var accessControlTranslationProperty = new AccessControlTranslationProperty {
    Owner = "owner"
};
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"

accessControlTranslationProperty := &AccessControlTranslationProperty{
	Owner: jsii.String("owner"),
}

Properties ​

ownerstringownerstrownerStringOwnerstringOwner*string required #
Specifies the replica ownership.

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