Class CfnAccessPoint
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.s3express.CfnAccessPoint
- All Implemented Interfaces:
IInspectable,ITaggableV2,IAccessPointRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:47.835Z")
@Stability(Stable)
public class CfnAccessPoint
extends CfnResource
implements IInspectable, IAccessPointRef, ITaggableV2
Access points simplify managing data access at scale for shared datasets in Amazon S3 .
Access points are unique hostnames you create to enforce distinct permissions and network controls for all requests made through an access point. You can create hundreds of access points per bucket, each with a distinct name and permissions customized for each application. Each access point works in conjunction with the bucket policy that is attached to the underlying bucket. For more information, see Managing access to shared datasets in directory buckets with access points .
Example:
// 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;
CfnAccessPoint cfnAccessPoint = CfnAccessPoint.Builder.create(this, "MyCfnAccessPoint")
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnAccessPoint.static interfacePublic access is blocked by default to access points for directory buckets.static interfaceYou can use the access point scope to restrict access to specific prefixes, API operations, or a combination of both.static interfaceThe Virtual Private Cloud (VPC) configuration for a bucket access point.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.s3express.IAccessPointRef
IAccessPointRef.Jsii$Default, IAccessPointRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAccessPoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAccessPoint(software.amazon.jsii.JsiiObjectRef objRef) CfnAccessPoint(software.constructs.Construct scope, String id, CfnAccessPointProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IAccessPointReffromAccessPointArn(software.constructs.Construct scope, String id, String arn) Creates a new IAccessPointRef from an ARN.static IAccessPointReffromAccessPointName(software.constructs.Construct scope, String id, String accessPointName) Creates a new IAccessPointRef from a accessPointName.A reference to a AccessPoint resource.The ARN of the access point.The network configuration of the access point.The name of the bucket that you want to associate the access point with.The AWS account ID that owns the bucket associated with this access point.Tag Manager which manages the tags for this resource.getName()An access point name consists of a base name you provide, followed by the zoneID ( AWS Local Zone) followed by the prefix--xa-s3.The access point policy associated with the specified access point.Public access is blocked by default to access points for directory buckets.getScope()You can use the access point scope to restrict access to specific prefixes, API operations, or a combination of both.getTags()An array of tags that you can apply to access points.If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe name of the bucket that you want to associate the access point with.voidsetBucketAccountId(String value) The AWS account ID that owns the bucket associated with this access point.voidAn access point name consists of a base name you provide, followed by the zoneID ( AWS Local Zone) followed by the prefix--xa-s3.voidThe access point policy associated with the specified access point.voidPublic access is blocked by default to access points for directory buckets.voidPublic access is blocked by default to access points for directory buckets.voidsetScope(IResolvable value) You can use the access point scope to restrict access to specific prefixes, API operations, or a combination of both.voidYou can use the access point scope to restrict access to specific prefixes, API operations, or a combination of both.voidAn array of tags that you can apply to access points.voidsetVpcConfiguration(IResolvable value) If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).voidIf you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAccessPoint
protected CfnAccessPoint(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAccessPoint
protected CfnAccessPoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAccessPoint
@Stability(Stable) public CfnAccessPoint(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAccessPointProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromAccessPointArn
@Stability(Stable) @NotNull public static IAccessPointRef fromAccessPointArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IAccessPointRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromAccessPointName
@Stability(Stable) @NotNull public static IAccessPointRef fromAccessPointName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String accessPointName) Creates a new IAccessPointRef from a accessPointName.- Parameters:
scope- This parameter is required.id- This parameter is required.accessPointName- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAccessPointRef
A reference to a AccessPoint resource.- Specified by:
getAccessPointRefin interfaceIAccessPointRef
-
getAttrArn
The ARN of the access point. -
getAttrNetworkOrigin
The network configuration of the access point. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getBucket
The name of the bucket that you want to associate the access point with. -
setBucket
The name of the bucket that you want to associate the access point with. -
getBucketAccountId
The AWS account ID that owns the bucket associated with this access point. -
setBucketAccountId
The AWS account ID that owns the bucket associated with this access point. -
getName
An access point name consists of a base name you provide, followed by the zoneID ( AWS Local Zone) followed by the prefix--xa-s3. -
setName
An access point name consists of a base name you provide, followed by the zoneID ( AWS Local Zone) followed by the prefix--xa-s3. -
getPolicy
The access point policy associated with the specified access point. -
setPolicy
The access point policy associated with the specified access point. -
getPublicAccessBlockConfiguration
Public access is blocked by default to access points for directory buckets.Returns union: either
IResolvableorCfnAccessPoint.PublicAccessBlockConfigurationProperty -
setPublicAccessBlockConfiguration
Public access is blocked by default to access points for directory buckets. -
setPublicAccessBlockConfiguration
@Stability(Stable) public void setPublicAccessBlockConfiguration(@Nullable CfnAccessPoint.PublicAccessBlockConfigurationProperty value) Public access is blocked by default to access points for directory buckets. -
getScope
You can use the access point scope to restrict access to specific prefixes, API operations, or a combination of both.Returns union: either
IResolvableorCfnAccessPoint.ScopeProperty -
setScope
You can use the access point scope to restrict access to specific prefixes, API operations, or a combination of both. -
setScope
You can use the access point scope to restrict access to specific prefixes, API operations, or a combination of both. -
getTags
An array of tags that you can apply to access points. -
setTags
An array of tags that you can apply to access points. -
getVpcConfiguration
If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).Returns union: either
IResolvableorCfnAccessPoint.VpcConfigurationProperty -
setVpcConfiguration
If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC). -
setVpcConfiguration
@Stability(Stable) public void setVpcConfiguration(@Nullable CfnAccessPoint.VpcConfigurationProperty value) If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).
-