import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { SetDesiredCapacityType } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link SetDesiredCapacityCommand}. */ export interface SetDesiredCapacityCommandInput extends SetDesiredCapacityType { } /** * @public * * The output of {@link SetDesiredCapacityCommand}. */ export interface SetDesiredCapacityCommandOutput extends __MetadataBearer { } declare const SetDesiredCapacityCommand_base: { new (input: SetDesiredCapacityCommandInput): import("@smithy/core/client").CommandImpl; new (input: SetDesiredCapacityCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Sets the size of the specified Auto Scaling group.

*

If a scale-in activity occurs as a result of a new DesiredCapacity value * that is lower than the current size of the group, the Auto Scaling group uses its termination * policy to determine which instances to terminate.

*

For more information, see Manual * scaling 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, SetDesiredCapacityCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import * // const { AutoScalingClient, SetDesiredCapacityCommand } = 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 = { // SetDesiredCapacityType * AutoScalingGroupName: "STRING_VALUE", // required * DesiredCapacity: Number("int"), // required * HonorCooldown: true || false, * }; * const command = new SetDesiredCapacityCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param SetDesiredCapacityCommandInput - {@link SetDesiredCapacityCommandInput} * @returns {@link SetDesiredCapacityCommandOutput} * @see {@link SetDesiredCapacityCommandInput} for command's `input` shape. * @see {@link SetDesiredCapacityCommandOutput} 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 ScalingActivityInProgressFault} (client fault) *

The operation can't be performed because there are scaling activities in * progress.

* * @throws {@link AutoScalingServiceException} *

Base exception class for all service exceptions from AutoScaling service.

* * * @example To set the desired capacity for an Auto Scaling group * ```javascript * // This example sets the desired capacity for the specified Auto Scaling group. * const input = { * AutoScalingGroupName: "my-auto-scaling-group", * DesiredCapacity: 2, * HonorCooldown: true * }; * const command = new SetDesiredCapacityCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class SetDesiredCapacityCommand extends SetDesiredCapacityCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: SetDesiredCapacityType; output: {}; }; sdk: { input: SetDesiredCapacityCommandInput; output: SetDesiredCapacityCommandOutput; }; }; }