Class CfnAccessPoint.Builder

java.lang.Object
software.amazon.awscdk.services.s3.CfnAccessPoint.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessPoint>
Enclosing class:
CfnAccessPoint

@Stability(Stable) public static final class CfnAccessPoint.Builder extends Object implements software.amazon.jsii.Builder<CfnAccessPoint>
A fluent builder for CfnAccessPoint.
  • Method Details

    • create

      @Stability(Stable) public static CfnAccessPoint.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnAccessPoint.Builder.
    • bucket

      @Stability(Stable) public CfnAccessPoint.Builder bucket(String bucket)
      The name of the bucket associated with this access point.

      Parameters:
      bucket - The name of the bucket associated with this access point. This parameter is required.
      Returns:
      this
    • bucketAccountId

      @Stability(Stable) public CfnAccessPoint.Builder bucketAccountId(String bucketAccountId)
      The AWS account ID associated with the S3 bucket associated with this access point.

      Parameters:
      bucketAccountId - The AWS account ID associated with the S3 bucket associated with this access point. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnAccessPoint.Builder name(String 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.

      Parameters:
      name - The name of this access point. This parameter is required.
      Returns:
      this
    • policy

      @Stability(Stable) public CfnAccessPoint.Builder policy(Object policy)
      The access point policy associated with this access point.

      Parameters:
      policy - The access point policy associated with this access point. This parameter is required.
      Returns:
      this
    • publicAccessBlockConfiguration

      @Stability(Stable) public CfnAccessPoint.Builder publicAccessBlockConfiguration(IResolvable 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 .

      Parameters:
      publicAccessBlockConfiguration - The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. This parameter is required.
      Returns:
      this
    • publicAccessBlockConfiguration

      @Stability(Stable) public CfnAccessPoint.Builder publicAccessBlockConfiguration(CfnAccessPoint.PublicAccessBlockConfigurationProperty 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 .

      Parameters:
      publicAccessBlockConfiguration - The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. This parameter is required.
      Returns:
      this
    • vpcConfiguration

      @Stability(Stable) public CfnAccessPoint.Builder vpcConfiguration(IResolvable vpcConfiguration)
      The Virtual Private Cloud (VPC) configuration for this access point, if one exists.

      Parameters:
      vpcConfiguration - The Virtual Private Cloud (VPC) configuration for this access point, if one exists. This parameter is required.
      Returns:
      this
    • vpcConfiguration

      @Stability(Stable) public CfnAccessPoint.Builder vpcConfiguration(CfnAccessPoint.VpcConfigurationProperty vpcConfiguration)
      The Virtual Private Cloud (VPC) configuration for this access point, if one exists.

      Parameters:
      vpcConfiguration - The Virtual Private Cloud (VPC) configuration for this access point, if one exists. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnAccessPoint build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAccessPoint>
      Returns:
      a newly built instance of CfnAccessPoint.