@aws-sdk/client-application-auto-scaling 3.294.0 → 3.296.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.
Files changed (59) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/ApplicationAutoScaling.js +45 -0
  3. package/dist-cjs/commands/DeleteScalingPolicyCommand.js +4 -4
  4. package/dist-cjs/commands/DeleteScheduledActionCommand.js +4 -4
  5. package/dist-cjs/commands/DeregisterScalableTargetCommand.js +4 -4
  6. package/dist-cjs/commands/DescribeScalableTargetsCommand.js +4 -4
  7. package/dist-cjs/commands/DescribeScalingActivitiesCommand.js +4 -4
  8. package/dist-cjs/commands/DescribeScalingPoliciesCommand.js +4 -4
  9. package/dist-cjs/commands/DescribeScheduledActionsCommand.js +4 -4
  10. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  11. package/dist-cjs/commands/PutScalingPolicyCommand.js +4 -4
  12. package/dist-cjs/commands/PutScheduledActionCommand.js +4 -4
  13. package/dist-cjs/commands/RegisterScalableTargetCommand.js +4 -4
  14. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  15. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  16. package/dist-cjs/commands/index.js +3 -0
  17. package/dist-cjs/models/models_0.js +56 -2
  18. package/dist-cjs/protocols/Aws_json1_1.js +230 -2
  19. package/dist-es/ApplicationAutoScaling.js +45 -0
  20. package/dist-es/commands/DeleteScalingPolicyCommand.js +4 -4
  21. package/dist-es/commands/DeleteScheduledActionCommand.js +4 -4
  22. package/dist-es/commands/DeregisterScalableTargetCommand.js +4 -4
  23. package/dist-es/commands/DescribeScalableTargetsCommand.js +4 -4
  24. package/dist-es/commands/DescribeScalingActivitiesCommand.js +4 -4
  25. package/dist-es/commands/DescribeScalingPoliciesCommand.js +4 -4
  26. package/dist-es/commands/DescribeScheduledActionsCommand.js +4 -4
  27. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  28. package/dist-es/commands/PutScalingPolicyCommand.js +4 -4
  29. package/dist-es/commands/PutScheduledActionCommand.js +4 -4
  30. package/dist-es/commands/RegisterScalableTargetCommand.js +4 -4
  31. package/dist-es/commands/TagResourceCommand.js +42 -0
  32. package/dist-es/commands/UntagResourceCommand.js +42 -0
  33. package/dist-es/commands/index.js +3 -0
  34. package/dist-es/models/models_0.js +46 -0
  35. package/dist-es/protocols/Aws_json1_1.js +224 -2
  36. package/dist-types/ApplicationAutoScaling.d.ts +54 -12
  37. package/dist-types/ApplicationAutoScalingClient.d.ts +7 -4
  38. package/dist-types/commands/DeleteScheduledActionCommand.d.ts +14 -0
  39. package/dist-types/commands/DescribeScheduledActionsCommand.d.ts +43 -0
  40. package/dist-types/commands/ListTagsForResourceCommand.d.ts +67 -0
  41. package/dist-types/commands/PutScalingPolicyCommand.d.ts +2 -2
  42. package/dist-types/commands/PutScheduledActionCommand.d.ts +19 -1
  43. package/dist-types/commands/RegisterScalableTargetCommand.d.ts +16 -9
  44. package/dist-types/commands/TagResourceCommand.d.ts +79 -0
  45. package/dist-types/commands/UntagResourceCommand.d.ts +66 -0
  46. package/dist-types/commands/index.d.ts +3 -0
  47. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  48. package/dist-types/models/models_0.d.ts +141 -10
  49. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  50. package/dist-types/ts3.4/ApplicationAutoScaling.d.ts +51 -0
  51. package/dist-types/ts3.4/ApplicationAutoScalingClient.d.ts +24 -6
  52. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
  53. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
  54. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
  55. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  56. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +3 -4
  57. package/dist-types/ts3.4/models/models_0.d.ts +57 -1
  58. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  59. package/package.json +36 -36
@@ -999,6 +999,10 @@ export interface ScalableTarget {
999
999
  * state.</p>
1000
1000
  */
1001
1001
  SuspendedState?: SuspendedState;
1002
+ /**
1003
+ * <p>The ARN of the scalable target.</p>
1004
+ */
1005
+ ScalableTargetARN?: string;
1002
1006
  }
1003
1007
  export interface DescribeScalableTargetsResponse {
1004
1008
  /**
@@ -1667,12 +1671,14 @@ export declare enum MetricAggregationType {
1667
1671
  * 50:</p>
1668
1672
  * <ul>
1669
1673
  * <li>
1670
- * <p>To trigger the adjustment when the metric is greater than or equal to 50 and less
1671
- * than 60, specify a lower bound of 0 and an upper bound of 10.</p>
1674
+ * <p>To initiate the adjustment when the metric is greater than or equal to 50 and less
1675
+ * than 60, specify a lower bound of <code>0</code> and an upper bound of
1676
+ * <code>10</code>.</p>
1672
1677
  * </li>
1673
1678
  * <li>
1674
- * <p>To trigger the adjustment when the metric is greater than 40 and less than or
1675
- * equal to 50, specify a lower bound of -10 and an upper bound of 0.</p>
1679
+ * <p>To initiate the adjustment when the metric is greater than 40 and less than or
1680
+ * equal to 50, specify a lower bound of <code>-10</code> and an upper bound of
1681
+ * <code>0</code>.</p>
1676
1682
  * </li>
1677
1683
  * </ul>
1678
1684
  * <p>There are a few rules for the step adjustments for your step policy:</p>
@@ -1699,7 +1705,7 @@ export interface StepAdjustment {
1699
1705
  /**
1700
1706
  * <p>The lower bound for the difference between the alarm threshold and the CloudWatch metric. If
1701
1707
  * the metric value is above the breach threshold, the lower bound is inclusive (the metric
1702
- * must be greater than or equal to the threshold plus the lower bound). Otherwise, it is
1708
+ * must be greater than or equal to the threshold plus the lower bound). Otherwise, it's
1703
1709
  * exclusive (the metric must be greater than the threshold plus the lower bound). A null
1704
1710
  * value indicates negative infinity.</p>
1705
1711
  */
@@ -1707,7 +1713,7 @@ export interface StepAdjustment {
1707
1713
  /**
1708
1714
  * <p>The upper bound for the difference between the alarm threshold and the CloudWatch metric. If
1709
1715
  * the metric value is above the breach threshold, the upper bound is exclusive (the metric
1710
- * must be less than the threshold plus the upper bound). Otherwise, it is inclusive (the
1716
+ * must be less than the threshold plus the upper bound). Otherwise, it's inclusive (the
1711
1717
  * metric must be less than or equal to the threshold plus the upper bound). A null value
1712
1718
  * indicates positive infinity.</p>
1713
1719
  * <p>The upper bound must be greater than the lower bound.</p>
@@ -1889,8 +1895,7 @@ export interface TargetTrackingMetricStat {
1889
1895
  /**
1890
1896
  * <p>The statistic to return. It can include any CloudWatch statistic or extended statistic. For a
1891
1897
  * list of valid values, see the table in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic">Statistics</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
1892
- * <p>The most commonly used metrics for scaling is <code>Average</code>
1893
- * </p>
1898
+ * <p>The most commonly used metric for scaling is <code>Average</code>.</p>
1894
1899
  */
1895
1900
  Stat: string | undefined;
1896
1901
  /**
@@ -1984,7 +1989,7 @@ export declare enum MetricStatistic {
1984
1989
  export interface CustomizedMetricSpecification {
1985
1990
  /**
1986
1991
  * <p>The name of the metric. To get the exact metric name, namespace, and dimensions, inspect
1987
- * the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html">Metric</a> object that is returned by a call to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>.</p>
1992
+ * the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html">Metric</a> object that's returned by a call to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>.</p>
1988
1993
  */
1989
1994
  MetricName?: string;
1990
1995
  /**
@@ -2890,6 +2895,38 @@ export interface DescribeScheduledActionsResponse {
2890
2895
  */
2891
2896
  NextToken?: string;
2892
2897
  }
2898
+ export interface ListTagsForResourceRequest {
2899
+ /**
2900
+ * <p>Specify the ARN of the scalable target.</p>
2901
+ * <p>For example:
2902
+ * <code>arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123</code>
2903
+ * </p>
2904
+ * <p>To get the ARN for a scalable target, use <a>DescribeScalableTargets</a>.</p>
2905
+ */
2906
+ ResourceARN: string | undefined;
2907
+ }
2908
+ export interface ListTagsForResourceResponse {
2909
+ /**
2910
+ * <p>A list of tags. Each tag consists of a tag key and a tag value.</p>
2911
+ */
2912
+ Tags?: Record<string, string>;
2913
+ }
2914
+ /**
2915
+ * <p>The specified resource doesn't exist.</p>
2916
+ */
2917
+ export declare class ResourceNotFoundException extends __BaseException {
2918
+ readonly name: "ResourceNotFoundException";
2919
+ readonly $fault: "client";
2920
+ Message?: string;
2921
+ /**
2922
+ * <p>The name of the Application Auto Scaling resource. This value is an Amazon Resource Name (ARN).</p>
2923
+ */
2924
+ ResourceName?: string;
2925
+ /**
2926
+ * @internal
2927
+ */
2928
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
2929
+ }
2893
2930
  /**
2894
2931
  * <p>A per-account resource limit is exceeded. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-limits.html">Application Auto Scaling service quotas</a>.</p>
2895
2932
  */
@@ -3528,7 +3565,7 @@ export interface RegisterScalableTargetRequest {
3528
3565
  * <p>The maximum value that you plan to scale out to. When a scaling policy is in effect,
3529
3566
  * Application Auto Scaling can scale out (expand) as needed to the maximum capacity limit in response to
3530
3567
  * changing demand. This property is required when registering a new scalable target.</p>
3531
- * <p>Although you can specify a large maximum capacity, note that service quotas may impose
3568
+ * <p>Although you can specify a large maximum capacity, note that service quotas might impose
3532
3569
  * lower limits. Each service has its own default quotas for the maximum capacity of the
3533
3570
  * resource. If you want to specify a higher limit, you can request an increase. For more
3534
3571
  * information, consult the documentation for that service. For information about the default
@@ -3570,8 +3607,78 @@ export interface RegisterScalableTargetRequest {
3570
3607
  * Guide</i>.</p>
3571
3608
  */
3572
3609
  SuspendedState?: SuspendedState;
3610
+ /**
3611
+ * <p>Assigns one or more tags to the scalable target. Use this parameter to tag the scalable
3612
+ * target when it is created. To tag an existing scalable target, use the <a>TagResource</a> operation.</p>
3613
+ * <p>Each tag consists of a tag key and a tag value. Both the tag key and the tag value are
3614
+ * required. You cannot have more than one tag on a scalable target with the same tag
3615
+ * key.</p>
3616
+ * <p>Use tags to control access to a scalable target. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/resource-tagging-support.html">Tagging support
3617
+ * for Application Auto Scaling</a> in the <i>Application Auto Scaling User Guide</i>.</p>
3618
+ */
3619
+ Tags?: Record<string, string>;
3573
3620
  }
3574
3621
  export interface RegisterScalableTargetResponse {
3622
+ /**
3623
+ * <p>The ARN of the scalable target.</p>
3624
+ */
3625
+ ScalableTargetARN?: string;
3626
+ }
3627
+ export interface TagResourceRequest {
3628
+ /**
3629
+ * <p>Identifies the Application Auto Scaling scalable target that you want to apply tags to.</p>
3630
+ * <p>For example:
3631
+ * <code>arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123</code>
3632
+ * </p>
3633
+ * <p>To get the ARN for a scalable target, use <a>DescribeScalableTargets</a>.</p>
3634
+ */
3635
+ ResourceARN: string | undefined;
3636
+ /**
3637
+ * <p>The tags assigned to the resource. A tag is a label that you assign to an AWS
3638
+ * resource.</p>
3639
+ * <p>Each tag consists of a tag key and a tag value.</p>
3640
+ * <p>You cannot have more than one tag on an Application Auto Scaling scalable target with the same tag key.
3641
+ * If you specify an existing tag key with a different tag value, Application Auto Scaling replaces the
3642
+ * current tag value with the specified one.</p>
3643
+ * <p>For information about the rules that apply to tag keys and tag values, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html">User-defined tag
3644
+ * restrictions</a> in the <i>Amazon Web Services Billing and Cost Management User
3645
+ * Guide</i>.</p>
3646
+ */
3647
+ Tags: Record<string, string> | undefined;
3648
+ }
3649
+ export interface TagResourceResponse {
3650
+ }
3651
+ /**
3652
+ * <p>The request contains too many tags. Try the request again with fewer tags.</p>
3653
+ */
3654
+ export declare class TooManyTagsException extends __BaseException {
3655
+ readonly name: "TooManyTagsException";
3656
+ readonly $fault: "client";
3657
+ Message?: string;
3658
+ /**
3659
+ * <p>The name of the Application Auto Scaling resource. This value is an Amazon Resource Name (ARN).</p>
3660
+ */
3661
+ ResourceName?: string;
3662
+ /**
3663
+ * @internal
3664
+ */
3665
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
3666
+ }
3667
+ export interface UntagResourceRequest {
3668
+ /**
3669
+ * <p>Identifies the Application Auto Scaling scalable target from which to remove tags.</p>
3670
+ * <p>For example:
3671
+ * <code>arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123</code>
3672
+ * </p>
3673
+ * <p>To get the ARN for a scalable target, use <a>DescribeScalableTargets</a>.</p>
3674
+ */
3675
+ ResourceARN: string | undefined;
3676
+ /**
3677
+ * <p>One or more tag keys. Specify only the tag keys, not the tag values.</p>
3678
+ */
3679
+ TagKeys: string[] | undefined;
3680
+ }
3681
+ export interface UntagResourceResponse {
3575
3682
  }
3576
3683
  /**
3577
3684
  * @internal
@@ -3701,6 +3808,14 @@ export declare const ScheduledActionFilterSensitiveLog: (obj: ScheduledAction) =
3701
3808
  * @internal
3702
3809
  */
3703
3810
  export declare const DescribeScheduledActionsResponseFilterSensitiveLog: (obj: DescribeScheduledActionsResponse) => any;
3811
+ /**
3812
+ * @internal
3813
+ */
3814
+ export declare const ListTagsForResourceRequestFilterSensitiveLog: (obj: ListTagsForResourceRequest) => any;
3815
+ /**
3816
+ * @internal
3817
+ */
3818
+ export declare const ListTagsForResourceResponseFilterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
3704
3819
  /**
3705
3820
  * @internal
3706
3821
  */
@@ -3725,3 +3840,19 @@ export declare const RegisterScalableTargetRequestFilterSensitiveLog: (obj: Regi
3725
3840
  * @internal
3726
3841
  */
3727
3842
  export declare const RegisterScalableTargetResponseFilterSensitiveLog: (obj: RegisterScalableTargetResponse) => any;
3843
+ /**
3844
+ * @internal
3845
+ */
3846
+ export declare const TagResourceRequestFilterSensitiveLog: (obj: TagResourceRequest) => any;
3847
+ /**
3848
+ * @internal
3849
+ */
3850
+ export declare const TagResourceResponseFilterSensitiveLog: (obj: TagResourceResponse) => any;
3851
+ /**
3852
+ * @internal
3853
+ */
3854
+ export declare const UntagResourceRequestFilterSensitiveLog: (obj: UntagResourceRequest) => any;
3855
+ /**
3856
+ * @internal
3857
+ */
3858
+ export declare const UntagResourceResponseFilterSensitiveLog: (obj: UntagResourceResponse) => any;
@@ -7,9 +7,12 @@ import { DescribeScalableTargetsCommandInput, DescribeScalableTargetsCommandOutp
7
7
  import { DescribeScalingActivitiesCommandInput, DescribeScalingActivitiesCommandOutput } from "../commands/DescribeScalingActivitiesCommand";
8
8
  import { DescribeScalingPoliciesCommandInput, DescribeScalingPoliciesCommandOutput } from "../commands/DescribeScalingPoliciesCommand";
9
9
  import { DescribeScheduledActionsCommandInput, DescribeScheduledActionsCommandOutput } from "../commands/DescribeScheduledActionsCommand";
10
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
10
11
  import { PutScalingPolicyCommandInput, PutScalingPolicyCommandOutput } from "../commands/PutScalingPolicyCommand";
11
12
  import { PutScheduledActionCommandInput, PutScheduledActionCommandOutput } from "../commands/PutScheduledActionCommand";
12
13
  import { RegisterScalableTargetCommandInput, RegisterScalableTargetCommandOutput } from "../commands/RegisterScalableTargetCommand";
14
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
15
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
13
16
  export declare const serializeAws_json1_1DeleteScalingPolicyCommand: (input: DeleteScalingPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
14
17
  export declare const serializeAws_json1_1DeleteScheduledActionCommand: (input: DeleteScheduledActionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
15
18
  export declare const serializeAws_json1_1DeregisterScalableTargetCommand: (input: DeregisterScalableTargetCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -17,9 +20,12 @@ export declare const serializeAws_json1_1DescribeScalableTargetsCommand: (input:
17
20
  export declare const serializeAws_json1_1DescribeScalingActivitiesCommand: (input: DescribeScalingActivitiesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
18
21
  export declare const serializeAws_json1_1DescribeScalingPoliciesCommand: (input: DescribeScalingPoliciesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
22
  export declare const serializeAws_json1_1DescribeScheduledActionsCommand: (input: DescribeScheduledActionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
+ export declare const serializeAws_json1_1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
24
  export declare const serializeAws_json1_1PutScalingPolicyCommand: (input: PutScalingPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
21
25
  export declare const serializeAws_json1_1PutScheduledActionCommand: (input: PutScheduledActionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
22
26
  export declare const serializeAws_json1_1RegisterScalableTargetCommand: (input: RegisterScalableTargetCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
27
+ export declare const serializeAws_json1_1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
28
+ export declare const serializeAws_json1_1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
29
  export declare const deserializeAws_json1_1DeleteScalingPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteScalingPolicyCommandOutput>;
24
30
  export declare const deserializeAws_json1_1DeleteScheduledActionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteScheduledActionCommandOutput>;
25
31
  export declare const deserializeAws_json1_1DeregisterScalableTargetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeregisterScalableTargetCommandOutput>;
@@ -27,6 +33,9 @@ export declare const deserializeAws_json1_1DescribeScalableTargetsCommand: (outp
27
33
  export declare const deserializeAws_json1_1DescribeScalingActivitiesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeScalingActivitiesCommandOutput>;
28
34
  export declare const deserializeAws_json1_1DescribeScalingPoliciesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeScalingPoliciesCommandOutput>;
29
35
  export declare const deserializeAws_json1_1DescribeScheduledActionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeScheduledActionsCommandOutput>;
36
+ export declare const deserializeAws_json1_1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
30
37
  export declare const deserializeAws_json1_1PutScalingPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutScalingPolicyCommandOutput>;
31
38
  export declare const deserializeAws_json1_1PutScheduledActionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutScheduledActionCommandOutput>;
32
39
  export declare const deserializeAws_json1_1RegisterScalableTargetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RegisterScalableTargetCommandOutput>;
40
+ export declare const deserializeAws_json1_1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
41
+ export declare const deserializeAws_json1_1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
@@ -28,6 +28,10 @@ import {
28
28
  DescribeScheduledActionsCommandInput,
29
29
  DescribeScheduledActionsCommandOutput,
30
30
  } from "./commands/DescribeScheduledActionsCommand";
31
+ import {
32
+ ListTagsForResourceCommandInput,
33
+ ListTagsForResourceCommandOutput,
34
+ } from "./commands/ListTagsForResourceCommand";
31
35
  import {
32
36
  PutScalingPolicyCommandInput,
33
37
  PutScalingPolicyCommandOutput,
@@ -40,6 +44,14 @@ import {
40
44
  RegisterScalableTargetCommandInput,
41
45
  RegisterScalableTargetCommandOutput,
42
46
  } from "./commands/RegisterScalableTargetCommand";
47
+ import {
48
+ TagResourceCommandInput,
49
+ TagResourceCommandOutput,
50
+ } from "./commands/TagResourceCommand";
51
+ import {
52
+ UntagResourceCommandInput,
53
+ UntagResourceCommandOutput,
54
+ } from "./commands/UntagResourceCommand";
43
55
  export declare class ApplicationAutoScaling extends ApplicationAutoScalingClient {
44
56
  deleteScalingPolicy(
45
57
  args: DeleteScalingPolicyCommandInput,
@@ -132,6 +144,19 @@ export declare class ApplicationAutoScaling extends ApplicationAutoScalingClient
132
144
  options: __HttpHandlerOptions,
133
145
  cb: (err: any, data?: DescribeScheduledActionsCommandOutput) => void
134
146
  ): void;
147
+ listTagsForResource(
148
+ args: ListTagsForResourceCommandInput,
149
+ options?: __HttpHandlerOptions
150
+ ): Promise<ListTagsForResourceCommandOutput>;
151
+ listTagsForResource(
152
+ args: ListTagsForResourceCommandInput,
153
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
154
+ ): void;
155
+ listTagsForResource(
156
+ args: ListTagsForResourceCommandInput,
157
+ options: __HttpHandlerOptions,
158
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
159
+ ): void;
135
160
  putScalingPolicy(
136
161
  args: PutScalingPolicyCommandInput,
137
162
  options?: __HttpHandlerOptions
@@ -171,4 +196,30 @@ export declare class ApplicationAutoScaling extends ApplicationAutoScalingClient
171
196
  options: __HttpHandlerOptions,
172
197
  cb: (err: any, data?: RegisterScalableTargetCommandOutput) => void
173
198
  ): void;
199
+ tagResource(
200
+ args: TagResourceCommandInput,
201
+ options?: __HttpHandlerOptions
202
+ ): Promise<TagResourceCommandOutput>;
203
+ tagResource(
204
+ args: TagResourceCommandInput,
205
+ cb: (err: any, data?: TagResourceCommandOutput) => void
206
+ ): void;
207
+ tagResource(
208
+ args: TagResourceCommandInput,
209
+ options: __HttpHandlerOptions,
210
+ cb: (err: any, data?: TagResourceCommandOutput) => void
211
+ ): void;
212
+ untagResource(
213
+ args: UntagResourceCommandInput,
214
+ options?: __HttpHandlerOptions
215
+ ): Promise<UntagResourceCommandOutput>;
216
+ untagResource(
217
+ args: UntagResourceCommandInput,
218
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
219
+ ): void;
220
+ untagResource(
221
+ args: UntagResourceCommandInput,
222
+ options: __HttpHandlerOptions,
223
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
224
+ ): void;
174
225
  }
@@ -72,6 +72,10 @@ import {
72
72
  DescribeScheduledActionsCommandInput,
73
73
  DescribeScheduledActionsCommandOutput,
74
74
  } from "./commands/DescribeScheduledActionsCommand";
75
+ import {
76
+ ListTagsForResourceCommandInput,
77
+ ListTagsForResourceCommandOutput,
78
+ } from "./commands/ListTagsForResourceCommand";
75
79
  import {
76
80
  PutScalingPolicyCommandInput,
77
81
  PutScalingPolicyCommandOutput,
@@ -84,12 +88,20 @@ import {
84
88
  RegisterScalableTargetCommandInput,
85
89
  RegisterScalableTargetCommandOutput,
86
90
  } from "./commands/RegisterScalableTargetCommand";
91
+ import {
92
+ TagResourceCommandInput,
93
+ TagResourceCommandOutput,
94
+ } from "./commands/TagResourceCommand";
95
+ import {
96
+ UntagResourceCommandInput,
97
+ UntagResourceCommandOutput,
98
+ } from "./commands/UntagResourceCommand";
87
99
  import {
88
100
  ClientInputEndpointParameters,
89
101
  ClientResolvedEndpointParameters,
90
102
  EndpointParameters,
91
103
  } from "./endpoint/EndpointParameters";
92
- export declare type ServiceInputTypes =
104
+ export type ServiceInputTypes =
93
105
  | DeleteScalingPolicyCommandInput
94
106
  | DeleteScheduledActionCommandInput
95
107
  | DeregisterScalableTargetCommandInput
@@ -97,10 +109,13 @@ export declare type ServiceInputTypes =
97
109
  | DescribeScalingActivitiesCommandInput
98
110
  | DescribeScalingPoliciesCommandInput
99
111
  | DescribeScheduledActionsCommandInput
112
+ | ListTagsForResourceCommandInput
100
113
  | PutScalingPolicyCommandInput
101
114
  | PutScheduledActionCommandInput
102
- | RegisterScalableTargetCommandInput;
103
- export declare type ServiceOutputTypes =
115
+ | RegisterScalableTargetCommandInput
116
+ | TagResourceCommandInput
117
+ | UntagResourceCommandInput;
118
+ export type ServiceOutputTypes =
104
119
  | DeleteScalingPolicyCommandOutput
105
120
  | DeleteScheduledActionCommandOutput
106
121
  | DeregisterScalableTargetCommandOutput
@@ -108,9 +123,12 @@ export declare type ServiceOutputTypes =
108
123
  | DescribeScalingActivitiesCommandOutput
109
124
  | DescribeScalingPoliciesCommandOutput
110
125
  | DescribeScheduledActionsCommandOutput
126
+ | ListTagsForResourceCommandOutput
111
127
  | PutScalingPolicyCommandOutput
112
128
  | PutScheduledActionCommandOutput
113
- | RegisterScalableTargetCommandOutput;
129
+ | RegisterScalableTargetCommandOutput
130
+ | TagResourceCommandOutput
131
+ | UntagResourceCommandOutput;
114
132
  export interface ClientDefaults
115
133
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
116
134
  requestHandler?: __HttpHandler;
@@ -135,7 +153,7 @@ export interface ClientDefaults
135
153
  logger?: __Logger;
136
154
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
137
155
  }
138
- declare type ApplicationAutoScalingClientConfigType = Partial<
156
+ type ApplicationAutoScalingClientConfigType = Partial<
139
157
  __SmithyConfiguration<__HttpHandlerOptions>
140
158
  > &
141
159
  ClientDefaults &
@@ -148,7 +166,7 @@ declare type ApplicationAutoScalingClientConfigType = Partial<
148
166
  ClientInputEndpointParameters;
149
167
  export interface ApplicationAutoScalingClientConfig
150
168
  extends ApplicationAutoScalingClientConfigType {}
151
- declare type ApplicationAutoScalingClientResolvedConfigType =
169
+ type ApplicationAutoScalingClientResolvedConfigType =
152
170
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
153
171
  Required<ClientDefaults> &
154
172
  RegionResolvedConfig &
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ ApplicationAutoScalingClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ApplicationAutoScalingClient";
14
+ import {
15
+ ListTagsForResourceRequest,
16
+ ListTagsForResourceResponse,
17
+ } from "../models/models_0";
18
+ export interface ListTagsForResourceCommandInput
19
+ extends ListTagsForResourceRequest {}
20
+ export interface ListTagsForResourceCommandOutput
21
+ extends ListTagsForResourceResponse,
22
+ __MetadataBearer {}
23
+ export declare class ListTagsForResourceCommand extends $Command<
24
+ ListTagsForResourceCommandInput,
25
+ ListTagsForResourceCommandOutput,
26
+ ApplicationAutoScalingClientResolvedConfig
27
+ > {
28
+ readonly input: ListTagsForResourceCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: ListTagsForResourceCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: ApplicationAutoScalingClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,34 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ ApplicationAutoScalingClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ApplicationAutoScalingClient";
14
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
15
+ export interface TagResourceCommandInput extends TagResourceRequest {}
16
+ export interface TagResourceCommandOutput
17
+ extends TagResourceResponse,
18
+ __MetadataBearer {}
19
+ export declare class TagResourceCommand extends $Command<
20
+ TagResourceCommandInput,
21
+ TagResourceCommandOutput,
22
+ ApplicationAutoScalingClientResolvedConfig
23
+ > {
24
+ readonly input: TagResourceCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
26
+ constructor(input: TagResourceCommandInput);
27
+ resolveMiddleware(
28
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
29
+ configuration: ApplicationAutoScalingClientResolvedConfig,
30
+ options?: __HttpHandlerOptions
31
+ ): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
32
+ private serialize;
33
+ private deserialize;
34
+ }
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ ApplicationAutoScalingClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ApplicationAutoScalingClient";
14
+ import {
15
+ UntagResourceRequest,
16
+ UntagResourceResponse,
17
+ } from "../models/models_0";
18
+ export interface UntagResourceCommandInput extends UntagResourceRequest {}
19
+ export interface UntagResourceCommandOutput
20
+ extends UntagResourceResponse,
21
+ __MetadataBearer {}
22
+ export declare class UntagResourceCommand extends $Command<
23
+ UntagResourceCommandInput,
24
+ UntagResourceCommandOutput,
25
+ ApplicationAutoScalingClientResolvedConfig
26
+ > {
27
+ readonly input: UntagResourceCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
29
+ constructor(input: UntagResourceCommandInput);
30
+ resolveMiddleware(
31
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
32
+ configuration: ApplicationAutoScalingClientResolvedConfig,
33
+ options?: __HttpHandlerOptions
34
+ ): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -5,6 +5,9 @@ export * from "./DescribeScalableTargetsCommand";
5
5
  export * from "./DescribeScalingActivitiesCommand";
6
6
  export * from "./DescribeScalingPoliciesCommand";
7
7
  export * from "./DescribeScheduledActionsCommand";
8
+ export * from "./ListTagsForResourceCommand";
8
9
  export * from "./PutScalingPolicyCommand";
9
10
  export * from "./PutScheduledActionCommand";
10
11
  export * from "./RegisterScalableTargetCommand";
12
+ export * from "./TagResourceCommand";
13
+ export * from "./UntagResourceCommand";
@@ -16,10 +16,9 @@ export interface ClientInputEndpointParameters {
16
16
  | EndpointV2
17
17
  | Provider<EndpointV2>;
18
18
  }
19
- export declare type ClientResolvedEndpointParameters =
20
- ClientInputEndpointParameters & {
21
- defaultSigningName: string;
22
- };
19
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
20
+ defaultSigningName: string;
21
+ };
23
22
  export declare const resolveClientEndpointParameters: <T>(
24
23
  options: T & ClientInputEndpointParameters
25
24
  ) => T &
@@ -120,6 +120,7 @@ export interface ScalableTarget {
120
120
  RoleARN: string | undefined;
121
121
  CreationTime: Date | undefined;
122
122
  SuspendedState?: SuspendedState;
123
+ ScalableTargetARN?: string;
123
124
  }
124
125
  export interface DescribeScalableTargetsResponse {
125
126
  ScalableTargets?: ScalableTarget[];
@@ -330,6 +331,21 @@ export interface DescribeScheduledActionsResponse {
330
331
  ScheduledActions?: ScheduledAction[];
331
332
  NextToken?: string;
332
333
  }
334
+ export interface ListTagsForResourceRequest {
335
+ ResourceARN: string | undefined;
336
+ }
337
+ export interface ListTagsForResourceResponse {
338
+ Tags?: Record<string, string>;
339
+ }
340
+ export declare class ResourceNotFoundException extends __BaseException {
341
+ readonly name: "ResourceNotFoundException";
342
+ readonly $fault: "client";
343
+ Message?: string;
344
+ ResourceName?: string;
345
+ constructor(
346
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
347
+ );
348
+ }
333
349
  export declare class LimitExceededException extends __BaseException {
334
350
  readonly name: "LimitExceededException";
335
351
  readonly $fault: "client";
@@ -371,8 +387,30 @@ export interface RegisterScalableTargetRequest {
371
387
  MaxCapacity?: number;
372
388
  RoleARN?: string;
373
389
  SuspendedState?: SuspendedState;
390
+ Tags?: Record<string, string>;
391
+ }
392
+ export interface RegisterScalableTargetResponse {
393
+ ScalableTargetARN?: string;
394
+ }
395
+ export interface TagResourceRequest {
396
+ ResourceARN: string | undefined;
397
+ Tags: Record<string, string> | undefined;
374
398
  }
375
- export interface RegisterScalableTargetResponse {}
399
+ export interface TagResourceResponse {}
400
+ export declare class TooManyTagsException extends __BaseException {
401
+ readonly name: "TooManyTagsException";
402
+ readonly $fault: "client";
403
+ Message?: string;
404
+ ResourceName?: string;
405
+ constructor(
406
+ opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
407
+ );
408
+ }
409
+ export interface UntagResourceRequest {
410
+ ResourceARN: string | undefined;
411
+ TagKeys: string[] | undefined;
412
+ }
413
+ export interface UntagResourceResponse {}
376
414
  export declare const AlarmFilterSensitiveLog: (obj: Alarm) => any;
377
415
  export declare const DeleteScalingPolicyRequestFilterSensitiveLog: (
378
416
  obj: DeleteScalingPolicyRequest
@@ -467,6 +505,12 @@ export declare const ScheduledActionFilterSensitiveLog: (
467
505
  export declare const DescribeScheduledActionsResponseFilterSensitiveLog: (
468
506
  obj: DescribeScheduledActionsResponse
469
507
  ) => any;
508
+ export declare const ListTagsForResourceRequestFilterSensitiveLog: (
509
+ obj: ListTagsForResourceRequest
510
+ ) => any;
511
+ export declare const ListTagsForResourceResponseFilterSensitiveLog: (
512
+ obj: ListTagsForResourceResponse
513
+ ) => any;
470
514
  export declare const PutScalingPolicyRequestFilterSensitiveLog: (
471
515
  obj: PutScalingPolicyRequest
472
516
  ) => any;
@@ -485,3 +529,15 @@ export declare const RegisterScalableTargetRequestFilterSensitiveLog: (
485
529
  export declare const RegisterScalableTargetResponseFilterSensitiveLog: (
486
530
  obj: RegisterScalableTargetResponse
487
531
  ) => any;
532
+ export declare const TagResourceRequestFilterSensitiveLog: (
533
+ obj: TagResourceRequest
534
+ ) => any;
535
+ export declare const TagResourceResponseFilterSensitiveLog: (
536
+ obj: TagResourceResponse
537
+ ) => any;
538
+ export declare const UntagResourceRequestFilterSensitiveLog: (
539
+ obj: UntagResourceRequest
540
+ ) => any;
541
+ export declare const UntagResourceResponseFilterSensitiveLog: (
542
+ obj: UntagResourceResponse
543
+ ) => any;