import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CancelInstanceRefreshAnswer, CancelInstanceRefreshType } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CancelInstanceRefreshCommand}. */ export interface CancelInstanceRefreshCommandInput extends CancelInstanceRefreshType { } /** * @public * * The output of {@link CancelInstanceRefreshCommand}. */ export interface CancelInstanceRefreshCommandOutput extends CancelInstanceRefreshAnswer, __MetadataBearer { } declare const CancelInstanceRefreshCommand_base: { new (input: CancelInstanceRefreshCommandInput): import("@smithy/core/client").CommandImpl; new (input: CancelInstanceRefreshCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Cancels an instance refresh or rollback that is in progress. If an instance refresh or * rollback is not in progress, an ActiveInstanceRefreshNotFound error * occurs.

*

This operation is part of the instance refresh * feature in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group * after you make configuration changes.

*

When you cancel an instance refresh, this does not roll back any changes that it made. * Use the RollbackInstanceRefresh API to roll back instead.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AutoScalingClient, CancelInstanceRefreshCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import * // const { AutoScalingClient, CancelInstanceRefreshCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import * // import type { AutoScalingClientConfig } from "@aws-sdk/client-auto-scaling"; * const config = {}; // type is AutoScalingClientConfig * const client = new AutoScalingClient(config); * const input = { // CancelInstanceRefreshType * AutoScalingGroupName: "STRING_VALUE", // required * WaitForTransitioningInstances: true || false, * }; * const command = new CancelInstanceRefreshCommand(input); * const response = await client.send(command); * // { // CancelInstanceRefreshAnswer * // InstanceRefreshId: "STRING_VALUE", * // }; * * ``` * * @param CancelInstanceRefreshCommandInput - {@link CancelInstanceRefreshCommandInput} * @returns {@link CancelInstanceRefreshCommandOutput} * @see {@link CancelInstanceRefreshCommandInput} for command's `input` shape. * @see {@link CancelInstanceRefreshCommandOutput} for command's `response` shape. * @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape. * * @throws {@link ActiveInstanceRefreshNotFoundFault} (client fault) *

The request failed because an active instance refresh or rollback for the specified * Auto Scaling group was not found.

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

You have already reached a limit for your Amazon EC2 Auto Scaling * resources (for example, Auto Scaling groups, launch configurations, or lifecycle hooks). For * more information, see DescribeAccountLimits in the Amazon EC2 Auto Scaling API * Reference.

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

You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, * instance, or load balancer).

* * @throws {@link AutoScalingServiceException} *

Base exception class for all service exceptions from AutoScaling service.

* * * @example To cancel an instance refresh * ```javascript * // This example cancels an instance refresh operation in progress. * const input = { * AutoScalingGroupName: "my-auto-scaling-group" * }; * const command = new CancelInstanceRefreshCommand(input); * const response = await client.send(command); * /* response is * { * InstanceRefreshId: "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b" * } * *\/ * ``` * * @public */ export declare class CancelInstanceRefreshCommand extends CancelInstanceRefreshCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CancelInstanceRefreshType; output: CancelInstanceRefreshAnswer; }; sdk: { input: CancelInstanceRefreshCommandInput; output: CancelInstanceRefreshCommandOutput; }; }; }