Redshift Serverless

2024/12/03 - Redshift Serverless - 1 new api methods

Changes  Adds support for the ListManagedWorkgroups API to get an overview of existing managed workgroups.

ListManagedWorkgroups (new) Link ΒΆ

Returns information about a list of specified managed workgroups in your account.

See also: AWS API Documentation

Request Syntax

client.list_managed_workgroups(
    maxResults=123,
    nextToken='string',
    sourceArn='string'
)
type maxResults:

integer

param maxResults:

An optional parameter that specifies the maximum number of results to return. You can use nextToken to display the next page of results.

type nextToken:

string

param nextToken:

If your initial ListManagedWorkgroups operation returns a nextToken, you can include the returned nextToken in following ListManagedWorkgroups operations, which returns results in the next page.

type sourceArn:

string

param sourceArn:

The Amazon Resource Name (ARN) for the managed workgroup in the AWS Glue Data Catalog.

rtype:

dict

returns:

Response Syntax

{
    'managedWorkgroups': [
        {
            'creationDate': datetime(2015, 1, 1),
            'managedWorkgroupId': 'string',
            'managedWorkgroupName': 'string',
            'sourceArn': 'string',
            'status': 'CREATING'|'DELETING'|'MODIFYING'|'AVAILABLE'|'NOT_AVAILABLE'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • managedWorkgroups (list) --

      The returned array of managed workgroups.

      • (dict) --

        A collection of Amazon Redshift compute resources managed by AWS Glue.

        • creationDate (datetime) --

          The creation date of the managed workgroup.

        • managedWorkgroupId (string) --

          The unique identifier of the managed workgroup.

        • managedWorkgroupName (string) --

          The name of the managed workgroup.

        • sourceArn (string) --

          The Amazon Resource Name (ARN) for the managed workgroup in the AWS Glue Data Catalog.

        • status (string) --

          The status of the managed workgroup.

    • nextToken (string) --

      If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, make the call again using the returned token.