Description Usage Arguments Value Request syntax Examples
View source: R/applicationautoscaling_operations.R
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.
1 2 | 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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | 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"
)
|
1 2 3 4 5 6 7 8 9 10 | 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"
)
|
1 2 3 4 5 6 7 8 | ## Not run:
# This example describes the scaling policies for the ECS service
# namespace.
svc$describe_scaling_policies(
ServiceNamespace = "ecs"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.