github.com/aavshr/aws-sdk-go@v1.41.3/models/apis/application-autoscaling/2016-02-06/examples-1.json (about)

     1  {
     2    "version": "1.0",
     3    "examples": {
     4      "DeleteScalingPolicy": [
     5        {
     6          "input": {
     7            "PolicyName": "web-app-cpu-lt-25",
     8            "ResourceId": "service/default/web-app",
     9            "ScalableDimension": "ecs:service:DesiredCount",
    10            "ServiceNamespace": "ecs"
    11          },
    12          "output": {
    13          },
    14          "comments": {
    15            "input": {
    16            },
    17            "output": {
    18            }
    19          },
    20          "description": "This example deletes a scaling policy for the Amazon ECS service called web-app, which is running in the default cluster.",
    21          "id": "to-delete-a-scaling-policy-1470863892689",
    22          "title": "To delete a scaling policy"
    23        }
    24      ],
    25      "DeregisterScalableTarget": [
    26        {
    27          "input": {
    28            "ResourceId": "service/default/web-app",
    29            "ScalableDimension": "ecs:service:DesiredCount",
    30            "ServiceNamespace": "ecs"
    31          },
    32          "output": {
    33          },
    34          "comments": {
    35            "input": {
    36            },
    37            "output": {
    38            }
    39          },
    40          "description": "This example deregisters a scalable target for an Amazon ECS service called web-app that is running in the default cluster.",
    41          "id": "to-deregister-a-scalable-target-1470864164895",
    42          "title": "To deregister a scalable target"
    43        }
    44      ],
    45      "DescribeScalableTargets": [
    46        {
    47          "input": {
    48            "ServiceNamespace": "ecs"
    49          },
    50          "output": {
    51            "ScalableTargets": [
    52              {
    53                "CreationTime": "2019-05-06T11:21:46.199Z",
    54                "MaxCapacity": 10,
    55                "MinCapacity": 1,
    56                "ResourceId": "service/default/web-app",
    57                "RoleARN": "arn:aws:iam::012345678910:role/aws-service-role/ecs.application-autoscaling.amazonaws.com/AWSServiceRoleForApplicationAutoScaling_ECSService",
    58                "ScalableDimension": "ecs:service:DesiredCount",
    59                "ServiceNamespace": "ecs",
    60                "SuspendedState": {
    61                  "DynamicScalingInSuspended": false,
    62                  "DynamicScalingOutSuspended": false,
    63                  "ScheduledScalingSuspended": false
    64                }
    65              }
    66            ]
    67          },
    68          "comments": {
    69            "input": {
    70            },
    71            "output": {
    72            }
    73          },
    74          "description": "This example describes the scalable targets for the ECS service namespace.",
    75          "id": "to-describe-scalable-targets-1470864286961",
    76          "title": "To describe scalable targets"
    77        }
    78      ],
    79      "DescribeScalingActivities": [
    80        {
    81          "input": {
    82            "ResourceId": "service/default/web-app",
    83            "ScalableDimension": "ecs:service:DesiredCount",
    84            "ServiceNamespace": "ecs"
    85          },
    86          "output": {
    87            "ScalingActivities": [
    88              {
    89                "ActivityId": "e6c5f7d1-dbbb-4a3f-89b2-51f33e766399",
    90                "Cause": "monitor alarm web-app-cpu-lt-25 in state ALARM triggered policy web-app-cpu-lt-25",
    91                "Description": "Setting desired count to 1.",
    92                "EndTime": "2019-05-06T16:04:32.111Z",
    93                "ResourceId": "service/default/web-app",
    94                "ScalableDimension": "ecs:service:DesiredCount",
    95                "ServiceNamespace": "ecs",
    96                "StartTime": "2019-05-06T16:03:58.171Z",
    97                "StatusCode": "Successful",
    98                "StatusMessage": "Successfully set desired count to 1. Change successfully fulfilled by ecs."
    99              }
   100            ]
   101          },
   102          "comments": {
   103            "input": {
   104            },
   105            "output": {
   106            }
   107          },
   108          "description": "This example describes the scaling activities for an Amazon ECS service called web-app that is running in the default cluster.",
   109          "id": "to-describe-scaling-activities-for-a-scalable-target-1470864398629",
   110          "title": "To describe scaling activities for a scalable target"
   111        }
   112      ],
   113      "DescribeScalingPolicies": [
   114        {
   115          "input": {
   116            "ServiceNamespace": "ecs"
   117          },
   118          "output": {
   119            "NextToken": "",
   120            "ScalingPolicies": [
   121              {
   122                "Alarms": [
   123                  {
   124                    "AlarmARN": "arn:aws:cloudwatch:us-west-2:012345678910:alarm:web-app-cpu-gt-75",
   125                    "AlarmName": "web-app-cpu-gt-75"
   126                  }
   127                ],
   128                "CreationTime": "2019-05-06T12:11:39.230Z",
   129                "PolicyARN": "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/web-app-cpu-gt-75",
   130                "PolicyName": "web-app-cpu-gt-75",
   131                "PolicyType": "StepScaling",
   132                "ResourceId": "service/default/web-app",
   133                "ScalableDimension": "ecs:service:DesiredCount",
   134                "ServiceNamespace": "ecs",
   135                "StepScalingPolicyConfiguration": {
   136                  "AdjustmentType": "PercentChangeInCapacity",
   137                  "Cooldown": 60,
   138                  "StepAdjustments": [
   139                    {
   140                      "MetricIntervalLowerBound": 0,
   141                      "ScalingAdjustment": 200
   142                    }
   143                  ]
   144                }
   145              }
   146            ]
   147          },
   148          "comments": {
   149            "input": {
   150            },
   151            "output": {
   152            }
   153          },
   154          "description": "This example describes the scaling policies for the ECS service namespace.",
   155          "id": "to-describe-scaling-policies-1470864609734",
   156          "title": "To describe scaling policies"
   157        }
   158      ],
   159      "PutScalingPolicy": [
   160        {
   161          "input": {
   162            "PolicyName": "cpu75-target-tracking-scaling-policy",
   163            "PolicyType": "TargetTrackingScaling",
   164            "ResourceId": "service/default/web-app",
   165            "ScalableDimension": "ecs:service:DesiredCount",
   166            "ServiceNamespace": "ecs",
   167            "TargetTrackingScalingPolicyConfiguration": {
   168              "PredefinedMetricSpecification": {
   169                "PredefinedMetricType": "ECSServiceAverageCPUUtilization"
   170              },
   171              "ScaleInCooldown": 60,
   172              "ScaleOutCooldown": 60,
   173              "TargetValue": 75
   174            }
   175          },
   176          "output": {
   177            "Alarms": [
   178              {
   179                "AlarmARN": "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmHigh-d4f0770c-b46e-434a-a60f-3b36d653feca",
   180                "AlarmName": "TargetTracking-service/default/web-app-AlarmHigh-d4f0770c-b46e-434a-a60f-3b36d653feca"
   181              },
   182              {
   183                "AlarmARN": "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmLow-1b437334-d19b-4a63-a812-6c67aaf2910d",
   184                "AlarmName": "TargetTracking-service/default/web-app-AlarmLow-1b437334-d19b-4a63-a812-6c67aaf2910d"
   185              }
   186            ],
   187            "PolicyARN": "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/cpu75-target-tracking-scaling-policy"
   188          },
   189          "comments": {
   190            "input": {
   191            },
   192            "output": {
   193            }
   194          },
   195          "description": "The following example applies a target tracking scaling policy with a predefined metric specification to an Amazon ECS service called web-app in the default cluster. The policy keeps the average CPU utilization of the service at 75 percent, with scale-out and scale-in cooldown periods of 60 seconds.",
   196          "id": "to-apply-a-target-tracking-scaling-policy-with-a-predefined-metric-specification-1569364247984",
   197          "title": "To apply a target tracking scaling policy with a predefined metric specification"
   198        }
   199      ],
   200      "RegisterScalableTarget": [
   201        {
   202          "input": {
   203            "MaxCapacity": 10,
   204            "MinCapacity": 1,
   205            "ResourceId": "service/default/web-app",
   206            "ScalableDimension": "ecs:service:DesiredCount",
   207            "ServiceNamespace": "ecs"
   208          },
   209          "comments": {
   210            "input": {
   211            },
   212            "output": {
   213            }
   214          },
   215          "description": "This example registers a scalable target from an Amazon ECS service called web-app that is running on the default cluster, with a minimum desired count of 1 task and a maximum desired count of 10 tasks.",
   216          "id": "to-register-a-new-scalable-target-1470864910380",
   217          "title": "To register an ECS service as a scalable target"
   218        }
   219      ]
   220    }
   221  }