Class CfnAccessPointProps.Builder
java.lang.Object
software.amazon.awscdk.services.s3express.CfnAccessPointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessPointProps>
- Enclosing interface:
CfnAccessPointProps
@Stability(Stable)
public static final class CfnAccessPointProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessPointProps>
A builder for
CfnAccessPointProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAccessPointProps.getBucket()bucketAccountId(String bucketAccountId) Sets the value ofCfnAccessPointProps.getBucketAccountId()build()Builds the configured instance.Sets the value ofCfnAccessPointProps.getName()Sets the value ofCfnAccessPointProps.getPolicy()publicAccessBlockConfiguration(IResolvable publicAccessBlockConfiguration) Sets the value ofCfnAccessPointProps.getPublicAccessBlockConfiguration()publicAccessBlockConfiguration(CfnAccessPoint.PublicAccessBlockConfigurationProperty publicAccessBlockConfiguration) Sets the value ofCfnAccessPointProps.getPublicAccessBlockConfiguration()scope(IResolvable scope) Sets the value ofCfnAccessPointProps.getScope()Sets the value ofCfnAccessPointProps.getScope()Sets the value ofCfnAccessPointProps.getTags()vpcConfiguration(IResolvable vpcConfiguration) Sets the value ofCfnAccessPointProps.getVpcConfiguration()vpcConfiguration(CfnAccessPoint.VpcConfigurationProperty vpcConfiguration) Sets the value ofCfnAccessPointProps.getVpcConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnAccessPointProps.getBucket()- Parameters:
bucket- The name of the bucket that you want to associate the access point with. This parameter is required.- Returns:
this
-
bucketAccountId
Sets the value ofCfnAccessPointProps.getBucketAccountId()- Parameters:
bucketAccountId- The AWS account ID that owns the bucket associated with this access point.- Returns:
this
-
name
Sets the value ofCfnAccessPointProps.getName()- Parameters:
name- 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.- Returns:
this
-
policy
Sets the value ofCfnAccessPointProps.getPolicy()- Parameters:
policy- The access point policy associated with the specified access point.- Returns:
this
-
publicAccessBlockConfiguration
@Stability(Stable) public CfnAccessPointProps.Builder publicAccessBlockConfiguration(IResolvable publicAccessBlockConfiguration) Sets the value ofCfnAccessPointProps.getPublicAccessBlockConfiguration()- Parameters:
publicAccessBlockConfiguration- Public access is blocked by default to access points for directory buckets.- Returns:
this
-
publicAccessBlockConfiguration
@Stability(Stable) public CfnAccessPointProps.Builder publicAccessBlockConfiguration(CfnAccessPoint.PublicAccessBlockConfigurationProperty publicAccessBlockConfiguration) Sets the value ofCfnAccessPointProps.getPublicAccessBlockConfiguration()- Parameters:
publicAccessBlockConfiguration- Public access is blocked by default to access points for directory buckets.- Returns:
this
-
scope
Sets the value ofCfnAccessPointProps.getScope()- Parameters:
scope- 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.- Returns:
this
-
scope
Sets the value ofCfnAccessPointProps.getScope()- Parameters:
scope- 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.- Returns:
this
-
tags
Sets the value ofCfnAccessPointProps.getTags()- Parameters:
tags- 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) .- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnAccessPointProps.Builder vpcConfiguration(IResolvable vpcConfiguration) Sets the value ofCfnAccessPointProps.getVpcConfiguration()- Parameters:
vpcConfiguration- If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnAccessPointProps.Builder vpcConfiguration(CfnAccessPoint.VpcConfigurationProperty vpcConfiguration) Sets the value ofCfnAccessPointProps.getVpcConfiguration()- Parameters:
vpcConfiguration- If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAccessPointProps>- Returns:
- a new instance of
CfnAccessPointProps - Throws:
NullPointerException- if any required attribute was not provided
-