@aws-sdk/client-ram 3.46.0 → 3.47.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 +11 -0
- package/dist-cjs/endpoints.js +0 -20
- package/dist-cjs/models/models_0.js +2 -134
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/endpoints.js +0 -20
- package/dist-es/models/models_0.js +0 -88
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/RAMClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -132
- 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 +0 -88
- 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 +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
18
|
|
|
8
19
|
|
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.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,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) => ({
|
|
@@ -384,12 +264,6 @@ var ListPrincipalsResponse;
|
|
|
384
264
|
...obj,
|
|
385
265
|
});
|
|
386
266
|
})(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
267
|
var ListResourcesRequest;
|
|
394
268
|
(function (ListResourcesRequest) {
|
|
395
269
|
ListResourcesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -456,12 +330,6 @@ var RejectResourceShareInvitationResponse;
|
|
|
456
330
|
...obj,
|
|
457
331
|
});
|
|
458
332
|
})(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
333
|
var TagResourceRequest;
|
|
466
334
|
(function (TagResourceRequest) {
|
|
467
335
|
TagResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -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)),
|
|
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
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
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
20
|
const getRuntimeConfig = (config) => {
|
|
19
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
25
|
return {
|
|
22
26
|
...clientSharedValues,
|
|
23
27
|
...config,
|
|
24
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
25
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
29
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 }),
|
|
30
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),
|
|
31
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),
|
|
32
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
33
|
-
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
|
+
}),
|
|
34
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
35
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
36
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"],
|
|
@@ -15,46 +15,6 @@ export var AcceptResourceShareInvitationResponse;
|
|
|
15
15
|
(function (AcceptResourceShareInvitationResponse) {
|
|
16
16
|
AcceptResourceShareInvitationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
17
|
})(AcceptResourceShareInvitationResponse || (AcceptResourceShareInvitationResponse = {}));
|
|
18
|
-
export var IdempotentParameterMismatchException;
|
|
19
|
-
(function (IdempotentParameterMismatchException) {
|
|
20
|
-
IdempotentParameterMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
21
|
-
})(IdempotentParameterMismatchException || (IdempotentParameterMismatchException = {}));
|
|
22
|
-
export var InvalidClientTokenException;
|
|
23
|
-
(function (InvalidClientTokenException) {
|
|
24
|
-
InvalidClientTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
25
|
-
})(InvalidClientTokenException || (InvalidClientTokenException = {}));
|
|
26
|
-
export var MalformedArnException;
|
|
27
|
-
(function (MalformedArnException) {
|
|
28
|
-
MalformedArnException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
|
-
})(MalformedArnException || (MalformedArnException = {}));
|
|
30
|
-
export var OperationNotPermittedException;
|
|
31
|
-
(function (OperationNotPermittedException) {
|
|
32
|
-
OperationNotPermittedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
33
|
-
})(OperationNotPermittedException || (OperationNotPermittedException = {}));
|
|
34
|
-
export var ResourceShareInvitationAlreadyAcceptedException;
|
|
35
|
-
(function (ResourceShareInvitationAlreadyAcceptedException) {
|
|
36
|
-
ResourceShareInvitationAlreadyAcceptedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
37
|
-
})(ResourceShareInvitationAlreadyAcceptedException || (ResourceShareInvitationAlreadyAcceptedException = {}));
|
|
38
|
-
export var ResourceShareInvitationAlreadyRejectedException;
|
|
39
|
-
(function (ResourceShareInvitationAlreadyRejectedException) {
|
|
40
|
-
ResourceShareInvitationAlreadyRejectedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
41
|
-
})(ResourceShareInvitationAlreadyRejectedException || (ResourceShareInvitationAlreadyRejectedException = {}));
|
|
42
|
-
export var ResourceShareInvitationArnNotFoundException;
|
|
43
|
-
(function (ResourceShareInvitationArnNotFoundException) {
|
|
44
|
-
ResourceShareInvitationArnNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
45
|
-
})(ResourceShareInvitationArnNotFoundException || (ResourceShareInvitationArnNotFoundException = {}));
|
|
46
|
-
export var ResourceShareInvitationExpiredException;
|
|
47
|
-
(function (ResourceShareInvitationExpiredException) {
|
|
48
|
-
ResourceShareInvitationExpiredException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
49
|
-
})(ResourceShareInvitationExpiredException || (ResourceShareInvitationExpiredException = {}));
|
|
50
|
-
export var ServerInternalException;
|
|
51
|
-
(function (ServerInternalException) {
|
|
52
|
-
ServerInternalException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
53
|
-
})(ServerInternalException || (ServerInternalException = {}));
|
|
54
|
-
export var ServiceUnavailableException;
|
|
55
|
-
(function (ServiceUnavailableException) {
|
|
56
|
-
ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
57
|
-
})(ServiceUnavailableException || (ServiceUnavailableException = {}));
|
|
58
18
|
export var AssociateResourceShareRequest;
|
|
59
19
|
(function (AssociateResourceShareRequest) {
|
|
60
20
|
AssociateResourceShareRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -63,26 +23,6 @@ export var AssociateResourceShareResponse;
|
|
|
63
23
|
(function (AssociateResourceShareResponse) {
|
|
64
24
|
AssociateResourceShareResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
65
25
|
})(AssociateResourceShareResponse || (AssociateResourceShareResponse = {}));
|
|
66
|
-
export var InvalidParameterException;
|
|
67
|
-
(function (InvalidParameterException) {
|
|
68
|
-
InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
69
|
-
})(InvalidParameterException || (InvalidParameterException = {}));
|
|
70
|
-
export var InvalidStateTransitionException;
|
|
71
|
-
(function (InvalidStateTransitionException) {
|
|
72
|
-
InvalidStateTransitionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
73
|
-
})(InvalidStateTransitionException || (InvalidStateTransitionException = {}));
|
|
74
|
-
export var ResourceShareLimitExceededException;
|
|
75
|
-
(function (ResourceShareLimitExceededException) {
|
|
76
|
-
ResourceShareLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
77
|
-
})(ResourceShareLimitExceededException || (ResourceShareLimitExceededException = {}));
|
|
78
|
-
export var ThrottlingException;
|
|
79
|
-
(function (ThrottlingException) {
|
|
80
|
-
ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
81
|
-
})(ThrottlingException || (ThrottlingException = {}));
|
|
82
|
-
export var UnknownResourceException;
|
|
83
|
-
(function (UnknownResourceException) {
|
|
84
|
-
UnknownResourceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
85
|
-
})(UnknownResourceException || (UnknownResourceException = {}));
|
|
86
26
|
export var AssociateResourceSharePermissionRequest;
|
|
87
27
|
(function (AssociateResourceSharePermissionRequest) {
|
|
88
28
|
AssociateResourceSharePermissionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -107,10 +47,6 @@ export var CreateResourceShareResponse;
|
|
|
107
47
|
(function (CreateResourceShareResponse) {
|
|
108
48
|
CreateResourceShareResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
109
49
|
})(CreateResourceShareResponse || (CreateResourceShareResponse = {}));
|
|
110
|
-
export var TagPolicyViolationException;
|
|
111
|
-
(function (TagPolicyViolationException) {
|
|
112
|
-
TagPolicyViolationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
113
|
-
})(TagPolicyViolationException || (TagPolicyViolationException = {}));
|
|
114
50
|
export var DeleteResourceShareRequest;
|
|
115
51
|
(function (DeleteResourceShareRequest) {
|
|
116
52
|
DeleteResourceShareRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -163,14 +99,6 @@ export var GetResourcePoliciesResponse;
|
|
|
163
99
|
(function (GetResourcePoliciesResponse) {
|
|
164
100
|
GetResourcePoliciesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
165
101
|
})(GetResourcePoliciesResponse || (GetResourcePoliciesResponse = {}));
|
|
166
|
-
export var InvalidNextTokenException;
|
|
167
|
-
(function (InvalidNextTokenException) {
|
|
168
|
-
InvalidNextTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
169
|
-
})(InvalidNextTokenException || (InvalidNextTokenException = {}));
|
|
170
|
-
export var ResourceArnNotFoundException;
|
|
171
|
-
(function (ResourceArnNotFoundException) {
|
|
172
|
-
ResourceArnNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
173
|
-
})(ResourceArnNotFoundException || (ResourceArnNotFoundException = {}));
|
|
174
102
|
export var GetResourceShareAssociationsRequest;
|
|
175
103
|
(function (GetResourceShareAssociationsRequest) {
|
|
176
104
|
GetResourceShareAssociationsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -187,10 +115,6 @@ export var GetResourceShareInvitationsResponse;
|
|
|
187
115
|
(function (GetResourceShareInvitationsResponse) {
|
|
188
116
|
GetResourceShareInvitationsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
189
117
|
})(GetResourceShareInvitationsResponse || (GetResourceShareInvitationsResponse = {}));
|
|
190
|
-
export var InvalidMaxResultsException;
|
|
191
|
-
(function (InvalidMaxResultsException) {
|
|
192
|
-
InvalidMaxResultsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
193
|
-
})(InvalidMaxResultsException || (InvalidMaxResultsException = {}));
|
|
194
118
|
export var ResourceOwner;
|
|
195
119
|
(function (ResourceOwner) {
|
|
196
120
|
ResourceOwner["OTHER_ACCOUNTS"] = "OTHER-ACCOUNTS";
|
|
@@ -231,10 +155,6 @@ export var ListPendingInvitationResourcesResponse;
|
|
|
231
155
|
(function (ListPendingInvitationResourcesResponse) {
|
|
232
156
|
ListPendingInvitationResourcesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
233
157
|
})(ListPendingInvitationResourcesResponse || (ListPendingInvitationResourcesResponse = {}));
|
|
234
|
-
export var MissingRequiredParameterException;
|
|
235
|
-
(function (MissingRequiredParameterException) {
|
|
236
|
-
MissingRequiredParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
237
|
-
})(MissingRequiredParameterException || (MissingRequiredParameterException = {}));
|
|
238
158
|
export var ListPermissionsRequest;
|
|
239
159
|
(function (ListPermissionsRequest) {
|
|
240
160
|
ListPermissionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -259,10 +179,6 @@ export var ListPrincipalsResponse;
|
|
|
259
179
|
(function (ListPrincipalsResponse) {
|
|
260
180
|
ListPrincipalsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
261
181
|
})(ListPrincipalsResponse || (ListPrincipalsResponse = {}));
|
|
262
|
-
export var InvalidResourceTypeException;
|
|
263
|
-
(function (InvalidResourceTypeException) {
|
|
264
|
-
InvalidResourceTypeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
265
|
-
})(InvalidResourceTypeException || (InvalidResourceTypeException = {}));
|
|
266
182
|
export var ListResourcesRequest;
|
|
267
183
|
(function (ListResourcesRequest) {
|
|
268
184
|
ListResourcesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -307,10 +223,6 @@ export var RejectResourceShareInvitationResponse;
|
|
|
307
223
|
(function (RejectResourceShareInvitationResponse) {
|
|
308
224
|
RejectResourceShareInvitationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
309
225
|
})(RejectResourceShareInvitationResponse || (RejectResourceShareInvitationResponse = {}));
|
|
310
|
-
export var TagLimitExceededException;
|
|
311
|
-
(function (TagLimitExceededException) {
|
|
312
|
-
TagLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
313
|
-
})(TagLimitExceededException || (TagLimitExceededException = {}));
|
|
314
226
|
export var TagResourceRequest;
|
|
315
227
|
(function (TagResourceRequest) {
|
|
316
228
|
TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
17
|
export var getRuntimeConfig = function (config) {
|
|
16
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
17
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
19
28
|
};
|