@aws-sdk/client-ram 3.46.0 → 3.48.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 +38 -0
- package/dist-cjs/RAM.js +15 -0
- package/dist-cjs/commands/ListPermissionVersionsCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +0 -20
- package/dist-cjs/models/models_0.js +14 -134
- package/dist-cjs/pagination/ListPermissionVersionsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +124 -1
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/RAM.js +15 -0
- package/dist-es/commands/ListPermissionVersionsCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoints.js +0 -20
- package/dist-es/models/models_0.js +8 -88
- package/dist-es/pagination/ListPermissionVersionsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +138 -0
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/RAM.d.ts +7 -0
- package/dist-types/RAMClient.d.ts +8 -3
- package/dist-types/commands/ListPermissionVersionsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +57 -133
- package/dist-types/pagination/ListPermissionVersionsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/RAM.d.ts +5 -0
- package/dist-types/ts3.4/RAMClient.d.ts +6 -3
- package/dist-types/ts3.4/commands/ListPermissionVersionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -88
- package/dist-types/ts3.4/pagination/ListPermissionVersionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +35 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
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.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2022/01/21 ([#3228](https://github.com/aws/aws-sdk-js-v3/issues/3228)) ([fa713ef](https://github.com/aws/aws-sdk-js-v3/commit/fa713efca6b2f424c27535d000359f08830960b1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-ram
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-ram
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
45
|
|
|
8
46
|
|
package/dist-cjs/RAM.js
CHANGED
|
@@ -16,6 +16,7 @@ const GetResourceShareInvitationsCommand_1 = require("./commands/GetResourceShar
|
|
|
16
16
|
const GetResourceSharesCommand_1 = require("./commands/GetResourceSharesCommand");
|
|
17
17
|
const ListPendingInvitationResourcesCommand_1 = require("./commands/ListPendingInvitationResourcesCommand");
|
|
18
18
|
const ListPermissionsCommand_1 = require("./commands/ListPermissionsCommand");
|
|
19
|
+
const ListPermissionVersionsCommand_1 = require("./commands/ListPermissionVersionsCommand");
|
|
19
20
|
const ListPrincipalsCommand_1 = require("./commands/ListPrincipalsCommand");
|
|
20
21
|
const ListResourcesCommand_1 = require("./commands/ListResourcesCommand");
|
|
21
22
|
const ListResourceSharePermissionsCommand_1 = require("./commands/ListResourceSharePermissionsCommand");
|
|
@@ -237,6 +238,20 @@ class RAM extends RAMClient_1.RAMClient {
|
|
|
237
238
|
return this.send(command, optionsOrCb);
|
|
238
239
|
}
|
|
239
240
|
}
|
|
241
|
+
listPermissionVersions(args, optionsOrCb, cb) {
|
|
242
|
+
const command = new ListPermissionVersionsCommand_1.ListPermissionVersionsCommand(args);
|
|
243
|
+
if (typeof optionsOrCb === "function") {
|
|
244
|
+
this.send(command, optionsOrCb);
|
|
245
|
+
}
|
|
246
|
+
else if (typeof cb === "function") {
|
|
247
|
+
if (typeof optionsOrCb !== "object")
|
|
248
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
249
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
return this.send(command, optionsOrCb);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
240
255
|
listPrincipals(args, optionsOrCb, cb) {
|
|
241
256
|
const command = new ListPrincipalsCommand_1.ListPrincipalsCommand(args);
|
|
242
257
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListPermissionVersionsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListPermissionVersionsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "RAMClient";
|
|
18
|
+
const commandName = "ListPermissionVersionsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListPermissionVersionsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListPermissionVersionsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1ListPermissionVersionsCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1ListPermissionVersionsCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListPermissionVersionsCommand = ListPermissionVersionsCommand;
|
|
@@ -15,6 +15,7 @@ tslib_1.__exportStar(require("./GetResourceShareAssociationsCommand"), exports);
|
|
|
15
15
|
tslib_1.__exportStar(require("./GetResourceShareInvitationsCommand"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./GetResourceSharesCommand"), exports);
|
|
17
17
|
tslib_1.__exportStar(require("./ListPendingInvitationResourcesCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./ListPermissionVersionsCommand"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./ListPermissionsCommand"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./ListPrincipalsCommand"), exports);
|
|
20
21
|
tslib_1.__exportStar(require("./ListResourceSharePermissionsCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const regionHash = {
|
|
6
6
|
"ca-central-1": {
|
|
7
7
|
variants: [
|
|
8
|
-
{
|
|
9
|
-
hostname: "ram.ca-central-1.amazonaws.com",
|
|
10
|
-
tags: [],
|
|
11
|
-
},
|
|
12
8
|
{
|
|
13
9
|
hostname: "ram-fips.ca-central-1.amazonaws.com",
|
|
14
10
|
tags: ["fips"],
|
|
@@ -17,10 +13,6 @@ const regionHash = {
|
|
|
17
13
|
},
|
|
18
14
|
"us-east-1": {
|
|
19
15
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "ram.us-east-1.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
16
|
{
|
|
25
17
|
hostname: "ram-fips.us-east-1.amazonaws.com",
|
|
26
18
|
tags: ["fips"],
|
|
@@ -29,10 +21,6 @@ const regionHash = {
|
|
|
29
21
|
},
|
|
30
22
|
"us-east-2": {
|
|
31
23
|
variants: [
|
|
32
|
-
{
|
|
33
|
-
hostname: "ram.us-east-2.amazonaws.com",
|
|
34
|
-
tags: [],
|
|
35
|
-
},
|
|
36
24
|
{
|
|
37
25
|
hostname: "ram-fips.us-east-2.amazonaws.com",
|
|
38
26
|
tags: ["fips"],
|
|
@@ -59,10 +47,6 @@ const regionHash = {
|
|
|
59
47
|
},
|
|
60
48
|
"us-west-1": {
|
|
61
49
|
variants: [
|
|
62
|
-
{
|
|
63
|
-
hostname: "ram.us-west-1.amazonaws.com",
|
|
64
|
-
tags: [],
|
|
65
|
-
},
|
|
66
50
|
{
|
|
67
51
|
hostname: "ram-fips.us-west-1.amazonaws.com",
|
|
68
52
|
tags: ["fips"],
|
|
@@ -71,10 +55,6 @@ const regionHash = {
|
|
|
71
55
|
},
|
|
72
56
|
"us-west-2": {
|
|
73
57
|
variants: [
|
|
74
|
-
{
|
|
75
|
-
hostname: "ram.us-west-2.amazonaws.com",
|
|
76
|
-
tags: [],
|
|
77
|
-
},
|
|
78
58
|
{
|
|
79
59
|
hostname: "ram-fips.us-west-2.amazonaws.com",
|
|
80
60
|
tags: ["fips"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateResourceShareResponse = exports.UpdateResourceShareRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.
|
|
3
|
+
exports.ListResourceSharePermissionsResponse = exports.ListResourceSharePermissionsRequest = exports.ListResourcesResponse = exports.ListResourcesRequest = exports.ListPrincipalsResponse = exports.Principal = exports.ListPrincipalsRequest = exports.ListPermissionVersionsResponse = exports.ListPermissionVersionsRequest = exports.ListPermissionsResponse = exports.ResourceSharePermissionSummary = exports.ListPermissionsRequest = exports.ListPendingInvitationResourcesResponse = exports.Resource = exports.ResourceRegionScope = exports.ListPendingInvitationResourcesRequest = exports.ResourceRegionScopeFilter = exports.GetResourceSharesResponse = exports.GetResourceSharesRequest = exports.TagFilter = exports.ResourceOwner = exports.GetResourceShareInvitationsResponse = exports.GetResourceShareInvitationsRequest = exports.GetResourceShareAssociationsResponse = exports.GetResourceShareAssociationsRequest = exports.GetResourcePoliciesResponse = exports.GetResourcePoliciesRequest = exports.GetPermissionResponse = exports.ResourceSharePermissionDetail = exports.GetPermissionRequest = exports.EnableSharingWithAwsOrganizationResponse = exports.EnableSharingWithAwsOrganizationRequest = exports.DisassociateResourceSharePermissionResponse = exports.DisassociateResourceSharePermissionRequest = exports.DisassociateResourceShareResponse = exports.DisassociateResourceShareRequest = exports.DeleteResourceShareResponse = exports.DeleteResourceShareRequest = exports.CreateResourceShareResponse = exports.ResourceShare = exports.CreateResourceShareRequest = exports.Tag = exports.AssociateResourceSharePermissionResponse = exports.AssociateResourceSharePermissionRequest = exports.AssociateResourceShareResponse = exports.AssociateResourceShareRequest = exports.AcceptResourceShareInvitationResponse = exports.ResourceShareInvitation = exports.ResourceShareAssociation = exports.AcceptResourceShareInvitationRequest = void 0;
|
|
4
|
+
exports.UpdateResourceShareResponse = exports.UpdateResourceShareRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.RejectResourceShareInvitationResponse = exports.RejectResourceShareInvitationRequest = exports.PromoteResourceShareCreatedFromPolicyResponse = exports.PromoteResourceShareCreatedFromPolicyRequest = exports.ListResourceTypesResponse = exports.ServiceNameAndResourceType = exports.ListResourceTypesRequest = void 0;
|
|
5
5
|
var AcceptResourceShareInvitationRequest;
|
|
6
6
|
(function (AcceptResourceShareInvitationRequest) {
|
|
7
7
|
AcceptResourceShareInvitationRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -26,66 +26,6 @@ var AcceptResourceShareInvitationResponse;
|
|
|
26
26
|
...obj,
|
|
27
27
|
});
|
|
28
28
|
})(AcceptResourceShareInvitationResponse = exports.AcceptResourceShareInvitationResponse || (exports.AcceptResourceShareInvitationResponse = {}));
|
|
29
|
-
var IdempotentParameterMismatchException;
|
|
30
|
-
(function (IdempotentParameterMismatchException) {
|
|
31
|
-
IdempotentParameterMismatchException.filterSensitiveLog = (obj) => ({
|
|
32
|
-
...obj,
|
|
33
|
-
});
|
|
34
|
-
})(IdempotentParameterMismatchException = exports.IdempotentParameterMismatchException || (exports.IdempotentParameterMismatchException = {}));
|
|
35
|
-
var InvalidClientTokenException;
|
|
36
|
-
(function (InvalidClientTokenException) {
|
|
37
|
-
InvalidClientTokenException.filterSensitiveLog = (obj) => ({
|
|
38
|
-
...obj,
|
|
39
|
-
});
|
|
40
|
-
})(InvalidClientTokenException = exports.InvalidClientTokenException || (exports.InvalidClientTokenException = {}));
|
|
41
|
-
var MalformedArnException;
|
|
42
|
-
(function (MalformedArnException) {
|
|
43
|
-
MalformedArnException.filterSensitiveLog = (obj) => ({
|
|
44
|
-
...obj,
|
|
45
|
-
});
|
|
46
|
-
})(MalformedArnException = exports.MalformedArnException || (exports.MalformedArnException = {}));
|
|
47
|
-
var OperationNotPermittedException;
|
|
48
|
-
(function (OperationNotPermittedException) {
|
|
49
|
-
OperationNotPermittedException.filterSensitiveLog = (obj) => ({
|
|
50
|
-
...obj,
|
|
51
|
-
});
|
|
52
|
-
})(OperationNotPermittedException = exports.OperationNotPermittedException || (exports.OperationNotPermittedException = {}));
|
|
53
|
-
var ResourceShareInvitationAlreadyAcceptedException;
|
|
54
|
-
(function (ResourceShareInvitationAlreadyAcceptedException) {
|
|
55
|
-
ResourceShareInvitationAlreadyAcceptedException.filterSensitiveLog = (obj) => ({
|
|
56
|
-
...obj,
|
|
57
|
-
});
|
|
58
|
-
})(ResourceShareInvitationAlreadyAcceptedException = exports.ResourceShareInvitationAlreadyAcceptedException || (exports.ResourceShareInvitationAlreadyAcceptedException = {}));
|
|
59
|
-
var ResourceShareInvitationAlreadyRejectedException;
|
|
60
|
-
(function (ResourceShareInvitationAlreadyRejectedException) {
|
|
61
|
-
ResourceShareInvitationAlreadyRejectedException.filterSensitiveLog = (obj) => ({
|
|
62
|
-
...obj,
|
|
63
|
-
});
|
|
64
|
-
})(ResourceShareInvitationAlreadyRejectedException = exports.ResourceShareInvitationAlreadyRejectedException || (exports.ResourceShareInvitationAlreadyRejectedException = {}));
|
|
65
|
-
var ResourceShareInvitationArnNotFoundException;
|
|
66
|
-
(function (ResourceShareInvitationArnNotFoundException) {
|
|
67
|
-
ResourceShareInvitationArnNotFoundException.filterSensitiveLog = (obj) => ({
|
|
68
|
-
...obj,
|
|
69
|
-
});
|
|
70
|
-
})(ResourceShareInvitationArnNotFoundException = exports.ResourceShareInvitationArnNotFoundException || (exports.ResourceShareInvitationArnNotFoundException = {}));
|
|
71
|
-
var ResourceShareInvitationExpiredException;
|
|
72
|
-
(function (ResourceShareInvitationExpiredException) {
|
|
73
|
-
ResourceShareInvitationExpiredException.filterSensitiveLog = (obj) => ({
|
|
74
|
-
...obj,
|
|
75
|
-
});
|
|
76
|
-
})(ResourceShareInvitationExpiredException = exports.ResourceShareInvitationExpiredException || (exports.ResourceShareInvitationExpiredException = {}));
|
|
77
|
-
var ServerInternalException;
|
|
78
|
-
(function (ServerInternalException) {
|
|
79
|
-
ServerInternalException.filterSensitiveLog = (obj) => ({
|
|
80
|
-
...obj,
|
|
81
|
-
});
|
|
82
|
-
})(ServerInternalException = exports.ServerInternalException || (exports.ServerInternalException = {}));
|
|
83
|
-
var ServiceUnavailableException;
|
|
84
|
-
(function (ServiceUnavailableException) {
|
|
85
|
-
ServiceUnavailableException.filterSensitiveLog = (obj) => ({
|
|
86
|
-
...obj,
|
|
87
|
-
});
|
|
88
|
-
})(ServiceUnavailableException = exports.ServiceUnavailableException || (exports.ServiceUnavailableException = {}));
|
|
89
29
|
var AssociateResourceShareRequest;
|
|
90
30
|
(function (AssociateResourceShareRequest) {
|
|
91
31
|
AssociateResourceShareRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -98,36 +38,6 @@ var AssociateResourceShareResponse;
|
|
|
98
38
|
...obj,
|
|
99
39
|
});
|
|
100
40
|
})(AssociateResourceShareResponse = exports.AssociateResourceShareResponse || (exports.AssociateResourceShareResponse = {}));
|
|
101
|
-
var InvalidParameterException;
|
|
102
|
-
(function (InvalidParameterException) {
|
|
103
|
-
InvalidParameterException.filterSensitiveLog = (obj) => ({
|
|
104
|
-
...obj,
|
|
105
|
-
});
|
|
106
|
-
})(InvalidParameterException = exports.InvalidParameterException || (exports.InvalidParameterException = {}));
|
|
107
|
-
var InvalidStateTransitionException;
|
|
108
|
-
(function (InvalidStateTransitionException) {
|
|
109
|
-
InvalidStateTransitionException.filterSensitiveLog = (obj) => ({
|
|
110
|
-
...obj,
|
|
111
|
-
});
|
|
112
|
-
})(InvalidStateTransitionException = exports.InvalidStateTransitionException || (exports.InvalidStateTransitionException = {}));
|
|
113
|
-
var ResourceShareLimitExceededException;
|
|
114
|
-
(function (ResourceShareLimitExceededException) {
|
|
115
|
-
ResourceShareLimitExceededException.filterSensitiveLog = (obj) => ({
|
|
116
|
-
...obj,
|
|
117
|
-
});
|
|
118
|
-
})(ResourceShareLimitExceededException = exports.ResourceShareLimitExceededException || (exports.ResourceShareLimitExceededException = {}));
|
|
119
|
-
var ThrottlingException;
|
|
120
|
-
(function (ThrottlingException) {
|
|
121
|
-
ThrottlingException.filterSensitiveLog = (obj) => ({
|
|
122
|
-
...obj,
|
|
123
|
-
});
|
|
124
|
-
})(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
|
|
125
|
-
var UnknownResourceException;
|
|
126
|
-
(function (UnknownResourceException) {
|
|
127
|
-
UnknownResourceException.filterSensitiveLog = (obj) => ({
|
|
128
|
-
...obj,
|
|
129
|
-
});
|
|
130
|
-
})(UnknownResourceException = exports.UnknownResourceException || (exports.UnknownResourceException = {}));
|
|
131
41
|
var AssociateResourceSharePermissionRequest;
|
|
132
42
|
(function (AssociateResourceSharePermissionRequest) {
|
|
133
43
|
AssociateResourceSharePermissionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -164,12 +74,6 @@ var CreateResourceShareResponse;
|
|
|
164
74
|
...obj,
|
|
165
75
|
});
|
|
166
76
|
})(CreateResourceShareResponse = exports.CreateResourceShareResponse || (exports.CreateResourceShareResponse = {}));
|
|
167
|
-
var TagPolicyViolationException;
|
|
168
|
-
(function (TagPolicyViolationException) {
|
|
169
|
-
TagPolicyViolationException.filterSensitiveLog = (obj) => ({
|
|
170
|
-
...obj,
|
|
171
|
-
});
|
|
172
|
-
})(TagPolicyViolationException = exports.TagPolicyViolationException || (exports.TagPolicyViolationException = {}));
|
|
173
77
|
var DeleteResourceShareRequest;
|
|
174
78
|
(function (DeleteResourceShareRequest) {
|
|
175
79
|
DeleteResourceShareRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -248,18 +152,6 @@ var GetResourcePoliciesResponse;
|
|
|
248
152
|
...obj,
|
|
249
153
|
});
|
|
250
154
|
})(GetResourcePoliciesResponse = exports.GetResourcePoliciesResponse || (exports.GetResourcePoliciesResponse = {}));
|
|
251
|
-
var InvalidNextTokenException;
|
|
252
|
-
(function (InvalidNextTokenException) {
|
|
253
|
-
InvalidNextTokenException.filterSensitiveLog = (obj) => ({
|
|
254
|
-
...obj,
|
|
255
|
-
});
|
|
256
|
-
})(InvalidNextTokenException = exports.InvalidNextTokenException || (exports.InvalidNextTokenException = {}));
|
|
257
|
-
var ResourceArnNotFoundException;
|
|
258
|
-
(function (ResourceArnNotFoundException) {
|
|
259
|
-
ResourceArnNotFoundException.filterSensitiveLog = (obj) => ({
|
|
260
|
-
...obj,
|
|
261
|
-
});
|
|
262
|
-
})(ResourceArnNotFoundException = exports.ResourceArnNotFoundException || (exports.ResourceArnNotFoundException = {}));
|
|
263
155
|
var GetResourceShareAssociationsRequest;
|
|
264
156
|
(function (GetResourceShareAssociationsRequest) {
|
|
265
157
|
GetResourceShareAssociationsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -284,12 +176,6 @@ var GetResourceShareInvitationsResponse;
|
|
|
284
176
|
...obj,
|
|
285
177
|
});
|
|
286
178
|
})(GetResourceShareInvitationsResponse = exports.GetResourceShareInvitationsResponse || (exports.GetResourceShareInvitationsResponse = {}));
|
|
287
|
-
var InvalidMaxResultsException;
|
|
288
|
-
(function (InvalidMaxResultsException) {
|
|
289
|
-
InvalidMaxResultsException.filterSensitiveLog = (obj) => ({
|
|
290
|
-
...obj,
|
|
291
|
-
});
|
|
292
|
-
})(InvalidMaxResultsException = exports.InvalidMaxResultsException || (exports.InvalidMaxResultsException = {}));
|
|
293
179
|
var ResourceOwner;
|
|
294
180
|
(function (ResourceOwner) {
|
|
295
181
|
ResourceOwner["OTHER_ACCOUNTS"] = "OTHER-ACCOUNTS";
|
|
@@ -342,12 +228,6 @@ var ListPendingInvitationResourcesResponse;
|
|
|
342
228
|
...obj,
|
|
343
229
|
});
|
|
344
230
|
})(ListPendingInvitationResourcesResponse = exports.ListPendingInvitationResourcesResponse || (exports.ListPendingInvitationResourcesResponse = {}));
|
|
345
|
-
var MissingRequiredParameterException;
|
|
346
|
-
(function (MissingRequiredParameterException) {
|
|
347
|
-
MissingRequiredParameterException.filterSensitiveLog = (obj) => ({
|
|
348
|
-
...obj,
|
|
349
|
-
});
|
|
350
|
-
})(MissingRequiredParameterException = exports.MissingRequiredParameterException || (exports.MissingRequiredParameterException = {}));
|
|
351
231
|
var ListPermissionsRequest;
|
|
352
232
|
(function (ListPermissionsRequest) {
|
|
353
233
|
ListPermissionsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -366,6 +246,18 @@ var ListPermissionsResponse;
|
|
|
366
246
|
...obj,
|
|
367
247
|
});
|
|
368
248
|
})(ListPermissionsResponse = exports.ListPermissionsResponse || (exports.ListPermissionsResponse = {}));
|
|
249
|
+
var ListPermissionVersionsRequest;
|
|
250
|
+
(function (ListPermissionVersionsRequest) {
|
|
251
|
+
ListPermissionVersionsRequest.filterSensitiveLog = (obj) => ({
|
|
252
|
+
...obj,
|
|
253
|
+
});
|
|
254
|
+
})(ListPermissionVersionsRequest = exports.ListPermissionVersionsRequest || (exports.ListPermissionVersionsRequest = {}));
|
|
255
|
+
var ListPermissionVersionsResponse;
|
|
256
|
+
(function (ListPermissionVersionsResponse) {
|
|
257
|
+
ListPermissionVersionsResponse.filterSensitiveLog = (obj) => ({
|
|
258
|
+
...obj,
|
|
259
|
+
});
|
|
260
|
+
})(ListPermissionVersionsResponse = exports.ListPermissionVersionsResponse || (exports.ListPermissionVersionsResponse = {}));
|
|
369
261
|
var ListPrincipalsRequest;
|
|
370
262
|
(function (ListPrincipalsRequest) {
|
|
371
263
|
ListPrincipalsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -384,12 +276,6 @@ var ListPrincipalsResponse;
|
|
|
384
276
|
...obj,
|
|
385
277
|
});
|
|
386
278
|
})(ListPrincipalsResponse = exports.ListPrincipalsResponse || (exports.ListPrincipalsResponse = {}));
|
|
387
|
-
var InvalidResourceTypeException;
|
|
388
|
-
(function (InvalidResourceTypeException) {
|
|
389
|
-
InvalidResourceTypeException.filterSensitiveLog = (obj) => ({
|
|
390
|
-
...obj,
|
|
391
|
-
});
|
|
392
|
-
})(InvalidResourceTypeException = exports.InvalidResourceTypeException || (exports.InvalidResourceTypeException = {}));
|
|
393
279
|
var ListResourcesRequest;
|
|
394
280
|
(function (ListResourcesRequest) {
|
|
395
281
|
ListResourcesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -456,12 +342,6 @@ var RejectResourceShareInvitationResponse;
|
|
|
456
342
|
...obj,
|
|
457
343
|
});
|
|
458
344
|
})(RejectResourceShareInvitationResponse = exports.RejectResourceShareInvitationResponse || (exports.RejectResourceShareInvitationResponse = {}));
|
|
459
|
-
var TagLimitExceededException;
|
|
460
|
-
(function (TagLimitExceededException) {
|
|
461
|
-
TagLimitExceededException.filterSensitiveLog = (obj) => ({
|
|
462
|
-
...obj,
|
|
463
|
-
});
|
|
464
|
-
})(TagLimitExceededException = exports.TagLimitExceededException || (exports.TagLimitExceededException = {}));
|
|
465
345
|
var TagResourceRequest;
|
|
466
346
|
(function (TagResourceRequest) {
|
|
467
347
|
TagResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListPermissionVersions = void 0;
|
|
4
|
+
const ListPermissionVersionsCommand_1 = require("../commands/ListPermissionVersionsCommand");
|
|
5
|
+
const RAM_1 = require("../RAM");
|
|
6
|
+
const RAMClient_1 = require("../RAMClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListPermissionVersionsCommand_1.ListPermissionVersionsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listPermissionVersions(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListPermissionVersions(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof RAM_1.RAM) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof RAMClient_1.RAMClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.nextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateListPermissionVersions = paginateListPermissionVersions;
|
|
@@ -7,6 +7,7 @@ tslib_1.__exportStar(require("./GetResourceShareInvitationsPaginator"), exports)
|
|
|
7
7
|
tslib_1.__exportStar(require("./GetResourceSharesPaginator"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./ListPendingInvitationResourcesPaginator"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./ListPermissionVersionsPaginator"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./ListPermissionsPaginator"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./ListPrincipalsPaginator"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./ListResourceSharePermissionsPaginator"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateResourceShareCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RejectResourceShareInvitationCommand = exports.deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand = exports.deserializeAws_restJson1ListResourceTypesCommand = exports.deserializeAws_restJson1ListResourceSharePermissionsCommand = exports.deserializeAws_restJson1ListResourcesCommand = exports.deserializeAws_restJson1ListPrincipalsCommand = exports.deserializeAws_restJson1ListPermissionsCommand = exports.deserializeAws_restJson1ListPendingInvitationResourcesCommand = exports.deserializeAws_restJson1GetResourceSharesCommand = exports.deserializeAws_restJson1GetResourceShareInvitationsCommand = exports.deserializeAws_restJson1GetResourceShareAssociationsCommand = exports.deserializeAws_restJson1GetResourcePoliciesCommand = exports.deserializeAws_restJson1GetPermissionCommand = exports.deserializeAws_restJson1EnableSharingWithAwsOrganizationCommand = exports.deserializeAws_restJson1DisassociateResourceSharePermissionCommand = exports.deserializeAws_restJson1DisassociateResourceShareCommand = exports.deserializeAws_restJson1DeleteResourceShareCommand = exports.deserializeAws_restJson1CreateResourceShareCommand = exports.deserializeAws_restJson1AssociateResourceSharePermissionCommand = exports.deserializeAws_restJson1AssociateResourceShareCommand = exports.deserializeAws_restJson1AcceptResourceShareInvitationCommand = exports.serializeAws_restJson1UpdateResourceShareCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RejectResourceShareInvitationCommand = exports.serializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand = exports.serializeAws_restJson1ListResourceTypesCommand = exports.serializeAws_restJson1ListResourceSharePermissionsCommand = exports.serializeAws_restJson1ListResourcesCommand = exports.serializeAws_restJson1ListPrincipalsCommand = exports.serializeAws_restJson1ListPermissionsCommand = exports.serializeAws_restJson1ListPendingInvitationResourcesCommand = exports.serializeAws_restJson1GetResourceSharesCommand = exports.serializeAws_restJson1GetResourceShareInvitationsCommand = exports.serializeAws_restJson1GetResourceShareAssociationsCommand = exports.serializeAws_restJson1GetResourcePoliciesCommand = exports.serializeAws_restJson1GetPermissionCommand = exports.serializeAws_restJson1EnableSharingWithAwsOrganizationCommand = exports.serializeAws_restJson1DisassociateResourceSharePermissionCommand = exports.serializeAws_restJson1DisassociateResourceShareCommand = exports.serializeAws_restJson1DeleteResourceShareCommand = exports.serializeAws_restJson1CreateResourceShareCommand = exports.serializeAws_restJson1AssociateResourceSharePermissionCommand = exports.serializeAws_restJson1AssociateResourceShareCommand = exports.serializeAws_restJson1AcceptResourceShareInvitationCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateResourceShareCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RejectResourceShareInvitationCommand = exports.deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand = exports.deserializeAws_restJson1ListResourceTypesCommand = exports.deserializeAws_restJson1ListResourceSharePermissionsCommand = exports.deserializeAws_restJson1ListResourcesCommand = exports.deserializeAws_restJson1ListPrincipalsCommand = exports.deserializeAws_restJson1ListPermissionVersionsCommand = exports.deserializeAws_restJson1ListPermissionsCommand = exports.deserializeAws_restJson1ListPendingInvitationResourcesCommand = exports.deserializeAws_restJson1GetResourceSharesCommand = exports.deserializeAws_restJson1GetResourceShareInvitationsCommand = exports.deserializeAws_restJson1GetResourceShareAssociationsCommand = exports.deserializeAws_restJson1GetResourcePoliciesCommand = exports.deserializeAws_restJson1GetPermissionCommand = exports.deserializeAws_restJson1EnableSharingWithAwsOrganizationCommand = exports.deserializeAws_restJson1DisassociateResourceSharePermissionCommand = exports.deserializeAws_restJson1DisassociateResourceShareCommand = exports.deserializeAws_restJson1DeleteResourceShareCommand = exports.deserializeAws_restJson1CreateResourceShareCommand = exports.deserializeAws_restJson1AssociateResourceSharePermissionCommand = exports.deserializeAws_restJson1AssociateResourceShareCommand = exports.deserializeAws_restJson1AcceptResourceShareInvitationCommand = exports.serializeAws_restJson1UpdateResourceShareCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RejectResourceShareInvitationCommand = exports.serializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand = exports.serializeAws_restJson1ListResourceTypesCommand = exports.serializeAws_restJson1ListResourceSharePermissionsCommand = exports.serializeAws_restJson1ListResourcesCommand = exports.serializeAws_restJson1ListPrincipalsCommand = exports.serializeAws_restJson1ListPermissionVersionsCommand = exports.serializeAws_restJson1ListPermissionsCommand = exports.serializeAws_restJson1ListPendingInvitationResourcesCommand = exports.serializeAws_restJson1GetResourceSharesCommand = exports.serializeAws_restJson1GetResourceShareInvitationsCommand = exports.serializeAws_restJson1GetResourceShareAssociationsCommand = exports.serializeAws_restJson1GetResourcePoliciesCommand = exports.serializeAws_restJson1GetPermissionCommand = exports.serializeAws_restJson1EnableSharingWithAwsOrganizationCommand = exports.serializeAws_restJson1DisassociateResourceSharePermissionCommand = exports.serializeAws_restJson1DisassociateResourceShareCommand = exports.serializeAws_restJson1DeleteResourceShareCommand = exports.serializeAws_restJson1CreateResourceShareCommand = exports.serializeAws_restJson1AssociateResourceSharePermissionCommand = exports.serializeAws_restJson1AssociateResourceShareCommand = exports.serializeAws_restJson1AcceptResourceShareInvitationCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const serializeAws_restJson1AcceptResourceShareInvitationCommand = async (input, context) => {
|
|
@@ -411,6 +411,29 @@ const serializeAws_restJson1ListPermissionsCommand = async (input, context) => {
|
|
|
411
411
|
});
|
|
412
412
|
};
|
|
413
413
|
exports.serializeAws_restJson1ListPermissionsCommand = serializeAws_restJson1ListPermissionsCommand;
|
|
414
|
+
const serializeAws_restJson1ListPermissionVersionsCommand = async (input, context) => {
|
|
415
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
416
|
+
const headers = {
|
|
417
|
+
"content-type": "application/json",
|
|
418
|
+
};
|
|
419
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listpermissionversions";
|
|
420
|
+
let body;
|
|
421
|
+
body = JSON.stringify({
|
|
422
|
+
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
423
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
424
|
+
...(input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn }),
|
|
425
|
+
});
|
|
426
|
+
return new protocol_http_1.HttpRequest({
|
|
427
|
+
protocol,
|
|
428
|
+
hostname,
|
|
429
|
+
port,
|
|
430
|
+
method: "POST",
|
|
431
|
+
headers,
|
|
432
|
+
path: resolvedPath,
|
|
433
|
+
body,
|
|
434
|
+
});
|
|
435
|
+
};
|
|
436
|
+
exports.serializeAws_restJson1ListPermissionVersionsCommand = serializeAws_restJson1ListPermissionVersionsCommand;
|
|
414
437
|
const serializeAws_restJson1ListPrincipalsCommand = async (input, context) => {
|
|
415
438
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
416
439
|
const headers = {
|
|
@@ -2224,6 +2247,106 @@ const deserializeAws_restJson1ListPermissionsCommandError = async (output, conte
|
|
|
2224
2247
|
delete response.Message;
|
|
2225
2248
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2226
2249
|
};
|
|
2250
|
+
const deserializeAws_restJson1ListPermissionVersionsCommand = async (output, context) => {
|
|
2251
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2252
|
+
return deserializeAws_restJson1ListPermissionVersionsCommandError(output, context);
|
|
2253
|
+
}
|
|
2254
|
+
const contents = {
|
|
2255
|
+
$metadata: deserializeMetadata(output),
|
|
2256
|
+
nextToken: undefined,
|
|
2257
|
+
permissions: undefined,
|
|
2258
|
+
};
|
|
2259
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2260
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2261
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2262
|
+
}
|
|
2263
|
+
if (data.permissions !== undefined && data.permissions !== null) {
|
|
2264
|
+
contents.permissions = deserializeAws_restJson1ResourceSharePermissionList(data.permissions, context);
|
|
2265
|
+
}
|
|
2266
|
+
return Promise.resolve(contents);
|
|
2267
|
+
};
|
|
2268
|
+
exports.deserializeAws_restJson1ListPermissionVersionsCommand = deserializeAws_restJson1ListPermissionVersionsCommand;
|
|
2269
|
+
const deserializeAws_restJson1ListPermissionVersionsCommandError = async (output, context) => {
|
|
2270
|
+
const parsedOutput = {
|
|
2271
|
+
...output,
|
|
2272
|
+
body: await parseBody(output.body, context),
|
|
2273
|
+
};
|
|
2274
|
+
let response;
|
|
2275
|
+
let errorCode = "UnknownError";
|
|
2276
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2277
|
+
switch (errorCode) {
|
|
2278
|
+
case "InvalidNextTokenException":
|
|
2279
|
+
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2280
|
+
response = {
|
|
2281
|
+
...(await deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2282
|
+
name: errorCode,
|
|
2283
|
+
$metadata: deserializeMetadata(output),
|
|
2284
|
+
};
|
|
2285
|
+
break;
|
|
2286
|
+
case "InvalidParameterException":
|
|
2287
|
+
case "com.amazonaws.ram#InvalidParameterException":
|
|
2288
|
+
response = {
|
|
2289
|
+
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2290
|
+
name: errorCode,
|
|
2291
|
+
$metadata: deserializeMetadata(output),
|
|
2292
|
+
};
|
|
2293
|
+
break;
|
|
2294
|
+
case "MalformedArnException":
|
|
2295
|
+
case "com.amazonaws.ram#MalformedArnException":
|
|
2296
|
+
response = {
|
|
2297
|
+
...(await deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)),
|
|
2298
|
+
name: errorCode,
|
|
2299
|
+
$metadata: deserializeMetadata(output),
|
|
2300
|
+
};
|
|
2301
|
+
break;
|
|
2302
|
+
case "OperationNotPermittedException":
|
|
2303
|
+
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
2304
|
+
response = {
|
|
2305
|
+
...(await deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2306
|
+
name: errorCode,
|
|
2307
|
+
$metadata: deserializeMetadata(output),
|
|
2308
|
+
};
|
|
2309
|
+
break;
|
|
2310
|
+
case "ServerInternalException":
|
|
2311
|
+
case "com.amazonaws.ram#ServerInternalException":
|
|
2312
|
+
response = {
|
|
2313
|
+
...(await deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
2314
|
+
name: errorCode,
|
|
2315
|
+
$metadata: deserializeMetadata(output),
|
|
2316
|
+
};
|
|
2317
|
+
break;
|
|
2318
|
+
case "ServiceUnavailableException":
|
|
2319
|
+
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2320
|
+
response = {
|
|
2321
|
+
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2322
|
+
name: errorCode,
|
|
2323
|
+
$metadata: deserializeMetadata(output),
|
|
2324
|
+
};
|
|
2325
|
+
break;
|
|
2326
|
+
case "UnknownResourceException":
|
|
2327
|
+
case "com.amazonaws.ram#UnknownResourceException":
|
|
2328
|
+
response = {
|
|
2329
|
+
...(await deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)),
|
|
2330
|
+
name: errorCode,
|
|
2331
|
+
$metadata: deserializeMetadata(output),
|
|
2332
|
+
};
|
|
2333
|
+
break;
|
|
2334
|
+
default:
|
|
2335
|
+
const parsedBody = parsedOutput.body;
|
|
2336
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2337
|
+
response = {
|
|
2338
|
+
...parsedBody,
|
|
2339
|
+
name: `${errorCode}`,
|
|
2340
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2341
|
+
$fault: "client",
|
|
2342
|
+
$metadata: deserializeMetadata(output),
|
|
2343
|
+
};
|
|
2344
|
+
}
|
|
2345
|
+
const message = response.message || response.Message || errorCode;
|
|
2346
|
+
response.message = message;
|
|
2347
|
+
delete response.Message;
|
|
2348
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2349
|
+
};
|
|
2227
2350
|
const deserializeAws_restJson1ListPrincipalsCommand = async (output, context) => {
|
|
2228
2351
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2229
2352
|
return deserializeAws_restJson1ListPrincipalsCommandError(output, context);
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|