libZSservicesZSamazonka-athenaZSamazonka-athena
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Athena.ListWorkGroups

Description

Lists available workgroups for the account.

Synopsis

Creating a Request

data ListWorkGroups Source #

See: newListWorkGroups smart constructor.

Constructors

ListWorkGroups' 

Fields

  • nextToken :: Maybe Text

    A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

  • maxResults :: Maybe Natural

    The maximum number of workgroups to return in this request.

Instances

Instances details
Eq ListWorkGroups Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

Read ListWorkGroups Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

Show ListWorkGroups Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

Generic ListWorkGroups Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

Associated Types

type Rep ListWorkGroups :: Type -> Type #

NFData ListWorkGroups Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

Methods

rnf :: ListWorkGroups -> () #

Hashable ListWorkGroups Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

ToJSON ListWorkGroups Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

AWSRequest ListWorkGroups Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

Associated Types

type AWSResponse ListWorkGroups #

ToHeaders ListWorkGroups Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

ToPath ListWorkGroups Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

ToQuery ListWorkGroups Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

type Rep ListWorkGroups Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

type Rep ListWorkGroups = D1 ('MetaData "ListWorkGroups" "Amazonka.Athena.ListWorkGroups" "libZSservicesZSamazonka-athenaZSamazonka-athena" 'False) (C1 ('MetaCons "ListWorkGroups'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))
type AWSResponse ListWorkGroups Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

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:nextToken:ListWorkGroups', listWorkGroups_nextToken - A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

$sel:maxResults:ListWorkGroups', listWorkGroups_maxResults - The maximum number of workgroups to return in this request.

Request Lenses

listWorkGroups_nextToken :: Lens' ListWorkGroups (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

listWorkGroups_maxResults :: Lens' ListWorkGroups (Maybe Natural) Source #

The maximum number of workgroups to return in this request.

Destructuring the Response

data ListWorkGroupsResponse Source #

See: newListWorkGroupsResponse smart constructor.

Constructors

ListWorkGroupsResponse' 

Fields

  • nextToken :: Maybe Text

    A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

  • workGroups :: Maybe [WorkGroupSummary]

    A list of WorkGroupSummary objects that include the names, descriptions, creation times, and states for each workgroup.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListWorkGroupsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

Read ListWorkGroupsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

Show ListWorkGroupsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

Generic ListWorkGroupsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

Associated Types

type Rep ListWorkGroupsResponse :: Type -> Type #

NFData ListWorkGroupsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

Methods

rnf :: ListWorkGroupsResponse -> () #

type Rep ListWorkGroupsResponse Source # 
Instance details

Defined in Amazonka.Athena.ListWorkGroups

type Rep ListWorkGroupsResponse = D1 ('MetaData "ListWorkGroupsResponse" "Amazonka.Athena.ListWorkGroups" "libZSservicesZSamazonka-athenaZSamazonka-athena" 'False) (C1 ('MetaCons "ListWorkGroupsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "workGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [WorkGroupSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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:

$sel:nextToken:ListWorkGroups', listWorkGroupsResponse_nextToken - A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

$sel:workGroups:ListWorkGroupsResponse', listWorkGroupsResponse_workGroups - A list of WorkGroupSummary objects that include the names, descriptions, creation times, and states for each workgroup.

$sel:httpStatus:ListWorkGroupsResponse', listWorkGroupsResponse_httpStatus - The response's http status code.

Response Lenses

listWorkGroupsResponse_nextToken :: Lens' ListWorkGroupsResponse (Maybe Text) Source #

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

listWorkGroupsResponse_workGroups :: Lens' ListWorkGroupsResponse (Maybe [WorkGroupSummary]) Source #

A list of WorkGroupSummary objects that include the names, descriptions, creation times, and states for each workgroup.