Skip to content
v2.278.0

CfnMultiRegionAccessPointProps Struct ​

Properties for defining a CfnMultiRegionAccessPoint.

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 cfnMultiRegionAccessPointProps: s3.CfnMultiRegionAccessPointProps = {
  regions: [{
    bucket: 'bucket',

    // the properties below are optional
    bucketAccountId: 'bucketAccountId',
  }],

  // the properties below are optional
  name: 'name',
  publicAccessBlockConfiguration: {
    blockPublicAcls: false,
    blockPublicPolicy: false,
    ignorePublicAcls: false,
    restrictPublicBuckets: false,
  },
};
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

cfn_multi_region_access_point_props = s3.CfnMultiRegionAccessPointProps(
    regions=[s3.CfnMultiRegionAccessPoint.RegionProperty(
        bucket="bucket",

        # the properties below are optional
        bucket_account_id="bucketAccountId"
    )],

    # the properties below are optional
    name="name",
    public_access_block_configuration=s3.CfnMultiRegionAccessPoint.PublicAccessBlockConfigurationProperty(
        block_public_acls=False,
        block_public_policy=False,
        ignore_public_acls=False,
        restrict_public_buckets=False
    )
)
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.*;

CfnMultiRegionAccessPointProps cfnMultiRegionAccessPointProps = CfnMultiRegionAccessPointProps.builder()
        .regions(List.of(RegionProperty.builder()
                .bucket("bucket")

                // the properties below are optional
                .bucketAccountId("bucketAccountId")
                .build()))

        // the properties below are optional
        .name("name")
        .publicAccessBlockConfiguration(PublicAccessBlockConfigurationProperty.builder()
                .blockPublicAcls(false)
                .blockPublicPolicy(false)
                .ignorePublicAcls(false)
                .restrictPublicBuckets(false)
                .build())
        .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 cfnMultiRegionAccessPointProps = new CfnMultiRegionAccessPointProps {
    Regions = new [] { new RegionProperty {
        Bucket = "bucket",

        // the properties below are optional
        BucketAccountId = "bucketAccountId"
    } },

    // the properties below are optional
    Name = "name",
    PublicAccessBlockConfiguration = new PublicAccessBlockConfigurationProperty {
        BlockPublicAcls = false,
        BlockPublicPolicy = false,
        IgnorePublicAcls = false,
        RestrictPublicBuckets = false
    }
};
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"

cfnMultiRegionAccessPointProps := &CfnMultiRegionAccessPointProps{
	Regions: []interface{}{
		&RegionProperty{
			Bucket: jsii.String("bucket"),

			// the properties below are optional
			BucketAccountId: jsii.String("bucketAccountId"),
		},
	},

	// the properties below are optional
	Name: jsii.String("name"),
	PublicAccessBlockConfiguration: &PublicAccessBlockConfigurationProperty{
		BlockPublicAcls: jsii.Boolean(false),
		BlockPublicPolicy: jsii.Boolean(false),
		IgnorePublicAcls: jsii.Boolean(false),
		RestrictPublicBuckets: jsii.Boolean(false),
	},
}

Properties ​

nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
The name of the Multi-Region Access Point.
publicAccessBlockConfigurationoptionalIResolvable | CfnMultiRegionAccessPoint.PublicAccessBlockConfigurationPropertypublic_access_block_configurationoptionaltyping.Union[IResolvable, PublicAccessBlockConfigurationProperty]publicAccessBlockConfigurationoptionalIResolvablePublicAccessBlockConfigurationoptionalIResolvablePublicAccessBlockConfigurationoptionalinterface{} #
The PublicAccessBlock configuration that you want to apply to this Multi-Region Access Point.
notes

You can enable the configuration options in any combination. For more information about when Amazon S3 considers an object public, see The Meaning of "Public" in the Amazon S3 User Guide .

regionsIResolvable | IResolvable | CfnMultiRegionAccessPoint.RegionProperty[]regionstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RegionProperty]]]regionsIResolvableRegionsIResolvableRegionsinterface{} required #
A collection of the Regions and buckets associated with the Multi-Region Access Point.