Deletes the specified scaling policy for an Application Auto Scaling scalable target
Deletes the specified scaling policy for an Application Auto Scaling scalable target.
Deleting a step scaling policy deletes the underlying alarm action, but does not delete the CloudWatch alarm associated with the scaling policy, even if it no longer has an associated action.
For more information, see Delete a Step Scaling Policy and Delete a Target Tracking Scaling Policy in the Application Auto Scaling User Guide.
applicationautoscaling_delete_scaling_policy(PolicyName, ServiceNamespace, ResourceId, ScalableDimension)
PolicyName |
[required] The name of the scaling policy. |
ServiceNamespace |
[required] The namespace of the AWS service that provides the resource. For a
resource provided by your own application or service, use
|
ResourceId |
[required] The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier.
|
ScalableDimension |
[required] The scalable dimension. This string consists of the service namespace, resource type, and scaling property.
|
An empty list.
svc$delete_scaling_policy( 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" )
## Not run: # This example deletes a scaling policy for the Amazon ECS service called # web-app, which is running in the default cluster. svc$delete_scaling_policy( PolicyName = "web-app-cpu-lt-25", ResourceId = "service/default/web-app", ScalableDimension = "ecs:service:DesiredCount", ServiceNamespace = "ecs" ) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.