@aws-sdk/client-cloudcontrol 3.312.0 → 3.316.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/CloudControl.js +12 -112
- package/dist-cjs/protocols/Aws_json1_0.js +96 -302
- package/dist-es/CloudControl.js +12 -112
- package/dist-es/protocols/Aws_json1_0.js +97 -303
- package/dist-types/CloudControl.d.ts +16 -56
- package/dist-types/ts3.4/CloudControl.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { CloudControlServiceException as __BaseException } from "../models/CloudControlServiceException";
|
|
5
5
|
import { AlreadyExistsException, ClientTokenConflictException, ConcurrentModificationException, ConcurrentOperationException, GeneralServiceException, HandlerFailureException, HandlerInternalFailureException, InvalidCredentialsException, InvalidRequestException, NetworkFailureException, NotStabilizedException, NotUpdatableException, PrivateTypeException, RequestTokenNotFoundException, ResourceConflictException, ResourceNotFoundException, ServiceInternalErrorException, ServiceLimitExceededException, ThrottlingException, TypeNotFoundException, UnsupportedActionException, } from "../models/models_0";
|
|
6
6
|
export const se_CancelResourceRequestCommand = async (input, context) => {
|
|
7
7
|
const headers = sharedHeaders("CancelResourceRequest");
|
|
8
8
|
let body;
|
|
9
|
-
body = JSON.stringify(
|
|
9
|
+
body = JSON.stringify(_json(input));
|
|
10
10
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
11
|
};
|
|
12
12
|
export const se_CreateResourceCommand = async (input, context) => {
|
|
@@ -24,25 +24,25 @@ export const se_DeleteResourceCommand = async (input, context) => {
|
|
|
24
24
|
export const se_GetResourceCommand = async (input, context) => {
|
|
25
25
|
const headers = sharedHeaders("GetResource");
|
|
26
26
|
let body;
|
|
27
|
-
body = JSON.stringify(
|
|
27
|
+
body = JSON.stringify(_json(input));
|
|
28
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
29
|
};
|
|
30
30
|
export const se_GetResourceRequestStatusCommand = async (input, context) => {
|
|
31
31
|
const headers = sharedHeaders("GetResourceRequestStatus");
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify(_json(input));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
36
|
export const se_ListResourceRequestsCommand = async (input, context) => {
|
|
37
37
|
const headers = sharedHeaders("ListResourceRequests");
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify(_json(input));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
42
|
export const se_ListResourcesCommand = async (input, context) => {
|
|
43
43
|
const headers = sharedHeaders("ListResources");
|
|
44
44
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(_json(input));
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
48
|
export const se_UpdateResourceCommand = async (input, context) => {
|
|
@@ -62,7 +62,7 @@ export const de_CancelResourceRequestCommand = async (output, context) => {
|
|
|
62
62
|
$metadata: deserializeMetadata(output),
|
|
63
63
|
...contents,
|
|
64
64
|
};
|
|
65
|
-
return
|
|
65
|
+
return response;
|
|
66
66
|
};
|
|
67
67
|
const de_CancelResourceRequestCommandError = async (output, context) => {
|
|
68
68
|
const parsedOutput = {
|
|
@@ -79,10 +79,9 @@ const de_CancelResourceRequestCommandError = async (output, context) => {
|
|
|
79
79
|
throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
|
|
80
80
|
default:
|
|
81
81
|
const parsedBody = parsedOutput.body;
|
|
82
|
-
throwDefaultError({
|
|
82
|
+
return throwDefaultError({
|
|
83
83
|
output,
|
|
84
84
|
parsedBody,
|
|
85
|
-
exceptionCtor: __BaseException,
|
|
86
85
|
errorCode,
|
|
87
86
|
});
|
|
88
87
|
}
|
|
@@ -98,7 +97,7 @@ export const de_CreateResourceCommand = async (output, context) => {
|
|
|
98
97
|
$metadata: deserializeMetadata(output),
|
|
99
98
|
...contents,
|
|
100
99
|
};
|
|
101
|
-
return
|
|
100
|
+
return response;
|
|
102
101
|
};
|
|
103
102
|
const de_CreateResourceCommandError = async (output, context) => {
|
|
104
103
|
const parsedOutput = {
|
|
@@ -166,10 +165,9 @@ const de_CreateResourceCommandError = async (output, context) => {
|
|
|
166
165
|
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
167
166
|
default:
|
|
168
167
|
const parsedBody = parsedOutput.body;
|
|
169
|
-
throwDefaultError({
|
|
168
|
+
return throwDefaultError({
|
|
170
169
|
output,
|
|
171
170
|
parsedBody,
|
|
172
|
-
exceptionCtor: __BaseException,
|
|
173
171
|
errorCode,
|
|
174
172
|
});
|
|
175
173
|
}
|
|
@@ -185,7 +183,7 @@ export const de_DeleteResourceCommand = async (output, context) => {
|
|
|
185
183
|
$metadata: deserializeMetadata(output),
|
|
186
184
|
...contents,
|
|
187
185
|
};
|
|
188
|
-
return
|
|
186
|
+
return response;
|
|
189
187
|
};
|
|
190
188
|
const de_DeleteResourceCommandError = async (output, context) => {
|
|
191
189
|
const parsedOutput = {
|
|
@@ -253,10 +251,9 @@ const de_DeleteResourceCommandError = async (output, context) => {
|
|
|
253
251
|
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
254
252
|
default:
|
|
255
253
|
const parsedBody = parsedOutput.body;
|
|
256
|
-
throwDefaultError({
|
|
254
|
+
return throwDefaultError({
|
|
257
255
|
output,
|
|
258
256
|
parsedBody,
|
|
259
|
-
exceptionCtor: __BaseException,
|
|
260
257
|
errorCode,
|
|
261
258
|
});
|
|
262
259
|
}
|
|
@@ -267,12 +264,12 @@ export const de_GetResourceCommand = async (output, context) => {
|
|
|
267
264
|
}
|
|
268
265
|
const data = await parseBody(output.body, context);
|
|
269
266
|
let contents = {};
|
|
270
|
-
contents =
|
|
267
|
+
contents = _json(data);
|
|
271
268
|
const response = {
|
|
272
269
|
$metadata: deserializeMetadata(output),
|
|
273
270
|
...contents,
|
|
274
271
|
};
|
|
275
|
-
return
|
|
272
|
+
return response;
|
|
276
273
|
};
|
|
277
274
|
const de_GetResourceCommandError = async (output, context) => {
|
|
278
275
|
const parsedOutput = {
|
|
@@ -334,10 +331,9 @@ const de_GetResourceCommandError = async (output, context) => {
|
|
|
334
331
|
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
335
332
|
default:
|
|
336
333
|
const parsedBody = parsedOutput.body;
|
|
337
|
-
throwDefaultError({
|
|
334
|
+
return throwDefaultError({
|
|
338
335
|
output,
|
|
339
336
|
parsedBody,
|
|
340
|
-
exceptionCtor: __BaseException,
|
|
341
337
|
errorCode,
|
|
342
338
|
});
|
|
343
339
|
}
|
|
@@ -353,7 +349,7 @@ export const de_GetResourceRequestStatusCommand = async (output, context) => {
|
|
|
353
349
|
$metadata: deserializeMetadata(output),
|
|
354
350
|
...contents,
|
|
355
351
|
};
|
|
356
|
-
return
|
|
352
|
+
return response;
|
|
357
353
|
};
|
|
358
354
|
const de_GetResourceRequestStatusCommandError = async (output, context) => {
|
|
359
355
|
const parsedOutput = {
|
|
@@ -367,10 +363,9 @@ const de_GetResourceRequestStatusCommandError = async (output, context) => {
|
|
|
367
363
|
throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
|
|
368
364
|
default:
|
|
369
365
|
const parsedBody = parsedOutput.body;
|
|
370
|
-
throwDefaultError({
|
|
366
|
+
return throwDefaultError({
|
|
371
367
|
output,
|
|
372
368
|
parsedBody,
|
|
373
|
-
exceptionCtor: __BaseException,
|
|
374
369
|
errorCode,
|
|
375
370
|
});
|
|
376
371
|
}
|
|
@@ -386,7 +381,7 @@ export const de_ListResourceRequestsCommand = async (output, context) => {
|
|
|
386
381
|
$metadata: deserializeMetadata(output),
|
|
387
382
|
...contents,
|
|
388
383
|
};
|
|
389
|
-
return
|
|
384
|
+
return response;
|
|
390
385
|
};
|
|
391
386
|
const de_ListResourceRequestsCommandError = async (output, context) => {
|
|
392
387
|
const parsedOutput = {
|
|
@@ -395,10 +390,9 @@ const de_ListResourceRequestsCommandError = async (output, context) => {
|
|
|
395
390
|
};
|
|
396
391
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
397
392
|
const parsedBody = parsedOutput.body;
|
|
398
|
-
throwDefaultError({
|
|
393
|
+
return throwDefaultError({
|
|
399
394
|
output,
|
|
400
395
|
parsedBody,
|
|
401
|
-
exceptionCtor: __BaseException,
|
|
402
396
|
errorCode,
|
|
403
397
|
});
|
|
404
398
|
};
|
|
@@ -408,12 +402,12 @@ export const de_ListResourcesCommand = async (output, context) => {
|
|
|
408
402
|
}
|
|
409
403
|
const data = await parseBody(output.body, context);
|
|
410
404
|
let contents = {};
|
|
411
|
-
contents =
|
|
405
|
+
contents = _json(data);
|
|
412
406
|
const response = {
|
|
413
407
|
$metadata: deserializeMetadata(output),
|
|
414
408
|
...contents,
|
|
415
409
|
};
|
|
416
|
-
return
|
|
410
|
+
return response;
|
|
417
411
|
};
|
|
418
412
|
const de_ListResourcesCommandError = async (output, context) => {
|
|
419
413
|
const parsedOutput = {
|
|
@@ -475,10 +469,9 @@ const de_ListResourcesCommandError = async (output, context) => {
|
|
|
475
469
|
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
476
470
|
default:
|
|
477
471
|
const parsedBody = parsedOutput.body;
|
|
478
|
-
throwDefaultError({
|
|
472
|
+
return throwDefaultError({
|
|
479
473
|
output,
|
|
480
474
|
parsedBody,
|
|
481
|
-
exceptionCtor: __BaseException,
|
|
482
475
|
errorCode,
|
|
483
476
|
});
|
|
484
477
|
}
|
|
@@ -494,7 +487,7 @@ export const de_UpdateResourceCommand = async (output, context) => {
|
|
|
494
487
|
$metadata: deserializeMetadata(output),
|
|
495
488
|
...contents,
|
|
496
489
|
};
|
|
497
|
-
return
|
|
490
|
+
return response;
|
|
498
491
|
};
|
|
499
492
|
const de_UpdateResourceCommandError = async (output, context) => {
|
|
500
493
|
const parsedOutput = {
|
|
@@ -562,17 +555,16 @@ const de_UpdateResourceCommandError = async (output, context) => {
|
|
|
562
555
|
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
563
556
|
default:
|
|
564
557
|
const parsedBody = parsedOutput.body;
|
|
565
|
-
throwDefaultError({
|
|
558
|
+
return throwDefaultError({
|
|
566
559
|
output,
|
|
567
560
|
parsedBody,
|
|
568
|
-
exceptionCtor: __BaseException,
|
|
569
561
|
errorCode,
|
|
570
562
|
});
|
|
571
563
|
}
|
|
572
564
|
};
|
|
573
565
|
const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
574
566
|
const body = parsedOutput.body;
|
|
575
|
-
const deserialized =
|
|
567
|
+
const deserialized = _json(body);
|
|
576
568
|
const exception = new AlreadyExistsException({
|
|
577
569
|
$metadata: deserializeMetadata(parsedOutput),
|
|
578
570
|
...deserialized,
|
|
@@ -581,7 +573,7 @@ const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
581
573
|
};
|
|
582
574
|
const de_ClientTokenConflictExceptionRes = async (parsedOutput, context) => {
|
|
583
575
|
const body = parsedOutput.body;
|
|
584
|
-
const deserialized =
|
|
576
|
+
const deserialized = _json(body);
|
|
585
577
|
const exception = new ClientTokenConflictException({
|
|
586
578
|
$metadata: deserializeMetadata(parsedOutput),
|
|
587
579
|
...deserialized,
|
|
@@ -590,7 +582,7 @@ const de_ClientTokenConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
590
582
|
};
|
|
591
583
|
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
592
584
|
const body = parsedOutput.body;
|
|
593
|
-
const deserialized =
|
|
585
|
+
const deserialized = _json(body);
|
|
594
586
|
const exception = new ConcurrentModificationException({
|
|
595
587
|
$metadata: deserializeMetadata(parsedOutput),
|
|
596
588
|
...deserialized,
|
|
@@ -599,7 +591,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
|
599
591
|
};
|
|
600
592
|
const de_ConcurrentOperationExceptionRes = async (parsedOutput, context) => {
|
|
601
593
|
const body = parsedOutput.body;
|
|
602
|
-
const deserialized =
|
|
594
|
+
const deserialized = _json(body);
|
|
603
595
|
const exception = new ConcurrentOperationException({
|
|
604
596
|
$metadata: deserializeMetadata(parsedOutput),
|
|
605
597
|
...deserialized,
|
|
@@ -608,7 +600,7 @@ const de_ConcurrentOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
608
600
|
};
|
|
609
601
|
const de_GeneralServiceExceptionRes = async (parsedOutput, context) => {
|
|
610
602
|
const body = parsedOutput.body;
|
|
611
|
-
const deserialized =
|
|
603
|
+
const deserialized = _json(body);
|
|
612
604
|
const exception = new GeneralServiceException({
|
|
613
605
|
$metadata: deserializeMetadata(parsedOutput),
|
|
614
606
|
...deserialized,
|
|
@@ -617,7 +609,7 @@ const de_GeneralServiceExceptionRes = async (parsedOutput, context) => {
|
|
|
617
609
|
};
|
|
618
610
|
const de_HandlerFailureExceptionRes = async (parsedOutput, context) => {
|
|
619
611
|
const body = parsedOutput.body;
|
|
620
|
-
const deserialized =
|
|
612
|
+
const deserialized = _json(body);
|
|
621
613
|
const exception = new HandlerFailureException({
|
|
622
614
|
$metadata: deserializeMetadata(parsedOutput),
|
|
623
615
|
...deserialized,
|
|
@@ -626,7 +618,7 @@ const de_HandlerFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
626
618
|
};
|
|
627
619
|
const de_HandlerInternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
628
620
|
const body = parsedOutput.body;
|
|
629
|
-
const deserialized =
|
|
621
|
+
const deserialized = _json(body);
|
|
630
622
|
const exception = new HandlerInternalFailureException({
|
|
631
623
|
$metadata: deserializeMetadata(parsedOutput),
|
|
632
624
|
...deserialized,
|
|
@@ -635,7 +627,7 @@ const de_HandlerInternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
635
627
|
};
|
|
636
628
|
const de_InvalidCredentialsExceptionRes = async (parsedOutput, context) => {
|
|
637
629
|
const body = parsedOutput.body;
|
|
638
|
-
const deserialized =
|
|
630
|
+
const deserialized = _json(body);
|
|
639
631
|
const exception = new InvalidCredentialsException({
|
|
640
632
|
$metadata: deserializeMetadata(parsedOutput),
|
|
641
633
|
...deserialized,
|
|
@@ -644,7 +636,7 @@ const de_InvalidCredentialsExceptionRes = async (parsedOutput, context) => {
|
|
|
644
636
|
};
|
|
645
637
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
646
638
|
const body = parsedOutput.body;
|
|
647
|
-
const deserialized =
|
|
639
|
+
const deserialized = _json(body);
|
|
648
640
|
const exception = new InvalidRequestException({
|
|
649
641
|
$metadata: deserializeMetadata(parsedOutput),
|
|
650
642
|
...deserialized,
|
|
@@ -653,7 +645,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
653
645
|
};
|
|
654
646
|
const de_NetworkFailureExceptionRes = async (parsedOutput, context) => {
|
|
655
647
|
const body = parsedOutput.body;
|
|
656
|
-
const deserialized =
|
|
648
|
+
const deserialized = _json(body);
|
|
657
649
|
const exception = new NetworkFailureException({
|
|
658
650
|
$metadata: deserializeMetadata(parsedOutput),
|
|
659
651
|
...deserialized,
|
|
@@ -662,7 +654,7 @@ const de_NetworkFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
662
654
|
};
|
|
663
655
|
const de_NotStabilizedExceptionRes = async (parsedOutput, context) => {
|
|
664
656
|
const body = parsedOutput.body;
|
|
665
|
-
const deserialized =
|
|
657
|
+
const deserialized = _json(body);
|
|
666
658
|
const exception = new NotStabilizedException({
|
|
667
659
|
$metadata: deserializeMetadata(parsedOutput),
|
|
668
660
|
...deserialized,
|
|
@@ -671,7 +663,7 @@ const de_NotStabilizedExceptionRes = async (parsedOutput, context) => {
|
|
|
671
663
|
};
|
|
672
664
|
const de_NotUpdatableExceptionRes = async (parsedOutput, context) => {
|
|
673
665
|
const body = parsedOutput.body;
|
|
674
|
-
const deserialized =
|
|
666
|
+
const deserialized = _json(body);
|
|
675
667
|
const exception = new NotUpdatableException({
|
|
676
668
|
$metadata: deserializeMetadata(parsedOutput),
|
|
677
669
|
...deserialized,
|
|
@@ -680,7 +672,7 @@ const de_NotUpdatableExceptionRes = async (parsedOutput, context) => {
|
|
|
680
672
|
};
|
|
681
673
|
const de_PrivateTypeExceptionRes = async (parsedOutput, context) => {
|
|
682
674
|
const body = parsedOutput.body;
|
|
683
|
-
const deserialized =
|
|
675
|
+
const deserialized = _json(body);
|
|
684
676
|
const exception = new PrivateTypeException({
|
|
685
677
|
$metadata: deserializeMetadata(parsedOutput),
|
|
686
678
|
...deserialized,
|
|
@@ -689,7 +681,7 @@ const de_PrivateTypeExceptionRes = async (parsedOutput, context) => {
|
|
|
689
681
|
};
|
|
690
682
|
const de_RequestTokenNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
691
683
|
const body = parsedOutput.body;
|
|
692
|
-
const deserialized =
|
|
684
|
+
const deserialized = _json(body);
|
|
693
685
|
const exception = new RequestTokenNotFoundException({
|
|
694
686
|
$metadata: deserializeMetadata(parsedOutput),
|
|
695
687
|
...deserialized,
|
|
@@ -698,7 +690,7 @@ const de_RequestTokenNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
698
690
|
};
|
|
699
691
|
const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
|
|
700
692
|
const body = parsedOutput.body;
|
|
701
|
-
const deserialized =
|
|
693
|
+
const deserialized = _json(body);
|
|
702
694
|
const exception = new ResourceConflictException({
|
|
703
695
|
$metadata: deserializeMetadata(parsedOutput),
|
|
704
696
|
...deserialized,
|
|
@@ -707,7 +699,7 @@ const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
707
699
|
};
|
|
708
700
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
709
701
|
const body = parsedOutput.body;
|
|
710
|
-
const deserialized =
|
|
702
|
+
const deserialized = _json(body);
|
|
711
703
|
const exception = new ResourceNotFoundException({
|
|
712
704
|
$metadata: deserializeMetadata(parsedOutput),
|
|
713
705
|
...deserialized,
|
|
@@ -716,7 +708,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
716
708
|
};
|
|
717
709
|
const de_ServiceInternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
718
710
|
const body = parsedOutput.body;
|
|
719
|
-
const deserialized =
|
|
711
|
+
const deserialized = _json(body);
|
|
720
712
|
const exception = new ServiceInternalErrorException({
|
|
721
713
|
$metadata: deserializeMetadata(parsedOutput),
|
|
722
714
|
...deserialized,
|
|
@@ -725,7 +717,7 @@ const de_ServiceInternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
725
717
|
};
|
|
726
718
|
const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
727
719
|
const body = parsedOutput.body;
|
|
728
|
-
const deserialized =
|
|
720
|
+
const deserialized = _json(body);
|
|
729
721
|
const exception = new ServiceLimitExceededException({
|
|
730
722
|
$metadata: deserializeMetadata(parsedOutput),
|
|
731
723
|
...deserialized,
|
|
@@ -734,7 +726,7 @@ const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
734
726
|
};
|
|
735
727
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
736
728
|
const body = parsedOutput.body;
|
|
737
|
-
const deserialized =
|
|
729
|
+
const deserialized = _json(body);
|
|
738
730
|
const exception = new ThrottlingException({
|
|
739
731
|
$metadata: deserializeMetadata(parsedOutput),
|
|
740
732
|
...deserialized,
|
|
@@ -743,7 +735,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
743
735
|
};
|
|
744
736
|
const de_TypeNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
745
737
|
const body = parsedOutput.body;
|
|
746
|
-
const deserialized =
|
|
738
|
+
const deserialized = _json(body);
|
|
747
739
|
const exception = new TypeNotFoundException({
|
|
748
740
|
$metadata: deserializeMetadata(parsedOutput),
|
|
749
741
|
...deserialized,
|
|
@@ -752,292 +744,93 @@ const de_TypeNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
752
744
|
};
|
|
753
745
|
const de_UnsupportedActionExceptionRes = async (parsedOutput, context) => {
|
|
754
746
|
const body = parsedOutput.body;
|
|
755
|
-
const deserialized =
|
|
747
|
+
const deserialized = _json(body);
|
|
756
748
|
const exception = new UnsupportedActionException({
|
|
757
749
|
$metadata: deserializeMetadata(parsedOutput),
|
|
758
750
|
...deserialized,
|
|
759
751
|
});
|
|
760
752
|
return __decorateServiceException(exception, body);
|
|
761
753
|
};
|
|
762
|
-
const se_CancelResourceRequestInput = (input, context) => {
|
|
763
|
-
return {
|
|
764
|
-
...(input.RequestToken != null && { RequestToken: input.RequestToken }),
|
|
765
|
-
};
|
|
766
|
-
};
|
|
767
754
|
const se_CreateResourceInput = (input, context) => {
|
|
768
|
-
return {
|
|
769
|
-
ClientToken:
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
};
|
|
775
|
-
};
|
|
776
|
-
const se_DeleteResourceInput = (input, context) => {
|
|
777
|
-
return {
|
|
778
|
-
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
779
|
-
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
780
|
-
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
781
|
-
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
782
|
-
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
783
|
-
};
|
|
784
|
-
};
|
|
785
|
-
const se_GetResourceInput = (input, context) => {
|
|
786
|
-
return {
|
|
787
|
-
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
788
|
-
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
789
|
-
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
790
|
-
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
791
|
-
};
|
|
792
|
-
};
|
|
793
|
-
const se_GetResourceRequestStatusInput = (input, context) => {
|
|
794
|
-
return {
|
|
795
|
-
...(input.RequestToken != null && { RequestToken: input.RequestToken }),
|
|
796
|
-
};
|
|
797
|
-
};
|
|
798
|
-
const se_ListResourceRequestsInput = (input, context) => {
|
|
799
|
-
return {
|
|
800
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
801
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
802
|
-
...(input.ResourceRequestStatusFilter != null && {
|
|
803
|
-
ResourceRequestStatusFilter: se_ResourceRequestStatusFilter(input.ResourceRequestStatusFilter, context),
|
|
804
|
-
}),
|
|
805
|
-
};
|
|
806
|
-
};
|
|
807
|
-
const se_ListResourcesInput = (input, context) => {
|
|
808
|
-
return {
|
|
809
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
810
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
811
|
-
...(input.ResourceModel != null && { ResourceModel: input.ResourceModel }),
|
|
812
|
-
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
813
|
-
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
814
|
-
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
815
|
-
};
|
|
816
|
-
};
|
|
817
|
-
const se_Operations = (input, context) => {
|
|
818
|
-
return input
|
|
819
|
-
.filter((e) => e != null)
|
|
820
|
-
.map((entry) => {
|
|
821
|
-
return entry;
|
|
755
|
+
return take(input, {
|
|
756
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
757
|
+
DesiredState: [],
|
|
758
|
+
RoleArn: [],
|
|
759
|
+
TypeName: [],
|
|
760
|
+
TypeVersionId: [],
|
|
822
761
|
});
|
|
823
762
|
};
|
|
824
|
-
const
|
|
825
|
-
return input
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
763
|
+
const se_DeleteResourceInput = (input, context) => {
|
|
764
|
+
return take(input, {
|
|
765
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
766
|
+
Identifier: [],
|
|
767
|
+
RoleArn: [],
|
|
768
|
+
TypeName: [],
|
|
769
|
+
TypeVersionId: [],
|
|
829
770
|
});
|
|
830
771
|
};
|
|
831
|
-
const se_ResourceRequestStatusFilter = (input, context) => {
|
|
832
|
-
return {
|
|
833
|
-
...(input.OperationStatuses != null && {
|
|
834
|
-
OperationStatuses: se_OperationStatuses(input.OperationStatuses, context),
|
|
835
|
-
}),
|
|
836
|
-
...(input.Operations != null && { Operations: se_Operations(input.Operations, context) }),
|
|
837
|
-
};
|
|
838
|
-
};
|
|
839
772
|
const se_UpdateResourceInput = (input, context) => {
|
|
840
|
-
return {
|
|
841
|
-
ClientToken:
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
};
|
|
848
|
-
};
|
|
849
|
-
const de_AlreadyExistsException = (output, context) => {
|
|
850
|
-
return {
|
|
851
|
-
Message: __expectString(output.Message),
|
|
852
|
-
};
|
|
773
|
+
return take(input, {
|
|
774
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
775
|
+
Identifier: [],
|
|
776
|
+
PatchDocument: [],
|
|
777
|
+
RoleArn: [],
|
|
778
|
+
TypeName: [],
|
|
779
|
+
TypeVersionId: [],
|
|
780
|
+
});
|
|
853
781
|
};
|
|
854
782
|
const de_CancelResourceRequestOutput = (output, context) => {
|
|
855
|
-
return {
|
|
856
|
-
ProgressEvent:
|
|
857
|
-
};
|
|
858
|
-
};
|
|
859
|
-
const de_ClientTokenConflictException = (output, context) => {
|
|
860
|
-
return {
|
|
861
|
-
Message: __expectString(output.Message),
|
|
862
|
-
};
|
|
863
|
-
};
|
|
864
|
-
const de_ConcurrentModificationException = (output, context) => {
|
|
865
|
-
return {
|
|
866
|
-
Message: __expectString(output.Message),
|
|
867
|
-
};
|
|
868
|
-
};
|
|
869
|
-
const de_ConcurrentOperationException = (output, context) => {
|
|
870
|
-
return {
|
|
871
|
-
Message: __expectString(output.Message),
|
|
872
|
-
};
|
|
783
|
+
return take(output, {
|
|
784
|
+
ProgressEvent: (_) => de_ProgressEvent(_, context),
|
|
785
|
+
});
|
|
873
786
|
};
|
|
874
787
|
const de_CreateResourceOutput = (output, context) => {
|
|
875
|
-
return {
|
|
876
|
-
ProgressEvent:
|
|
877
|
-
};
|
|
788
|
+
return take(output, {
|
|
789
|
+
ProgressEvent: (_) => de_ProgressEvent(_, context),
|
|
790
|
+
});
|
|
878
791
|
};
|
|
879
792
|
const de_DeleteResourceOutput = (output, context) => {
|
|
880
|
-
return {
|
|
881
|
-
ProgressEvent:
|
|
882
|
-
};
|
|
883
|
-
};
|
|
884
|
-
const de_GeneralServiceException = (output, context) => {
|
|
885
|
-
return {
|
|
886
|
-
Message: __expectString(output.Message),
|
|
887
|
-
};
|
|
888
|
-
};
|
|
889
|
-
const de_GetResourceOutput = (output, context) => {
|
|
890
|
-
return {
|
|
891
|
-
ResourceDescription: output.ResourceDescription != null ? de_ResourceDescription(output.ResourceDescription, context) : undefined,
|
|
892
|
-
TypeName: __expectString(output.TypeName),
|
|
893
|
-
};
|
|
793
|
+
return take(output, {
|
|
794
|
+
ProgressEvent: (_) => de_ProgressEvent(_, context),
|
|
795
|
+
});
|
|
894
796
|
};
|
|
895
797
|
const de_GetResourceRequestStatusOutput = (output, context) => {
|
|
896
|
-
return {
|
|
897
|
-
ProgressEvent:
|
|
898
|
-
};
|
|
899
|
-
};
|
|
900
|
-
const de_HandlerFailureException = (output, context) => {
|
|
901
|
-
return {
|
|
902
|
-
Message: __expectString(output.Message),
|
|
903
|
-
};
|
|
904
|
-
};
|
|
905
|
-
const de_HandlerInternalFailureException = (output, context) => {
|
|
906
|
-
return {
|
|
907
|
-
Message: __expectString(output.Message),
|
|
908
|
-
};
|
|
909
|
-
};
|
|
910
|
-
const de_InvalidCredentialsException = (output, context) => {
|
|
911
|
-
return {
|
|
912
|
-
Message: __expectString(output.Message),
|
|
913
|
-
};
|
|
914
|
-
};
|
|
915
|
-
const de_InvalidRequestException = (output, context) => {
|
|
916
|
-
return {
|
|
917
|
-
Message: __expectString(output.Message),
|
|
918
|
-
};
|
|
798
|
+
return take(output, {
|
|
799
|
+
ProgressEvent: (_) => de_ProgressEvent(_, context),
|
|
800
|
+
});
|
|
919
801
|
};
|
|
920
802
|
const de_ListResourceRequestsOutput = (output, context) => {
|
|
921
|
-
return {
|
|
922
|
-
NextToken: __expectString
|
|
923
|
-
ResourceRequestStatusSummaries:
|
|
924
|
-
|
|
925
|
-
: undefined,
|
|
926
|
-
};
|
|
927
|
-
};
|
|
928
|
-
const de_ListResourcesOutput = (output, context) => {
|
|
929
|
-
return {
|
|
930
|
-
NextToken: __expectString(output.NextToken),
|
|
931
|
-
ResourceDescriptions: output.ResourceDescriptions != null ? de_ResourceDescriptions(output.ResourceDescriptions, context) : undefined,
|
|
932
|
-
TypeName: __expectString(output.TypeName),
|
|
933
|
-
};
|
|
934
|
-
};
|
|
935
|
-
const de_NetworkFailureException = (output, context) => {
|
|
936
|
-
return {
|
|
937
|
-
Message: __expectString(output.Message),
|
|
938
|
-
};
|
|
939
|
-
};
|
|
940
|
-
const de_NotStabilizedException = (output, context) => {
|
|
941
|
-
return {
|
|
942
|
-
Message: __expectString(output.Message),
|
|
943
|
-
};
|
|
944
|
-
};
|
|
945
|
-
const de_NotUpdatableException = (output, context) => {
|
|
946
|
-
return {
|
|
947
|
-
Message: __expectString(output.Message),
|
|
948
|
-
};
|
|
949
|
-
};
|
|
950
|
-
const de_PrivateTypeException = (output, context) => {
|
|
951
|
-
return {
|
|
952
|
-
Message: __expectString(output.Message),
|
|
953
|
-
};
|
|
803
|
+
return take(output, {
|
|
804
|
+
NextToken: __expectString,
|
|
805
|
+
ResourceRequestStatusSummaries: (_) => de_ResourceRequestStatusSummaries(_, context),
|
|
806
|
+
});
|
|
954
807
|
};
|
|
955
808
|
const de_ProgressEvent = (output, context) => {
|
|
956
|
-
return {
|
|
957
|
-
ErrorCode: __expectString
|
|
958
|
-
EventTime:
|
|
959
|
-
Identifier: __expectString
|
|
960
|
-
Operation: __expectString
|
|
961
|
-
OperationStatus: __expectString
|
|
962
|
-
RequestToken: __expectString
|
|
963
|
-
ResourceModel: __expectString
|
|
964
|
-
RetryAfter:
|
|
965
|
-
StatusMessage: __expectString
|
|
966
|
-
TypeName: __expectString
|
|
967
|
-
};
|
|
968
|
-
};
|
|
969
|
-
const de_RequestTokenNotFoundException = (output, context) => {
|
|
970
|
-
return {
|
|
971
|
-
Message: __expectString(output.Message),
|
|
972
|
-
};
|
|
973
|
-
};
|
|
974
|
-
const de_ResourceConflictException = (output, context) => {
|
|
975
|
-
return {
|
|
976
|
-
Message: __expectString(output.Message),
|
|
977
|
-
};
|
|
978
|
-
};
|
|
979
|
-
const de_ResourceDescription = (output, context) => {
|
|
980
|
-
return {
|
|
981
|
-
Identifier: __expectString(output.Identifier),
|
|
982
|
-
Properties: __expectString(output.Properties),
|
|
983
|
-
};
|
|
984
|
-
};
|
|
985
|
-
const de_ResourceDescriptions = (output, context) => {
|
|
986
|
-
const retVal = (output || [])
|
|
987
|
-
.filter((e) => e != null)
|
|
988
|
-
.map((entry) => {
|
|
989
|
-
if (entry === null) {
|
|
990
|
-
return null;
|
|
991
|
-
}
|
|
992
|
-
return de_ResourceDescription(entry, context);
|
|
809
|
+
return take(output, {
|
|
810
|
+
ErrorCode: __expectString,
|
|
811
|
+
EventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
812
|
+
Identifier: __expectString,
|
|
813
|
+
Operation: __expectString,
|
|
814
|
+
OperationStatus: __expectString,
|
|
815
|
+
RequestToken: __expectString,
|
|
816
|
+
ResourceModel: __expectString,
|
|
817
|
+
RetryAfter: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
818
|
+
StatusMessage: __expectString,
|
|
819
|
+
TypeName: __expectString,
|
|
993
820
|
});
|
|
994
|
-
return retVal;
|
|
995
|
-
};
|
|
996
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
997
|
-
return {
|
|
998
|
-
Message: __expectString(output.Message),
|
|
999
|
-
};
|
|
1000
821
|
};
|
|
1001
822
|
const de_ResourceRequestStatusSummaries = (output, context) => {
|
|
1002
823
|
const retVal = (output || [])
|
|
1003
824
|
.filter((e) => e != null)
|
|
1004
825
|
.map((entry) => {
|
|
1005
|
-
if (entry === null) {
|
|
1006
|
-
return null;
|
|
1007
|
-
}
|
|
1008
826
|
return de_ProgressEvent(entry, context);
|
|
1009
827
|
});
|
|
1010
828
|
return retVal;
|
|
1011
829
|
};
|
|
1012
|
-
const de_ServiceInternalErrorException = (output, context) => {
|
|
1013
|
-
return {
|
|
1014
|
-
Message: __expectString(output.Message),
|
|
1015
|
-
};
|
|
1016
|
-
};
|
|
1017
|
-
const de_ServiceLimitExceededException = (output, context) => {
|
|
1018
|
-
return {
|
|
1019
|
-
Message: __expectString(output.Message),
|
|
1020
|
-
};
|
|
1021
|
-
};
|
|
1022
|
-
const de_ThrottlingException = (output, context) => {
|
|
1023
|
-
return {
|
|
1024
|
-
Message: __expectString(output.Message),
|
|
1025
|
-
};
|
|
1026
|
-
};
|
|
1027
|
-
const de_TypeNotFoundException = (output, context) => {
|
|
1028
|
-
return {
|
|
1029
|
-
Message: __expectString(output.Message),
|
|
1030
|
-
};
|
|
1031
|
-
};
|
|
1032
|
-
const de_UnsupportedActionException = (output, context) => {
|
|
1033
|
-
return {
|
|
1034
|
-
Message: __expectString(output.Message),
|
|
1035
|
-
};
|
|
1036
|
-
};
|
|
1037
830
|
const de_UpdateResourceOutput = (output, context) => {
|
|
1038
|
-
return {
|
|
1039
|
-
ProgressEvent:
|
|
1040
|
-
};
|
|
831
|
+
return take(output, {
|
|
832
|
+
ProgressEvent: (_) => de_ProgressEvent(_, context),
|
|
833
|
+
});
|
|
1041
834
|
};
|
|
1042
835
|
const deserializeMetadata = (output) => ({
|
|
1043
836
|
httpStatusCode: output.statusCode,
|
|
@@ -1052,6 +845,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1052
845
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1053
846
|
};
|
|
1054
847
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
848
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1055
849
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1056
850
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1057
851
|
const contents = {
|