describe_spot_fleet_request_history
async
¶
describe_spot_fleet_request_history(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
spot_fleet_request_id: Optional[SpotFleetRequestId] = None,
event_type: Optional[EventType] = None,
start_time: Optional[DateTime] = None,
next_token: Optional[String] = None,
max_results: Optional[DescribeSpotFleetRequestHistoryMaxResults] = None,
) -> DescribeSpotFleetRequestHistoryResponse
Describes the events for the specified Spot Fleet request during the specified time.
Spot Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. Spot Fleet events are available for 48 hours.
For more information, see Monitor fleet events using Amazon EventBridge in the Amazon EC2 User Guide.
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.
-
event_type(Optional[EventType], default:None) –The type of events to describe. By default, all events are described.
-
start_time(Optional[DateTime], default:None) –The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
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[DescribeSpotFleetRequestHistoryMaxResults], 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 Spot fleet history This example returns the history for the specified Spot fleet starting at the specified time.
>>> await client.describe_spot_fleet_request_history(spot_fleet_request_id='sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE', start_time='2015-05-26T00:00:00Z')
Source code in docs_src/capo_ec2/_services/async_ec2.py
33973 33974 33975 33976 33977 33978 33979 33980 33981 33982 33983 33984 33985 33986 33987 33988 33989 33990 33991 33992 33993 33994 33995 33996 33997 33998 33999 34000 34001 34002 34003 34004 34005 34006 34007 34008 34009 34010 34011 34012 34013 34014 34015 34016 34017 34018 34019 34020 34021 34022 34023 34024 34025 34026 34027 34028 34029 34030 34031 34032 34033 34034 34035 34036 34037 34038 34039 34040 34041 34042 34043 34044 34045 34046 | |