@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
|
@@ -9,7 +9,7 @@ const models_0_1 = require("../models/models_0");
|
|
|
9
9
|
const se_CancelResourceRequestCommand = async (input, context) => {
|
|
10
10
|
const headers = sharedHeaders("CancelResourceRequest");
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
15
|
exports.se_CancelResourceRequestCommand = se_CancelResourceRequestCommand;
|
|
@@ -30,28 +30,28 @@ exports.se_DeleteResourceCommand = se_DeleteResourceCommand;
|
|
|
30
30
|
const se_GetResourceCommand = async (input, context) => {
|
|
31
31
|
const headers = sharedHeaders("GetResource");
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
36
|
exports.se_GetResourceCommand = se_GetResourceCommand;
|
|
37
37
|
const se_GetResourceRequestStatusCommand = async (input, context) => {
|
|
38
38
|
const headers = sharedHeaders("GetResourceRequestStatus");
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
41
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
42
|
};
|
|
43
43
|
exports.se_GetResourceRequestStatusCommand = se_GetResourceRequestStatusCommand;
|
|
44
44
|
const se_ListResourceRequestsCommand = async (input, context) => {
|
|
45
45
|
const headers = sharedHeaders("ListResourceRequests");
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
50
|
exports.se_ListResourceRequestsCommand = se_ListResourceRequestsCommand;
|
|
51
51
|
const se_ListResourcesCommand = async (input, context) => {
|
|
52
52
|
const headers = sharedHeaders("ListResources");
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
57
|
exports.se_ListResourcesCommand = se_ListResourcesCommand;
|
|
@@ -73,7 +73,7 @@ const de_CancelResourceRequestCommand = async (output, context) => {
|
|
|
73
73
|
$metadata: deserializeMetadata(output),
|
|
74
74
|
...contents,
|
|
75
75
|
};
|
|
76
|
-
return
|
|
76
|
+
return response;
|
|
77
77
|
};
|
|
78
78
|
exports.de_CancelResourceRequestCommand = de_CancelResourceRequestCommand;
|
|
79
79
|
const de_CancelResourceRequestCommandError = async (output, context) => {
|
|
@@ -91,10 +91,9 @@ const de_CancelResourceRequestCommandError = async (output, context) => {
|
|
|
91
91
|
throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
|
|
92
92
|
default:
|
|
93
93
|
const parsedBody = parsedOutput.body;
|
|
94
|
-
|
|
94
|
+
return throwDefaultError({
|
|
95
95
|
output,
|
|
96
96
|
parsedBody,
|
|
97
|
-
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
98
97
|
errorCode,
|
|
99
98
|
});
|
|
100
99
|
}
|
|
@@ -110,7 +109,7 @@ const de_CreateResourceCommand = async (output, context) => {
|
|
|
110
109
|
$metadata: deserializeMetadata(output),
|
|
111
110
|
...contents,
|
|
112
111
|
};
|
|
113
|
-
return
|
|
112
|
+
return response;
|
|
114
113
|
};
|
|
115
114
|
exports.de_CreateResourceCommand = de_CreateResourceCommand;
|
|
116
115
|
const de_CreateResourceCommandError = async (output, context) => {
|
|
@@ -179,10 +178,9 @@ const de_CreateResourceCommandError = async (output, context) => {
|
|
|
179
178
|
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
180
179
|
default:
|
|
181
180
|
const parsedBody = parsedOutput.body;
|
|
182
|
-
|
|
181
|
+
return throwDefaultError({
|
|
183
182
|
output,
|
|
184
183
|
parsedBody,
|
|
185
|
-
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
186
184
|
errorCode,
|
|
187
185
|
});
|
|
188
186
|
}
|
|
@@ -198,7 +196,7 @@ const de_DeleteResourceCommand = async (output, context) => {
|
|
|
198
196
|
$metadata: deserializeMetadata(output),
|
|
199
197
|
...contents,
|
|
200
198
|
};
|
|
201
|
-
return
|
|
199
|
+
return response;
|
|
202
200
|
};
|
|
203
201
|
exports.de_DeleteResourceCommand = de_DeleteResourceCommand;
|
|
204
202
|
const de_DeleteResourceCommandError = async (output, context) => {
|
|
@@ -267,10 +265,9 @@ const de_DeleteResourceCommandError = async (output, context) => {
|
|
|
267
265
|
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
268
266
|
default:
|
|
269
267
|
const parsedBody = parsedOutput.body;
|
|
270
|
-
|
|
268
|
+
return throwDefaultError({
|
|
271
269
|
output,
|
|
272
270
|
parsedBody,
|
|
273
|
-
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
274
271
|
errorCode,
|
|
275
272
|
});
|
|
276
273
|
}
|
|
@@ -281,12 +278,12 @@ const de_GetResourceCommand = async (output, context) => {
|
|
|
281
278
|
}
|
|
282
279
|
const data = await parseBody(output.body, context);
|
|
283
280
|
let contents = {};
|
|
284
|
-
contents =
|
|
281
|
+
contents = (0, smithy_client_1._json)(data);
|
|
285
282
|
const response = {
|
|
286
283
|
$metadata: deserializeMetadata(output),
|
|
287
284
|
...contents,
|
|
288
285
|
};
|
|
289
|
-
return
|
|
286
|
+
return response;
|
|
290
287
|
};
|
|
291
288
|
exports.de_GetResourceCommand = de_GetResourceCommand;
|
|
292
289
|
const de_GetResourceCommandError = async (output, context) => {
|
|
@@ -349,10 +346,9 @@ const de_GetResourceCommandError = async (output, context) => {
|
|
|
349
346
|
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
350
347
|
default:
|
|
351
348
|
const parsedBody = parsedOutput.body;
|
|
352
|
-
|
|
349
|
+
return throwDefaultError({
|
|
353
350
|
output,
|
|
354
351
|
parsedBody,
|
|
355
|
-
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
356
352
|
errorCode,
|
|
357
353
|
});
|
|
358
354
|
}
|
|
@@ -368,7 +364,7 @@ const de_GetResourceRequestStatusCommand = async (output, context) => {
|
|
|
368
364
|
$metadata: deserializeMetadata(output),
|
|
369
365
|
...contents,
|
|
370
366
|
};
|
|
371
|
-
return
|
|
367
|
+
return response;
|
|
372
368
|
};
|
|
373
369
|
exports.de_GetResourceRequestStatusCommand = de_GetResourceRequestStatusCommand;
|
|
374
370
|
const de_GetResourceRequestStatusCommandError = async (output, context) => {
|
|
@@ -383,10 +379,9 @@ const de_GetResourceRequestStatusCommandError = async (output, context) => {
|
|
|
383
379
|
throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
|
|
384
380
|
default:
|
|
385
381
|
const parsedBody = parsedOutput.body;
|
|
386
|
-
|
|
382
|
+
return throwDefaultError({
|
|
387
383
|
output,
|
|
388
384
|
parsedBody,
|
|
389
|
-
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
390
385
|
errorCode,
|
|
391
386
|
});
|
|
392
387
|
}
|
|
@@ -402,7 +397,7 @@ const de_ListResourceRequestsCommand = async (output, context) => {
|
|
|
402
397
|
$metadata: deserializeMetadata(output),
|
|
403
398
|
...contents,
|
|
404
399
|
};
|
|
405
|
-
return
|
|
400
|
+
return response;
|
|
406
401
|
};
|
|
407
402
|
exports.de_ListResourceRequestsCommand = de_ListResourceRequestsCommand;
|
|
408
403
|
const de_ListResourceRequestsCommandError = async (output, context) => {
|
|
@@ -412,10 +407,9 @@ const de_ListResourceRequestsCommandError = async (output, context) => {
|
|
|
412
407
|
};
|
|
413
408
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
414
409
|
const parsedBody = parsedOutput.body;
|
|
415
|
-
|
|
410
|
+
return throwDefaultError({
|
|
416
411
|
output,
|
|
417
412
|
parsedBody,
|
|
418
|
-
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
419
413
|
errorCode,
|
|
420
414
|
});
|
|
421
415
|
};
|
|
@@ -425,12 +419,12 @@ const de_ListResourcesCommand = async (output, context) => {
|
|
|
425
419
|
}
|
|
426
420
|
const data = await parseBody(output.body, context);
|
|
427
421
|
let contents = {};
|
|
428
|
-
contents =
|
|
422
|
+
contents = (0, smithy_client_1._json)(data);
|
|
429
423
|
const response = {
|
|
430
424
|
$metadata: deserializeMetadata(output),
|
|
431
425
|
...contents,
|
|
432
426
|
};
|
|
433
|
-
return
|
|
427
|
+
return response;
|
|
434
428
|
};
|
|
435
429
|
exports.de_ListResourcesCommand = de_ListResourcesCommand;
|
|
436
430
|
const de_ListResourcesCommandError = async (output, context) => {
|
|
@@ -493,10 +487,9 @@ const de_ListResourcesCommandError = async (output, context) => {
|
|
|
493
487
|
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
494
488
|
default:
|
|
495
489
|
const parsedBody = parsedOutput.body;
|
|
496
|
-
|
|
490
|
+
return throwDefaultError({
|
|
497
491
|
output,
|
|
498
492
|
parsedBody,
|
|
499
|
-
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
500
493
|
errorCode,
|
|
501
494
|
});
|
|
502
495
|
}
|
|
@@ -512,7 +505,7 @@ const de_UpdateResourceCommand = async (output, context) => {
|
|
|
512
505
|
$metadata: deserializeMetadata(output),
|
|
513
506
|
...contents,
|
|
514
507
|
};
|
|
515
|
-
return
|
|
508
|
+
return response;
|
|
516
509
|
};
|
|
517
510
|
exports.de_UpdateResourceCommand = de_UpdateResourceCommand;
|
|
518
511
|
const de_UpdateResourceCommandError = async (output, context) => {
|
|
@@ -581,17 +574,16 @@ const de_UpdateResourceCommandError = async (output, context) => {
|
|
|
581
574
|
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
582
575
|
default:
|
|
583
576
|
const parsedBody = parsedOutput.body;
|
|
584
|
-
|
|
577
|
+
return throwDefaultError({
|
|
585
578
|
output,
|
|
586
579
|
parsedBody,
|
|
587
|
-
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
588
580
|
errorCode,
|
|
589
581
|
});
|
|
590
582
|
}
|
|
591
583
|
};
|
|
592
584
|
const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
593
585
|
const body = parsedOutput.body;
|
|
594
|
-
const deserialized =
|
|
586
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
595
587
|
const exception = new models_0_1.AlreadyExistsException({
|
|
596
588
|
$metadata: deserializeMetadata(parsedOutput),
|
|
597
589
|
...deserialized,
|
|
@@ -600,7 +592,7 @@ const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
600
592
|
};
|
|
601
593
|
const de_ClientTokenConflictExceptionRes = async (parsedOutput, context) => {
|
|
602
594
|
const body = parsedOutput.body;
|
|
603
|
-
const deserialized =
|
|
595
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
604
596
|
const exception = new models_0_1.ClientTokenConflictException({
|
|
605
597
|
$metadata: deserializeMetadata(parsedOutput),
|
|
606
598
|
...deserialized,
|
|
@@ -609,7 +601,7 @@ const de_ClientTokenConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
609
601
|
};
|
|
610
602
|
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
611
603
|
const body = parsedOutput.body;
|
|
612
|
-
const deserialized =
|
|
604
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
613
605
|
const exception = new models_0_1.ConcurrentModificationException({
|
|
614
606
|
$metadata: deserializeMetadata(parsedOutput),
|
|
615
607
|
...deserialized,
|
|
@@ -618,7 +610,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
|
618
610
|
};
|
|
619
611
|
const de_ConcurrentOperationExceptionRes = async (parsedOutput, context) => {
|
|
620
612
|
const body = parsedOutput.body;
|
|
621
|
-
const deserialized =
|
|
613
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
622
614
|
const exception = new models_0_1.ConcurrentOperationException({
|
|
623
615
|
$metadata: deserializeMetadata(parsedOutput),
|
|
624
616
|
...deserialized,
|
|
@@ -627,7 +619,7 @@ const de_ConcurrentOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
627
619
|
};
|
|
628
620
|
const de_GeneralServiceExceptionRes = async (parsedOutput, context) => {
|
|
629
621
|
const body = parsedOutput.body;
|
|
630
|
-
const deserialized =
|
|
622
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
631
623
|
const exception = new models_0_1.GeneralServiceException({
|
|
632
624
|
$metadata: deserializeMetadata(parsedOutput),
|
|
633
625
|
...deserialized,
|
|
@@ -636,7 +628,7 @@ const de_GeneralServiceExceptionRes = async (parsedOutput, context) => {
|
|
|
636
628
|
};
|
|
637
629
|
const de_HandlerFailureExceptionRes = async (parsedOutput, context) => {
|
|
638
630
|
const body = parsedOutput.body;
|
|
639
|
-
const deserialized =
|
|
631
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
640
632
|
const exception = new models_0_1.HandlerFailureException({
|
|
641
633
|
$metadata: deserializeMetadata(parsedOutput),
|
|
642
634
|
...deserialized,
|
|
@@ -645,7 +637,7 @@ const de_HandlerFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
645
637
|
};
|
|
646
638
|
const de_HandlerInternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
647
639
|
const body = parsedOutput.body;
|
|
648
|
-
const deserialized =
|
|
640
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
649
641
|
const exception = new models_0_1.HandlerInternalFailureException({
|
|
650
642
|
$metadata: deserializeMetadata(parsedOutput),
|
|
651
643
|
...deserialized,
|
|
@@ -654,7 +646,7 @@ const de_HandlerInternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
654
646
|
};
|
|
655
647
|
const de_InvalidCredentialsExceptionRes = async (parsedOutput, context) => {
|
|
656
648
|
const body = parsedOutput.body;
|
|
657
|
-
const deserialized =
|
|
649
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
658
650
|
const exception = new models_0_1.InvalidCredentialsException({
|
|
659
651
|
$metadata: deserializeMetadata(parsedOutput),
|
|
660
652
|
...deserialized,
|
|
@@ -663,7 +655,7 @@ const de_InvalidCredentialsExceptionRes = async (parsedOutput, context) => {
|
|
|
663
655
|
};
|
|
664
656
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
665
657
|
const body = parsedOutput.body;
|
|
666
|
-
const deserialized =
|
|
658
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
667
659
|
const exception = new models_0_1.InvalidRequestException({
|
|
668
660
|
$metadata: deserializeMetadata(parsedOutput),
|
|
669
661
|
...deserialized,
|
|
@@ -672,7 +664,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
672
664
|
};
|
|
673
665
|
const de_NetworkFailureExceptionRes = async (parsedOutput, context) => {
|
|
674
666
|
const body = parsedOutput.body;
|
|
675
|
-
const deserialized =
|
|
667
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
676
668
|
const exception = new models_0_1.NetworkFailureException({
|
|
677
669
|
$metadata: deserializeMetadata(parsedOutput),
|
|
678
670
|
...deserialized,
|
|
@@ -681,7 +673,7 @@ const de_NetworkFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
681
673
|
};
|
|
682
674
|
const de_NotStabilizedExceptionRes = async (parsedOutput, context) => {
|
|
683
675
|
const body = parsedOutput.body;
|
|
684
|
-
const deserialized =
|
|
676
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
685
677
|
const exception = new models_0_1.NotStabilizedException({
|
|
686
678
|
$metadata: deserializeMetadata(parsedOutput),
|
|
687
679
|
...deserialized,
|
|
@@ -690,7 +682,7 @@ const de_NotStabilizedExceptionRes = async (parsedOutput, context) => {
|
|
|
690
682
|
};
|
|
691
683
|
const de_NotUpdatableExceptionRes = async (parsedOutput, context) => {
|
|
692
684
|
const body = parsedOutput.body;
|
|
693
|
-
const deserialized =
|
|
685
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
694
686
|
const exception = new models_0_1.NotUpdatableException({
|
|
695
687
|
$metadata: deserializeMetadata(parsedOutput),
|
|
696
688
|
...deserialized,
|
|
@@ -699,7 +691,7 @@ const de_NotUpdatableExceptionRes = async (parsedOutput, context) => {
|
|
|
699
691
|
};
|
|
700
692
|
const de_PrivateTypeExceptionRes = async (parsedOutput, context) => {
|
|
701
693
|
const body = parsedOutput.body;
|
|
702
|
-
const deserialized =
|
|
694
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
703
695
|
const exception = new models_0_1.PrivateTypeException({
|
|
704
696
|
$metadata: deserializeMetadata(parsedOutput),
|
|
705
697
|
...deserialized,
|
|
@@ -708,7 +700,7 @@ const de_PrivateTypeExceptionRes = async (parsedOutput, context) => {
|
|
|
708
700
|
};
|
|
709
701
|
const de_RequestTokenNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
710
702
|
const body = parsedOutput.body;
|
|
711
|
-
const deserialized =
|
|
703
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
712
704
|
const exception = new models_0_1.RequestTokenNotFoundException({
|
|
713
705
|
$metadata: deserializeMetadata(parsedOutput),
|
|
714
706
|
...deserialized,
|
|
@@ -717,7 +709,7 @@ const de_RequestTokenNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
717
709
|
};
|
|
718
710
|
const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
|
|
719
711
|
const body = parsedOutput.body;
|
|
720
|
-
const deserialized =
|
|
712
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
721
713
|
const exception = new models_0_1.ResourceConflictException({
|
|
722
714
|
$metadata: deserializeMetadata(parsedOutput),
|
|
723
715
|
...deserialized,
|
|
@@ -726,7 +718,7 @@ const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
726
718
|
};
|
|
727
719
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
728
720
|
const body = parsedOutput.body;
|
|
729
|
-
const deserialized =
|
|
721
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
730
722
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
731
723
|
$metadata: deserializeMetadata(parsedOutput),
|
|
732
724
|
...deserialized,
|
|
@@ -735,7 +727,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
735
727
|
};
|
|
736
728
|
const de_ServiceInternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
737
729
|
const body = parsedOutput.body;
|
|
738
|
-
const deserialized =
|
|
730
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
739
731
|
const exception = new models_0_1.ServiceInternalErrorException({
|
|
740
732
|
$metadata: deserializeMetadata(parsedOutput),
|
|
741
733
|
...deserialized,
|
|
@@ -744,7 +736,7 @@ const de_ServiceInternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
744
736
|
};
|
|
745
737
|
const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
746
738
|
const body = parsedOutput.body;
|
|
747
|
-
const deserialized =
|
|
739
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
748
740
|
const exception = new models_0_1.ServiceLimitExceededException({
|
|
749
741
|
$metadata: deserializeMetadata(parsedOutput),
|
|
750
742
|
...deserialized,
|
|
@@ -753,7 +745,7 @@ const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
753
745
|
};
|
|
754
746
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
755
747
|
const body = parsedOutput.body;
|
|
756
|
-
const deserialized =
|
|
748
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
757
749
|
const exception = new models_0_1.ThrottlingException({
|
|
758
750
|
$metadata: deserializeMetadata(parsedOutput),
|
|
759
751
|
...deserialized,
|
|
@@ -762,7 +754,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
762
754
|
};
|
|
763
755
|
const de_TypeNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
764
756
|
const body = parsedOutput.body;
|
|
765
|
-
const deserialized =
|
|
757
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
766
758
|
const exception = new models_0_1.TypeNotFoundException({
|
|
767
759
|
$metadata: deserializeMetadata(parsedOutput),
|
|
768
760
|
...deserialized,
|
|
@@ -771,292 +763,93 @@ const de_TypeNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
771
763
|
};
|
|
772
764
|
const de_UnsupportedActionExceptionRes = async (parsedOutput, context) => {
|
|
773
765
|
const body = parsedOutput.body;
|
|
774
|
-
const deserialized =
|
|
766
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
775
767
|
const exception = new models_0_1.UnsupportedActionException({
|
|
776
768
|
$metadata: deserializeMetadata(parsedOutput),
|
|
777
769
|
...deserialized,
|
|
778
770
|
});
|
|
779
771
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
780
772
|
};
|
|
781
|
-
const se_CancelResourceRequestInput = (input, context) => {
|
|
782
|
-
return {
|
|
783
|
-
...(input.RequestToken != null && { RequestToken: input.RequestToken }),
|
|
784
|
-
};
|
|
785
|
-
};
|
|
786
773
|
const se_CreateResourceInput = (input, context) => {
|
|
787
|
-
return {
|
|
788
|
-
ClientToken:
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
};
|
|
794
|
-
};
|
|
795
|
-
const se_DeleteResourceInput = (input, context) => {
|
|
796
|
-
return {
|
|
797
|
-
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
798
|
-
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
799
|
-
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
800
|
-
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
801
|
-
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
802
|
-
};
|
|
803
|
-
};
|
|
804
|
-
const se_GetResourceInput = (input, context) => {
|
|
805
|
-
return {
|
|
806
|
-
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
807
|
-
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
808
|
-
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
809
|
-
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
810
|
-
};
|
|
811
|
-
};
|
|
812
|
-
const se_GetResourceRequestStatusInput = (input, context) => {
|
|
813
|
-
return {
|
|
814
|
-
...(input.RequestToken != null && { RequestToken: input.RequestToken }),
|
|
815
|
-
};
|
|
816
|
-
};
|
|
817
|
-
const se_ListResourceRequestsInput = (input, context) => {
|
|
818
|
-
return {
|
|
819
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
820
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
821
|
-
...(input.ResourceRequestStatusFilter != null && {
|
|
822
|
-
ResourceRequestStatusFilter: se_ResourceRequestStatusFilter(input.ResourceRequestStatusFilter, context),
|
|
823
|
-
}),
|
|
824
|
-
};
|
|
825
|
-
};
|
|
826
|
-
const se_ListResourcesInput = (input, context) => {
|
|
827
|
-
return {
|
|
828
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
829
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
830
|
-
...(input.ResourceModel != null && { ResourceModel: input.ResourceModel }),
|
|
831
|
-
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
832
|
-
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
833
|
-
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
834
|
-
};
|
|
835
|
-
};
|
|
836
|
-
const se_Operations = (input, context) => {
|
|
837
|
-
return input
|
|
838
|
-
.filter((e) => e != null)
|
|
839
|
-
.map((entry) => {
|
|
840
|
-
return entry;
|
|
774
|
+
return (0, smithy_client_1.take)(input, {
|
|
775
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
776
|
+
DesiredState: [],
|
|
777
|
+
RoleArn: [],
|
|
778
|
+
TypeName: [],
|
|
779
|
+
TypeVersionId: [],
|
|
841
780
|
});
|
|
842
781
|
};
|
|
843
|
-
const
|
|
844
|
-
return input
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
782
|
+
const se_DeleteResourceInput = (input, context) => {
|
|
783
|
+
return (0, smithy_client_1.take)(input, {
|
|
784
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
785
|
+
Identifier: [],
|
|
786
|
+
RoleArn: [],
|
|
787
|
+
TypeName: [],
|
|
788
|
+
TypeVersionId: [],
|
|
848
789
|
});
|
|
849
790
|
};
|
|
850
|
-
const se_ResourceRequestStatusFilter = (input, context) => {
|
|
851
|
-
return {
|
|
852
|
-
...(input.OperationStatuses != null && {
|
|
853
|
-
OperationStatuses: se_OperationStatuses(input.OperationStatuses, context),
|
|
854
|
-
}),
|
|
855
|
-
...(input.Operations != null && { Operations: se_Operations(input.Operations, context) }),
|
|
856
|
-
};
|
|
857
|
-
};
|
|
858
791
|
const se_UpdateResourceInput = (input, context) => {
|
|
859
|
-
return {
|
|
860
|
-
ClientToken:
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
};
|
|
867
|
-
};
|
|
868
|
-
const de_AlreadyExistsException = (output, context) => {
|
|
869
|
-
return {
|
|
870
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
871
|
-
};
|
|
792
|
+
return (0, smithy_client_1.take)(input, {
|
|
793
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
794
|
+
Identifier: [],
|
|
795
|
+
PatchDocument: [],
|
|
796
|
+
RoleArn: [],
|
|
797
|
+
TypeName: [],
|
|
798
|
+
TypeVersionId: [],
|
|
799
|
+
});
|
|
872
800
|
};
|
|
873
801
|
const de_CancelResourceRequestOutput = (output, context) => {
|
|
874
|
-
return {
|
|
875
|
-
ProgressEvent:
|
|
876
|
-
};
|
|
877
|
-
};
|
|
878
|
-
const de_ClientTokenConflictException = (output, context) => {
|
|
879
|
-
return {
|
|
880
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
881
|
-
};
|
|
882
|
-
};
|
|
883
|
-
const de_ConcurrentModificationException = (output, context) => {
|
|
884
|
-
return {
|
|
885
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
886
|
-
};
|
|
887
|
-
};
|
|
888
|
-
const de_ConcurrentOperationException = (output, context) => {
|
|
889
|
-
return {
|
|
890
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
891
|
-
};
|
|
802
|
+
return (0, smithy_client_1.take)(output, {
|
|
803
|
+
ProgressEvent: (_) => de_ProgressEvent(_, context),
|
|
804
|
+
});
|
|
892
805
|
};
|
|
893
806
|
const de_CreateResourceOutput = (output, context) => {
|
|
894
|
-
return {
|
|
895
|
-
ProgressEvent:
|
|
896
|
-
};
|
|
807
|
+
return (0, smithy_client_1.take)(output, {
|
|
808
|
+
ProgressEvent: (_) => de_ProgressEvent(_, context),
|
|
809
|
+
});
|
|
897
810
|
};
|
|
898
811
|
const de_DeleteResourceOutput = (output, context) => {
|
|
899
|
-
return {
|
|
900
|
-
ProgressEvent:
|
|
901
|
-
};
|
|
902
|
-
};
|
|
903
|
-
const de_GeneralServiceException = (output, context) => {
|
|
904
|
-
return {
|
|
905
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
906
|
-
};
|
|
907
|
-
};
|
|
908
|
-
const de_GetResourceOutput = (output, context) => {
|
|
909
|
-
return {
|
|
910
|
-
ResourceDescription: output.ResourceDescription != null ? de_ResourceDescription(output.ResourceDescription, context) : undefined,
|
|
911
|
-
TypeName: (0, smithy_client_1.expectString)(output.TypeName),
|
|
912
|
-
};
|
|
812
|
+
return (0, smithy_client_1.take)(output, {
|
|
813
|
+
ProgressEvent: (_) => de_ProgressEvent(_, context),
|
|
814
|
+
});
|
|
913
815
|
};
|
|
914
816
|
const de_GetResourceRequestStatusOutput = (output, context) => {
|
|
915
|
-
return {
|
|
916
|
-
ProgressEvent:
|
|
917
|
-
};
|
|
918
|
-
};
|
|
919
|
-
const de_HandlerFailureException = (output, context) => {
|
|
920
|
-
return {
|
|
921
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
922
|
-
};
|
|
923
|
-
};
|
|
924
|
-
const de_HandlerInternalFailureException = (output, context) => {
|
|
925
|
-
return {
|
|
926
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
927
|
-
};
|
|
928
|
-
};
|
|
929
|
-
const de_InvalidCredentialsException = (output, context) => {
|
|
930
|
-
return {
|
|
931
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
932
|
-
};
|
|
933
|
-
};
|
|
934
|
-
const de_InvalidRequestException = (output, context) => {
|
|
935
|
-
return {
|
|
936
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
937
|
-
};
|
|
817
|
+
return (0, smithy_client_1.take)(output, {
|
|
818
|
+
ProgressEvent: (_) => de_ProgressEvent(_, context),
|
|
819
|
+
});
|
|
938
820
|
};
|
|
939
821
|
const de_ListResourceRequestsOutput = (output, context) => {
|
|
940
|
-
return {
|
|
941
|
-
NextToken:
|
|
942
|
-
ResourceRequestStatusSummaries:
|
|
943
|
-
|
|
944
|
-
: undefined,
|
|
945
|
-
};
|
|
946
|
-
};
|
|
947
|
-
const de_ListResourcesOutput = (output, context) => {
|
|
948
|
-
return {
|
|
949
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
950
|
-
ResourceDescriptions: output.ResourceDescriptions != null ? de_ResourceDescriptions(output.ResourceDescriptions, context) : undefined,
|
|
951
|
-
TypeName: (0, smithy_client_1.expectString)(output.TypeName),
|
|
952
|
-
};
|
|
953
|
-
};
|
|
954
|
-
const de_NetworkFailureException = (output, context) => {
|
|
955
|
-
return {
|
|
956
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
957
|
-
};
|
|
958
|
-
};
|
|
959
|
-
const de_NotStabilizedException = (output, context) => {
|
|
960
|
-
return {
|
|
961
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
962
|
-
};
|
|
963
|
-
};
|
|
964
|
-
const de_NotUpdatableException = (output, context) => {
|
|
965
|
-
return {
|
|
966
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
967
|
-
};
|
|
968
|
-
};
|
|
969
|
-
const de_PrivateTypeException = (output, context) => {
|
|
970
|
-
return {
|
|
971
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
972
|
-
};
|
|
822
|
+
return (0, smithy_client_1.take)(output, {
|
|
823
|
+
NextToken: smithy_client_1.expectString,
|
|
824
|
+
ResourceRequestStatusSummaries: (_) => de_ResourceRequestStatusSummaries(_, context),
|
|
825
|
+
});
|
|
973
826
|
};
|
|
974
827
|
const de_ProgressEvent = (output, context) => {
|
|
975
|
-
return {
|
|
976
|
-
ErrorCode:
|
|
977
|
-
EventTime:
|
|
978
|
-
Identifier:
|
|
979
|
-
Operation:
|
|
980
|
-
OperationStatus:
|
|
981
|
-
RequestToken:
|
|
982
|
-
ResourceModel:
|
|
983
|
-
RetryAfter:
|
|
984
|
-
StatusMessage:
|
|
985
|
-
TypeName:
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
|
-
const de_RequestTokenNotFoundException = (output, context) => {
|
|
989
|
-
return {
|
|
990
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
991
|
-
};
|
|
992
|
-
};
|
|
993
|
-
const de_ResourceConflictException = (output, context) => {
|
|
994
|
-
return {
|
|
995
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
996
|
-
};
|
|
997
|
-
};
|
|
998
|
-
const de_ResourceDescription = (output, context) => {
|
|
999
|
-
return {
|
|
1000
|
-
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
1001
|
-
Properties: (0, smithy_client_1.expectString)(output.Properties),
|
|
1002
|
-
};
|
|
1003
|
-
};
|
|
1004
|
-
const de_ResourceDescriptions = (output, context) => {
|
|
1005
|
-
const retVal = (output || [])
|
|
1006
|
-
.filter((e) => e != null)
|
|
1007
|
-
.map((entry) => {
|
|
1008
|
-
if (entry === null) {
|
|
1009
|
-
return null;
|
|
1010
|
-
}
|
|
1011
|
-
return de_ResourceDescription(entry, context);
|
|
828
|
+
return (0, smithy_client_1.take)(output, {
|
|
829
|
+
ErrorCode: smithy_client_1.expectString,
|
|
830
|
+
EventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
831
|
+
Identifier: smithy_client_1.expectString,
|
|
832
|
+
Operation: smithy_client_1.expectString,
|
|
833
|
+
OperationStatus: smithy_client_1.expectString,
|
|
834
|
+
RequestToken: smithy_client_1.expectString,
|
|
835
|
+
ResourceModel: smithy_client_1.expectString,
|
|
836
|
+
RetryAfter: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
837
|
+
StatusMessage: smithy_client_1.expectString,
|
|
838
|
+
TypeName: smithy_client_1.expectString,
|
|
1012
839
|
});
|
|
1013
|
-
return retVal;
|
|
1014
|
-
};
|
|
1015
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1016
|
-
return {
|
|
1017
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1018
|
-
};
|
|
1019
840
|
};
|
|
1020
841
|
const de_ResourceRequestStatusSummaries = (output, context) => {
|
|
1021
842
|
const retVal = (output || [])
|
|
1022
843
|
.filter((e) => e != null)
|
|
1023
844
|
.map((entry) => {
|
|
1024
|
-
if (entry === null) {
|
|
1025
|
-
return null;
|
|
1026
|
-
}
|
|
1027
845
|
return de_ProgressEvent(entry, context);
|
|
1028
846
|
});
|
|
1029
847
|
return retVal;
|
|
1030
848
|
};
|
|
1031
|
-
const de_ServiceInternalErrorException = (output, context) => {
|
|
1032
|
-
return {
|
|
1033
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1034
|
-
};
|
|
1035
|
-
};
|
|
1036
|
-
const de_ServiceLimitExceededException = (output, context) => {
|
|
1037
|
-
return {
|
|
1038
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1039
|
-
};
|
|
1040
|
-
};
|
|
1041
|
-
const de_ThrottlingException = (output, context) => {
|
|
1042
|
-
return {
|
|
1043
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1044
|
-
};
|
|
1045
|
-
};
|
|
1046
|
-
const de_TypeNotFoundException = (output, context) => {
|
|
1047
|
-
return {
|
|
1048
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1049
|
-
};
|
|
1050
|
-
};
|
|
1051
|
-
const de_UnsupportedActionException = (output, context) => {
|
|
1052
|
-
return {
|
|
1053
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1054
|
-
};
|
|
1055
|
-
};
|
|
1056
849
|
const de_UpdateResourceOutput = (output, context) => {
|
|
1057
|
-
return {
|
|
1058
|
-
ProgressEvent:
|
|
1059
|
-
};
|
|
850
|
+
return (0, smithy_client_1.take)(output, {
|
|
851
|
+
ProgressEvent: (_) => de_ProgressEvent(_, context),
|
|
852
|
+
});
|
|
1060
853
|
};
|
|
1061
854
|
const deserializeMetadata = (output) => ({
|
|
1062
855
|
httpStatusCode: output.statusCode,
|
|
@@ -1071,6 +864,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1071
864
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1072
865
|
};
|
|
1073
866
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
867
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(CloudControlServiceException_1.CloudControlServiceException);
|
|
1074
868
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1075
869
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1076
870
|
const contents = {
|