| 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 |
Amazonka.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
- data ListInstances = ListInstances' {}
- newListInstances :: Text -> ListInstances
- listInstances_instanceFleetId :: Lens' ListInstances (Maybe Text)
- listInstances_instanceFleetType :: Lens' ListInstances (Maybe InstanceFleetType)
- listInstances_instanceGroupId :: Lens' ListInstances (Maybe Text)
- listInstances_instanceGroupTypes :: Lens' ListInstances (Maybe [InstanceGroupType])
- listInstances_instanceStates :: Lens' ListInstances (Maybe [InstanceState])
- listInstances_marker :: Lens' ListInstances (Maybe Text)
- listInstances_clusterId :: Lens' ListInstances Text
- data ListInstancesResponse = ListInstancesResponse' {}
- newListInstancesResponse :: Int -> ListInstancesResponse
- listInstancesResponse_instances :: Lens' ListInstancesResponse (Maybe [Instance])
- listInstancesResponse_marker :: Lens' ListInstancesResponse (Maybe Text)
- listInstancesResponse_httpStatus :: Lens' ListInstancesResponse Int
Creating a Request
data ListInstances Source #
This input determines which instances to list.
See: newListInstances smart constructor.
Constructors
| ListInstances' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListInstances |
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:
ListInstances, listInstances_instanceFleetId - The unique identifier of the instance fleet.
ListInstances, listInstances_instanceFleetType - The node type of the instance fleet. For example MASTER, CORE, or TASK.
ListInstances, listInstances_instanceGroupId - The identifier of the instance group for which to list the instances.
$sel:instanceGroupTypes:ListInstances', listInstances_instanceGroupTypes - The type of instance group for which to list the instances.
$sel:instanceStates:ListInstances', listInstances_instanceStates - A list of instance states that will filter the instances returned with
this request.
ListInstances, listInstances_marker - The pagination token that indicates the next set of results to retrieve.
$sel:clusterId:ListInstances', listInstances_clusterId - The identifier of the cluster for which to list the instances.
Request Lenses
listInstances_instanceFleetId :: Lens' ListInstances (Maybe Text) Source #
The unique identifier of the instance fleet.
listInstances_instanceFleetType :: Lens' ListInstances (Maybe InstanceFleetType) Source #
The node type of the instance fleet. For example MASTER, CORE, or TASK.
listInstances_instanceGroupId :: Lens' ListInstances (Maybe Text) Source #
The identifier of the instance group for which to list the instances.
listInstances_instanceGroupTypes :: Lens' ListInstances (Maybe [InstanceGroupType]) Source #
The type of instance group for which to list the instances.
listInstances_instanceStates :: Lens' ListInstances (Maybe [InstanceState]) Source #
A list of instance states that will filter the instances returned with this request.
listInstances_marker :: Lens' ListInstances (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
listInstances_clusterId :: Lens' ListInstances Text Source #
The identifier of the cluster for which to list the instances.
Destructuring the Response
data ListInstancesResponse Source #
This output contains the list of instances.
See: newListInstancesResponse smart constructor.
Constructors
| 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:instances:ListInstancesResponse', listInstancesResponse_instances - The list of instances for the cluster and given filters.
ListInstances, listInstancesResponse_marker - The pagination token that indicates the next set of results to retrieve.
$sel:httpStatus:ListInstancesResponse', listInstancesResponse_httpStatus - The response's http status code.
Response Lenses
listInstancesResponse_instances :: Lens' ListInstancesResponse (Maybe [Instance]) Source #
The list of instances for the cluster and given filters.
listInstancesResponse_marker :: Lens' ListInstancesResponse (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
listInstancesResponse_httpStatus :: Lens' ListInstancesResponse Int Source #
The response's http status code.