describe_spot_fleet_instances
async
¶
describe_spot_fleet_instances(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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.
>>> await client.describe_spot_fleet_instances(spot_fleet_request_id='sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE')
Source code in docs_src/capo_ec2/_services/async_ec2.py
33906 33907 33908 33909 33910 33911 33912 33913 33914 33915 33916 33917 33918 33919 33920 33921 33922 33923 33924 33925 33926 33927 33928 33929 33930 33931 33932 33933 33934 33935 33936 33937 33938 33939 33940 33941 33942 33943 33944 33945 33946 33947 33948 33949 33950 33951 33952 33953 33954 33955 33956 33957 33958 33959 33960 33961 33962 33963 33964 33965 33966 33967 33968 33969 33970 33971 | |