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