@aws-sdk/client-acm-pca 3.180.0 → 3.183.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/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +29 -23
- package/dist-es/ACMPCA.js +94 -101
- package/dist-es/ACMPCAClient.js +22 -28
- package/dist-es/commands/CreateCertificateAuthorityAuditReportCommand.js +21 -28
- package/dist-es/commands/CreateCertificateAuthorityCommand.js +21 -28
- package/dist-es/commands/CreatePermissionCommand.js +22 -29
- package/dist-es/commands/DeleteCertificateAuthorityCommand.js +22 -29
- package/dist-es/commands/DeletePermissionCommand.js +22 -29
- package/dist-es/commands/DeletePolicyCommand.js +22 -29
- package/dist-es/commands/DescribeCertificateAuthorityAuditReportCommand.js +21 -28
- package/dist-es/commands/DescribeCertificateAuthorityCommand.js +21 -28
- package/dist-es/commands/GetCertificateAuthorityCertificateCommand.js +21 -28
- package/dist-es/commands/GetCertificateAuthorityCsrCommand.js +21 -28
- package/dist-es/commands/GetCertificateCommand.js +21 -28
- package/dist-es/commands/GetPolicyCommand.js +21 -28
- package/dist-es/commands/ImportCertificateAuthorityCertificateCommand.js +22 -29
- package/dist-es/commands/IssueCertificateCommand.js +21 -28
- package/dist-es/commands/ListCertificateAuthoritiesCommand.js +21 -28
- package/dist-es/commands/ListPermissionsCommand.js +21 -28
- package/dist-es/commands/ListTagsCommand.js +21 -28
- package/dist-es/commands/PutPolicyCommand.js +22 -29
- package/dist-es/commands/RestoreCertificateAuthorityCommand.js +22 -29
- package/dist-es/commands/RevokeCertificateCommand.js +22 -29
- package/dist-es/commands/TagCertificateAuthorityCommand.js +22 -29
- package/dist-es/commands/UntagCertificateAuthorityCommand.js +22 -29
- package/dist-es/commands/UpdateCertificateAuthorityCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ACMPCAServiceException.js +5 -10
- package/dist-es/models/models_0.js +386 -269
- package/dist-es/pagination/ListCertificateAuthoritiesPaginator.js +25 -68
- package/dist-es/pagination/ListPermissionsPaginator.js +25 -68
- package/dist-es/pagination/ListTagsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1817 -2225
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForAuditReportCreated.js +36 -56
- package/dist-es/waiters/waitForCertificateAuthorityCSRCreated.js +23 -42
- package/dist-es/waiters/waitForCertificateIssued.js +23 -42
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-acm-pca
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-acm-pca
|
|
@@ -252,7 +252,7 @@ exports.deserializeAws_json1_1CreateCertificateAuthorityCommand = deserializeAws
|
|
|
252
252
|
const deserializeAws_json1_1CreateCertificateAuthorityCommandError = async (output, context) => {
|
|
253
253
|
const parsedOutput = {
|
|
254
254
|
...output,
|
|
255
|
-
body: await
|
|
255
|
+
body: await parseErrorBody(output.body, context),
|
|
256
256
|
};
|
|
257
257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
258
258
|
switch (errorCode) {
|
|
@@ -295,7 +295,7 @@ exports.deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommand = des
|
|
|
295
295
|
const deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommandError = async (output, context) => {
|
|
296
296
|
const parsedOutput = {
|
|
297
297
|
...output,
|
|
298
|
-
body: await
|
|
298
|
+
body: await parseErrorBody(output.body, context),
|
|
299
299
|
};
|
|
300
300
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
301
301
|
switch (errorCode) {
|
|
@@ -341,7 +341,7 @@ exports.deserializeAws_json1_1CreatePermissionCommand = deserializeAws_json1_1Cr
|
|
|
341
341
|
const deserializeAws_json1_1CreatePermissionCommandError = async (output, context) => {
|
|
342
342
|
const parsedOutput = {
|
|
343
343
|
...output,
|
|
344
|
-
body: await
|
|
344
|
+
body: await parseErrorBody(output.body, context),
|
|
345
345
|
};
|
|
346
346
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
347
347
|
switch (errorCode) {
|
|
@@ -387,7 +387,7 @@ exports.deserializeAws_json1_1DeleteCertificateAuthorityCommand = deserializeAws
|
|
|
387
387
|
const deserializeAws_json1_1DeleteCertificateAuthorityCommandError = async (output, context) => {
|
|
388
388
|
const parsedOutput = {
|
|
389
389
|
...output,
|
|
390
|
-
body: await
|
|
390
|
+
body: await parseErrorBody(output.body, context),
|
|
391
391
|
};
|
|
392
392
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
393
393
|
switch (errorCode) {
|
|
@@ -427,7 +427,7 @@ exports.deserializeAws_json1_1DeletePermissionCommand = deserializeAws_json1_1De
|
|
|
427
427
|
const deserializeAws_json1_1DeletePermissionCommandError = async (output, context) => {
|
|
428
428
|
const parsedOutput = {
|
|
429
429
|
...output,
|
|
430
|
-
body: await
|
|
430
|
+
body: await parseErrorBody(output.body, context),
|
|
431
431
|
};
|
|
432
432
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
433
433
|
switch (errorCode) {
|
|
@@ -467,7 +467,7 @@ exports.deserializeAws_json1_1DeletePolicyCommand = deserializeAws_json1_1Delete
|
|
|
467
467
|
const deserializeAws_json1_1DeletePolicyCommandError = async (output, context) => {
|
|
468
468
|
const parsedOutput = {
|
|
469
469
|
...output,
|
|
470
|
-
body: await
|
|
470
|
+
body: await parseErrorBody(output.body, context),
|
|
471
471
|
};
|
|
472
472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
473
|
switch (errorCode) {
|
|
@@ -516,7 +516,7 @@ exports.deserializeAws_json1_1DescribeCertificateAuthorityCommand = deserializeA
|
|
|
516
516
|
const deserializeAws_json1_1DescribeCertificateAuthorityCommandError = async (output, context) => {
|
|
517
517
|
const parsedOutput = {
|
|
518
518
|
...output,
|
|
519
|
-
body: await
|
|
519
|
+
body: await parseErrorBody(output.body, context),
|
|
520
520
|
};
|
|
521
521
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
522
522
|
switch (errorCode) {
|
|
@@ -553,7 +553,7 @@ exports.deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommand = d
|
|
|
553
553
|
const deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommandError = async (output, context) => {
|
|
554
554
|
const parsedOutput = {
|
|
555
555
|
...output,
|
|
556
|
-
body: await
|
|
556
|
+
body: await parseErrorBody(output.body, context),
|
|
557
557
|
};
|
|
558
558
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
559
559
|
switch (errorCode) {
|
|
@@ -593,7 +593,7 @@ exports.deserializeAws_json1_1GetCertificateCommand = deserializeAws_json1_1GetC
|
|
|
593
593
|
const deserializeAws_json1_1GetCertificateCommandError = async (output, context) => {
|
|
594
594
|
const parsedOutput = {
|
|
595
595
|
...output,
|
|
596
|
-
body: await
|
|
596
|
+
body: await parseErrorBody(output.body, context),
|
|
597
597
|
};
|
|
598
598
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
599
599
|
switch (errorCode) {
|
|
@@ -639,7 +639,7 @@ exports.deserializeAws_json1_1GetCertificateAuthorityCertificateCommand = deseri
|
|
|
639
639
|
const deserializeAws_json1_1GetCertificateAuthorityCertificateCommandError = async (output, context) => {
|
|
640
640
|
const parsedOutput = {
|
|
641
641
|
...output,
|
|
642
|
-
body: await
|
|
642
|
+
body: await parseErrorBody(output.body, context),
|
|
643
643
|
};
|
|
644
644
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
645
645
|
switch (errorCode) {
|
|
@@ -679,7 +679,7 @@ exports.deserializeAws_json1_1GetCertificateAuthorityCsrCommand = deserializeAws
|
|
|
679
679
|
const deserializeAws_json1_1GetCertificateAuthorityCsrCommandError = async (output, context) => {
|
|
680
680
|
const parsedOutput = {
|
|
681
681
|
...output,
|
|
682
|
-
body: await
|
|
682
|
+
body: await parseErrorBody(output.body, context),
|
|
683
683
|
};
|
|
684
684
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
685
685
|
switch (errorCode) {
|
|
@@ -725,7 +725,7 @@ exports.deserializeAws_json1_1GetPolicyCommand = deserializeAws_json1_1GetPolicy
|
|
|
725
725
|
const deserializeAws_json1_1GetPolicyCommandError = async (output, context) => {
|
|
726
726
|
const parsedOutput = {
|
|
727
727
|
...output,
|
|
728
|
-
body: await
|
|
728
|
+
body: await parseErrorBody(output.body, context),
|
|
729
729
|
};
|
|
730
730
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
731
|
switch (errorCode) {
|
|
@@ -765,7 +765,7 @@ exports.deserializeAws_json1_1ImportCertificateAuthorityCertificateCommand = des
|
|
|
765
765
|
const deserializeAws_json1_1ImportCertificateAuthorityCertificateCommandError = async (output, context) => {
|
|
766
766
|
const parsedOutput = {
|
|
767
767
|
...output,
|
|
768
|
-
body: await
|
|
768
|
+
body: await parseErrorBody(output.body, context),
|
|
769
769
|
};
|
|
770
770
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
771
771
|
switch (errorCode) {
|
|
@@ -823,7 +823,7 @@ exports.deserializeAws_json1_1IssueCertificateCommand = deserializeAws_json1_1Is
|
|
|
823
823
|
const deserializeAws_json1_1IssueCertificateCommandError = async (output, context) => {
|
|
824
824
|
const parsedOutput = {
|
|
825
825
|
...output,
|
|
826
|
-
body: await
|
|
826
|
+
body: await parseErrorBody(output.body, context),
|
|
827
827
|
};
|
|
828
828
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
829
|
switch (errorCode) {
|
|
@@ -872,7 +872,7 @@ exports.deserializeAws_json1_1ListCertificateAuthoritiesCommand = deserializeAws
|
|
|
872
872
|
const deserializeAws_json1_1ListCertificateAuthoritiesCommandError = async (output, context) => {
|
|
873
873
|
const parsedOutput = {
|
|
874
874
|
...output,
|
|
875
|
-
body: await
|
|
875
|
+
body: await parseErrorBody(output.body, context),
|
|
876
876
|
};
|
|
877
877
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
878
|
switch (errorCode) {
|
|
@@ -906,7 +906,7 @@ exports.deserializeAws_json1_1ListPermissionsCommand = deserializeAws_json1_1Lis
|
|
|
906
906
|
const deserializeAws_json1_1ListPermissionsCommandError = async (output, context) => {
|
|
907
907
|
const parsedOutput = {
|
|
908
908
|
...output,
|
|
909
|
-
body: await
|
|
909
|
+
body: await parseErrorBody(output.body, context),
|
|
910
910
|
};
|
|
911
911
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
912
912
|
switch (errorCode) {
|
|
@@ -952,7 +952,7 @@ exports.deserializeAws_json1_1ListTagsCommand = deserializeAws_json1_1ListTagsCo
|
|
|
952
952
|
const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
953
953
|
const parsedOutput = {
|
|
954
954
|
...output,
|
|
955
|
-
body: await
|
|
955
|
+
body: await parseErrorBody(output.body, context),
|
|
956
956
|
};
|
|
957
957
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
958
|
switch (errorCode) {
|
|
@@ -989,7 +989,7 @@ exports.deserializeAws_json1_1PutPolicyCommand = deserializeAws_json1_1PutPolicy
|
|
|
989
989
|
const deserializeAws_json1_1PutPolicyCommandError = async (output, context) => {
|
|
990
990
|
const parsedOutput = {
|
|
991
991
|
...output,
|
|
992
|
-
body: await
|
|
992
|
+
body: await parseErrorBody(output.body, context),
|
|
993
993
|
};
|
|
994
994
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
995
995
|
switch (errorCode) {
|
|
@@ -1038,7 +1038,7 @@ exports.deserializeAws_json1_1RestoreCertificateAuthorityCommand = deserializeAw
|
|
|
1038
1038
|
const deserializeAws_json1_1RestoreCertificateAuthorityCommandError = async (output, context) => {
|
|
1039
1039
|
const parsedOutput = {
|
|
1040
1040
|
...output,
|
|
1041
|
-
body: await
|
|
1041
|
+
body: await parseErrorBody(output.body, context),
|
|
1042
1042
|
};
|
|
1043
1043
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1044
1044
|
switch (errorCode) {
|
|
@@ -1075,7 +1075,7 @@ exports.deserializeAws_json1_1RevokeCertificateCommand = deserializeAws_json1_1R
|
|
|
1075
1075
|
const deserializeAws_json1_1RevokeCertificateCommandError = async (output, context) => {
|
|
1076
1076
|
const parsedOutput = {
|
|
1077
1077
|
...output,
|
|
1078
|
-
body: await
|
|
1078
|
+
body: await parseErrorBody(output.body, context),
|
|
1079
1079
|
};
|
|
1080
1080
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
1081
|
switch (errorCode) {
|
|
@@ -1130,7 +1130,7 @@ exports.deserializeAws_json1_1TagCertificateAuthorityCommand = deserializeAws_js
|
|
|
1130
1130
|
const deserializeAws_json1_1TagCertificateAuthorityCommandError = async (output, context) => {
|
|
1131
1131
|
const parsedOutput = {
|
|
1132
1132
|
...output,
|
|
1133
|
-
body: await
|
|
1133
|
+
body: await parseErrorBody(output.body, context),
|
|
1134
1134
|
};
|
|
1135
1135
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1136
1136
|
switch (errorCode) {
|
|
@@ -1173,7 +1173,7 @@ exports.deserializeAws_json1_1UntagCertificateAuthorityCommand = deserializeAws_
|
|
|
1173
1173
|
const deserializeAws_json1_1UntagCertificateAuthorityCommandError = async (output, context) => {
|
|
1174
1174
|
const parsedOutput = {
|
|
1175
1175
|
...output,
|
|
1176
|
-
body: await
|
|
1176
|
+
body: await parseErrorBody(output.body, context),
|
|
1177
1177
|
};
|
|
1178
1178
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
1179
|
switch (errorCode) {
|
|
@@ -1213,7 +1213,7 @@ exports.deserializeAws_json1_1UpdateCertificateAuthorityCommand = deserializeAws
|
|
|
1213
1213
|
const deserializeAws_json1_1UpdateCertificateAuthorityCommandError = async (output, context) => {
|
|
1214
1214
|
const parsedOutput = {
|
|
1215
1215
|
...output,
|
|
1216
|
-
body: await
|
|
1216
|
+
body: await parseErrorBody(output.body, context),
|
|
1217
1217
|
};
|
|
1218
1218
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
1219
|
switch (errorCode) {
|
|
@@ -2268,6 +2268,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2268
2268
|
}
|
|
2269
2269
|
return {};
|
|
2270
2270
|
});
|
|
2271
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2272
|
+
var _a;
|
|
2273
|
+
const value = await parseBody(errorBody, context);
|
|
2274
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2275
|
+
return value;
|
|
2276
|
+
};
|
|
2271
2277
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2272
2278
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2273
2279
|
const sanitizeErrorCode = (rawValue) => {
|