| 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 |
Network.AWS.EMR.ListInstances
Description
Provides information for all active EC2 instances and EC2 instances terminated in the last 30 days, up to a maximum of 2,000. EC2 instances in any of the following states are considered active: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING.
This operation returns paginated results.
Synopsis
- listInstances :: Text -> ListInstances
- data ListInstances
- liInstanceGroupTypes :: Lens' ListInstances [InstanceGroupType]
- liInstanceFleetType :: Lens' ListInstances (Maybe InstanceFleetType)
- liMarker :: Lens' ListInstances (Maybe Text)
- liInstanceFleetId :: Lens' ListInstances (Maybe Text)
- liInstanceStates :: Lens' ListInstances [InstanceState]
- liInstanceGroupId :: Lens' ListInstances (Maybe Text)
- liClusterId :: Lens' ListInstances Text
- listInstancesResponse :: Int -> ListInstancesResponse
- data ListInstancesResponse
- lirsMarker :: Lens' ListInstancesResponse (Maybe Text)
- lirsInstances :: Lens' ListInstancesResponse [Instance]
- lirsResponseStatus :: Lens' ListInstancesResponse Int
Creating a Request
Arguments
| :: Text | |
| -> ListInstances |
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:
liInstanceGroupTypes- The type of instance group for which to list the instances.liInstanceFleetType- The node type of the instance fleet. For example MASTER, CORE, or TASK.liMarker- The pagination token that indicates the next set of results to retrieve.liInstanceFleetId- The unique identifier of the instance fleet.liInstanceStates- A list of instance states that will filter the instances returned with this request.liInstanceGroupId- The identifier of the instance group for which to list the instances.liClusterId- The identifier of the cluster for which to list the instances.
data ListInstances Source #
This input determines which instances to list.
See: listInstances smart constructor.
Instances
Request Lenses
liInstanceGroupTypes :: Lens' ListInstances [InstanceGroupType] Source #
The type of instance group for which to list the instances.
liInstanceFleetType :: Lens' ListInstances (Maybe InstanceFleetType) Source #
The node type of the instance fleet. For example MASTER, CORE, or TASK.
liMarker :: Lens' ListInstances (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
liInstanceFleetId :: Lens' ListInstances (Maybe Text) Source #
The unique identifier of the instance fleet.
liInstanceStates :: Lens' ListInstances [InstanceState] Source #
A list of instance states that will filter the instances returned with this request.
liInstanceGroupId :: Lens' ListInstances (Maybe Text) Source #
The identifier of the instance group for which to list the instances.
liClusterId :: Lens' ListInstances Text Source #
The identifier of the cluster for which to list the instances.
Destructuring the Response
listInstancesResponse Source #
Arguments
| :: Int | |
| -> ListInstancesResponse |
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:
lirsMarker- The pagination token that indicates the next set of results to retrieve.lirsInstances- The list of instances for the cluster and given filters.lirsResponseStatus- -- | The response status code.
data ListInstancesResponse Source #
This output contains the list of instances.
See: listInstancesResponse smart constructor.
Instances
Response Lenses
lirsMarker :: Lens' ListInstancesResponse (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
lirsInstances :: Lens' ListInstancesResponse [Instance] Source #
The list of instances for the cluster and given filters.
lirsResponseStatus :: Lens' ListInstancesResponse Int Source #
- - | The response status code.