Class CfnWorkgroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.redshiftserverless.CfnWorkgroup
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IWorkgroupRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:44.023Z")
@Stability(Stable)
public class CfnWorkgroup
extends CfnResource
implements IInspectable, IWorkgroupRef, 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)
.pricePerformanceTarget(PerformanceTargetProperty.builder()
.level(123)
.status("status")
.build())
.publiclyAccessible(false)
.recoveryPointId("recoveryPointId")
.securityGroupIds(List.of("securityGroupIds"))
.snapshotArn("snapshotArn")
.snapshotName("snapshotName")
.snapshotOwnerAccount("snapshotOwnerAccount")
.subnetIds(List.of("subnetIds"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.trackName("trackName")
.workgroup(WorkgroupProperty.builder()
.baseCapacity(123)
.configParameters(List.of(ConfigParameterProperty.builder()
.parameterKey("parameterKey")
.parameterValue("parameterValue")
.build()))
.creationDate("creationDate")
.endpoint(EndpointProperty.builder()
.address("address")
.port(123)
.vpcEndpoints(List.of(VpcEndpointProperty.builder()
.networkInterfaces(List.of(NetworkInterfaceProperty.builder()
.availabilityZone("availabilityZone")
.networkInterfaceId("networkInterfaceId")
.privateIpAddress("privateIpAddress")
.subnetId("subnetId")
.build()))
.vpcEndpointId("vpcEndpointId")
.vpcId("vpcId")
.build()))
.build())
.enhancedVpcRouting(false)
.maxCapacity(123)
.namespaceName("namespaceName")
.pricePerformanceTarget(PerformanceTargetProperty.builder()
.level(123)
.status("status")
.build())
.publiclyAccessible(false)
.securityGroupIds(List.of("securityGroupIds"))
.status("status")
.subnetIds(List.of("subnetIds"))
.trackName("trackName")
.workgroupArn("workgroupArn")
.workgroupId("workgroupId")
.workgroupName("workgroupName")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnWorkgroup.static interfaceA array of parameters to set for more control over a serverless database.static interfaceThe VPC endpoint object.static interfaceContains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.static interfaceAn object that represents the price performance target settings for the workgroup.static interfaceThe connection endpoint for connecting to Amazon Redshift Serverless through the proxy.static interfaceThe collection of computing resources from which an endpoint is created.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.redshiftserverless.IWorkgroupRef
IWorkgroupRef.Jsii$Default, IWorkgroupRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnWorkgroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWorkgroup(software.amazon.jsii.JsiiObjectRef objRef) CfnWorkgroup(software.constructs.Construct scope, String id, CfnWorkgroupProps props) Create a newAWS::RedshiftServerless::Workgroup. -
Method Summary
Modifier and TypeMethodDescriptionThe base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).The creation date of the workgroup.The DNS address of the VPC endpoint.The custom port to use when connecting to a workgroup.The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries.The namespace the workgroup is associated with.A value that specifies whether the workgroup can be accessible from a public network.An array of security group IDs to associate with the workgroup.The status of the workgroup.An array of subnet IDs the workgroup is associated with.The name of the track for the workgroup.The Amazon Resource Name (ARN) that links to the workgroup.The unique identifier of the workgroup.The name of the workgroup.The base compute capacity of the workgroup in Redshift Processing Units (RPUs).The key of the parameter.The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries.The namespace the workgroup is associated with.getPort()The custom port to use when connecting to a workgroup.An object that represents the price performance target settings for the workgroup.A value that specifies whether the workgroup can be accessible from a public network.The recovery point id to restore from.A list of security group IDs to associate with the workgroup.The Amazon Resource Name (ARN) of the snapshot to restore from.The snapshot name to restore from.The Amazon Web Services account that owns the snapshot.A list of subnet IDs the workgroup is associated with.getTags()Tag Manager which manages the tags for this resource.The map of the key-value pairs used to tag the workgroup.An optional parameter for the name of the track for the workgroup.The collection of computing resources from which an endpoint is created.The name of the workgroup.A reference to a Workgroup resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnWorkgroup.renderProperties(Map<String, Object> props) voidsetBaseCapacity(Number value) The base compute capacity of the workgroup in Redshift Processing Units (RPUs).voidsetConfigParameters(List<Object> value) The key of the parameter.voidsetConfigParameters(IResolvable value) The key of the parameter.voidsetEnhancedVpcRouting(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.voidsetEnhancedVpcRouting(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.voidsetMaxCapacity(Number value) The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries.voidsetNamespaceName(String value) The namespace the workgroup is associated with.voidThe custom port to use when connecting to a workgroup.voidAn object that represents the price performance target settings for the workgroup.voidAn object that represents the price performance target settings for the workgroup.voidsetPubliclyAccessible(Boolean value) A value that specifies whether the workgroup can be accessible from a public network.voidsetPubliclyAccessible(IResolvable value) A value that specifies whether the workgroup can be accessible from a public network.voidsetRecoveryPointId(String value) The recovery point id to restore from.voidsetSecurityGroupIds(List<String> value) A list of security group IDs to associate with the workgroup.voidsetSnapshotArn(String value) The Amazon Resource Name (ARN) of the snapshot to restore from.voidsetSnapshotName(String value) The snapshot name to restore from.voidsetSnapshotOwnerAccount(String value) The Amazon Web Services account that owns the snapshot.voidsetSubnetIds(List<String> value) A list of subnet IDs the workgroup is associated with.voidsetTagsRaw(List<CfnTag> value) The map of the key-value pairs used to tag the workgroup.voidsetTrackName(String value) An optional parameter for the name of the track for the workgroup.voidsetWorkgroup(IResolvable value) The collection of computing resources from which an endpoint is created.voidThe collection of computing resources from which an endpoint is created.voidsetWorkgroupName(String value) The name of the workgroup.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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) Create a newAWS::RedshiftServerless::Workgroup.- 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
-
isCfnWorkgroup
Checks whether the given object is a CfnWorkgroup.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrWorkgroup
-
getAttrWorkgroupBaseCapacity
The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs). -
getAttrWorkgroupConfigParameters
-
getAttrWorkgroupCreationDate
The creation date of the workgroup. -
getAttrWorkgroupEndpoint
-
getAttrWorkgroupEndpointAddress
The DNS address of the VPC endpoint. -
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
-
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
The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries.The max capacity is specified in RPUs.
-
getAttrWorkgroupNamespaceName
The namespace the workgroup is associated with. -
getAttrWorkgroupPubliclyAccessible
A value that specifies whether the workgroup can be accessible from a public network. -
getAttrWorkgroupSecurityGroupIds
An array of security group IDs to associate with the workgroup. -
getAttrWorkgroupStatus
The status of the workgroup. -
getAttrWorkgroupSubnetIds
An array of subnet IDs the workgroup is associated with. -
getAttrWorkgroupTrackName
The name of the track for the workgroup. -
getAttrWorkgroupWorkgroupArn
The Amazon Resource Name (ARN) that links to the workgroup. -
getAttrWorkgroupWorkgroupId
The unique identifier of the workgroup. -
getAttrWorkgroupWorkgroupName
The name of the workgroup. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getWorkgroupRef
A reference to a Workgroup resource.- Specified by:
getWorkgroupRefin interfaceIWorkgroupRef
-
getWorkgroupName
The name of the workgroup. -
setWorkgroupName
The name of the workgroup. -
getBaseCapacity
The base compute capacity of the workgroup in Redshift Processing Units (RPUs). -
setBaseCapacity
The base compute capacity of the workgroup in Redshift Processing Units (RPUs). -
getConfigParameters
The key of the parameter.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnWorkgroup.ConfigParameterProperty> -
setConfigParameters
The key of the parameter. -
setConfigParameters
The key of the parameter. -
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.Returns union: either
BooleanorIResolvable -
setEnhancedVpcRouting
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
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
The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. -
setMaxCapacity
The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. -
getNamespaceName
The namespace the workgroup is associated with. -
setNamespaceName
The namespace the workgroup is associated with. -
getPort
The custom port to use when connecting to a workgroup. -
setPort
The custom port to use when connecting to a workgroup. -
getPricePerformanceTarget
An object that represents the price performance target settings for the workgroup.Returns union: either
IResolvableorCfnWorkgroup.PerformanceTargetProperty -
setPricePerformanceTarget
An object that represents the price performance target settings for the workgroup. -
setPricePerformanceTarget
@Stability(Stable) public void setPricePerformanceTarget(@Nullable CfnWorkgroup.PerformanceTargetProperty value) An object that represents the price performance target settings for the workgroup. -
getPubliclyAccessible
A value that specifies whether the workgroup can be accessible from a public network.Returns union: either
BooleanorIResolvable -
setPubliclyAccessible
A value that specifies whether the workgroup can be accessible from a public network. -
setPubliclyAccessible
A value that specifies whether the workgroup can be accessible from a public network. -
getRecoveryPointId
The recovery point id to restore from. -
setRecoveryPointId
The recovery point id to restore from. -
getSecurityGroupIds
A list of security group IDs to associate with the workgroup. -
setSecurityGroupIds
A list of security group IDs to associate with the workgroup. -
getSnapshotArn
The Amazon Resource Name (ARN) of the snapshot to restore from. -
setSnapshotArn
The Amazon Resource Name (ARN) of the snapshot to restore from. -
getSnapshotName
The snapshot name to restore from. -
setSnapshotName
The snapshot name to restore from. -
getSnapshotOwnerAccount
The Amazon Web Services account that owns the snapshot. -
setSnapshotOwnerAccount
The Amazon Web Services account that owns the snapshot. -
getSubnetIds
A list of subnet IDs the workgroup is associated with. -
setSubnetIds
A list of subnet IDs the workgroup is associated with. -
getTagsRaw
The map of the key-value pairs used to tag the workgroup. -
setTagsRaw
The map of the key-value pairs used to tag the workgroup. -
getTrackName
An optional parameter for the name of the track for the workgroup. -
setTrackName
An optional parameter for the name of the track for the workgroup. -
getWorkgroup
The collection of computing resources from which an endpoint is created.Returns union: either
IResolvableorCfnWorkgroup.WorkgroupProperty -
setWorkgroup
The collection of computing resources from which an endpoint is created. -
setWorkgroup
The collection of computing resources from which an endpoint is created.
-