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 |
Retrieve a JSON array of up to twenty of your queues. This will return the queues themselves, not just a list of them. To retrieve the next twenty queues, use the nextToken string returned with the array.
This operation returns paginated results.
Synopsis
- data ListQueues = ListQueues' {}
- newListQueues :: ListQueues
- listQueues_listBy :: Lens' ListQueues (Maybe QueueListBy)
- listQueues_nextToken :: Lens' ListQueues (Maybe Text)
- listQueues_order :: Lens' ListQueues (Maybe Order)
- listQueues_maxResults :: Lens' ListQueues (Maybe Natural)
- data ListQueuesResponse = ListQueuesResponse' {}
- newListQueuesResponse :: Int -> ListQueuesResponse
- listQueuesResponse_queues :: Lens' ListQueuesResponse (Maybe [Queue])
- listQueuesResponse_nextToken :: Lens' ListQueuesResponse (Maybe Text)
- listQueuesResponse_httpStatus :: Lens' ListQueuesResponse Int
Creating a Request
data ListQueues Source #
See: newListQueues
smart constructor.
ListQueues' | |
|
Instances
newListQueues :: ListQueues Source #
Create a value of ListQueues
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:listBy:ListQueues'
, listQueues_listBy
- Optional. When you request a list of queues, you can choose to list them
alphabetically by NAME or chronologically by CREATION_DATE. If you
don't specify, the service will list them by creation date.
$sel:nextToken:ListQueues'
, listQueues_nextToken
- Use this string, provided with the response to a previous request, to
request the next batch of queues.
$sel:order:ListQueues'
, listQueues_order
- Optional. When you request lists of resources, you can specify whether
they are sorted in ASCENDING or DESCENDING order. Default varies by
resource.
$sel:maxResults:ListQueues'
, listQueues_maxResults
- Optional. Number of queues, up to twenty, that will be returned at one
time.
Request Lenses
listQueues_listBy :: Lens' ListQueues (Maybe QueueListBy) Source #
Optional. When you request a list of queues, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by creation date.
listQueues_nextToken :: Lens' ListQueues (Maybe Text) Source #
Use this string, provided with the response to a previous request, to request the next batch of queues.
listQueues_order :: Lens' ListQueues (Maybe Order) Source #
Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
listQueues_maxResults :: Lens' ListQueues (Maybe Natural) Source #
Optional. Number of queues, up to twenty, that will be returned at one time.
Destructuring the Response
data ListQueuesResponse Source #
See: newListQueuesResponse
smart constructor.
Instances
newListQueuesResponse Source #
Create a value of ListQueuesResponse
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:queues:ListQueuesResponse'
, listQueuesResponse_queues
- List of queues.
$sel:nextToken:ListQueues'
, listQueuesResponse_nextToken
- Use this string to request the next batch of queues.
$sel:httpStatus:ListQueuesResponse'
, listQueuesResponse_httpStatus
- The response's http status code.
Response Lenses
listQueuesResponse_queues :: Lens' ListQueuesResponse (Maybe [Queue]) Source #
List of queues.
listQueuesResponse_nextToken :: Lens' ListQueuesResponse (Maybe Text) Source #
Use this string to request the next batch of queues.
listQueuesResponse_httpStatus :: Lens' ListQueuesResponse Int Source #
The response's http status code.