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 { CancelReplayRequest, CancelReplayResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CancelReplayCommand}. */ export interface CancelReplayCommandInput extends CancelReplayRequest { } /** * @public * * The output of {@link CancelReplayCommand}. */ export interface CancelReplayCommandOutput extends CancelReplayResponse, __MetadataBearer { } declare const CancelReplayCommand_base: { new (input: CancelReplayCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CancelReplayCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Cancels the specified replay.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, CancelReplayCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, CancelReplayCommand } = 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 = { // CancelReplayRequest * ReplayName: "STRING_VALUE", // required * }; * const command = new CancelReplayCommand(input); * const response = await client.send(command); * // { // CancelReplayResponse * // ReplayArn: "STRING_VALUE", * // State: "STARTING" || "RUNNING" || "CANCELLING" || "COMPLETED" || "CANCELLED" || "FAILED", * // StateReason: "STRING_VALUE", * // }; * * ``` * * @param CancelReplayCommandInput - {@link CancelReplayCommandInput} * @returns {@link CancelReplayCommandOutput} * @see {@link CancelReplayCommandInput} for command's `input` shape. * @see {@link CancelReplayCommandOutput} for command's `response` shape. * @see {@link EventBridgeClientResolvedConfig | config} for EventBridgeClient's `config` shape. * * @throws {@link ConcurrentModificationException} (client fault) *

There is concurrent modification on a rule, target, archive, or replay.

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

An error occurred because a replay can be canceled only when the state is Running or * Starting.

* * @throws {@link InternalException} (server fault) *

This exception occurs due to unexpected causes.

* * @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 CancelReplayCommand extends CancelReplayCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CancelReplayRequest; output: CancelReplayResponse; }; sdk: { input: CancelReplayCommandInput; output: CancelReplayCommandOutput; }; }; }