CfnAccessPointProps Struct
Properties for defining a CfnAccessPoint.
| Source | |
|---|---|
| Type last changed |
Example
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
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
// 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();
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"
}
};
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
The name of the bucket that you want to associate the access point with.
bucketAccountIdoptionalstringbucket_account_idoptionalstrbucketAccountIdoptionalStringBucketAccountIdoptionalstringBucketAccountIdoptional*string #The AWS account ID that owns the bucket associated with this access point.
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.
policyoptionalanypolicyoptionalAnypolicyoptionalObjectPolicyoptionalobjectPolicyoptionalinterface{} #The access point policy associated with the specified access point.
publicAccessBlockConfigurationoptionalIResolvable | CfnAccessPoint.public_access_block_configurationoptionaltyping.Union[IResolvable, PublicAccessBlockConfigurationProperty]publicAccessBlockConfigurationoptionalIResolvablePublicAccessBlockConfigurationoptionalIResolvablePublicAccessBlockConfigurationoptionalinterface{} #Public access is blocked by default to access points for directory buckets.
scopeoptionalIResolvable | CfnAccessPoint.ScopePropertyscopeoptionaltyping.Union[IResolvable, ScopeProperty]scopeoptionalIResolvableScopeoptionalIResolvableScopeoptionalinterface{} #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.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #An array of tags that you can apply to access points.
notes
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) .
vpcConfigurationoptionalIResolvable | CfnAccessPoint.vpc_configurationoptionaltyping.Union[IResolvable, VpcConfigurationProperty]vpcConfigurationoptionalIResolvableVpcConfigurationoptionalIResolvableVpcConfigurationoptionalinterface{} #If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).