| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.MQ.ListBrokers
Description
Returns a list of all brokers.
This operation returns paginated results.
Synopsis
- data ListBrokers = ListBrokers' {}
- newListBrokers :: ListBrokers
- listBrokers_maxResults :: Lens' ListBrokers (Maybe Natural)
- listBrokers_nextToken :: Lens' ListBrokers (Maybe Text)
- data ListBrokersResponse = ListBrokersResponse' {
- brokerSummaries :: Maybe [BrokerSummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListBrokersResponse :: Int -> ListBrokersResponse
- listBrokersResponse_brokerSummaries :: Lens' ListBrokersResponse (Maybe [BrokerSummary])
- listBrokersResponse_nextToken :: Lens' ListBrokersResponse (Maybe Text)
- listBrokersResponse_httpStatus :: Lens' ListBrokersResponse Int
Creating a Request
data ListBrokers Source #
See: newListBrokers smart constructor.
Constructors
| ListBrokers' | |
Fields
| |
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: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
newListBrokersResponse Source #
Arguments
| :: Int | |
| -> ListBrokersResponse |
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_brokerSummaries :: Lens' ListBrokersResponse (Maybe [BrokerSummary]) Source #
A list of information about all brokers.
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_httpStatus :: Lens' ListBrokersResponse Int Source #
The response's http status code.