@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
|
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
4
4
|
import { RegisterScalableTargetRequestFilterSensitiveLog, RegisterScalableTargetResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_1RegisterScalableTargetCommand, serializeAws_json1_1RegisterScalableTargetCommand, } from "../protocols/Aws_json1_1";
|
|
6
6
|
export class RegisterScalableTargetCommand extends $Command {
|
|
7
|
-
constructor(input) {
|
|
8
|
-
super();
|
|
9
|
-
this.input = input;
|
|
10
|
-
}
|
|
11
7
|
static getEndpointParameterInstructions() {
|
|
12
8
|
return {
|
|
13
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -16,6 +12,10 @@ export class RegisterScalableTargetCommand extends $Command {
|
|
|
16
12
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
13
|
};
|
|
18
14
|
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
20
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
21
|
this.middlewareStack.use(getEndpointPlugin(configuration, RegisterScalableTargetCommand.getEndpointParameterInstructions()));
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1TagResourceCommand, serializeAws_json1_1TagResourceCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class TagResourceCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ApplicationAutoScalingClient";
|
|
25
|
+
const commandName = "TagResourceCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1TagResourceCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1TagResourceCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1UntagResourceCommand, serializeAws_json1_1UntagResourceCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class UntagResourceCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ApplicationAutoScalingClient";
|
|
25
|
+
const commandName = "UntagResourceCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1UntagResourceCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1UntagResourceCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -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";
|
|
@@ -175,6 +175,20 @@ export class FailedResourceAccessException extends __BaseException {
|
|
|
175
175
|
this.Message = opts.Message;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
179
|
+
constructor(opts) {
|
|
180
|
+
super({
|
|
181
|
+
name: "ResourceNotFoundException",
|
|
182
|
+
$fault: "client",
|
|
183
|
+
...opts,
|
|
184
|
+
});
|
|
185
|
+
this.name = "ResourceNotFoundException";
|
|
186
|
+
this.$fault = "client";
|
|
187
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
188
|
+
this.Message = opts.Message;
|
|
189
|
+
this.ResourceName = opts.ResourceName;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
178
192
|
export class LimitExceededException extends __BaseException {
|
|
179
193
|
constructor(opts) {
|
|
180
194
|
super({
|
|
@@ -188,6 +202,20 @@ export class LimitExceededException extends __BaseException {
|
|
|
188
202
|
this.Message = opts.Message;
|
|
189
203
|
}
|
|
190
204
|
}
|
|
205
|
+
export class TooManyTagsException extends __BaseException {
|
|
206
|
+
constructor(opts) {
|
|
207
|
+
super({
|
|
208
|
+
name: "TooManyTagsException",
|
|
209
|
+
$fault: "client",
|
|
210
|
+
...opts,
|
|
211
|
+
});
|
|
212
|
+
this.name = "TooManyTagsException";
|
|
213
|
+
this.$fault = "client";
|
|
214
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
215
|
+
this.Message = opts.Message;
|
|
216
|
+
this.ResourceName = opts.ResourceName;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
191
219
|
export const AlarmFilterSensitiveLog = (obj) => ({
|
|
192
220
|
...obj,
|
|
193
221
|
});
|
|
@@ -284,6 +312,12 @@ export const ScheduledActionFilterSensitiveLog = (obj) => ({
|
|
|
284
312
|
export const DescribeScheduledActionsResponseFilterSensitiveLog = (obj) => ({
|
|
285
313
|
...obj,
|
|
286
314
|
});
|
|
315
|
+
export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
316
|
+
...obj,
|
|
317
|
+
});
|
|
318
|
+
export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
319
|
+
...obj,
|
|
320
|
+
});
|
|
287
321
|
export const PutScalingPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
288
322
|
...obj,
|
|
289
323
|
});
|
|
@@ -302,3 +336,15 @@ export const RegisterScalableTargetRequestFilterSensitiveLog = (obj) => ({
|
|
|
302
336
|
export const RegisterScalableTargetResponseFilterSensitiveLog = (obj) => ({
|
|
303
337
|
...obj,
|
|
304
338
|
});
|
|
339
|
+
export const TagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
340
|
+
...obj,
|
|
341
|
+
});
|
|
342
|
+
export const TagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
343
|
+
...obj,
|
|
344
|
+
});
|
|
345
|
+
export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
346
|
+
...obj,
|
|
347
|
+
});
|
|
348
|
+
export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
349
|
+
...obj,
|
|
350
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { ApplicationAutoScalingServiceException as __BaseException } from "../models/ApplicationAutoScalingServiceException";
|
|
4
|
-
import { ConcurrentUpdateException, FailedResourceAccessException, InternalServiceException, InvalidNextTokenException, LimitExceededException, ObjectNotFoundException, ValidationException, } from "../models/models_0";
|
|
4
|
+
import { ConcurrentUpdateException, FailedResourceAccessException, InternalServiceException, InvalidNextTokenException, LimitExceededException, ObjectNotFoundException, ResourceNotFoundException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const serializeAws_json1_1DeleteScalingPolicyCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -65,6 +65,15 @@ export const serializeAws_json1_1DescribeScheduledActionsCommand = async (input,
|
|
|
65
65
|
body = JSON.stringify(serializeAws_json1_1DescribeScheduledActionsRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
+
export const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.1",
|
|
71
|
+
"x-amz-target": "AnyScaleFrontendService.ListTagsForResource",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
68
77
|
export const serializeAws_json1_1PutScalingPolicyCommand = async (input, context) => {
|
|
69
78
|
const headers = {
|
|
70
79
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -92,6 +101,24 @@ export const serializeAws_json1_1RegisterScalableTargetCommand = async (input, c
|
|
|
92
101
|
body = JSON.stringify(serializeAws_json1_1RegisterScalableTargetRequest(input, context));
|
|
93
102
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
103
|
};
|
|
104
|
+
export const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
105
|
+
const headers = {
|
|
106
|
+
"content-type": "application/x-amz-json-1.1",
|
|
107
|
+
"x-amz-target": "AnyScaleFrontendService.TagResource",
|
|
108
|
+
};
|
|
109
|
+
let body;
|
|
110
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
111
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
+
};
|
|
113
|
+
export const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
114
|
+
const headers = {
|
|
115
|
+
"content-type": "application/x-amz-json-1.1",
|
|
116
|
+
"x-amz-target": "AnyScaleFrontendService.UntagResource",
|
|
117
|
+
};
|
|
118
|
+
let body;
|
|
119
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
120
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
+
};
|
|
95
122
|
export const deserializeAws_json1_1DeleteScalingPolicyCommand = async (output, context) => {
|
|
96
123
|
if (output.statusCode >= 300) {
|
|
97
124
|
return deserializeAws_json1_1DeleteScalingPolicyCommandError(output, context);
|
|
@@ -389,6 +416,39 @@ const deserializeAws_json1_1DescribeScheduledActionsCommandError = async (output
|
|
|
389
416
|
});
|
|
390
417
|
}
|
|
391
418
|
};
|
|
419
|
+
export const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
420
|
+
if (output.statusCode >= 300) {
|
|
421
|
+
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
422
|
+
}
|
|
423
|
+
const data = await parseBody(output.body, context);
|
|
424
|
+
let contents = {};
|
|
425
|
+
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
426
|
+
const response = {
|
|
427
|
+
$metadata: deserializeMetadata(output),
|
|
428
|
+
...contents,
|
|
429
|
+
};
|
|
430
|
+
return Promise.resolve(response);
|
|
431
|
+
};
|
|
432
|
+
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
433
|
+
const parsedOutput = {
|
|
434
|
+
...output,
|
|
435
|
+
body: await parseErrorBody(output.body, context),
|
|
436
|
+
};
|
|
437
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
438
|
+
switch (errorCode) {
|
|
439
|
+
case "ResourceNotFoundException":
|
|
440
|
+
case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
|
|
441
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
442
|
+
default:
|
|
443
|
+
const parsedBody = parsedOutput.body;
|
|
444
|
+
throwDefaultError({
|
|
445
|
+
output,
|
|
446
|
+
parsedBody,
|
|
447
|
+
exceptionCtor: __BaseException,
|
|
448
|
+
errorCode,
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
};
|
|
392
452
|
export const deserializeAws_json1_1PutScalingPolicyCommand = async (output, context) => {
|
|
393
453
|
if (output.statusCode >= 300) {
|
|
394
454
|
return deserializeAws_json1_1PutScalingPolicyCommandError(output, context);
|
|
@@ -524,6 +584,81 @@ const deserializeAws_json1_1RegisterScalableTargetCommandError = async (output,
|
|
|
524
584
|
});
|
|
525
585
|
}
|
|
526
586
|
};
|
|
587
|
+
export const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
588
|
+
if (output.statusCode >= 300) {
|
|
589
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
590
|
+
}
|
|
591
|
+
const data = await parseBody(output.body, context);
|
|
592
|
+
let contents = {};
|
|
593
|
+
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
594
|
+
const response = {
|
|
595
|
+
$metadata: deserializeMetadata(output),
|
|
596
|
+
...contents,
|
|
597
|
+
};
|
|
598
|
+
return Promise.resolve(response);
|
|
599
|
+
};
|
|
600
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
601
|
+
const parsedOutput = {
|
|
602
|
+
...output,
|
|
603
|
+
body: await parseErrorBody(output.body, context),
|
|
604
|
+
};
|
|
605
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
606
|
+
switch (errorCode) {
|
|
607
|
+
case "ResourceNotFoundException":
|
|
608
|
+
case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
|
|
609
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
610
|
+
case "TooManyTagsException":
|
|
611
|
+
case "com.amazonaws.applicationautoscaling#TooManyTagsException":
|
|
612
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
613
|
+
case "ValidationException":
|
|
614
|
+
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
615
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
616
|
+
default:
|
|
617
|
+
const parsedBody = parsedOutput.body;
|
|
618
|
+
throwDefaultError({
|
|
619
|
+
output,
|
|
620
|
+
parsedBody,
|
|
621
|
+
exceptionCtor: __BaseException,
|
|
622
|
+
errorCode,
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
export const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
627
|
+
if (output.statusCode >= 300) {
|
|
628
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
629
|
+
}
|
|
630
|
+
const data = await parseBody(output.body, context);
|
|
631
|
+
let contents = {};
|
|
632
|
+
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
633
|
+
const response = {
|
|
634
|
+
$metadata: deserializeMetadata(output),
|
|
635
|
+
...contents,
|
|
636
|
+
};
|
|
637
|
+
return Promise.resolve(response);
|
|
638
|
+
};
|
|
639
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
640
|
+
const parsedOutput = {
|
|
641
|
+
...output,
|
|
642
|
+
body: await parseErrorBody(output.body, context),
|
|
643
|
+
};
|
|
644
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
645
|
+
switch (errorCode) {
|
|
646
|
+
case "ResourceNotFoundException":
|
|
647
|
+
case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
|
|
648
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
649
|
+
case "ValidationException":
|
|
650
|
+
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
651
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
652
|
+
default:
|
|
653
|
+
const parsedBody = parsedOutput.body;
|
|
654
|
+
throwDefaultError({
|
|
655
|
+
output,
|
|
656
|
+
parsedBody,
|
|
657
|
+
exceptionCtor: __BaseException,
|
|
658
|
+
errorCode,
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
};
|
|
527
662
|
const deserializeAws_json1_1ConcurrentUpdateExceptionResponse = async (parsedOutput, context) => {
|
|
528
663
|
const body = parsedOutput.body;
|
|
529
664
|
const deserialized = deserializeAws_json1_1ConcurrentUpdateException(body, context);
|
|
@@ -578,6 +713,24 @@ const deserializeAws_json1_1ObjectNotFoundExceptionResponse = async (parsedOutpu
|
|
|
578
713
|
});
|
|
579
714
|
return __decorateServiceException(exception, body);
|
|
580
715
|
};
|
|
716
|
+
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
717
|
+
const body = parsedOutput.body;
|
|
718
|
+
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
719
|
+
const exception = new ResourceNotFoundException({
|
|
720
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
721
|
+
...deserialized,
|
|
722
|
+
});
|
|
723
|
+
return __decorateServiceException(exception, body);
|
|
724
|
+
};
|
|
725
|
+
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
726
|
+
const body = parsedOutput.body;
|
|
727
|
+
const deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
728
|
+
const exception = new TooManyTagsException({
|
|
729
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
730
|
+
...deserialized,
|
|
731
|
+
});
|
|
732
|
+
return __decorateServiceException(exception, body);
|
|
733
|
+
};
|
|
581
734
|
const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
582
735
|
const body = parsedOutput.body;
|
|
583
736
|
const deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
@@ -667,6 +820,11 @@ const serializeAws_json1_1DescribeScheduledActionsRequest = (input, context) =>
|
|
|
667
820
|
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
668
821
|
};
|
|
669
822
|
};
|
|
823
|
+
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
824
|
+
return {
|
|
825
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
826
|
+
};
|
|
827
|
+
};
|
|
670
828
|
const serializeAws_json1_1MetricDimension = (input, context) => {
|
|
671
829
|
return {
|
|
672
830
|
...(input.Name != null && { Name: input.Name }),
|
|
@@ -727,6 +885,7 @@ const serializeAws_json1_1RegisterScalableTargetRequest = (input, context) => {
|
|
|
727
885
|
...(input.SuspendedState != null && {
|
|
728
886
|
SuspendedState: serializeAws_json1_1SuspendedState(input.SuspendedState, context),
|
|
729
887
|
}),
|
|
888
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
730
889
|
};
|
|
731
890
|
};
|
|
732
891
|
const serializeAws_json1_1ResourceIdsMaxLen1600 = (input, context) => {
|
|
@@ -778,6 +937,28 @@ const serializeAws_json1_1SuspendedState = (input, context) => {
|
|
|
778
937
|
...(input.ScheduledScalingSuspended != null && { ScheduledScalingSuspended: input.ScheduledScalingSuspended }),
|
|
779
938
|
};
|
|
780
939
|
};
|
|
940
|
+
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
941
|
+
return input
|
|
942
|
+
.filter((e) => e != null)
|
|
943
|
+
.map((entry) => {
|
|
944
|
+
return entry;
|
|
945
|
+
});
|
|
946
|
+
};
|
|
947
|
+
const serializeAws_json1_1TagMap = (input, context) => {
|
|
948
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
949
|
+
if (value === null) {
|
|
950
|
+
return acc;
|
|
951
|
+
}
|
|
952
|
+
acc[key] = value;
|
|
953
|
+
return acc;
|
|
954
|
+
}, {});
|
|
955
|
+
};
|
|
956
|
+
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
957
|
+
return {
|
|
958
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
959
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
960
|
+
};
|
|
961
|
+
};
|
|
781
962
|
const serializeAws_json1_1TargetTrackingMetric = (input, context) => {
|
|
782
963
|
return {
|
|
783
964
|
...(input.Dimensions != null && {
|
|
@@ -839,6 +1020,12 @@ const serializeAws_json1_1TargetTrackingScalingPolicyConfiguration = (input, con
|
|
|
839
1020
|
...(input.TargetValue != null && { TargetValue: __serializeFloat(input.TargetValue) }),
|
|
840
1021
|
};
|
|
841
1022
|
};
|
|
1023
|
+
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
1024
|
+
return {
|
|
1025
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1026
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
842
1029
|
const deserializeAws_json1_1Alarm = (output, context) => {
|
|
843
1030
|
return {
|
|
844
1031
|
AlarmARN: __expectString(output.AlarmARN),
|
|
@@ -934,6 +1121,11 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
934
1121
|
Message: __expectString(output.Message),
|
|
935
1122
|
};
|
|
936
1123
|
};
|
|
1124
|
+
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
1125
|
+
return {
|
|
1126
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagMap(output.Tags, context) : undefined,
|
|
1127
|
+
};
|
|
1128
|
+
};
|
|
937
1129
|
const deserializeAws_json1_1MetricDimension = (output, context) => {
|
|
938
1130
|
return {
|
|
939
1131
|
Name: __expectString(output.Name),
|
|
@@ -991,7 +1183,15 @@ const deserializeAws_json1_1PutScheduledActionResponse = (output, context) => {
|
|
|
991
1183
|
return {};
|
|
992
1184
|
};
|
|
993
1185
|
const deserializeAws_json1_1RegisterScalableTargetResponse = (output, context) => {
|
|
994
|
-
return {
|
|
1186
|
+
return {
|
|
1187
|
+
ScalableTargetARN: __expectString(output.ScalableTargetARN),
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
1191
|
+
return {
|
|
1192
|
+
Message: __expectString(output.Message),
|
|
1193
|
+
ResourceName: __expectString(output.ResourceName),
|
|
1194
|
+
};
|
|
995
1195
|
};
|
|
996
1196
|
const deserializeAws_json1_1ScalableTarget = (output, context) => {
|
|
997
1197
|
return {
|
|
@@ -1003,6 +1203,7 @@ const deserializeAws_json1_1ScalableTarget = (output, context) => {
|
|
|
1003
1203
|
ResourceId: __expectString(output.ResourceId),
|
|
1004
1204
|
RoleARN: __expectString(output.RoleARN),
|
|
1005
1205
|
ScalableDimension: __expectString(output.ScalableDimension),
|
|
1206
|
+
ScalableTargetARN: __expectString(output.ScalableTargetARN),
|
|
1006
1207
|
ServiceNamespace: __expectString(output.ServiceNamespace),
|
|
1007
1208
|
SuspendedState: output.SuspendedState != null ? deserializeAws_json1_1SuspendedState(output.SuspendedState, context) : undefined,
|
|
1008
1209
|
};
|
|
@@ -1150,6 +1351,18 @@ const deserializeAws_json1_1SuspendedState = (output, context) => {
|
|
|
1150
1351
|
ScheduledScalingSuspended: __expectBoolean(output.ScheduledScalingSuspended),
|
|
1151
1352
|
};
|
|
1152
1353
|
};
|
|
1354
|
+
const deserializeAws_json1_1TagMap = (output, context) => {
|
|
1355
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1356
|
+
if (value === null) {
|
|
1357
|
+
return acc;
|
|
1358
|
+
}
|
|
1359
|
+
acc[key] = __expectString(value);
|
|
1360
|
+
return acc;
|
|
1361
|
+
}, {});
|
|
1362
|
+
};
|
|
1363
|
+
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
1364
|
+
return {};
|
|
1365
|
+
};
|
|
1153
1366
|
const deserializeAws_json1_1TargetTrackingMetric = (output, context) => {
|
|
1154
1367
|
return {
|
|
1155
1368
|
Dimensions: output.Dimensions != null
|
|
@@ -1219,6 +1432,15 @@ const deserializeAws_json1_1TargetTrackingScalingPolicyConfiguration = (output,
|
|
|
1219
1432
|
TargetValue: __limitedParseDouble(output.TargetValue),
|
|
1220
1433
|
};
|
|
1221
1434
|
};
|
|
1435
|
+
const deserializeAws_json1_1TooManyTagsException = (output, context) => {
|
|
1436
|
+
return {
|
|
1437
|
+
Message: __expectString(output.Message),
|
|
1438
|
+
ResourceName: __expectString(output.ResourceName),
|
|
1439
|
+
};
|
|
1440
|
+
};
|
|
1441
|
+
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
1442
|
+
return {};
|
|
1443
|
+
};
|
|
1222
1444
|
const deserializeAws_json1_1ValidationException = (output, context) => {
|
|
1223
1445
|
return {
|
|
1224
1446
|
Message: __expectString(output.Message),
|
|
@@ -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
|
/**
|
|
14
17
|
* <p>With Application Auto Scaling, you can configure automatic scaling for the following
|
|
15
18
|
* resources:</p>
|
|
@@ -150,6 +153,14 @@ export declare class ApplicationAutoScaling extends ApplicationAutoScalingClient
|
|
|
150
153
|
describeScheduledActions(args: DescribeScheduledActionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeScheduledActionsCommandOutput>;
|
|
151
154
|
describeScheduledActions(args: DescribeScheduledActionsCommandInput, cb: (err: any, data?: DescribeScheduledActionsCommandOutput) => void): void;
|
|
152
155
|
describeScheduledActions(args: DescribeScheduledActionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeScheduledActionsCommandOutput) => void): void;
|
|
156
|
+
/**
|
|
157
|
+
* <p>Returns all the tags on the specified Application Auto Scaling scalable target.</p>
|
|
158
|
+
* <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
|
|
159
|
+
* resources</a> in the <i>Amazon Web Services General Reference</i>.</p>
|
|
160
|
+
*/
|
|
161
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
162
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
163
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
153
164
|
/**
|
|
154
165
|
* <p>Creates or updates a scaling policy for an Application Auto Scaling scalable target.</p>
|
|
155
166
|
* <p>Each scalable target is identified by a service namespace, resource ID, and scalable
|
|
@@ -173,8 +184,8 @@ export declare class ApplicationAutoScaling extends ApplicationAutoScalingClient
|
|
|
173
184
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html">Target tracking scaling policies</a> and <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html">Step scaling policies</a> in the <i>Application Auto Scaling User Guide</i>.</p>
|
|
174
185
|
* <note>
|
|
175
186
|
* <p>If a scalable target is deregistered, the scalable target is no longer available to
|
|
176
|
-
*
|
|
177
|
-
*
|
|
187
|
+
* use scaling policies. Any scaling policies that were specified for the scalable target
|
|
188
|
+
* are deleted.</p>
|
|
178
189
|
* </note>
|
|
179
190
|
*/
|
|
180
191
|
putScalingPolicy(args: PutScalingPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutScalingPolicyCommandOutput>;
|
|
@@ -186,7 +197,7 @@ export declare class ApplicationAutoScaling extends ApplicationAutoScalingClient
|
|
|
186
197
|
* dimension. A scheduled action applies to the scalable target identified by those three
|
|
187
198
|
* attributes. You cannot create a scheduled action until you have registered the resource as
|
|
188
199
|
* a scalable target.</p>
|
|
189
|
-
* <p>When start and end times
|
|
200
|
+
* <p>When you specify start and end times with a recurring schedule using a cron expression
|
|
190
201
|
* or rates, they form the boundaries for when the recurring action starts and stops.</p>
|
|
191
202
|
* <p>To update a scheduled action, specify the parameters that you want to change. If you
|
|
192
203
|
* don't specify start and end times, the old values are deleted.</p>
|
|
@@ -201,7 +212,8 @@ export declare class ApplicationAutoScaling extends ApplicationAutoScalingClient
|
|
|
201
212
|
putScheduledAction(args: PutScheduledActionCommandInput, cb: (err: any, data?: PutScheduledActionCommandOutput) => void): void;
|
|
202
213
|
putScheduledAction(args: PutScheduledActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutScheduledActionCommandOutput) => void): void;
|
|
203
214
|
/**
|
|
204
|
-
* <p>Registers or updates a scalable target, the resource that you want to
|
|
215
|
+
* <p>Registers or updates a scalable target, which is the resource that you want to
|
|
216
|
+
* scale.</p>
|
|
205
217
|
* <p>Scalable targets are uniquely identified by the combination of resource ID, scalable
|
|
206
218
|
* dimension, and namespace, which represents some capacity dimension of the underlying
|
|
207
219
|
* service.</p>
|
|
@@ -209,9 +221,9 @@ export declare class ApplicationAutoScaling extends ApplicationAutoScalingClient
|
|
|
209
221
|
* maximum capacity. If the specified resource is not active in the target service, this
|
|
210
222
|
* operation does not change the resource's current capacity. Otherwise, it changes the
|
|
211
223
|
* resource's current capacity to a value that is inside of this range.</p>
|
|
212
|
-
* <p>If you
|
|
213
|
-
*
|
|
214
|
-
*
|
|
224
|
+
* <p>If you add a scaling policy, current capacity is adjustable within the specified range
|
|
225
|
+
* when scaling starts. Application Auto Scaling scaling policies will not scale capacity to values that are
|
|
226
|
+
* outside of the minimum and maximum range.</p>
|
|
215
227
|
* <p>After you register a scalable target, you do not need to register it again to use other
|
|
216
228
|
* Application Auto Scaling operations. To see which resources have been registered, use <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html">DescribeScalableTargets</a>. You can also view the scaling policies for a service
|
|
217
229
|
* namespace by using <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html">DescribeScalableTargets</a>. If you no longer need a scalable target, you can
|
|
@@ -220,14 +232,44 @@ export declare class ApplicationAutoScaling extends ApplicationAutoScalingClient
|
|
|
220
232
|
* parameters that identify the scalable target: resource ID, scalable dimension, and
|
|
221
233
|
* namespace. Any parameters that you don't specify are not changed by this update request. </p>
|
|
222
234
|
* <note>
|
|
223
|
-
* <p>If you call the <code>RegisterScalableTarget</code> API to
|
|
224
|
-
* scalable target,
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
235
|
+
* <p>If you call the <code>RegisterScalableTarget</code> API operation to create a
|
|
236
|
+
* scalable target, there might be a brief delay until the operation achieves <a href="https://en.wikipedia.org/wiki/Eventual_consistency">eventual
|
|
237
|
+
* consistency</a>. You might become aware of this brief delay if you get unexpected
|
|
238
|
+
* errors when performing sequential operations. The typical strategy is to retry the
|
|
239
|
+
* request, and some Amazon Web Services SDKs include automatic backoff and retry logic.</p>
|
|
240
|
+
* <p>If you call the <code>RegisterScalableTarget</code> API operation to update an
|
|
241
|
+
* existing scalable target, Application Auto Scaling retrieves the current capacity of the resource. If
|
|
242
|
+
* it's below the minimum capacity or above the maximum capacity, Application Auto Scaling adjusts the
|
|
243
|
+
* capacity of the scalable target to place it within these bounds, even if you don't
|
|
244
|
+
* include the <code>MinCapacity</code> or <code>MaxCapacity</code> request
|
|
245
|
+
* parameters.</p>
|
|
228
246
|
* </note>
|
|
229
247
|
*/
|
|
230
248
|
registerScalableTarget(args: RegisterScalableTargetCommandInput, options?: __HttpHandlerOptions): Promise<RegisterScalableTargetCommandOutput>;
|
|
231
249
|
registerScalableTarget(args: RegisterScalableTargetCommandInput, cb: (err: any, data?: RegisterScalableTargetCommandOutput) => void): void;
|
|
232
250
|
registerScalableTarget(args: RegisterScalableTargetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterScalableTargetCommandOutput) => void): void;
|
|
251
|
+
/**
|
|
252
|
+
* <p>Adds or edits tags on an Application Auto Scaling scalable target.</p>
|
|
253
|
+
* <p>Each tag consists of a tag key and a tag value, which are both case-sensitive strings.
|
|
254
|
+
* To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag
|
|
255
|
+
* key and a new tag value.</p>
|
|
256
|
+
* <p>You can use this operation to tag an Application Auto Scaling scalable target, but you cannot tag a
|
|
257
|
+
* scaling policy or scheduled action.</p>
|
|
258
|
+
* <p>You can also add tags to an Application Auto Scaling scalable target while creating it
|
|
259
|
+
* (<code>RegisterScalableTarget</code>).</p>
|
|
260
|
+
* <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
|
|
261
|
+
* resources</a> in the <i>Amazon Web Services General Reference</i>.</p>
|
|
262
|
+
* <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
|
|
263
|
+
* for Application Auto Scaling</a> in the <i>Application Auto Scaling User Guide</i>.</p>
|
|
264
|
+
*/
|
|
265
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
266
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
267
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
268
|
+
/**
|
|
269
|
+
* <p>Deletes tags from an Application Auto Scaling scalable target. To delete a tag, specify the tag key and
|
|
270
|
+
* the Application Auto Scaling scalable target.</p>
|
|
271
|
+
*/
|
|
272
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
273
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
274
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
233
275
|
}
|