list_instances
async
¶
list_instances(
*,
config_overrides: Optional[AsyncEMRClientConfig] = 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/async_emr.py
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 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 | |