Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Lists summary information about the instances that you registered by using a specified service.
This operation returns paginated results.
Synopsis
- listInstances :: Text -> ListInstances
- data ListInstances
- liNextToken :: Lens' ListInstances (Maybe Text)
- liMaxResults :: Lens' ListInstances (Maybe Natural)
- liServiceId :: Lens' ListInstances Text
- listInstancesResponse :: Int -> ListInstancesResponse
- data ListInstancesResponse
- lirsNextToken :: Lens' ListInstancesResponse (Maybe Text)
- lirsInstances :: Lens' ListInstancesResponse [InstanceSummary]
- lirsResponseStatus :: Lens' ListInstancesResponse Int
Creating a Request
Creates a value of ListInstances
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
liNextToken
- For the firstListInstances
request, omit this value. If more thanMaxResults
instances match the specified criteria, you can submit anotherListInstances
request to get the next group of results. Specify the value ofNextToken
from the previous response in the next request.liMaxResults
- The maximum number of instances that you want Amazon Route 53 to return in the response to aListInstances
request. If you don't specify a value forMaxResults
, Route 53 returns up to 100 instances.liServiceId
- The ID of the service that you want to list instances for.
data ListInstances Source #
See: listInstances
smart constructor.
Instances
Request Lenses
liNextToken :: Lens' ListInstances (Maybe Text) Source #
For the first ListInstances
request, omit this value. If more than MaxResults
instances match the specified criteria, you can submit another ListInstances
request to get the next group of results. Specify the value of NextToken
from the previous response in the next request.
liMaxResults :: Lens' ListInstances (Maybe Natural) Source #
The maximum number of instances that you want Amazon Route 53 to return in the response to a ListInstances
request. If you don't specify a value for MaxResults
, Route 53 returns up to 100 instances.
liServiceId :: Lens' ListInstances Text Source #
The ID of the service that you want to list instances for.
Destructuring the Response
listInstancesResponse Source #
Creates a value of ListInstancesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lirsNextToken
- If more thanMaxResults
instances match the specified criteria, you can submit anotherListInstances
request to get the next group of results. Specify the value ofNextToken
from the previous response in the next request.lirsInstances
- Summary information about the instances that are associated with the specified service.lirsResponseStatus
- -- | The response status code.
data ListInstancesResponse Source #
See: listInstancesResponse
smart constructor.
Instances
Response Lenses
lirsNextToken :: Lens' ListInstancesResponse (Maybe Text) Source #
If more than MaxResults
instances match the specified criteria, you can submit another ListInstances
request to get the next group of results. Specify the value of NextToken
from the previous response in the next request.
lirsInstances :: Lens' ListInstancesResponse [InstanceSummary] Source #
Summary information about the instances that are associated with the specified service.
lirsResponseStatus :: Lens' ListInstancesResponse Int Source #
- - | The response status code.