@aws-sdk/client-application-auto-scaling 3.295.0 → 3.297.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 (23) hide show
  1. package/dist-types/ApplicationAutoScaling.d.ts +14 -0
  2. package/dist-types/ApplicationAutoScalingClient.d.ts +24 -4
  3. package/dist-types/commands/DeleteScalingPolicyCommand.d.ts +16 -0
  4. package/dist-types/commands/DeleteScheduledActionCommand.d.ts +30 -0
  5. package/dist-types/commands/DeregisterScalableTargetCommand.d.ts +16 -0
  6. package/dist-types/commands/DescribeScalableTargetsCommand.d.ts +16 -0
  7. package/dist-types/commands/DescribeScalingActivitiesCommand.d.ts +16 -0
  8. package/dist-types/commands/DescribeScalingPoliciesCommand.d.ts +16 -0
  9. package/dist-types/commands/DescribeScheduledActionsCommand.d.ts +59 -0
  10. package/dist-types/commands/ListTagsForResourceCommand.d.ts +34 -0
  11. package/dist-types/commands/PutScalingPolicyCommand.d.ts +16 -0
  12. package/dist-types/commands/PutScheduledActionCommand.d.ts +34 -0
  13. package/dist-types/commands/RegisterScalableTargetCommand.d.ts +16 -0
  14. package/dist-types/commands/TagResourceCommand.d.ts +30 -0
  15. package/dist-types/commands/UntagResourceCommand.d.ts +30 -0
  16. package/dist-types/models/ApplicationAutoScalingServiceException.d.ts +2 -0
  17. package/dist-types/models/models_0.d.ts +129 -0
  18. package/dist-types/pagination/DescribeScalableTargetsPaginator.d.ts +3 -0
  19. package/dist-types/pagination/DescribeScalingActivitiesPaginator.d.ts +3 -0
  20. package/dist-types/pagination/DescribeScalingPoliciesPaginator.d.ts +3 -0
  21. package/dist-types/pagination/DescribeScheduledActionsPaginator.d.ts +3 -0
  22. package/dist-types/pagination/Interfaces.d.ts +3 -0
  23. package/package.json +29 -29
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { ApplicationAutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApplicationAutoScalingClient";
5
5
  import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link ListTagsForResourceCommand}.
8
10
  */
9
11
  export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link ListTagsForResourceCommand}.
13
17
  */
14
18
  export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Returns all the tags on the specified Application Auto Scaling scalable target.</p>
18
23
  * <p>For general information about tags, including the format and syntax, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services
19
24
  * resources</a> in the <i>Amazon Web Services General Reference</i>.</p>
@@ -27,6 +32,8 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
27
32
  * const response = await client.send(command);
28
33
  * ```
29
34
  *
35
+ * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
36
+ * @returns {@link ListTagsForResourceCommandOutput}
30
37
  * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
31
38
  * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
32
39
  * @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
@@ -35,15 +42,42 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
35
42
  * <p>The specified resource doesn't exist.</p>
36
43
  *
37
44
  *
45
+ * @example To list tags for a scalable target
46
+ * ```javascript
47
+ * // This example lists the tag key names and values that are attached to the scalable target specified by its ARN.
48
+ * const input = {
49
+ * "ResourceARN": "arn:aws:application-autoscaling:us-west-2:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123"
50
+ * };
51
+ * const command = new ListTagsForResourceCommand(input);
52
+ * const response = await client.send(command);
53
+ * /* response ==
54
+ * {
55
+ * "Tags": {
56
+ * "environment": "production"
57
+ * }
58
+ * }
59
+ * *\/
60
+ * // example id: to-list-tags-for-a-scalable-target-1677971474903
61
+ * ```
62
+ *
38
63
  */
39
64
  export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
40
65
  readonly input: ListTagsForResourceCommandInput;
41
66
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
67
+ /**
68
+ * @public
69
+ */
42
70
  constructor(input: ListTagsForResourceCommandInput);
43
71
  /**
44
72
  * @internal
45
73
  */
46
74
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
75
+ /**
76
+ * @internal
77
+ */
47
78
  private serialize;
79
+ /**
80
+ * @internal
81
+ */
48
82
  private deserialize;
49
83
  }
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { ApplicationAutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApplicationAutoScalingClient";
5
5
  import { PutScalingPolicyRequest, PutScalingPolicyResponse } from "../models/models_0";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link PutScalingPolicyCommand}.
8
10
  */
9
11
  export interface PutScalingPolicyCommandInput extends PutScalingPolicyRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link PutScalingPolicyCommand}.
13
17
  */
14
18
  export interface PutScalingPolicyCommandOutput extends PutScalingPolicyResponse, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Creates or updates a scaling policy for an Application Auto Scaling scalable target.</p>
18
23
  * <p>Each scalable target is identified by a service namespace, resource ID, and scalable
19
24
  * dimension. A scaling policy applies to the scalable target identified by those three
@@ -49,6 +54,8 @@ export interface PutScalingPolicyCommandOutput extends PutScalingPolicyResponse,
49
54
  * const response = await client.send(command);
50
55
  * ```
51
56
  *
57
+ * @param PutScalingPolicyCommandInput - {@link PutScalingPolicyCommandInput}
58
+ * @returns {@link PutScalingPolicyCommandOutput}
52
59
  * @see {@link PutScalingPolicyCommandInput} for command's `input` shape.
53
60
  * @see {@link PutScalingPolicyCommandOutput} for command's `response` shape.
54
61
  * @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
@@ -123,11 +130,20 @@ export interface PutScalingPolicyCommandOutput extends PutScalingPolicyResponse,
123
130
  export declare class PutScalingPolicyCommand extends $Command<PutScalingPolicyCommandInput, PutScalingPolicyCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
124
131
  readonly input: PutScalingPolicyCommandInput;
125
132
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
133
+ /**
134
+ * @public
135
+ */
126
136
  constructor(input: PutScalingPolicyCommandInput);
127
137
  /**
128
138
  * @internal
129
139
  */
130
140
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutScalingPolicyCommandInput, PutScalingPolicyCommandOutput>;
141
+ /**
142
+ * @internal
143
+ */
131
144
  private serialize;
145
+ /**
146
+ * @internal
147
+ */
132
148
  private deserialize;
133
149
  }
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { ApplicationAutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApplicationAutoScalingClient";
5
5
  import { PutScheduledActionRequest, PutScheduledActionResponse } from "../models/models_0";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link PutScheduledActionCommand}.
8
10
  */
9
11
  export interface PutScheduledActionCommandInput extends PutScheduledActionRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link PutScheduledActionCommand}.
13
17
  */
14
18
  export interface PutScheduledActionCommandOutput extends PutScheduledActionResponse, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Creates or updates a scheduled action for an Application Auto Scaling scalable target. </p>
18
23
  * <p>Each scalable target is identified by a service namespace, resource ID, and scalable
19
24
  * dimension. A scheduled action applies to the scalable target identified by those three
@@ -39,6 +44,8 @@ export interface PutScheduledActionCommandOutput extends PutScheduledActionRespo
39
44
  * const response = await client.send(command);
40
45
  * ```
41
46
  *
47
+ * @param PutScheduledActionCommandInput - {@link PutScheduledActionCommandInput}
48
+ * @returns {@link PutScheduledActionCommandOutput}
42
49
  * @see {@link PutScheduledActionCommandInput} for command's `input` shape.
43
50
  * @see {@link PutScheduledActionCommandOutput} for command's `response` shape.
44
51
  * @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
@@ -65,15 +72,42 @@ export interface PutScheduledActionCommandOutput extends PutScheduledActionRespo
65
72
  * API request.</p>
66
73
  *
67
74
  *
75
+ * @example To create a recurring scheduled action
76
+ * ```javascript
77
+ * // This example adds a scheduled action to a DynamoDB table called TestTable to scale out on a recurring schedule. On the specified schedule (every day at 12:15pm UTC), if the current capacity is below the value specified for MinCapacity, Application Auto Scaling scales out to the value specified by MinCapacity.
78
+ * const input = {
79
+ * "ResourceId": "table/TestTable",
80
+ * "ScalableDimension": "dynamodb:table:WriteCapacityUnits",
81
+ * "ScalableTargetAction": {
82
+ * "MinCapacity": 6
83
+ * },
84
+ * "Schedule": "cron(15 12 * * ? *)",
85
+ * "ScheduledActionName": "my-recurring-action",
86
+ * "ServiceNamespace": "dynamodb"
87
+ * };
88
+ * const command = new PutScheduledActionCommand(input);
89
+ * await client.send(command);
90
+ * // example id: to-create-a-recurring-scheduled-action-1677970068621
91
+ * ```
92
+ *
68
93
  */
69
94
  export declare class PutScheduledActionCommand extends $Command<PutScheduledActionCommandInput, PutScheduledActionCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
70
95
  readonly input: PutScheduledActionCommandInput;
71
96
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
97
+ /**
98
+ * @public
99
+ */
72
100
  constructor(input: PutScheduledActionCommandInput);
73
101
  /**
74
102
  * @internal
75
103
  */
76
104
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutScheduledActionCommandInput, PutScheduledActionCommandOutput>;
105
+ /**
106
+ * @internal
107
+ */
77
108
  private serialize;
109
+ /**
110
+ * @internal
111
+ */
78
112
  private deserialize;
79
113
  }
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { ApplicationAutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApplicationAutoScalingClient";
5
5
  import { RegisterScalableTargetRequest, RegisterScalableTargetResponse } from "../models/models_0";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link RegisterScalableTargetCommand}.
8
10
  */
9
11
  export interface RegisterScalableTargetCommandInput extends RegisterScalableTargetRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link RegisterScalableTargetCommand}.
13
17
  */
14
18
  export interface RegisterScalableTargetCommandOutput extends RegisterScalableTargetResponse, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Registers or updates a scalable target, which is the resource that you want to
18
23
  * scale.</p>
19
24
  * <p>Scalable targets are uniquely identified by the combination of resource ID, scalable
@@ -56,6 +61,8 @@ export interface RegisterScalableTargetCommandOutput extends RegisterScalableTar
56
61
  * const response = await client.send(command);
57
62
  * ```
58
63
  *
64
+ * @param RegisterScalableTargetCommandInput - {@link RegisterScalableTargetCommandInput}
65
+ * @returns {@link RegisterScalableTargetCommandOutput}
59
66
  * @see {@link RegisterScalableTargetCommandInput} for command's `input` shape.
60
67
  * @see {@link RegisterScalableTargetCommandOutput} for command's `response` shape.
61
68
  * @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
@@ -94,11 +101,20 @@ export interface RegisterScalableTargetCommandOutput extends RegisterScalableTar
94
101
  export declare class RegisterScalableTargetCommand extends $Command<RegisterScalableTargetCommandInput, RegisterScalableTargetCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
95
102
  readonly input: RegisterScalableTargetCommandInput;
96
103
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
104
+ /**
105
+ * @public
106
+ */
97
107
  constructor(input: RegisterScalableTargetCommandInput);
98
108
  /**
99
109
  * @internal
100
110
  */
101
111
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RegisterScalableTargetCommandInput, RegisterScalableTargetCommandOutput>;
112
+ /**
113
+ * @internal
114
+ */
102
115
  private serialize;
116
+ /**
117
+ * @internal
118
+ */
103
119
  private deserialize;
104
120
  }
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { ApplicationAutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApplicationAutoScalingClient";
5
5
  import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link TagResourceCommand}.
8
10
  */
9
11
  export interface TagResourceCommandInput extends TagResourceRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link TagResourceCommand}.
13
17
  */
14
18
  export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Adds or edits tags on an Application Auto Scaling scalable target.</p>
18
23
  * <p>Each tag consists of a tag key and a tag value, which are both case-sensitive strings.
19
24
  * To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag
@@ -36,6 +41,8 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
36
41
  * const response = await client.send(command);
37
42
  * ```
38
43
  *
44
+ * @param TagResourceCommandInput - {@link TagResourceCommandInput}
45
+ * @returns {@link TagResourceCommandOutput}
39
46
  * @see {@link TagResourceCommandInput} for command's `input` shape.
40
47
  * @see {@link TagResourceCommandOutput} for command's `response` shape.
41
48
  * @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
@@ -51,15 +58,38 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
51
58
  * API request.</p>
52
59
  *
53
60
  *
61
+ * @example To add a tag to a scalable target
62
+ * ```javascript
63
+ * // This example adds a tag with the key name "environment" and the value "production" to the scalable target specified by its ARN.
64
+ * const input = {
65
+ * "ResourceARN": "arn:aws:application-autoscaling:us-west-2:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123",
66
+ * "Tags": {
67
+ * "environment": "production"
68
+ * }
69
+ * };
70
+ * const command = new TagResourceCommand(input);
71
+ * await client.send(command);
72
+ * // example id: to-add-a-tag-to-a-scalable-target-1677970764620
73
+ * ```
74
+ *
54
75
  */
55
76
  export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
56
77
  readonly input: TagResourceCommandInput;
57
78
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
79
+ /**
80
+ * @public
81
+ */
58
82
  constructor(input: TagResourceCommandInput);
59
83
  /**
60
84
  * @internal
61
85
  */
62
86
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
87
+ /**
88
+ * @internal
89
+ */
63
90
  private serialize;
91
+ /**
92
+ * @internal
93
+ */
64
94
  private deserialize;
65
95
  }
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { ApplicationAutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApplicationAutoScalingClient";
5
5
  import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link UntagResourceCommand}.
8
10
  */
9
11
  export interface UntagResourceCommandInput extends UntagResourceRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link UntagResourceCommand}.
13
17
  */
14
18
  export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Deletes tags from an Application Auto Scaling scalable target. To delete a tag, specify the tag key and
18
23
  * the Application Auto Scaling scalable target.</p>
19
24
  * @example
@@ -26,6 +31,8 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
26
31
  * const response = await client.send(command);
27
32
  * ```
28
33
  *
34
+ * @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
35
+ * @returns {@link UntagResourceCommandOutput}
29
36
  * @see {@link UntagResourceCommandInput} for command's `input` shape.
30
37
  * @see {@link UntagResourceCommandOutput} for command's `response` shape.
31
38
  * @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
@@ -38,15 +45,38 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
38
45
  * API request.</p>
39
46
  *
40
47
  *
48
+ * @example To remove a tag from a scalable target
49
+ * ```javascript
50
+ * // This example removes the tag pair with the key name "environment" from the scalable target specified by its ARN.
51
+ * const input = {
52
+ * "ResourceARN": "arn:aws:application-autoscaling:us-west-2:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123",
53
+ * "TagKeys": [
54
+ * "environment"
55
+ * ]
56
+ * };
57
+ * const command = new UntagResourceCommand(input);
58
+ * await client.send(command);
59
+ * // example id: to-remove-a-tag-from-a-scalable-target-1677971117168
60
+ * ```
61
+ *
41
62
  */
42
63
  export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
43
64
  readonly input: UntagResourceCommandInput;
44
65
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
66
+ /**
67
+ * @public
68
+ */
45
69
  constructor(input: UntagResourceCommandInput);
46
70
  /**
47
71
  * @internal
48
72
  */
49
73
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApplicationAutoScalingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
74
+ /**
75
+ * @internal
76
+ */
50
77
  private serialize;
78
+ /**
79
+ * @internal
80
+ */
51
81
  private deserialize;
52
82
  }
@@ -1,5 +1,7 @@
1
1
  import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
2
  /**
3
+ * @public
4
+ *
3
5
  * Base exception class for all service exceptions from ApplicationAutoScaling service.
4
6
  */
5
7
  export declare class ApplicationAutoScalingServiceException extends __ServiceException {