aws-sdk-applicationautoscaling 1.30.0 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 071fb34153a0bb3f67b72ddc95e33e4bab7462e4
|
4
|
+
data.tar.gz: 8db8b4f2faca53477a01a893bdc176bd7f276d0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e866ea7f0bca37496aba83a9646f4fecf6167258d94a7a9d6849ae75e93f55905fcdcba156baceed6b21d4fa3a63f19482182e99b67be45bbbdde55b8e527215
|
7
|
+
data.tar.gz: 38f35ce6418e1699ea51544471d16fcc29560952e36c9c42c41e82607226db39de0b38130fc78703a70615d905aa25c96b9ac358650a87397914354b9708a087
|
@@ -812,9 +812,14 @@ module Aws::ApplicationAutoScaling
|
|
812
812
|
# max_capacity: 10,
|
813
813
|
# min_capacity: 1,
|
814
814
|
# resource_id: "service/default/web-app",
|
815
|
-
# role_arn: "arn:aws:iam::012345678910:role/
|
815
|
+
# role_arn: "arn:aws:iam::012345678910:role/aws-service-role/ecs.application-autoscaling.amazonaws.com/AWSServiceRoleForApplicationAutoScaling_ECSService",
|
816
816
|
# scalable_dimension: "ecs:service:DesiredCount",
|
817
817
|
# service_namespace: "ecs",
|
818
|
+
# suspended_state: {
|
819
|
+
# dynamic_scaling_in_suspended: false,
|
820
|
+
# dynamic_scaling_out_suspended: false,
|
821
|
+
# scheduled_scaling_suspended: false,
|
822
|
+
# },
|
818
823
|
# },
|
819
824
|
# ],
|
820
825
|
# }
|
@@ -1443,7 +1448,7 @@ module Aws::ApplicationAutoScaling
|
|
1443
1448
|
# is a chance that multiple policies could conflict, instructing the
|
1444
1449
|
# scalable target to scale out or in at the same time. Application Auto
|
1445
1450
|
# Scaling gives precedence to the policy that provides the largest
|
1446
|
-
# capacity for both scale
|
1451
|
+
# capacity for both scale out and scale in. For example, if one policy
|
1447
1452
|
# increases capacity by 3, another policy increases capacity by 200
|
1448
1453
|
# percent, and the current capacity is 10, Application Auto Scaling uses
|
1449
1454
|
# the policy with the highest calculated capacity (200% of 10 = 20) and
|
@@ -1560,14 +1565,14 @@ module Aws::ApplicationAutoScaling
|
|
1560
1565
|
#
|
1561
1566
|
# `StepScaling`—Not supported for Amazon DynamoDB
|
1562
1567
|
#
|
1563
|
-
# For more information, see [
|
1564
|
-
# Scaling][
|
1565
|
-
#
|
1568
|
+
# For more information, see [Target Tracking Scaling Policies][1] and
|
1569
|
+
# [Step Scaling Policies][2] in the *Application Auto Scaling User
|
1570
|
+
# Guide*.
|
1566
1571
|
#
|
1567
1572
|
#
|
1568
1573
|
#
|
1569
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-
|
1570
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-
|
1574
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html
|
1575
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html
|
1571
1576
|
#
|
1572
1577
|
# @option params [Types::StepScalingPolicyConfiguration] :step_scaling_policy_configuration
|
1573
1578
|
# A step scaling policy.
|
@@ -1588,9 +1593,127 @@ module Aws::ApplicationAutoScaling
|
|
1588
1593
|
# * {Types::PutScalingPolicyResponse#alarms #alarms} => Array<Types::Alarm>
|
1589
1594
|
#
|
1590
1595
|
#
|
1591
|
-
# @example Example: To apply a scaling policy
|
1596
|
+
# @example Example: To apply a target tracking scaling policy with a predefined metric specification
|
1597
|
+
#
|
1598
|
+
# # The following example applies a target tracking scaling policy with a predefined metric specification to an Amazon ECS
|
1599
|
+
# # service called web-app in the default cluster. The policy keeps the average CPU utilization of the service at 75
|
1600
|
+
# # percent, with scale-out and scale-in cooldown periods of 60 seconds.
|
1601
|
+
#
|
1602
|
+
# resp = client.put_scaling_policy({
|
1603
|
+
# policy_name: "cpu75-target-tracking-scaling-policy",
|
1604
|
+
# policy_type: "TargetTrackingScaling",
|
1605
|
+
# resource_id: "service/default/web-app",
|
1606
|
+
# scalable_dimension: "ecs:service:DesiredCount",
|
1607
|
+
# service_namespace: "ecs",
|
1608
|
+
# target_tracking_scaling_policy_configuration: {
|
1609
|
+
# predefined_metric_specification: {
|
1610
|
+
# predefined_metric_type: "ECSServiceAverageCPUUtilization",
|
1611
|
+
# },
|
1612
|
+
# scale_in_cooldown: 60,
|
1613
|
+
# scale_out_cooldown: 60,
|
1614
|
+
# target_value: 75,
|
1615
|
+
# },
|
1616
|
+
# })
|
1617
|
+
#
|
1618
|
+
# resp.to_h outputs the following:
|
1619
|
+
# {
|
1620
|
+
# alarms: [
|
1621
|
+
# {
|
1622
|
+
# alarm_arn: "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmHigh-d4f0770c-b46e-434a-a60f-3b36d653feca",
|
1623
|
+
# alarm_name: "TargetTracking-service/default/web-app-AlarmHigh-d4f0770c-b46e-434a-a60f-3b36d653feca",
|
1624
|
+
# },
|
1625
|
+
# {
|
1626
|
+
# alarm_arn: "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmLow-1b437334-d19b-4a63-a812-6c67aaf2910d",
|
1627
|
+
# alarm_name: "TargetTracking-service/default/web-app-AlarmLow-1b437334-d19b-4a63-a812-6c67aaf2910d",
|
1628
|
+
# },
|
1629
|
+
# ],
|
1630
|
+
# policy_arn: "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",
|
1631
|
+
# }
|
1632
|
+
#
|
1633
|
+
# @example Example: To apply a target tracking scaling policy with a customized metric specification
|
1634
|
+
#
|
1635
|
+
# # The following example applies a target tracking scaling policy with a customized metric specification to an Amazon ECS
|
1636
|
+
# # service called web-app in the default cluster. The policy keeps the average utilization of the service at 75 percent,
|
1637
|
+
# # with scale-out and scale-in cooldown periods of 60 seconds.
|
1638
|
+
#
|
1639
|
+
# resp = client.put_scaling_policy({
|
1640
|
+
# policy_name: "cms75-target-tracking-scaling-policy",
|
1641
|
+
# policy_type: "TargetTrackingScaling",
|
1642
|
+
# resource_id: "service/default/web-app",
|
1643
|
+
# scalable_dimension: "ecs:service:DesiredCount",
|
1644
|
+
# service_namespace: "ecs",
|
1645
|
+
# target_tracking_scaling_policy_configuration: {
|
1646
|
+
# customized_metric_specification: {
|
1647
|
+
# dimensions: [
|
1648
|
+
# {
|
1649
|
+
# name: "MyOptionalMetricDimensionName",
|
1650
|
+
# value: "MyOptionalMetricDimensionValue",
|
1651
|
+
# },
|
1652
|
+
# ],
|
1653
|
+
# metric_name: "MyUtilizationMetric",
|
1654
|
+
# namespace: "MyNamespace",
|
1655
|
+
# statistic: "Average",
|
1656
|
+
# unit: "Percent",
|
1657
|
+
# },
|
1658
|
+
# scale_in_cooldown: 60,
|
1659
|
+
# scale_out_cooldown: 60,
|
1660
|
+
# target_value: 75,
|
1661
|
+
# },
|
1662
|
+
# })
|
1663
|
+
#
|
1664
|
+
# resp.to_h outputs the following:
|
1665
|
+
# {
|
1666
|
+
# alarms: [
|
1667
|
+
# {
|
1668
|
+
# alarm_arn: "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmHigh-9bc77b56-0571-4276-ba0f-d4178882e0a0",
|
1669
|
+
# alarm_name: "TargetTracking-service/default/web-app-AlarmHigh-9bc77b56-0571-4276-ba0f-d4178882e0a0",
|
1670
|
+
# },
|
1671
|
+
# {
|
1672
|
+
# alarm_arn: "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmLow-9b6ad934-6d37-438e-9e05-02836ddcbdc4",
|
1673
|
+
# alarm_name: "TargetTracking-service/default/web-app-AlarmLow-9b6ad934-6d37-438e-9e05-02836ddcbdc4",
|
1674
|
+
# },
|
1675
|
+
# ],
|
1676
|
+
# policy_arn: "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy: 8784a896-b2ba-47a1-b08c-27301cc499a1:resource/ecs/service/default/web-app:policyName/cms75-target-tracking-scaling-policy",
|
1677
|
+
# }
|
1678
|
+
#
|
1679
|
+
# @example Example: To apply a target tracking scaling policy for scale out only
|
1680
|
+
#
|
1681
|
+
# # The following example applies a target tracking scaling policy to an Amazon ECS service called web-app in the default
|
1682
|
+
# # cluster. The policy is used to scale out the ECS service when the RequestCountPerTarget metric from the Application Load
|
1683
|
+
# # Balancer exceeds the threshold.
|
1684
|
+
#
|
1685
|
+
# resp = client.put_scaling_policy({
|
1686
|
+
# policy_name: "alb-scale-out-target-tracking-scaling-policy",
|
1687
|
+
# policy_type: "TargetTrackingScaling",
|
1688
|
+
# resource_id: "service/default/web-app",
|
1689
|
+
# scalable_dimension: "ecs:service:DesiredCount",
|
1690
|
+
# service_namespace: "ecs",
|
1691
|
+
# target_tracking_scaling_policy_configuration: {
|
1692
|
+
# disable_scale_in: true,
|
1693
|
+
# predefined_metric_specification: {
|
1694
|
+
# predefined_metric_type: "ALBRequestCountPerTarget",
|
1695
|
+
# resource_label: "app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d",
|
1696
|
+
# },
|
1697
|
+
# scale_in_cooldown: 60,
|
1698
|
+
# scale_out_cooldown: 60,
|
1699
|
+
# target_value: 1000,
|
1700
|
+
# },
|
1701
|
+
# })
|
1702
|
+
#
|
1703
|
+
# resp.to_h outputs the following:
|
1704
|
+
# {
|
1705
|
+
# alarms: [
|
1706
|
+
# {
|
1707
|
+
# alarm_arn: "TargetTracking-service/default/web-app-AlarmHigh-d4f0770c-b46e-434a-a60f-3b36d653feca",
|
1708
|
+
# alarm_name: "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmHigh-d4f0770c-b46e-434a-a60f-3b36d653feca",
|
1709
|
+
# },
|
1710
|
+
# ],
|
1711
|
+
# policy_arn: "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/alb-scale-out-target-tracking-scaling-policy",
|
1712
|
+
# }
|
1713
|
+
#
|
1714
|
+
# @example Example: To apply a step scaling policy to an Amazon ECS service
|
1592
1715
|
#
|
1593
|
-
# # This example applies a scaling policy to an Amazon ECS service called web-app in the default cluster. The policy
|
1716
|
+
# # This example applies a step scaling policy to an Amazon ECS service called web-app in the default cluster. The policy
|
1594
1717
|
# # increases the desired count of the service by 200%, with a cool down period of 60 seconds.
|
1595
1718
|
#
|
1596
1719
|
# resp = client.put_scaling_policy({
|
@@ -1616,10 +1739,10 @@ module Aws::ApplicationAutoScaling
|
|
1616
1739
|
# policy_arn: "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",
|
1617
1740
|
# }
|
1618
1741
|
#
|
1619
|
-
# @example Example: To apply a scaling policy to an Amazon EC2 Spot fleet
|
1742
|
+
# @example Example: To apply a step scaling policy to an Amazon EC2 Spot fleet
|
1620
1743
|
#
|
1621
|
-
# # This example applies a scaling policy to an Amazon EC2 Spot fleet. The policy increases the target capacity of the
|
1622
|
-
# # fleet by 200%, with a cool down period of 180 seconds.",
|
1744
|
+
# # This example applies a step scaling policy to an Amazon EC2 Spot fleet. The policy increases the target capacity of the
|
1745
|
+
# # spot fleet by 200%, with a cool down period of 180 seconds.",
|
1623
1746
|
#
|
1624
1747
|
# resp = client.put_scaling_policy({
|
1625
1748
|
# policy_name: "fleet-cpu-gt-75",
|
@@ -2016,10 +2139,9 @@ module Aws::ApplicationAutoScaling
|
|
2016
2139
|
# information, see [Service-Linked Roles for Application Auto
|
2017
2140
|
# Scaling][1].
|
2018
2141
|
#
|
2019
|
-
# For
|
2020
|
-
#
|
2021
|
-
#
|
2022
|
-
# behalf.
|
2142
|
+
# For Amazon EMR, this parameter is required, and it must specify the
|
2143
|
+
# ARN of an IAM role that allows Application Auto Scaling to modify the
|
2144
|
+
# scalable target on your behalf.
|
2023
2145
|
#
|
2024
2146
|
#
|
2025
2147
|
#
|
@@ -2064,7 +2186,6 @@ module Aws::ApplicationAutoScaling
|
|
2064
2186
|
# max_capacity: 10,
|
2065
2187
|
# min_capacity: 1,
|
2066
2188
|
# resource_id: "service/default/web-app",
|
2067
|
-
# role_arn: "arn:aws:iam::012345678910:role/ApplicationAutoscalingECSRole",
|
2068
2189
|
# scalable_dimension: "ecs:service:DesiredCount",
|
2069
2190
|
# service_namespace: "ecs",
|
2070
2191
|
# })
|
@@ -2078,7 +2199,6 @@ module Aws::ApplicationAutoScaling
|
|
2078
2199
|
# max_capacity: 10,
|
2079
2200
|
# min_capacity: 1,
|
2080
2201
|
# resource_id: "spot-fleet-request/sfr-45e69d8a-be48-4539-bbf3-3464e99c50c3",
|
2081
|
-
# role_arn: "arn:aws:iam::012345678910:role/ApplicationAutoscalingSpotRole",
|
2082
2202
|
# scalable_dimension: "ec2:spot-fleet-request:TargetCapacity",
|
2083
2203
|
# service_namespace: "ec2",
|
2084
2204
|
# })
|
@@ -2125,7 +2245,7 @@ module Aws::ApplicationAutoScaling
|
|
2125
2245
|
params: params,
|
2126
2246
|
config: config)
|
2127
2247
|
context[:gem_name] = 'aws-sdk-applicationautoscaling'
|
2128
|
-
context[:gem_version] = '1.
|
2248
|
+
context[:gem_version] = '1.31.0'
|
2129
2249
|
Seahorse::Client::Request.new(handlers, context)
|
2130
2250
|
end
|
2131
2251
|
|
@@ -1391,15 +1391,14 @@ module Aws::ApplicationAutoScaling
|
|
1391
1391
|
#
|
1392
1392
|
# `StepScaling`—Not supported for Amazon DynamoDB
|
1393
1393
|
#
|
1394
|
-
# For more information, see [
|
1395
|
-
#
|
1396
|
-
# Application Auto Scaling][2] in the *Application Auto Scaling User
|
1394
|
+
# For more information, see [Target Tracking Scaling Policies][1] and
|
1395
|
+
# [Step Scaling Policies][2] in the *Application Auto Scaling User
|
1397
1396
|
# Guide*.
|
1398
1397
|
#
|
1399
1398
|
#
|
1400
1399
|
#
|
1401
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-
|
1402
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-
|
1400
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html
|
1401
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html
|
1403
1402
|
# @return [String]
|
1404
1403
|
#
|
1405
1404
|
# @!attribute [rw] step_scaling_policy_configuration
|
@@ -1749,10 +1748,9 @@ module Aws::ApplicationAutoScaling
|
|
1749
1748
|
# more information, see [Service-Linked Roles for Application Auto
|
1750
1749
|
# Scaling][1].
|
1751
1750
|
#
|
1752
|
-
# For
|
1753
|
-
#
|
1754
|
-
#
|
1755
|
-
# target on your behalf.
|
1751
|
+
# For Amazon EMR, this parameter is required, and it must specify the
|
1752
|
+
# ARN of an IAM role that allows Application Auto Scaling to modify
|
1753
|
+
# the scalable target on your behalf.
|
1756
1754
|
#
|
1757
1755
|
#
|
1758
1756
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-applicationautoscaling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.31.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|