describe_spot_fleet_request_history
¶
describe_spot_fleet_request_history(
*,
config_overrides: Optional[EC2ClientConfig] = 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.
>>> 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/ec2.py
33527 33528 33529 33530 33531 33532 33533 33534 33535 33536 33537 33538 33539 33540 33541 33542 33543 33544 33545 33546 33547 33548 33549 33550 33551 33552 33553 33554 33555 33556 33557 33558 33559 33560 33561 33562 33563 33564 33565 33566 33567 33568 33569 33570 33571 33572 33573 33574 33575 33576 33577 33578 33579 33580 33581 33582 33583 33584 33585 33586 33587 33588 33589 33590 33591 33592 33593 33594 33595 33596 33597 33598 33599 | |