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

Description

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.

Synopsis

Creating a Request

data DescribeSpotFleetRequestHistory Source #

Contains the parameters for DescribeSpotFleetRequestHistory.

See: newDescribeSpotFleetRequestHistory smart constructor.

Constructors

DescribeSpotFleetRequestHistory' 

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 EventType

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

  • maxResults :: Maybe Natural

    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.

  • spotFleetRequestId :: Text

    The ID of the Spot Fleet request.

  • startTime :: ISO8601

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

Instances

Instances details
ToHeaders DescribeSpotFleetRequestHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

ToPath DescribeSpotFleetRequestHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

ToQuery DescribeSpotFleetRequestHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

AWSRequest DescribeSpotFleetRequestHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

Generic DescribeSpotFleetRequestHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

Associated Types

type Rep DescribeSpotFleetRequestHistory :: Type -> Type #

Read DescribeSpotFleetRequestHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

Show DescribeSpotFleetRequestHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

NFData DescribeSpotFleetRequestHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

Eq DescribeSpotFleetRequestHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

Hashable DescribeSpotFleetRequestHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

type AWSResponse DescribeSpotFleetRequestHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

type Rep DescribeSpotFleetRequestHistory Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

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

newDescribeSpotFleetRequestHistory Source #

Create a value of DescribeSpotFleetRequestHistory 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:DescribeSpotFleetRequestHistory', describeSpotFleetRequestHistory_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.

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

$sel:maxResults:DescribeSpotFleetRequestHistory', describeSpotFleetRequestHistory_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.

DescribeSpotFleetRequestHistory, describeSpotFleetRequestHistory_nextToken - The token for the next set of results.

DescribeSpotFleetRequestHistory, describeSpotFleetRequestHistory_spotFleetRequestId - The ID of the Spot Fleet request.

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

Request Lenses

describeSpotFleetRequestHistory_dryRun :: Lens' DescribeSpotFleetRequestHistory (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.

describeSpotFleetRequestHistory_eventType :: Lens' DescribeSpotFleetRequestHistory (Maybe EventType) Source #

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

describeSpotFleetRequestHistory_maxResults :: Lens' DescribeSpotFleetRequestHistory (Maybe Natural) 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.

describeSpotFleetRequestHistory_startTime :: Lens' DescribeSpotFleetRequestHistory UTCTime Source #

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

Destructuring the Response

data DescribeSpotFleetRequestHistoryResponse Source #

Contains the output of DescribeSpotFleetRequestHistory.

See: newDescribeSpotFleetRequestHistoryResponse smart constructor.

Constructors

DescribeSpotFleetRequestHistoryResponse' 

Fields

  • historyRecords :: Maybe [HistoryRecord]

    Information about the events in the history of the Spot Fleet request.

  • lastEvaluatedTime :: Maybe ISO8601

    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.

  • nextToken :: Maybe Text

    The token required to retrieve the next set of results. This value is null when there are no more results to return.

  • spotFleetRequestId :: Maybe Text

    The ID of the Spot Fleet request.

  • startTime :: Maybe ISO8601

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeSpotFleetRequestHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

Read DescribeSpotFleetRequestHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

Show DescribeSpotFleetRequestHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

NFData DescribeSpotFleetRequestHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

Eq DescribeSpotFleetRequestHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

type Rep DescribeSpotFleetRequestHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSpotFleetRequestHistory

type Rep DescribeSpotFleetRequestHistoryResponse = D1 ('MetaData "DescribeSpotFleetRequestHistoryResponse" "Amazonka.EC2.DescribeSpotFleetRequestHistory" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeSpotFleetRequestHistoryResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "historyRecords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [HistoryRecord])) :*: (S1 ('MetaSel ('Just "lastEvaluatedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "spotFleetRequestId") '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)))))

newDescribeSpotFleetRequestHistoryResponse Source #

Create a value of DescribeSpotFleetRequestHistoryResponse 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:historyRecords:DescribeSpotFleetRequestHistoryResponse', describeSpotFleetRequestHistoryResponse_historyRecords - Information about the events in the history of the Spot Fleet request.

$sel:lastEvaluatedTime:DescribeSpotFleetRequestHistoryResponse', describeSpotFleetRequestHistoryResponse_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.

DescribeSpotFleetRequestHistory, describeSpotFleetRequestHistoryResponse_nextToken - The token required to retrieve the next set of results. This value is null when there are no more results to return.

DescribeSpotFleetRequestHistory, describeSpotFleetRequestHistoryResponse_spotFleetRequestId - The ID of the Spot Fleet request.

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

$sel:httpStatus:DescribeSpotFleetRequestHistoryResponse', describeSpotFleetRequestHistoryResponse_httpStatus - The response's http status code.

Response Lenses

describeSpotFleetRequestHistoryResponse_historyRecords :: Lens' DescribeSpotFleetRequestHistoryResponse (Maybe [HistoryRecord]) Source #

Information about the events in the history of the Spot Fleet request.

describeSpotFleetRequestHistoryResponse_lastEvaluatedTime :: Lens' DescribeSpotFleetRequestHistoryResponse (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.

describeSpotFleetRequestHistoryResponse_nextToken :: Lens' DescribeSpotFleetRequestHistoryResponse (Maybe Text) Source #

The token required to retrieve the next set of results. This value is null when there are no more results to return.

describeSpotFleetRequestHistoryResponse_startTime :: Lens' DescribeSpotFleetRequestHistoryResponse (Maybe UTCTime) Source #

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