Creates an workgroup in Amazon Redshift Serverless¶
Description¶
Creates an workgroup in Amazon Redshift Serverless.
VPC Block Public Access (BPA) enables you to block resources in VPCs and subnets that you own in a Region from reaching or being reached from the internet through internet gateways and egress-only internet gateways. If a workgroup is in an account with VPC BPA turned on, the following capabilities are blocked:
- Creating a public access workgroup
- Modifying a private workgroup to public
- Adding a subnet with VPC BPA turned on to the workgroup when the workgroup is public
For more information about VPC BPA, see Block public access to VPCs and subnets in the Amazon VPC User Guide.
Usage¶
redshiftserverless_create_workgroup(baseCapacity, configParameters,
enhancedVpcRouting, extraComputeForAutomaticOptimization, ipAddressType,
maxCapacity, namespaceName, port, pricePerformanceTarget,
publiclyAccessible, securityGroupIds, subnetIds, tags, trackName,
workgroupName)
Arguments¶
-
baseCapacityThe base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).
-
configParametersAn array of parameters to set for advanced control over a database. The options are
auto_mv,datestyle,enable_case_sensitive_identifier,enable_user_activity_logging,query_group,search_path,require_ssl,use_fips_ssl, and eitherwlm_json_configurationor query monitoring metrics that let you define performance boundaries. You can either specify individual query monitoring metrics (such asmax_scan_row_count,max_query_execution_time) or usewlm_json_configurationto define query queues with rules, but not both. If you're usingwlm_json_configuration, the maximum size ofparameterValueis 8000 characters. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless. -
enhancedVpcRoutingThe value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC instead of over the internet.
-
extraComputeForAutomaticOptimizationIf
true, allocates additional compute resources for running automatic optimization operations.Default: false
-
ipAddressTypeThe IP address type that the workgroup supports. Possible values are
ipv4anddualstack. -
maxCapacityThe maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs.
-
namespaceName[required] The name of the namespace to associate with the workgroup.
-
portThe custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.
-
pricePerformanceTargetAn object that represents the price performance target settings for the workgroup.
-
publiclyAccessibleA value that specifies whether the workgroup can be accessed from a public network.
-
securityGroupIdsAn array of security group IDs to associate with the workgroup.
-
subnetIdsAn array of VPC subnet IDs to associate with the workgroup.
-
tagsA array of tag instances.
-
trackNameAn optional parameter for the name of the track for the workgroup. If you don't provide a track name, the workgroup is assigned to the
currenttrack. -
workgroupName[required] The name of the created workgroup.
Value¶
A list with the following syntax:
list(
workgroup = list(
baseCapacity = 123,
configParameters = list(
list(
parameterKey = "string",
parameterValue = "string"
)
),
creationDate = as.POSIXct(
"2015-01-01"
),
crossAccountVpcs = list(
"string"
),
customDomainCertificateArn = "string",
customDomainCertificateExpiryTime = as.POSIXct(
"2015-01-01"
),
customDomainName = "string",
endpoint = list(
address = "string",
port = 123,
vpcEndpoints = list(
list(
networkInterfaces = list(
list(
availabilityZone = "string",
ipv6Address = "string",
networkInterfaceId = "string",
privateIpAddress = "string",
subnetId = "string"
)
),
vpcEndpointId = "string",
vpcId = "string"
)
)
),
enhancedVpcRouting = TRUE|FALSE,
extraComputeForAutomaticOptimization = TRUE|FALSE,
ipAddressType = "string",
maxCapacity = 123,
namespaceName = "string",
patchVersion = "string",
pendingTrackName = "string",
port = 123,
pricePerformanceTarget = list(
level = 123,
status = "ENABLED"|"DISABLED"
),
publiclyAccessible = TRUE|FALSE,
securityGroupIds = list(
"string"
),
status = "CREATING"|"AVAILABLE"|"MODIFYING"|"DELETING",
subnetIds = list(
"string"
),
trackName = "string",
workgroupArn = "string",
workgroupId = "string",
workgroupName = "string",
workgroupVersion = "string"
)
)
Request syntax¶
svc$create_workgroup(
baseCapacity = 123,
configParameters = list(
list(
parameterKey = "string",
parameterValue = "string"
)
),
enhancedVpcRouting = TRUE|FALSE,
extraComputeForAutomaticOptimization = TRUE|FALSE,
ipAddressType = "string",
maxCapacity = 123,
namespaceName = "string",
port = 123,
pricePerformanceTarget = list(
level = 123,
status = "ENABLED"|"DISABLED"
),
publiclyAccessible = TRUE|FALSE,
securityGroupIds = list(
"string"
),
subnetIds = list(
"string"
),
tags = list(
list(
key = "string",
value = "string"
)
),
trackName = "string",
workgroupName = "string"
)