@aws-sdk/client-rolesanywhere 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_restJson1.js +32 -26
- package/dist-es/RolesAnywhere.js +106 -113
- package/dist-es/RolesAnywhereClient.js +22 -28
- package/dist-es/commands/CreateProfileCommand.js +21 -28
- package/dist-es/commands/CreateTrustAnchorCommand.js +21 -28
- package/dist-es/commands/DeleteCrlCommand.js +21 -28
- package/dist-es/commands/DeleteProfileCommand.js +21 -28
- package/dist-es/commands/DeleteTrustAnchorCommand.js +21 -28
- package/dist-es/commands/DisableCrlCommand.js +21 -28
- package/dist-es/commands/DisableProfileCommand.js +21 -28
- package/dist-es/commands/DisableTrustAnchorCommand.js +21 -28
- package/dist-es/commands/EnableCrlCommand.js +21 -28
- package/dist-es/commands/EnableProfileCommand.js +21 -28
- package/dist-es/commands/EnableTrustAnchorCommand.js +21 -28
- package/dist-es/commands/GetCrlCommand.js +21 -28
- package/dist-es/commands/GetProfileCommand.js +21 -28
- package/dist-es/commands/GetSubjectCommand.js +21 -28
- package/dist-es/commands/GetTrustAnchorCommand.js +21 -28
- package/dist-es/commands/ImportCrlCommand.js +21 -28
- package/dist-es/commands/ListCrlsCommand.js +21 -28
- package/dist-es/commands/ListProfilesCommand.js +21 -28
- package/dist-es/commands/ListSubjectsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListTrustAnchorsCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateCrlCommand.js +21 -28
- package/dist-es/commands/UpdateProfileCommand.js +21 -28
- package/dist-es/commands/UpdateTrustAnchorCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/RolesAnywhereServiceException.js +5 -10
- package/dist-es/models/models_0.js +163 -83
- package/dist-es/pagination/ListCrlsPaginator.js +24 -67
- package/dist-es/pagination/ListProfilesPaginator.js +24 -67
- package/dist-es/pagination/ListSubjectsPaginator.js +24 -67
- package/dist-es/pagination/ListTrustAnchorsPaginator.js +24 -67
- package/dist-es/protocols/Aws_restJson1.js +1558 -2302
- 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/package.json +33 -33
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-rolesanywhere
|
|
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-rolesanywhere
|
|
@@ -545,7 +545,7 @@ exports.deserializeAws_restJson1CreateProfileCommand = deserializeAws_restJson1C
|
|
|
545
545
|
const deserializeAws_restJson1CreateProfileCommandError = async (output, context) => {
|
|
546
546
|
const parsedOutput = {
|
|
547
547
|
...output,
|
|
548
|
-
body: await
|
|
548
|
+
body: await parseErrorBody(output.body, context),
|
|
549
549
|
};
|
|
550
550
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
551
551
|
switch (errorCode) {
|
|
@@ -582,7 +582,7 @@ exports.deserializeAws_restJson1CreateTrustAnchorCommand = deserializeAws_restJs
|
|
|
582
582
|
const deserializeAws_restJson1CreateTrustAnchorCommandError = async (output, context) => {
|
|
583
583
|
const parsedOutput = {
|
|
584
584
|
...output,
|
|
585
|
-
body: await
|
|
585
|
+
body: await parseErrorBody(output.body, context),
|
|
586
586
|
};
|
|
587
587
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
588
588
|
switch (errorCode) {
|
|
@@ -619,7 +619,7 @@ exports.deserializeAws_restJson1DeleteCrlCommand = deserializeAws_restJson1Delet
|
|
|
619
619
|
const deserializeAws_restJson1DeleteCrlCommandError = async (output, context) => {
|
|
620
620
|
const parsedOutput = {
|
|
621
621
|
...output,
|
|
622
|
-
body: await
|
|
622
|
+
body: await parseErrorBody(output.body, context),
|
|
623
623
|
};
|
|
624
624
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
625
|
switch (errorCode) {
|
|
@@ -656,7 +656,7 @@ exports.deserializeAws_restJson1DeleteProfileCommand = deserializeAws_restJson1D
|
|
|
656
656
|
const deserializeAws_restJson1DeleteProfileCommandError = async (output, context) => {
|
|
657
657
|
const parsedOutput = {
|
|
658
658
|
...output,
|
|
659
|
-
body: await
|
|
659
|
+
body: await parseErrorBody(output.body, context),
|
|
660
660
|
};
|
|
661
661
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
662
662
|
switch (errorCode) {
|
|
@@ -693,7 +693,7 @@ exports.deserializeAws_restJson1DeleteTrustAnchorCommand = deserializeAws_restJs
|
|
|
693
693
|
const deserializeAws_restJson1DeleteTrustAnchorCommandError = async (output, context) => {
|
|
694
694
|
const parsedOutput = {
|
|
695
695
|
...output,
|
|
696
|
-
body: await
|
|
696
|
+
body: await parseErrorBody(output.body, context),
|
|
697
697
|
};
|
|
698
698
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
699
699
|
switch (errorCode) {
|
|
@@ -730,7 +730,7 @@ exports.deserializeAws_restJson1DisableCrlCommand = deserializeAws_restJson1Disa
|
|
|
730
730
|
const deserializeAws_restJson1DisableCrlCommandError = async (output, context) => {
|
|
731
731
|
const parsedOutput = {
|
|
732
732
|
...output,
|
|
733
|
-
body: await
|
|
733
|
+
body: await parseErrorBody(output.body, context),
|
|
734
734
|
};
|
|
735
735
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
736
|
switch (errorCode) {
|
|
@@ -767,7 +767,7 @@ exports.deserializeAws_restJson1DisableProfileCommand = deserializeAws_restJson1
|
|
|
767
767
|
const deserializeAws_restJson1DisableProfileCommandError = async (output, context) => {
|
|
768
768
|
const parsedOutput = {
|
|
769
769
|
...output,
|
|
770
|
-
body: await
|
|
770
|
+
body: await parseErrorBody(output.body, context),
|
|
771
771
|
};
|
|
772
772
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
773
773
|
switch (errorCode) {
|
|
@@ -804,7 +804,7 @@ exports.deserializeAws_restJson1DisableTrustAnchorCommand = deserializeAws_restJ
|
|
|
804
804
|
const deserializeAws_restJson1DisableTrustAnchorCommandError = async (output, context) => {
|
|
805
805
|
const parsedOutput = {
|
|
806
806
|
...output,
|
|
807
|
-
body: await
|
|
807
|
+
body: await parseErrorBody(output.body, context),
|
|
808
808
|
};
|
|
809
809
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
810
|
switch (errorCode) {
|
|
@@ -841,7 +841,7 @@ exports.deserializeAws_restJson1EnableCrlCommand = deserializeAws_restJson1Enabl
|
|
|
841
841
|
const deserializeAws_restJson1EnableCrlCommandError = async (output, context) => {
|
|
842
842
|
const parsedOutput = {
|
|
843
843
|
...output,
|
|
844
|
-
body: await
|
|
844
|
+
body: await parseErrorBody(output.body, context),
|
|
845
845
|
};
|
|
846
846
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
847
847
|
switch (errorCode) {
|
|
@@ -878,7 +878,7 @@ exports.deserializeAws_restJson1EnableProfileCommand = deserializeAws_restJson1E
|
|
|
878
878
|
const deserializeAws_restJson1EnableProfileCommandError = async (output, context) => {
|
|
879
879
|
const parsedOutput = {
|
|
880
880
|
...output,
|
|
881
|
-
body: await
|
|
881
|
+
body: await parseErrorBody(output.body, context),
|
|
882
882
|
};
|
|
883
883
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
884
884
|
switch (errorCode) {
|
|
@@ -915,7 +915,7 @@ exports.deserializeAws_restJson1EnableTrustAnchorCommand = deserializeAws_restJs
|
|
|
915
915
|
const deserializeAws_restJson1EnableTrustAnchorCommandError = async (output, context) => {
|
|
916
916
|
const parsedOutput = {
|
|
917
917
|
...output,
|
|
918
|
-
body: await
|
|
918
|
+
body: await parseErrorBody(output.body, context),
|
|
919
919
|
};
|
|
920
920
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
921
|
switch (errorCode) {
|
|
@@ -952,7 +952,7 @@ exports.deserializeAws_restJson1GetCrlCommand = deserializeAws_restJson1GetCrlCo
|
|
|
952
952
|
const deserializeAws_restJson1GetCrlCommandError = 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) {
|
|
@@ -986,7 +986,7 @@ exports.deserializeAws_restJson1GetProfileCommand = deserializeAws_restJson1GetP
|
|
|
986
986
|
const deserializeAws_restJson1GetProfileCommandError = async (output, context) => {
|
|
987
987
|
const parsedOutput = {
|
|
988
988
|
...output,
|
|
989
|
-
body: await
|
|
989
|
+
body: await parseErrorBody(output.body, context),
|
|
990
990
|
};
|
|
991
991
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
992
|
switch (errorCode) {
|
|
@@ -1023,7 +1023,7 @@ exports.deserializeAws_restJson1GetSubjectCommand = deserializeAws_restJson1GetS
|
|
|
1023
1023
|
const deserializeAws_restJson1GetSubjectCommandError = async (output, context) => {
|
|
1024
1024
|
const parsedOutput = {
|
|
1025
1025
|
...output,
|
|
1026
|
-
body: await
|
|
1026
|
+
body: await parseErrorBody(output.body, context),
|
|
1027
1027
|
};
|
|
1028
1028
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
1029
|
switch (errorCode) {
|
|
@@ -1060,7 +1060,7 @@ exports.deserializeAws_restJson1GetTrustAnchorCommand = deserializeAws_restJson1
|
|
|
1060
1060
|
const deserializeAws_restJson1GetTrustAnchorCommandError = async (output, context) => {
|
|
1061
1061
|
const parsedOutput = {
|
|
1062
1062
|
...output,
|
|
1063
|
-
body: await
|
|
1063
|
+
body: await parseErrorBody(output.body, context),
|
|
1064
1064
|
};
|
|
1065
1065
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
1066
|
switch (errorCode) {
|
|
@@ -1100,7 +1100,7 @@ exports.deserializeAws_restJson1ImportCrlCommand = deserializeAws_restJson1Impor
|
|
|
1100
1100
|
const deserializeAws_restJson1ImportCrlCommandError = async (output, context) => {
|
|
1101
1101
|
const parsedOutput = {
|
|
1102
1102
|
...output,
|
|
1103
|
-
body: await
|
|
1103
|
+
body: await parseErrorBody(output.body, context),
|
|
1104
1104
|
};
|
|
1105
1105
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
1106
|
switch (errorCode) {
|
|
@@ -1140,7 +1140,7 @@ exports.deserializeAws_restJson1ListCrlsCommand = deserializeAws_restJson1ListCr
|
|
|
1140
1140
|
const deserializeAws_restJson1ListCrlsCommandError = async (output, context) => {
|
|
1141
1141
|
const parsedOutput = {
|
|
1142
1142
|
...output,
|
|
1143
|
-
body: await
|
|
1143
|
+
body: await parseErrorBody(output.body, context),
|
|
1144
1144
|
};
|
|
1145
1145
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
1146
|
switch (errorCode) {
|
|
@@ -1180,7 +1180,7 @@ exports.deserializeAws_restJson1ListProfilesCommand = deserializeAws_restJson1Li
|
|
|
1180
1180
|
const deserializeAws_restJson1ListProfilesCommandError = async (output, context) => {
|
|
1181
1181
|
const parsedOutput = {
|
|
1182
1182
|
...output,
|
|
1183
|
-
body: await
|
|
1183
|
+
body: await parseErrorBody(output.body, context),
|
|
1184
1184
|
};
|
|
1185
1185
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
1186
|
switch (errorCode) {
|
|
@@ -1220,7 +1220,7 @@ exports.deserializeAws_restJson1ListSubjectsCommand = deserializeAws_restJson1Li
|
|
|
1220
1220
|
const deserializeAws_restJson1ListSubjectsCommandError = async (output, context) => {
|
|
1221
1221
|
const parsedOutput = {
|
|
1222
1222
|
...output,
|
|
1223
|
-
body: await
|
|
1223
|
+
body: await parseErrorBody(output.body, context),
|
|
1224
1224
|
};
|
|
1225
1225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
1226
|
switch (errorCode) {
|
|
@@ -1257,7 +1257,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1257
1257
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1258
1258
|
const parsedOutput = {
|
|
1259
1259
|
...output,
|
|
1260
|
-
body: await
|
|
1260
|
+
body: await parseErrorBody(output.body, context),
|
|
1261
1261
|
};
|
|
1262
1262
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
1263
|
switch (errorCode) {
|
|
@@ -1300,7 +1300,7 @@ exports.deserializeAws_restJson1ListTrustAnchorsCommand = deserializeAws_restJso
|
|
|
1300
1300
|
const deserializeAws_restJson1ListTrustAnchorsCommandError = async (output, context) => {
|
|
1301
1301
|
const parsedOutput = {
|
|
1302
1302
|
...output,
|
|
1303
|
-
body: await
|
|
1303
|
+
body: await parseErrorBody(output.body, context),
|
|
1304
1304
|
};
|
|
1305
1305
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
1306
|
switch (errorCode) {
|
|
@@ -1334,7 +1334,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1334
1334
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1335
1335
|
const parsedOutput = {
|
|
1336
1336
|
...output,
|
|
1337
|
-
body: await
|
|
1337
|
+
body: await parseErrorBody(output.body, context),
|
|
1338
1338
|
};
|
|
1339
1339
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
1340
|
switch (errorCode) {
|
|
@@ -1374,7 +1374,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1374
1374
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1375
1375
|
const parsedOutput = {
|
|
1376
1376
|
...output,
|
|
1377
|
-
body: await
|
|
1377
|
+
body: await parseErrorBody(output.body, context),
|
|
1378
1378
|
};
|
|
1379
1379
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
1380
|
switch (errorCode) {
|
|
@@ -1414,7 +1414,7 @@ exports.deserializeAws_restJson1UpdateCrlCommand = deserializeAws_restJson1Updat
|
|
|
1414
1414
|
const deserializeAws_restJson1UpdateCrlCommandError = async (output, context) => {
|
|
1415
1415
|
const parsedOutput = {
|
|
1416
1416
|
...output,
|
|
1417
|
-
body: await
|
|
1417
|
+
body: await parseErrorBody(output.body, context),
|
|
1418
1418
|
};
|
|
1419
1419
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1420
1420
|
switch (errorCode) {
|
|
@@ -1454,7 +1454,7 @@ exports.deserializeAws_restJson1UpdateProfileCommand = deserializeAws_restJson1U
|
|
|
1454
1454
|
const deserializeAws_restJson1UpdateProfileCommandError = async (output, context) => {
|
|
1455
1455
|
const parsedOutput = {
|
|
1456
1456
|
...output,
|
|
1457
|
-
body: await
|
|
1457
|
+
body: await parseErrorBody(output.body, context),
|
|
1458
1458
|
};
|
|
1459
1459
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1460
1460
|
switch (errorCode) {
|
|
@@ -1494,7 +1494,7 @@ exports.deserializeAws_restJson1UpdateTrustAnchorCommand = deserializeAws_restJs
|
|
|
1494
1494
|
const deserializeAws_restJson1UpdateTrustAnchorCommandError = async (output, context) => {
|
|
1495
1495
|
const parsedOutput = {
|
|
1496
1496
|
...output,
|
|
1497
|
-
body: await
|
|
1497
|
+
body: await parseErrorBody(output.body, context),
|
|
1498
1498
|
};
|
|
1499
1499
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
1500
|
switch (errorCode) {
|
|
@@ -1857,6 +1857,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
1857
1857
|
}
|
|
1858
1858
|
return {};
|
|
1859
1859
|
});
|
|
1860
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1861
|
+
var _a;
|
|
1862
|
+
const value = await parseBody(errorBody, context);
|
|
1863
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1864
|
+
return value;
|
|
1865
|
+
};
|
|
1860
1866
|
const loadRestJsonErrorCode = (output, data) => {
|
|
1861
1867
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1862
1868
|
const sanitizeErrorCode = (rawValue) => {
|