@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
|
@@ -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,22 +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 UnknownResourceException;
|
|
79
|
-
(function (UnknownResourceException) {
|
|
80
|
-
UnknownResourceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
81
|
-
})(UnknownResourceException || (UnknownResourceException = {}));
|
|
82
26
|
export var AssociateResourceSharePermissionRequest;
|
|
83
27
|
(function (AssociateResourceSharePermissionRequest) {
|
|
84
28
|
AssociateResourceSharePermissionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -103,10 +47,6 @@ export var CreateResourceShareResponse;
|
|
|
103
47
|
(function (CreateResourceShareResponse) {
|
|
104
48
|
CreateResourceShareResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
105
49
|
})(CreateResourceShareResponse || (CreateResourceShareResponse = {}));
|
|
106
|
-
export var TagPolicyViolationException;
|
|
107
|
-
(function (TagPolicyViolationException) {
|
|
108
|
-
TagPolicyViolationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
109
|
-
})(TagPolicyViolationException || (TagPolicyViolationException = {}));
|
|
110
50
|
export var DeleteResourceShareRequest;
|
|
111
51
|
(function (DeleteResourceShareRequest) {
|
|
112
52
|
DeleteResourceShareRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -159,14 +99,6 @@ export var GetResourcePoliciesResponse;
|
|
|
159
99
|
(function (GetResourcePoliciesResponse) {
|
|
160
100
|
GetResourcePoliciesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
161
101
|
})(GetResourcePoliciesResponse || (GetResourcePoliciesResponse = {}));
|
|
162
|
-
export var InvalidNextTokenException;
|
|
163
|
-
(function (InvalidNextTokenException) {
|
|
164
|
-
InvalidNextTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
165
|
-
})(InvalidNextTokenException || (InvalidNextTokenException = {}));
|
|
166
|
-
export var ResourceArnNotFoundException;
|
|
167
|
-
(function (ResourceArnNotFoundException) {
|
|
168
|
-
ResourceArnNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
169
|
-
})(ResourceArnNotFoundException || (ResourceArnNotFoundException = {}));
|
|
170
102
|
export var GetResourceShareAssociationsRequest;
|
|
171
103
|
(function (GetResourceShareAssociationsRequest) {
|
|
172
104
|
GetResourceShareAssociationsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -183,10 +115,6 @@ export var GetResourceShareInvitationsResponse;
|
|
|
183
115
|
(function (GetResourceShareInvitationsResponse) {
|
|
184
116
|
GetResourceShareInvitationsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
185
117
|
})(GetResourceShareInvitationsResponse || (GetResourceShareInvitationsResponse = {}));
|
|
186
|
-
export var InvalidMaxResultsException;
|
|
187
|
-
(function (InvalidMaxResultsException) {
|
|
188
|
-
InvalidMaxResultsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
189
|
-
})(InvalidMaxResultsException || (InvalidMaxResultsException = {}));
|
|
190
118
|
export var ResourceOwner;
|
|
191
119
|
(function (ResourceOwner) {
|
|
192
120
|
ResourceOwner["OTHER_ACCOUNTS"] = "OTHER-ACCOUNTS";
|
|
@@ -204,10 +132,21 @@ export var GetResourceSharesResponse;
|
|
|
204
132
|
(function (GetResourceSharesResponse) {
|
|
205
133
|
GetResourceSharesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
206
134
|
})(GetResourceSharesResponse || (GetResourceSharesResponse = {}));
|
|
135
|
+
export var ResourceRegionScopeFilter;
|
|
136
|
+
(function (ResourceRegionScopeFilter) {
|
|
137
|
+
ResourceRegionScopeFilter["ALL"] = "ALL";
|
|
138
|
+
ResourceRegionScopeFilter["GLOBAL"] = "GLOBAL";
|
|
139
|
+
ResourceRegionScopeFilter["REGIONAL"] = "REGIONAL";
|
|
140
|
+
})(ResourceRegionScopeFilter || (ResourceRegionScopeFilter = {}));
|
|
207
141
|
export var ListPendingInvitationResourcesRequest;
|
|
208
142
|
(function (ListPendingInvitationResourcesRequest) {
|
|
209
143
|
ListPendingInvitationResourcesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
210
144
|
})(ListPendingInvitationResourcesRequest || (ListPendingInvitationResourcesRequest = {}));
|
|
145
|
+
export var ResourceRegionScope;
|
|
146
|
+
(function (ResourceRegionScope) {
|
|
147
|
+
ResourceRegionScope["GLOBAL"] = "GLOBAL";
|
|
148
|
+
ResourceRegionScope["REGIONAL"] = "REGIONAL";
|
|
149
|
+
})(ResourceRegionScope || (ResourceRegionScope = {}));
|
|
211
150
|
export var Resource;
|
|
212
151
|
(function (Resource) {
|
|
213
152
|
Resource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -216,10 +155,6 @@ export var ListPendingInvitationResourcesResponse;
|
|
|
216
155
|
(function (ListPendingInvitationResourcesResponse) {
|
|
217
156
|
ListPendingInvitationResourcesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
218
157
|
})(ListPendingInvitationResourcesResponse || (ListPendingInvitationResourcesResponse = {}));
|
|
219
|
-
export var MissingRequiredParameterException;
|
|
220
|
-
(function (MissingRequiredParameterException) {
|
|
221
|
-
MissingRequiredParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
222
|
-
})(MissingRequiredParameterException || (MissingRequiredParameterException = {}));
|
|
223
158
|
export var ListPermissionsRequest;
|
|
224
159
|
(function (ListPermissionsRequest) {
|
|
225
160
|
ListPermissionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -244,10 +179,6 @@ export var ListPrincipalsResponse;
|
|
|
244
179
|
(function (ListPrincipalsResponse) {
|
|
245
180
|
ListPrincipalsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
246
181
|
})(ListPrincipalsResponse || (ListPrincipalsResponse = {}));
|
|
247
|
-
export var InvalidResourceTypeException;
|
|
248
|
-
(function (InvalidResourceTypeException) {
|
|
249
|
-
InvalidResourceTypeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
250
|
-
})(InvalidResourceTypeException || (InvalidResourceTypeException = {}));
|
|
251
182
|
export var ListResourcesRequest;
|
|
252
183
|
(function (ListResourcesRequest) {
|
|
253
184
|
ListResourcesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -292,10 +223,6 @@ export var RejectResourceShareInvitationResponse;
|
|
|
292
223
|
(function (RejectResourceShareInvitationResponse) {
|
|
293
224
|
RejectResourceShareInvitationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
294
225
|
})(RejectResourceShareInvitationResponse || (RejectResourceShareInvitationResponse = {}));
|
|
295
|
-
export var TagLimitExceededException;
|
|
296
|
-
(function (TagLimitExceededException) {
|
|
297
|
-
TagLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
298
|
-
})(TagLimitExceededException || (TagLimitExceededException = {}));
|
|
299
226
|
export var TagResourceRequest;
|
|
300
227
|
(function (TagResourceRequest) {
|
|
301
228
|
TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -372,7 +372,8 @@ export var serializeAws_restJson1ListPendingInvitationResourcesCommand = functio
|
|
|
372
372
|
"content-type": "application/json",
|
|
373
373
|
};
|
|
374
374
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listpendinginvitationresources";
|
|
375
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.
|
|
375
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceRegionScope !== undefined &&
|
|
376
|
+
input.resourceRegionScope !== null && { resourceRegionScope: input.resourceRegionScope })), (input.resourceShareInvitationArn !== undefined &&
|
|
376
377
|
input.resourceShareInvitationArn !== null && { resourceShareInvitationArn: input.resourceShareInvitationArn })));
|
|
377
378
|
return [2, new __HttpRequest({
|
|
378
379
|
protocol: protocol,
|
|
@@ -451,10 +452,11 @@ export var serializeAws_restJson1ListResourcesCommand = function (input, context
|
|
|
451
452
|
"content-type": "application/json",
|
|
452
453
|
};
|
|
453
454
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listresources";
|
|
454
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.principal !== undefined && input.principal !== null && { principal: input.principal })), (input.resourceArns !== undefined &&
|
|
455
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.principal !== undefined && input.principal !== null && { principal: input.principal })), (input.resourceArns !== undefined &&
|
|
455
456
|
input.resourceArns !== null && {
|
|
456
457
|
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
457
|
-
})), (input.resourceOwner !== undefined && input.resourceOwner !== null && { resourceOwner: input.resourceOwner })), (input.
|
|
458
|
+
})), (input.resourceOwner !== undefined && input.resourceOwner !== null && { resourceOwner: input.resourceOwner })), (input.resourceRegionScope !== undefined &&
|
|
459
|
+
input.resourceRegionScope !== null && { resourceRegionScope: input.resourceRegionScope })), (input.resourceShareArns !== undefined &&
|
|
458
460
|
input.resourceShareArns !== null && {
|
|
459
461
|
resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
|
|
460
462
|
})), (input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType })));
|
|
@@ -506,7 +508,8 @@ export var serializeAws_restJson1ListResourceTypesCommand = function (input, con
|
|
|
506
508
|
"content-type": "application/json",
|
|
507
509
|
};
|
|
508
510
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listresourcetypes";
|
|
509
|
-
body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }))
|
|
511
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceRegionScope !== undefined &&
|
|
512
|
+
input.resourceRegionScope !== null && { resourceRegionScope: input.resourceRegionScope })));
|
|
510
513
|
return [2, new __HttpRequest({
|
|
511
514
|
protocol: protocol,
|
|
512
515
|
hostname: hostname,
|
|
@@ -812,16 +815,16 @@ export var deserializeAws_restJson1AssociateResourceShareCommand = function (out
|
|
|
812
815
|
});
|
|
813
816
|
}); };
|
|
814
817
|
var deserializeAws_restJson1AssociateResourceShareCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
815
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, parsedBody, message;
|
|
816
|
-
var
|
|
817
|
-
return __generator(this, function (
|
|
818
|
-
switch (
|
|
818
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, parsedBody, message;
|
|
819
|
+
var _p;
|
|
820
|
+
return __generator(this, function (_q) {
|
|
821
|
+
switch (_q.label) {
|
|
819
822
|
case 0:
|
|
820
823
|
_a = [__assign({}, output)];
|
|
821
|
-
|
|
824
|
+
_p = {};
|
|
822
825
|
return [4, parseBody(output.body, context)];
|
|
823
826
|
case 1:
|
|
824
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
827
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_p.body = _q.sent(), _p)]));
|
|
825
828
|
errorCode = "UnknownError";
|
|
826
829
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
830
|
_b = errorCode;
|
|
@@ -844,76 +847,84 @@ var deserializeAws_restJson1AssociateResourceShareCommandError = function (outpu
|
|
|
844
847
|
case "com.amazonaws.ram#ServerInternalException": return [3, 16];
|
|
845
848
|
case "ServiceUnavailableException": return [3, 18];
|
|
846
849
|
case "com.amazonaws.ram#ServiceUnavailableException": return [3, 18];
|
|
847
|
-
case "
|
|
848
|
-
case "com.amazonaws.ram#
|
|
850
|
+
case "ThrottlingException": return [3, 20];
|
|
851
|
+
case "com.amazonaws.ram#ThrottlingException": return [3, 20];
|
|
852
|
+
case "UnknownResourceException": return [3, 22];
|
|
853
|
+
case "com.amazonaws.ram#UnknownResourceException": return [3, 22];
|
|
849
854
|
}
|
|
850
|
-
return [3,
|
|
855
|
+
return [3, 24];
|
|
851
856
|
case 2:
|
|
852
857
|
_c = [{}];
|
|
853
858
|
return [4, deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
854
859
|
case 3:
|
|
855
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
856
|
-
return [3,
|
|
860
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
861
|
+
return [3, 25];
|
|
857
862
|
case 4:
|
|
858
863
|
_d = [{}];
|
|
859
864
|
return [4, deserializeAws_restJson1InvalidClientTokenExceptionResponse(parsedOutput, context)];
|
|
860
865
|
case 5:
|
|
861
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
862
|
-
return [3,
|
|
866
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
867
|
+
return [3, 25];
|
|
863
868
|
case 6:
|
|
864
869
|
_e = [{}];
|
|
865
870
|
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
866
871
|
case 7:
|
|
867
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
868
|
-
return [3,
|
|
872
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
873
|
+
return [3, 25];
|
|
869
874
|
case 8:
|
|
870
875
|
_f = [{}];
|
|
871
876
|
return [4, deserializeAws_restJson1InvalidStateTransitionExceptionResponse(parsedOutput, context)];
|
|
872
877
|
case 9:
|
|
873
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
874
|
-
return [3,
|
|
878
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
879
|
+
return [3, 25];
|
|
875
880
|
case 10:
|
|
876
881
|
_g = [{}];
|
|
877
882
|
return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
|
|
878
883
|
case 11:
|
|
879
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
880
|
-
return [3,
|
|
884
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
885
|
+
return [3, 25];
|
|
881
886
|
case 12:
|
|
882
887
|
_h = [{}];
|
|
883
888
|
return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
884
889
|
case 13:
|
|
885
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(
|
|
886
|
-
return [3,
|
|
890
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
891
|
+
return [3, 25];
|
|
887
892
|
case 14:
|
|
888
893
|
_j = [{}];
|
|
889
894
|
return [4, deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse(parsedOutput, context)];
|
|
890
895
|
case 15:
|
|
891
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(
|
|
892
|
-
return [3,
|
|
896
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
897
|
+
return [3, 25];
|
|
893
898
|
case 16:
|
|
894
899
|
_k = [{}];
|
|
895
900
|
return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
|
|
896
901
|
case 17:
|
|
897
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(
|
|
898
|
-
return [3,
|
|
902
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
903
|
+
return [3, 25];
|
|
899
904
|
case 18:
|
|
900
905
|
_l = [{}];
|
|
901
906
|
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
902
907
|
case 19:
|
|
903
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(
|
|
904
|
-
return [3,
|
|
908
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
909
|
+
return [3, 25];
|
|
905
910
|
case 20:
|
|
906
911
|
_m = [{}];
|
|
907
|
-
return [4,
|
|
912
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
908
913
|
case 21:
|
|
909
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(
|
|
910
|
-
return [3,
|
|
914
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
915
|
+
return [3, 25];
|
|
911
916
|
case 22:
|
|
917
|
+
_o = [{}];
|
|
918
|
+
return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
|
|
919
|
+
case 23:
|
|
920
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_q.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
921
|
+
return [3, 25];
|
|
922
|
+
case 24:
|
|
912
923
|
parsedBody = parsedOutput.body;
|
|
913
924
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
914
925
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
915
|
-
|
|
916
|
-
case
|
|
926
|
+
_q.label = 25;
|
|
927
|
+
case 25:
|
|
917
928
|
message = response.message || response.Message || errorCode;
|
|
918
929
|
response.message = message;
|
|
919
930
|
delete response.Message;
|
|
@@ -3741,6 +3752,22 @@ var deserializeAws_restJson1TagPolicyViolationExceptionResponse = function (pars
|
|
|
3741
3752
|
return [2, contents];
|
|
3742
3753
|
});
|
|
3743
3754
|
}); };
|
|
3755
|
+
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3756
|
+
var contents, data;
|
|
3757
|
+
return __generator(this, function (_a) {
|
|
3758
|
+
contents = {
|
|
3759
|
+
name: "ThrottlingException",
|
|
3760
|
+
$fault: "client",
|
|
3761
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3762
|
+
message: undefined,
|
|
3763
|
+
};
|
|
3764
|
+
data = parsedOutput.body;
|
|
3765
|
+
if (data.message !== undefined && data.message !== null) {
|
|
3766
|
+
contents.message = __expectString(data.message);
|
|
3767
|
+
}
|
|
3768
|
+
return [2, contents];
|
|
3769
|
+
});
|
|
3770
|
+
}); };
|
|
3744
3771
|
var deserializeAws_restJson1UnknownResourceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3745
3772
|
var contents, data;
|
|
3746
3773
|
return __generator(this, function (_a) {
|
|
@@ -3897,6 +3924,7 @@ var deserializeAws_restJson1Resource = function (output, context) {
|
|
|
3897
3924
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
|
|
3898
3925
|
: undefined,
|
|
3899
3926
|
resourceGroupArn: __expectString(output.resourceGroupArn),
|
|
3927
|
+
resourceRegionScope: __expectString(output.resourceRegionScope),
|
|
3900
3928
|
resourceShareArn: __expectString(output.resourceShareArn),
|
|
3901
3929
|
status: __expectString(output.status),
|
|
3902
3930
|
statusMessage: __expectString(output.statusMessage),
|
|
@@ -4043,6 +4071,7 @@ var deserializeAws_restJson1ResourceSharePermissionSummary = function (output, c
|
|
|
4043
4071
|
};
|
|
4044
4072
|
var deserializeAws_restJson1ServiceNameAndResourceType = function (output, context) {
|
|
4045
4073
|
return {
|
|
4074
|
+
resourceRegionScope: __expectString(output.resourceRegionScope),
|
|
4046
4075
|
resourceType: __expectString(output.resourceType),
|
|
4047
4076
|
serviceName: __expectString(output.serviceName),
|
|
4048
4077
|
};
|
|
@@ -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,21 +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 {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
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 });
|
|
21
28
|
};
|