amazonka-redshift-serverless-2.0: Amazon Redshift Serverless SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.RedshiftServerLess.ListWorkgroups

Description

Returns information about a list of specified workgroups.

This operation returns paginated results.

Synopsis

Creating a Request

data ListWorkgroups Source #

See: newListWorkgroups smart constructor.

Constructors

ListWorkgroups' 

Fields

  • maxResults :: Maybe Natural

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

  • nextToken :: Maybe Text

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

Instances

Instances details
ToJSON ListWorkgroups Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

ToHeaders ListWorkgroups Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

ToPath ListWorkgroups Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

ToQuery ListWorkgroups Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

AWSPager ListWorkgroups Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

AWSRequest ListWorkgroups Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

Associated Types

type AWSResponse ListWorkgroups #

Generic ListWorkgroups Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

Associated Types

type Rep ListWorkgroups :: Type -> Type #

Read ListWorkgroups Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

Show ListWorkgroups Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

NFData ListWorkgroups Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

Methods

rnf :: ListWorkgroups -> () #

Eq ListWorkgroups Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

Hashable ListWorkgroups Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

type AWSResponse ListWorkgroups Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

type Rep ListWorkgroups Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

type Rep ListWorkgroups = D1 ('MetaData "ListWorkgroups" "Amazonka.RedshiftServerLess.ListWorkgroups" "amazonka-redshift-serverless-2.0-ApuSN33KEWs53jvwyBa3sl" 'False) (C1 ('MetaCons "ListWorkgroups'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListWorkgroups :: ListWorkgroups Source #

Create a value of ListWorkgroups with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:maxResults:ListWorkgroups', listWorkgroups_maxResults - An optional parameter that specifies the maximum number of results to return. You can use nextToken to display the next page of results.

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

Request Lenses

listWorkgroups_maxResults :: Lens' ListWorkgroups (Maybe Natural) Source #

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

listWorkgroups_nextToken :: Lens' ListWorkgroups (Maybe Text) Source #

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

Destructuring the Response

data ListWorkgroupsResponse Source #

See: newListWorkgroupsResponse smart constructor.

Constructors

ListWorkgroupsResponse' 

Fields

  • nextToken :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

  • workgroups :: [Workgroup]

    The returned array of workgroups.

Instances

Instances details
Generic ListWorkgroupsResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

Associated Types

type Rep ListWorkgroupsResponse :: Type -> Type #

Read ListWorkgroupsResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

Show ListWorkgroupsResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

NFData ListWorkgroupsResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

Methods

rnf :: ListWorkgroupsResponse -> () #

Eq ListWorkgroupsResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

type Rep ListWorkgroupsResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.ListWorkgroups

type Rep ListWorkgroupsResponse = D1 ('MetaData "ListWorkgroupsResponse" "Amazonka.RedshiftServerLess.ListWorkgroups" "amazonka-redshift-serverless-2.0-ApuSN33KEWs53jvwyBa3sl" 'False) (C1 ('MetaCons "ListWorkgroupsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "workgroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Workgroup]))))

newListWorkgroupsResponse Source #

Create a value of ListWorkgroupsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

ListWorkgroups, listWorkgroupsResponse_nextToken - 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.

$sel:httpStatus:ListWorkgroupsResponse', listWorkgroupsResponse_httpStatus - The response's http status code.

$sel:workgroups:ListWorkgroupsResponse', listWorkgroupsResponse_workgroups - The returned array of workgroups.

Response Lenses

listWorkgroupsResponse_nextToken :: Lens' ListWorkgroupsResponse (Maybe Text) Source #

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.