@aws-sdk/client-memorydb 3.42.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.
@@ -7,18 +7,6 @@ export var ACL;
7
7
  (function (ACL) {
8
8
  ACL.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
9
9
  })(ACL || (ACL = {}));
10
- export var ACLAlreadyExistsFault;
11
- (function (ACLAlreadyExistsFault) {
12
- ACLAlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
13
- })(ACLAlreadyExistsFault || (ACLAlreadyExistsFault = {}));
14
- export var ACLNotFoundFault;
15
- (function (ACLNotFoundFault) {
16
- ACLNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
- })(ACLNotFoundFault || (ACLNotFoundFault = {}));
18
- export var ACLQuotaExceededFault;
19
- (function (ACLQuotaExceededFault) {
20
- ACLQuotaExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
21
- })(ACLQuotaExceededFault || (ACLQuotaExceededFault = {}));
22
10
  export var ACLsUpdateStatus;
23
11
  (function (ACLsUpdateStatus) {
24
12
  ACLsUpdateStatus.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -87,14 +75,6 @@ export var BatchUpdateClusterResponse;
87
75
  (function (BatchUpdateClusterResponse) {
88
76
  BatchUpdateClusterResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
89
77
  })(BatchUpdateClusterResponse || (BatchUpdateClusterResponse = {}));
90
- export var InvalidParameterValueException;
91
- (function (InvalidParameterValueException) {
92
- InvalidParameterValueException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
93
- })(InvalidParameterValueException || (InvalidParameterValueException = {}));
94
- export var ServiceUpdateNotFoundFault;
95
- (function (ServiceUpdateNotFoundFault) {
96
- ServiceUpdateNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
97
- })(ServiceUpdateNotFoundFault || (ServiceUpdateNotFoundFault = {}));
98
78
  export var Tag;
99
79
  (function (Tag) {
100
80
  Tag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -123,34 +103,6 @@ export var CopySnapshotResponse;
123
103
  (function (CopySnapshotResponse) {
124
104
  CopySnapshotResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
125
105
  })(CopySnapshotResponse || (CopySnapshotResponse = {}));
126
- export var InvalidParameterCombinationException;
127
- (function (InvalidParameterCombinationException) {
128
- InvalidParameterCombinationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
129
- })(InvalidParameterCombinationException || (InvalidParameterCombinationException = {}));
130
- export var InvalidSnapshotStateFault;
131
- (function (InvalidSnapshotStateFault) {
132
- InvalidSnapshotStateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
133
- })(InvalidSnapshotStateFault || (InvalidSnapshotStateFault = {}));
134
- export var ServiceLinkedRoleNotFoundFault;
135
- (function (ServiceLinkedRoleNotFoundFault) {
136
- ServiceLinkedRoleNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
137
- })(ServiceLinkedRoleNotFoundFault || (ServiceLinkedRoleNotFoundFault = {}));
138
- export var SnapshotAlreadyExistsFault;
139
- (function (SnapshotAlreadyExistsFault) {
140
- SnapshotAlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
141
- })(SnapshotAlreadyExistsFault || (SnapshotAlreadyExistsFault = {}));
142
- export var SnapshotNotFoundFault;
143
- (function (SnapshotNotFoundFault) {
144
- SnapshotNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
145
- })(SnapshotNotFoundFault || (SnapshotNotFoundFault = {}));
146
- export var SnapshotQuotaExceededFault;
147
- (function (SnapshotQuotaExceededFault) {
148
- SnapshotQuotaExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
149
- })(SnapshotQuotaExceededFault || (SnapshotQuotaExceededFault = {}));
150
- export var TagQuotaPerResourceExceeded;
151
- (function (TagQuotaPerResourceExceeded) {
152
- TagQuotaPerResourceExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
153
- })(TagQuotaPerResourceExceeded || (TagQuotaPerResourceExceeded = {}));
154
106
  export var CreateACLRequest;
155
107
  (function (CreateACLRequest) {
156
108
  CreateACLRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -159,26 +111,6 @@ export var CreateACLResponse;
159
111
  (function (CreateACLResponse) {
160
112
  CreateACLResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
161
113
  })(CreateACLResponse || (CreateACLResponse = {}));
162
- export var DefaultUserRequired;
163
- (function (DefaultUserRequired) {
164
- DefaultUserRequired.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
165
- })(DefaultUserRequired || (DefaultUserRequired = {}));
166
- export var DuplicateUserNameFault;
167
- (function (DuplicateUserNameFault) {
168
- DuplicateUserNameFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
169
- })(DuplicateUserNameFault || (DuplicateUserNameFault = {}));
170
- export var UserNotFoundFault;
171
- (function (UserNotFoundFault) {
172
- UserNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
173
- })(UserNotFoundFault || (UserNotFoundFault = {}));
174
- export var ClusterAlreadyExistsFault;
175
- (function (ClusterAlreadyExistsFault) {
176
- ClusterAlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
- })(ClusterAlreadyExistsFault || (ClusterAlreadyExistsFault = {}));
178
- export var ClusterQuotaForCustomerExceededFault;
179
- (function (ClusterQuotaForCustomerExceededFault) {
180
- ClusterQuotaForCustomerExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
181
- })(ClusterQuotaForCustomerExceededFault || (ClusterQuotaForCustomerExceededFault = {}));
182
114
  export var CreateClusterRequest;
183
115
  (function (CreateClusterRequest) {
184
116
  CreateClusterRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -187,42 +119,6 @@ export var CreateClusterResponse;
187
119
  (function (CreateClusterResponse) {
188
120
  CreateClusterResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
189
121
  })(CreateClusterResponse || (CreateClusterResponse = {}));
190
- export var InsufficientClusterCapacityFault;
191
- (function (InsufficientClusterCapacityFault) {
192
- InsufficientClusterCapacityFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
193
- })(InsufficientClusterCapacityFault || (InsufficientClusterCapacityFault = {}));
194
- export var InvalidACLStateFault;
195
- (function (InvalidACLStateFault) {
196
- InvalidACLStateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
197
- })(InvalidACLStateFault || (InvalidACLStateFault = {}));
198
- export var InvalidCredentialsException;
199
- (function (InvalidCredentialsException) {
200
- InvalidCredentialsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
201
- })(InvalidCredentialsException || (InvalidCredentialsException = {}));
202
- export var InvalidVPCNetworkStateFault;
203
- (function (InvalidVPCNetworkStateFault) {
204
- InvalidVPCNetworkStateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
205
- })(InvalidVPCNetworkStateFault || (InvalidVPCNetworkStateFault = {}));
206
- export var NodeQuotaForClusterExceededFault;
207
- (function (NodeQuotaForClusterExceededFault) {
208
- NodeQuotaForClusterExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
209
- })(NodeQuotaForClusterExceededFault || (NodeQuotaForClusterExceededFault = {}));
210
- export var NodeQuotaForCustomerExceededFault;
211
- (function (NodeQuotaForCustomerExceededFault) {
212
- NodeQuotaForCustomerExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
213
- })(NodeQuotaForCustomerExceededFault || (NodeQuotaForCustomerExceededFault = {}));
214
- export var ParameterGroupNotFoundFault;
215
- (function (ParameterGroupNotFoundFault) {
216
- ParameterGroupNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
217
- })(ParameterGroupNotFoundFault || (ParameterGroupNotFoundFault = {}));
218
- export var ShardsPerClusterQuotaExceededFault;
219
- (function (ShardsPerClusterQuotaExceededFault) {
220
- ShardsPerClusterQuotaExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
221
- })(ShardsPerClusterQuotaExceededFault || (ShardsPerClusterQuotaExceededFault = {}));
222
- export var SubnetGroupNotFoundFault;
223
- (function (SubnetGroupNotFoundFault) {
224
- SubnetGroupNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
225
- })(SubnetGroupNotFoundFault || (SubnetGroupNotFoundFault = {}));
226
122
  export var CreateParameterGroupRequest;
227
123
  (function (CreateParameterGroupRequest) {
228
124
  CreateParameterGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -235,22 +131,6 @@ export var CreateParameterGroupResponse;
235
131
  (function (CreateParameterGroupResponse) {
236
132
  CreateParameterGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
237
133
  })(CreateParameterGroupResponse || (CreateParameterGroupResponse = {}));
238
- export var InvalidParameterGroupStateFault;
239
- (function (InvalidParameterGroupStateFault) {
240
- InvalidParameterGroupStateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
241
- })(InvalidParameterGroupStateFault || (InvalidParameterGroupStateFault = {}));
242
- export var ParameterGroupAlreadyExistsFault;
243
- (function (ParameterGroupAlreadyExistsFault) {
244
- ParameterGroupAlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
245
- })(ParameterGroupAlreadyExistsFault || (ParameterGroupAlreadyExistsFault = {}));
246
- export var ParameterGroupQuotaExceededFault;
247
- (function (ParameterGroupQuotaExceededFault) {
248
- ParameterGroupQuotaExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
249
- })(ParameterGroupQuotaExceededFault || (ParameterGroupQuotaExceededFault = {}));
250
- export var ClusterNotFoundFault;
251
- (function (ClusterNotFoundFault) {
252
- ClusterNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
253
- })(ClusterNotFoundFault || (ClusterNotFoundFault = {}));
254
134
  export var CreateSnapshotRequest;
255
135
  (function (CreateSnapshotRequest) {
256
136
  CreateSnapshotRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -259,10 +139,6 @@ export var CreateSnapshotResponse;
259
139
  (function (CreateSnapshotResponse) {
260
140
  CreateSnapshotResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
261
141
  })(CreateSnapshotResponse || (CreateSnapshotResponse = {}));
262
- export var InvalidClusterStateFault;
263
- (function (InvalidClusterStateFault) {
264
- InvalidClusterStateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
265
- })(InvalidClusterStateFault || (InvalidClusterStateFault = {}));
266
142
  export var CreateSubnetGroupRequest;
267
143
  (function (CreateSubnetGroupRequest) {
268
144
  CreateSubnetGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -283,26 +159,6 @@ export var CreateSubnetGroupResponse;
283
159
  (function (CreateSubnetGroupResponse) {
284
160
  CreateSubnetGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
285
161
  })(CreateSubnetGroupResponse || (CreateSubnetGroupResponse = {}));
286
- export var InvalidSubnet;
287
- (function (InvalidSubnet) {
288
- InvalidSubnet.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
289
- })(InvalidSubnet || (InvalidSubnet = {}));
290
- export var SubnetGroupAlreadyExistsFault;
291
- (function (SubnetGroupAlreadyExistsFault) {
292
- SubnetGroupAlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
293
- })(SubnetGroupAlreadyExistsFault || (SubnetGroupAlreadyExistsFault = {}));
294
- export var SubnetGroupQuotaExceededFault;
295
- (function (SubnetGroupQuotaExceededFault) {
296
- SubnetGroupQuotaExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
297
- })(SubnetGroupQuotaExceededFault || (SubnetGroupQuotaExceededFault = {}));
298
- export var SubnetNotAllowedFault;
299
- (function (SubnetNotAllowedFault) {
300
- SubnetNotAllowedFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
301
- })(SubnetNotAllowedFault || (SubnetNotAllowedFault = {}));
302
- export var SubnetQuotaExceededFault;
303
- (function (SubnetQuotaExceededFault) {
304
- SubnetQuotaExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
305
- })(SubnetQuotaExceededFault || (SubnetQuotaExceededFault = {}));
306
162
  export var InputAuthenticationType;
307
163
  (function (InputAuthenticationType) {
308
164
  InputAuthenticationType["PASSWORD"] = "password";
@@ -332,14 +188,6 @@ export var CreateUserResponse;
332
188
  (function (CreateUserResponse) {
333
189
  CreateUserResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
334
190
  })(CreateUserResponse || (CreateUserResponse = {}));
335
- export var UserAlreadyExistsFault;
336
- (function (UserAlreadyExistsFault) {
337
- UserAlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
338
- })(UserAlreadyExistsFault || (UserAlreadyExistsFault = {}));
339
- export var UserQuotaExceededFault;
340
- (function (UserQuotaExceededFault) {
341
- UserQuotaExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
342
- })(UserQuotaExceededFault || (UserQuotaExceededFault = {}));
343
191
  export var DeleteACLRequest;
344
192
  (function (DeleteACLRequest) {
345
193
  DeleteACLRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -380,10 +228,6 @@ export var DeleteSubnetGroupResponse;
380
228
  (function (DeleteSubnetGroupResponse) {
381
229
  DeleteSubnetGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
382
230
  })(DeleteSubnetGroupResponse || (DeleteSubnetGroupResponse = {}));
383
- export var SubnetGroupInUseFault;
384
- (function (SubnetGroupInUseFault) {
385
- SubnetGroupInUseFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
386
- })(SubnetGroupInUseFault || (SubnetGroupInUseFault = {}));
387
231
  export var DeleteUserRequest;
388
232
  (function (DeleteUserRequest) {
389
233
  DeleteUserRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -392,10 +236,6 @@ export var DeleteUserResponse;
392
236
  (function (DeleteUserResponse) {
393
237
  DeleteUserResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
394
238
  })(DeleteUserResponse || (DeleteUserResponse = {}));
395
- export var InvalidUserStateFault;
396
- (function (InvalidUserStateFault) {
397
- InvalidUserStateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
398
- })(InvalidUserStateFault || (InvalidUserStateFault = {}));
399
239
  export var DescribeACLsRequest;
400
240
  (function (DescribeACLsRequest) {
401
241
  DescribeACLsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -509,10 +349,6 @@ export var DescribeUsersResponse;
509
349
  (function (DescribeUsersResponse) {
510
350
  DescribeUsersResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
511
351
  })(DescribeUsersResponse || (DescribeUsersResponse = {}));
512
- export var APICallRateForCustomerExceededFault;
513
- (function (APICallRateForCustomerExceededFault) {
514
- APICallRateForCustomerExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
515
- })(APICallRateForCustomerExceededFault || (APICallRateForCustomerExceededFault = {}));
516
352
  export var FailoverShardRequest;
517
353
  (function (FailoverShardRequest) {
518
354
  FailoverShardRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -521,18 +357,6 @@ export var FailoverShardResponse;
521
357
  (function (FailoverShardResponse) {
522
358
  FailoverShardResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
523
359
  })(FailoverShardResponse || (FailoverShardResponse = {}));
524
- export var InvalidKMSKeyFault;
525
- (function (InvalidKMSKeyFault) {
526
- InvalidKMSKeyFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
527
- })(InvalidKMSKeyFault || (InvalidKMSKeyFault = {}));
528
- export var ShardNotFoundFault;
529
- (function (ShardNotFoundFault) {
530
- ShardNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
531
- })(ShardNotFoundFault || (ShardNotFoundFault = {}));
532
- export var TestFailoverNotAvailableFault;
533
- (function (TestFailoverNotAvailableFault) {
534
- TestFailoverNotAvailableFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
535
- })(TestFailoverNotAvailableFault || (TestFailoverNotAvailableFault = {}));
536
360
  export var ListAllowedNodeTypeUpdatesRequest;
537
361
  (function (ListAllowedNodeTypeUpdatesRequest) {
538
362
  ListAllowedNodeTypeUpdatesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -541,10 +365,6 @@ export var ListAllowedNodeTypeUpdatesResponse;
541
365
  (function (ListAllowedNodeTypeUpdatesResponse) {
542
366
  ListAllowedNodeTypeUpdatesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
543
367
  })(ListAllowedNodeTypeUpdatesResponse || (ListAllowedNodeTypeUpdatesResponse = {}));
544
- export var InvalidARNFault;
545
- (function (InvalidARNFault) {
546
- InvalidARNFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
547
- })(InvalidARNFault || (InvalidARNFault = {}));
548
368
  export var ListTagsRequest;
549
369
  (function (ListTagsRequest) {
550
370
  ListTagsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -569,10 +389,6 @@ export var TagResourceResponse;
569
389
  (function (TagResourceResponse) {
570
390
  TagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
571
391
  })(TagResourceResponse || (TagResourceResponse = {}));
572
- export var TagNotFoundFault;
573
- (function (TagNotFoundFault) {
574
- TagNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
575
- })(TagNotFoundFault || (TagNotFoundFault = {}));
576
392
  export var UntagResourceRequest;
577
393
  (function (UntagResourceRequest) {
578
394
  UntagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -589,14 +405,6 @@ export var UpdateACLResponse;
589
405
  (function (UpdateACLResponse) {
590
406
  UpdateACLResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
591
407
  })(UpdateACLResponse || (UpdateACLResponse = {}));
592
- export var InvalidNodeStateFault;
593
- (function (InvalidNodeStateFault) {
594
- InvalidNodeStateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
595
- })(InvalidNodeStateFault || (InvalidNodeStateFault = {}));
596
- export var NoOperationFault;
597
- (function (NoOperationFault) {
598
- NoOperationFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
599
- })(NoOperationFault || (NoOperationFault = {}));
600
408
  export var ReplicaConfigurationRequest;
601
409
  (function (ReplicaConfigurationRequest) {
602
410
  ReplicaConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -625,10 +433,6 @@ export var UpdateParameterGroupResponse;
625
433
  (function (UpdateParameterGroupResponse) {
626
434
  UpdateParameterGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
627
435
  })(UpdateParameterGroupResponse || (UpdateParameterGroupResponse = {}));
628
- export var SubnetInUse;
629
- (function (SubnetInUse) {
630
- SubnetInUse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
631
- })(SubnetInUse || (SubnetInUse = {}));
632
436
  export var UpdateSubnetGroupRequest;
633
437
  (function (UpdateSubnetGroupRequest) {
634
438
  UpdateSubnetGroupRequest.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 FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), 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 });
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
  };
@@ -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 { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
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
- emitWarningIfUnsupportedVersion(process.version);
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 NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), 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 });
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
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchUpdateClusterCommandInput, BatchUpdateClusterCommandOutput } from "./commands/BatchUpdateClusterCommand";
10
10
  import { CopySnapshotCommandInput, CopySnapshotCommandOutput } from "./commands/CopySnapshotCommand";
@@ -143,6 +143,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
143
143
  * @internal
144
144
  */
145
145
  defaultUserAgentProvider?: Provider<__UserAgent>;
146
+ /**
147
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
148
+ */
149
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
146
150
  }
147
151
  declare type MemoryDBClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
148
152
  /**