@aws-sdk/client-ram 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 +31 -25
- package/dist-es/RAM.js +102 -109
- package/dist-es/RAMClient.js +22 -28
- package/dist-es/commands/AcceptResourceShareInvitationCommand.js +21 -28
- package/dist-es/commands/AssociateResourceShareCommand.js +21 -28
- package/dist-es/commands/AssociateResourceSharePermissionCommand.js +21 -28
- package/dist-es/commands/CreateResourceShareCommand.js +21 -28
- package/dist-es/commands/DeleteResourceShareCommand.js +21 -28
- package/dist-es/commands/DisassociateResourceShareCommand.js +21 -28
- package/dist-es/commands/DisassociateResourceSharePermissionCommand.js +21 -28
- package/dist-es/commands/EnableSharingWithAwsOrganizationCommand.js +21 -28
- package/dist-es/commands/GetPermissionCommand.js +21 -28
- package/dist-es/commands/GetResourcePoliciesCommand.js +21 -28
- package/dist-es/commands/GetResourceShareAssociationsCommand.js +21 -28
- package/dist-es/commands/GetResourceShareInvitationsCommand.js +21 -28
- package/dist-es/commands/GetResourceSharesCommand.js +21 -28
- package/dist-es/commands/ListPendingInvitationResourcesCommand.js +21 -28
- package/dist-es/commands/ListPermissionVersionsCommand.js +21 -28
- package/dist-es/commands/ListPermissionsCommand.js +21 -28
- package/dist-es/commands/ListPrincipalsCommand.js +21 -28
- package/dist-es/commands/ListResourceSharePermissionsCommand.js +21 -28
- package/dist-es/commands/ListResourceTypesCommand.js +21 -28
- package/dist-es/commands/ListResourcesCommand.js +21 -28
- package/dist-es/commands/PromoteResourceShareCreatedFromPolicyCommand.js +21 -28
- package/dist-es/commands/RejectResourceShareInvitationCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateResourceShareCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/RAMServiceException.js +5 -10
- package/dist-es/models/models_0.js +422 -303
- package/dist-es/pagination/GetResourcePoliciesPaginator.js +25 -68
- package/dist-es/pagination/GetResourceShareAssociationsPaginator.js +25 -68
- package/dist-es/pagination/GetResourceShareInvitationsPaginator.js +25 -68
- package/dist-es/pagination/GetResourceSharesPaginator.js +25 -68
- package/dist-es/pagination/ListPendingInvitationResourcesPaginator.js +25 -68
- package/dist-es/pagination/ListPermissionVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListPermissionsPaginator.js +25 -68
- package/dist-es/pagination/ListPrincipalsPaginator.js +25 -68
- package/dist-es/pagination/ListResourceSharePermissionsPaginator.js +25 -68
- package/dist-es/pagination/ListResourceTypesPaginator.js +25 -68
- package/dist-es/pagination/ListResourcesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2260 -3028
- 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-ram
|
|
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-ram
|
|
@@ -648,7 +648,7 @@ exports.deserializeAws_restJson1AcceptResourceShareInvitationCommand = deseriali
|
|
|
648
648
|
const deserializeAws_restJson1AcceptResourceShareInvitationCommandError = async (output, context) => {
|
|
649
649
|
const parsedOutput = {
|
|
650
650
|
...output,
|
|
651
|
-
body: await
|
|
651
|
+
body: await parseErrorBody(output.body, context),
|
|
652
652
|
};
|
|
653
653
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
654
654
|
switch (errorCode) {
|
|
@@ -712,7 +712,7 @@ exports.deserializeAws_restJson1AssociateResourceShareCommand = deserializeAws_r
|
|
|
712
712
|
const deserializeAws_restJson1AssociateResourceShareCommandError = async (output, context) => {
|
|
713
713
|
const parsedOutput = {
|
|
714
714
|
...output,
|
|
715
|
-
body: await
|
|
715
|
+
body: await parseErrorBody(output.body, context),
|
|
716
716
|
};
|
|
717
717
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
718
718
|
switch (errorCode) {
|
|
@@ -779,7 +779,7 @@ exports.deserializeAws_restJson1AssociateResourceSharePermissionCommand = deseri
|
|
|
779
779
|
const deserializeAws_restJson1AssociateResourceSharePermissionCommandError = async (output, context) => {
|
|
780
780
|
const parsedOutput = {
|
|
781
781
|
...output,
|
|
782
|
-
body: await
|
|
782
|
+
body: await parseErrorBody(output.body, context),
|
|
783
783
|
};
|
|
784
784
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
785
|
switch (errorCode) {
|
|
@@ -834,7 +834,7 @@ exports.deserializeAws_restJson1CreateResourceShareCommand = deserializeAws_rest
|
|
|
834
834
|
const deserializeAws_restJson1CreateResourceShareCommandError = async (output, context) => {
|
|
835
835
|
const parsedOutput = {
|
|
836
836
|
...output,
|
|
837
|
-
body: await
|
|
837
|
+
body: await parseErrorBody(output.body, context),
|
|
838
838
|
};
|
|
839
839
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
840
840
|
switch (errorCode) {
|
|
@@ -901,7 +901,7 @@ exports.deserializeAws_restJson1DeleteResourceShareCommand = deserializeAws_rest
|
|
|
901
901
|
const deserializeAws_restJson1DeleteResourceShareCommandError = async (output, context) => {
|
|
902
902
|
const parsedOutput = {
|
|
903
903
|
...output,
|
|
904
|
-
body: await
|
|
904
|
+
body: await parseErrorBody(output.body, context),
|
|
905
905
|
};
|
|
906
906
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
907
907
|
switch (errorCode) {
|
|
@@ -962,7 +962,7 @@ exports.deserializeAws_restJson1DisassociateResourceShareCommand = deserializeAw
|
|
|
962
962
|
const deserializeAws_restJson1DisassociateResourceShareCommandError = async (output, context) => {
|
|
963
963
|
const parsedOutput = {
|
|
964
964
|
...output,
|
|
965
|
-
body: await
|
|
965
|
+
body: await parseErrorBody(output.body, context),
|
|
966
966
|
};
|
|
967
967
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
968
|
switch (errorCode) {
|
|
@@ -1026,7 +1026,7 @@ exports.deserializeAws_restJson1DisassociateResourceSharePermissionCommand = des
|
|
|
1026
1026
|
const deserializeAws_restJson1DisassociateResourceSharePermissionCommandError = async (output, context) => {
|
|
1027
1027
|
const parsedOutput = {
|
|
1028
1028
|
...output,
|
|
1029
|
-
body: await
|
|
1029
|
+
body: await parseErrorBody(output.body, context),
|
|
1030
1030
|
};
|
|
1031
1031
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1032
1032
|
switch (errorCode) {
|
|
@@ -1081,7 +1081,7 @@ exports.deserializeAws_restJson1EnableSharingWithAwsOrganizationCommand = deseri
|
|
|
1081
1081
|
const deserializeAws_restJson1EnableSharingWithAwsOrganizationCommandError = async (output, context) => {
|
|
1082
1082
|
const parsedOutput = {
|
|
1083
1083
|
...output,
|
|
1084
|
-
body: await
|
|
1084
|
+
body: await parseErrorBody(output.body, context),
|
|
1085
1085
|
};
|
|
1086
1086
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
1087
|
switch (errorCode) {
|
|
@@ -1121,7 +1121,7 @@ exports.deserializeAws_restJson1GetPermissionCommand = deserializeAws_restJson1G
|
|
|
1121
1121
|
const deserializeAws_restJson1GetPermissionCommandError = async (output, context) => {
|
|
1122
1122
|
const parsedOutput = {
|
|
1123
1123
|
...output,
|
|
1124
|
-
body: await
|
|
1124
|
+
body: await parseErrorBody(output.body, context),
|
|
1125
1125
|
};
|
|
1126
1126
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1127
1127
|
switch (errorCode) {
|
|
@@ -1173,7 +1173,7 @@ exports.deserializeAws_restJson1GetResourcePoliciesCommand = deserializeAws_rest
|
|
|
1173
1173
|
const deserializeAws_restJson1GetResourcePoliciesCommandError = 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) {
|
|
@@ -1225,7 +1225,7 @@ exports.deserializeAws_restJson1GetResourceShareAssociationsCommand = deserializ
|
|
|
1225
1225
|
const deserializeAws_restJson1GetResourceShareAssociationsCommandError = async (output, context) => {
|
|
1226
1226
|
const parsedOutput = {
|
|
1227
1227
|
...output,
|
|
1228
|
-
body: await
|
|
1228
|
+
body: await parseErrorBody(output.body, context),
|
|
1229
1229
|
};
|
|
1230
1230
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1231
1231
|
switch (errorCode) {
|
|
@@ -1280,7 +1280,7 @@ exports.deserializeAws_restJson1GetResourceShareInvitationsCommand = deserialize
|
|
|
1280
1280
|
const deserializeAws_restJson1GetResourceShareInvitationsCommandError = async (output, context) => {
|
|
1281
1281
|
const parsedOutput = {
|
|
1282
1282
|
...output,
|
|
1283
|
-
body: await
|
|
1283
|
+
body: await parseErrorBody(output.body, context),
|
|
1284
1284
|
};
|
|
1285
1285
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
1286
|
switch (errorCode) {
|
|
@@ -1338,7 +1338,7 @@ exports.deserializeAws_restJson1GetResourceSharesCommand = deserializeAws_restJs
|
|
|
1338
1338
|
const deserializeAws_restJson1GetResourceSharesCommandError = async (output, context) => {
|
|
1339
1339
|
const parsedOutput = {
|
|
1340
1340
|
...output,
|
|
1341
|
-
body: await
|
|
1341
|
+
body: await parseErrorBody(output.body, context),
|
|
1342
1342
|
};
|
|
1343
1343
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
1344
|
switch (errorCode) {
|
|
@@ -1390,7 +1390,7 @@ exports.deserializeAws_restJson1ListPendingInvitationResourcesCommand = deserial
|
|
|
1390
1390
|
const deserializeAws_restJson1ListPendingInvitationResourcesCommandError = async (output, context) => {
|
|
1391
1391
|
const parsedOutput = {
|
|
1392
1392
|
...output,
|
|
1393
|
-
body: await
|
|
1393
|
+
body: await parseErrorBody(output.body, context),
|
|
1394
1394
|
};
|
|
1395
1395
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1396
1396
|
switch (errorCode) {
|
|
@@ -1451,7 +1451,7 @@ exports.deserializeAws_restJson1ListPermissionsCommand = deserializeAws_restJson
|
|
|
1451
1451
|
const deserializeAws_restJson1ListPermissionsCommandError = async (output, context) => {
|
|
1452
1452
|
const parsedOutput = {
|
|
1453
1453
|
...output,
|
|
1454
|
-
body: await
|
|
1454
|
+
body: await parseErrorBody(output.body, context),
|
|
1455
1455
|
};
|
|
1456
1456
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1457
1457
|
switch (errorCode) {
|
|
@@ -1500,7 +1500,7 @@ exports.deserializeAws_restJson1ListPermissionVersionsCommand = deserializeAws_r
|
|
|
1500
1500
|
const deserializeAws_restJson1ListPermissionVersionsCommandError = async (output, context) => {
|
|
1501
1501
|
const parsedOutput = {
|
|
1502
1502
|
...output,
|
|
1503
|
-
body: await
|
|
1503
|
+
body: await parseErrorBody(output.body, context),
|
|
1504
1504
|
};
|
|
1505
1505
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
1506
|
switch (errorCode) {
|
|
@@ -1555,7 +1555,7 @@ exports.deserializeAws_restJson1ListPrincipalsCommand = deserializeAws_restJson1
|
|
|
1555
1555
|
const deserializeAws_restJson1ListPrincipalsCommandError = async (output, context) => {
|
|
1556
1556
|
const parsedOutput = {
|
|
1557
1557
|
...output,
|
|
1558
|
-
body: await
|
|
1558
|
+
body: await parseErrorBody(output.body, context),
|
|
1559
1559
|
};
|
|
1560
1560
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
1561
|
switch (errorCode) {
|
|
@@ -1607,7 +1607,7 @@ exports.deserializeAws_restJson1ListResourcesCommand = deserializeAws_restJson1L
|
|
|
1607
1607
|
const deserializeAws_restJson1ListResourcesCommandError = async (output, context) => {
|
|
1608
1608
|
const parsedOutput = {
|
|
1609
1609
|
...output,
|
|
1610
|
-
body: await
|
|
1610
|
+
body: await parseErrorBody(output.body, context),
|
|
1611
1611
|
};
|
|
1612
1612
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1613
1613
|
switch (errorCode) {
|
|
@@ -1662,7 +1662,7 @@ exports.deserializeAws_restJson1ListResourceSharePermissionsCommand = deserializ
|
|
|
1662
1662
|
const deserializeAws_restJson1ListResourceSharePermissionsCommandError = async (output, context) => {
|
|
1663
1663
|
const parsedOutput = {
|
|
1664
1664
|
...output,
|
|
1665
|
-
body: await
|
|
1665
|
+
body: await parseErrorBody(output.body, context),
|
|
1666
1666
|
};
|
|
1667
1667
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1668
1668
|
switch (errorCode) {
|
|
@@ -1717,7 +1717,7 @@ exports.deserializeAws_restJson1ListResourceTypesCommand = deserializeAws_restJs
|
|
|
1717
1717
|
const deserializeAws_restJson1ListResourceTypesCommandError = async (output, context) => {
|
|
1718
1718
|
const parsedOutput = {
|
|
1719
1719
|
...output,
|
|
1720
|
-
body: await
|
|
1720
|
+
body: await parseErrorBody(output.body, context),
|
|
1721
1721
|
};
|
|
1722
1722
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
1723
|
switch (errorCode) {
|
|
@@ -1760,7 +1760,7 @@ exports.deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand = d
|
|
|
1760
1760
|
const deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommandError = async (output, context) => {
|
|
1761
1761
|
const parsedOutput = {
|
|
1762
1762
|
...output,
|
|
1763
|
-
body: await
|
|
1763
|
+
body: await parseErrorBody(output.body, context),
|
|
1764
1764
|
};
|
|
1765
1765
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
1766
|
switch (errorCode) {
|
|
@@ -1818,7 +1818,7 @@ exports.deserializeAws_restJson1RejectResourceShareInvitationCommand = deseriali
|
|
|
1818
1818
|
const deserializeAws_restJson1RejectResourceShareInvitationCommandError = async (output, context) => {
|
|
1819
1819
|
const parsedOutput = {
|
|
1820
1820
|
...output,
|
|
1821
|
-
body: await
|
|
1821
|
+
body: await parseErrorBody(output.body, context),
|
|
1822
1822
|
};
|
|
1823
1823
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1824
1824
|
switch (errorCode) {
|
|
@@ -1876,7 +1876,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1876
1876
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1877
1877
|
const parsedOutput = {
|
|
1878
1878
|
...output,
|
|
1879
|
-
body: await
|
|
1879
|
+
body: await parseErrorBody(output.body, context),
|
|
1880
1880
|
};
|
|
1881
1881
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1882
1882
|
switch (errorCode) {
|
|
@@ -1928,7 +1928,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1928
1928
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1929
1929
|
const parsedOutput = {
|
|
1930
1930
|
...output,
|
|
1931
|
-
body: await
|
|
1931
|
+
body: await parseErrorBody(output.body, context),
|
|
1932
1932
|
};
|
|
1933
1933
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1934
1934
|
switch (errorCode) {
|
|
@@ -1971,7 +1971,7 @@ exports.deserializeAws_restJson1UpdateResourceShareCommand = deserializeAws_rest
|
|
|
1971
1971
|
const deserializeAws_restJson1UpdateResourceShareCommandError = async (output, context) => {
|
|
1972
1972
|
const parsedOutput = {
|
|
1973
1973
|
...output,
|
|
1974
|
-
body: await
|
|
1974
|
+
body: await parseErrorBody(output.body, context),
|
|
1975
1975
|
};
|
|
1976
1976
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1977
1977
|
switch (errorCode) {
|
|
@@ -2607,6 +2607,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2607
2607
|
}
|
|
2608
2608
|
return {};
|
|
2609
2609
|
});
|
|
2610
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2611
|
+
var _a;
|
|
2612
|
+
const value = await parseBody(errorBody, context);
|
|
2613
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2614
|
+
return value;
|
|
2615
|
+
};
|
|
2610
2616
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2611
2617
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2612
2618
|
const sanitizeErrorCode = (rawValue) => {
|