import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { DescribeSpotFleetRequestHistoryRequest, DescribeSpotFleetRequestHistoryResponse } from "../models/models_4"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeSpotFleetRequestHistoryCommand}. */ export interface DescribeSpotFleetRequestHistoryCommandInput extends DescribeSpotFleetRequestHistoryRequest { } /** * @public * * The output of {@link DescribeSpotFleetRequestHistoryCommand}. */ export interface DescribeSpotFleetRequestHistoryCommandOutput extends DescribeSpotFleetRequestHistoryResponse, __MetadataBearer { } declare const DescribeSpotFleetRequestHistoryCommand_base: { new (input: DescribeSpotFleetRequestHistoryCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DescribeSpotFleetRequestHistoryCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DescribeSpotFleetRequestHistoryCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DescribeSpotFleetRequestHistoryCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // DescribeSpotFleetRequestHistoryRequest * DryRun: true || false, * SpotFleetRequestId: "STRING_VALUE", // required * EventType: "instanceChange" || "fleetRequestChange" || "error" || "information", * StartTime: new Date("TIMESTAMP"), // required * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * }; * const command = new DescribeSpotFleetRequestHistoryCommand(input); * const response = await client.send(command); * // { // DescribeSpotFleetRequestHistoryResponse * // HistoryRecords: [ // HistoryRecords * // { // HistoryRecord * // EventInformation: { // EventInformation * // EventDescription: "STRING_VALUE", * // EventSubType: "STRING_VALUE", * // InstanceId: "STRING_VALUE", * // }, * // EventType: "instanceChange" || "fleetRequestChange" || "error" || "information", * // Timestamp: new Date("TIMESTAMP"), * // }, * // ], * // LastEvaluatedTime: new Date("TIMESTAMP"), * // NextToken: "STRING_VALUE", * // SpotFleetRequestId: "STRING_VALUE", * // StartTime: new Date("TIMESTAMP"), * // }; * * ``` * * @param DescribeSpotFleetRequestHistoryCommandInput - {@link DescribeSpotFleetRequestHistoryCommandInput} * @returns {@link DescribeSpotFleetRequestHistoryCommandOutput} * @see {@link DescribeSpotFleetRequestHistoryCommandInput} for command's `input` shape. * @see {@link DescribeSpotFleetRequestHistoryCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @example To describe Spot fleet history * ```javascript * // This example returns the history for the specified Spot fleet starting at the specified time. * const input = { * SpotFleetRequestId: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", * StartTime: "2015-05-26T00:00:00Z" * }; * const command = new DescribeSpotFleetRequestHistoryCommand(input); * const response = await client.send(command); * /* response is * { * HistoryRecords: [ * { * EventInformation: { * EventSubType: "submitted" * }, * EventType: "fleetRequestChange", * Timestamp: "2015-05-26T23:17:20.697Z" * }, * { * EventInformation: { * EventSubType: "active" * }, * EventType: "fleetRequestChange", * Timestamp: "2015-05-26T23:17:20.873Z" * }, * { * EventInformation: { * EventSubType: "launched", * InstanceId: "i-1234567890abcdef0" * }, * EventType: "instanceChange", * Timestamp: "2015-05-26T23:21:21.712Z" * }, * { * EventInformation: { * EventSubType: "launched", * InstanceId: "i-1234567890abcdef1" * }, * EventType: "instanceChange", * Timestamp: "2015-05-26T23:21:21.816Z" * } * ], * NextToken: "CpHNsscimcV5oH7bSbub03CI2Qms5+ypNpNm+53MNlR0YcXAkp0xFlfKf91yVxSExmbtma3awYxMFzNA663ZskT0AHtJ6TCb2Z8bQC2EnZgyELbymtWPfpZ1ZbauVg+P+TfGlWxWWB/Vr5dk5d4LfdgA/DRAHUrYgxzrEXAMPLE=", * SpotFleetRequestId: "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE", * StartTime: "2015-05-26T00:00:00Z" * } * *\/ * ``` * * @public */ export declare class DescribeSpotFleetRequestHistoryCommand extends DescribeSpotFleetRequestHistoryCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeSpotFleetRequestHistoryRequest; output: DescribeSpotFleetRequestHistoryResponse; }; sdk: { input: DescribeSpotFleetRequestHistoryCommandInput; output: DescribeSpotFleetRequestHistoryCommandOutput; }; }; }