Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
Synopsis
- data DescribeFleetHistory = DescribeFleetHistory' {}
- newDescribeFleetHistory :: Text -> UTCTime -> DescribeFleetHistory
- describeFleetHistory_dryRun :: Lens' DescribeFleetHistory (Maybe Bool)
- describeFleetHistory_eventType :: Lens' DescribeFleetHistory (Maybe FleetEventType)
- describeFleetHistory_maxResults :: Lens' DescribeFleetHistory (Maybe Int)
- describeFleetHistory_nextToken :: Lens' DescribeFleetHistory (Maybe Text)
- describeFleetHistory_fleetId :: Lens' DescribeFleetHistory Text
- describeFleetHistory_startTime :: Lens' DescribeFleetHistory UTCTime
- data DescribeFleetHistoryResponse = DescribeFleetHistoryResponse' {}
- newDescribeFleetHistoryResponse :: Int -> DescribeFleetHistoryResponse
- describeFleetHistoryResponse_fleetId :: Lens' DescribeFleetHistoryResponse (Maybe Text)
- describeFleetHistoryResponse_historyRecords :: Lens' DescribeFleetHistoryResponse (Maybe [HistoryRecordEntry])
- describeFleetHistoryResponse_lastEvaluatedTime :: Lens' DescribeFleetHistoryResponse (Maybe UTCTime)
- describeFleetHistoryResponse_nextToken :: Lens' DescribeFleetHistoryResponse (Maybe Text)
- describeFleetHistoryResponse_startTime :: Lens' DescribeFleetHistoryResponse (Maybe UTCTime)
- describeFleetHistoryResponse_httpStatus :: Lens' DescribeFleetHistoryResponse Int
Creating a Request
data DescribeFleetHistory Source #
See: newDescribeFleetHistory
smart constructor.
DescribeFleetHistory' | |
|
Instances
newDescribeFleetHistory Source #
Create a value of DescribeFleetHistory
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:DescribeFleetHistory'
, describeFleetHistory_dryRun
- 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
.
DescribeFleetHistory
, describeFleetHistory_eventType
- The type of events to describe. By default, all events are described.
$sel:maxResults:DescribeFleetHistory'
, describeFleetHistory_maxResults
- The maximum number of results to return in a single call. Specify a
value between 1 and 1000. The default value is 1000. To retrieve the
remaining results, make another call with the returned NextToken
value.
DescribeFleetHistory
, describeFleetHistory_nextToken
- The token for the next set of results.
DescribeFleetHistory
, describeFleetHistory_fleetId
- The ID of the EC2 Fleet.
DescribeFleetHistory
, describeFleetHistory_startTime
- The start date and time for the events, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
Request Lenses
describeFleetHistory_dryRun :: Lens' DescribeFleetHistory (Maybe Bool) Source #
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
.
describeFleetHistory_eventType :: Lens' DescribeFleetHistory (Maybe FleetEventType) Source #
The type of events to describe. By default, all events are described.
describeFleetHistory_maxResults :: Lens' DescribeFleetHistory (Maybe Int) Source #
The maximum number of results to return in a single call. Specify a
value between 1 and 1000. The default value is 1000. To retrieve the
remaining results, make another call with the returned NextToken
value.
describeFleetHistory_nextToken :: Lens' DescribeFleetHistory (Maybe Text) Source #
The token for the next set of results.
describeFleetHistory_fleetId :: Lens' DescribeFleetHistory Text Source #
The ID of the EC2 Fleet.
describeFleetHistory_startTime :: Lens' DescribeFleetHistory UTCTime Source #
The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
Destructuring the Response
data DescribeFleetHistoryResponse Source #
See: newDescribeFleetHistoryResponse
smart constructor.
DescribeFleetHistoryResponse' | |
|
Instances
newDescribeFleetHistoryResponse Source #
Create a value of DescribeFleetHistoryResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DescribeFleetHistory
, describeFleetHistoryResponse_fleetId
- The ID of the EC Fleet.
$sel:historyRecords:DescribeFleetHistoryResponse'
, describeFleetHistoryResponse_historyRecords
- Information about the events in the history of the EC2 Fleet.
$sel:lastEvaluatedTime:DescribeFleetHistoryResponse'
, describeFleetHistoryResponse_lastEvaluatedTime
- The last date and time for the events, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ). All records up to this time were
retrieved.
If nextToken
indicates that there are more results, this value is not
present.
DescribeFleetHistory
, describeFleetHistoryResponse_nextToken
- The token for the next set of results.
DescribeFleetHistory
, describeFleetHistoryResponse_startTime
- The start date and time for the events, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
$sel:httpStatus:DescribeFleetHistoryResponse'
, describeFleetHistoryResponse_httpStatus
- The response's http status code.
Response Lenses
describeFleetHistoryResponse_fleetId :: Lens' DescribeFleetHistoryResponse (Maybe Text) Source #
The ID of the EC Fleet.
describeFleetHistoryResponse_historyRecords :: Lens' DescribeFleetHistoryResponse (Maybe [HistoryRecordEntry]) Source #
Information about the events in the history of the EC2 Fleet.
describeFleetHistoryResponse_lastEvaluatedTime :: Lens' DescribeFleetHistoryResponse (Maybe UTCTime) Source #
The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). All records up to this time were retrieved.
If nextToken
indicates that there are more results, this value is not
present.
describeFleetHistoryResponse_nextToken :: Lens' DescribeFleetHistoryResponse (Maybe Text) Source #
The token for the next set of results.
describeFleetHistoryResponse_startTime :: Lens' DescribeFleetHistoryResponse (Maybe UTCTime) Source #
The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
describeFleetHistoryResponse_httpStatus :: Lens' DescribeFleetHistoryResponse Int Source #
The response's http status code.