import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EventBridgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EventBridgeClient"; import type { StartReplayRequest, StartReplayResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link StartReplayCommand}. */ export interface StartReplayCommandInput extends StartReplayRequest { } /** * @public * * The output of {@link StartReplayCommand}. */ export interface StartReplayCommandOutput extends StartReplayResponse, __MetadataBearer { } declare const StartReplayCommand_base: { new (input: StartReplayCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: StartReplayCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Starts the specified replay. Events are not necessarily replayed in the exact same order * that they were added to the archive. A replay processes events to replay based on the time in * the event, and replays them using 1 minute intervals. If you specify an * EventStartTime and an EventEndTime that covers a 20 minute time * range, the events are replayed from the first minute of that 20 minute range first. Then the * events from the second minute are replayed. You can use DescribeReplay to * determine the progress of a replay. The value returned for EventLastReplayedTime * indicates the time within the specified time range associated with the last event * replayed.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, StartReplayCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, StartReplayCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import * // import type { EventBridgeClientConfig } from "@aws-sdk/client-eventbridge"; * const config = {}; // type is EventBridgeClientConfig * const client = new EventBridgeClient(config); * const input = { // StartReplayRequest * ReplayName: "STRING_VALUE", // required * Description: "STRING_VALUE", * EventSourceArn: "STRING_VALUE", // required * EventStartTime: new Date("TIMESTAMP"), // required * EventEndTime: new Date("TIMESTAMP"), // required * Destination: { // ReplayDestination * Arn: "STRING_VALUE", // required * FilterArns: [ // ReplayDestinationFilters * "STRING_VALUE", * ], * }, * }; * const command = new StartReplayCommand(input); * const response = await client.send(command); * // { // StartReplayResponse * // ReplayArn: "STRING_VALUE", * // State: "STARTING" || "RUNNING" || "CANCELLING" || "COMPLETED" || "CANCELLED" || "FAILED", * // StateReason: "STRING_VALUE", * // ReplayStartTime: new Date("TIMESTAMP"), * // }; * * ``` * * @param StartReplayCommandInput - {@link StartReplayCommandInput} * @returns {@link StartReplayCommandOutput} * @see {@link StartReplayCommandInput} for command's `input` shape. * @see {@link StartReplayCommandOutput} for command's `response` shape. * @see {@link EventBridgeClientResolvedConfig | config} for EventBridgeClient's `config` shape. * * @throws {@link InternalException} (server fault) *

This exception occurs due to unexpected causes.

* * @throws {@link InvalidEventPatternException} (client fault) *

The event pattern is not valid.

* * @throws {@link LimitExceededException} (client fault) *

The request failed because it attempted to create resource beyond the allowed service * quota.

* * @throws {@link ResourceAlreadyExistsException} (client fault) *

The resource you are trying to create already exists.

* * @throws {@link ResourceNotFoundException} (client fault) *

An entity that you specified does not exist.

* * @throws {@link EventBridgeServiceException} *

Base exception class for all service exceptions from EventBridge service.

* * * @public */ export declare class StartReplayCommand extends StartReplayCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StartReplayRequest; output: StartReplayResponse; }; sdk: { input: StartReplayCommandInput; output: StartReplayCommandOutput; }; }; }