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 Summary
Modifier and TypeMethodDescriptionbaseCapacity
(Number baseCapacity) The base compute capacity of the workgroup in Redshift Processing Units (RPUs).build()
configParameters
(List<? extends Object> configParameters) A list of parameters to set for finer control over a database.configParameters
(IResolvable configParameters) A list of parameters to set for finer control over a database.static 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.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.namespaceName
(String namespaceName) The namespace the workgroup is associated with.The custom port to use when connecting to a workgroup.publiclyAccessible
(Boolean publiclyAccessible) A value that specifies whether the workgroup can be accessible from a public network.publiclyAccessible
(IResolvable publiclyAccessible) A value that specifies whether the workgroup can be accessible from a public network.securityGroupIds
(List<String> securityGroupIds) A list of security group IDs to associate with the workgroup.A list of subnet IDs the workgroup is associated with.The map of the key-value pairs used to tag the workgroup.workgroupName
(String workgroupName) The name of the workgroup.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnWorkgroup.Builder
.
-
workgroupName
The name of the workgroup.- Parameters:
workgroupName
- The name of the workgroup. This parameter is required.- Returns:
this
-
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
A list of parameters to set for finer control over a database.Available options are
datestyle
,enable_user_activity_logging
,query_group
,search_path
, andmax_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
, andmax_query_execution_time
.- Parameters:
configParameters
- A list of parameters to set for finer control over a database. This parameter is required.- Returns:
this
-
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
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
The namespace the workgroup is associated with.- Parameters:
namespaceName
- The namespace the workgroup is associated with. This parameter is required.- Returns:
this
-
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
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
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
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
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
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWorkgroup>
- Returns:
- a newly built instance of
CfnWorkgroup
.
-