Class CfnWorkgroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.redshiftserverless.CfnWorkgroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkgroupProps>
- Enclosing interface:
- CfnWorkgroupProps
@Stability(Stable)
public static final class CfnWorkgroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkgroupProps>
A builder for
CfnWorkgroupProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseCapacity(Number baseCapacity) Sets the value ofCfnWorkgroupProps.getBaseCapacity()build()Builds the configured instance.configParameters(List<? extends Object> configParameters) Sets the value ofCfnWorkgroupProps.getConfigParameters()configParameters(IResolvable configParameters) Sets the value ofCfnWorkgroupProps.getConfigParameters()enhancedVpcRouting(Boolean enhancedVpcRouting) Sets the value ofCfnWorkgroupProps.getEnhancedVpcRouting()enhancedVpcRouting(IResolvable enhancedVpcRouting) Sets the value ofCfnWorkgroupProps.getEnhancedVpcRouting()namespaceName(String namespaceName) Sets the value ofCfnWorkgroupProps.getNamespaceName()Sets the value ofCfnWorkgroupProps.getPort()publiclyAccessible(Boolean publiclyAccessible) Sets the value ofCfnWorkgroupProps.getPubliclyAccessible()publiclyAccessible(IResolvable publiclyAccessible) Sets the value ofCfnWorkgroupProps.getPubliclyAccessible()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnWorkgroupProps.getSecurityGroupIds()Sets the value ofCfnWorkgroupProps.getSubnetIds()Sets the value ofCfnWorkgroupProps.getTags()workgroupName(String workgroupName) Sets the value ofCfnWorkgroupProps.getWorkgroupName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
workgroupName
Sets the value ofCfnWorkgroupProps.getWorkgroupName()- Parameters:
workgroupName- The name of the workgroup. This parameter is required.- Returns:
this
-
baseCapacity
Sets the value ofCfnWorkgroupProps.getBaseCapacity()- Parameters:
baseCapacity- The base compute capacity of the workgroup in Redshift Processing Units (RPUs).- Returns:
this
-
configParameters
Sets the value ofCfnWorkgroupProps.getConfigParameters()- Parameters:
configParameters- A list of parameters to set for finer control over a database. Available options aredatestyle,enable_user_activity_logging,query_group,search_path, andmax_query_execution_time.- Returns:
this
-
configParameters
@Stability(Stable) public CfnWorkgroupProps.Builder configParameters(List<? extends Object> configParameters) Sets the value ofCfnWorkgroupProps.getConfigParameters()- Parameters:
configParameters- A list of parameters to set for finer control over a database. Available options aredatestyle,enable_user_activity_logging,query_group,search_path, andmax_query_execution_time.- Returns:
this
-
enhancedVpcRouting
Sets the value ofCfnWorkgroupProps.getEnhancedVpcRouting()- 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.- Returns:
this
-
enhancedVpcRouting
@Stability(Stable) public CfnWorkgroupProps.Builder enhancedVpcRouting(IResolvable enhancedVpcRouting) Sets the value ofCfnWorkgroupProps.getEnhancedVpcRouting()- 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.- Returns:
this
-
namespaceName
Sets the value ofCfnWorkgroupProps.getNamespaceName()- Parameters:
namespaceName- The namespace the workgroup is associated with.- Returns:
this
-
port
Sets the value ofCfnWorkgroupProps.getPort()- Parameters:
port- The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.- Returns:
this
-
publiclyAccessible
Sets the value ofCfnWorkgroupProps.getPubliclyAccessible()- Parameters:
publiclyAccessible- A value that specifies whether the workgroup can be accessible from a public network.- Returns:
this
-
publiclyAccessible
@Stability(Stable) public CfnWorkgroupProps.Builder publiclyAccessible(IResolvable publiclyAccessible) Sets the value ofCfnWorkgroupProps.getPubliclyAccessible()- Parameters:
publiclyAccessible- A value that specifies whether the workgroup can be accessible from a public network.- Returns:
this
-
securityGroupIds
Sets the value ofCfnWorkgroupProps.getSecurityGroupIds()- Parameters:
securityGroupIds- A list of security group IDs to associate with the workgroup.- Returns:
this
-
subnetIds
Sets the value ofCfnWorkgroupProps.getSubnetIds()- Parameters:
subnetIds- A list of subnet IDs the workgroup is associated with.- Returns:
this
-
tags
Sets the value ofCfnWorkgroupProps.getTags()- Parameters:
tags- The map of the key-value pairs used to tag the workgroup.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkgroupProps>- Returns:
- a new instance of
CfnWorkgroupProps - Throws:
NullPointerException- if any required attribute was not provided
-