Describes the Application Auto Scaling scaling policies for the specified service namespace
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.
applicationautoscaling_describe_scaling_policies(PolicyNames, ServiceNamespace, ResourceId, ScalableDimension, MaxResults, NextToken)
PolicyNames |
The names of the scaling policies to describe. |
ServiceNamespace |
[required] The namespace of the AWS service that provides the resource. For a
resource provided by your own application or service, use
|
ResourceId |
The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. If you specify a scalable dimension, you must also specify a resource ID.
|
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.
|
MaxResults |
The maximum number of scalable targets. This value can be between 1 and 50. The default value is 50. If this parameter is used, the operation returns up to |
NextToken |
The token for the next set of results. |
A list with the following syntax:
list( ScalingPolicies = list( list( PolicyARN = "string", PolicyName = "string", ServiceNamespace = "ecs"|"elasticmapreduce"|"ec2"|"appstream"|"dynamodb"|"rds"|"sagemaker"|"custom-resource"|"comprehend"|"lambda"|"cassandra"|"kafka", ResourceId = "string", ScalableDimension = "ecs:service:DesiredCount"|"ec2:spot-fleet-request:TargetCapacity"|"elasticmapreduce:instancegroup:InstanceCount"|"appstream:fleet:DesiredCapacity"|"dynamodb:table:ReadCapacityUnits"|"dynamodb:table:WriteCapacityUnits"|"dynamodb:index:ReadCapacityUnits"|"dynamodb:index:WriteCapacityUnits"|"rds:cluster:ReadReplicaCount"|"sagemaker:variant:DesiredInstanceCount"|"custom-resource:ResourceType:Property"|"comprehend:document-classifier-endpoint:DesiredInferenceUnits"|"comprehend:entity-recognizer-endpoint:DesiredInferenceUnits"|"lambda:function:ProvisionedConcurrency"|"cassandra:table:ReadCapacityUnits"|"cassandra:table:WriteCapacityUnits"|"kafka:broker-storage:VolumeSize", PolicyType = "StepScaling"|"TargetTrackingScaling", StepScalingPolicyConfiguration = list( AdjustmentType = "ChangeInCapacity"|"PercentChangeInCapacity"|"ExactCapacity", StepAdjustments = list( list( MetricIntervalLowerBound = 123.0, MetricIntervalUpperBound = 123.0, ScalingAdjustment = 123 ) ), MinAdjustmentMagnitude = 123, Cooldown = 123, MetricAggregationType = "Average"|"Minimum"|"Maximum" ), TargetTrackingScalingPolicyConfiguration = list( TargetValue = 123.0, PredefinedMetricSpecification = list( PredefinedMetricType = "DynamoDBReadCapacityUtilization"|"DynamoDBWriteCapacityUtilization"|"ALBRequestCountPerTarget"|"RDSReaderAverageCPUUtilization"|"RDSReaderAverageDatabaseConnections"|"EC2SpotFleetRequestAverageCPUUtilization"|"EC2SpotFleetRequestAverageNetworkIn"|"EC2SpotFleetRequestAverageNetworkOut"|"SageMakerVariantInvocationsPerInstance"|"ECSServiceAverageCPUUtilization"|"ECSServiceAverageMemoryUtilization"|"AppStreamAverageCapacityUtilization"|"ComprehendInferenceUtilization"|"LambdaProvisionedConcurrencyUtilization"|"CassandraReadCapacityUtilization"|"CassandraWriteCapacityUtilization"|"KafkaBrokerStorageUtilization", ResourceLabel = "string" ), CustomizedMetricSpecification = list( MetricName = "string", Namespace = "string", Dimensions = list( list( Name = "string", Value = "string" ) ), Statistic = "Average"|"Minimum"|"Maximum"|"SampleCount"|"Sum", Unit = "string" ), ScaleOutCooldown = 123, ScaleInCooldown = 123, DisableScaleIn = TRUE|FALSE ), Alarms = list( list( AlarmName = "string", AlarmARN = "string" ) ), CreationTime = as.POSIXct( "2015-01-01" ) ) ), NextToken = "string" )
svc$describe_scaling_policies( PolicyNames = list( "string" ), ServiceNamespace = "ecs"|"elasticmapreduce"|"ec2"|"appstream"|"dynamodb"|"rds"|"sagemaker"|"custom-resource"|"comprehend"|"lambda"|"cassandra"|"kafka", ResourceId = "string", ScalableDimension = "ecs:service:DesiredCount"|"ec2:spot-fleet-request:TargetCapacity"|"elasticmapreduce:instancegroup:InstanceCount"|"appstream:fleet:DesiredCapacity"|"dynamodb:table:ReadCapacityUnits"|"dynamodb:table:WriteCapacityUnits"|"dynamodb:index:ReadCapacityUnits"|"dynamodb:index:WriteCapacityUnits"|"rds:cluster:ReadReplicaCount"|"sagemaker:variant:DesiredInstanceCount"|"custom-resource:ResourceType:Property"|"comprehend:document-classifier-endpoint:DesiredInferenceUnits"|"comprehend:entity-recognizer-endpoint:DesiredInferenceUnits"|"lambda:function:ProvisionedConcurrency"|"cassandra:table:ReadCapacityUnits"|"cassandra:table:WriteCapacityUnits"|"kafka:broker-storage:VolumeSize", MaxResults = 123, NextToken = "string" )
## Not run: # This example describes the scaling policies for the ECS service # namespace. svc$describe_scaling_policies( ServiceNamespace = "ecs" ) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.