describe_spot_fleet_instances
¶
describe_spot_fleet_instances(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
spot_fleet_request_id: Optional[SpotFleetRequestId] = None,
next_token: Optional[String] = None,
max_results: Optional[DescribeSpotFleetInstancesMaxResults] = None,
) -> DescribeSpotFleetInstancesResponse
Describes the running instances for the specified Spot Fleet.
Parameters:
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
spot_fleet_request_id(Optional[SpotFleetRequestId], default:None) –The ID of the Spot Fleet request.
-
next_token(Optional[String], default:None) –The token to include in another request to get the next page of items. This value is
nullwhen there are no more items to return. -
max_results(Optional[DescribeSpotFleetInstancesMaxResults], default:None) –The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe the Spot Instances associated with a Spot fleet This example lists the Spot Instances associated with the specified Spot fleet.
>>> client.describe_spot_fleet_instances(spot_fleet_request_id='sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE')
Source code in docs_src/capo_ec2/_services/ec2.py
33461 33462 33463 33464 33465 33466 33467 33468 33469 33470 33471 33472 33473 33474 33475 33476 33477 33478 33479 33480 33481 33482 33483 33484 33485 33486 33487 33488 33489 33490 33491 33492 33493 33494 33495 33496 33497 33498 33499 33500 33501 33502 33503 33504 33505 33506 33507 33508 33509 33510 33511 33512 33513 33514 33515 33516 33517 33518 33519 33520 33521 33522 33523 33524 33525 | |