amazonka-mq-2.0: Amazon MQ 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.MQ.ListBrokers

Description

Returns a list of all brokers.

This operation returns paginated results.

Synopsis

Creating a Request

data ListBrokers Source #

See: newListBrokers smart constructor.

Constructors

ListBrokers' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of brokers that Amazon MQ can return per page (20 by default). This value must be an integer from 5 to 100.

  • nextToken :: Maybe Text

    The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.

Instances

Instances details
ToHeaders ListBrokers Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

Methods

toHeaders :: ListBrokers -> [Header] #

ToPath ListBrokers Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

ToQuery ListBrokers Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

AWSPager ListBrokers Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

AWSRequest ListBrokers Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

Associated Types

type AWSResponse ListBrokers #

Generic ListBrokers Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

Associated Types

type Rep ListBrokers :: Type -> Type #

Read ListBrokers Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

Show ListBrokers Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

NFData ListBrokers Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

Methods

rnf :: ListBrokers -> () #

Eq ListBrokers Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

Hashable ListBrokers Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

type AWSResponse ListBrokers Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

type Rep ListBrokers Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

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

newListBrokers :: ListBrokers Source #

Create a value of ListBrokers 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:ListBrokers', listBrokers_maxResults - The maximum number of brokers that Amazon MQ can return per page (20 by default). This value must be an integer from 5 to 100.

ListBrokers, listBrokers_nextToken - The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.

Request Lenses

listBrokers_maxResults :: Lens' ListBrokers (Maybe Natural) Source #

The maximum number of brokers that Amazon MQ can return per page (20 by default). This value must be an integer from 5 to 100.

listBrokers_nextToken :: Lens' ListBrokers (Maybe Text) Source #

The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.

Destructuring the Response

data ListBrokersResponse Source #

See: newListBrokersResponse smart constructor.

Constructors

ListBrokersResponse' 

Fields

Instances

Instances details
Generic ListBrokersResponse Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

Associated Types

type Rep ListBrokersResponse :: Type -> Type #

Read ListBrokersResponse Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

Show ListBrokersResponse Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

NFData ListBrokersResponse Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

Methods

rnf :: ListBrokersResponse -> () #

Eq ListBrokersResponse Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

type Rep ListBrokersResponse Source # 
Instance details

Defined in Amazonka.MQ.ListBrokers

type Rep ListBrokersResponse = D1 ('MetaData "ListBrokersResponse" "Amazonka.MQ.ListBrokers" "amazonka-mq-2.0-3ebKNoK022m255Abw9OF0s" 'False) (C1 ('MetaCons "ListBrokersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "brokerSummaries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BrokerSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListBrokersResponse Source #

Create a value of ListBrokersResponse 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:brokerSummaries:ListBrokersResponse', listBrokersResponse_brokerSummaries - A list of information about all brokers.

ListBrokers, listBrokersResponse_nextToken - The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.

$sel:httpStatus:ListBrokersResponse', listBrokersResponse_httpStatus - The response's http status code.

Response Lenses

listBrokersResponse_nextToken :: Lens' ListBrokersResponse (Maybe Text) Source #

The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.