import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PutScheduledUpdateGroupActionType } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link PutScheduledUpdateGroupActionCommand}. */ export interface PutScheduledUpdateGroupActionCommandInput extends PutScheduledUpdateGroupActionType { } /** * @public * * The output of {@link PutScheduledUpdateGroupActionCommand}. */ export interface PutScheduledUpdateGroupActionCommandOutput extends __MetadataBearer { } declare const PutScheduledUpdateGroupActionCommand_base: { new (input: PutScheduledUpdateGroupActionCommandInput): import("@smithy/core/client").CommandImpl; new (input: PutScheduledUpdateGroupActionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates or updates a scheduled scaling action for an Auto Scaling group.

*

For more information, see Scheduled scaling in the * Amazon EC2 Auto Scaling User Guide.

*

You can view the scheduled actions for an Auto Scaling group using the * DescribeScheduledActions * API call. If you are no longer using a scheduled action, you can delete it by calling the * DeleteScheduledAction API.

*

If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error * message.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AutoScalingClient, PutScheduledUpdateGroupActionCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import * // const { AutoScalingClient, PutScheduledUpdateGroupActionCommand } = 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 = { // PutScheduledUpdateGroupActionType * AutoScalingGroupName: "STRING_VALUE", // required * ScheduledActionName: "STRING_VALUE", // required * Time: new Date("TIMESTAMP"), * StartTime: new Date("TIMESTAMP"), * EndTime: new Date("TIMESTAMP"), * Recurrence: "STRING_VALUE", * MinSize: Number("int"), * MaxSize: Number("int"), * DesiredCapacity: Number("int"), * TimeZone: "STRING_VALUE", * }; * const command = new PutScheduledUpdateGroupActionCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param PutScheduledUpdateGroupActionCommandInput - {@link PutScheduledUpdateGroupActionCommandInput} * @returns {@link PutScheduledUpdateGroupActionCommandOutput} * @see {@link PutScheduledUpdateGroupActionCommandInput} for command's `input` shape. * @see {@link PutScheduledUpdateGroupActionCommandOutput} for command's `response` shape. * @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape. * * @throws {@link AlreadyExistsFault} (client fault) *

You already have an Auto Scaling group or launch configuration with this name.

* * @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 add a scheduled action to an Auto Scaling group * ```javascript * // This example adds the specified scheduled action to the specified Auto Scaling group. * const input = { * AutoScalingGroupName: "my-auto-scaling-group", * DesiredCapacity: 4, * EndTime: "2014-05-12T08:00:00Z", * MaxSize: 6, * MinSize: 2, * ScheduledActionName: "my-scheduled-action", * StartTime: "2014-05-12T08:00:00Z" * }; * const command = new PutScheduledUpdateGroupActionCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class PutScheduledUpdateGroupActionCommand extends PutScheduledUpdateGroupActionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutScheduledUpdateGroupActionType; output: {}; }; sdk: { input: PutScheduledUpdateGroupActionCommandInput; output: PutScheduledUpdateGroupActionCommandOutput; }; }; }