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 |
This API is in preview release for Amazon Connect and is subject to change.
Return a list of instances which are in active state, creation-in-progress state, and failed state. Instances that aren't successfully created (they are in a failed state) are returned only for 24 hours after the CreateInstance API was invoked.
This operation returns paginated results.
Synopsis
- data ListInstances = ListInstances' {}
- newListInstances :: ListInstances
- listInstances_nextToken :: Lens' ListInstances (Maybe Text)
- listInstances_maxResults :: Lens' ListInstances (Maybe Natural)
- data ListInstancesResponse = ListInstancesResponse' {}
- newListInstancesResponse :: Int -> ListInstancesResponse
- listInstancesResponse_instanceSummaryList :: Lens' ListInstancesResponse (Maybe [InstanceSummary])
- listInstancesResponse_nextToken :: Lens' ListInstancesResponse (Maybe Text)
- listInstancesResponse_httpStatus :: Lens' ListInstancesResponse Int
Creating a Request
data ListInstances Source #
See: newListInstances
smart constructor.
Instances
newListInstances :: ListInstances Source #
Create a value of ListInstances
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:ListInstances'
, listInstances_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:maxResults:ListInstances'
, listInstances_maxResults
- The maximum number of results to return per page.
Request Lenses
listInstances_nextToken :: Lens' ListInstances (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.
listInstances_maxResults :: Lens' ListInstances (Maybe Natural) Source #
The maximum number of results to return per page.
Destructuring the Response
data ListInstancesResponse Source #
See: newListInstancesResponse
smart constructor.
ListInstancesResponse' | |
|
Instances
newListInstancesResponse Source #
Create a value of ListInstancesResponse
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:instanceSummaryList:ListInstancesResponse'
, listInstancesResponse_instanceSummaryList
- Information about the instances.
$sel:nextToken:ListInstances'
, listInstancesResponse_nextToken
- If there are additional results, this is the token for the next set of
results.
$sel:httpStatus:ListInstancesResponse'
, listInstancesResponse_httpStatus
- The response's http status code.
Response Lenses
listInstancesResponse_instanceSummaryList :: Lens' ListInstancesResponse (Maybe [InstanceSummary]) Source #
Information about the instances.
listInstancesResponse_nextToken :: Lens' ListInstancesResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
listInstancesResponse_httpStatus :: Lens' ListInstancesResponse Int Source #
The response's http status code.