aws-cdk-lib.aws_s3.CfnAccessPointProps

interface CfnAccessPointProps

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

Properties for defining a CfnAccessPoint.

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';

declare const policy: any;
const cfnAccessPointProps: s3.CfnAccessPointProps = {
  bucket: 'bucket',

  // the properties below are optional
  bucketAccountId: 'bucketAccountId',
  name: 'name',
  policy: policy,
  publicAccessBlockConfiguration: {
    blockPublicAcls: false,
    blockPublicPolicy: false,
    ignorePublicAcls: false,
    restrictPublicBuckets: false,
  },
  vpcConfiguration: {
    vpcId: 'vpcId',
  },
};

Properties

NameTypeDescription
bucketstringThe name of the bucket associated with this access point.
bucketAccountId?stringThe AWS account ID associated with the S3 bucket associated with this access point.
name?stringThe name of this access point.
policy?anyThe access point policy associated with this access point.
publicAccessBlockConfiguration?IResolvable | PublicAccessBlockConfigurationPropertyThe PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket.
vpcConfiguration?IResolvable | VpcConfigurationPropertyThe Virtual Private Cloud (VPC) configuration for this access point, if one exists.

bucket

Type: string

The name of the bucket associated with this access point.


bucketAccountId?

Type: string (optional)

The AWS account ID associated with the S3 bucket associated with this access point.


name?

Type: string (optional)

The name of this access point.

If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the access point name.


policy?

Type: any (optional)

The access point policy associated with this access point.


publicAccessBlockConfiguration?

Type: IResolvable | PublicAccessBlockConfigurationProperty (optional)

The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket.

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


vpcConfiguration?

Type: IResolvable | VpcConfigurationProperty (optional)

The Virtual Private Cloud (VPC) configuration for this access point, if one exists.