# NOT RUN {
# This example deletes a scaling policy for the Amazon ECS service called
# web-app, which is running in the default cluster.
# }
# NOT RUN {
svc <- applicationautoscaling()
svc$delete_scaling_policy(
PolicyName = "web-app-cpu-lt-25",
ResourceId = "service/default/web-app",
ScalableDimension = "ecs:service:DesiredCount",
ServiceNamespace = "ecs"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab