Protected
Creates an workgroup in Amazon Redshift Serverless.
Use a bare-bones client and the command you need to make an API call.
import { RedshiftServerlessClient, CreateWorkgroupCommand } from "@aws-sdk/client-redshift-serverless"; // ES Modules import// const { RedshiftServerlessClient, CreateWorkgroupCommand } = require("@aws-sdk/client-redshift-serverless"); // CommonJS importconst client = new RedshiftServerlessClient(config);const input = { workgroupName: "STRING_VALUE", // required namespaceName: "STRING_VALUE", // required baseCapacity: Number("int"), enhancedVpcRouting: true || false, configParameters: [ { parameterKey: "STRING_VALUE", parameterValue: "STRING_VALUE", }, ], securityGroupIds: [ "STRING_VALUE", ], subnetIds: [ "STRING_VALUE", ], publiclyAccessible: true || false, tags: [ { key: "STRING_VALUE", // required value: "STRING_VALUE", // required }, ], port: Number("int"),};const command = new CreateWorkgroupCommand(input);const response = await client.send(command);
CreateWorkgroupCommandInput
CreateWorkgroupCommandOutput
input
response
config
ConflictException (client fault)
The submitted action has conflicts.
InsufficientCapacityException (client fault)
There is an insufficient capacity to perform the action.
InternalServerException (server fault)
The request processing has failed because of an unknown error, exception or failure.
ResourceNotFoundException (client fault)
The resource could not be found.
TooManyTagsException (client fault)
The request exceeded the number of tags allowed for a resource.
ValidationException (client fault)
The input failed to satisfy the constraints specified by an AWS service.
Readonly
Static
Creates an workgroup in Amazon Redshift Serverless.
Example
Use a bare-bones client and the command you need to make an API call.
Param
CreateWorkgroupCommandInput
Returns
CreateWorkgroupCommandOutput
See
input
shape.response
shape.config
shape.Throws
ConflictException (client fault)
The submitted action has conflicts.
Throws
InsufficientCapacityException (client fault)
There is an insufficient capacity to perform the action.
Throws
InternalServerException (server fault)
The request processing has failed because of an unknown error, exception or failure.
Throws
ResourceNotFoundException (client fault)
The resource could not be found.
Throws
TooManyTagsException (client fault)
The request exceeded the number of tags allowed for a resource.
Throws
ValidationException (client fault)
The input failed to satisfy the constraints specified by an AWS service.