amazonka-synthetics-2.0: Amazon Synthetics 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.Synthetics.ListGroups

Description

Returns a list of all groups in the account, displaying their names, unique IDs, and ARNs. The groups from all Regions are returned.

Synopsis

Creating a Request

data ListGroups Source #

See: newListGroups smart constructor.

Constructors

ListGroups' 

Fields

  • maxResults :: Maybe Natural

    Specify this parameter to limit how many groups are returned each time you use the ListGroups operation. If you omit this parameter, the default of 20 is used.

  • nextToken :: Maybe Text

    A token that indicates that there is more data available. You can use this token in a subsequent operation to retrieve the next set of results.

Instances

Instances details
ToJSON ListGroups Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

ToHeaders ListGroups Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

Methods

toHeaders :: ListGroups -> [Header] #

ToPath ListGroups Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

ToQuery ListGroups Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

AWSRequest ListGroups Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

Associated Types

type AWSResponse ListGroups #

Generic ListGroups Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

Associated Types

type Rep ListGroups :: Type -> Type #

Read ListGroups Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

Show ListGroups Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

NFData ListGroups Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

Methods

rnf :: ListGroups -> () #

Eq ListGroups Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

Hashable ListGroups Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

type AWSResponse ListGroups Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

type Rep ListGroups Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

type Rep ListGroups = D1 ('MetaData "ListGroups" "Amazonka.Synthetics.ListGroups" "amazonka-synthetics-2.0-3I8gICXDswl2F1HDbijRHZ" 'False) (C1 ('MetaCons "ListGroups'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListGroups :: ListGroups Source #

Create a value of ListGroups 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:ListGroups', listGroups_maxResults - Specify this parameter to limit how many groups are returned each time you use the ListGroups operation. If you omit this parameter, the default of 20 is used.

ListGroups, listGroups_nextToken - A token that indicates that there is more data available. You can use this token in a subsequent operation to retrieve the next set of results.

Request Lenses

listGroups_maxResults :: Lens' ListGroups (Maybe Natural) Source #

Specify this parameter to limit how many groups are returned each time you use the ListGroups operation. If you omit this parameter, the default of 20 is used.

listGroups_nextToken :: Lens' ListGroups (Maybe Text) Source #

A token that indicates that there is more data available. You can use this token in a subsequent operation to retrieve the next set of results.

Destructuring the Response

data ListGroupsResponse Source #

See: newListGroupsResponse smart constructor.

Constructors

ListGroupsResponse' 

Fields

  • groups :: Maybe [GroupSummary]

    An array of structures that each contain information about one group.

  • nextToken :: Maybe Text

    A token that indicates that there is more data available. You can use this token in a subsequent ListGroups operation to retrieve the next set of results.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListGroupsResponse Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

Associated Types

type Rep ListGroupsResponse :: Type -> Type #

Read ListGroupsResponse Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

Show ListGroupsResponse Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

NFData ListGroupsResponse Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

Methods

rnf :: ListGroupsResponse -> () #

Eq ListGroupsResponse Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

type Rep ListGroupsResponse Source # 
Instance details

Defined in Amazonka.Synthetics.ListGroups

type Rep ListGroupsResponse = D1 ('MetaData "ListGroupsResponse" "Amazonka.Synthetics.ListGroups" "amazonka-synthetics-2.0-3I8gICXDswl2F1HDbijRHZ" 'False) (C1 ('MetaCons "ListGroupsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "groups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GroupSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListGroupsResponse Source #

Create a value of ListGroupsResponse 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:groups:ListGroupsResponse', listGroupsResponse_groups - An array of structures that each contain information about one group.

ListGroups, listGroupsResponse_nextToken - A token that indicates that there is more data available. You can use this token in a subsequent ListGroups operation to retrieve the next set of results.

$sel:httpStatus:ListGroupsResponse', listGroupsResponse_httpStatus - The response's http status code.

Response Lenses

listGroupsResponse_groups :: Lens' ListGroupsResponse (Maybe [GroupSummary]) Source #

An array of structures that each contain information about one group.

listGroupsResponse_nextToken :: Lens' ListGroupsResponse (Maybe Text) Source #

A token that indicates that there is more data available. You can use this token in a subsequent ListGroups operation to retrieve the next set of results.