# CfnAccessPointProps

Properties for defining a `CfnAccessPoint`.

Used as props by: [CfnAccessPoint](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3express.CfnAccessPoint.html)

- Source: Generated at build time
- Type last changed: v2.211.0 · 13 Aug 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3express as s3express } from 'aws-cdk-lib';

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

  // the properties below are optional
  bucketAccountId: 'bucketAccountId',
  name: 'name',
  policy: policy,
  publicAccessBlockConfiguration: {
    blockPublicAcls: false,
    blockPublicPolicy: false,
    ignorePublicAcls: false,
    restrictPublicBuckets: false,
  },
  scope: {
    permissions: ['permissions'],
    prefixes: ['prefixes'],
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
  vpcConfiguration: {
    vpcId: 'vpcId',
  },
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3express as s3express

# policy: Any

cfn_access_point_props = s3express.CfnAccessPointProps(
    bucket="bucket",

    # the properties below are optional
    bucket_account_id="bucketAccountId",
    name="name",
    policy=policy,
    public_access_block_configuration=s3express.CfnAccessPoint.PublicAccessBlockConfigurationProperty(
        block_public_acls=False,
        block_public_policy=False,
        ignore_public_acls=False,
        restrict_public_buckets=False
    ),
    scope=s3express.CfnAccessPoint.ScopeProperty(
        permissions=["permissions"],
        prefixes=["prefixes"]
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    vpc_configuration=s3express.CfnAccessPoint.VpcConfigurationProperty(
        vpc_id="vpcId"
    )
)
```

Java:

```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.s3express.*;

Object policy;

CfnAccessPointProps cfnAccessPointProps = CfnAccessPointProps.builder()
        .bucket("bucket")

        // the properties below are optional
        .bucketAccountId("bucketAccountId")
        .name("name")
        .policy(policy)
        .publicAccessBlockConfiguration(PublicAccessBlockConfigurationProperty.builder()
                .blockPublicAcls(false)
                .blockPublicPolicy(false)
                .ignorePublicAcls(false)
                .restrictPublicBuckets(false)
                .build())
        .scope(ScopeProperty.builder()
                .permissions(List.of("permissions"))
                .prefixes(List.of("prefixes"))
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .vpcConfiguration(VpcConfigurationProperty.builder()
                .vpcId("vpcId")
                .build())
        .build();
```

C# / .NET:

```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.S3Express;

var policy;

var cfnAccessPointProps = new CfnAccessPointProps {
    Bucket = "bucket",

    // the properties below are optional
    BucketAccountId = "bucketAccountId",
    Name = "name",
    Policy = policy,
    PublicAccessBlockConfiguration = new PublicAccessBlockConfigurationProperty {
        BlockPublicAcls = false,
        BlockPublicPolicy = false,
        IgnorePublicAcls = false,
        RestrictPublicBuckets = false
    },
    Scope = new ScopeProperty {
        Permissions = new [] { "permissions" },
        Prefixes = new [] { "prefixes" }
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    VpcConfiguration = new VpcConfigurationProperty {
        VpcId = "vpcId"
    }
};
```

Golang:

```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"

var policy interface{}

cfnAccessPointProps := &CfnAccessPointProps{
	Bucket: jsii.String("bucket"),

	// the properties below are optional
	BucketAccountId: jsii.String("bucketAccountId"),
	Name: jsii.String("name"),
	Policy: policy,
	PublicAccessBlockConfiguration: &PublicAccessBlockConfigurationProperty{
		BlockPublicAcls: jsii.Boolean(false),
		BlockPublicPolicy: jsii.Boolean(false),
		IgnorePublicAcls: jsii.Boolean(false),
		RestrictPublicBuckets: jsii.Boolean(false),
	},
	Scope: &ScopeProperty{
		Permissions: []*string{
			jsii.String("permissions"),
		},
		Prefixes: []*string{
			jsii.String("prefixes"),
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	VpcConfiguration: &VpcConfigurationProperty{
		VpcId: jsii.String("vpcId"),
	},
}
```

## Properties

- `bucket`: string (required) — The name of the bucket that you want to associate the access point with.

- `bucketAccountId`: string — The AWS account ID that owns the bucket associated with this access point.

- `name`: string — An access point name consists of a base name you provide, followed by the zoneID ( AWS Local Zone) followed by the prefix `--xa-s3` .

  For example, accesspointname--zoneID--xa-s3.

- `policy`: any — The access point policy associated with the specified access point.

- `publicAccessBlockConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAccessPoint.PublicAccessBlockConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3express.CfnAccessPoint.PublicAccessBlockConfigurationProperty.html) — Public access is blocked by default to access points for directory buckets.

- `scope`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAccessPoint.ScopeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3express.CfnAccessPoint.ScopeProperty.html) — You can use the access point scope to restrict access to specific prefixes, API operations, or a combination of both.

  For more information, see [Manage the scope of your access points for directory buckets.](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-directory-buckets-manage-scope.html)

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — 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) .

- `vpcConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAccessPoint.VpcConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3express.CfnAccessPoint.VpcConfigurationProperty.html) — If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).
