fleet_histories
Creates, updates, deletes, gets or lists a fleet_histories resource.
Overview
| Name | fleet_histories |
| Type | Resource |
| Id | aws.ec2.fleet_histories |
Fields
The following fields are returned by SELECT queries:
- describe_fleet_history
| Name | Datatype | Description |
|---|---|---|
event_information | string | Information about the event. |
event_type | string | The event type. |
timestamp | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_fleet_history | select | FleetId, StartTime, region | DryRun, EventType, MaxResults, NextToken | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
FleetId | string | The ID of the EC2 Fleet. |
StartTime | string (date-time) | The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). |
region | string | AWS region (default: us-east-1) |
DryRun | boolean | 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 is UnauthorizedOperation. |
EventType | string | The type of events to describe. By default, all events are described. |
MaxResults | integer | 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. |
NextToken | string | The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. |
SELECT examples
- describe_fleet_history
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 }}'
;