list_instances
¶
list_instances(
*,
config_overrides: Optional[EMRClientConfig] = None,
cluster_id: Optional[ClusterId] = None,
instance_group_id: Optional[InstanceGroupId] = None,
instance_group_types: Optional[InstanceGroupTypeList] = None,
instance_fleet_id: Optional[InstanceFleetId] = None,
instance_fleet_type: Optional[InstanceFleetType] = None,
instance_states: Optional[InstanceStateList] = None,
marker: Optional[Marker] = None,
) -> ListInstancesOutput
Provides information for all active Amazon EC2 instances and Amazon EC2 instances terminated in the last 30 days, up to a maximum of 2,000. Amazon EC2 instances in any of the following states are considered active: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING.
Parameters:
-
cluster_id(Optional[ClusterId], default:None) –The identifier of the cluster for which to list the instances.
-
instance_group_id(Optional[InstanceGroupId], default:None) –The identifier of the instance group for which to list the instances.
-
instance_group_types(Optional[InstanceGroupTypeList], default:None) –The type of instance group for which to list the instances.
-
instance_fleet_id(Optional[InstanceFleetId], default:None) –The unique identifier of the instance fleet.
-
instance_fleet_type(Optional[InstanceFleetType], default:None) –The node type of the instance fleet. For example MASTER, CORE, or TASK.
-
instance_states(Optional[InstanceStateList], default:None) –A list of instance states that will filter the instances returned with this request.
-
marker(Optional[Marker], default:None) –The pagination token that indicates the next set of results to retrieve.
Raises:
-
InternalServerException–This exception occurs when there is an internal failure in the Amazon EMR service.
-
InvalidRequestException–This exception occurs when there is something wrong with user input.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_emr/_services/emr.py
2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 | |