import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { SetInstanceHealthQuery } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link SetInstanceHealthCommand}. */ export interface SetInstanceHealthCommandInput extends SetInstanceHealthQuery { } /** * @public * * The output of {@link SetInstanceHealthCommand}. */ export interface SetInstanceHealthCommandOutput extends __MetadataBearer { } declare const SetInstanceHealthCommand_base: { new (input: SetInstanceHealthCommandInput): import("@smithy/core/client").CommandImpl; new (input: SetInstanceHealthCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Sets the health status of the specified instance.

*

For more information, see Set up a custom * health check for your Auto Scaling group in the * Amazon EC2 Auto Scaling User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AutoScalingClient, SetInstanceHealthCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import * // const { AutoScalingClient, SetInstanceHealthCommand } = 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 = { // SetInstanceHealthQuery * InstanceId: "STRING_VALUE", // required * HealthStatus: "STRING_VALUE", // required * ShouldRespectGracePeriod: true || false, * }; * const command = new SetInstanceHealthCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param SetInstanceHealthCommandInput - {@link SetInstanceHealthCommandInput} * @returns {@link SetInstanceHealthCommandOutput} * @see {@link SetInstanceHealthCommandInput} for command's `input` shape. * @see {@link SetInstanceHealthCommandOutput} for command's `response` shape. * @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape. * * @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 set the health status of an instance * ```javascript * // This example sets the health status of the specified instance to Unhealthy. * const input = { * HealthStatus: "Unhealthy", * InstanceId: "i-93633f9b" * }; * const command = new SetInstanceHealthCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class SetInstanceHealthCommand extends SetInstanceHealthCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: SetInstanceHealthQuery; output: {}; }; sdk: { input: SetInstanceHealthCommandInput; output: SetInstanceHealthCommandOutput; }; }; }