Class CfnWorkgroup.Builder

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

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

    • create

      @Stability(Stable) public static CfnWorkgroup.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 CfnWorkgroup.Builder.
    • workgroupName

      @Stability(Stable) public CfnWorkgroup.Builder workgroupName(String workgroupName)
      The name of the workgroup.

      Parameters:
      workgroupName - The name of the workgroup. This parameter is required.
      Returns:
      this
    • baseCapacity

      @Stability(Stable) public CfnWorkgroup.Builder baseCapacity(Number baseCapacity)
      The base compute capacity of the workgroup in Redshift Processing Units (RPUs).

      Parameters:
      baseCapacity - The base compute capacity of the workgroup in Redshift Processing Units (RPUs). This parameter is required.
      Returns:
      this
    • configParameters

      @Stability(Stable) public CfnWorkgroup.Builder configParameters(IResolvable configParameters)
      A list of parameters to set for finer control over a database.

      Available options are datestyle , enable_user_activity_logging , query_group , search_path , and max_query_execution_time .

      Parameters:
      configParameters - A list of parameters to set for finer control over a database. This parameter is required.
      Returns:
      this
    • configParameters

      @Stability(Stable) public CfnWorkgroup.Builder configParameters(List<? extends Object> configParameters)
      A list of parameters to set for finer control over a database.

      Available options are datestyle , enable_user_activity_logging , query_group , search_path , and max_query_execution_time .

      Parameters:
      configParameters - A list of parameters to set for finer control over a database. This parameter is required.
      Returns:
      this
    • enhancedVpcRouting

      @Stability(Stable) public CfnWorkgroup.Builder enhancedVpcRouting(Boolean enhancedVpcRouting)
      The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.

      Parameters:
      enhancedVpcRouting - The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC. This parameter is required.
      Returns:
      this
    • enhancedVpcRouting

      @Stability(Stable) public CfnWorkgroup.Builder enhancedVpcRouting(IResolvable enhancedVpcRouting)
      The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.

      Parameters:
      enhancedVpcRouting - The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC. This parameter is required.
      Returns:
      this
    • namespaceName

      @Stability(Stable) public CfnWorkgroup.Builder namespaceName(String namespaceName)
      The namespace the workgroup is associated with.

      Parameters:
      namespaceName - The namespace the workgroup is associated with. This parameter is required.
      Returns:
      this
    • port

      @Stability(Stable) public CfnWorkgroup.Builder port(Number port)
      The custom port to use when connecting to a workgroup.

      Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.

      Parameters:
      port - The custom port to use when connecting to a workgroup. This parameter is required.
      Returns:
      this
    • publiclyAccessible

      @Stability(Stable) public CfnWorkgroup.Builder publiclyAccessible(Boolean publiclyAccessible)
      A value that specifies whether the workgroup can be accessible from a public network.

      Parameters:
      publiclyAccessible - A value that specifies whether the workgroup can be accessible from a public network. This parameter is required.
      Returns:
      this
    • publiclyAccessible

      @Stability(Stable) public CfnWorkgroup.Builder publiclyAccessible(IResolvable publiclyAccessible)
      A value that specifies whether the workgroup can be accessible from a public network.

      Parameters:
      publiclyAccessible - A value that specifies whether the workgroup can be accessible from a public network. This parameter is required.
      Returns:
      this
    • securityGroupIds

      @Stability(Stable) public CfnWorkgroup.Builder securityGroupIds(List<String> securityGroupIds)
      A list of security group IDs to associate with the workgroup.

      Parameters:
      securityGroupIds - A list of security group IDs to associate with the workgroup. This parameter is required.
      Returns:
      this
    • subnetIds

      @Stability(Stable) public CfnWorkgroup.Builder subnetIds(List<String> subnetIds)
      A list of subnet IDs the workgroup is associated with.

      Parameters:
      subnetIds - A list of subnet IDs the workgroup is associated with. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnWorkgroup.Builder tags(List<? extends CfnTag> tags)
      The map of the key-value pairs used to tag the workgroup.

      Parameters:
      tags - The map of the key-value pairs used to tag the workgroup. This parameter is required.
      Returns:
      this
    • build

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