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.
Container for the parameters to the DescribeScalingPolicies operation. Describes the Application Auto Scaling scaling policies for the specified service namespace.
You can filter the results using ResourceId
, ScalableDimension
, and
PolicyNames
.
For more information, see Target tracking scaling policies and Step scaling policies in the Application Auto Scaling User Guide.
Namespace: Amazon.ApplicationAutoScaling.Model
Assembly: AWSSDK.ApplicationAutoScaling.dll
Version: 3.x.y.z
public class DescribeScalingPoliciesRequest : AmazonApplicationAutoScalingRequest IAmazonWebServiceRequest
The DescribeScalingPoliciesRequest type exposes the following members
Name | Description | |
---|---|---|
DescribeScalingPoliciesRequest() |
Name | Type | Description | |
---|---|---|---|
MaxResults | System.Int32 |
Gets and sets the property MaxResults. The maximum number of scalable targets. This value can be between 1 and 10. The default value is 10.
If this parameter is used, the operation returns up to |
|
NextToken | System.String |
Gets and sets the property NextToken. The token for the next set of results. |
|
PolicyNames | System.Collections.Generic.List<System.String> |
Gets and sets the property PolicyNames. The names of the scaling policies to describe. |
|
ResourceId | System.String |
Gets and sets the property ResourceId. The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier.
|
|
ScalableDimension | Amazon.ApplicationAutoScaling.ScalableDimension |
Gets and sets the property ScalableDimension. The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID.
|
|
ServiceNamespace | Amazon.ApplicationAutoScaling.ServiceNamespace |
Gets and sets the property ServiceNamespace.
The namespace of the Amazon Web Services service that provides the resource. For a
resource provided by your own application or service, use |
This example describes the scaling policies for the ECS service namespace.
var client = new AmazonApplicationAutoScalingClient(); var response = client.DescribeScalingPolicies(new DescribeScalingPoliciesRequest { ServiceNamespace = "ecs" }); string nextToken = response.NextToken; List<ScalingPolicy> scalingPolicies = response.ScalingPolicies;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5