aws-sdk-applicationautoscaling 1.67.0 → 1.68.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef05499f3718d5c6bbb45329b2f6a403ccd95ab9b4e0819f3d255b539f616f1f
4
- data.tar.gz: f4732ddb2cff7231c6813639afaaefe691bab4fe27e607a620edb8f422e3e993
3
+ metadata.gz: c8596d9d0cc5b32b0cd913a0afb1a0cdd86e692e43967bc29dd1351c84771c6c
4
+ data.tar.gz: 4d6715a47d97be3a2af03327a8867da963a83793d29e79f8764193f30f50e5e0
5
5
  SHA512:
6
- metadata.gz: 26b9d1ddca3e0c1b51eaf76f9e65908b82d817ea600566d50d1f0c509e549f231e851173b1d03cdfd49224b02764943cd78a32cf7e1dbd3bea7ffa97c8fcc210
7
- data.tar.gz: 682c0a2f62c3def0154e527b11ca4ec198c59fb569eae7b269dff745525dca03666e4aa176434a0e4096bd0804c04afbc4c67a39153dd6d1bf1489d2a4086bec
6
+ metadata.gz: c1182016a7e7995b0d7f467e76837d7fc648ffd07307647505e998701f0aed47027f48619224a4667b4029f7605ecab0ac37859ad5c76e77218e6b0eb2982ab9
7
+ data.tar.gz: 7c0a18ba0d33f564e71b8f620dde95388405a424b3939425cb409555d462747c74d5a795fd2aa5f70325c8bc316d3b26cb98e27cc77e805d4f21720714a2b734
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.68.0 (2023-03-20)
5
+ ------------------
6
+
7
+ * Feature - With this release customers can now tag their Application Auto Scaling registered targets with key-value pairs and manage IAM permissions for all the tagged resources centrally.
8
+
4
9
  1.67.0 (2023-03-14)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.67.0
1
+ 1.68.0
@@ -737,6 +737,22 @@ module Aws::ApplicationAutoScaling
737
737
  #
738
738
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
739
739
  #
740
+ #
741
+ # @example Example: To delete a scheduled action
742
+ #
743
+ # # This example deletes a scheduled action for the AppStream 2.0 fleet called sample-fleet.
744
+ #
745
+ # resp = client.delete_scheduled_action({
746
+ # resource_id: "fleet/sample-fleet",
747
+ # scalable_dimension: "appstream:fleet:DesiredCapacity",
748
+ # scheduled_action_name: "my-recurring-action",
749
+ # service_namespace: "appstream",
750
+ # })
751
+ #
752
+ # resp.to_h outputs the following:
753
+ # {
754
+ # }
755
+ #
740
756
  # @example Request syntax with placeholder values
741
757
  #
742
758
  # resp = client.delete_scheduled_action({
@@ -1172,6 +1188,7 @@ module Aws::ApplicationAutoScaling
1172
1188
  # resp.scalable_targets[0].suspended_state.dynamic_scaling_in_suspended #=> Boolean
1173
1189
  # resp.scalable_targets[0].suspended_state.dynamic_scaling_out_suspended #=> Boolean
1174
1190
  # resp.scalable_targets[0].suspended_state.scheduled_scaling_suspended #=> Boolean
1191
+ # resp.scalable_targets[0].scalable_target_arn #=> String
1175
1192
  # resp.next_token #=> String
1176
1193
  #
1177
1194
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets AWS API Documentation
@@ -1918,6 +1935,47 @@ module Aws::ApplicationAutoScaling
1918
1935
  #
1919
1936
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1920
1937
  #
1938
+ #
1939
+ # @example Example: To describe scheduled actions
1940
+ #
1941
+ # # This example describes the scheduled actions for the dynamodb service namespace.
1942
+ #
1943
+ # resp = client.describe_scheduled_actions({
1944
+ # service_namespace: "dynamodb",
1945
+ # })
1946
+ #
1947
+ # resp.to_h outputs the following:
1948
+ # {
1949
+ # scheduled_actions: [
1950
+ # {
1951
+ # creation_time: Time.parse(1561571888.361),
1952
+ # resource_id: "table/my-table",
1953
+ # scalable_dimension: "dynamodb:table:WriteCapacityUnits",
1954
+ # scalable_target_action: {
1955
+ # max_capacity: 20,
1956
+ # min_capacity: 15,
1957
+ # },
1958
+ # schedule: "at(2019-05-20T18:35:00)",
1959
+ # scheduled_action_arn: "arn:aws:autoscaling:us-west-2:123456789012:scheduledAction:2d36aa3b-cdf9-4565-b290-81db519b227d:resource/dynamodb/table/my-table:scheduledActionName/my-first-scheduled-action",
1960
+ # scheduled_action_name: "my-first-scheduled-action",
1961
+ # service_namespace: "dynamodb",
1962
+ # },
1963
+ # {
1964
+ # creation_time: Time.parse(1561571946.021),
1965
+ # resource_id: "table/my-table",
1966
+ # scalable_dimension: "dynamodb:table:WriteCapacityUnits",
1967
+ # scalable_target_action: {
1968
+ # max_capacity: 10,
1969
+ # min_capacity: 5,
1970
+ # },
1971
+ # schedule: "at(2019-05-20T18:40:00)",
1972
+ # scheduled_action_arn: "arn:aws:autoscaling:us-west-2:123456789012:scheduledAction:2d36aa3b-cdf9-4565-b290-81db519b227d:resource/dynamodb/table/my-table:scheduledActionName/my-second-scheduled-action",
1973
+ # scheduled_action_name: "my-second-scheduled-action",
1974
+ # service_namespace: "dynamodb",
1975
+ # },
1976
+ # ],
1977
+ # }
1978
+ #
1921
1979
  # @example Request syntax with placeholder values
1922
1980
  #
1923
1981
  # resp = client.describe_scheduled_actions({
@@ -1955,6 +2013,65 @@ module Aws::ApplicationAutoScaling
1955
2013
  req.send_request(options)
1956
2014
  end
1957
2015
 
2016
+ # Returns all the tags on the specified Application Auto Scaling
2017
+ # scalable target.
2018
+ #
2019
+ # For general information about tags, including the format and syntax,
2020
+ # see [Tagging Amazon Web Services resources][1] in the *Amazon Web
2021
+ # Services General Reference*.
2022
+ #
2023
+ #
2024
+ #
2025
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
2026
+ #
2027
+ # @option params [required, String] :resource_arn
2028
+ # Specify the ARN of the scalable target.
2029
+ #
2030
+ # For example:
2031
+ # `arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123`
2032
+ #
2033
+ # To get the ARN for a scalable target, use DescribeScalableTargets.
2034
+ #
2035
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2036
+ #
2037
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String>
2038
+ #
2039
+ #
2040
+ # @example Example: To list tags for a scalable target
2041
+ #
2042
+ # # This example lists the tag key names and values that are attached to the scalable target specified by its ARN.
2043
+ #
2044
+ # resp = client.list_tags_for_resource({
2045
+ # resource_arn: "arn:aws:application-autoscaling:us-west-2:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123",
2046
+ # })
2047
+ #
2048
+ # resp.to_h outputs the following:
2049
+ # {
2050
+ # tags: {
2051
+ # "environment" => "production",
2052
+ # },
2053
+ # }
2054
+ #
2055
+ # @example Request syntax with placeholder values
2056
+ #
2057
+ # resp = client.list_tags_for_resource({
2058
+ # resource_arn: "AmazonResourceName", # required
2059
+ # })
2060
+ #
2061
+ # @example Response structure
2062
+ #
2063
+ # resp.tags #=> Hash
2064
+ # resp.tags["TagKey"] #=> String
2065
+ #
2066
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource AWS API Documentation
2067
+ #
2068
+ # @overload list_tags_for_resource(params = {})
2069
+ # @param [Hash] params ({})
2070
+ def list_tags_for_resource(params = {}, options = {})
2071
+ req = build_request(:list_tags_for_resource, params)
2072
+ req.send_request(options)
2073
+ end
2074
+
1958
2075
  # Creates or updates a scaling policy for an Application Auto Scaling
1959
2076
  # scalable target.
1960
2077
  #
@@ -1989,7 +2106,7 @@ module Aws::ApplicationAutoScaling
1989
2106
  # Guide*.
1990
2107
  #
1991
2108
  # <note markdown="1"> If a scalable target is deregistered, the scalable target is no longer
1992
- # available to execute scaling policies. Any scaling policies that were
2109
+ # available to use scaling policies. Any scaling policies that were
1993
2110
  # specified for the scalable target are deleted.
1994
2111
  #
1995
2112
  # </note>
@@ -2318,8 +2435,8 @@ module Aws::ApplicationAutoScaling
2318
2435
  # scheduled action until you have registered the resource as a scalable
2319
2436
  # target.
2320
2437
  #
2321
- # When start and end times are specified with a recurring schedule using
2322
- # a cron expression or rates, they form the boundaries for when the
2438
+ # When you specify start and end times with a recurring schedule using a
2439
+ # cron expression or rates, they form the boundaries for when the
2323
2440
  # recurring action starts and stops.
2324
2441
  #
2325
2442
  # To update a scheduled action, specify the parameters that you want to
@@ -2547,6 +2664,28 @@ module Aws::ApplicationAutoScaling
2547
2664
  #
2548
2665
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2549
2666
  #
2667
+ #
2668
+ # @example Example: To create a recurring scheduled action
2669
+ #
2670
+ # # This example adds a scheduled action to a DynamoDB table called TestTable to scale out on a recurring schedule. On the
2671
+ # # specified schedule (every day at 12:15pm UTC), if the current capacity is below the value specified for MinCapacity,
2672
+ # # Application Auto Scaling scales out to the value specified by MinCapacity.
2673
+ #
2674
+ # resp = client.put_scheduled_action({
2675
+ # resource_id: "table/TestTable",
2676
+ # scalable_dimension: "dynamodb:table:WriteCapacityUnits",
2677
+ # scalable_target_action: {
2678
+ # min_capacity: 6,
2679
+ # },
2680
+ # schedule: "cron(15 12 * * ? *)",
2681
+ # scheduled_action_name: "my-recurring-action",
2682
+ # service_namespace: "dynamodb",
2683
+ # })
2684
+ #
2685
+ # resp.to_h outputs the following:
2686
+ # {
2687
+ # }
2688
+ #
2550
2689
  # @example Request syntax with placeholder values
2551
2690
  #
2552
2691
  # resp = client.put_scheduled_action({
@@ -2573,8 +2712,8 @@ module Aws::ApplicationAutoScaling
2573
2712
  req.send_request(options)
2574
2713
  end
2575
2714
 
2576
- # Registers or updates a scalable target, the resource that you want to
2577
- # scale.
2715
+ # Registers or updates a scalable target, which is the resource that you
2716
+ # want to scale.
2578
2717
  #
2579
2718
  # Scalable targets are uniquely identified by the combination of
2580
2719
  # resource ID, scalable dimension, and namespace, which represents some
@@ -2586,10 +2725,10 @@ module Aws::ApplicationAutoScaling
2586
2725
  # resource's current capacity. Otherwise, it changes the resource's
2587
2726
  # current capacity to a value that is inside of this range.
2588
2727
  #
2589
- # If you choose to add a scaling policy, current capacity is adjustable
2590
- # within the specified range when scaling starts. Application Auto
2591
- # Scaling scaling policies will not scale capacity to values that are
2592
- # outside of the minimum and maximum range.
2728
+ # If you add a scaling policy, current capacity is adjustable within the
2729
+ # specified range when scaling starts. Application Auto Scaling scaling
2730
+ # policies will not scale capacity to values that are outside of the
2731
+ # minimum and maximum range.
2593
2732
  #
2594
2733
  # After you register a scalable target, you do not need to register it
2595
2734
  # again to use other Application Auto Scaling operations. To see which
@@ -2603,12 +2742,20 @@ module Aws::ApplicationAutoScaling
2603
2742
  # resource ID, scalable dimension, and namespace. Any parameters that
2604
2743
  # you don't specify are not changed by this update request.
2605
2744
  #
2606
- # <note markdown="1"> If you call the `RegisterScalableTarget` API to update an existing
2607
- # scalable target, Application Auto Scaling retrieves the current
2608
- # capacity of the resource. If it is below the minimum capacity or above
2609
- # the maximum capacity, Application Auto Scaling adjusts the capacity of
2610
- # the scalable target to place it within these bounds, even if you
2611
- # don't include the `MinCapacity` or `MaxCapacity` request parameters.
2745
+ # <note markdown="1"> If you call the `RegisterScalableTarget` API operation to create a
2746
+ # scalable target, there might be a brief delay until the operation
2747
+ # achieves [eventual consistency][3]. You might become aware of this
2748
+ # brief delay if you get unexpected errors when performing sequential
2749
+ # operations. The typical strategy is to retry the request, and some
2750
+ # Amazon Web Services SDKs include automatic backoff and retry logic.
2751
+ #
2752
+ # If you call the `RegisterScalableTarget` API operation to update an
2753
+ # existing scalable target, Application Auto Scaling retrieves the
2754
+ # current capacity of the resource. If it's below the minimum capacity
2755
+ # or above the maximum capacity, Application Auto Scaling adjusts the
2756
+ # capacity of the scalable target to place it within these bounds, even
2757
+ # if you don't include the `MinCapacity` or `MaxCapacity` request
2758
+ # parameters.
2612
2759
  #
2613
2760
  # </note>
2614
2761
  #
@@ -2616,6 +2763,7 @@ module Aws::ApplicationAutoScaling
2616
2763
  #
2617
2764
  # [1]: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html
2618
2765
  # [2]: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DeregisterScalableTarget.html
2766
+ # [3]: https://en.wikipedia.org/wiki/Eventual_consistency
2619
2767
  #
2620
2768
  # @option params [required, String] :service_namespace
2621
2769
  # The namespace of the Amazon Web Services service that provides the
@@ -2805,7 +2953,7 @@ module Aws::ApplicationAutoScaling
2805
2953
  # This property is required when registering a new scalable target.
2806
2954
  #
2807
2955
  # Although you can specify a large maximum capacity, note that service
2808
- # quotas may impose lower limits. Each service has its own default
2956
+ # quotas might impose lower limits. Each service has its own default
2809
2957
  # quotas for the maximum capacity of the resource. If you want to
2810
2958
  # specify a higher limit, you can request an increase. For more
2811
2959
  # information, consult the documentation for that service. For
@@ -2858,7 +3006,26 @@ module Aws::ApplicationAutoScaling
2858
3006
  #
2859
3007
  # [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-suspend-resume-scaling.html
2860
3008
  #
2861
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3009
+ # @option params [Hash<String,String>] :tags
3010
+ # Assigns one or more tags to the scalable target. Use this parameter to
3011
+ # tag the scalable target when it is created. To tag an existing
3012
+ # scalable target, use the TagResource operation.
3013
+ #
3014
+ # Each tag consists of a tag key and a tag value. Both the tag key and
3015
+ # the tag value are required. You cannot have more than one tag on a
3016
+ # scalable target with the same tag key.
3017
+ #
3018
+ # Use tags to control access to a scalable target. For more information,
3019
+ # see [Tagging support for Application Auto Scaling][1] in the
3020
+ # *Application Auto Scaling User Guide*.
3021
+ #
3022
+ #
3023
+ #
3024
+ # [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/resource-tagging-support.html
3025
+ #
3026
+ # @return [Types::RegisterScalableTargetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3027
+ #
3028
+ # * {Types::RegisterScalableTargetResponse#scalable_target_arn #scalable_target_arn} => String
2862
3029
  #
2863
3030
  #
2864
3031
  # @example Example: To register an ECS service as a scalable target
@@ -2888,8 +3055,15 @@ module Aws::ApplicationAutoScaling
2888
3055
  # dynamic_scaling_out_suspended: false,
2889
3056
  # scheduled_scaling_suspended: false,
2890
3057
  # },
3058
+ # tags: {
3059
+ # "TagKey" => "TagValue",
3060
+ # },
2891
3061
  # })
2892
3062
  #
3063
+ # @example Response structure
3064
+ #
3065
+ # resp.scalable_target_arn #=> String
3066
+ #
2893
3067
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget AWS API Documentation
2894
3068
  #
2895
3069
  # @overload register_scalable_target(params = {})
@@ -2899,6 +3073,146 @@ module Aws::ApplicationAutoScaling
2899
3073
  req.send_request(options)
2900
3074
  end
2901
3075
 
3076
+ # Adds or edits tags on an Application Auto Scaling scalable target.
3077
+ #
3078
+ # Each tag consists of a tag key and a tag value, which are both
3079
+ # case-sensitive strings. To add a tag, specify a new tag key and a tag
3080
+ # value. To edit a tag, specify an existing tag key and a new tag value.
3081
+ #
3082
+ # You can use this operation to tag an Application Auto Scaling scalable
3083
+ # target, but you cannot tag a scaling policy or scheduled action.
3084
+ #
3085
+ # You can also add tags to an Application Auto Scaling scalable target
3086
+ # while creating it (`RegisterScalableTarget`).
3087
+ #
3088
+ # For general information about tags, including the format and syntax,
3089
+ # see [Tagging Amazon Web Services resources][1] in the *Amazon Web
3090
+ # Services General Reference*.
3091
+ #
3092
+ # Use tags to control access to a scalable target. For more information,
3093
+ # see [Tagging support for Application Auto Scaling][2] in the
3094
+ # *Application Auto Scaling User Guide*.
3095
+ #
3096
+ #
3097
+ #
3098
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
3099
+ # [2]: https://docs.aws.amazon.com/autoscaling/application/userguide/resource-tagging-support.html
3100
+ #
3101
+ # @option params [required, String] :resource_arn
3102
+ # Identifies the Application Auto Scaling scalable target that you want
3103
+ # to apply tags to.
3104
+ #
3105
+ # For example:
3106
+ # `arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123`
3107
+ #
3108
+ # To get the ARN for a scalable target, use DescribeScalableTargets.
3109
+ #
3110
+ # @option params [required, Hash<String,String>] :tags
3111
+ # The tags assigned to the resource. A tag is a label that you assign to
3112
+ # an AWS resource.
3113
+ #
3114
+ # Each tag consists of a tag key and a tag value.
3115
+ #
3116
+ # You cannot have more than one tag on an Application Auto Scaling
3117
+ # scalable target with the same tag key. If you specify an existing tag
3118
+ # key with a different tag value, Application Auto Scaling replaces the
3119
+ # current tag value with the specified one.
3120
+ #
3121
+ # For information about the rules that apply to tag keys and tag values,
3122
+ # see [User-defined tag restrictions][1] in the *Amazon Web Services
3123
+ # Billing and Cost Management User Guide*.
3124
+ #
3125
+ #
3126
+ #
3127
+ # [1]: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html
3128
+ #
3129
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3130
+ #
3131
+ #
3132
+ # @example Example: To add a tag to a scalable target
3133
+ #
3134
+ # # This example adds a tag with the key name "environment" and the value "production" to the scalable target specified by
3135
+ # # its ARN.
3136
+ #
3137
+ # resp = client.tag_resource({
3138
+ # resource_arn: "arn:aws:application-autoscaling:us-west-2:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123",
3139
+ # tags: {
3140
+ # "environment" => "production",
3141
+ # },
3142
+ # })
3143
+ #
3144
+ # resp.to_h outputs the following:
3145
+ # {
3146
+ # }
3147
+ #
3148
+ # @example Request syntax with placeholder values
3149
+ #
3150
+ # resp = client.tag_resource({
3151
+ # resource_arn: "AmazonResourceName", # required
3152
+ # tags: { # required
3153
+ # "TagKey" => "TagValue",
3154
+ # },
3155
+ # })
3156
+ #
3157
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource AWS API Documentation
3158
+ #
3159
+ # @overload tag_resource(params = {})
3160
+ # @param [Hash] params ({})
3161
+ def tag_resource(params = {}, options = {})
3162
+ req = build_request(:tag_resource, params)
3163
+ req.send_request(options)
3164
+ end
3165
+
3166
+ # Deletes tags from an Application Auto Scaling scalable target. To
3167
+ # delete a tag, specify the tag key and the Application Auto Scaling
3168
+ # scalable target.
3169
+ #
3170
+ # @option params [required, String] :resource_arn
3171
+ # Identifies the Application Auto Scaling scalable target from which to
3172
+ # remove tags.
3173
+ #
3174
+ # For example:
3175
+ # `arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123`
3176
+ #
3177
+ # To get the ARN for a scalable target, use DescribeScalableTargets.
3178
+ #
3179
+ # @option params [required, Array<String>] :tag_keys
3180
+ # One or more tag keys. Specify only the tag keys, not the tag values.
3181
+ #
3182
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3183
+ #
3184
+ #
3185
+ # @example Example: To remove a tag from a scalable target
3186
+ #
3187
+ # # This example removes the tag pair with the key name "environment" from the scalable target specified by its ARN.
3188
+ #
3189
+ # resp = client.untag_resource({
3190
+ # resource_arn: "arn:aws:application-autoscaling:us-west-2:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123",
3191
+ # tag_keys: [
3192
+ # "environment",
3193
+ # ],
3194
+ # })
3195
+ #
3196
+ # resp.to_h outputs the following:
3197
+ # {
3198
+ # }
3199
+ #
3200
+ # @example Request syntax with placeholder values
3201
+ #
3202
+ # resp = client.untag_resource({
3203
+ # resource_arn: "AmazonResourceName", # required
3204
+ # tag_keys: ["TagKey"], # required
3205
+ # })
3206
+ #
3207
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource AWS API Documentation
3208
+ #
3209
+ # @overload untag_resource(params = {})
3210
+ # @param [Hash] params ({})
3211
+ def untag_resource(params = {}, options = {})
3212
+ req = build_request(:untag_resource, params)
3213
+ req.send_request(options)
3214
+ end
3215
+
2902
3216
  # @!endgroup
2903
3217
 
2904
3218
  # @param params ({})
@@ -2912,7 +3226,7 @@ module Aws::ApplicationAutoScaling
2912
3226
  params: params,
2913
3227
  config: config)
2914
3228
  context[:gem_name] = 'aws-sdk-applicationautoscaling'
2915
- context[:gem_version] = '1.67.0'
3229
+ context[:gem_version] = '1.68.0'
2916
3230
  Seahorse::Client::Request.new(handlers, context)
2917
3231
  end
2918
3232
 
@@ -16,6 +16,7 @@ module Aws::ApplicationAutoScaling
16
16
  AdjustmentType = Shapes::StringShape.new(name: 'AdjustmentType')
17
17
  Alarm = Shapes::StructureShape.new(name: 'Alarm')
18
18
  Alarms = Shapes::ListShape.new(name: 'Alarms')
19
+ AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
19
20
  ConcurrentUpdateException = Shapes::StructureShape.new(name: 'ConcurrentUpdateException')
20
21
  Cooldown = Shapes::IntegerShape.new(name: 'Cooldown')
21
22
  CustomizedMetricSpecification = Shapes::StructureShape.new(name: 'CustomizedMetricSpecification')
@@ -35,6 +36,7 @@ module Aws::ApplicationAutoScaling
35
36
  DescribeScheduledActionsResponse = Shapes::StructureShape.new(name: 'DescribeScheduledActionsResponse')
36
37
  DisableScaleIn = Shapes::BooleanShape.new(name: 'DisableScaleIn')
37
38
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
39
+ ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
38
40
  Expression = Shapes::StringShape.new(name: 'Expression')
39
41
  FailedResourceAccessException = Shapes::StructureShape.new(name: 'FailedResourceAccessException')
40
42
  Id = Shapes::StringShape.new(name: 'Id')
@@ -42,6 +44,8 @@ module Aws::ApplicationAutoScaling
42
44
  InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
43
45
  InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
44
46
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
47
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
48
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
45
49
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
46
50
  MetricAggregationType = Shapes::StringShape.new(name: 'MetricAggregationType')
47
51
  MetricDimension = Shapes::StructureShape.new(name: 'MetricDimension')
@@ -72,6 +76,7 @@ module Aws::ApplicationAutoScaling
72
76
  ResourceIdMaxLen1600 = Shapes::StringShape.new(name: 'ResourceIdMaxLen1600')
73
77
  ResourceIdsMaxLen1600 = Shapes::ListShape.new(name: 'ResourceIdsMaxLen1600')
74
78
  ResourceLabel = Shapes::StringShape.new(name: 'ResourceLabel')
79
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
75
80
  ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
76
81
  ScalableDimension = Shapes::StringShape.new(name: 'ScalableDimension')
77
82
  ScalableTarget = Shapes::StructureShape.new(name: 'ScalableTarget')
@@ -92,6 +97,12 @@ module Aws::ApplicationAutoScaling
92
97
  StepAdjustments = Shapes::ListShape.new(name: 'StepAdjustments')
93
98
  StepScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'StepScalingPolicyConfiguration')
94
99
  SuspendedState = Shapes::StructureShape.new(name: 'SuspendedState')
100
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
101
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
102
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
103
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
104
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
105
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
95
106
  TargetTrackingMetric = Shapes::StructureShape.new(name: 'TargetTrackingMetric')
96
107
  TargetTrackingMetricDataQueries = Shapes::ListShape.new(name: 'TargetTrackingMetricDataQueries')
97
108
  TargetTrackingMetricDataQuery = Shapes::StructureShape.new(name: 'TargetTrackingMetricDataQuery')
@@ -105,6 +116,9 @@ module Aws::ApplicationAutoScaling
105
116
  TargetTrackingMetricUnit = Shapes::StringShape.new(name: 'TargetTrackingMetricUnit')
106
117
  TargetTrackingScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'TargetTrackingScalingPolicyConfiguration')
107
118
  TimestampType = Shapes::TimestampShape.new(name: 'TimestampType')
119
+ TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
120
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
121
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
108
122
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
109
123
  XmlString = Shapes::StringShape.new(name: 'XmlString')
110
124
 
@@ -207,6 +221,12 @@ module Aws::ApplicationAutoScaling
207
221
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
208
222
  LimitExceededException.struct_class = Types::LimitExceededException
209
223
 
224
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
225
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
226
+
227
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
228
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
229
+
210
230
  MetricDimension.add_member(:name, Shapes::ShapeRef.new(shape: MetricDimensionName, required: true, location_name: "Name"))
211
231
  MetricDimension.add_member(:value, Shapes::ShapeRef.new(shape: MetricDimensionValue, required: true, location_name: "Value"))
212
232
  MetricDimension.struct_class = Types::MetricDimension
@@ -261,12 +281,18 @@ module Aws::ApplicationAutoScaling
261
281
  RegisterScalableTargetRequest.add_member(:max_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MaxCapacity"))
262
282
  RegisterScalableTargetRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, location_name: "RoleARN"))
263
283
  RegisterScalableTargetRequest.add_member(:suspended_state, Shapes::ShapeRef.new(shape: SuspendedState, location_name: "SuspendedState"))
284
+ RegisterScalableTargetRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
264
285
  RegisterScalableTargetRequest.struct_class = Types::RegisterScalableTargetRequest
265
286
 
287
+ RegisterScalableTargetResponse.add_member(:scalable_target_arn, Shapes::ShapeRef.new(shape: XmlString, location_name: "ScalableTargetARN"))
266
288
  RegisterScalableTargetResponse.struct_class = Types::RegisterScalableTargetResponse
267
289
 
268
290
  ResourceIdsMaxLen1600.member = Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600)
269
291
 
292
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
293
+ ResourceNotFoundException.add_member(:resource_name, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceName"))
294
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
295
+
270
296
  ScalableTarget.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
271
297
  ScalableTarget.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
272
298
  ScalableTarget.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
@@ -275,6 +301,7 @@ module Aws::ApplicationAutoScaling
275
301
  ScalableTarget.add_member(:role_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "RoleARN"))
276
302
  ScalableTarget.add_member(:creation_time, Shapes::ShapeRef.new(shape: TimestampType, required: true, location_name: "CreationTime"))
277
303
  ScalableTarget.add_member(:suspended_state, Shapes::ShapeRef.new(shape: SuspendedState, location_name: "SuspendedState"))
304
+ ScalableTarget.add_member(:scalable_target_arn, Shapes::ShapeRef.new(shape: XmlString, location_name: "ScalableTargetARN"))
278
305
  ScalableTarget.struct_class = Types::ScalableTarget
279
306
 
280
307
  ScalableTargetAction.add_member(:min_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MinCapacity"))
@@ -347,6 +374,17 @@ module Aws::ApplicationAutoScaling
347
374
  SuspendedState.add_member(:scheduled_scaling_suspended, Shapes::ShapeRef.new(shape: ScalingSuspended, location_name: "ScheduledScalingSuspended"))
348
375
  SuspendedState.struct_class = Types::SuspendedState
349
376
 
377
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
378
+
379
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
380
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
381
+
382
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
383
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
384
+ TagResourceRequest.struct_class = Types::TagResourceRequest
385
+
386
+ TagResourceResponse.struct_class = Types::TagResourceResponse
387
+
350
388
  TargetTrackingMetric.add_member(:dimensions, Shapes::ShapeRef.new(shape: TargetTrackingMetricDimensions, location_name: "Dimensions"))
351
389
  TargetTrackingMetric.add_member(:metric_name, Shapes::ShapeRef.new(shape: TargetTrackingMetricName, location_name: "MetricName"))
352
390
  TargetTrackingMetric.add_member(:namespace, Shapes::ShapeRef.new(shape: TargetTrackingMetricNamespace, location_name: "Namespace"))
@@ -380,6 +418,16 @@ module Aws::ApplicationAutoScaling
380
418
  TargetTrackingScalingPolicyConfiguration.add_member(:disable_scale_in, Shapes::ShapeRef.new(shape: DisableScaleIn, location_name: "DisableScaleIn"))
381
419
  TargetTrackingScalingPolicyConfiguration.struct_class = Types::TargetTrackingScalingPolicyConfiguration
382
420
 
421
+ TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
422
+ TooManyTagsException.add_member(:resource_name, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceName"))
423
+ TooManyTagsException.struct_class = Types::TooManyTagsException
424
+
425
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
426
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
427
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
428
+
429
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
430
+
383
431
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
384
432
  ValidationException.struct_class = Types::ValidationException
385
433
 
@@ -511,6 +559,15 @@ module Aws::ApplicationAutoScaling
511
559
  )
512
560
  end)
513
561
 
562
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
563
+ o.name = "ListTagsForResource"
564
+ o.http_method = "POST"
565
+ o.http_request_uri = "/"
566
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
567
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
568
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
569
+ end)
570
+
514
571
  api.add_operation(:put_scaling_policy, Seahorse::Model::Operation.new.tap do |o|
515
572
  o.name = "PutScalingPolicy"
516
573
  o.http_method = "POST"
@@ -549,6 +606,27 @@ module Aws::ApplicationAutoScaling
549
606
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
550
607
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
551
608
  end)
609
+
610
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
611
+ o.name = "TagResource"
612
+ o.http_method = "POST"
613
+ o.http_request_uri = "/"
614
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
615
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
616
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
617
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
618
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
619
+ end)
620
+
621
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
622
+ o.name = "UntagResource"
623
+ o.http_method = "POST"
624
+ o.http_request_uri = "/"
625
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
626
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
627
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
628
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
629
+ end)
552
630
  end
553
631
 
554
632
  end
@@ -109,6 +109,20 @@ module Aws::ApplicationAutoScaling
109
109
  end
110
110
  end
111
111
 
112
+ class ListTagsForResource
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
112
126
  class PutScalingPolicy
113
127
  def self.build(context)
114
128
  unless context.config.regional_endpoint
@@ -151,5 +165,33 @@ module Aws::ApplicationAutoScaling
151
165
  end
152
166
  end
153
167
 
168
+ class TagResource
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class UntagResource
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::ApplicationAutoScaling::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
154
196
  end
155
197
  end
@@ -33,6 +33,8 @@ module Aws::ApplicationAutoScaling
33
33
  # * {InvalidNextTokenException}
34
34
  # * {LimitExceededException}
35
35
  # * {ObjectNotFoundException}
36
+ # * {ResourceNotFoundException}
37
+ # * {TooManyTagsException}
36
38
  # * {ValidationException}
37
39
  #
38
40
  # Additionally, error classes are dynamically generated for service errors based on the error code
@@ -131,6 +133,46 @@ module Aws::ApplicationAutoScaling
131
133
  end
132
134
  end
133
135
 
136
+ class ResourceNotFoundException < ServiceError
137
+
138
+ # @param [Seahorse::Client::RequestContext] context
139
+ # @param [String] message
140
+ # @param [Aws::ApplicationAutoScaling::Types::ResourceNotFoundException] data
141
+ def initialize(context, message, data = Aws::EmptyStructure.new)
142
+ super(context, message, data)
143
+ end
144
+
145
+ # @return [String]
146
+ def message
147
+ @message || @data[:message]
148
+ end
149
+
150
+ # @return [String]
151
+ def resource_name
152
+ @data[:resource_name]
153
+ end
154
+ end
155
+
156
+ class TooManyTagsException < ServiceError
157
+
158
+ # @param [Seahorse::Client::RequestContext] context
159
+ # @param [String] message
160
+ # @param [Aws::ApplicationAutoScaling::Types::TooManyTagsException] data
161
+ def initialize(context, message, data = Aws::EmptyStructure.new)
162
+ super(context, message, data)
163
+ end
164
+
165
+ # @return [String]
166
+ def message
167
+ @message || @data[:message]
168
+ end
169
+
170
+ # @return [String]
171
+ def resource_name
172
+ @data[:resource_name]
173
+ end
174
+ end
175
+
134
176
  class ValidationException < ServiceError
135
177
 
136
178
  # @param [Seahorse::Client::RequestContext] context
@@ -70,12 +70,18 @@ module Aws::ApplicationAutoScaling
70
70
  Aws::ApplicationAutoScaling::Endpoints::DescribeScalingPolicies.build(context)
71
71
  when :describe_scheduled_actions
72
72
  Aws::ApplicationAutoScaling::Endpoints::DescribeScheduledActions.build(context)
73
+ when :list_tags_for_resource
74
+ Aws::ApplicationAutoScaling::Endpoints::ListTagsForResource.build(context)
73
75
  when :put_scaling_policy
74
76
  Aws::ApplicationAutoScaling::Endpoints::PutScalingPolicy.build(context)
75
77
  when :put_scheduled_action
76
78
  Aws::ApplicationAutoScaling::Endpoints::PutScheduledAction.build(context)
77
79
  when :register_scalable_target
78
80
  Aws::ApplicationAutoScaling::Endpoints::RegisterScalableTarget.build(context)
81
+ when :tag_resource
82
+ Aws::ApplicationAutoScaling::Endpoints::TagResource.build(context)
83
+ when :untag_resource
84
+ Aws::ApplicationAutoScaling::Endpoints::UntagResource.build(context)
79
85
  end
80
86
  end
81
87
  end
@@ -76,7 +76,7 @@ module Aws::ApplicationAutoScaling
76
76
  #
77
77
  # @!attribute [rw] metric_name
78
78
  # The name of the metric. To get the exact metric name, namespace, and
79
- # dimensions, inspect the [Metric][1] object that is returned by a
79
+ # dimensions, inspect the [Metric][1] object that's returned by a
80
80
  # call to [ListMetrics][2].
81
81
  #
82
82
  #
@@ -1492,6 +1492,35 @@ module Aws::ApplicationAutoScaling
1492
1492
  include Aws::Structure
1493
1493
  end
1494
1494
 
1495
+ # @!attribute [rw] resource_arn
1496
+ # Specify the ARN of the scalable target.
1497
+ #
1498
+ # For example:
1499
+ # `arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123`
1500
+ #
1501
+ # To get the ARN for a scalable target, use DescribeScalableTargets.
1502
+ # @return [String]
1503
+ #
1504
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResourceRequest AWS API Documentation
1505
+ #
1506
+ class ListTagsForResourceRequest < Struct.new(
1507
+ :resource_arn)
1508
+ SENSITIVE = []
1509
+ include Aws::Structure
1510
+ end
1511
+
1512
+ # @!attribute [rw] tags
1513
+ # A list of tags. Each tag consists of a tag key and a tag value.
1514
+ # @return [Hash<String,String>]
1515
+ #
1516
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResourceResponse AWS API Documentation
1517
+ #
1518
+ class ListTagsForResourceResponse < Struct.new(
1519
+ :tags)
1520
+ SENSITIVE = []
1521
+ include Aws::Structure
1522
+ end
1523
+
1495
1524
  # Describes the dimension names and values associated with a metric.
1496
1525
  #
1497
1526
  # @!attribute [rw] name
@@ -2292,7 +2321,7 @@ module Aws::ApplicationAutoScaling
2292
2321
  # target.
2293
2322
  #
2294
2323
  # Although you can specify a large maximum capacity, note that service
2295
- # quotas may impose lower limits. Each service has its own default
2324
+ # quotas might impose lower limits. Each service has its own default
2296
2325
  # quotas for the maximum capacity of the resource. If you want to
2297
2326
  # specify a higher limit, you can request an increase. For more
2298
2327
  # information, consult the documentation for that service. For
@@ -2350,6 +2379,24 @@ module Aws::ApplicationAutoScaling
2350
2379
  # [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-suspend-resume-scaling.html
2351
2380
  # @return [Types::SuspendedState]
2352
2381
  #
2382
+ # @!attribute [rw] tags
2383
+ # Assigns one or more tags to the scalable target. Use this parameter
2384
+ # to tag the scalable target when it is created. To tag an existing
2385
+ # scalable target, use the TagResource operation.
2386
+ #
2387
+ # Each tag consists of a tag key and a tag value. Both the tag key and
2388
+ # the tag value are required. You cannot have more than one tag on a
2389
+ # scalable target with the same tag key.
2390
+ #
2391
+ # Use tags to control access to a scalable target. For more
2392
+ # information, see [Tagging support for Application Auto Scaling][1]
2393
+ # in the *Application Auto Scaling User Guide*.
2394
+ #
2395
+ #
2396
+ #
2397
+ # [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/resource-tagging-support.html
2398
+ # @return [Hash<String,String>]
2399
+ #
2353
2400
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTargetRequest AWS API Documentation
2354
2401
  #
2355
2402
  class RegisterScalableTargetRequest < Struct.new(
@@ -2359,14 +2406,42 @@ module Aws::ApplicationAutoScaling
2359
2406
  :min_capacity,
2360
2407
  :max_capacity,
2361
2408
  :role_arn,
2362
- :suspended_state)
2409
+ :suspended_state,
2410
+ :tags)
2363
2411
  SENSITIVE = []
2364
2412
  include Aws::Structure
2365
2413
  end
2366
2414
 
2415
+ # @!attribute [rw] scalable_target_arn
2416
+ # The ARN of the scalable target.
2417
+ # @return [String]
2418
+ #
2367
2419
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTargetResponse AWS API Documentation
2368
2420
  #
2369
- class RegisterScalableTargetResponse < Aws::EmptyStructure; end
2421
+ class RegisterScalableTargetResponse < Struct.new(
2422
+ :scalable_target_arn)
2423
+ SENSITIVE = []
2424
+ include Aws::Structure
2425
+ end
2426
+
2427
+ # The specified resource doesn't exist.
2428
+ #
2429
+ # @!attribute [rw] message
2430
+ # @return [String]
2431
+ #
2432
+ # @!attribute [rw] resource_name
2433
+ # The name of the Application Auto Scaling resource. This value is an
2434
+ # Amazon Resource Name (ARN).
2435
+ # @return [String]
2436
+ #
2437
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ResourceNotFoundException AWS API Documentation
2438
+ #
2439
+ class ResourceNotFoundException < Struct.new(
2440
+ :message,
2441
+ :resource_name)
2442
+ SENSITIVE = []
2443
+ include Aws::Structure
2444
+ end
2370
2445
 
2371
2446
  # Represents a scalable target.
2372
2447
  #
@@ -2540,6 +2615,10 @@ module Aws::ApplicationAutoScaling
2540
2615
  # in a suspended state.
2541
2616
  # @return [Types::SuspendedState]
2542
2617
  #
2618
+ # @!attribute [rw] scalable_target_arn
2619
+ # The ARN of the scalable target.
2620
+ # @return [String]
2621
+ #
2543
2622
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ScalableTarget AWS API Documentation
2544
2623
  #
2545
2624
  class ScalableTarget < Struct.new(
@@ -2550,7 +2629,8 @@ module Aws::ApplicationAutoScaling
2550
2629
  :max_capacity,
2551
2630
  :role_arn,
2552
2631
  :creation_time,
2553
- :suspended_state)
2632
+ :suspended_state,
2633
+ :scalable_target_arn)
2554
2634
  SENSITIVE = []
2555
2635
  include Aws::Structure
2556
2636
  end
@@ -3256,13 +3336,13 @@ module Aws::ApplicationAutoScaling
3256
3336
  # For the following examples, suppose that you have an alarm with a
3257
3337
  # breach threshold of 50:
3258
3338
  #
3259
- # * To trigger the adjustment when the metric is greater than or equal
3260
- # to 50 and less than 60, specify a lower bound of 0 and an upper
3261
- # bound of 10.
3339
+ # * To initiate the adjustment when the metric is greater than or equal
3340
+ # to 50 and less than 60, specify a lower bound of `0` and an upper
3341
+ # bound of `10`.
3262
3342
  #
3263
- # * To trigger the adjustment when the metric is greater than 40 and
3264
- # less than or equal to 50, specify a lower bound of -10 and an upper
3265
- # bound of 0.
3343
+ # * To initiate the adjustment when the metric is greater than 40 and
3344
+ # less than or equal to 50, specify a lower bound of `-10` and an
3345
+ # upper bound of `0`.
3266
3346
  #
3267
3347
  # There are a few rules for the step adjustments for your step policy:
3268
3348
  #
@@ -3287,16 +3367,16 @@ module Aws::ApplicationAutoScaling
3287
3367
  # The lower bound for the difference between the alarm threshold and
3288
3368
  # the CloudWatch metric. If the metric value is above the breach
3289
3369
  # threshold, the lower bound is inclusive (the metric must be greater
3290
- # than or equal to the threshold plus the lower bound). Otherwise, it
3291
- # is exclusive (the metric must be greater than the threshold plus the
3292
- # lower bound). A null value indicates negative infinity.
3370
+ # than or equal to the threshold plus the lower bound). Otherwise,
3371
+ # it's exclusive (the metric must be greater than the threshold plus
3372
+ # the lower bound). A null value indicates negative infinity.
3293
3373
  # @return [Float]
3294
3374
  #
3295
3375
  # @!attribute [rw] metric_interval_upper_bound
3296
3376
  # The upper bound for the difference between the alarm threshold and
3297
3377
  # the CloudWatch metric. If the metric value is above the breach
3298
3378
  # threshold, the upper bound is exclusive (the metric must be less
3299
- # than the threshold plus the upper bound). Otherwise, it is inclusive
3379
+ # than the threshold plus the upper bound). Otherwise, it's inclusive
3300
3380
  # (the metric must be less than or equal to the threshold plus the
3301
3381
  # upper bound). A null value indicates positive infinity.
3302
3382
  #
@@ -3467,6 +3547,49 @@ module Aws::ApplicationAutoScaling
3467
3547
  include Aws::Structure
3468
3548
  end
3469
3549
 
3550
+ # @!attribute [rw] resource_arn
3551
+ # Identifies the Application Auto Scaling scalable target that you
3552
+ # want to apply tags to.
3553
+ #
3554
+ # For example:
3555
+ # `arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123`
3556
+ #
3557
+ # To get the ARN for a scalable target, use DescribeScalableTargets.
3558
+ # @return [String]
3559
+ #
3560
+ # @!attribute [rw] tags
3561
+ # The tags assigned to the resource. A tag is a label that you assign
3562
+ # to an AWS resource.
3563
+ #
3564
+ # Each tag consists of a tag key and a tag value.
3565
+ #
3566
+ # You cannot have more than one tag on an Application Auto Scaling
3567
+ # scalable target with the same tag key. If you specify an existing
3568
+ # tag key with a different tag value, Application Auto Scaling
3569
+ # replaces the current tag value with the specified one.
3570
+ #
3571
+ # For information about the rules that apply to tag keys and tag
3572
+ # values, see [User-defined tag restrictions][1] in the *Amazon Web
3573
+ # Services Billing and Cost Management User Guide*.
3574
+ #
3575
+ #
3576
+ #
3577
+ # [1]: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html
3578
+ # @return [Hash<String,String>]
3579
+ #
3580
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResourceRequest AWS API Documentation
3581
+ #
3582
+ class TagResourceRequest < Struct.new(
3583
+ :resource_arn,
3584
+ :tags)
3585
+ SENSITIVE = []
3586
+ include Aws::Structure
3587
+ end
3588
+
3589
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResourceResponse AWS API Documentation
3590
+ #
3591
+ class TagResourceResponse < Aws::EmptyStructure; end
3592
+
3470
3593
  # Represents a specific metric.
3471
3594
  #
3472
3595
  # Metric is a property of the TargetTrackingMetricStat object.
@@ -3628,7 +3751,7 @@ module Aws::ApplicationAutoScaling
3628
3751
  # extended statistic. For a list of valid values, see the table in
3629
3752
  # [Statistics][1] in the *Amazon CloudWatch User Guide*.
3630
3753
  #
3631
- # The most commonly used metrics for scaling is `Average`
3754
+ # The most commonly used metric for scaling is `Average`.
3632
3755
  #
3633
3756
  #
3634
3757
  #
@@ -3800,6 +3923,53 @@ module Aws::ApplicationAutoScaling
3800
3923
  include Aws::Structure
3801
3924
  end
3802
3925
 
3926
+ # The request contains too many tags. Try the request again with fewer
3927
+ # tags.
3928
+ #
3929
+ # @!attribute [rw] message
3930
+ # @return [String]
3931
+ #
3932
+ # @!attribute [rw] resource_name
3933
+ # The name of the Application Auto Scaling resource. This value is an
3934
+ # Amazon Resource Name (ARN).
3935
+ # @return [String]
3936
+ #
3937
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TooManyTagsException AWS API Documentation
3938
+ #
3939
+ class TooManyTagsException < Struct.new(
3940
+ :message,
3941
+ :resource_name)
3942
+ SENSITIVE = []
3943
+ include Aws::Structure
3944
+ end
3945
+
3946
+ # @!attribute [rw] resource_arn
3947
+ # Identifies the Application Auto Scaling scalable target from which
3948
+ # to remove tags.
3949
+ #
3950
+ # For example:
3951
+ # `arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123`
3952
+ #
3953
+ # To get the ARN for a scalable target, use DescribeScalableTargets.
3954
+ # @return [String]
3955
+ #
3956
+ # @!attribute [rw] tag_keys
3957
+ # One or more tag keys. Specify only the tag keys, not the tag values.
3958
+ # @return [Array<String>]
3959
+ #
3960
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResourceRequest AWS API Documentation
3961
+ #
3962
+ class UntagResourceRequest < Struct.new(
3963
+ :resource_arn,
3964
+ :tag_keys)
3965
+ SENSITIVE = []
3966
+ include Aws::Structure
3967
+ end
3968
+
3969
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResourceResponse AWS API Documentation
3970
+ #
3971
+ class UntagResourceResponse < Aws::EmptyStructure; end
3972
+
3803
3973
  # An exception was thrown for a validation issue. Review the available
3804
3974
  # parameters for the API request.
3805
3975
  #
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-applicationautoscaling/customizations'
52
52
  # @!group service
53
53
  module Aws::ApplicationAutoScaling
54
54
 
55
- GEM_VERSION = '1.67.0'
55
+ GEM_VERSION = '1.68.0'
56
56
 
57
57
  end
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.67.0
4
+ version: 1.68.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: 2023-03-14 00:00:00.000000000 Z
11
+ date: 2023-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core