Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Retrieves information about a fleet's instances, including instance IDs. Use this action to get details on all instances in the fleet or get details on one specific instance.
To get a specific instance, specify fleet ID and instance ID. To get all instances in a fleet, specify a fleet ID only. Use the pagination parameters to retrieve results as a set of sequential pages. If successful, an Instance
object is returned for each result.
- describeInstances :: Text -> DescribeInstances
- data DescribeInstances
- diInstanceId :: Lens' DescribeInstances (Maybe Text)
- diNextToken :: Lens' DescribeInstances (Maybe Text)
- diLimit :: Lens' DescribeInstances (Maybe Natural)
- diFleetId :: Lens' DescribeInstances Text
- describeInstancesResponse :: Int -> DescribeInstancesResponse
- data DescribeInstancesResponse
- dirsNextToken :: Lens' DescribeInstancesResponse (Maybe Text)
- dirsInstances :: Lens' DescribeInstancesResponse [Instance]
- dirsResponseStatus :: Lens' DescribeInstancesResponse Int
Creating a Request
Creates a value of DescribeInstances
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
diInstanceId
- Unique identifier for an instance. Specify an instance to retrieve information for or leave blank to get information on all instances in the fleet.diNextToken
- Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.diLimit
- Maximum number of results to return. Use this parameter withNextToken
to get results as a set of sequential pages.diFleetId
- Unique identifier for a fleet. Specify the fleet to retrieve instance information for.
data DescribeInstances Source #
Represents the input for a request action.
See: describeInstances
smart constructor.
Request Lenses
diInstanceId :: Lens' DescribeInstances (Maybe Text) Source #
Unique identifier for an instance. Specify an instance to retrieve information for or leave blank to get information on all instances in the fleet.
diNextToken :: Lens' DescribeInstances (Maybe Text) Source #
Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value.
diLimit :: Lens' DescribeInstances (Maybe Natural) Source #
Maximum number of results to return. Use this parameter with NextToken
to get results as a set of sequential pages.
diFleetId :: Lens' DescribeInstances Text Source #
Unique identifier for a fleet. Specify the fleet to retrieve instance information for.
Destructuring the Response
describeInstancesResponse Source #
Creates a value of DescribeInstancesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dirsNextToken
- Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.dirsInstances
- Collection of objects containing properties for each instance returned.dirsResponseStatus
- -- | The response status code.
data DescribeInstancesResponse Source #
Represents the returned data in response to a request action.
See: describeInstancesResponse
smart constructor.
Response Lenses
dirsNextToken :: Lens' DescribeInstancesResponse (Maybe Text) Source #
Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.
dirsInstances :: Lens' DescribeInstancesResponse [Instance] Source #
Collection of objects containing properties for each instance returned.
dirsResponseStatus :: Lens' DescribeInstancesResponse Int Source #
- - | The response status code.