Skip to main content

fleet_histories

Creates, updates, deletes, gets or lists a fleet_histories resource.

Overview

Namefleet_histories
TypeResource
Idaws.ec2.fleet_histories

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
event_informationstringInformation about the event.
event_typestringThe event type.
timestampstringThe date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_fleet_historyselectFleetId, StartTime, regionDryRun, EventType, MaxResults, NextTokenDescribes the events for the specified EC2 Fleet during the specified time. EC2 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. EC2 Fleet events are available for 48 hours. For more information, see Monitor fleet events using Amazon EventBridge in the Amazon EC2 User Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
FleetIdstringThe ID of the EC2 Fleet.
StartTimestring (date-time)The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks 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 is UnauthorizedOperation.
EventTypestringThe type of events to describe. By default, all events are described.
MaxResultsintegerThe 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.
NextTokenstringThe token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

SELECT examples

Describes the events for the specified EC2 Fleet during the specified time. EC2 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. EC2 Fleet events are available for 48 hours. For more information, see Monitor fleet events using Amazon EventBridge in the Amazon EC2 User Guide.

SELECT
event_information,
event_type,
timestamp
FROM aws.ec2.fleet_histories
WHERE FleetId = '{{ FleetId }}' -- required
AND StartTime = '{{ StartTime }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND EventType = '{{ EventType }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;