import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { TerminateRecoveryInstancesRequest, TerminateRecoveryInstancesResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link TerminateRecoveryInstancesCommand}. */ export interface TerminateRecoveryInstancesCommandInput extends TerminateRecoveryInstancesRequest { } /** * @public * * The output of {@link TerminateRecoveryInstancesCommand}. */ export interface TerminateRecoveryInstancesCommandOutput extends TerminateRecoveryInstancesResponse, __MetadataBearer { } declare const TerminateRecoveryInstancesCommand_base: { new (input: TerminateRecoveryInstancesCommandInput): import("@smithy/core/client").CommandImpl; new (input: TerminateRecoveryInstancesCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Initiates a Job for terminating the EC2 resources associated with the specified Recovery Instances, and then will delete the Recovery Instances from the Elastic Disaster Recovery service.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DrsClient, TerminateRecoveryInstancesCommand } from "@aws-sdk/client-drs"; // ES Modules import * // const { DrsClient, TerminateRecoveryInstancesCommand } = require("@aws-sdk/client-drs"); // CommonJS import * // import type { DrsClientConfig } from "@aws-sdk/client-drs"; * const config = {}; // type is DrsClientConfig * const client = new DrsClient(config); * const input = { // TerminateRecoveryInstancesRequest * recoveryInstanceIDs: [ // RecoveryInstancesForTerminationRequest // required * "STRING_VALUE", * ], * }; * const command = new TerminateRecoveryInstancesCommand(input); * const response = await client.send(command); * // { // TerminateRecoveryInstancesResponse * // job: { // Job * // jobID: "STRING_VALUE", // required * // arn: "STRING_VALUE", * // type: "STRING_VALUE", * // initiatedBy: "STRING_VALUE", * // creationDateTime: "STRING_VALUE", * // endDateTime: "STRING_VALUE", * // status: "STRING_VALUE", * // participatingServers: [ // ParticipatingServers * // { // ParticipatingServer * // sourceServerID: "STRING_VALUE", * // recoveryInstanceID: "STRING_VALUE", * // launchStatus: "STRING_VALUE", * // launchActionsStatus: { // LaunchActionsStatus * // ssmAgentDiscoveryDatetime: "STRING_VALUE", * // runs: [ // LaunchActionRuns * // { // LaunchActionRun * // action: { // LaunchAction * // actionId: "STRING_VALUE", * // actionCode: "STRING_VALUE", * // type: "STRING_VALUE", * // name: "STRING_VALUE", * // active: true || false, * // order: Number("int"), * // actionVersion: "STRING_VALUE", * // optional: true || false, * // parameters: { // LaunchActionParameters * // "": { // LaunchActionParameter * // value: "STRING_VALUE", * // type: "STRING_VALUE", * // }, * // }, * // description: "STRING_VALUE", * // category: "STRING_VALUE", * // }, * // runId: "STRING_VALUE", * // status: "STRING_VALUE", * // failureReason: "STRING_VALUE", * // }, * // ], * // }, * // }, * // ], * // tags: { // TagsMap * // "": "STRING_VALUE", * // }, * // participatingResources: [ // ParticipatingResources * // { // ParticipatingResource * // participatingResourceID: { // ParticipatingResourceID Union: only one key present * // sourceNetworkID: "STRING_VALUE", * // }, * // launchStatus: "STRING_VALUE", * // }, * // ], * // }, * // }; * * ``` * * @param TerminateRecoveryInstancesCommandInput - {@link TerminateRecoveryInstancesCommandInput} * @returns {@link TerminateRecoveryInstancesCommandOutput} * @see {@link TerminateRecoveryInstancesCommandInput} for command's `input` shape. * @see {@link TerminateRecoveryInstancesCommandOutput} for command's `response` shape. * @see {@link DrsClientResolvedConfig | config} for DrsClient's `config` shape. * * @throws {@link ConflictException} (client fault) *

The request could not be completed due to a conflict with the current state of the target resource.

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

The request processing has failed because of an unknown error, exception or failure.

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

The request could not be completed because its exceeded the service quota.

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

The request was denied due to request throttling.

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

The account performing the request has not been initialized.

* * @throws {@link DrsServiceException} *

Base exception class for all service exceptions from Drs service.

* * * @public */ export declare class TerminateRecoveryInstancesCommand extends TerminateRecoveryInstancesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: TerminateRecoveryInstancesRequest; output: TerminateRecoveryInstancesResponse; }; sdk: { input: TerminateRecoveryInstancesCommandInput; output: TerminateRecoveryInstancesCommandOutput; }; }; }