Class CfnAccessPointProps.Builder
java.lang.Object
software.amazon.awscdk.services.s3.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
-
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()
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 associated with this access point. This parameter is required.- Returns:
this
-
bucketAccountId
Sets the value ofCfnAccessPointProps.getBucketAccountId()
- Parameters:
bucketAccountId
- The AWS account ID associated with the S3 bucket associated with this access point.- Returns:
this
-
name
Sets the value ofCfnAccessPointProps.getName()
- Parameters:
name
- The name of this access point. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the access point name.- Returns:
this
-
policy
Sets the value ofCfnAccessPointProps.getPolicy()
- Parameters:
policy
- The access point policy associated with this access point.- Returns:
this
-
publicAccessBlockConfiguration
@Stability(Stable) public CfnAccessPointProps.Builder publicAccessBlockConfiguration(IResolvable publicAccessBlockConfiguration) Sets the value ofCfnAccessPointProps.getPublicAccessBlockConfiguration()
- Parameters:
publicAccessBlockConfiguration
- The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see The Meaning of "Public" in the Amazon S3 User Guide .- Returns:
this
-
publicAccessBlockConfiguration
@Stability(Stable) public CfnAccessPointProps.Builder publicAccessBlockConfiguration(CfnAccessPoint.PublicAccessBlockConfigurationProperty publicAccessBlockConfiguration) Sets the value ofCfnAccessPointProps.getPublicAccessBlockConfiguration()
- Parameters:
publicAccessBlockConfiguration
- The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see The Meaning of "Public" in the Amazon S3 User Guide .- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnAccessPointProps.Builder vpcConfiguration(IResolvable vpcConfiguration) Sets the value ofCfnAccessPointProps.getVpcConfiguration()
- Parameters:
vpcConfiguration
- The Virtual Private Cloud (VPC) configuration for this access point, if one exists.- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnAccessPointProps.Builder vpcConfiguration(CfnAccessPoint.VpcConfigurationProperty vpcConfiguration) Sets the value ofCfnAccessPointProps.getVpcConfiguration()
- Parameters:
vpcConfiguration
- The Virtual Private Cloud (VPC) configuration for this access point, if one exists.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAccessPointProps>
- Returns:
- a new instance of
CfnAccessPointProps
- Throws:
NullPointerException
- if any required attribute was not provided
-