@aws-sdk/client-ram 3.43.0 → 3.47.1
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 +47 -0
- package/README.md +5 -6
- package/dist-cjs/endpoints.js +1 -20
- package/dist-cjs/models/models_0.js +13 -128
- package/dist-cjs/protocols/Aws_restJson1.js +29 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -20
- package/dist-es/models/models_0.js +11 -84
- package/dist-es/protocols/Aws_restJson1.js +65 -36
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/RAM.d.ts +55 -41
- package/dist-types/RAMClient.d.ts +10 -7
- package/dist-types/commands/AcceptResourceShareInvitationCommand.d.ts +3 -1
- package/dist-types/commands/AssociateResourceShareCommand.d.ts +3 -1
- package/dist-types/commands/AssociateResourceSharePermissionCommand.d.ts +4 -1
- package/dist-types/commands/CreateResourceShareCommand.d.ts +3 -3
- package/dist-types/commands/DeleteResourceShareCommand.d.ts +3 -1
- package/dist-types/commands/DisassociateResourceSharePermissionCommand.d.ts +3 -1
- package/dist-types/commands/EnableSharingWithAwsOrganizationCommand.d.ts +9 -2
- package/dist-types/commands/GetResourcePoliciesCommand.d.ts +2 -1
- package/dist-types/commands/GetResourceShareAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/GetResourceShareInvitationsCommand.d.ts +1 -1
- package/dist-types/commands/GetResourceSharesCommand.d.ts +1 -1
- package/dist-types/commands/ListPendingInvitationResourcesCommand.d.ts +3 -2
- package/dist-types/commands/ListPermissionsCommand.d.ts +2 -1
- package/dist-types/commands/ListPrincipalsCommand.d.ts +1 -1
- package/dist-types/commands/ListResourceTypesCommand.d.ts +1 -1
- package/dist-types/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +6 -13
- package/dist-types/commands/TagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateResourceShareCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +841 -388
- 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/RAMClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +24 -83
- 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 +39 -46
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
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.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-ram
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
36
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Features
|
|
46
|
+
|
|
47
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
54
|
|
|
8
55
|
**Note:** Version bump only for package @aws-sdk/client-ram
|
package/README.md
CHANGED
|
@@ -9,14 +9,13 @@ AWS SDK for JavaScript RAM Client for Node.js, Browser and React Native.
|
|
|
9
9
|
|
|
10
10
|
<p>This is the <i>Resource Access Manager API Reference</i>. This documentation provides
|
|
11
11
|
descriptions and syntax for each of the actions and data types in RAM. RAM is a
|
|
12
|
-
service that helps you securely share your Amazon Web Services resources across Amazon Web Services accounts
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
service that helps you securely share your Amazon Web Services resources across Amazon Web Services accounts. If you
|
|
13
|
+
have multiple Amazon Web Services accounts, you can use RAM to share those resources with other
|
|
14
|
+
accounts. If you use Organizations to manage your accounts, then you share your resources
|
|
15
|
+
with your organization or organizational units (OUs). For supported resource types, you
|
|
16
|
+
can also share resources with individual Identity and Access Management (IAM) roles an users. </p>
|
|
17
17
|
|
|
18
18
|
<p>To learn more about RAM, see the following resources:</p>
|
|
19
|
-
|
|
20
19
|
<ul>
|
|
21
20
|
<li>
|
|
22
21
|
<p>
|
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"],
|
|
@@ -93,6 +73,7 @@ const partitionHash = {
|
|
|
93
73
|
"ap-south-1",
|
|
94
74
|
"ap-southeast-1",
|
|
95
75
|
"ap-southeast-2",
|
|
76
|
+
"ap-southeast-3",
|
|
96
77
|
"ca-central-1",
|
|
97
78
|
"eu-central-1",
|
|
98
79
|
"eu-north-1",
|
|
@@ -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.ServiceNameAndResourceType = exports.ListResourceTypesRequest = exports.ListResourceSharePermissionsResponse = exports.ListResourceSharePermissionsRequest = exports.ListResourcesResponse = exports.ListResourcesRequest = exports.ListPrincipalsResponse = exports.Principal = exports.ListPrincipalsRequest = 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 = 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,30 +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 UnknownResourceException;
|
|
120
|
-
(function (UnknownResourceException) {
|
|
121
|
-
UnknownResourceException.filterSensitiveLog = (obj) => ({
|
|
122
|
-
...obj,
|
|
123
|
-
});
|
|
124
|
-
})(UnknownResourceException = exports.UnknownResourceException || (exports.UnknownResourceException = {}));
|
|
125
41
|
var AssociateResourceSharePermissionRequest;
|
|
126
42
|
(function (AssociateResourceSharePermissionRequest) {
|
|
127
43
|
AssociateResourceSharePermissionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -158,12 +74,6 @@ var CreateResourceShareResponse;
|
|
|
158
74
|
...obj,
|
|
159
75
|
});
|
|
160
76
|
})(CreateResourceShareResponse = exports.CreateResourceShareResponse || (exports.CreateResourceShareResponse = {}));
|
|
161
|
-
var TagPolicyViolationException;
|
|
162
|
-
(function (TagPolicyViolationException) {
|
|
163
|
-
TagPolicyViolationException.filterSensitiveLog = (obj) => ({
|
|
164
|
-
...obj,
|
|
165
|
-
});
|
|
166
|
-
})(TagPolicyViolationException = exports.TagPolicyViolationException || (exports.TagPolicyViolationException = {}));
|
|
167
77
|
var DeleteResourceShareRequest;
|
|
168
78
|
(function (DeleteResourceShareRequest) {
|
|
169
79
|
DeleteResourceShareRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -242,18 +152,6 @@ var GetResourcePoliciesResponse;
|
|
|
242
152
|
...obj,
|
|
243
153
|
});
|
|
244
154
|
})(GetResourcePoliciesResponse = exports.GetResourcePoliciesResponse || (exports.GetResourcePoliciesResponse = {}));
|
|
245
|
-
var InvalidNextTokenException;
|
|
246
|
-
(function (InvalidNextTokenException) {
|
|
247
|
-
InvalidNextTokenException.filterSensitiveLog = (obj) => ({
|
|
248
|
-
...obj,
|
|
249
|
-
});
|
|
250
|
-
})(InvalidNextTokenException = exports.InvalidNextTokenException || (exports.InvalidNextTokenException = {}));
|
|
251
|
-
var ResourceArnNotFoundException;
|
|
252
|
-
(function (ResourceArnNotFoundException) {
|
|
253
|
-
ResourceArnNotFoundException.filterSensitiveLog = (obj) => ({
|
|
254
|
-
...obj,
|
|
255
|
-
});
|
|
256
|
-
})(ResourceArnNotFoundException = exports.ResourceArnNotFoundException || (exports.ResourceArnNotFoundException = {}));
|
|
257
155
|
var GetResourceShareAssociationsRequest;
|
|
258
156
|
(function (GetResourceShareAssociationsRequest) {
|
|
259
157
|
GetResourceShareAssociationsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -278,12 +176,6 @@ var GetResourceShareInvitationsResponse;
|
|
|
278
176
|
...obj,
|
|
279
177
|
});
|
|
280
178
|
})(GetResourceShareInvitationsResponse = exports.GetResourceShareInvitationsResponse || (exports.GetResourceShareInvitationsResponse = {}));
|
|
281
|
-
var InvalidMaxResultsException;
|
|
282
|
-
(function (InvalidMaxResultsException) {
|
|
283
|
-
InvalidMaxResultsException.filterSensitiveLog = (obj) => ({
|
|
284
|
-
...obj,
|
|
285
|
-
});
|
|
286
|
-
})(InvalidMaxResultsException = exports.InvalidMaxResultsException || (exports.InvalidMaxResultsException = {}));
|
|
287
179
|
var ResourceOwner;
|
|
288
180
|
(function (ResourceOwner) {
|
|
289
181
|
ResourceOwner["OTHER_ACCOUNTS"] = "OTHER-ACCOUNTS";
|
|
@@ -307,12 +199,23 @@ var GetResourceSharesResponse;
|
|
|
307
199
|
...obj,
|
|
308
200
|
});
|
|
309
201
|
})(GetResourceSharesResponse = exports.GetResourceSharesResponse || (exports.GetResourceSharesResponse = {}));
|
|
202
|
+
var ResourceRegionScopeFilter;
|
|
203
|
+
(function (ResourceRegionScopeFilter) {
|
|
204
|
+
ResourceRegionScopeFilter["ALL"] = "ALL";
|
|
205
|
+
ResourceRegionScopeFilter["GLOBAL"] = "GLOBAL";
|
|
206
|
+
ResourceRegionScopeFilter["REGIONAL"] = "REGIONAL";
|
|
207
|
+
})(ResourceRegionScopeFilter = exports.ResourceRegionScopeFilter || (exports.ResourceRegionScopeFilter = {}));
|
|
310
208
|
var ListPendingInvitationResourcesRequest;
|
|
311
209
|
(function (ListPendingInvitationResourcesRequest) {
|
|
312
210
|
ListPendingInvitationResourcesRequest.filterSensitiveLog = (obj) => ({
|
|
313
211
|
...obj,
|
|
314
212
|
});
|
|
315
213
|
})(ListPendingInvitationResourcesRequest = exports.ListPendingInvitationResourcesRequest || (exports.ListPendingInvitationResourcesRequest = {}));
|
|
214
|
+
var ResourceRegionScope;
|
|
215
|
+
(function (ResourceRegionScope) {
|
|
216
|
+
ResourceRegionScope["GLOBAL"] = "GLOBAL";
|
|
217
|
+
ResourceRegionScope["REGIONAL"] = "REGIONAL";
|
|
218
|
+
})(ResourceRegionScope = exports.ResourceRegionScope || (exports.ResourceRegionScope = {}));
|
|
316
219
|
var Resource;
|
|
317
220
|
(function (Resource) {
|
|
318
221
|
Resource.filterSensitiveLog = (obj) => ({
|
|
@@ -325,12 +228,6 @@ var ListPendingInvitationResourcesResponse;
|
|
|
325
228
|
...obj,
|
|
326
229
|
});
|
|
327
230
|
})(ListPendingInvitationResourcesResponse = exports.ListPendingInvitationResourcesResponse || (exports.ListPendingInvitationResourcesResponse = {}));
|
|
328
|
-
var MissingRequiredParameterException;
|
|
329
|
-
(function (MissingRequiredParameterException) {
|
|
330
|
-
MissingRequiredParameterException.filterSensitiveLog = (obj) => ({
|
|
331
|
-
...obj,
|
|
332
|
-
});
|
|
333
|
-
})(MissingRequiredParameterException = exports.MissingRequiredParameterException || (exports.MissingRequiredParameterException = {}));
|
|
334
231
|
var ListPermissionsRequest;
|
|
335
232
|
(function (ListPermissionsRequest) {
|
|
336
233
|
ListPermissionsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -367,12 +264,6 @@ var ListPrincipalsResponse;
|
|
|
367
264
|
...obj,
|
|
368
265
|
});
|
|
369
266
|
})(ListPrincipalsResponse = exports.ListPrincipalsResponse || (exports.ListPrincipalsResponse = {}));
|
|
370
|
-
var InvalidResourceTypeException;
|
|
371
|
-
(function (InvalidResourceTypeException) {
|
|
372
|
-
InvalidResourceTypeException.filterSensitiveLog = (obj) => ({
|
|
373
|
-
...obj,
|
|
374
|
-
});
|
|
375
|
-
})(InvalidResourceTypeException = exports.InvalidResourceTypeException || (exports.InvalidResourceTypeException = {}));
|
|
376
267
|
var ListResourcesRequest;
|
|
377
268
|
(function (ListResourcesRequest) {
|
|
378
269
|
ListResourcesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -439,12 +330,6 @@ var RejectResourceShareInvitationResponse;
|
|
|
439
330
|
...obj,
|
|
440
331
|
});
|
|
441
332
|
})(RejectResourceShareInvitationResponse = exports.RejectResourceShareInvitationResponse || (exports.RejectResourceShareInvitationResponse = {}));
|
|
442
|
-
var TagLimitExceededException;
|
|
443
|
-
(function (TagLimitExceededException) {
|
|
444
|
-
TagLimitExceededException.filterSensitiveLog = (obj) => ({
|
|
445
|
-
...obj,
|
|
446
|
-
});
|
|
447
|
-
})(TagLimitExceededException = exports.TagLimitExceededException || (exports.TagLimitExceededException = {}));
|
|
448
333
|
var TagResourceRequest;
|
|
449
334
|
(function (TagResourceRequest) {
|
|
450
335
|
TagResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -372,6 +372,8 @@ const serializeAws_restJson1ListPendingInvitationResourcesCommand = async (input
|
|
|
372
372
|
body = JSON.stringify({
|
|
373
373
|
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
374
374
|
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
375
|
+
...(input.resourceRegionScope !== undefined &&
|
|
376
|
+
input.resourceRegionScope !== null && { resourceRegionScope: input.resourceRegionScope }),
|
|
375
377
|
...(input.resourceShareInvitationArn !== undefined &&
|
|
376
378
|
input.resourceShareInvitationArn !== null && { resourceShareInvitationArn: input.resourceShareInvitationArn }),
|
|
377
379
|
});
|
|
@@ -458,6 +460,8 @@ const serializeAws_restJson1ListResourcesCommand = async (input, context) => {
|
|
|
458
460
|
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
459
461
|
}),
|
|
460
462
|
...(input.resourceOwner !== undefined && input.resourceOwner !== null && { resourceOwner: input.resourceOwner }),
|
|
463
|
+
...(input.resourceRegionScope !== undefined &&
|
|
464
|
+
input.resourceRegionScope !== null && { resourceRegionScope: input.resourceRegionScope }),
|
|
461
465
|
...(input.resourceShareArns !== undefined &&
|
|
462
466
|
input.resourceShareArns !== null && {
|
|
463
467
|
resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
|
|
@@ -509,6 +513,8 @@ const serializeAws_restJson1ListResourceTypesCommand = async (input, context) =>
|
|
|
509
513
|
body = JSON.stringify({
|
|
510
514
|
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
511
515
|
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
516
|
+
...(input.resourceRegionScope !== undefined &&
|
|
517
|
+
input.resourceRegionScope !== null && { resourceRegionScope: input.resourceRegionScope }),
|
|
512
518
|
});
|
|
513
519
|
return new protocol_http_1.HttpRequest({
|
|
514
520
|
protocol,
|
|
@@ -862,6 +868,14 @@ const deserializeAws_restJson1AssociateResourceShareCommandError = async (output
|
|
|
862
868
|
$metadata: deserializeMetadata(output),
|
|
863
869
|
};
|
|
864
870
|
break;
|
|
871
|
+
case "ThrottlingException":
|
|
872
|
+
case "com.amazonaws.ram#ThrottlingException":
|
|
873
|
+
response = {
|
|
874
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
875
|
+
name: errorCode,
|
|
876
|
+
$metadata: deserializeMetadata(output),
|
|
877
|
+
};
|
|
878
|
+
break;
|
|
865
879
|
case "UnknownResourceException":
|
|
866
880
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
867
881
|
response = {
|
|
@@ -3342,6 +3356,19 @@ const deserializeAws_restJson1TagPolicyViolationExceptionResponse = async (parse
|
|
|
3342
3356
|
}
|
|
3343
3357
|
return contents;
|
|
3344
3358
|
};
|
|
3359
|
+
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
3360
|
+
const contents = {
|
|
3361
|
+
name: "ThrottlingException",
|
|
3362
|
+
$fault: "client",
|
|
3363
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3364
|
+
message: undefined,
|
|
3365
|
+
};
|
|
3366
|
+
const data = parsedOutput.body;
|
|
3367
|
+
if (data.message !== undefined && data.message !== null) {
|
|
3368
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3369
|
+
}
|
|
3370
|
+
return contents;
|
|
3371
|
+
};
|
|
3345
3372
|
const deserializeAws_restJson1UnknownResourceExceptionResponse = async (parsedOutput, context) => {
|
|
3346
3373
|
const contents = {
|
|
3347
3374
|
name: "UnknownResourceException",
|
|
@@ -3501,6 +3528,7 @@ const deserializeAws_restJson1Resource = (output, context) => {
|
|
|
3501
3528
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedTime)))
|
|
3502
3529
|
: undefined,
|
|
3503
3530
|
resourceGroupArn: smithy_client_1.expectString(output.resourceGroupArn),
|
|
3531
|
+
resourceRegionScope: smithy_client_1.expectString(output.resourceRegionScope),
|
|
3504
3532
|
resourceShareArn: smithy_client_1.expectString(output.resourceShareArn),
|
|
3505
3533
|
status: smithy_client_1.expectString(output.status),
|
|
3506
3534
|
statusMessage: smithy_client_1.expectString(output.statusMessage),
|
|
@@ -3647,6 +3675,7 @@ const deserializeAws_restJson1ResourceSharePermissionSummary = (output, context)
|
|
|
3647
3675
|
};
|
|
3648
3676
|
const deserializeAws_restJson1ServiceNameAndResourceType = (output, context) => {
|
|
3649
3677
|
return {
|
|
3678
|
+
resourceRegionScope: smithy_client_1.expectString(output.resourceRegionScope),
|
|
3650
3679
|
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
3651
3680
|
serviceName: smithy_client_1.expectString(output.serviceName),
|
|
3652
3681
|
};
|
|
@@ -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)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"ca-central-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "ram.ca-central-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "ram-fips.ca-central-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-1": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "ram.us-east-1.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "ram-fips.us-east-1.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-east-2": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "ram.us-east-2.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "ram-fips.us-east-2.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -57,10 +45,6 @@ var regionHash = {
|
|
|
57
45
|
},
|
|
58
46
|
"us-west-1": {
|
|
59
47
|
variants: [
|
|
60
|
-
{
|
|
61
|
-
hostname: "ram.us-west-1.amazonaws.com",
|
|
62
|
-
tags: [],
|
|
63
|
-
},
|
|
64
48
|
{
|
|
65
49
|
hostname: "ram-fips.us-west-1.amazonaws.com",
|
|
66
50
|
tags: ["fips"],
|
|
@@ -69,10 +53,6 @@ var regionHash = {
|
|
|
69
53
|
},
|
|
70
54
|
"us-west-2": {
|
|
71
55
|
variants: [
|
|
72
|
-
{
|
|
73
|
-
hostname: "ram.us-west-2.amazonaws.com",
|
|
74
|
-
tags: [],
|
|
75
|
-
},
|
|
76
56
|
{
|
|
77
57
|
hostname: "ram-fips.us-west-2.amazonaws.com",
|
|
78
58
|
tags: ["fips"],
|
|
@@ -91,6 +71,7 @@ var partitionHash = {
|
|
|
91
71
|
"ap-south-1",
|
|
92
72
|
"ap-southeast-1",
|
|
93
73
|
"ap-southeast-2",
|
|
74
|
+
"ap-southeast-3",
|
|
94
75
|
"ca-central-1",
|
|
95
76
|
"eu-central-1",
|
|
96
77
|
"eu-north-1",
|