amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DescribeFleetHistory

Description

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

Creating a Request

data DescribeFleetHistory Source #

See: newDescribeFleetHistory smart constructor.

Constructors

DescribeFleetHistory' 

Fields

  • dryRun :: Maybe Bool

    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 :: Maybe FleetEventType

    The type of events to describe. By default, all events are described.

  • maxResults :: Maybe Int

    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.

  • nextToken :: Maybe Text

    The token for the next set of results.

  • fleetId :: Text

    The ID of the EC2 Fleet.

  • startTime :: ISO8601

    The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

Instances

Instances details
ToHeaders DescribeFleetHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

ToPath DescribeFleetHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

ToQuery DescribeFleetHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

AWSRequest DescribeFleetHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

Associated Types

type AWSResponse DescribeFleetHistory #

Generic DescribeFleetHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

Associated Types

type Rep DescribeFleetHistory :: Type -> Type #

Read DescribeFleetHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

Show DescribeFleetHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

NFData DescribeFleetHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

Methods

rnf :: DescribeFleetHistory -> () #

Eq DescribeFleetHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

Hashable DescribeFleetHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

type AWSResponse DescribeFleetHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

type Rep DescribeFleetHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

type Rep DescribeFleetHistory = D1 ('MetaData "DescribeFleetHistory" "Amazonka.EC2.DescribeFleetHistory" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeFleetHistory'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "eventType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FleetEventType)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "fleetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601)))))

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_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.

Constructors

DescribeFleetHistoryResponse' 

Fields

Instances

Instances details
Generic DescribeFleetHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

Associated Types

type Rep DescribeFleetHistoryResponse :: Type -> Type #

Read DescribeFleetHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

Show DescribeFleetHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

NFData DescribeFleetHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

Eq DescribeFleetHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

type Rep DescribeFleetHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeFleetHistory

type Rep DescribeFleetHistoryResponse = D1 ('MetaData "DescribeFleetHistoryResponse" "Amazonka.EC2.DescribeFleetHistory" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeFleetHistoryResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fleetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "historyRecords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [HistoryRecordEntry])) :*: S1 ('MetaSel ('Just "lastEvaluatedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

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_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_startTime :: Lens' DescribeFleetHistoryResponse (Maybe UTCTime) Source #

The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).