@aws-sdk/client-service-quotas 3.312.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 +168 -508
- package/dist-es/protocols/Aws_json1_1.js +169 -509
- package/package.json +6 -6
|
@@ -1,95 +1,95 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, 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 { AccessDeniedException, AWSServiceAccessNotEnabledException, DependencyAccessDeniedException, IllegalArgumentException, InvalidPaginationTokenException, InvalidResourceStateException, NoAvailableOrganizationException, NoSuchResourceException, OrganizationNotInAllFeaturesModeException, QuotaExceededException, ResourceAlreadyExistsException, ServiceException, ServiceQuotaTemplateNotInUseException, TagPolicyViolationException, TemplatesNotAvailableInRegionException, TooManyRequestsException, TooManyTagsException, } from "../models/models_0";
|
|
4
4
|
import { ServiceQuotasServiceException as __BaseException } from "../models/ServiceQuotasServiceException";
|
|
5
5
|
export const se_AssociateServiceQuotaTemplateCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("AssociateServiceQuotaTemplate");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("DeleteServiceQuotaIncreaseRequestFromTemplate");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_DisassociateServiceQuotaTemplateCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("DisassociateServiceQuotaTemplate");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
export const se_GetAssociationForServiceQuotaTemplateCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("GetAssociationForServiceQuotaTemplate");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
export const se_GetAWSDefaultServiceQuotaCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("GetAWSDefaultServiceQuota");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
export const se_GetRequestedServiceQuotaChangeCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("GetRequestedServiceQuotaChange");
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
41
|
export const se_GetServiceQuotaCommand = async (input, context) => {
|
|
42
42
|
const headers = sharedHeaders("GetServiceQuota");
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
47
|
export const se_GetServiceQuotaIncreaseRequestFromTemplateCommand = async (input, context) => {
|
|
48
48
|
const headers = sharedHeaders("GetServiceQuotaIncreaseRequestFromTemplate");
|
|
49
49
|
let body;
|
|
50
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
52
|
};
|
|
53
53
|
export const se_ListAWSDefaultServiceQuotasCommand = async (input, context) => {
|
|
54
54
|
const headers = sharedHeaders("ListAWSDefaultServiceQuotas");
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
59
|
export const se_ListRequestedServiceQuotaChangeHistoryCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("ListRequestedServiceQuotaChangeHistory");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
export const se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("ListRequestedServiceQuotaChangeHistoryByQuota");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
export const se_ListServiceQuotaIncreaseRequestsInTemplateCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("ListServiceQuotaIncreaseRequestsInTemplate");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
export const se_ListServiceQuotasCommand = async (input, context) => {
|
|
78
78
|
const headers = sharedHeaders("ListServiceQuotas");
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
81
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
82
|
};
|
|
83
83
|
export const se_ListServicesCommand = async (input, context) => {
|
|
84
84
|
const headers = sharedHeaders("ListServices");
|
|
85
85
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
87
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
88
|
};
|
|
89
89
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
90
90
|
const headers = sharedHeaders("ListTagsForResource");
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
95
|
export const se_PutServiceQuotaIncreaseRequestIntoTemplateCommand = async (input, context) => {
|
|
@@ -107,13 +107,13 @@ export const se_RequestServiceQuotaIncreaseCommand = async (input, context) => {
|
|
|
107
107
|
export const se_TagResourceCommand = async (input, context) => {
|
|
108
108
|
const headers = sharedHeaders("TagResource");
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(_json(input));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
113
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("UntagResource");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
export const de_AssociateServiceQuotaTemplateCommand = async (output, context) => {
|
|
@@ -122,12 +122,12 @@ export const de_AssociateServiceQuotaTemplateCommand = async (output, context) =
|
|
|
122
122
|
}
|
|
123
123
|
const data = await parseBody(output.body, context);
|
|
124
124
|
let contents = {};
|
|
125
|
-
contents =
|
|
125
|
+
contents = _json(data);
|
|
126
126
|
const response = {
|
|
127
127
|
$metadata: deserializeMetadata(output),
|
|
128
128
|
...contents,
|
|
129
129
|
};
|
|
130
|
-
return
|
|
130
|
+
return response;
|
|
131
131
|
};
|
|
132
132
|
const de_AssociateServiceQuotaTemplateCommandError = async (output, context) => {
|
|
133
133
|
const parsedOutput = {
|
|
@@ -162,10 +162,9 @@ const de_AssociateServiceQuotaTemplateCommandError = async (output, context) =>
|
|
|
162
162
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
163
163
|
default:
|
|
164
164
|
const parsedBody = parsedOutput.body;
|
|
165
|
-
throwDefaultError({
|
|
165
|
+
return throwDefaultError({
|
|
166
166
|
output,
|
|
167
167
|
parsedBody,
|
|
168
|
-
exceptionCtor: __BaseException,
|
|
169
168
|
errorCode,
|
|
170
169
|
});
|
|
171
170
|
}
|
|
@@ -176,12 +175,12 @@ export const de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = async (ou
|
|
|
176
175
|
}
|
|
177
176
|
const data = await parseBody(output.body, context);
|
|
178
177
|
let contents = {};
|
|
179
|
-
contents =
|
|
178
|
+
contents = _json(data);
|
|
180
179
|
const response = {
|
|
181
180
|
$metadata: deserializeMetadata(output),
|
|
182
181
|
...contents,
|
|
183
182
|
};
|
|
184
|
-
return
|
|
183
|
+
return response;
|
|
185
184
|
};
|
|
186
185
|
const de_DeleteServiceQuotaIncreaseRequestFromTemplateCommandError = async (output, context) => {
|
|
187
186
|
const parsedOutput = {
|
|
@@ -219,10 +218,9 @@ const de_DeleteServiceQuotaIncreaseRequestFromTemplateCommandError = async (outp
|
|
|
219
218
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
220
219
|
default:
|
|
221
220
|
const parsedBody = parsedOutput.body;
|
|
222
|
-
throwDefaultError({
|
|
221
|
+
return throwDefaultError({
|
|
223
222
|
output,
|
|
224
223
|
parsedBody,
|
|
225
|
-
exceptionCtor: __BaseException,
|
|
226
224
|
errorCode,
|
|
227
225
|
});
|
|
228
226
|
}
|
|
@@ -233,12 +231,12 @@ export const de_DisassociateServiceQuotaTemplateCommand = async (output, context
|
|
|
233
231
|
}
|
|
234
232
|
const data = await parseBody(output.body, context);
|
|
235
233
|
let contents = {};
|
|
236
|
-
contents =
|
|
234
|
+
contents = _json(data);
|
|
237
235
|
const response = {
|
|
238
236
|
$metadata: deserializeMetadata(output),
|
|
239
237
|
...contents,
|
|
240
238
|
};
|
|
241
|
-
return
|
|
239
|
+
return response;
|
|
242
240
|
};
|
|
243
241
|
const de_DisassociateServiceQuotaTemplateCommandError = async (output, context) => {
|
|
244
242
|
const parsedOutput = {
|
|
@@ -273,10 +271,9 @@ const de_DisassociateServiceQuotaTemplateCommandError = async (output, context)
|
|
|
273
271
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
274
272
|
default:
|
|
275
273
|
const parsedBody = parsedOutput.body;
|
|
276
|
-
throwDefaultError({
|
|
274
|
+
return throwDefaultError({
|
|
277
275
|
output,
|
|
278
276
|
parsedBody,
|
|
279
|
-
exceptionCtor: __BaseException,
|
|
280
277
|
errorCode,
|
|
281
278
|
});
|
|
282
279
|
}
|
|
@@ -287,12 +284,12 @@ export const de_GetAssociationForServiceQuotaTemplateCommand = async (output, co
|
|
|
287
284
|
}
|
|
288
285
|
const data = await parseBody(output.body, context);
|
|
289
286
|
let contents = {};
|
|
290
|
-
contents =
|
|
287
|
+
contents = _json(data);
|
|
291
288
|
const response = {
|
|
292
289
|
$metadata: deserializeMetadata(output),
|
|
293
290
|
...contents,
|
|
294
291
|
};
|
|
295
|
-
return
|
|
292
|
+
return response;
|
|
296
293
|
};
|
|
297
294
|
const de_GetAssociationForServiceQuotaTemplateCommandError = async (output, context) => {
|
|
298
295
|
const parsedOutput = {
|
|
@@ -327,10 +324,9 @@ const de_GetAssociationForServiceQuotaTemplateCommandError = async (output, cont
|
|
|
327
324
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
328
325
|
default:
|
|
329
326
|
const parsedBody = parsedOutput.body;
|
|
330
|
-
throwDefaultError({
|
|
327
|
+
return throwDefaultError({
|
|
331
328
|
output,
|
|
332
329
|
parsedBody,
|
|
333
|
-
exceptionCtor: __BaseException,
|
|
334
330
|
errorCode,
|
|
335
331
|
});
|
|
336
332
|
}
|
|
@@ -346,7 +342,7 @@ export const de_GetAWSDefaultServiceQuotaCommand = async (output, context) => {
|
|
|
346
342
|
$metadata: deserializeMetadata(output),
|
|
347
343
|
...contents,
|
|
348
344
|
};
|
|
349
|
-
return
|
|
345
|
+
return response;
|
|
350
346
|
};
|
|
351
347
|
const de_GetAWSDefaultServiceQuotaCommandError = async (output, context) => {
|
|
352
348
|
const parsedOutput = {
|
|
@@ -372,10 +368,9 @@ const de_GetAWSDefaultServiceQuotaCommandError = async (output, context) => {
|
|
|
372
368
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
373
369
|
default:
|
|
374
370
|
const parsedBody = parsedOutput.body;
|
|
375
|
-
throwDefaultError({
|
|
371
|
+
return throwDefaultError({
|
|
376
372
|
output,
|
|
377
373
|
parsedBody,
|
|
378
|
-
exceptionCtor: __BaseException,
|
|
379
374
|
errorCode,
|
|
380
375
|
});
|
|
381
376
|
}
|
|
@@ -391,7 +386,7 @@ export const de_GetRequestedServiceQuotaChangeCommand = async (output, context)
|
|
|
391
386
|
$metadata: deserializeMetadata(output),
|
|
392
387
|
...contents,
|
|
393
388
|
};
|
|
394
|
-
return
|
|
389
|
+
return response;
|
|
395
390
|
};
|
|
396
391
|
const de_GetRequestedServiceQuotaChangeCommandError = async (output, context) => {
|
|
397
392
|
const parsedOutput = {
|
|
@@ -417,10 +412,9 @@ const de_GetRequestedServiceQuotaChangeCommandError = async (output, context) =>
|
|
|
417
412
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
418
413
|
default:
|
|
419
414
|
const parsedBody = parsedOutput.body;
|
|
420
|
-
throwDefaultError({
|
|
415
|
+
return throwDefaultError({
|
|
421
416
|
output,
|
|
422
417
|
parsedBody,
|
|
423
|
-
exceptionCtor: __BaseException,
|
|
424
418
|
errorCode,
|
|
425
419
|
});
|
|
426
420
|
}
|
|
@@ -436,7 +430,7 @@ export const de_GetServiceQuotaCommand = async (output, context) => {
|
|
|
436
430
|
$metadata: deserializeMetadata(output),
|
|
437
431
|
...contents,
|
|
438
432
|
};
|
|
439
|
-
return
|
|
433
|
+
return response;
|
|
440
434
|
};
|
|
441
435
|
const de_GetServiceQuotaCommandError = async (output, context) => {
|
|
442
436
|
const parsedOutput = {
|
|
@@ -462,10 +456,9 @@ const de_GetServiceQuotaCommandError = async (output, context) => {
|
|
|
462
456
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
463
457
|
default:
|
|
464
458
|
const parsedBody = parsedOutput.body;
|
|
465
|
-
throwDefaultError({
|
|
459
|
+
return throwDefaultError({
|
|
466
460
|
output,
|
|
467
461
|
parsedBody,
|
|
468
|
-
exceptionCtor: __BaseException,
|
|
469
462
|
errorCode,
|
|
470
463
|
});
|
|
471
464
|
}
|
|
@@ -481,7 +474,7 @@ export const de_GetServiceQuotaIncreaseRequestFromTemplateCommand = async (outpu
|
|
|
481
474
|
$metadata: deserializeMetadata(output),
|
|
482
475
|
...contents,
|
|
483
476
|
};
|
|
484
|
-
return
|
|
477
|
+
return response;
|
|
485
478
|
};
|
|
486
479
|
const de_GetServiceQuotaIncreaseRequestFromTemplateCommandError = async (output, context) => {
|
|
487
480
|
const parsedOutput = {
|
|
@@ -519,10 +512,9 @@ const de_GetServiceQuotaIncreaseRequestFromTemplateCommandError = async (output,
|
|
|
519
512
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
520
513
|
default:
|
|
521
514
|
const parsedBody = parsedOutput.body;
|
|
522
|
-
throwDefaultError({
|
|
515
|
+
return throwDefaultError({
|
|
523
516
|
output,
|
|
524
517
|
parsedBody,
|
|
525
|
-
exceptionCtor: __BaseException,
|
|
526
518
|
errorCode,
|
|
527
519
|
});
|
|
528
520
|
}
|
|
@@ -538,7 +530,7 @@ export const de_ListAWSDefaultServiceQuotasCommand = async (output, context) =>
|
|
|
538
530
|
$metadata: deserializeMetadata(output),
|
|
539
531
|
...contents,
|
|
540
532
|
};
|
|
541
|
-
return
|
|
533
|
+
return response;
|
|
542
534
|
};
|
|
543
535
|
const de_ListAWSDefaultServiceQuotasCommandError = async (output, context) => {
|
|
544
536
|
const parsedOutput = {
|
|
@@ -567,10 +559,9 @@ const de_ListAWSDefaultServiceQuotasCommandError = async (output, context) => {
|
|
|
567
559
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
568
560
|
default:
|
|
569
561
|
const parsedBody = parsedOutput.body;
|
|
570
|
-
throwDefaultError({
|
|
562
|
+
return throwDefaultError({
|
|
571
563
|
output,
|
|
572
564
|
parsedBody,
|
|
573
|
-
exceptionCtor: __BaseException,
|
|
574
565
|
errorCode,
|
|
575
566
|
});
|
|
576
567
|
}
|
|
@@ -586,7 +577,7 @@ export const de_ListRequestedServiceQuotaChangeHistoryCommand = async (output, c
|
|
|
586
577
|
$metadata: deserializeMetadata(output),
|
|
587
578
|
...contents,
|
|
588
579
|
};
|
|
589
|
-
return
|
|
580
|
+
return response;
|
|
590
581
|
};
|
|
591
582
|
const de_ListRequestedServiceQuotaChangeHistoryCommandError = async (output, context) => {
|
|
592
583
|
const parsedOutput = {
|
|
@@ -615,10 +606,9 @@ const de_ListRequestedServiceQuotaChangeHistoryCommandError = async (output, con
|
|
|
615
606
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
616
607
|
default:
|
|
617
608
|
const parsedBody = parsedOutput.body;
|
|
618
|
-
throwDefaultError({
|
|
609
|
+
return throwDefaultError({
|
|
619
610
|
output,
|
|
620
611
|
parsedBody,
|
|
621
|
-
exceptionCtor: __BaseException,
|
|
622
612
|
errorCode,
|
|
623
613
|
});
|
|
624
614
|
}
|
|
@@ -634,7 +624,7 @@ export const de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = async (ou
|
|
|
634
624
|
$metadata: deserializeMetadata(output),
|
|
635
625
|
...contents,
|
|
636
626
|
};
|
|
637
|
-
return
|
|
627
|
+
return response;
|
|
638
628
|
};
|
|
639
629
|
const de_ListRequestedServiceQuotaChangeHistoryByQuotaCommandError = async (output, context) => {
|
|
640
630
|
const parsedOutput = {
|
|
@@ -663,10 +653,9 @@ const de_ListRequestedServiceQuotaChangeHistoryByQuotaCommandError = async (outp
|
|
|
663
653
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
664
654
|
default:
|
|
665
655
|
const parsedBody = parsedOutput.body;
|
|
666
|
-
throwDefaultError({
|
|
656
|
+
return throwDefaultError({
|
|
667
657
|
output,
|
|
668
658
|
parsedBody,
|
|
669
|
-
exceptionCtor: __BaseException,
|
|
670
659
|
errorCode,
|
|
671
660
|
});
|
|
672
661
|
}
|
|
@@ -682,7 +671,7 @@ export const de_ListServiceQuotaIncreaseRequestsInTemplateCommand = async (outpu
|
|
|
682
671
|
$metadata: deserializeMetadata(output),
|
|
683
672
|
...contents,
|
|
684
673
|
};
|
|
685
|
-
return
|
|
674
|
+
return response;
|
|
686
675
|
};
|
|
687
676
|
const de_ListServiceQuotaIncreaseRequestsInTemplateCommandError = async (output, context) => {
|
|
688
677
|
const parsedOutput = {
|
|
@@ -717,10 +706,9 @@ const de_ListServiceQuotaIncreaseRequestsInTemplateCommandError = async (output,
|
|
|
717
706
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
718
707
|
default:
|
|
719
708
|
const parsedBody = parsedOutput.body;
|
|
720
|
-
throwDefaultError({
|
|
709
|
+
return throwDefaultError({
|
|
721
710
|
output,
|
|
722
711
|
parsedBody,
|
|
723
|
-
exceptionCtor: __BaseException,
|
|
724
712
|
errorCode,
|
|
725
713
|
});
|
|
726
714
|
}
|
|
@@ -736,7 +724,7 @@ export const de_ListServiceQuotasCommand = async (output, context) => {
|
|
|
736
724
|
$metadata: deserializeMetadata(output),
|
|
737
725
|
...contents,
|
|
738
726
|
};
|
|
739
|
-
return
|
|
727
|
+
return response;
|
|
740
728
|
};
|
|
741
729
|
const de_ListServiceQuotasCommandError = async (output, context) => {
|
|
742
730
|
const parsedOutput = {
|
|
@@ -765,10 +753,9 @@ const de_ListServiceQuotasCommandError = async (output, context) => {
|
|
|
765
753
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
766
754
|
default:
|
|
767
755
|
const parsedBody = parsedOutput.body;
|
|
768
|
-
throwDefaultError({
|
|
756
|
+
return throwDefaultError({
|
|
769
757
|
output,
|
|
770
758
|
parsedBody,
|
|
771
|
-
exceptionCtor: __BaseException,
|
|
772
759
|
errorCode,
|
|
773
760
|
});
|
|
774
761
|
}
|
|
@@ -779,12 +766,12 @@ export const de_ListServicesCommand = async (output, context) => {
|
|
|
779
766
|
}
|
|
780
767
|
const data = await parseBody(output.body, context);
|
|
781
768
|
let contents = {};
|
|
782
|
-
contents =
|
|
769
|
+
contents = _json(data);
|
|
783
770
|
const response = {
|
|
784
771
|
$metadata: deserializeMetadata(output),
|
|
785
772
|
...contents,
|
|
786
773
|
};
|
|
787
|
-
return
|
|
774
|
+
return response;
|
|
788
775
|
};
|
|
789
776
|
const de_ListServicesCommandError = async (output, context) => {
|
|
790
777
|
const parsedOutput = {
|
|
@@ -810,10 +797,9 @@ const de_ListServicesCommandError = async (output, context) => {
|
|
|
810
797
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
811
798
|
default:
|
|
812
799
|
const parsedBody = parsedOutput.body;
|
|
813
|
-
throwDefaultError({
|
|
800
|
+
return throwDefaultError({
|
|
814
801
|
output,
|
|
815
802
|
parsedBody,
|
|
816
|
-
exceptionCtor: __BaseException,
|
|
817
803
|
errorCode,
|
|
818
804
|
});
|
|
819
805
|
}
|
|
@@ -824,12 +810,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
824
810
|
}
|
|
825
811
|
const data = await parseBody(output.body, context);
|
|
826
812
|
let contents = {};
|
|
827
|
-
contents =
|
|
813
|
+
contents = _json(data);
|
|
828
814
|
const response = {
|
|
829
815
|
$metadata: deserializeMetadata(output),
|
|
830
816
|
...contents,
|
|
831
817
|
};
|
|
832
|
-
return
|
|
818
|
+
return response;
|
|
833
819
|
};
|
|
834
820
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
835
821
|
const parsedOutput = {
|
|
@@ -855,10 +841,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
855
841
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
856
842
|
default:
|
|
857
843
|
const parsedBody = parsedOutput.body;
|
|
858
|
-
throwDefaultError({
|
|
844
|
+
return throwDefaultError({
|
|
859
845
|
output,
|
|
860
846
|
parsedBody,
|
|
861
|
-
exceptionCtor: __BaseException,
|
|
862
847
|
errorCode,
|
|
863
848
|
});
|
|
864
849
|
}
|
|
@@ -874,7 +859,7 @@ export const de_PutServiceQuotaIncreaseRequestIntoTemplateCommand = async (outpu
|
|
|
874
859
|
$metadata: deserializeMetadata(output),
|
|
875
860
|
...contents,
|
|
876
861
|
};
|
|
877
|
-
return
|
|
862
|
+
return response;
|
|
878
863
|
};
|
|
879
864
|
const de_PutServiceQuotaIncreaseRequestIntoTemplateCommandError = async (output, context) => {
|
|
880
865
|
const parsedOutput = {
|
|
@@ -915,10 +900,9 @@ const de_PutServiceQuotaIncreaseRequestIntoTemplateCommandError = async (output,
|
|
|
915
900
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
916
901
|
default:
|
|
917
902
|
const parsedBody = parsedOutput.body;
|
|
918
|
-
throwDefaultError({
|
|
903
|
+
return throwDefaultError({
|
|
919
904
|
output,
|
|
920
905
|
parsedBody,
|
|
921
|
-
exceptionCtor: __BaseException,
|
|
922
906
|
errorCode,
|
|
923
907
|
});
|
|
924
908
|
}
|
|
@@ -934,7 +918,7 @@ export const de_RequestServiceQuotaIncreaseCommand = async (output, context) =>
|
|
|
934
918
|
$metadata: deserializeMetadata(output),
|
|
935
919
|
...contents,
|
|
936
920
|
};
|
|
937
|
-
return
|
|
921
|
+
return response;
|
|
938
922
|
};
|
|
939
923
|
const de_RequestServiceQuotaIncreaseCommandError = async (output, context) => {
|
|
940
924
|
const parsedOutput = {
|
|
@@ -972,10 +956,9 @@ const de_RequestServiceQuotaIncreaseCommandError = async (output, context) => {
|
|
|
972
956
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
973
957
|
default:
|
|
974
958
|
const parsedBody = parsedOutput.body;
|
|
975
|
-
throwDefaultError({
|
|
959
|
+
return throwDefaultError({
|
|
976
960
|
output,
|
|
977
961
|
parsedBody,
|
|
978
|
-
exceptionCtor: __BaseException,
|
|
979
962
|
errorCode,
|
|
980
963
|
});
|
|
981
964
|
}
|
|
@@ -986,12 +969,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
986
969
|
}
|
|
987
970
|
const data = await parseBody(output.body, context);
|
|
988
971
|
let contents = {};
|
|
989
|
-
contents =
|
|
972
|
+
contents = _json(data);
|
|
990
973
|
const response = {
|
|
991
974
|
$metadata: deserializeMetadata(output),
|
|
992
975
|
...contents,
|
|
993
976
|
};
|
|
994
|
-
return
|
|
977
|
+
return response;
|
|
995
978
|
};
|
|
996
979
|
const de_TagResourceCommandError = async (output, context) => {
|
|
997
980
|
const parsedOutput = {
|
|
@@ -1023,10 +1006,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1023
1006
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1024
1007
|
default:
|
|
1025
1008
|
const parsedBody = parsedOutput.body;
|
|
1026
|
-
throwDefaultError({
|
|
1009
|
+
return throwDefaultError({
|
|
1027
1010
|
output,
|
|
1028
1011
|
parsedBody,
|
|
1029
|
-
exceptionCtor: __BaseException,
|
|
1030
1012
|
errorCode,
|
|
1031
1013
|
});
|
|
1032
1014
|
}
|
|
@@ -1037,12 +1019,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1037
1019
|
}
|
|
1038
1020
|
const data = await parseBody(output.body, context);
|
|
1039
1021
|
let contents = {};
|
|
1040
|
-
contents =
|
|
1022
|
+
contents = _json(data);
|
|
1041
1023
|
const response = {
|
|
1042
1024
|
$metadata: deserializeMetadata(output),
|
|
1043
1025
|
...contents,
|
|
1044
1026
|
};
|
|
1045
|
-
return
|
|
1027
|
+
return response;
|
|
1046
1028
|
};
|
|
1047
1029
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
1048
1030
|
const parsedOutput = {
|
|
@@ -1068,17 +1050,16 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1068
1050
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1069
1051
|
default:
|
|
1070
1052
|
const parsedBody = parsedOutput.body;
|
|
1071
|
-
throwDefaultError({
|
|
1053
|
+
return throwDefaultError({
|
|
1072
1054
|
output,
|
|
1073
1055
|
parsedBody,
|
|
1074
|
-
exceptionCtor: __BaseException,
|
|
1075
1056
|
errorCode,
|
|
1076
1057
|
});
|
|
1077
1058
|
}
|
|
1078
1059
|
};
|
|
1079
1060
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1080
1061
|
const body = parsedOutput.body;
|
|
1081
|
-
const deserialized =
|
|
1062
|
+
const deserialized = _json(body);
|
|
1082
1063
|
const exception = new AccessDeniedException({
|
|
1083
1064
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1084
1065
|
...deserialized,
|
|
@@ -1087,7 +1068,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1087
1068
|
};
|
|
1088
1069
|
const de_AWSServiceAccessNotEnabledExceptionRes = async (parsedOutput, context) => {
|
|
1089
1070
|
const body = parsedOutput.body;
|
|
1090
|
-
const deserialized =
|
|
1071
|
+
const deserialized = _json(body);
|
|
1091
1072
|
const exception = new AWSServiceAccessNotEnabledException({
|
|
1092
1073
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1093
1074
|
...deserialized,
|
|
@@ -1096,7 +1077,7 @@ const de_AWSServiceAccessNotEnabledExceptionRes = async (parsedOutput, context)
|
|
|
1096
1077
|
};
|
|
1097
1078
|
const de_DependencyAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1098
1079
|
const body = parsedOutput.body;
|
|
1099
|
-
const deserialized =
|
|
1080
|
+
const deserialized = _json(body);
|
|
1100
1081
|
const exception = new DependencyAccessDeniedException({
|
|
1101
1082
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1102
1083
|
...deserialized,
|
|
@@ -1105,7 +1086,7 @@ const de_DependencyAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1105
1086
|
};
|
|
1106
1087
|
const de_IllegalArgumentExceptionRes = async (parsedOutput, context) => {
|
|
1107
1088
|
const body = parsedOutput.body;
|
|
1108
|
-
const deserialized =
|
|
1089
|
+
const deserialized = _json(body);
|
|
1109
1090
|
const exception = new IllegalArgumentException({
|
|
1110
1091
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1111
1092
|
...deserialized,
|
|
@@ -1114,7 +1095,7 @@ const de_IllegalArgumentExceptionRes = async (parsedOutput, context) => {
|
|
|
1114
1095
|
};
|
|
1115
1096
|
const de_InvalidPaginationTokenExceptionRes = async (parsedOutput, context) => {
|
|
1116
1097
|
const body = parsedOutput.body;
|
|
1117
|
-
const deserialized =
|
|
1098
|
+
const deserialized = _json(body);
|
|
1118
1099
|
const exception = new InvalidPaginationTokenException({
|
|
1119
1100
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1120
1101
|
...deserialized,
|
|
@@ -1123,7 +1104,7 @@ const de_InvalidPaginationTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1123
1104
|
};
|
|
1124
1105
|
const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
|
|
1125
1106
|
const body = parsedOutput.body;
|
|
1126
|
-
const deserialized =
|
|
1107
|
+
const deserialized = _json(body);
|
|
1127
1108
|
const exception = new InvalidResourceStateException({
|
|
1128
1109
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1129
1110
|
...deserialized,
|
|
@@ -1132,7 +1113,7 @@ const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
|
|
|
1132
1113
|
};
|
|
1133
1114
|
const de_NoAvailableOrganizationExceptionRes = async (parsedOutput, context) => {
|
|
1134
1115
|
const body = parsedOutput.body;
|
|
1135
|
-
const deserialized =
|
|
1116
|
+
const deserialized = _json(body);
|
|
1136
1117
|
const exception = new NoAvailableOrganizationException({
|
|
1137
1118
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1138
1119
|
...deserialized,
|
|
@@ -1141,7 +1122,7 @@ const de_NoAvailableOrganizationExceptionRes = async (parsedOutput, context) =>
|
|
|
1141
1122
|
};
|
|
1142
1123
|
const de_NoSuchResourceExceptionRes = async (parsedOutput, context) => {
|
|
1143
1124
|
const body = parsedOutput.body;
|
|
1144
|
-
const deserialized =
|
|
1125
|
+
const deserialized = _json(body);
|
|
1145
1126
|
const exception = new NoSuchResourceException({
|
|
1146
1127
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1147
1128
|
...deserialized,
|
|
@@ -1150,7 +1131,7 @@ const de_NoSuchResourceExceptionRes = async (parsedOutput, context) => {
|
|
|
1150
1131
|
};
|
|
1151
1132
|
const de_OrganizationNotInAllFeaturesModeExceptionRes = async (parsedOutput, context) => {
|
|
1152
1133
|
const body = parsedOutput.body;
|
|
1153
|
-
const deserialized =
|
|
1134
|
+
const deserialized = _json(body);
|
|
1154
1135
|
const exception = new OrganizationNotInAllFeaturesModeException({
|
|
1155
1136
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1156
1137
|
...deserialized,
|
|
@@ -1159,7 +1140,7 @@ const de_OrganizationNotInAllFeaturesModeExceptionRes = async (parsedOutput, con
|
|
|
1159
1140
|
};
|
|
1160
1141
|
const de_QuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1161
1142
|
const body = parsedOutput.body;
|
|
1162
|
-
const deserialized =
|
|
1143
|
+
const deserialized = _json(body);
|
|
1163
1144
|
const exception = new QuotaExceededException({
|
|
1164
1145
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1165
1146
|
...deserialized,
|
|
@@ -1168,7 +1149,7 @@ const de_QuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1168
1149
|
};
|
|
1169
1150
|
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1170
1151
|
const body = parsedOutput.body;
|
|
1171
|
-
const deserialized =
|
|
1152
|
+
const deserialized = _json(body);
|
|
1172
1153
|
const exception = new ResourceAlreadyExistsException({
|
|
1173
1154
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1174
1155
|
...deserialized,
|
|
@@ -1177,7 +1158,7 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
1177
1158
|
};
|
|
1178
1159
|
const de_ServiceExceptionRes = async (parsedOutput, context) => {
|
|
1179
1160
|
const body = parsedOutput.body;
|
|
1180
|
-
const deserialized =
|
|
1161
|
+
const deserialized = _json(body);
|
|
1181
1162
|
const exception = new ServiceException({
|
|
1182
1163
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1183
1164
|
...deserialized,
|
|
@@ -1186,7 +1167,7 @@ const de_ServiceExceptionRes = async (parsedOutput, context) => {
|
|
|
1186
1167
|
};
|
|
1187
1168
|
const de_ServiceQuotaTemplateNotInUseExceptionRes = async (parsedOutput, context) => {
|
|
1188
1169
|
const body = parsedOutput.body;
|
|
1189
|
-
const deserialized =
|
|
1170
|
+
const deserialized = _json(body);
|
|
1190
1171
|
const exception = new ServiceQuotaTemplateNotInUseException({
|
|
1191
1172
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1192
1173
|
...deserialized,
|
|
@@ -1195,7 +1176,7 @@ const de_ServiceQuotaTemplateNotInUseExceptionRes = async (parsedOutput, context
|
|
|
1195
1176
|
};
|
|
1196
1177
|
const de_TagPolicyViolationExceptionRes = async (parsedOutput, context) => {
|
|
1197
1178
|
const body = parsedOutput.body;
|
|
1198
|
-
const deserialized =
|
|
1179
|
+
const deserialized = _json(body);
|
|
1199
1180
|
const exception = new TagPolicyViolationException({
|
|
1200
1181
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1201
1182
|
...deserialized,
|
|
@@ -1204,7 +1185,7 @@ const de_TagPolicyViolationExceptionRes = async (parsedOutput, context) => {
|
|
|
1204
1185
|
};
|
|
1205
1186
|
const de_TemplatesNotAvailableInRegionExceptionRes = async (parsedOutput, context) => {
|
|
1206
1187
|
const body = parsedOutput.body;
|
|
1207
|
-
const deserialized =
|
|
1188
|
+
const deserialized = _json(body);
|
|
1208
1189
|
const exception = new TemplatesNotAvailableInRegionException({
|
|
1209
1190
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1210
1191
|
...deserialized,
|
|
@@ -1213,7 +1194,7 @@ const de_TemplatesNotAvailableInRegionExceptionRes = async (parsedOutput, contex
|
|
|
1213
1194
|
};
|
|
1214
1195
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1215
1196
|
const body = parsedOutput.body;
|
|
1216
|
-
const deserialized =
|
|
1197
|
+
const deserialized = _json(body);
|
|
1217
1198
|
const exception = new TooManyRequestsException({
|
|
1218
1199
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1219
1200
|
...deserialized,
|
|
@@ -1222,428 +1203,146 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
1222
1203
|
};
|
|
1223
1204
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1224
1205
|
const body = parsedOutput.body;
|
|
1225
|
-
const deserialized =
|
|
1206
|
+
const deserialized = _json(body);
|
|
1226
1207
|
const exception = new TooManyTagsException({
|
|
1227
1208
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1228
1209
|
...deserialized,
|
|
1229
1210
|
});
|
|
1230
1211
|
return __decorateServiceException(exception, body);
|
|
1231
1212
|
};
|
|
1232
|
-
const se_AssociateServiceQuotaTemplateRequest = (input, context) => {
|
|
1233
|
-
return {};
|
|
1234
|
-
};
|
|
1235
|
-
const se_DeleteServiceQuotaIncreaseRequestFromTemplateRequest = (input, context) => {
|
|
1236
|
-
return {
|
|
1237
|
-
...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
|
|
1238
|
-
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1239
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1240
|
-
};
|
|
1241
|
-
};
|
|
1242
|
-
const se_DisassociateServiceQuotaTemplateRequest = (input, context) => {
|
|
1243
|
-
return {};
|
|
1244
|
-
};
|
|
1245
|
-
const se_GetAssociationForServiceQuotaTemplateRequest = (input, context) => {
|
|
1246
|
-
return {};
|
|
1247
|
-
};
|
|
1248
|
-
const se_GetAWSDefaultServiceQuotaRequest = (input, context) => {
|
|
1249
|
-
return {
|
|
1250
|
-
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1251
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1252
|
-
};
|
|
1253
|
-
};
|
|
1254
|
-
const se_GetRequestedServiceQuotaChangeRequest = (input, context) => {
|
|
1255
|
-
return {
|
|
1256
|
-
...(input.RequestId != null && { RequestId: input.RequestId }),
|
|
1257
|
-
};
|
|
1258
|
-
};
|
|
1259
|
-
const se_GetServiceQuotaIncreaseRequestFromTemplateRequest = (input, context) => {
|
|
1260
|
-
return {
|
|
1261
|
-
...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
|
|
1262
|
-
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1263
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1264
|
-
};
|
|
1265
|
-
};
|
|
1266
|
-
const se_GetServiceQuotaRequest = (input, context) => {
|
|
1267
|
-
return {
|
|
1268
|
-
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1269
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1270
|
-
};
|
|
1271
|
-
};
|
|
1272
|
-
const se_InputTagKeys = (input, context) => {
|
|
1273
|
-
return input
|
|
1274
|
-
.filter((e) => e != null)
|
|
1275
|
-
.map((entry) => {
|
|
1276
|
-
return entry;
|
|
1277
|
-
});
|
|
1278
|
-
};
|
|
1279
|
-
const se_InputTags = (input, context) => {
|
|
1280
|
-
return input
|
|
1281
|
-
.filter((e) => e != null)
|
|
1282
|
-
.map((entry) => {
|
|
1283
|
-
return se_Tag(entry, context);
|
|
1284
|
-
});
|
|
1285
|
-
};
|
|
1286
|
-
const se_ListAWSDefaultServiceQuotasRequest = (input, context) => {
|
|
1287
|
-
return {
|
|
1288
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1289
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1290
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1291
|
-
};
|
|
1292
|
-
};
|
|
1293
|
-
const se_ListRequestedServiceQuotaChangeHistoryByQuotaRequest = (input, context) => {
|
|
1294
|
-
return {
|
|
1295
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1296
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1297
|
-
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1298
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1299
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1300
|
-
};
|
|
1301
|
-
};
|
|
1302
|
-
const se_ListRequestedServiceQuotaChangeHistoryRequest = (input, context) => {
|
|
1303
|
-
return {
|
|
1304
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1305
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1306
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1307
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1308
|
-
};
|
|
1309
|
-
};
|
|
1310
|
-
const se_ListServiceQuotaIncreaseRequestsInTemplateRequest = (input, context) => {
|
|
1311
|
-
return {
|
|
1312
|
-
...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
|
|
1313
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1314
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1315
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1316
|
-
};
|
|
1317
|
-
};
|
|
1318
|
-
const se_ListServiceQuotasRequest = (input, context) => {
|
|
1319
|
-
return {
|
|
1320
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1321
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1322
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1323
|
-
};
|
|
1324
|
-
};
|
|
1325
|
-
const se_ListServicesRequest = (input, context) => {
|
|
1326
|
-
return {
|
|
1327
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1328
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1329
|
-
};
|
|
1330
|
-
};
|
|
1331
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1332
|
-
return {
|
|
1333
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1334
|
-
};
|
|
1335
|
-
};
|
|
1336
1213
|
const se_PutServiceQuotaIncreaseRequestIntoTemplateRequest = (input, context) => {
|
|
1337
|
-
return {
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
};
|
|
1214
|
+
return take(input, {
|
|
1215
|
+
AwsRegion: [],
|
|
1216
|
+
DesiredValue: __serializeFloat,
|
|
1217
|
+
QuotaCode: [],
|
|
1218
|
+
ServiceCode: [],
|
|
1219
|
+
});
|
|
1343
1220
|
};
|
|
1344
1221
|
const se_RequestServiceQuotaIncreaseRequest = (input, context) => {
|
|
1345
|
-
return {
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
};
|
|
1350
|
-
};
|
|
1351
|
-
const se_Tag = (input, context) => {
|
|
1352
|
-
return {
|
|
1353
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1354
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1355
|
-
};
|
|
1356
|
-
};
|
|
1357
|
-
const se_TagResourceRequest = (input, context) => {
|
|
1358
|
-
return {
|
|
1359
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1360
|
-
...(input.Tags != null && { Tags: se_InputTags(input.Tags, context) }),
|
|
1361
|
-
};
|
|
1362
|
-
};
|
|
1363
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1364
|
-
return {
|
|
1365
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1366
|
-
...(input.TagKeys != null && { TagKeys: se_InputTagKeys(input.TagKeys, context) }),
|
|
1367
|
-
};
|
|
1368
|
-
};
|
|
1369
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1370
|
-
return {
|
|
1371
|
-
Message: __expectString(output.Message),
|
|
1372
|
-
};
|
|
1373
|
-
};
|
|
1374
|
-
const de_AssociateServiceQuotaTemplateResponse = (output, context) => {
|
|
1375
|
-
return {};
|
|
1376
|
-
};
|
|
1377
|
-
const de_AWSServiceAccessNotEnabledException = (output, context) => {
|
|
1378
|
-
return {
|
|
1379
|
-
Message: __expectString(output.Message),
|
|
1380
|
-
};
|
|
1381
|
-
};
|
|
1382
|
-
const de_DeleteServiceQuotaIncreaseRequestFromTemplateResponse = (output, context) => {
|
|
1383
|
-
return {};
|
|
1384
|
-
};
|
|
1385
|
-
const de_DependencyAccessDeniedException = (output, context) => {
|
|
1386
|
-
return {
|
|
1387
|
-
Message: __expectString(output.Message),
|
|
1388
|
-
};
|
|
1389
|
-
};
|
|
1390
|
-
const de_DisassociateServiceQuotaTemplateResponse = (output, context) => {
|
|
1391
|
-
return {};
|
|
1392
|
-
};
|
|
1393
|
-
const de_ErrorReason = (output, context) => {
|
|
1394
|
-
return {
|
|
1395
|
-
ErrorCode: __expectString(output.ErrorCode),
|
|
1396
|
-
ErrorMessage: __expectString(output.ErrorMessage),
|
|
1397
|
-
};
|
|
1398
|
-
};
|
|
1399
|
-
const de_GetAssociationForServiceQuotaTemplateResponse = (output, context) => {
|
|
1400
|
-
return {
|
|
1401
|
-
ServiceQuotaTemplateAssociationStatus: __expectString(output.ServiceQuotaTemplateAssociationStatus),
|
|
1402
|
-
};
|
|
1222
|
+
return take(input, {
|
|
1223
|
+
DesiredValue: __serializeFloat,
|
|
1224
|
+
QuotaCode: [],
|
|
1225
|
+
ServiceCode: [],
|
|
1226
|
+
});
|
|
1403
1227
|
};
|
|
1404
1228
|
const de_GetAWSDefaultServiceQuotaResponse = (output, context) => {
|
|
1405
|
-
return {
|
|
1406
|
-
Quota:
|
|
1407
|
-
};
|
|
1229
|
+
return take(output, {
|
|
1230
|
+
Quota: (_) => de_ServiceQuota(_, context),
|
|
1231
|
+
});
|
|
1408
1232
|
};
|
|
1409
1233
|
const de_GetRequestedServiceQuotaChangeResponse = (output, context) => {
|
|
1410
|
-
return {
|
|
1411
|
-
RequestedQuota:
|
|
1412
|
-
};
|
|
1234
|
+
return take(output, {
|
|
1235
|
+
RequestedQuota: (_) => de_RequestedServiceQuotaChange(_, context),
|
|
1236
|
+
});
|
|
1413
1237
|
};
|
|
1414
1238
|
const de_GetServiceQuotaIncreaseRequestFromTemplateResponse = (output, context) => {
|
|
1415
|
-
return {
|
|
1416
|
-
ServiceQuotaIncreaseRequestInTemplate:
|
|
1417
|
-
|
|
1418
|
-
: undefined,
|
|
1419
|
-
};
|
|
1239
|
+
return take(output, {
|
|
1240
|
+
ServiceQuotaIncreaseRequestInTemplate: (_) => de_ServiceQuotaIncreaseRequestInTemplate(_, context),
|
|
1241
|
+
});
|
|
1420
1242
|
};
|
|
1421
1243
|
const de_GetServiceQuotaResponse = (output, context) => {
|
|
1422
|
-
return {
|
|
1423
|
-
Quota:
|
|
1424
|
-
};
|
|
1425
|
-
};
|
|
1426
|
-
const de_IllegalArgumentException = (output, context) => {
|
|
1427
|
-
return {
|
|
1428
|
-
Message: __expectString(output.Message),
|
|
1429
|
-
};
|
|
1430
|
-
};
|
|
1431
|
-
const de_InvalidPaginationTokenException = (output, context) => {
|
|
1432
|
-
return {
|
|
1433
|
-
Message: __expectString(output.Message),
|
|
1434
|
-
};
|
|
1435
|
-
};
|
|
1436
|
-
const de_InvalidResourceStateException = (output, context) => {
|
|
1437
|
-
return {
|
|
1438
|
-
Message: __expectString(output.Message),
|
|
1439
|
-
};
|
|
1244
|
+
return take(output, {
|
|
1245
|
+
Quota: (_) => de_ServiceQuota(_, context),
|
|
1246
|
+
});
|
|
1440
1247
|
};
|
|
1441
1248
|
const de_ListAWSDefaultServiceQuotasResponse = (output, context) => {
|
|
1442
|
-
return {
|
|
1443
|
-
NextToken: __expectString
|
|
1444
|
-
Quotas:
|
|
1445
|
-
};
|
|
1249
|
+
return take(output, {
|
|
1250
|
+
NextToken: __expectString,
|
|
1251
|
+
Quotas: (_) => de_ServiceQuotaListDefinition(_, context),
|
|
1252
|
+
});
|
|
1446
1253
|
};
|
|
1447
1254
|
const de_ListRequestedServiceQuotaChangeHistoryByQuotaResponse = (output, context) => {
|
|
1448
|
-
return {
|
|
1449
|
-
NextToken: __expectString
|
|
1450
|
-
RequestedQuotas:
|
|
1451
|
-
|
|
1452
|
-
: undefined,
|
|
1453
|
-
};
|
|
1255
|
+
return take(output, {
|
|
1256
|
+
NextToken: __expectString,
|
|
1257
|
+
RequestedQuotas: (_) => de_RequestedServiceQuotaChangeHistoryListDefinition(_, context),
|
|
1258
|
+
});
|
|
1454
1259
|
};
|
|
1455
1260
|
const de_ListRequestedServiceQuotaChangeHistoryResponse = (output, context) => {
|
|
1456
|
-
return {
|
|
1457
|
-
NextToken: __expectString
|
|
1458
|
-
RequestedQuotas:
|
|
1459
|
-
|
|
1460
|
-
: undefined,
|
|
1461
|
-
};
|
|
1261
|
+
return take(output, {
|
|
1262
|
+
NextToken: __expectString,
|
|
1263
|
+
RequestedQuotas: (_) => de_RequestedServiceQuotaChangeHistoryListDefinition(_, context),
|
|
1264
|
+
});
|
|
1462
1265
|
};
|
|
1463
1266
|
const de_ListServiceQuotaIncreaseRequestsInTemplateResponse = (output, context) => {
|
|
1464
|
-
return {
|
|
1465
|
-
NextToken: __expectString
|
|
1466
|
-
ServiceQuotaIncreaseRequestInTemplateList:
|
|
1467
|
-
|
|
1468
|
-
: undefined,
|
|
1469
|
-
};
|
|
1267
|
+
return take(output, {
|
|
1268
|
+
NextToken: __expectString,
|
|
1269
|
+
ServiceQuotaIncreaseRequestInTemplateList: (_) => de_ServiceQuotaIncreaseRequestInTemplateList(_, context),
|
|
1270
|
+
});
|
|
1470
1271
|
};
|
|
1471
1272
|
const de_ListServiceQuotasResponse = (output, context) => {
|
|
1472
|
-
return {
|
|
1473
|
-
NextToken: __expectString
|
|
1474
|
-
Quotas:
|
|
1475
|
-
};
|
|
1476
|
-
};
|
|
1477
|
-
const de_ListServicesResponse = (output, context) => {
|
|
1478
|
-
return {
|
|
1479
|
-
NextToken: __expectString(output.NextToken),
|
|
1480
|
-
Services: output.Services != null ? de_ServiceInfoListDefinition(output.Services, context) : undefined,
|
|
1481
|
-
};
|
|
1482
|
-
};
|
|
1483
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1484
|
-
return {
|
|
1485
|
-
Tags: output.Tags != null ? de_OutputTags(output.Tags, context) : undefined,
|
|
1486
|
-
};
|
|
1487
|
-
};
|
|
1488
|
-
const de_MetricDimensionsMapDefinition = (output, context) => {
|
|
1489
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1490
|
-
if (value === null) {
|
|
1491
|
-
return acc;
|
|
1492
|
-
}
|
|
1493
|
-
acc[key] = __expectString(value);
|
|
1494
|
-
return acc;
|
|
1495
|
-
}, {});
|
|
1496
|
-
};
|
|
1497
|
-
const de_MetricInfo = (output, context) => {
|
|
1498
|
-
return {
|
|
1499
|
-
MetricDimensions: output.MetricDimensions != null ? de_MetricDimensionsMapDefinition(output.MetricDimensions, context) : undefined,
|
|
1500
|
-
MetricName: __expectString(output.MetricName),
|
|
1501
|
-
MetricNamespace: __expectString(output.MetricNamespace),
|
|
1502
|
-
MetricStatisticRecommendation: __expectString(output.MetricStatisticRecommendation),
|
|
1503
|
-
};
|
|
1504
|
-
};
|
|
1505
|
-
const de_NoAvailableOrganizationException = (output, context) => {
|
|
1506
|
-
return {
|
|
1507
|
-
Message: __expectString(output.Message),
|
|
1508
|
-
};
|
|
1509
|
-
};
|
|
1510
|
-
const de_NoSuchResourceException = (output, context) => {
|
|
1511
|
-
return {
|
|
1512
|
-
Message: __expectString(output.Message),
|
|
1513
|
-
};
|
|
1514
|
-
};
|
|
1515
|
-
const de_OrganizationNotInAllFeaturesModeException = (output, context) => {
|
|
1516
|
-
return {
|
|
1517
|
-
Message: __expectString(output.Message),
|
|
1518
|
-
};
|
|
1519
|
-
};
|
|
1520
|
-
const de_OutputTags = (output, context) => {
|
|
1521
|
-
const retVal = (output || [])
|
|
1522
|
-
.filter((e) => e != null)
|
|
1523
|
-
.map((entry) => {
|
|
1524
|
-
if (entry === null) {
|
|
1525
|
-
return null;
|
|
1526
|
-
}
|
|
1527
|
-
return de_Tag(entry, context);
|
|
1273
|
+
return take(output, {
|
|
1274
|
+
NextToken: __expectString,
|
|
1275
|
+
Quotas: (_) => de_ServiceQuotaListDefinition(_, context),
|
|
1528
1276
|
});
|
|
1529
|
-
return retVal;
|
|
1530
1277
|
};
|
|
1531
1278
|
const de_PutServiceQuotaIncreaseRequestIntoTemplateResponse = (output, context) => {
|
|
1532
|
-
return {
|
|
1533
|
-
ServiceQuotaIncreaseRequestInTemplate:
|
|
1534
|
-
|
|
1535
|
-
: undefined,
|
|
1536
|
-
};
|
|
1537
|
-
};
|
|
1538
|
-
const de_QuotaExceededException = (output, context) => {
|
|
1539
|
-
return {
|
|
1540
|
-
Message: __expectString(output.Message),
|
|
1541
|
-
};
|
|
1542
|
-
};
|
|
1543
|
-
const de_QuotaPeriod = (output, context) => {
|
|
1544
|
-
return {
|
|
1545
|
-
PeriodUnit: __expectString(output.PeriodUnit),
|
|
1546
|
-
PeriodValue: __expectInt32(output.PeriodValue),
|
|
1547
|
-
};
|
|
1279
|
+
return take(output, {
|
|
1280
|
+
ServiceQuotaIncreaseRequestInTemplate: (_) => de_ServiceQuotaIncreaseRequestInTemplate(_, context),
|
|
1281
|
+
});
|
|
1548
1282
|
};
|
|
1549
1283
|
const de_RequestedServiceQuotaChange = (output, context) => {
|
|
1550
|
-
return {
|
|
1551
|
-
CaseId: __expectString
|
|
1552
|
-
Created:
|
|
1553
|
-
DesiredValue: __limitedParseDouble
|
|
1554
|
-
GlobalQuota: __expectBoolean
|
|
1555
|
-
Id: __expectString
|
|
1556
|
-
LastUpdated:
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
Unit: __expectString(output.Unit),
|
|
1567
|
-
};
|
|
1284
|
+
return take(output, {
|
|
1285
|
+
CaseId: __expectString,
|
|
1286
|
+
Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1287
|
+
DesiredValue: __limitedParseDouble,
|
|
1288
|
+
GlobalQuota: __expectBoolean,
|
|
1289
|
+
Id: __expectString,
|
|
1290
|
+
LastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1291
|
+
QuotaArn: __expectString,
|
|
1292
|
+
QuotaCode: __expectString,
|
|
1293
|
+
QuotaName: __expectString,
|
|
1294
|
+
Requester: __expectString,
|
|
1295
|
+
ServiceCode: __expectString,
|
|
1296
|
+
ServiceName: __expectString,
|
|
1297
|
+
Status: __expectString,
|
|
1298
|
+
Unit: __expectString,
|
|
1299
|
+
});
|
|
1568
1300
|
};
|
|
1569
1301
|
const de_RequestedServiceQuotaChangeHistoryListDefinition = (output, context) => {
|
|
1570
1302
|
const retVal = (output || [])
|
|
1571
1303
|
.filter((e) => e != null)
|
|
1572
1304
|
.map((entry) => {
|
|
1573
|
-
if (entry === null) {
|
|
1574
|
-
return null;
|
|
1575
|
-
}
|
|
1576
1305
|
return de_RequestedServiceQuotaChange(entry, context);
|
|
1577
1306
|
});
|
|
1578
1307
|
return retVal;
|
|
1579
1308
|
};
|
|
1580
1309
|
const de_RequestServiceQuotaIncreaseResponse = (output, context) => {
|
|
1581
|
-
return {
|
|
1582
|
-
RequestedQuota:
|
|
1583
|
-
};
|
|
1584
|
-
};
|
|
1585
|
-
const de_ResourceAlreadyExistsException = (output, context) => {
|
|
1586
|
-
return {
|
|
1587
|
-
Message: __expectString(output.Message),
|
|
1588
|
-
};
|
|
1589
|
-
};
|
|
1590
|
-
const de_ServiceException = (output, context) => {
|
|
1591
|
-
return {
|
|
1592
|
-
Message: __expectString(output.Message),
|
|
1593
|
-
};
|
|
1594
|
-
};
|
|
1595
|
-
const de_ServiceInfo = (output, context) => {
|
|
1596
|
-
return {
|
|
1597
|
-
ServiceCode: __expectString(output.ServiceCode),
|
|
1598
|
-
ServiceName: __expectString(output.ServiceName),
|
|
1599
|
-
};
|
|
1600
|
-
};
|
|
1601
|
-
const de_ServiceInfoListDefinition = (output, context) => {
|
|
1602
|
-
const retVal = (output || [])
|
|
1603
|
-
.filter((e) => e != null)
|
|
1604
|
-
.map((entry) => {
|
|
1605
|
-
if (entry === null) {
|
|
1606
|
-
return null;
|
|
1607
|
-
}
|
|
1608
|
-
return de_ServiceInfo(entry, context);
|
|
1310
|
+
return take(output, {
|
|
1311
|
+
RequestedQuota: (_) => de_RequestedServiceQuotaChange(_, context),
|
|
1609
1312
|
});
|
|
1610
|
-
return retVal;
|
|
1611
1313
|
};
|
|
1612
1314
|
const de_ServiceQuota = (output, context) => {
|
|
1613
|
-
return {
|
|
1614
|
-
Adjustable: __expectBoolean
|
|
1615
|
-
ErrorReason:
|
|
1616
|
-
GlobalQuota: __expectBoolean
|
|
1617
|
-
Period:
|
|
1618
|
-
QuotaArn: __expectString
|
|
1619
|
-
QuotaCode: __expectString
|
|
1620
|
-
QuotaName: __expectString
|
|
1621
|
-
ServiceCode: __expectString
|
|
1622
|
-
ServiceName: __expectString
|
|
1623
|
-
Unit: __expectString
|
|
1624
|
-
UsageMetric:
|
|
1625
|
-
Value: __limitedParseDouble
|
|
1626
|
-
};
|
|
1315
|
+
return take(output, {
|
|
1316
|
+
Adjustable: __expectBoolean,
|
|
1317
|
+
ErrorReason: _json,
|
|
1318
|
+
GlobalQuota: __expectBoolean,
|
|
1319
|
+
Period: _json,
|
|
1320
|
+
QuotaArn: __expectString,
|
|
1321
|
+
QuotaCode: __expectString,
|
|
1322
|
+
QuotaName: __expectString,
|
|
1323
|
+
ServiceCode: __expectString,
|
|
1324
|
+
ServiceName: __expectString,
|
|
1325
|
+
Unit: __expectString,
|
|
1326
|
+
UsageMetric: _json,
|
|
1327
|
+
Value: __limitedParseDouble,
|
|
1328
|
+
});
|
|
1627
1329
|
};
|
|
1628
1330
|
const de_ServiceQuotaIncreaseRequestInTemplate = (output, context) => {
|
|
1629
|
-
return {
|
|
1630
|
-
AwsRegion: __expectString
|
|
1631
|
-
DesiredValue: __limitedParseDouble
|
|
1632
|
-
GlobalQuota: __expectBoolean
|
|
1633
|
-
QuotaCode: __expectString
|
|
1634
|
-
QuotaName: __expectString
|
|
1635
|
-
ServiceCode: __expectString
|
|
1636
|
-
ServiceName: __expectString
|
|
1637
|
-
Unit: __expectString
|
|
1638
|
-
};
|
|
1331
|
+
return take(output, {
|
|
1332
|
+
AwsRegion: __expectString,
|
|
1333
|
+
DesiredValue: __limitedParseDouble,
|
|
1334
|
+
GlobalQuota: __expectBoolean,
|
|
1335
|
+
QuotaCode: __expectString,
|
|
1336
|
+
QuotaName: __expectString,
|
|
1337
|
+
ServiceCode: __expectString,
|
|
1338
|
+
ServiceName: __expectString,
|
|
1339
|
+
Unit: __expectString,
|
|
1340
|
+
});
|
|
1639
1341
|
};
|
|
1640
1342
|
const de_ServiceQuotaIncreaseRequestInTemplateList = (output, context) => {
|
|
1641
1343
|
const retVal = (output || [])
|
|
1642
1344
|
.filter((e) => e != null)
|
|
1643
1345
|
.map((entry) => {
|
|
1644
|
-
if (entry === null) {
|
|
1645
|
-
return null;
|
|
1646
|
-
}
|
|
1647
1346
|
return de_ServiceQuotaIncreaseRequestInTemplate(entry, context);
|
|
1648
1347
|
});
|
|
1649
1348
|
return retVal;
|
|
@@ -1652,50 +1351,10 @@ const de_ServiceQuotaListDefinition = (output, context) => {
|
|
|
1652
1351
|
const retVal = (output || [])
|
|
1653
1352
|
.filter((e) => e != null)
|
|
1654
1353
|
.map((entry) => {
|
|
1655
|
-
if (entry === null) {
|
|
1656
|
-
return null;
|
|
1657
|
-
}
|
|
1658
1354
|
return de_ServiceQuota(entry, context);
|
|
1659
1355
|
});
|
|
1660
1356
|
return retVal;
|
|
1661
1357
|
};
|
|
1662
|
-
const de_ServiceQuotaTemplateNotInUseException = (output, context) => {
|
|
1663
|
-
return {
|
|
1664
|
-
Message: __expectString(output.Message),
|
|
1665
|
-
};
|
|
1666
|
-
};
|
|
1667
|
-
const de_Tag = (output, context) => {
|
|
1668
|
-
return {
|
|
1669
|
-
Key: __expectString(output.Key),
|
|
1670
|
-
Value: __expectString(output.Value),
|
|
1671
|
-
};
|
|
1672
|
-
};
|
|
1673
|
-
const de_TagPolicyViolationException = (output, context) => {
|
|
1674
|
-
return {
|
|
1675
|
-
Message: __expectString(output.Message),
|
|
1676
|
-
};
|
|
1677
|
-
};
|
|
1678
|
-
const de_TagResourceResponse = (output, context) => {
|
|
1679
|
-
return {};
|
|
1680
|
-
};
|
|
1681
|
-
const de_TemplatesNotAvailableInRegionException = (output, context) => {
|
|
1682
|
-
return {
|
|
1683
|
-
Message: __expectString(output.Message),
|
|
1684
|
-
};
|
|
1685
|
-
};
|
|
1686
|
-
const de_TooManyRequestsException = (output, context) => {
|
|
1687
|
-
return {
|
|
1688
|
-
Message: __expectString(output.Message),
|
|
1689
|
-
};
|
|
1690
|
-
};
|
|
1691
|
-
const de_TooManyTagsException = (output, context) => {
|
|
1692
|
-
return {
|
|
1693
|
-
Message: __expectString(output.Message),
|
|
1694
|
-
};
|
|
1695
|
-
};
|
|
1696
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
1697
|
-
return {};
|
|
1698
|
-
};
|
|
1699
1358
|
const deserializeMetadata = (output) => ({
|
|
1700
1359
|
httpStatusCode: output.statusCode,
|
|
1701
1360
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1709,6 +1368,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1709
1368
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1710
1369
|
};
|
|
1711
1370
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1371
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1712
1372
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1713
1373
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1714
1374
|
const contents = {
|