Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

describeScalingActivities

Provides descriptive information about the scaling activities in the specified namespace from the previous six weeks.

You can filter the results using ResourceId and ScalableDimension.

For information about viewing scaling activities using the Amazon Web Services CLI, see Scaling activities for Application Auto Scaling.

Samples

import aws.sdk.kotlin.services.applicationautoscaling.model.ScalableDimension
import aws.sdk.kotlin.services.applicationautoscaling.model.ServiceNamespace

fun main() { 
   //sampleStart 
   // This example describes the scaling activities for an Amazon ECS service called web app that is
// running in the default cluster.
val resp = applicationAutoScalingClient.describeScalingActivities {
    serviceNamespace = ServiceNamespace.fromValue("ecs")
    resourceId = "service/default/web-app"
    scalableDimension = ScalableDimension.fromValue("ecs:service:DesiredCount")
} 
   //sampleEnd
}