@aws-sdk/client-application-auto-scaling 3.294.0 → 3.295.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.
- package/README.md +24 -0
- package/dist-cjs/ApplicationAutoScaling.js +45 -0
- package/dist-cjs/commands/DeleteScalingPolicyCommand.js +4 -4
- package/dist-cjs/commands/DeleteScheduledActionCommand.js +4 -4
- package/dist-cjs/commands/DeregisterScalableTargetCommand.js +4 -4
- package/dist-cjs/commands/DescribeScalableTargetsCommand.js +4 -4
- package/dist-cjs/commands/DescribeScalingActivitiesCommand.js +4 -4
- package/dist-cjs/commands/DescribeScalingPoliciesCommand.js +4 -4
- package/dist-cjs/commands/DescribeScheduledActionsCommand.js +4 -4
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/PutScalingPolicyCommand.js +4 -4
- package/dist-cjs/commands/PutScheduledActionCommand.js +4 -4
- package/dist-cjs/commands/RegisterScalableTargetCommand.js +4 -4
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +56 -2
- package/dist-cjs/protocols/Aws_json1_1.js +230 -2
- package/dist-es/ApplicationAutoScaling.js +45 -0
- package/dist-es/commands/DeleteScalingPolicyCommand.js +4 -4
- package/dist-es/commands/DeleteScheduledActionCommand.js +4 -4
- package/dist-es/commands/DeregisterScalableTargetCommand.js +4 -4
- package/dist-es/commands/DescribeScalableTargetsCommand.js +4 -4
- package/dist-es/commands/DescribeScalingActivitiesCommand.js +4 -4
- package/dist-es/commands/DescribeScalingPoliciesCommand.js +4 -4
- package/dist-es/commands/DescribeScheduledActionsCommand.js +4 -4
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/PutScalingPolicyCommand.js +4 -4
- package/dist-es/commands/PutScheduledActionCommand.js +4 -4
- package/dist-es/commands/RegisterScalableTargetCommand.js +4 -4
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +46 -0
- package/dist-es/protocols/Aws_json1_1.js +224 -2
- package/dist-types/ApplicationAutoScaling.d.ts +54 -12
- package/dist-types/ApplicationAutoScalingClient.d.ts +7 -4
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +49 -0
- package/dist-types/commands/PutScalingPolicyCommand.d.ts +2 -2
- package/dist-types/commands/PutScheduledActionCommand.d.ts +1 -1
- package/dist-types/commands/RegisterScalableTargetCommand.d.ts +16 -9
- package/dist-types/commands/TagResourceCommand.d.ts +65 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +52 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +141 -10
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/ApplicationAutoScaling.d.ts +51 -0
- package/dist-types/ts3.4/ApplicationAutoScalingClient.d.ts +24 -6
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +3 -4
- package/dist-types/ts3.4/models/models_0.d.ts +57 -1
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +36 -36
package/README.md
CHANGED
|
@@ -334,6 +334,14 @@ DescribeScheduledActions
|
|
|
334
334
|
|
|
335
335
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/classes/describescheduledactionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/interfaces/describescheduledactionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/interfaces/describescheduledactionscommandoutput.html)
|
|
336
336
|
|
|
337
|
+
</details>
|
|
338
|
+
<details>
|
|
339
|
+
<summary>
|
|
340
|
+
ListTagsForResource
|
|
341
|
+
</summary>
|
|
342
|
+
|
|
343
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/classes/listtagsforresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/interfaces/listtagsforresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/interfaces/listtagsforresourcecommandoutput.html)
|
|
344
|
+
|
|
337
345
|
</details>
|
|
338
346
|
<details>
|
|
339
347
|
<summary>
|
|
@@ -359,3 +367,19 @@ RegisterScalableTarget
|
|
|
359
367
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/classes/registerscalabletargetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/interfaces/registerscalabletargetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/interfaces/registerscalabletargetcommandoutput.html)
|
|
360
368
|
|
|
361
369
|
</details>
|
|
370
|
+
<details>
|
|
371
|
+
<summary>
|
|
372
|
+
TagResource
|
|
373
|
+
</summary>
|
|
374
|
+
|
|
375
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/classes/tagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/interfaces/tagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/interfaces/tagresourcecommandoutput.html)
|
|
376
|
+
|
|
377
|
+
</details>
|
|
378
|
+
<details>
|
|
379
|
+
<summary>
|
|
380
|
+
UntagResource
|
|
381
|
+
</summary>
|
|
382
|
+
|
|
383
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/classes/untagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/interfaces/untagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-application-auto-scaling/interfaces/untagresourcecommandoutput.html)
|
|
384
|
+
|
|
385
|
+
</details>
|
|
@@ -9,9 +9,12 @@ const DescribeScalableTargetsCommand_1 = require("./commands/DescribeScalableTar
|
|
|
9
9
|
const DescribeScalingActivitiesCommand_1 = require("./commands/DescribeScalingActivitiesCommand");
|
|
10
10
|
const DescribeScalingPoliciesCommand_1 = require("./commands/DescribeScalingPoliciesCommand");
|
|
11
11
|
const DescribeScheduledActionsCommand_1 = require("./commands/DescribeScheduledActionsCommand");
|
|
12
|
+
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
12
13
|
const PutScalingPolicyCommand_1 = require("./commands/PutScalingPolicyCommand");
|
|
13
14
|
const PutScheduledActionCommand_1 = require("./commands/PutScheduledActionCommand");
|
|
14
15
|
const RegisterScalableTargetCommand_1 = require("./commands/RegisterScalableTargetCommand");
|
|
16
|
+
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
17
|
+
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
15
18
|
class ApplicationAutoScaling extends ApplicationAutoScalingClient_1.ApplicationAutoScalingClient {
|
|
16
19
|
deleteScalingPolicy(args, optionsOrCb, cb) {
|
|
17
20
|
const command = new DeleteScalingPolicyCommand_1.DeleteScalingPolicyCommand(args);
|
|
@@ -111,6 +114,20 @@ class ApplicationAutoScaling extends ApplicationAutoScalingClient_1.ApplicationA
|
|
|
111
114
|
return this.send(command, optionsOrCb);
|
|
112
115
|
}
|
|
113
116
|
}
|
|
117
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
118
|
+
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
119
|
+
if (typeof optionsOrCb === "function") {
|
|
120
|
+
this.send(command, optionsOrCb);
|
|
121
|
+
}
|
|
122
|
+
else if (typeof cb === "function") {
|
|
123
|
+
if (typeof optionsOrCb !== "object")
|
|
124
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
125
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
return this.send(command, optionsOrCb);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
114
131
|
putScalingPolicy(args, optionsOrCb, cb) {
|
|
115
132
|
const command = new PutScalingPolicyCommand_1.PutScalingPolicyCommand(args);
|
|
116
133
|
if (typeof optionsOrCb === "function") {
|
|
@@ -153,5 +170,33 @@ class ApplicationAutoScaling extends ApplicationAutoScalingClient_1.ApplicationA
|
|
|
153
170
|
return this.send(command, optionsOrCb);
|
|
154
171
|
}
|
|
155
172
|
}
|
|
173
|
+
tagResource(args, optionsOrCb, cb) {
|
|
174
|
+
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
175
|
+
if (typeof optionsOrCb === "function") {
|
|
176
|
+
this.send(command, optionsOrCb);
|
|
177
|
+
}
|
|
178
|
+
else if (typeof cb === "function") {
|
|
179
|
+
if (typeof optionsOrCb !== "object")
|
|
180
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
181
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
return this.send(command, optionsOrCb);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
untagResource(args, optionsOrCb, cb) {
|
|
188
|
+
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
189
|
+
if (typeof optionsOrCb === "function") {
|
|
190
|
+
this.send(command, optionsOrCb);
|
|
191
|
+
}
|
|
192
|
+
else if (typeof cb === "function") {
|
|
193
|
+
if (typeof optionsOrCb !== "object")
|
|
194
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
195
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
return this.send(command, optionsOrCb);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
156
201
|
}
|
|
157
202
|
exports.ApplicationAutoScaling = ApplicationAutoScaling;
|
|
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class DeleteScalingPolicyCommand extends smithy_client_1.Command {
|
|
10
|
-
constructor(input) {
|
|
11
|
-
super();
|
|
12
|
-
this.input = input;
|
|
13
|
-
}
|
|
14
10
|
static getEndpointParameterInstructions() {
|
|
15
11
|
return {
|
|
16
12
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -19,6 +15,10 @@ class DeleteScalingPolicyCommand extends smithy_client_1.Command {
|
|
|
19
15
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
16
|
};
|
|
21
17
|
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
23
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
24
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteScalingPolicyCommand.getEndpointParameterInstructions()));
|
|
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class DeleteScheduledActionCommand extends smithy_client_1.Command {
|
|
10
|
-
constructor(input) {
|
|
11
|
-
super();
|
|
12
|
-
this.input = input;
|
|
13
|
-
}
|
|
14
10
|
static getEndpointParameterInstructions() {
|
|
15
11
|
return {
|
|
16
12
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -19,6 +15,10 @@ class DeleteScheduledActionCommand extends smithy_client_1.Command {
|
|
|
19
15
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
16
|
};
|
|
21
17
|
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
23
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
24
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteScheduledActionCommand.getEndpointParameterInstructions()));
|
|
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class DeregisterScalableTargetCommand extends smithy_client_1.Command {
|
|
10
|
-
constructor(input) {
|
|
11
|
-
super();
|
|
12
|
-
this.input = input;
|
|
13
|
-
}
|
|
14
10
|
static getEndpointParameterInstructions() {
|
|
15
11
|
return {
|
|
16
12
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -19,6 +15,10 @@ class DeregisterScalableTargetCommand extends smithy_client_1.Command {
|
|
|
19
15
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
16
|
};
|
|
21
17
|
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
23
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
24
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeregisterScalableTargetCommand.getEndpointParameterInstructions()));
|
|
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class DescribeScalableTargetsCommand extends smithy_client_1.Command {
|
|
10
|
-
constructor(input) {
|
|
11
|
-
super();
|
|
12
|
-
this.input = input;
|
|
13
|
-
}
|
|
14
10
|
static getEndpointParameterInstructions() {
|
|
15
11
|
return {
|
|
16
12
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -19,6 +15,10 @@ class DescribeScalableTargetsCommand extends smithy_client_1.Command {
|
|
|
19
15
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
16
|
};
|
|
21
17
|
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
23
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
24
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeScalableTargetsCommand.getEndpointParameterInstructions()));
|
|
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class DescribeScalingActivitiesCommand extends smithy_client_1.Command {
|
|
10
|
-
constructor(input) {
|
|
11
|
-
super();
|
|
12
|
-
this.input = input;
|
|
13
|
-
}
|
|
14
10
|
static getEndpointParameterInstructions() {
|
|
15
11
|
return {
|
|
16
12
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -19,6 +15,10 @@ class DescribeScalingActivitiesCommand extends smithy_client_1.Command {
|
|
|
19
15
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
16
|
};
|
|
21
17
|
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
23
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
24
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeScalingActivitiesCommand.getEndpointParameterInstructions()));
|
|
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class DescribeScalingPoliciesCommand extends smithy_client_1.Command {
|
|
10
|
-
constructor(input) {
|
|
11
|
-
super();
|
|
12
|
-
this.input = input;
|
|
13
|
-
}
|
|
14
10
|
static getEndpointParameterInstructions() {
|
|
15
11
|
return {
|
|
16
12
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -19,6 +15,10 @@ class DescribeScalingPoliciesCommand extends smithy_client_1.Command {
|
|
|
19
15
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
16
|
};
|
|
21
17
|
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
23
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
24
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeScalingPoliciesCommand.getEndpointParameterInstructions()));
|
|
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class DescribeScheduledActionsCommand extends smithy_client_1.Command {
|
|
10
|
-
constructor(input) {
|
|
11
|
-
super();
|
|
12
|
-
this.input = input;
|
|
13
|
-
}
|
|
14
10
|
static getEndpointParameterInstructions() {
|
|
15
11
|
return {
|
|
16
12
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -19,6 +15,10 @@ class DescribeScheduledActionsCommand extends smithy_client_1.Command {
|
|
|
19
15
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
16
|
};
|
|
21
17
|
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
23
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
24
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeScheduledActionsCommand.getEndpointParameterInstructions()));
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListTagsForResourceCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class ListTagsForResourceCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ApplicationAutoScalingClient";
|
|
28
|
+
const commandName = "ListTagsForResourceCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListTagsForResourceRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListTagsForResourceResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ListTagsForResourceCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListTagsForResourceCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class PutScalingPolicyCommand extends smithy_client_1.Command {
|
|
10
|
-
constructor(input) {
|
|
11
|
-
super();
|
|
12
|
-
this.input = input;
|
|
13
|
-
}
|
|
14
10
|
static getEndpointParameterInstructions() {
|
|
15
11
|
return {
|
|
16
12
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -19,6 +15,10 @@ class PutScalingPolicyCommand extends smithy_client_1.Command {
|
|
|
19
15
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
16
|
};
|
|
21
17
|
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
23
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
24
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutScalingPolicyCommand.getEndpointParameterInstructions()));
|
|
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class PutScheduledActionCommand extends smithy_client_1.Command {
|
|
10
|
-
constructor(input) {
|
|
11
|
-
super();
|
|
12
|
-
this.input = input;
|
|
13
|
-
}
|
|
14
10
|
static getEndpointParameterInstructions() {
|
|
15
11
|
return {
|
|
16
12
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -19,6 +15,10 @@ class PutScheduledActionCommand extends smithy_client_1.Command {
|
|
|
19
15
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
16
|
};
|
|
21
17
|
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
23
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
24
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutScheduledActionCommand.getEndpointParameterInstructions()));
|
|
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class RegisterScalableTargetCommand extends smithy_client_1.Command {
|
|
10
|
-
constructor(input) {
|
|
11
|
-
super();
|
|
12
|
-
this.input = input;
|
|
13
|
-
}
|
|
14
10
|
static getEndpointParameterInstructions() {
|
|
15
11
|
return {
|
|
16
12
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -19,6 +15,10 @@ class RegisterScalableTargetCommand extends smithy_client_1.Command {
|
|
|
19
15
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
16
|
};
|
|
21
17
|
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
22
|
resolveMiddleware(clientStack, configuration, options) {
|
|
23
23
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
24
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RegisterScalableTargetCommand.getEndpointParameterInstructions()));
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TagResourceCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class TagResourceCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, TagResourceCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ApplicationAutoScalingClient";
|
|
28
|
+
const commandName = "TagResourceCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.TagResourceRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.TagResourceResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1TagResourceCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1TagResourceCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UntagResourceCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class UntagResourceCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ApplicationAutoScalingClient";
|
|
28
|
+
const commandName = "UntagResourceCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.UntagResourceRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.UntagResourceResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1UntagResourceCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1UntagResourceCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
@@ -8,6 +8,9 @@ tslib_1.__exportStar(require("./DescribeScalableTargetsCommand"), exports);
|
|
|
8
8
|
tslib_1.__exportStar(require("./DescribeScalingActivitiesCommand"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./DescribeScalingPoliciesCommand"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./DescribeScheduledActionsCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./PutScalingPolicyCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./PutScheduledActionCommand"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./RegisterScalableTargetCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.RegisterScalableTargetResponseFilterSensitiveLog = exports.RegisterScalableTargetRequestFilterSensitiveLog = exports.PutScheduledActionResponseFilterSensitiveLog = void 0;
|
|
3
|
+
exports.ListTagsForResourceRequestFilterSensitiveLog = exports.DescribeScheduledActionsResponseFilterSensitiveLog = exports.ScheduledActionFilterSensitiveLog = exports.ScalableTargetActionFilterSensitiveLog = exports.DescribeScheduledActionsRequestFilterSensitiveLog = exports.DescribeScalingPoliciesResponseFilterSensitiveLog = exports.ScalingPolicyFilterSensitiveLog = exports.TargetTrackingScalingPolicyConfigurationFilterSensitiveLog = exports.PredefinedMetricSpecificationFilterSensitiveLog = exports.CustomizedMetricSpecificationFilterSensitiveLog = exports.TargetTrackingMetricDataQueryFilterSensitiveLog = exports.TargetTrackingMetricStatFilterSensitiveLog = exports.TargetTrackingMetricFilterSensitiveLog = exports.TargetTrackingMetricDimensionFilterSensitiveLog = exports.MetricDimensionFilterSensitiveLog = exports.StepScalingPolicyConfigurationFilterSensitiveLog = exports.StepAdjustmentFilterSensitiveLog = exports.DescribeScalingPoliciesRequestFilterSensitiveLog = exports.DescribeScalingActivitiesResponseFilterSensitiveLog = exports.ScalingActivityFilterSensitiveLog = exports.NotScaledReasonFilterSensitiveLog = exports.DescribeScalingActivitiesRequestFilterSensitiveLog = exports.DescribeScalableTargetsResponseFilterSensitiveLog = exports.ScalableTargetFilterSensitiveLog = exports.SuspendedStateFilterSensitiveLog = exports.DescribeScalableTargetsRequestFilterSensitiveLog = exports.DeregisterScalableTargetResponseFilterSensitiveLog = exports.DeregisterScalableTargetRequestFilterSensitiveLog = exports.DeleteScheduledActionResponseFilterSensitiveLog = exports.DeleteScheduledActionRequestFilterSensitiveLog = exports.DeleteScalingPolicyResponseFilterSensitiveLog = exports.DeleteScalingPolicyRequestFilterSensitiveLog = exports.AlarmFilterSensitiveLog = exports.TooManyTagsException = exports.LimitExceededException = exports.ResourceNotFoundException = exports.FailedResourceAccessException = exports.MetricType = exports.MetricStatistic = exports.MetricAggregationType = exports.PolicyType = exports.ScalingActivityStatusCode = exports.InvalidNextTokenException = exports.ValidationException = exports.ObjectNotFoundException = exports.InternalServiceException = exports.ServiceNamespace = exports.ScalableDimension = exports.ConcurrentUpdateException = exports.AdjustmentType = void 0;
|
|
4
|
+
exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RegisterScalableTargetResponseFilterSensitiveLog = exports.RegisterScalableTargetRequestFilterSensitiveLog = exports.PutScheduledActionResponseFilterSensitiveLog = exports.PutScheduledActionRequestFilterSensitiveLog = exports.PutScalingPolicyResponseFilterSensitiveLog = exports.PutScalingPolicyRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = void 0;
|
|
5
5
|
const ApplicationAutoScalingServiceException_1 = require("./ApplicationAutoScalingServiceException");
|
|
6
6
|
var AdjustmentType;
|
|
7
7
|
(function (AdjustmentType) {
|
|
@@ -185,6 +185,21 @@ class FailedResourceAccessException extends ApplicationAutoScalingServiceExcepti
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
exports.FailedResourceAccessException = FailedResourceAccessException;
|
|
188
|
+
class ResourceNotFoundException extends ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException {
|
|
189
|
+
constructor(opts) {
|
|
190
|
+
super({
|
|
191
|
+
name: "ResourceNotFoundException",
|
|
192
|
+
$fault: "client",
|
|
193
|
+
...opts,
|
|
194
|
+
});
|
|
195
|
+
this.name = "ResourceNotFoundException";
|
|
196
|
+
this.$fault = "client";
|
|
197
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
198
|
+
this.Message = opts.Message;
|
|
199
|
+
this.ResourceName = opts.ResourceName;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
188
203
|
class LimitExceededException extends ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException {
|
|
189
204
|
constructor(opts) {
|
|
190
205
|
super({
|
|
@@ -199,6 +214,21 @@ class LimitExceededException extends ApplicationAutoScalingServiceException_1.Ap
|
|
|
199
214
|
}
|
|
200
215
|
}
|
|
201
216
|
exports.LimitExceededException = LimitExceededException;
|
|
217
|
+
class TooManyTagsException extends ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException {
|
|
218
|
+
constructor(opts) {
|
|
219
|
+
super({
|
|
220
|
+
name: "TooManyTagsException",
|
|
221
|
+
$fault: "client",
|
|
222
|
+
...opts,
|
|
223
|
+
});
|
|
224
|
+
this.name = "TooManyTagsException";
|
|
225
|
+
this.$fault = "client";
|
|
226
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
227
|
+
this.Message = opts.Message;
|
|
228
|
+
this.ResourceName = opts.ResourceName;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
exports.TooManyTagsException = TooManyTagsException;
|
|
202
232
|
const AlarmFilterSensitiveLog = (obj) => ({
|
|
203
233
|
...obj,
|
|
204
234
|
});
|
|
@@ -327,6 +357,14 @@ const DescribeScheduledActionsResponseFilterSensitiveLog = (obj) => ({
|
|
|
327
357
|
...obj,
|
|
328
358
|
});
|
|
329
359
|
exports.DescribeScheduledActionsResponseFilterSensitiveLog = DescribeScheduledActionsResponseFilterSensitiveLog;
|
|
360
|
+
const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
361
|
+
...obj,
|
|
362
|
+
});
|
|
363
|
+
exports.ListTagsForResourceRequestFilterSensitiveLog = ListTagsForResourceRequestFilterSensitiveLog;
|
|
364
|
+
const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
365
|
+
...obj,
|
|
366
|
+
});
|
|
367
|
+
exports.ListTagsForResourceResponseFilterSensitiveLog = ListTagsForResourceResponseFilterSensitiveLog;
|
|
330
368
|
const PutScalingPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
331
369
|
...obj,
|
|
332
370
|
});
|
|
@@ -351,3 +389,19 @@ const RegisterScalableTargetResponseFilterSensitiveLog = (obj) => ({
|
|
|
351
389
|
...obj,
|
|
352
390
|
});
|
|
353
391
|
exports.RegisterScalableTargetResponseFilterSensitiveLog = RegisterScalableTargetResponseFilterSensitiveLog;
|
|
392
|
+
const TagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
393
|
+
...obj,
|
|
394
|
+
});
|
|
395
|
+
exports.TagResourceRequestFilterSensitiveLog = TagResourceRequestFilterSensitiveLog;
|
|
396
|
+
const TagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
397
|
+
...obj,
|
|
398
|
+
});
|
|
399
|
+
exports.TagResourceResponseFilterSensitiveLog = TagResourceResponseFilterSensitiveLog;
|
|
400
|
+
const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
401
|
+
...obj,
|
|
402
|
+
});
|
|
403
|
+
exports.UntagResourceRequestFilterSensitiveLog = UntagResourceRequestFilterSensitiveLog;
|
|
404
|
+
const UntagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
405
|
+
...obj,
|
|
406
|
+
});
|
|
407
|
+
exports.UntagResourceResponseFilterSensitiveLog = UntagResourceResponseFilterSensitiveLog;
|