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