java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-11T15:56:04.935Z") @Stability(Stable) public class CfnWorkgroup extends CfnResource implements IInspectable, ITaggable
The collection of compute resources in Amazon Redshift Serverless.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.redshiftserverless.*;
 CfnWorkgroup cfnWorkgroup = CfnWorkgroup.Builder.create(this, "MyCfnWorkgroup")
         .workgroupName("workgroupName")
         // the properties below are optional
         .baseCapacity(123)
         .configParameters(List.of(ConfigParameterProperty.builder()
                 .parameterKey("parameterKey")
                 .parameterValue("parameterValue")
                 .build()))
         .enhancedVpcRouting(false)
         .maxCapacity(123)
         .namespaceName("namespaceName")
         .port(123)
         .publiclyAccessible(false)
         .securityGroupIds(List.of("securityGroupIds"))
         .subnetIds(List.of("subnetIds"))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnWorkgroup

      protected CfnWorkgroup(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnWorkgroup

      protected CfnWorkgroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnWorkgroup

      @Stability(Stable) public CfnWorkgroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnWorkgroupProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrWorkgroup

      @Stability(Stable) @NotNull public IResolvable getAttrWorkgroup()
    • getAttrWorkgroupBaseCapacity

      @Stability(Stable) @NotNull public Number getAttrWorkgroupBaseCapacity()
      The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).
    • getAttrWorkgroupConfigParameters

      @Stability(Stable) @NotNull public IResolvable getAttrWorkgroupConfigParameters()
    • getAttrWorkgroupCreationDate

      @Stability(Stable) @NotNull public String getAttrWorkgroupCreationDate()
      The creation date of the workgroup.
    • getAttrWorkgroupEndpoint

      @Stability(Stable) @NotNull public IResolvable getAttrWorkgroupEndpoint()
    • getAttrWorkgroupEndpointAddress

      @Stability(Stable) @NotNull public String getAttrWorkgroupEndpointAddress()
      The DNS address of the VPC endpoint.
    • getAttrWorkgroupEndpointPort

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

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

    • getAttrWorkgroupEndpointVpcEndpoints

      @Stability(Stable) @NotNull public IResolvable getAttrWorkgroupEndpointVpcEndpoints()
    • getAttrWorkgroupEnhancedVpcRouting

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

      @Stability(Stable) @NotNull public Number getAttrWorkgroupMaxCapacity()
      The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries.

      The max capacity is specified in RPUs.

    • getAttrWorkgroupNamespaceName

      @Stability(Stable) @NotNull public String getAttrWorkgroupNamespaceName()
      The namespace the workgroup is associated with.
    • getAttrWorkgroupPubliclyAccessible

      @Stability(Stable) @NotNull public IResolvable getAttrWorkgroupPubliclyAccessible()
      A value that specifies whether the workgroup can be accessible from a public network.
    • getAttrWorkgroupSecurityGroupIds

      @Stability(Stable) @NotNull public List<String> getAttrWorkgroupSecurityGroupIds()
      An array of security group IDs to associate with the workgroup.
    • getAttrWorkgroupStatus

      @Stability(Stable) @NotNull public String getAttrWorkgroupStatus()
      The status of the workgroup.
    • getAttrWorkgroupSubnetIds

      @Stability(Stable) @NotNull public List<String> getAttrWorkgroupSubnetIds()
      An array of subnet IDs the workgroup is associated with.
    • getAttrWorkgroupWorkgroupArn

      @Stability(Stable) @NotNull public String getAttrWorkgroupWorkgroupArn()
      The Amazon Resource Name (ARN) that links to the workgroup.
    • getAttrWorkgroupWorkgroupId

      @Stability(Stable) @NotNull public String getAttrWorkgroupWorkgroupId()
      The unique identifier of the workgroup.
    • getAttrWorkgroupWorkgroupName

      @Stability(Stable) @NotNull public String getAttrWorkgroupWorkgroupName()
      The name of the workgroup.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getWorkgroupName

      @Stability(Stable) @NotNull public String getWorkgroupName()
      The name of the workgroup.
    • setWorkgroupName

      @Stability(Stable) public void setWorkgroupName(@NotNull String value)
      The name of the workgroup.
    • getBaseCapacity

      @Stability(Stable) @Nullable public Number getBaseCapacity()
      The base compute capacity of the workgroup in Redshift Processing Units (RPUs).
    • setBaseCapacity

      @Stability(Stable) public void setBaseCapacity(@Nullable Number value)
      The base compute capacity of the workgroup in Redshift Processing Units (RPUs).
    • getConfigParameters

      @Stability(Stable) @Nullable public Object getConfigParameters()
      A list of parameters to set for finer control over a database.
    • setConfigParameters

      @Stability(Stable) public void setConfigParameters(@Nullable IResolvable value)
      A list of parameters to set for finer control over a database.
    • setConfigParameters

      @Stability(Stable) public void setConfigParameters(@Nullable List<Object> value)
      A list of parameters to set for finer control over a database.
    • getEnhancedVpcRouting

      @Stability(Stable) @Nullable public Object getEnhancedVpcRouting()
      The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
    • setEnhancedVpcRouting

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

      @Stability(Stable) public void setEnhancedVpcRouting(@Nullable IResolvable value)
      The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
    • getMaxCapacity

      @Stability(Stable) @Nullable public Number getMaxCapacity()
      The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries.
    • setMaxCapacity

      @Stability(Stable) public void setMaxCapacity(@Nullable Number value)
      The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries.
    • getNamespaceName

      @Stability(Stable) @Nullable public String getNamespaceName()
      The namespace the workgroup is associated with.
    • setNamespaceName

      @Stability(Stable) public void setNamespaceName(@Nullable String value)
      The namespace the workgroup is associated with.
    • getPort

      @Stability(Stable) @Nullable public Number getPort()
      The custom port to use when connecting to a workgroup.
    • setPort

      @Stability(Stable) public void setPort(@Nullable Number value)
      The custom port to use when connecting to a workgroup.
    • getPubliclyAccessible

      @Stability(Stable) @Nullable public Object getPubliclyAccessible()
      A value that specifies whether the workgroup can be accessible from a public network.
    • setPubliclyAccessible

      @Stability(Stable) public void setPubliclyAccessible(@Nullable Boolean value)
      A value that specifies whether the workgroup can be accessible from a public network.
    • setPubliclyAccessible

      @Stability(Stable) public void setPubliclyAccessible(@Nullable IResolvable value)
      A value that specifies whether the workgroup can be accessible from a public network.
    • getSecurityGroupIds

      @Stability(Stable) @Nullable public List<String> getSecurityGroupIds()
      A list of security group IDs to associate with the workgroup.
    • setSecurityGroupIds

      @Stability(Stable) public void setSecurityGroupIds(@Nullable List<String> value)
      A list of security group IDs to associate with the workgroup.
    • getSubnetIds

      @Stability(Stable) @Nullable public List<String> getSubnetIds()
      A list of subnet IDs the workgroup is associated with.
    • setSubnetIds

      @Stability(Stable) public void setSubnetIds(@Nullable List<String> value)
      A list of subnet IDs the workgroup is associated with.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      The map of the key-value pairs used to tag the workgroup.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      The map of the key-value pairs used to tag the workgroup.