Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns a list of all brokers.
This operation returns paginated results.
Synopsis
- data ListBrokers = ListBrokers' {}
- newListBrokers :: ListBrokers
- listBrokers_nextToken :: Lens' ListBrokers (Maybe Text)
- listBrokers_maxResults :: Lens' ListBrokers (Maybe Natural)
- data ListBrokersResponse = ListBrokersResponse' {
- nextToken :: Maybe Text
- brokerSummaries :: Maybe [BrokerSummary]
- httpStatus :: Int
- newListBrokersResponse :: Int -> ListBrokersResponse
- listBrokersResponse_nextToken :: Lens' ListBrokersResponse (Maybe Text)
- listBrokersResponse_brokerSummaries :: Lens' ListBrokersResponse (Maybe [BrokerSummary])
- listBrokersResponse_httpStatus :: Lens' ListBrokersResponse Int
Creating a Request
data ListBrokers Source #
See: newListBrokers
smart constructor.
ListBrokers' | |
|
Instances
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:nextToken:ListBrokers'
, listBrokers_nextToken
- The token that specifies the next page of results Amazon MQ should
return. To request the first page, leave nextToken empty.
$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.
Request Lenses
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.
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.
Destructuring the Response
data ListBrokersResponse Source #
See: newListBrokersResponse
smart constructor.
ListBrokersResponse' | |
|
Instances
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:nextToken: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:brokerSummaries:ListBrokersResponse'
, listBrokersResponse_brokerSummaries
- A list of information about all brokers.
$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.
listBrokersResponse_brokerSummaries :: Lens' ListBrokersResponse (Maybe [BrokerSummary]) Source #
A list of information about all brokers.
listBrokersResponse_httpStatus :: Lens' ListBrokersResponse Int Source #
The response's http status code.