AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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

You can filter the results using the ResourceId and ScalableDimension parameters.

Scaling activities are triggered by CloudWatch alarms that are associated with scaling policies. To view the scaling policies for a service namespace, see DescribeScalingPolicies. To create a scaling policy or update an existing one, see PutScalingPolicy.


For .NET Core and PCL this operation is only available in asynchronous form. Please refer to DescribeScalingActivitiesAsync.

Namespace: Amazon.ApplicationAutoScaling
Assembly: AWSSDK.ApplicationAutoScaling.dll
Version: 3.x.y.z


public virtual DescribeScalingActivitiesResponse DescribeScalingActivities(
         DescribeScalingActivitiesRequest request
Type: Amazon.ApplicationAutoScaling.Model.DescribeScalingActivitiesRequest

Container for the necessary parameters to execute the DescribeScalingActivities service method.

Return Value
The response from the DescribeScalingActivities service method, as returned by ApplicationAutoScaling.


ConcurrentUpdateException Concurrent updates caused an exception, for example, if you request an update to an Application Auto Scaling resource that already has a pending update.
InternalServiceException The service encountered an internal error.
InvalidNextTokenException The next token supplied was invalid.
ValidationException An exception was thrown for a validation issue. Review the available parameters for the API request.


This example describes the scaling activities for an Amazon ECS service called web-app that is running in the default cluster.

To describe scaling activities for a scalable target

var response = client.DescribeScalingActivities(new DescribeScalingActivitiesRequest 
    ResourceId = "service/default/web-app",
    ScalableDimension = "ecs:service:DesiredCount",
    ServiceNamespace = "ecs"

List scalingActivities = response.ScalingActivities;


Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also