import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ActivitiesType, DescribeScalingActivitiesType } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DescribeScalingActivitiesCommand}. */ export interface DescribeScalingActivitiesCommandInput extends DescribeScalingActivitiesType { } /** * @public * * The output of {@link DescribeScalingActivitiesCommand}. */ export interface DescribeScalingActivitiesCommandOutput extends ActivitiesType, __MetadataBearer { } declare const DescribeScalingActivitiesCommand_base: { new (input: DescribeScalingActivitiesCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [DescribeScalingActivitiesCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Gets information about the scaling activities in the account and Region.

*

When scaling events occur, you see a record of the scaling activity in the scaling * activities. For more information, see Verify a scaling * activity for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

*

If the scaling event succeeds, the value of the StatusCode element in the * response is Successful. If an attempt to launch instances failed, the * StatusCode value is Failed or Cancelled and * the StatusMessage element in the response indicates the cause of the * failure. For help interpreting the StatusMessage, see Troubleshooting Amazon EC2 Auto 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, DescribeScalingActivitiesCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import * // const { AutoScalingClient, DescribeScalingActivitiesCommand } = 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 = { // DescribeScalingActivitiesType * ActivityIds: [ // ActivityIds * "STRING_VALUE", * ], * AutoScalingGroupName: "STRING_VALUE", * IncludeDeletedGroups: true || false, * MaxRecords: Number("int"), * NextToken: "STRING_VALUE", * Filters: [ // Filters * { // Filter * Name: "STRING_VALUE", * Values: [ // Values * "STRING_VALUE", * ], * }, * ], * }; * const command = new DescribeScalingActivitiesCommand(input); * const response = await client.send(command); * // { // ActivitiesType * // Activities: [ // Activities // required * // { // Activity * // ActivityId: "STRING_VALUE", // required * // AutoScalingGroupName: "STRING_VALUE", // required * // Description: "STRING_VALUE", * // Cause: "STRING_VALUE", // required * // StartTime: new Date("TIMESTAMP"), // required * // EndTime: new Date("TIMESTAMP"), * // StatusCode: "PendingSpotBidPlacement" || "WaitingForSpotInstanceRequestId" || "WaitingForSpotInstanceId" || "WaitingForInstanceId" || "PreInService" || "InProgress" || "WaitingForELBConnectionDraining" || "MidLifecycleAction" || "WaitingForInstanceWarmup" || "Successful" || "Failed" || "Cancelled" || "WaitingForConnectionDraining" || "WaitingForInPlaceUpdateToStart" || "WaitingForInPlaceUpdateToFinalize" || "InPlaceUpdateInProgress", // required * // StatusMessage: "STRING_VALUE", * // Progress: Number("int"), * // Details: "STRING_VALUE", * // AutoScalingGroupState: "STRING_VALUE", * // AutoScalingGroupARN: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribeScalingActivitiesCommandInput - {@link DescribeScalingActivitiesCommandInput} * @returns {@link DescribeScalingActivitiesCommandOutput} * @see {@link DescribeScalingActivitiesCommandInput} for command's `input` shape. * @see {@link DescribeScalingActivitiesCommandOutput} for command's `response` shape. * @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape. * * @throws {@link InvalidNextToken} (client fault) *

The NextToken value is not valid.

* * @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 describe the scaling activities for an Auto Scaling group * ```javascript * // This example describes the scaling activities for the specified Auto Scaling group. * const input = { * AutoScalingGroupName: "my-auto-scaling-group" * }; * const command = new DescribeScalingActivitiesCommand(input); * const response = await client.send(command); * /* response is * { * Activities: [ * { * ActivityId: "f9f2d65b-f1f2-43e7-b46d-d86756459699", * AutoScalingGroupARN: "arn:aws:autoscaling:us-east-1:123456789012:autoScalingGroup:12345678-1234-1234-1234-123456789012:autoScalingGroupName/my-auto-scaling-group", * AutoScalingGroupName: "my-auto-scaling-group", * Cause: "At 2013-08-19T20:53:25Z a user request created an AutoScalingGroup changing the desired capacity from 0 to 1. At 2013-08-19T20:53:29Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 1.", * Description: "Launching a new EC2 instance: i-4ba0837f", * Details: "details", * EndTime: "2013-08-19T20:54:02Z", * Progress: 100, * StartTime: "2013-08-19T20:53:29.930Z", * StatusCode: "Successful" * } * ] * } * *\/ * ``` * * @public */ export declare class DescribeScalingActivitiesCommand extends DescribeScalingActivitiesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeScalingActivitiesType; output: ActivitiesType; }; sdk: { input: DescribeScalingActivitiesCommandInput; output: DescribeScalingActivitiesCommandOutput; }; }; }