list_workgroups
async
¶
list_workgroups(
*,
config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None,
next_token: Optional[str] = None,
max_results: Optional[int] = None,
owner_account: Optional[OwnerAccount] = None,
) -> ListWorkgroupsResponse
Returns information about a list of specified workgroups.
Parameters:
-
next_token(Optional[str], default:None) –If your initial ListWorkgroups operation returns a
nextToken, you can include the returnednextTokenin following ListNamespaces operations, which returns results in the next page. -
max_results(Optional[int], default:None) –An optional parameter that specifies the maximum number of results to return. You can use
nextTokento display the next page of results. -
owner_account(Optional[OwnerAccount], default:None) –The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
Raises:
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ValidationException–The input failed to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.