@aws-sdk/client-application-auto-scaling 3.310.0 → 3.315.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/dist-cjs/protocols/Aws_json1_1.js +196 -708
- package/dist-es/protocols/Aws_json1_1.js +197 -709
- package/package.json +6 -6
|
@@ -6,132 +6,93 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
6
6
|
const ApplicationAutoScalingServiceException_1 = require("../models/ApplicationAutoScalingServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_DeleteScalingPolicyCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.1",
|
|
11
|
-
"x-amz-target": "AnyScaleFrontendService.DeleteScalingPolicy",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("DeleteScalingPolicy");
|
|
13
10
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_DeleteScalingPolicyCommand = se_DeleteScalingPolicyCommand;
|
|
18
15
|
const se_DeleteScheduledActionCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.1",
|
|
21
|
-
"x-amz-target": "AnyScaleFrontendService.DeleteScheduledAction",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("DeleteScheduledAction");
|
|
23
17
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_DeleteScheduledActionCommand = se_DeleteScheduledActionCommand;
|
|
28
22
|
const se_DeregisterScalableTargetCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.1",
|
|
31
|
-
"x-amz-target": "AnyScaleFrontendService.DeregisterScalableTarget",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("DeregisterScalableTarget");
|
|
33
24
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_DeregisterScalableTargetCommand = se_DeregisterScalableTargetCommand;
|
|
38
29
|
const se_DescribeScalableTargetsCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.1",
|
|
41
|
-
"x-amz-target": "AnyScaleFrontendService.DescribeScalableTargets",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DescribeScalableTargets");
|
|
43
31
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
34
|
};
|
|
47
35
|
exports.se_DescribeScalableTargetsCommand = se_DescribeScalableTargetsCommand;
|
|
48
36
|
const se_DescribeScalingActivitiesCommand = async (input, context) => {
|
|
49
|
-
const headers =
|
|
50
|
-
"content-type": "application/x-amz-json-1.1",
|
|
51
|
-
"x-amz-target": "AnyScaleFrontendService.DescribeScalingActivities",
|
|
52
|
-
};
|
|
37
|
+
const headers = sharedHeaders("DescribeScalingActivities");
|
|
53
38
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
41
|
};
|
|
57
42
|
exports.se_DescribeScalingActivitiesCommand = se_DescribeScalingActivitiesCommand;
|
|
58
43
|
const se_DescribeScalingPoliciesCommand = async (input, context) => {
|
|
59
|
-
const headers =
|
|
60
|
-
"content-type": "application/x-amz-json-1.1",
|
|
61
|
-
"x-amz-target": "AnyScaleFrontendService.DescribeScalingPolicies",
|
|
62
|
-
};
|
|
44
|
+
const headers = sharedHeaders("DescribeScalingPolicies");
|
|
63
45
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
65
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
48
|
};
|
|
67
49
|
exports.se_DescribeScalingPoliciesCommand = se_DescribeScalingPoliciesCommand;
|
|
68
50
|
const se_DescribeScheduledActionsCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AnyScaleFrontendService.DescribeScheduledActions",
|
|
72
|
-
};
|
|
51
|
+
const headers = sharedHeaders("DescribeScheduledActions");
|
|
73
52
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
55
|
};
|
|
77
56
|
exports.se_DescribeScheduledActionsCommand = se_DescribeScheduledActionsCommand;
|
|
78
57
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.1",
|
|
81
|
-
"x-amz-target": "AnyScaleFrontendService.ListTagsForResource",
|
|
82
|
-
};
|
|
58
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
83
59
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
62
|
};
|
|
87
63
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
88
64
|
const se_PutScalingPolicyCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-amz-json-1.1",
|
|
91
|
-
"x-amz-target": "AnyScaleFrontendService.PutScalingPolicy",
|
|
92
|
-
};
|
|
65
|
+
const headers = sharedHeaders("PutScalingPolicy");
|
|
93
66
|
let body;
|
|
94
67
|
body = JSON.stringify(se_PutScalingPolicyRequest(input, context));
|
|
95
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
69
|
};
|
|
97
70
|
exports.se_PutScalingPolicyCommand = se_PutScalingPolicyCommand;
|
|
98
71
|
const se_PutScheduledActionCommand = async (input, context) => {
|
|
99
|
-
const headers =
|
|
100
|
-
"content-type": "application/x-amz-json-1.1",
|
|
101
|
-
"x-amz-target": "AnyScaleFrontendService.PutScheduledAction",
|
|
102
|
-
};
|
|
72
|
+
const headers = sharedHeaders("PutScheduledAction");
|
|
103
73
|
let body;
|
|
104
74
|
body = JSON.stringify(se_PutScheduledActionRequest(input, context));
|
|
105
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
76
|
};
|
|
107
77
|
exports.se_PutScheduledActionCommand = se_PutScheduledActionCommand;
|
|
108
78
|
const se_RegisterScalableTargetCommand = async (input, context) => {
|
|
109
|
-
const headers =
|
|
110
|
-
"content-type": "application/x-amz-json-1.1",
|
|
111
|
-
"x-amz-target": "AnyScaleFrontendService.RegisterScalableTarget",
|
|
112
|
-
};
|
|
79
|
+
const headers = sharedHeaders("RegisterScalableTarget");
|
|
113
80
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
115
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
83
|
};
|
|
117
84
|
exports.se_RegisterScalableTargetCommand = se_RegisterScalableTargetCommand;
|
|
118
85
|
const se_TagResourceCommand = async (input, context) => {
|
|
119
|
-
const headers =
|
|
120
|
-
"content-type": "application/x-amz-json-1.1",
|
|
121
|
-
"x-amz-target": "AnyScaleFrontendService.TagResource",
|
|
122
|
-
};
|
|
86
|
+
const headers = sharedHeaders("TagResource");
|
|
123
87
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
90
|
};
|
|
127
91
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
128
92
|
const se_UntagResourceCommand = async (input, context) => {
|
|
129
|
-
const headers =
|
|
130
|
-
"content-type": "application/x-amz-json-1.1",
|
|
131
|
-
"x-amz-target": "AnyScaleFrontendService.UntagResource",
|
|
132
|
-
};
|
|
93
|
+
const headers = sharedHeaders("UntagResource");
|
|
133
94
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
135
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
97
|
};
|
|
137
98
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
@@ -141,12 +102,12 @@ const de_DeleteScalingPolicyCommand = async (output, context) => {
|
|
|
141
102
|
}
|
|
142
103
|
const data = await parseBody(output.body, context);
|
|
143
104
|
let contents = {};
|
|
144
|
-
contents =
|
|
105
|
+
contents = (0, smithy_client_1._json)(data);
|
|
145
106
|
const response = {
|
|
146
107
|
$metadata: deserializeMetadata(output),
|
|
147
108
|
...contents,
|
|
148
109
|
};
|
|
149
|
-
return
|
|
110
|
+
return response;
|
|
150
111
|
};
|
|
151
112
|
exports.de_DeleteScalingPolicyCommand = de_DeleteScalingPolicyCommand;
|
|
152
113
|
const de_DeleteScalingPolicyCommandError = async (output, context) => {
|
|
@@ -170,10 +131,9 @@ const de_DeleteScalingPolicyCommandError = async (output, context) => {
|
|
|
170
131
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
171
132
|
default:
|
|
172
133
|
const parsedBody = parsedOutput.body;
|
|
173
|
-
|
|
134
|
+
return throwDefaultError({
|
|
174
135
|
output,
|
|
175
136
|
parsedBody,
|
|
176
|
-
exceptionCtor: ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException,
|
|
177
137
|
errorCode,
|
|
178
138
|
});
|
|
179
139
|
}
|
|
@@ -184,12 +144,12 @@ const de_DeleteScheduledActionCommand = async (output, context) => {
|
|
|
184
144
|
}
|
|
185
145
|
const data = await parseBody(output.body, context);
|
|
186
146
|
let contents = {};
|
|
187
|
-
contents =
|
|
147
|
+
contents = (0, smithy_client_1._json)(data);
|
|
188
148
|
const response = {
|
|
189
149
|
$metadata: deserializeMetadata(output),
|
|
190
150
|
...contents,
|
|
191
151
|
};
|
|
192
|
-
return
|
|
152
|
+
return response;
|
|
193
153
|
};
|
|
194
154
|
exports.de_DeleteScheduledActionCommand = de_DeleteScheduledActionCommand;
|
|
195
155
|
const de_DeleteScheduledActionCommandError = async (output, context) => {
|
|
@@ -213,10 +173,9 @@ const de_DeleteScheduledActionCommandError = async (output, context) => {
|
|
|
213
173
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
214
174
|
default:
|
|
215
175
|
const parsedBody = parsedOutput.body;
|
|
216
|
-
|
|
176
|
+
return throwDefaultError({
|
|
217
177
|
output,
|
|
218
178
|
parsedBody,
|
|
219
|
-
exceptionCtor: ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException,
|
|
220
179
|
errorCode,
|
|
221
180
|
});
|
|
222
181
|
}
|
|
@@ -227,12 +186,12 @@ const de_DeregisterScalableTargetCommand = async (output, context) => {
|
|
|
227
186
|
}
|
|
228
187
|
const data = await parseBody(output.body, context);
|
|
229
188
|
let contents = {};
|
|
230
|
-
contents =
|
|
189
|
+
contents = (0, smithy_client_1._json)(data);
|
|
231
190
|
const response = {
|
|
232
191
|
$metadata: deserializeMetadata(output),
|
|
233
192
|
...contents,
|
|
234
193
|
};
|
|
235
|
-
return
|
|
194
|
+
return response;
|
|
236
195
|
};
|
|
237
196
|
exports.de_DeregisterScalableTargetCommand = de_DeregisterScalableTargetCommand;
|
|
238
197
|
const de_DeregisterScalableTargetCommandError = async (output, context) => {
|
|
@@ -256,10 +215,9 @@ const de_DeregisterScalableTargetCommandError = async (output, context) => {
|
|
|
256
215
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
257
216
|
default:
|
|
258
217
|
const parsedBody = parsedOutput.body;
|
|
259
|
-
|
|
218
|
+
return throwDefaultError({
|
|
260
219
|
output,
|
|
261
220
|
parsedBody,
|
|
262
|
-
exceptionCtor: ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException,
|
|
263
221
|
errorCode,
|
|
264
222
|
});
|
|
265
223
|
}
|
|
@@ -275,7 +233,7 @@ const de_DescribeScalableTargetsCommand = async (output, context) => {
|
|
|
275
233
|
$metadata: deserializeMetadata(output),
|
|
276
234
|
...contents,
|
|
277
235
|
};
|
|
278
|
-
return
|
|
236
|
+
return response;
|
|
279
237
|
};
|
|
280
238
|
exports.de_DescribeScalableTargetsCommand = de_DescribeScalableTargetsCommand;
|
|
281
239
|
const de_DescribeScalableTargetsCommandError = async (output, context) => {
|
|
@@ -299,10 +257,9 @@ const de_DescribeScalableTargetsCommandError = async (output, context) => {
|
|
|
299
257
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
300
258
|
default:
|
|
301
259
|
const parsedBody = parsedOutput.body;
|
|
302
|
-
|
|
260
|
+
return throwDefaultError({
|
|
303
261
|
output,
|
|
304
262
|
parsedBody,
|
|
305
|
-
exceptionCtor: ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException,
|
|
306
263
|
errorCode,
|
|
307
264
|
});
|
|
308
265
|
}
|
|
@@ -318,7 +275,7 @@ const de_DescribeScalingActivitiesCommand = async (output, context) => {
|
|
|
318
275
|
$metadata: deserializeMetadata(output),
|
|
319
276
|
...contents,
|
|
320
277
|
};
|
|
321
|
-
return
|
|
278
|
+
return response;
|
|
322
279
|
};
|
|
323
280
|
exports.de_DescribeScalingActivitiesCommand = de_DescribeScalingActivitiesCommand;
|
|
324
281
|
const de_DescribeScalingActivitiesCommandError = async (output, context) => {
|
|
@@ -342,10 +299,9 @@ const de_DescribeScalingActivitiesCommandError = async (output, context) => {
|
|
|
342
299
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
343
300
|
default:
|
|
344
301
|
const parsedBody = parsedOutput.body;
|
|
345
|
-
|
|
302
|
+
return throwDefaultError({
|
|
346
303
|
output,
|
|
347
304
|
parsedBody,
|
|
348
|
-
exceptionCtor: ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException,
|
|
349
305
|
errorCode,
|
|
350
306
|
});
|
|
351
307
|
}
|
|
@@ -361,7 +317,7 @@ const de_DescribeScalingPoliciesCommand = async (output, context) => {
|
|
|
361
317
|
$metadata: deserializeMetadata(output),
|
|
362
318
|
...contents,
|
|
363
319
|
};
|
|
364
|
-
return
|
|
320
|
+
return response;
|
|
365
321
|
};
|
|
366
322
|
exports.de_DescribeScalingPoliciesCommand = de_DescribeScalingPoliciesCommand;
|
|
367
323
|
const de_DescribeScalingPoliciesCommandError = async (output, context) => {
|
|
@@ -388,10 +344,9 @@ const de_DescribeScalingPoliciesCommandError = async (output, context) => {
|
|
|
388
344
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
389
345
|
default:
|
|
390
346
|
const parsedBody = parsedOutput.body;
|
|
391
|
-
|
|
347
|
+
return throwDefaultError({
|
|
392
348
|
output,
|
|
393
349
|
parsedBody,
|
|
394
|
-
exceptionCtor: ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException,
|
|
395
350
|
errorCode,
|
|
396
351
|
});
|
|
397
352
|
}
|
|
@@ -407,7 +362,7 @@ const de_DescribeScheduledActionsCommand = async (output, context) => {
|
|
|
407
362
|
$metadata: deserializeMetadata(output),
|
|
408
363
|
...contents,
|
|
409
364
|
};
|
|
410
|
-
return
|
|
365
|
+
return response;
|
|
411
366
|
};
|
|
412
367
|
exports.de_DescribeScheduledActionsCommand = de_DescribeScheduledActionsCommand;
|
|
413
368
|
const de_DescribeScheduledActionsCommandError = async (output, context) => {
|
|
@@ -431,10 +386,9 @@ const de_DescribeScheduledActionsCommandError = async (output, context) => {
|
|
|
431
386
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
432
387
|
default:
|
|
433
388
|
const parsedBody = parsedOutput.body;
|
|
434
|
-
|
|
389
|
+
return throwDefaultError({
|
|
435
390
|
output,
|
|
436
391
|
parsedBody,
|
|
437
|
-
exceptionCtor: ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException,
|
|
438
392
|
errorCode,
|
|
439
393
|
});
|
|
440
394
|
}
|
|
@@ -445,12 +399,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
445
399
|
}
|
|
446
400
|
const data = await parseBody(output.body, context);
|
|
447
401
|
let contents = {};
|
|
448
|
-
contents =
|
|
402
|
+
contents = (0, smithy_client_1._json)(data);
|
|
449
403
|
const response = {
|
|
450
404
|
$metadata: deserializeMetadata(output),
|
|
451
405
|
...contents,
|
|
452
406
|
};
|
|
453
|
-
return
|
|
407
|
+
return response;
|
|
454
408
|
};
|
|
455
409
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
456
410
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -465,10 +419,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
465
419
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
466
420
|
default:
|
|
467
421
|
const parsedBody = parsedOutput.body;
|
|
468
|
-
|
|
422
|
+
return throwDefaultError({
|
|
469
423
|
output,
|
|
470
424
|
parsedBody,
|
|
471
|
-
exceptionCtor: ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException,
|
|
472
425
|
errorCode,
|
|
473
426
|
});
|
|
474
427
|
}
|
|
@@ -479,12 +432,12 @@ const de_PutScalingPolicyCommand = async (output, context) => {
|
|
|
479
432
|
}
|
|
480
433
|
const data = await parseBody(output.body, context);
|
|
481
434
|
let contents = {};
|
|
482
|
-
contents =
|
|
435
|
+
contents = (0, smithy_client_1._json)(data);
|
|
483
436
|
const response = {
|
|
484
437
|
$metadata: deserializeMetadata(output),
|
|
485
438
|
...contents,
|
|
486
439
|
};
|
|
487
|
-
return
|
|
440
|
+
return response;
|
|
488
441
|
};
|
|
489
442
|
exports.de_PutScalingPolicyCommand = de_PutScalingPolicyCommand;
|
|
490
443
|
const de_PutScalingPolicyCommandError = async (output, context) => {
|
|
@@ -514,10 +467,9 @@ const de_PutScalingPolicyCommandError = async (output, context) => {
|
|
|
514
467
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
515
468
|
default:
|
|
516
469
|
const parsedBody = parsedOutput.body;
|
|
517
|
-
|
|
470
|
+
return throwDefaultError({
|
|
518
471
|
output,
|
|
519
472
|
parsedBody,
|
|
520
|
-
exceptionCtor: ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException,
|
|
521
473
|
errorCode,
|
|
522
474
|
});
|
|
523
475
|
}
|
|
@@ -528,12 +480,12 @@ const de_PutScheduledActionCommand = async (output, context) => {
|
|
|
528
480
|
}
|
|
529
481
|
const data = await parseBody(output.body, context);
|
|
530
482
|
let contents = {};
|
|
531
|
-
contents =
|
|
483
|
+
contents = (0, smithy_client_1._json)(data);
|
|
532
484
|
const response = {
|
|
533
485
|
$metadata: deserializeMetadata(output),
|
|
534
486
|
...contents,
|
|
535
487
|
};
|
|
536
|
-
return
|
|
488
|
+
return response;
|
|
537
489
|
};
|
|
538
490
|
exports.de_PutScheduledActionCommand = de_PutScheduledActionCommand;
|
|
539
491
|
const de_PutScheduledActionCommandError = async (output, context) => {
|
|
@@ -560,10 +512,9 @@ const de_PutScheduledActionCommandError = async (output, context) => {
|
|
|
560
512
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
561
513
|
default:
|
|
562
514
|
const parsedBody = parsedOutput.body;
|
|
563
|
-
|
|
515
|
+
return throwDefaultError({
|
|
564
516
|
output,
|
|
565
517
|
parsedBody,
|
|
566
|
-
exceptionCtor: ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException,
|
|
567
518
|
errorCode,
|
|
568
519
|
});
|
|
569
520
|
}
|
|
@@ -574,12 +525,12 @@ const de_RegisterScalableTargetCommand = async (output, context) => {
|
|
|
574
525
|
}
|
|
575
526
|
const data = await parseBody(output.body, context);
|
|
576
527
|
let contents = {};
|
|
577
|
-
contents =
|
|
528
|
+
contents = (0, smithy_client_1._json)(data);
|
|
578
529
|
const response = {
|
|
579
530
|
$metadata: deserializeMetadata(output),
|
|
580
531
|
...contents,
|
|
581
532
|
};
|
|
582
|
-
return
|
|
533
|
+
return response;
|
|
583
534
|
};
|
|
584
535
|
exports.de_RegisterScalableTargetCommand = de_RegisterScalableTargetCommand;
|
|
585
536
|
const de_RegisterScalableTargetCommandError = async (output, context) => {
|
|
@@ -603,10 +554,9 @@ const de_RegisterScalableTargetCommandError = async (output, context) => {
|
|
|
603
554
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
604
555
|
default:
|
|
605
556
|
const parsedBody = parsedOutput.body;
|
|
606
|
-
|
|
557
|
+
return throwDefaultError({
|
|
607
558
|
output,
|
|
608
559
|
parsedBody,
|
|
609
|
-
exceptionCtor: ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException,
|
|
610
560
|
errorCode,
|
|
611
561
|
});
|
|
612
562
|
}
|
|
@@ -617,12 +567,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
617
567
|
}
|
|
618
568
|
const data = await parseBody(output.body, context);
|
|
619
569
|
let contents = {};
|
|
620
|
-
contents =
|
|
570
|
+
contents = (0, smithy_client_1._json)(data);
|
|
621
571
|
const response = {
|
|
622
572
|
$metadata: deserializeMetadata(output),
|
|
623
573
|
...contents,
|
|
624
574
|
};
|
|
625
|
-
return
|
|
575
|
+
return response;
|
|
626
576
|
};
|
|
627
577
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
628
578
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -643,10 +593,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
643
593
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
644
594
|
default:
|
|
645
595
|
const parsedBody = parsedOutput.body;
|
|
646
|
-
|
|
596
|
+
return throwDefaultError({
|
|
647
597
|
output,
|
|
648
598
|
parsedBody,
|
|
649
|
-
exceptionCtor: ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException,
|
|
650
599
|
errorCode,
|
|
651
600
|
});
|
|
652
601
|
}
|
|
@@ -657,12 +606,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
657
606
|
}
|
|
658
607
|
const data = await parseBody(output.body, context);
|
|
659
608
|
let contents = {};
|
|
660
|
-
contents =
|
|
609
|
+
contents = (0, smithy_client_1._json)(data);
|
|
661
610
|
const response = {
|
|
662
611
|
$metadata: deserializeMetadata(output),
|
|
663
612
|
...contents,
|
|
664
613
|
};
|
|
665
|
-
return
|
|
614
|
+
return response;
|
|
666
615
|
};
|
|
667
616
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
668
617
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -680,17 +629,16 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
680
629
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
681
630
|
default:
|
|
682
631
|
const parsedBody = parsedOutput.body;
|
|
683
|
-
|
|
632
|
+
return throwDefaultError({
|
|
684
633
|
output,
|
|
685
634
|
parsedBody,
|
|
686
|
-
exceptionCtor: ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException,
|
|
687
635
|
errorCode,
|
|
688
636
|
});
|
|
689
637
|
}
|
|
690
638
|
};
|
|
691
639
|
const de_ConcurrentUpdateExceptionRes = async (parsedOutput, context) => {
|
|
692
640
|
const body = parsedOutput.body;
|
|
693
|
-
const deserialized =
|
|
641
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
694
642
|
const exception = new models_0_1.ConcurrentUpdateException({
|
|
695
643
|
$metadata: deserializeMetadata(parsedOutput),
|
|
696
644
|
...deserialized,
|
|
@@ -699,7 +647,7 @@ const de_ConcurrentUpdateExceptionRes = async (parsedOutput, context) => {
|
|
|
699
647
|
};
|
|
700
648
|
const de_FailedResourceAccessExceptionRes = async (parsedOutput, context) => {
|
|
701
649
|
const body = parsedOutput.body;
|
|
702
|
-
const deserialized =
|
|
650
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
703
651
|
const exception = new models_0_1.FailedResourceAccessException({
|
|
704
652
|
$metadata: deserializeMetadata(parsedOutput),
|
|
705
653
|
...deserialized,
|
|
@@ -708,7 +656,7 @@ const de_FailedResourceAccessExceptionRes = async (parsedOutput, context) => {
|
|
|
708
656
|
};
|
|
709
657
|
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
710
658
|
const body = parsedOutput.body;
|
|
711
|
-
const deserialized =
|
|
659
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
712
660
|
const exception = new models_0_1.InternalServiceException({
|
|
713
661
|
$metadata: deserializeMetadata(parsedOutput),
|
|
714
662
|
...deserialized,
|
|
@@ -717,7 +665,7 @@ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
|
717
665
|
};
|
|
718
666
|
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
719
667
|
const body = parsedOutput.body;
|
|
720
|
-
const deserialized =
|
|
668
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
721
669
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
722
670
|
$metadata: deserializeMetadata(parsedOutput),
|
|
723
671
|
...deserialized,
|
|
@@ -726,7 +674,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
726
674
|
};
|
|
727
675
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
728
676
|
const body = parsedOutput.body;
|
|
729
|
-
const deserialized =
|
|
677
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
730
678
|
const exception = new models_0_1.LimitExceededException({
|
|
731
679
|
$metadata: deserializeMetadata(parsedOutput),
|
|
732
680
|
...deserialized,
|
|
@@ -735,7 +683,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
735
683
|
};
|
|
736
684
|
const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
737
685
|
const body = parsedOutput.body;
|
|
738
|
-
const deserialized =
|
|
686
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
739
687
|
const exception = new models_0_1.ObjectNotFoundException({
|
|
740
688
|
$metadata: deserializeMetadata(parsedOutput),
|
|
741
689
|
...deserialized,
|
|
@@ -744,7 +692,7 @@ const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
744
692
|
};
|
|
745
693
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
746
694
|
const body = parsedOutput.body;
|
|
747
|
-
const deserialized =
|
|
695
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
748
696
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
749
697
|
$metadata: deserializeMetadata(parsedOutput),
|
|
750
698
|
...deserialized,
|
|
@@ -753,7 +701,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
753
701
|
};
|
|
754
702
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
755
703
|
const body = parsedOutput.body;
|
|
756
|
-
const deserialized =
|
|
704
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
757
705
|
const exception = new models_0_1.TooManyTagsException({
|
|
758
706
|
$metadata: deserializeMetadata(parsedOutput),
|
|
759
707
|
...deserialized,
|
|
@@ -762,176 +710,43 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
762
710
|
};
|
|
763
711
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
764
712
|
const body = parsedOutput.body;
|
|
765
|
-
const deserialized =
|
|
713
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
766
714
|
const exception = new models_0_1.ValidationException({
|
|
767
715
|
$metadata: deserializeMetadata(parsedOutput),
|
|
768
716
|
...deserialized,
|
|
769
717
|
});
|
|
770
718
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
771
719
|
};
|
|
772
|
-
const se_CustomizedMetricSpecification = (input, context) => {
|
|
773
|
-
return {
|
|
774
|
-
...(input.Dimensions != null && { Dimensions: se_MetricDimensions(input.Dimensions, context) }),
|
|
775
|
-
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
776
|
-
...(input.Metrics != null && { Metrics: se_TargetTrackingMetricDataQueries(input.Metrics, context) }),
|
|
777
|
-
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
778
|
-
...(input.Statistic != null && { Statistic: input.Statistic }),
|
|
779
|
-
...(input.Unit != null && { Unit: input.Unit }),
|
|
780
|
-
};
|
|
781
|
-
};
|
|
782
|
-
const se_DeleteScalingPolicyRequest = (input, context) => {
|
|
783
|
-
return {
|
|
784
|
-
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
785
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
786
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
787
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
788
|
-
};
|
|
789
|
-
};
|
|
790
|
-
const se_DeleteScheduledActionRequest = (input, context) => {
|
|
791
|
-
return {
|
|
792
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
793
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
794
|
-
...(input.ScheduledActionName != null && { ScheduledActionName: input.ScheduledActionName }),
|
|
795
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
796
|
-
};
|
|
797
|
-
};
|
|
798
|
-
const se_DeregisterScalableTargetRequest = (input, context) => {
|
|
799
|
-
return {
|
|
800
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
801
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
802
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
803
|
-
};
|
|
804
|
-
};
|
|
805
|
-
const se_DescribeScalableTargetsRequest = (input, context) => {
|
|
806
|
-
return {
|
|
807
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
808
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
809
|
-
...(input.ResourceIds != null && { ResourceIds: se_ResourceIdsMaxLen1600(input.ResourceIds, context) }),
|
|
810
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
811
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
812
|
-
};
|
|
813
|
-
};
|
|
814
|
-
const se_DescribeScalingActivitiesRequest = (input, context) => {
|
|
815
|
-
return {
|
|
816
|
-
...(input.IncludeNotScaledActivities != null && { IncludeNotScaledActivities: input.IncludeNotScaledActivities }),
|
|
817
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
818
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
819
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
820
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
821
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
822
|
-
};
|
|
823
|
-
};
|
|
824
|
-
const se_DescribeScalingPoliciesRequest = (input, context) => {
|
|
825
|
-
return {
|
|
826
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
827
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
828
|
-
...(input.PolicyNames != null && { PolicyNames: se_ResourceIdsMaxLen1600(input.PolicyNames, context) }),
|
|
829
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
830
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
831
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
832
|
-
};
|
|
833
|
-
};
|
|
834
|
-
const se_DescribeScheduledActionsRequest = (input, context) => {
|
|
835
|
-
return {
|
|
836
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
837
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
838
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
839
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
840
|
-
...(input.ScheduledActionNames != null && {
|
|
841
|
-
ScheduledActionNames: se_ResourceIdsMaxLen1600(input.ScheduledActionNames, context),
|
|
842
|
-
}),
|
|
843
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
844
|
-
};
|
|
845
|
-
};
|
|
846
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
847
|
-
return {
|
|
848
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
849
|
-
};
|
|
850
|
-
};
|
|
851
|
-
const se_MetricDimension = (input, context) => {
|
|
852
|
-
return {
|
|
853
|
-
...(input.Name != null && { Name: input.Name }),
|
|
854
|
-
...(input.Value != null && { Value: input.Value }),
|
|
855
|
-
};
|
|
856
|
-
};
|
|
857
|
-
const se_MetricDimensions = (input, context) => {
|
|
858
|
-
return input
|
|
859
|
-
.filter((e) => e != null)
|
|
860
|
-
.map((entry) => {
|
|
861
|
-
return se_MetricDimension(entry, context);
|
|
862
|
-
});
|
|
863
|
-
};
|
|
864
|
-
const se_PredefinedMetricSpecification = (input, context) => {
|
|
865
|
-
return {
|
|
866
|
-
...(input.PredefinedMetricType != null && { PredefinedMetricType: input.PredefinedMetricType }),
|
|
867
|
-
...(input.ResourceLabel != null && { ResourceLabel: input.ResourceLabel }),
|
|
868
|
-
};
|
|
869
|
-
};
|
|
870
720
|
const se_PutScalingPolicyRequest = (input, context) => {
|
|
871
|
-
return {
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
...(input.TargetTrackingScalingPolicyConfiguration != null && {
|
|
881
|
-
TargetTrackingScalingPolicyConfiguration: se_TargetTrackingScalingPolicyConfiguration(input.TargetTrackingScalingPolicyConfiguration, context),
|
|
882
|
-
}),
|
|
883
|
-
};
|
|
721
|
+
return (0, smithy_client_1.take)(input, {
|
|
722
|
+
PolicyName: [],
|
|
723
|
+
PolicyType: [],
|
|
724
|
+
ResourceId: [],
|
|
725
|
+
ScalableDimension: [],
|
|
726
|
+
ServiceNamespace: [],
|
|
727
|
+
StepScalingPolicyConfiguration: (_) => se_StepScalingPolicyConfiguration(_, context),
|
|
728
|
+
TargetTrackingScalingPolicyConfiguration: (_) => se_TargetTrackingScalingPolicyConfiguration(_, context),
|
|
729
|
+
});
|
|
884
730
|
};
|
|
885
731
|
const se_PutScheduledActionRequest = (input, context) => {
|
|
886
|
-
return {
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
897
|
-
...(input.Timezone != null && { Timezone: input.Timezone }),
|
|
898
|
-
};
|
|
899
|
-
};
|
|
900
|
-
const se_RegisterScalableTargetRequest = (input, context) => {
|
|
901
|
-
return {
|
|
902
|
-
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
903
|
-
...(input.MinCapacity != null && { MinCapacity: input.MinCapacity }),
|
|
904
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
905
|
-
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
906
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
907
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
908
|
-
...(input.SuspendedState != null && { SuspendedState: se_SuspendedState(input.SuspendedState, context) }),
|
|
909
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
910
|
-
};
|
|
911
|
-
};
|
|
912
|
-
const se_ResourceIdsMaxLen1600 = (input, context) => {
|
|
913
|
-
return input
|
|
914
|
-
.filter((e) => e != null)
|
|
915
|
-
.map((entry) => {
|
|
916
|
-
return entry;
|
|
732
|
+
return (0, smithy_client_1.take)(input, {
|
|
733
|
+
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
734
|
+
ResourceId: [],
|
|
735
|
+
ScalableDimension: [],
|
|
736
|
+
ScalableTargetAction: smithy_client_1._json,
|
|
737
|
+
Schedule: [],
|
|
738
|
+
ScheduledActionName: [],
|
|
739
|
+
ServiceNamespace: [],
|
|
740
|
+
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
741
|
+
Timezone: [],
|
|
917
742
|
});
|
|
918
743
|
};
|
|
919
|
-
const se_ScalableTargetAction = (input, context) => {
|
|
920
|
-
return {
|
|
921
|
-
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
922
|
-
...(input.MinCapacity != null && { MinCapacity: input.MinCapacity }),
|
|
923
|
-
};
|
|
924
|
-
};
|
|
925
744
|
const se_StepAdjustment = (input, context) => {
|
|
926
|
-
return {
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
MetricIntervalUpperBound: (0, smithy_client_1.serializeFloat)(input.MetricIntervalUpperBound),
|
|
932
|
-
}),
|
|
933
|
-
...(input.ScalingAdjustment != null && { ScalingAdjustment: input.ScalingAdjustment }),
|
|
934
|
-
};
|
|
745
|
+
return (0, smithy_client_1.take)(input, {
|
|
746
|
+
MetricIntervalLowerBound: smithy_client_1.serializeFloat,
|
|
747
|
+
MetricIntervalUpperBound: smithy_client_1.serializeFloat,
|
|
748
|
+
ScalingAdjustment: [],
|
|
749
|
+
});
|
|
935
750
|
};
|
|
936
751
|
const se_StepAdjustments = (input, context) => {
|
|
937
752
|
return input
|
|
@@ -941,291 +756,65 @@ const se_StepAdjustments = (input, context) => {
|
|
|
941
756
|
});
|
|
942
757
|
};
|
|
943
758
|
const se_StepScalingPolicyConfiguration = (input, context) => {
|
|
944
|
-
return {
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
};
|
|
951
|
-
};
|
|
952
|
-
const se_SuspendedState = (input, context) => {
|
|
953
|
-
return {
|
|
954
|
-
...(input.DynamicScalingInSuspended != null && { DynamicScalingInSuspended: input.DynamicScalingInSuspended }),
|
|
955
|
-
...(input.DynamicScalingOutSuspended != null && { DynamicScalingOutSuspended: input.DynamicScalingOutSuspended }),
|
|
956
|
-
...(input.ScheduledScalingSuspended != null && { ScheduledScalingSuspended: input.ScheduledScalingSuspended }),
|
|
957
|
-
};
|
|
958
|
-
};
|
|
959
|
-
const se_TagKeyList = (input, context) => {
|
|
960
|
-
return input
|
|
961
|
-
.filter((e) => e != null)
|
|
962
|
-
.map((entry) => {
|
|
963
|
-
return entry;
|
|
759
|
+
return (0, smithy_client_1.take)(input, {
|
|
760
|
+
AdjustmentType: [],
|
|
761
|
+
Cooldown: [],
|
|
762
|
+
MetricAggregationType: [],
|
|
763
|
+
MinAdjustmentMagnitude: [],
|
|
764
|
+
StepAdjustments: (_) => se_StepAdjustments(_, context),
|
|
964
765
|
});
|
|
965
766
|
};
|
|
966
|
-
const se_TagMap = (input, context) => {
|
|
967
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
968
|
-
if (value === null) {
|
|
969
|
-
return acc;
|
|
970
|
-
}
|
|
971
|
-
acc[key] = value;
|
|
972
|
-
return acc;
|
|
973
|
-
}, {});
|
|
974
|
-
};
|
|
975
|
-
const se_TagResourceRequest = (input, context) => {
|
|
976
|
-
return {
|
|
977
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
978
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
979
|
-
};
|
|
980
|
-
};
|
|
981
|
-
const se_TargetTrackingMetric = (input, context) => {
|
|
982
|
-
return {
|
|
983
|
-
...(input.Dimensions != null && { Dimensions: se_TargetTrackingMetricDimensions(input.Dimensions, context) }),
|
|
984
|
-
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
985
|
-
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
|
-
const se_TargetTrackingMetricDataQueries = (input, context) => {
|
|
989
|
-
return input
|
|
990
|
-
.filter((e) => e != null)
|
|
991
|
-
.map((entry) => {
|
|
992
|
-
return se_TargetTrackingMetricDataQuery(entry, context);
|
|
993
|
-
});
|
|
994
|
-
};
|
|
995
|
-
const se_TargetTrackingMetricDataQuery = (input, context) => {
|
|
996
|
-
return {
|
|
997
|
-
...(input.Expression != null && { Expression: input.Expression }),
|
|
998
|
-
...(input.Id != null && { Id: input.Id }),
|
|
999
|
-
...(input.Label != null && { Label: input.Label }),
|
|
1000
|
-
...(input.MetricStat != null && { MetricStat: se_TargetTrackingMetricStat(input.MetricStat, context) }),
|
|
1001
|
-
...(input.ReturnData != null && { ReturnData: input.ReturnData }),
|
|
1002
|
-
};
|
|
1003
|
-
};
|
|
1004
|
-
const se_TargetTrackingMetricDimension = (input, context) => {
|
|
1005
|
-
return {
|
|
1006
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1007
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1008
|
-
};
|
|
1009
|
-
};
|
|
1010
|
-
const se_TargetTrackingMetricDimensions = (input, context) => {
|
|
1011
|
-
return input
|
|
1012
|
-
.filter((e) => e != null)
|
|
1013
|
-
.map((entry) => {
|
|
1014
|
-
return se_TargetTrackingMetricDimension(entry, context);
|
|
1015
|
-
});
|
|
1016
|
-
};
|
|
1017
|
-
const se_TargetTrackingMetricStat = (input, context) => {
|
|
1018
|
-
return {
|
|
1019
|
-
...(input.Metric != null && { Metric: se_TargetTrackingMetric(input.Metric, context) }),
|
|
1020
|
-
...(input.Stat != null && { Stat: input.Stat }),
|
|
1021
|
-
...(input.Unit != null && { Unit: input.Unit }),
|
|
1022
|
-
};
|
|
1023
|
-
};
|
|
1024
767
|
const se_TargetTrackingScalingPolicyConfiguration = (input, context) => {
|
|
1025
|
-
return {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
}),
|
|
1033
|
-
...(input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown }),
|
|
1034
|
-
...(input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown }),
|
|
1035
|
-
...(input.TargetValue != null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) }),
|
|
1036
|
-
};
|
|
1037
|
-
};
|
|
1038
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1039
|
-
return {
|
|
1040
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1041
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1042
|
-
};
|
|
1043
|
-
};
|
|
1044
|
-
const de_Alarm = (output, context) => {
|
|
1045
|
-
return {
|
|
1046
|
-
AlarmARN: (0, smithy_client_1.expectString)(output.AlarmARN),
|
|
1047
|
-
AlarmName: (0, smithy_client_1.expectString)(output.AlarmName),
|
|
1048
|
-
};
|
|
1049
|
-
};
|
|
1050
|
-
const de_Alarms = (output, context) => {
|
|
1051
|
-
const retVal = (output || [])
|
|
1052
|
-
.filter((e) => e != null)
|
|
1053
|
-
.map((entry) => {
|
|
1054
|
-
if (entry === null) {
|
|
1055
|
-
return null;
|
|
1056
|
-
}
|
|
1057
|
-
return de_Alarm(entry, context);
|
|
768
|
+
return (0, smithy_client_1.take)(input, {
|
|
769
|
+
CustomizedMetricSpecification: smithy_client_1._json,
|
|
770
|
+
DisableScaleIn: [],
|
|
771
|
+
PredefinedMetricSpecification: smithy_client_1._json,
|
|
772
|
+
ScaleInCooldown: [],
|
|
773
|
+
ScaleOutCooldown: [],
|
|
774
|
+
TargetValue: smithy_client_1.serializeFloat,
|
|
1058
775
|
});
|
|
1059
|
-
return retVal;
|
|
1060
|
-
};
|
|
1061
|
-
const de_ConcurrentUpdateException = (output, context) => {
|
|
1062
|
-
return {
|
|
1063
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1064
|
-
};
|
|
1065
|
-
};
|
|
1066
|
-
const de_CustomizedMetricSpecification = (output, context) => {
|
|
1067
|
-
return {
|
|
1068
|
-
Dimensions: output.Dimensions != null ? de_MetricDimensions(output.Dimensions, context) : undefined,
|
|
1069
|
-
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
1070
|
-
Metrics: output.Metrics != null ? de_TargetTrackingMetricDataQueries(output.Metrics, context) : undefined,
|
|
1071
|
-
Namespace: (0, smithy_client_1.expectString)(output.Namespace),
|
|
1072
|
-
Statistic: (0, smithy_client_1.expectString)(output.Statistic),
|
|
1073
|
-
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
1074
|
-
};
|
|
1075
|
-
};
|
|
1076
|
-
const de_DeleteScalingPolicyResponse = (output, context) => {
|
|
1077
|
-
return {};
|
|
1078
|
-
};
|
|
1079
|
-
const de_DeleteScheduledActionResponse = (output, context) => {
|
|
1080
|
-
return {};
|
|
1081
|
-
};
|
|
1082
|
-
const de_DeregisterScalableTargetResponse = (output, context) => {
|
|
1083
|
-
return {};
|
|
1084
776
|
};
|
|
1085
777
|
const de_DescribeScalableTargetsResponse = (output, context) => {
|
|
1086
|
-
return {
|
|
1087
|
-
NextToken:
|
|
1088
|
-
ScalableTargets:
|
|
1089
|
-
};
|
|
778
|
+
return (0, smithy_client_1.take)(output, {
|
|
779
|
+
NextToken: smithy_client_1.expectString,
|
|
780
|
+
ScalableTargets: (_) => de_ScalableTargets(_, context),
|
|
781
|
+
});
|
|
1090
782
|
};
|
|
1091
783
|
const de_DescribeScalingActivitiesResponse = (output, context) => {
|
|
1092
|
-
return {
|
|
1093
|
-
NextToken:
|
|
1094
|
-
ScalingActivities:
|
|
1095
|
-
};
|
|
784
|
+
return (0, smithy_client_1.take)(output, {
|
|
785
|
+
NextToken: smithy_client_1.expectString,
|
|
786
|
+
ScalingActivities: (_) => de_ScalingActivities(_, context),
|
|
787
|
+
});
|
|
1096
788
|
};
|
|
1097
789
|
const de_DescribeScalingPoliciesResponse = (output, context) => {
|
|
1098
|
-
return {
|
|
1099
|
-
NextToken:
|
|
1100
|
-
ScalingPolicies:
|
|
1101
|
-
};
|
|
1102
|
-
};
|
|
1103
|
-
const de_DescribeScheduledActionsResponse = (output, context) => {
|
|
1104
|
-
return {
|
|
1105
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1106
|
-
ScheduledActions: output.ScheduledActions != null ? de_ScheduledActions(output.ScheduledActions, context) : undefined,
|
|
1107
|
-
};
|
|
1108
|
-
};
|
|
1109
|
-
const de_FailedResourceAccessException = (output, context) => {
|
|
1110
|
-
return {
|
|
1111
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1112
|
-
};
|
|
1113
|
-
};
|
|
1114
|
-
const de_InternalServiceException = (output, context) => {
|
|
1115
|
-
return {
|
|
1116
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1117
|
-
};
|
|
1118
|
-
};
|
|
1119
|
-
const de_InvalidNextTokenException = (output, context) => {
|
|
1120
|
-
return {
|
|
1121
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1122
|
-
};
|
|
1123
|
-
};
|
|
1124
|
-
const de_LimitExceededException = (output, context) => {
|
|
1125
|
-
return {
|
|
1126
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1127
|
-
};
|
|
1128
|
-
};
|
|
1129
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1130
|
-
return {
|
|
1131
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1132
|
-
};
|
|
1133
|
-
};
|
|
1134
|
-
const de_MetricDimension = (output, context) => {
|
|
1135
|
-
return {
|
|
1136
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1137
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1138
|
-
};
|
|
1139
|
-
};
|
|
1140
|
-
const de_MetricDimensions = (output, context) => {
|
|
1141
|
-
const retVal = (output || [])
|
|
1142
|
-
.filter((e) => e != null)
|
|
1143
|
-
.map((entry) => {
|
|
1144
|
-
if (entry === null) {
|
|
1145
|
-
return null;
|
|
1146
|
-
}
|
|
1147
|
-
return de_MetricDimension(entry, context);
|
|
790
|
+
return (0, smithy_client_1.take)(output, {
|
|
791
|
+
NextToken: smithy_client_1.expectString,
|
|
792
|
+
ScalingPolicies: (_) => de_ScalingPolicies(_, context),
|
|
1148
793
|
});
|
|
1149
|
-
return retVal;
|
|
1150
|
-
};
|
|
1151
|
-
const de_NotScaledReason = (output, context) => {
|
|
1152
|
-
return {
|
|
1153
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1154
|
-
CurrentCapacity: (0, smithy_client_1.expectInt32)(output.CurrentCapacity),
|
|
1155
|
-
MaxCapacity: (0, smithy_client_1.expectInt32)(output.MaxCapacity),
|
|
1156
|
-
MinCapacity: (0, smithy_client_1.expectInt32)(output.MinCapacity),
|
|
1157
|
-
};
|
|
1158
794
|
};
|
|
1159
|
-
const
|
|
1160
|
-
|
|
1161
|
-
.
|
|
1162
|
-
|
|
1163
|
-
if (entry === null) {
|
|
1164
|
-
return null;
|
|
1165
|
-
}
|
|
1166
|
-
return de_NotScaledReason(entry, context);
|
|
795
|
+
const de_DescribeScheduledActionsResponse = (output, context) => {
|
|
796
|
+
return (0, smithy_client_1.take)(output, {
|
|
797
|
+
NextToken: smithy_client_1.expectString,
|
|
798
|
+
ScheduledActions: (_) => de_ScheduledActions(_, context),
|
|
1167
799
|
});
|
|
1168
|
-
return retVal;
|
|
1169
|
-
};
|
|
1170
|
-
const de_ObjectNotFoundException = (output, context) => {
|
|
1171
|
-
return {
|
|
1172
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1173
|
-
};
|
|
1174
|
-
};
|
|
1175
|
-
const de_PredefinedMetricSpecification = (output, context) => {
|
|
1176
|
-
return {
|
|
1177
|
-
PredefinedMetricType: (0, smithy_client_1.expectString)(output.PredefinedMetricType),
|
|
1178
|
-
ResourceLabel: (0, smithy_client_1.expectString)(output.ResourceLabel),
|
|
1179
|
-
};
|
|
1180
|
-
};
|
|
1181
|
-
const de_PutScalingPolicyResponse = (output, context) => {
|
|
1182
|
-
return {
|
|
1183
|
-
Alarms: output.Alarms != null ? de_Alarms(output.Alarms, context) : undefined,
|
|
1184
|
-
PolicyARN: (0, smithy_client_1.expectString)(output.PolicyARN),
|
|
1185
|
-
};
|
|
1186
|
-
};
|
|
1187
|
-
const de_PutScheduledActionResponse = (output, context) => {
|
|
1188
|
-
return {};
|
|
1189
|
-
};
|
|
1190
|
-
const de_RegisterScalableTargetResponse = (output, context) => {
|
|
1191
|
-
return {
|
|
1192
|
-
ScalableTargetARN: (0, smithy_client_1.expectString)(output.ScalableTargetARN),
|
|
1193
|
-
};
|
|
1194
|
-
};
|
|
1195
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1196
|
-
return {
|
|
1197
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1198
|
-
ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
|
|
1199
|
-
};
|
|
1200
800
|
};
|
|
1201
801
|
const de_ScalableTarget = (output, context) => {
|
|
1202
|
-
return {
|
|
1203
|
-
CreationTime:
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
SuspendedState: output.SuspendedState != null ? de_SuspendedState(output.SuspendedState, context) : undefined,
|
|
1214
|
-
};
|
|
1215
|
-
};
|
|
1216
|
-
const de_ScalableTargetAction = (output, context) => {
|
|
1217
|
-
return {
|
|
1218
|
-
MaxCapacity: (0, smithy_client_1.expectInt32)(output.MaxCapacity),
|
|
1219
|
-
MinCapacity: (0, smithy_client_1.expectInt32)(output.MinCapacity),
|
|
1220
|
-
};
|
|
802
|
+
return (0, smithy_client_1.take)(output, {
|
|
803
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
804
|
+
MaxCapacity: smithy_client_1.expectInt32,
|
|
805
|
+
MinCapacity: smithy_client_1.expectInt32,
|
|
806
|
+
ResourceId: smithy_client_1.expectString,
|
|
807
|
+
RoleARN: smithy_client_1.expectString,
|
|
808
|
+
ScalableDimension: smithy_client_1.expectString,
|
|
809
|
+
ScalableTargetARN: smithy_client_1.expectString,
|
|
810
|
+
ServiceNamespace: smithy_client_1.expectString,
|
|
811
|
+
SuspendedState: smithy_client_1._json,
|
|
812
|
+
});
|
|
1221
813
|
};
|
|
1222
814
|
const de_ScalableTargets = (output, context) => {
|
|
1223
815
|
const retVal = (output || [])
|
|
1224
816
|
.filter((e) => e != null)
|
|
1225
817
|
.map((entry) => {
|
|
1226
|
-
if (entry === null) {
|
|
1227
|
-
return null;
|
|
1228
|
-
}
|
|
1229
818
|
return de_ScalableTarget(entry, context);
|
|
1230
819
|
});
|
|
1231
820
|
return retVal;
|
|
@@ -1234,212 +823,104 @@ const de_ScalingActivities = (output, context) => {
|
|
|
1234
823
|
const retVal = (output || [])
|
|
1235
824
|
.filter((e) => e != null)
|
|
1236
825
|
.map((entry) => {
|
|
1237
|
-
if (entry === null) {
|
|
1238
|
-
return null;
|
|
1239
|
-
}
|
|
1240
826
|
return de_ScalingActivity(entry, context);
|
|
1241
827
|
});
|
|
1242
828
|
return retVal;
|
|
1243
829
|
};
|
|
1244
830
|
const de_ScalingActivity = (output, context) => {
|
|
1245
|
-
return {
|
|
1246
|
-
ActivityId:
|
|
1247
|
-
Cause:
|
|
1248
|
-
Description:
|
|
1249
|
-
Details:
|
|
1250
|
-
EndTime:
|
|
1251
|
-
NotScaledReasons:
|
|
1252
|
-
ResourceId:
|
|
1253
|
-
ScalableDimension:
|
|
1254
|
-
ServiceNamespace:
|
|
1255
|
-
StartTime:
|
|
1256
|
-
StatusCode:
|
|
1257
|
-
StatusMessage:
|
|
1258
|
-
};
|
|
831
|
+
return (0, smithy_client_1.take)(output, {
|
|
832
|
+
ActivityId: smithy_client_1.expectString,
|
|
833
|
+
Cause: smithy_client_1.expectString,
|
|
834
|
+
Description: smithy_client_1.expectString,
|
|
835
|
+
Details: smithy_client_1.expectString,
|
|
836
|
+
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
837
|
+
NotScaledReasons: smithy_client_1._json,
|
|
838
|
+
ResourceId: smithy_client_1.expectString,
|
|
839
|
+
ScalableDimension: smithy_client_1.expectString,
|
|
840
|
+
ServiceNamespace: smithy_client_1.expectString,
|
|
841
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
842
|
+
StatusCode: smithy_client_1.expectString,
|
|
843
|
+
StatusMessage: smithy_client_1.expectString,
|
|
844
|
+
});
|
|
1259
845
|
};
|
|
1260
846
|
const de_ScalingPolicies = (output, context) => {
|
|
1261
847
|
const retVal = (output || [])
|
|
1262
848
|
.filter((e) => e != null)
|
|
1263
849
|
.map((entry) => {
|
|
1264
|
-
if (entry === null) {
|
|
1265
|
-
return null;
|
|
1266
|
-
}
|
|
1267
850
|
return de_ScalingPolicy(entry, context);
|
|
1268
851
|
});
|
|
1269
852
|
return retVal;
|
|
1270
853
|
};
|
|
1271
854
|
const de_ScalingPolicy = (output, context) => {
|
|
1272
|
-
return {
|
|
1273
|
-
Alarms:
|
|
1274
|
-
CreationTime:
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
? de_StepScalingPolicyConfiguration(output.StepScalingPolicyConfiguration, context)
|
|
1285
|
-
: undefined,
|
|
1286
|
-
TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration != null
|
|
1287
|
-
? de_TargetTrackingScalingPolicyConfiguration(output.TargetTrackingScalingPolicyConfiguration, context)
|
|
1288
|
-
: undefined,
|
|
1289
|
-
};
|
|
855
|
+
return (0, smithy_client_1.take)(output, {
|
|
856
|
+
Alarms: smithy_client_1._json,
|
|
857
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
858
|
+
PolicyARN: smithy_client_1.expectString,
|
|
859
|
+
PolicyName: smithy_client_1.expectString,
|
|
860
|
+
PolicyType: smithy_client_1.expectString,
|
|
861
|
+
ResourceId: smithy_client_1.expectString,
|
|
862
|
+
ScalableDimension: smithy_client_1.expectString,
|
|
863
|
+
ServiceNamespace: smithy_client_1.expectString,
|
|
864
|
+
StepScalingPolicyConfiguration: (_) => de_StepScalingPolicyConfiguration(_, context),
|
|
865
|
+
TargetTrackingScalingPolicyConfiguration: (_) => de_TargetTrackingScalingPolicyConfiguration(_, context),
|
|
866
|
+
});
|
|
1290
867
|
};
|
|
1291
868
|
const de_ScheduledAction = (output, context) => {
|
|
1292
|
-
return {
|
|
1293
|
-
CreationTime:
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
Timezone: (0, smithy_client_1.expectString)(output.Timezone),
|
|
1306
|
-
};
|
|
869
|
+
return (0, smithy_client_1.take)(output, {
|
|
870
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
871
|
+
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
872
|
+
ResourceId: smithy_client_1.expectString,
|
|
873
|
+
ScalableDimension: smithy_client_1.expectString,
|
|
874
|
+
ScalableTargetAction: smithy_client_1._json,
|
|
875
|
+
Schedule: smithy_client_1.expectString,
|
|
876
|
+
ScheduledActionARN: smithy_client_1.expectString,
|
|
877
|
+
ScheduledActionName: smithy_client_1.expectString,
|
|
878
|
+
ServiceNamespace: smithy_client_1.expectString,
|
|
879
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
880
|
+
Timezone: smithy_client_1.expectString,
|
|
881
|
+
});
|
|
1307
882
|
};
|
|
1308
883
|
const de_ScheduledActions = (output, context) => {
|
|
1309
884
|
const retVal = (output || [])
|
|
1310
885
|
.filter((e) => e != null)
|
|
1311
886
|
.map((entry) => {
|
|
1312
|
-
if (entry === null) {
|
|
1313
|
-
return null;
|
|
1314
|
-
}
|
|
1315
887
|
return de_ScheduledAction(entry, context);
|
|
1316
888
|
});
|
|
1317
889
|
return retVal;
|
|
1318
890
|
};
|
|
1319
891
|
const de_StepAdjustment = (output, context) => {
|
|
1320
|
-
return {
|
|
1321
|
-
MetricIntervalLowerBound:
|
|
1322
|
-
MetricIntervalUpperBound:
|
|
1323
|
-
ScalingAdjustment:
|
|
1324
|
-
};
|
|
892
|
+
return (0, smithy_client_1.take)(output, {
|
|
893
|
+
MetricIntervalLowerBound: smithy_client_1.limitedParseDouble,
|
|
894
|
+
MetricIntervalUpperBound: smithy_client_1.limitedParseDouble,
|
|
895
|
+
ScalingAdjustment: smithy_client_1.expectInt32,
|
|
896
|
+
});
|
|
1325
897
|
};
|
|
1326
898
|
const de_StepAdjustments = (output, context) => {
|
|
1327
899
|
const retVal = (output || [])
|
|
1328
900
|
.filter((e) => e != null)
|
|
1329
901
|
.map((entry) => {
|
|
1330
|
-
if (entry === null) {
|
|
1331
|
-
return null;
|
|
1332
|
-
}
|
|
1333
902
|
return de_StepAdjustment(entry, context);
|
|
1334
903
|
});
|
|
1335
904
|
return retVal;
|
|
1336
905
|
};
|
|
1337
906
|
const de_StepScalingPolicyConfiguration = (output, context) => {
|
|
1338
|
-
return {
|
|
1339
|
-
AdjustmentType:
|
|
1340
|
-
Cooldown:
|
|
1341
|
-
MetricAggregationType:
|
|
1342
|
-
MinAdjustmentMagnitude:
|
|
1343
|
-
StepAdjustments:
|
|
1344
|
-
};
|
|
1345
|
-
};
|
|
1346
|
-
const de_SuspendedState = (output, context) => {
|
|
1347
|
-
return {
|
|
1348
|
-
DynamicScalingInSuspended: (0, smithy_client_1.expectBoolean)(output.DynamicScalingInSuspended),
|
|
1349
|
-
DynamicScalingOutSuspended: (0, smithy_client_1.expectBoolean)(output.DynamicScalingOutSuspended),
|
|
1350
|
-
ScheduledScalingSuspended: (0, smithy_client_1.expectBoolean)(output.ScheduledScalingSuspended),
|
|
1351
|
-
};
|
|
1352
|
-
};
|
|
1353
|
-
const de_TagMap = (output, context) => {
|
|
1354
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1355
|
-
if (value === null) {
|
|
1356
|
-
return acc;
|
|
1357
|
-
}
|
|
1358
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1359
|
-
return acc;
|
|
1360
|
-
}, {});
|
|
1361
|
-
};
|
|
1362
|
-
const de_TagResourceResponse = (output, context) => {
|
|
1363
|
-
return {};
|
|
1364
|
-
};
|
|
1365
|
-
const de_TargetTrackingMetric = (output, context) => {
|
|
1366
|
-
return {
|
|
1367
|
-
Dimensions: output.Dimensions != null ? de_TargetTrackingMetricDimensions(output.Dimensions, context) : undefined,
|
|
1368
|
-
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
1369
|
-
Namespace: (0, smithy_client_1.expectString)(output.Namespace),
|
|
1370
|
-
};
|
|
1371
|
-
};
|
|
1372
|
-
const de_TargetTrackingMetricDataQueries = (output, context) => {
|
|
1373
|
-
const retVal = (output || [])
|
|
1374
|
-
.filter((e) => e != null)
|
|
1375
|
-
.map((entry) => {
|
|
1376
|
-
if (entry === null) {
|
|
1377
|
-
return null;
|
|
1378
|
-
}
|
|
1379
|
-
return de_TargetTrackingMetricDataQuery(entry, context);
|
|
907
|
+
return (0, smithy_client_1.take)(output, {
|
|
908
|
+
AdjustmentType: smithy_client_1.expectString,
|
|
909
|
+
Cooldown: smithy_client_1.expectInt32,
|
|
910
|
+
MetricAggregationType: smithy_client_1.expectString,
|
|
911
|
+
MinAdjustmentMagnitude: smithy_client_1.expectInt32,
|
|
912
|
+
StepAdjustments: (_) => de_StepAdjustments(_, context),
|
|
1380
913
|
});
|
|
1381
|
-
return retVal;
|
|
1382
|
-
};
|
|
1383
|
-
const de_TargetTrackingMetricDataQuery = (output, context) => {
|
|
1384
|
-
return {
|
|
1385
|
-
Expression: (0, smithy_client_1.expectString)(output.Expression),
|
|
1386
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1387
|
-
Label: (0, smithy_client_1.expectString)(output.Label),
|
|
1388
|
-
MetricStat: output.MetricStat != null ? de_TargetTrackingMetricStat(output.MetricStat, context) : undefined,
|
|
1389
|
-
ReturnData: (0, smithy_client_1.expectBoolean)(output.ReturnData),
|
|
1390
|
-
};
|
|
1391
|
-
};
|
|
1392
|
-
const de_TargetTrackingMetricDimension = (output, context) => {
|
|
1393
|
-
return {
|
|
1394
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1395
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1396
|
-
};
|
|
1397
|
-
};
|
|
1398
|
-
const de_TargetTrackingMetricDimensions = (output, context) => {
|
|
1399
|
-
const retVal = (output || [])
|
|
1400
|
-
.filter((e) => e != null)
|
|
1401
|
-
.map((entry) => {
|
|
1402
|
-
if (entry === null) {
|
|
1403
|
-
return null;
|
|
1404
|
-
}
|
|
1405
|
-
return de_TargetTrackingMetricDimension(entry, context);
|
|
1406
|
-
});
|
|
1407
|
-
return retVal;
|
|
1408
|
-
};
|
|
1409
|
-
const de_TargetTrackingMetricStat = (output, context) => {
|
|
1410
|
-
return {
|
|
1411
|
-
Metric: output.Metric != null ? de_TargetTrackingMetric(output.Metric, context) : undefined,
|
|
1412
|
-
Stat: (0, smithy_client_1.expectString)(output.Stat),
|
|
1413
|
-
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
1414
|
-
};
|
|
1415
914
|
};
|
|
1416
915
|
const de_TargetTrackingScalingPolicyConfiguration = (output, context) => {
|
|
1417
|
-
return {
|
|
1418
|
-
CustomizedMetricSpecification:
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
ScaleInCooldown: (0, smithy_client_1.expectInt32)(output.ScaleInCooldown),
|
|
1426
|
-
ScaleOutCooldown: (0, smithy_client_1.expectInt32)(output.ScaleOutCooldown),
|
|
1427
|
-
TargetValue: (0, smithy_client_1.limitedParseDouble)(output.TargetValue),
|
|
1428
|
-
};
|
|
1429
|
-
};
|
|
1430
|
-
const de_TooManyTagsException = (output, context) => {
|
|
1431
|
-
return {
|
|
1432
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1433
|
-
ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
|
|
1434
|
-
};
|
|
1435
|
-
};
|
|
1436
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
1437
|
-
return {};
|
|
1438
|
-
};
|
|
1439
|
-
const de_ValidationException = (output, context) => {
|
|
1440
|
-
return {
|
|
1441
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1442
|
-
};
|
|
916
|
+
return (0, smithy_client_1.take)(output, {
|
|
917
|
+
CustomizedMetricSpecification: smithy_client_1._json,
|
|
918
|
+
DisableScaleIn: smithy_client_1.expectBoolean,
|
|
919
|
+
PredefinedMetricSpecification: smithy_client_1._json,
|
|
920
|
+
ScaleInCooldown: smithy_client_1.expectInt32,
|
|
921
|
+
ScaleOutCooldown: smithy_client_1.expectInt32,
|
|
922
|
+
TargetValue: smithy_client_1.limitedParseDouble,
|
|
923
|
+
});
|
|
1443
924
|
};
|
|
1444
925
|
const deserializeMetadata = (output) => ({
|
|
1445
926
|
httpStatusCode: output.statusCode,
|
|
@@ -1454,6 +935,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1454
935
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1455
936
|
};
|
|
1456
937
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
938
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException);
|
|
1457
939
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1458
940
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1459
941
|
const contents = {
|
|
@@ -1472,6 +954,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1472
954
|
}
|
|
1473
955
|
return new protocol_http_1.HttpRequest(contents);
|
|
1474
956
|
};
|
|
957
|
+
function sharedHeaders(operation) {
|
|
958
|
+
return {
|
|
959
|
+
"content-type": "application/x-amz-json-1.1",
|
|
960
|
+
"x-amz-target": `AnyScaleFrontendService.${operation}`,
|
|
961
|
+
};
|
|
962
|
+
}
|
|
1475
963
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1476
964
|
if (encoded.length) {
|
|
1477
965
|
return JSON.parse(encoded);
|