UpdateWorkgroup - Amazon Redshift Serverless

UpdateWorkgroup

Updates a workgroup with the specified configuration settings.

Request Syntax

{ "baseCapacity": number, "configParameters": [ { "parameterKey": "string", "parameterValue": "string" } ], "enhancedVpcRouting": boolean, "publiclyAccessible": boolean, "securityGroupIds": [ "string" ], "subnetIds": [ "string" ], "workgroupName": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

baseCapacity

The new base data warehouse capacity in Redshift Processing Units (RPUs).

Type: Integer

Required: No

configParameters

An array of parameters to set for advanced control over a database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.

Type: Array of ConfigParameter objects

Required: No

enhancedVpcRouting

The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.

Type: Boolean

Required: No

publiclyAccessible

A value that specifies whether the workgroup can be accessible from a public network.

Type: Boolean

Required: No

securityGroupIds

An array of security group IDs to associate with the workgroup.

Type: Array of strings

Required: No

subnetIds

An array of VPC subnet IDs to associate with the workgroup.

Type: Array of strings

Required: No

workgroupName

The name of the workgroup to update.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 64.

Pattern: ^[a-z0-9-]+$

Required: Yes

Response Syntax

{ "workgroup": { "baseCapacity": number, "configParameters": [ { "parameterKey": "string", "parameterValue": "string" } ], "creationDate": number, "endpoint": { "address": "string", "port": number, "vpcEndpoints": [ { "networkInterfaces": [ { "availabilityZone": "string", "networkInterfaceId": "string", "privateIpAddress": "string", "subnetId": "string" } ], "vpcEndpointId": "string", "vpcId": "string" } ] }, "enhancedVpcRouting": boolean, "namespaceName": "string", "publiclyAccessible": boolean, "securityGroupIds": [ "string" ], "status": "string", "subnetIds": [ "string" ], "workgroupArn": "string", "workgroupId": "string", "workgroupName": "string" } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

workgroup

The updated workgroup object.

Type: Workgroup object

Errors

For information about the errors that are common to all actions, see Common Errors.

ConflictException

The submitted action has conflicts.

HTTP Status Code: 400

InsufficientCapacityException

There is an insufficient capacity to perform the action.

HTTP Status Code: 400

InternalServerException

The request processing has failed because of an unknown error, exception or failure.

HTTP Status Code: 500

ResourceNotFoundException

The resource could not be found.

HTTP Status Code: 400

ValidationException

The input failed to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: