AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::S3::AccessPoint

CfnAccessPoint

The AWS::S3::AccessPoint resource is an Amazon S3 resource type that you can use to access buckets.

Import

import { CfnAccessPoint } from 'aws-cdk-lib/aws-s3';

Or use the module namespace:

import * as s3 from 'aws-cdk-lib/aws-s3';
// s3.CfnAccessPoint

Properties

Configuration passed to the constructor as CfnAccessPointProps.

bucketRequired
string | IBucketRef

The name of the bucket associated with this access point.

bucketAccountIdOptional
string

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

nameOptional
string

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.

policyOptional
any

The access point policy associated with this access point.

publicAccessBlockConfigurationOptional
IResolvable | PublicAccessBlockConfigurationProperty

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"](https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status) in the *Amazon S3 User Guide* .

tagsOptional
CfnTag[]

An array of tags that you can apply to access points. Tags are key-value pairs of metadata used to categorize your access points and control access. For more information, see [Using tags for attribute-based access control (ABAC)](https://docs.aws.amazon.com/AmazonS3/latest/userguide/tagging.html#using-tags-for-abac) .

vpcConfigurationOptional
IResolvable | VpcConfigurationProperty

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

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon S3 Cheat Sheet

Everything you need to know about Amazon S3 on one page. HD quality, print-friendly.

Download Free Infographic