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 |
Provides information about the queues for the specified Amazon Connect instance.
If you do not specify a QueueTypes
parameter, both standard and agent
queues are returned. This might cause an unexpected truncation of
results if you have more than 1000 agents and you limit the number of
results of the API call in code.
For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator Guide.
This operation returns paginated results.
Synopsis
- data ListQueues = ListQueues' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- queueTypes :: Maybe [QueueType]
- instanceId :: Text
- newListQueues :: Text -> ListQueues
- listQueues_maxResults :: Lens' ListQueues (Maybe Natural)
- listQueues_nextToken :: Lens' ListQueues (Maybe Text)
- listQueues_queueTypes :: Lens' ListQueues (Maybe [QueueType])
- listQueues_instanceId :: Lens' ListQueues Text
- data ListQueuesResponse = ListQueuesResponse' {
- nextToken :: Maybe Text
- queueSummaryList :: Maybe [QueueSummary]
- httpStatus :: Int
- newListQueuesResponse :: Int -> ListQueuesResponse
- listQueuesResponse_nextToken :: Lens' ListQueuesResponse (Maybe Text)
- listQueuesResponse_queueSummaryList :: Lens' ListQueuesResponse (Maybe [QueueSummary])
- listQueuesResponse_httpStatus :: Lens' ListQueuesResponse Int
Creating a Request
data ListQueues Source #
See: newListQueues
smart constructor.
ListQueues' | |
|
Instances
:: Text | |
-> ListQueues |
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:maxResults:ListQueues'
, listQueues_maxResults
- The maximum number of results to return per page. The default MaxResult
size is 100.
ListQueues
, listQueues_nextToken
- The token for the next set of results. Use the value returned in the
previous response in the next request to retrieve the next set of
results.
$sel:queueTypes:ListQueues'
, listQueues_queueTypes
- The type of queue.
ListQueues
, listQueues_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
Request Lenses
listQueues_maxResults :: Lens' ListQueues (Maybe Natural) Source #
The maximum number of results to return per page. The default MaxResult size is 100.
listQueues_nextToken :: Lens' ListQueues (Maybe Text) Source #
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
listQueues_queueTypes :: Lens' ListQueues (Maybe [QueueType]) Source #
The type of queue.
listQueues_instanceId :: Lens' ListQueues Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
Destructuring the Response
data ListQueuesResponse Source #
See: newListQueuesResponse
smart constructor.
ListQueuesResponse' | |
|
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:
ListQueues
, listQueuesResponse_nextToken
- If there are additional results, this is the token for the next set of
results.
$sel:queueSummaryList:ListQueuesResponse'
, listQueuesResponse_queueSummaryList
- Information about the queues.
$sel:httpStatus:ListQueuesResponse'
, listQueuesResponse_httpStatus
- The response's http status code.
Response Lenses
listQueuesResponse_nextToken :: Lens' ListQueuesResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
listQueuesResponse_queueSummaryList :: Lens' ListQueuesResponse (Maybe [QueueSummary]) Source #
Information about the queues.
listQueuesResponse_httpStatus :: Lens' ListQueuesResponse Int Source #
The response's http status code.