@aws-sdk/client-dax 3.46.0 → 3.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-dax
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-dax
17
+
18
+
19
+
20
+
21
+
22
+ ## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-dax
25
+
26
+
27
+
28
+
29
+
30
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
31
+
32
+
33
+ ### Features
34
+
35
+ * **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))
36
+
37
+
38
+
39
+
40
+
6
41
  # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
42
 
8
43
 
@@ -1,19 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteSubnetGroupResponse = exports.DeleteSubnetGroupRequest = exports.DeleteParameterGroupResponse = exports.DeleteParameterGroupRequest = exports.DeleteClusterResponse = exports.DeleteClusterRequest = exports.NodeNotFoundFault = exports.DecreaseReplicationFactorResponse = exports.DecreaseReplicationFactorRequest = exports.ClusterNotFoundFault = exports.SubnetQuotaExceededFault = exports.SubnetGroupQuotaExceededFault = exports.SubnetGroupAlreadyExistsFault = exports.InvalidSubnet = exports.CreateSubnetGroupResponse = exports.SubnetGroup = exports.Subnet = exports.CreateSubnetGroupRequest = exports.ParameterGroupQuotaExceededFault = exports.ParameterGroupAlreadyExistsFault = exports.CreateParameterGroupResponse = exports.ParameterGroup = exports.CreateParameterGroupRequest = exports.TagQuotaPerResourceExceeded = exports.SubnetGroupNotFoundFault = exports.ServiceQuotaExceededException = exports.ServiceLinkedRoleNotFoundFault = exports.ParameterGroupNotFoundFault = exports.NodeQuotaForCustomerExceededFault = exports.NodeQuotaForClusterExceededFault = exports.InvalidVPCNetworkStateFault = exports.InvalidParameterValueException = exports.InvalidParameterGroupStateFault = exports.InvalidParameterCombinationException = exports.InvalidClusterStateFault = exports.InsufficientClusterCapacityFault = exports.CreateClusterResponse = exports.Cluster = exports.SSEDescription = exports.SecurityGroupMembership = exports.ParameterGroupStatus = exports.NotificationConfiguration = exports.Node = exports.Endpoint = exports.CreateClusterRequest = exports.Tag = exports.SSESpecification = exports.ClusterEndpointEncryptionType = exports.ClusterQuotaForCustomerExceededFault = exports.ClusterAlreadyExistsFault = void 0;
4
- exports.UpdateSubnetGroupResponse = exports.UpdateSubnetGroupRequest = exports.SubnetInUse = exports.UpdateParameterGroupResponse = exports.UpdateParameterGroupRequest = exports.ParameterNameValue = exports.UpdateClusterResponse = exports.UpdateClusterRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagNotFoundFault = exports.TagResourceResponse = exports.TagResourceRequest = exports.RebootNodeResponse = exports.RebootNodeRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.InvalidARNFault = exports.IncreaseReplicationFactorResponse = exports.IncreaseReplicationFactorRequest = exports.DescribeSubnetGroupsResponse = exports.DescribeSubnetGroupsRequest = exports.DescribeParametersResponse = exports.DescribeParametersRequest = exports.DescribeParameterGroupsResponse = exports.DescribeParameterGroupsRequest = exports.DescribeEventsResponse = exports.Event = exports.DescribeEventsRequest = exports.DescribeDefaultParametersResponse = exports.Parameter = exports.NodeTypeSpecificValue = exports.DescribeDefaultParametersRequest = exports.DescribeClustersResponse = exports.DescribeClustersRequest = exports.SubnetGroupInUseFault = void 0;
5
- var ClusterAlreadyExistsFault;
6
- (function (ClusterAlreadyExistsFault) {
7
- ClusterAlreadyExistsFault.filterSensitiveLog = (obj) => ({
8
- ...obj,
9
- });
10
- })(ClusterAlreadyExistsFault = exports.ClusterAlreadyExistsFault || (exports.ClusterAlreadyExistsFault = {}));
11
- var ClusterQuotaForCustomerExceededFault;
12
- (function (ClusterQuotaForCustomerExceededFault) {
13
- ClusterQuotaForCustomerExceededFault.filterSensitiveLog = (obj) => ({
14
- ...obj,
15
- });
16
- })(ClusterQuotaForCustomerExceededFault = exports.ClusterQuotaForCustomerExceededFault || (exports.ClusterQuotaForCustomerExceededFault = {}));
3
+ exports.TagResourceResponse = exports.TagResourceRequest = exports.RebootNodeResponse = exports.RebootNodeRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.IncreaseReplicationFactorResponse = exports.IncreaseReplicationFactorRequest = exports.DescribeSubnetGroupsResponse = exports.DescribeSubnetGroupsRequest = exports.DescribeParametersResponse = exports.DescribeParametersRequest = exports.DescribeParameterGroupsResponse = exports.DescribeParameterGroupsRequest = exports.DescribeEventsResponse = exports.Event = exports.DescribeEventsRequest = exports.DescribeDefaultParametersResponse = exports.Parameter = exports.NodeTypeSpecificValue = exports.DescribeDefaultParametersRequest = exports.DescribeClustersResponse = exports.DescribeClustersRequest = exports.DeleteSubnetGroupResponse = exports.DeleteSubnetGroupRequest = exports.DeleteParameterGroupResponse = exports.DeleteParameterGroupRequest = exports.DeleteClusterResponse = exports.DeleteClusterRequest = exports.DecreaseReplicationFactorResponse = exports.DecreaseReplicationFactorRequest = exports.CreateSubnetGroupResponse = exports.SubnetGroup = exports.Subnet = exports.CreateSubnetGroupRequest = exports.CreateParameterGroupResponse = exports.ParameterGroup = exports.CreateParameterGroupRequest = exports.CreateClusterResponse = exports.Cluster = exports.SSEDescription = exports.SecurityGroupMembership = exports.ParameterGroupStatus = exports.NotificationConfiguration = exports.Node = exports.Endpoint = exports.CreateClusterRequest = exports.Tag = exports.SSESpecification = exports.ClusterEndpointEncryptionType = void 0;
4
+ exports.UpdateSubnetGroupResponse = exports.UpdateSubnetGroupRequest = exports.UpdateParameterGroupResponse = exports.UpdateParameterGroupRequest = exports.ParameterNameValue = exports.UpdateClusterResponse = exports.UpdateClusterRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = void 0;
17
5
  var ClusterEndpointEncryptionType;
18
6
  (function (ClusterEndpointEncryptionType) {
19
7
  ClusterEndpointEncryptionType["NONE"] = "NONE";
@@ -85,84 +73,6 @@ var CreateClusterResponse;
85
73
  ...obj,
86
74
  });
87
75
  })(CreateClusterResponse = exports.CreateClusterResponse || (exports.CreateClusterResponse = {}));
88
- var InsufficientClusterCapacityFault;
89
- (function (InsufficientClusterCapacityFault) {
90
- InsufficientClusterCapacityFault.filterSensitiveLog = (obj) => ({
91
- ...obj,
92
- });
93
- })(InsufficientClusterCapacityFault = exports.InsufficientClusterCapacityFault || (exports.InsufficientClusterCapacityFault = {}));
94
- var InvalidClusterStateFault;
95
- (function (InvalidClusterStateFault) {
96
- InvalidClusterStateFault.filterSensitiveLog = (obj) => ({
97
- ...obj,
98
- });
99
- })(InvalidClusterStateFault = exports.InvalidClusterStateFault || (exports.InvalidClusterStateFault = {}));
100
- var InvalidParameterCombinationException;
101
- (function (InvalidParameterCombinationException) {
102
- InvalidParameterCombinationException.filterSensitiveLog = (obj) => ({
103
- ...obj,
104
- });
105
- })(InvalidParameterCombinationException = exports.InvalidParameterCombinationException || (exports.InvalidParameterCombinationException = {}));
106
- var InvalidParameterGroupStateFault;
107
- (function (InvalidParameterGroupStateFault) {
108
- InvalidParameterGroupStateFault.filterSensitiveLog = (obj) => ({
109
- ...obj,
110
- });
111
- })(InvalidParameterGroupStateFault = exports.InvalidParameterGroupStateFault || (exports.InvalidParameterGroupStateFault = {}));
112
- var InvalidParameterValueException;
113
- (function (InvalidParameterValueException) {
114
- InvalidParameterValueException.filterSensitiveLog = (obj) => ({
115
- ...obj,
116
- });
117
- })(InvalidParameterValueException = exports.InvalidParameterValueException || (exports.InvalidParameterValueException = {}));
118
- var InvalidVPCNetworkStateFault;
119
- (function (InvalidVPCNetworkStateFault) {
120
- InvalidVPCNetworkStateFault.filterSensitiveLog = (obj) => ({
121
- ...obj,
122
- });
123
- })(InvalidVPCNetworkStateFault = exports.InvalidVPCNetworkStateFault || (exports.InvalidVPCNetworkStateFault = {}));
124
- var NodeQuotaForClusterExceededFault;
125
- (function (NodeQuotaForClusterExceededFault) {
126
- NodeQuotaForClusterExceededFault.filterSensitiveLog = (obj) => ({
127
- ...obj,
128
- });
129
- })(NodeQuotaForClusterExceededFault = exports.NodeQuotaForClusterExceededFault || (exports.NodeQuotaForClusterExceededFault = {}));
130
- var NodeQuotaForCustomerExceededFault;
131
- (function (NodeQuotaForCustomerExceededFault) {
132
- NodeQuotaForCustomerExceededFault.filterSensitiveLog = (obj) => ({
133
- ...obj,
134
- });
135
- })(NodeQuotaForCustomerExceededFault = exports.NodeQuotaForCustomerExceededFault || (exports.NodeQuotaForCustomerExceededFault = {}));
136
- var ParameterGroupNotFoundFault;
137
- (function (ParameterGroupNotFoundFault) {
138
- ParameterGroupNotFoundFault.filterSensitiveLog = (obj) => ({
139
- ...obj,
140
- });
141
- })(ParameterGroupNotFoundFault = exports.ParameterGroupNotFoundFault || (exports.ParameterGroupNotFoundFault = {}));
142
- var ServiceLinkedRoleNotFoundFault;
143
- (function (ServiceLinkedRoleNotFoundFault) {
144
- ServiceLinkedRoleNotFoundFault.filterSensitiveLog = (obj) => ({
145
- ...obj,
146
- });
147
- })(ServiceLinkedRoleNotFoundFault = exports.ServiceLinkedRoleNotFoundFault || (exports.ServiceLinkedRoleNotFoundFault = {}));
148
- var ServiceQuotaExceededException;
149
- (function (ServiceQuotaExceededException) {
150
- ServiceQuotaExceededException.filterSensitiveLog = (obj) => ({
151
- ...obj,
152
- });
153
- })(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {}));
154
- var SubnetGroupNotFoundFault;
155
- (function (SubnetGroupNotFoundFault) {
156
- SubnetGroupNotFoundFault.filterSensitiveLog = (obj) => ({
157
- ...obj,
158
- });
159
- })(SubnetGroupNotFoundFault = exports.SubnetGroupNotFoundFault || (exports.SubnetGroupNotFoundFault = {}));
160
- var TagQuotaPerResourceExceeded;
161
- (function (TagQuotaPerResourceExceeded) {
162
- TagQuotaPerResourceExceeded.filterSensitiveLog = (obj) => ({
163
- ...obj,
164
- });
165
- })(TagQuotaPerResourceExceeded = exports.TagQuotaPerResourceExceeded || (exports.TagQuotaPerResourceExceeded = {}));
166
76
  var CreateParameterGroupRequest;
167
77
  (function (CreateParameterGroupRequest) {
168
78
  CreateParameterGroupRequest.filterSensitiveLog = (obj) => ({
@@ -181,18 +91,6 @@ var CreateParameterGroupResponse;
181
91
  ...obj,
182
92
  });
183
93
  })(CreateParameterGroupResponse = exports.CreateParameterGroupResponse || (exports.CreateParameterGroupResponse = {}));
184
- var ParameterGroupAlreadyExistsFault;
185
- (function (ParameterGroupAlreadyExistsFault) {
186
- ParameterGroupAlreadyExistsFault.filterSensitiveLog = (obj) => ({
187
- ...obj,
188
- });
189
- })(ParameterGroupAlreadyExistsFault = exports.ParameterGroupAlreadyExistsFault || (exports.ParameterGroupAlreadyExistsFault = {}));
190
- var ParameterGroupQuotaExceededFault;
191
- (function (ParameterGroupQuotaExceededFault) {
192
- ParameterGroupQuotaExceededFault.filterSensitiveLog = (obj) => ({
193
- ...obj,
194
- });
195
- })(ParameterGroupQuotaExceededFault = exports.ParameterGroupQuotaExceededFault || (exports.ParameterGroupQuotaExceededFault = {}));
196
94
  var CreateSubnetGroupRequest;
197
95
  (function (CreateSubnetGroupRequest) {
198
96
  CreateSubnetGroupRequest.filterSensitiveLog = (obj) => ({
@@ -217,36 +115,6 @@ var CreateSubnetGroupResponse;
217
115
  ...obj,
218
116
  });
219
117
  })(CreateSubnetGroupResponse = exports.CreateSubnetGroupResponse || (exports.CreateSubnetGroupResponse = {}));
220
- var InvalidSubnet;
221
- (function (InvalidSubnet) {
222
- InvalidSubnet.filterSensitiveLog = (obj) => ({
223
- ...obj,
224
- });
225
- })(InvalidSubnet = exports.InvalidSubnet || (exports.InvalidSubnet = {}));
226
- var SubnetGroupAlreadyExistsFault;
227
- (function (SubnetGroupAlreadyExistsFault) {
228
- SubnetGroupAlreadyExistsFault.filterSensitiveLog = (obj) => ({
229
- ...obj,
230
- });
231
- })(SubnetGroupAlreadyExistsFault = exports.SubnetGroupAlreadyExistsFault || (exports.SubnetGroupAlreadyExistsFault = {}));
232
- var SubnetGroupQuotaExceededFault;
233
- (function (SubnetGroupQuotaExceededFault) {
234
- SubnetGroupQuotaExceededFault.filterSensitiveLog = (obj) => ({
235
- ...obj,
236
- });
237
- })(SubnetGroupQuotaExceededFault = exports.SubnetGroupQuotaExceededFault || (exports.SubnetGroupQuotaExceededFault = {}));
238
- var SubnetQuotaExceededFault;
239
- (function (SubnetQuotaExceededFault) {
240
- SubnetQuotaExceededFault.filterSensitiveLog = (obj) => ({
241
- ...obj,
242
- });
243
- })(SubnetQuotaExceededFault = exports.SubnetQuotaExceededFault || (exports.SubnetQuotaExceededFault = {}));
244
- var ClusterNotFoundFault;
245
- (function (ClusterNotFoundFault) {
246
- ClusterNotFoundFault.filterSensitiveLog = (obj) => ({
247
- ...obj,
248
- });
249
- })(ClusterNotFoundFault = exports.ClusterNotFoundFault || (exports.ClusterNotFoundFault = {}));
250
118
  var DecreaseReplicationFactorRequest;
251
119
  (function (DecreaseReplicationFactorRequest) {
252
120
  DecreaseReplicationFactorRequest.filterSensitiveLog = (obj) => ({
@@ -259,12 +127,6 @@ var DecreaseReplicationFactorResponse;
259
127
  ...obj,
260
128
  });
261
129
  })(DecreaseReplicationFactorResponse = exports.DecreaseReplicationFactorResponse || (exports.DecreaseReplicationFactorResponse = {}));
262
- var NodeNotFoundFault;
263
- (function (NodeNotFoundFault) {
264
- NodeNotFoundFault.filterSensitiveLog = (obj) => ({
265
- ...obj,
266
- });
267
- })(NodeNotFoundFault = exports.NodeNotFoundFault || (exports.NodeNotFoundFault = {}));
268
130
  var DeleteClusterRequest;
269
131
  (function (DeleteClusterRequest) {
270
132
  DeleteClusterRequest.filterSensitiveLog = (obj) => ({
@@ -301,12 +163,6 @@ var DeleteSubnetGroupResponse;
301
163
  ...obj,
302
164
  });
303
165
  })(DeleteSubnetGroupResponse = exports.DeleteSubnetGroupResponse || (exports.DeleteSubnetGroupResponse = {}));
304
- var SubnetGroupInUseFault;
305
- (function (SubnetGroupInUseFault) {
306
- SubnetGroupInUseFault.filterSensitiveLog = (obj) => ({
307
- ...obj,
308
- });
309
- })(SubnetGroupInUseFault = exports.SubnetGroupInUseFault || (exports.SubnetGroupInUseFault = {}));
310
166
  var DescribeClustersRequest;
311
167
  (function (DescribeClustersRequest) {
312
168
  DescribeClustersRequest.filterSensitiveLog = (obj) => ({
@@ -409,12 +265,6 @@ var IncreaseReplicationFactorResponse;
409
265
  ...obj,
410
266
  });
411
267
  })(IncreaseReplicationFactorResponse = exports.IncreaseReplicationFactorResponse || (exports.IncreaseReplicationFactorResponse = {}));
412
- var InvalidARNFault;
413
- (function (InvalidARNFault) {
414
- InvalidARNFault.filterSensitiveLog = (obj) => ({
415
- ...obj,
416
- });
417
- })(InvalidARNFault = exports.InvalidARNFault || (exports.InvalidARNFault = {}));
418
268
  var ListTagsRequest;
419
269
  (function (ListTagsRequest) {
420
270
  ListTagsRequest.filterSensitiveLog = (obj) => ({
@@ -451,12 +301,6 @@ var TagResourceResponse;
451
301
  ...obj,
452
302
  });
453
303
  })(TagResourceResponse = exports.TagResourceResponse || (exports.TagResourceResponse = {}));
454
- var TagNotFoundFault;
455
- (function (TagNotFoundFault) {
456
- TagNotFoundFault.filterSensitiveLog = (obj) => ({
457
- ...obj,
458
- });
459
- })(TagNotFoundFault = exports.TagNotFoundFault || (exports.TagNotFoundFault = {}));
460
304
  var UntagResourceRequest;
461
305
  (function (UntagResourceRequest) {
462
306
  UntagResourceRequest.filterSensitiveLog = (obj) => ({
@@ -499,12 +343,6 @@ var UpdateParameterGroupResponse;
499
343
  ...obj,
500
344
  });
501
345
  })(UpdateParameterGroupResponse = exports.UpdateParameterGroupResponse || (exports.UpdateParameterGroupResponse = {}));
502
- var SubnetInUse;
503
- (function (SubnetInUse) {
504
- SubnetInUse.filterSensitiveLog = (obj) => ({
505
- ...obj,
506
- });
507
- })(SubnetInUse = exports.SubnetInUse || (exports.SubnetInUse = {}));
508
346
  var UpdateSubnetGroupRequest;
509
347
  (function (UpdateSubnetGroupRequest) {
510
348
  UpdateSubnetGroupRequest.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 : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
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(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
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),
@@ -1,12 +1,4 @@
1
1
  import { __assign } from "tslib";
2
- export var ClusterAlreadyExistsFault;
3
- (function (ClusterAlreadyExistsFault) {
4
- ClusterAlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
- })(ClusterAlreadyExistsFault || (ClusterAlreadyExistsFault = {}));
6
- export var ClusterQuotaForCustomerExceededFault;
7
- (function (ClusterQuotaForCustomerExceededFault) {
8
- ClusterQuotaForCustomerExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
9
- })(ClusterQuotaForCustomerExceededFault || (ClusterQuotaForCustomerExceededFault = {}));
10
2
  export var ClusterEndpointEncryptionType;
11
3
  (function (ClusterEndpointEncryptionType) {
12
4
  ClusterEndpointEncryptionType["NONE"] = "NONE";
@@ -56,58 +48,6 @@ export var CreateClusterResponse;
56
48
  (function (CreateClusterResponse) {
57
49
  CreateClusterResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
58
50
  })(CreateClusterResponse || (CreateClusterResponse = {}));
59
- export var InsufficientClusterCapacityFault;
60
- (function (InsufficientClusterCapacityFault) {
61
- InsufficientClusterCapacityFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
62
- })(InsufficientClusterCapacityFault || (InsufficientClusterCapacityFault = {}));
63
- export var InvalidClusterStateFault;
64
- (function (InvalidClusterStateFault) {
65
- InvalidClusterStateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
66
- })(InvalidClusterStateFault || (InvalidClusterStateFault = {}));
67
- export var InvalidParameterCombinationException;
68
- (function (InvalidParameterCombinationException) {
69
- InvalidParameterCombinationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
70
- })(InvalidParameterCombinationException || (InvalidParameterCombinationException = {}));
71
- export var InvalidParameterGroupStateFault;
72
- (function (InvalidParameterGroupStateFault) {
73
- InvalidParameterGroupStateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
74
- })(InvalidParameterGroupStateFault || (InvalidParameterGroupStateFault = {}));
75
- export var InvalidParameterValueException;
76
- (function (InvalidParameterValueException) {
77
- InvalidParameterValueException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
78
- })(InvalidParameterValueException || (InvalidParameterValueException = {}));
79
- export var InvalidVPCNetworkStateFault;
80
- (function (InvalidVPCNetworkStateFault) {
81
- InvalidVPCNetworkStateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
82
- })(InvalidVPCNetworkStateFault || (InvalidVPCNetworkStateFault = {}));
83
- export var NodeQuotaForClusterExceededFault;
84
- (function (NodeQuotaForClusterExceededFault) {
85
- NodeQuotaForClusterExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
86
- })(NodeQuotaForClusterExceededFault || (NodeQuotaForClusterExceededFault = {}));
87
- export var NodeQuotaForCustomerExceededFault;
88
- (function (NodeQuotaForCustomerExceededFault) {
89
- NodeQuotaForCustomerExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
90
- })(NodeQuotaForCustomerExceededFault || (NodeQuotaForCustomerExceededFault = {}));
91
- export var ParameterGroupNotFoundFault;
92
- (function (ParameterGroupNotFoundFault) {
93
- ParameterGroupNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
94
- })(ParameterGroupNotFoundFault || (ParameterGroupNotFoundFault = {}));
95
- export var ServiceLinkedRoleNotFoundFault;
96
- (function (ServiceLinkedRoleNotFoundFault) {
97
- ServiceLinkedRoleNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
98
- })(ServiceLinkedRoleNotFoundFault || (ServiceLinkedRoleNotFoundFault = {}));
99
- export var ServiceQuotaExceededException;
100
- (function (ServiceQuotaExceededException) {
101
- ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
102
- })(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
103
- export var SubnetGroupNotFoundFault;
104
- (function (SubnetGroupNotFoundFault) {
105
- SubnetGroupNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
106
- })(SubnetGroupNotFoundFault || (SubnetGroupNotFoundFault = {}));
107
- export var TagQuotaPerResourceExceeded;
108
- (function (TagQuotaPerResourceExceeded) {
109
- TagQuotaPerResourceExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
110
- })(TagQuotaPerResourceExceeded || (TagQuotaPerResourceExceeded = {}));
111
51
  export var CreateParameterGroupRequest;
112
52
  (function (CreateParameterGroupRequest) {
113
53
  CreateParameterGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -120,14 +60,6 @@ export var CreateParameterGroupResponse;
120
60
  (function (CreateParameterGroupResponse) {
121
61
  CreateParameterGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
122
62
  })(CreateParameterGroupResponse || (CreateParameterGroupResponse = {}));
123
- export var ParameterGroupAlreadyExistsFault;
124
- (function (ParameterGroupAlreadyExistsFault) {
125
- ParameterGroupAlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
126
- })(ParameterGroupAlreadyExistsFault || (ParameterGroupAlreadyExistsFault = {}));
127
- export var ParameterGroupQuotaExceededFault;
128
- (function (ParameterGroupQuotaExceededFault) {
129
- ParameterGroupQuotaExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
130
- })(ParameterGroupQuotaExceededFault || (ParameterGroupQuotaExceededFault = {}));
131
63
  export var CreateSubnetGroupRequest;
132
64
  (function (CreateSubnetGroupRequest) {
133
65
  CreateSubnetGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -144,26 +76,6 @@ export var CreateSubnetGroupResponse;
144
76
  (function (CreateSubnetGroupResponse) {
145
77
  CreateSubnetGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
146
78
  })(CreateSubnetGroupResponse || (CreateSubnetGroupResponse = {}));
147
- export var InvalidSubnet;
148
- (function (InvalidSubnet) {
149
- InvalidSubnet.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
150
- })(InvalidSubnet || (InvalidSubnet = {}));
151
- export var SubnetGroupAlreadyExistsFault;
152
- (function (SubnetGroupAlreadyExistsFault) {
153
- SubnetGroupAlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
154
- })(SubnetGroupAlreadyExistsFault || (SubnetGroupAlreadyExistsFault = {}));
155
- export var SubnetGroupQuotaExceededFault;
156
- (function (SubnetGroupQuotaExceededFault) {
157
- SubnetGroupQuotaExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
158
- })(SubnetGroupQuotaExceededFault || (SubnetGroupQuotaExceededFault = {}));
159
- export var SubnetQuotaExceededFault;
160
- (function (SubnetQuotaExceededFault) {
161
- SubnetQuotaExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
162
- })(SubnetQuotaExceededFault || (SubnetQuotaExceededFault = {}));
163
- export var ClusterNotFoundFault;
164
- (function (ClusterNotFoundFault) {
165
- ClusterNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
166
- })(ClusterNotFoundFault || (ClusterNotFoundFault = {}));
167
79
  export var DecreaseReplicationFactorRequest;
168
80
  (function (DecreaseReplicationFactorRequest) {
169
81
  DecreaseReplicationFactorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -172,10 +84,6 @@ export var DecreaseReplicationFactorResponse;
172
84
  (function (DecreaseReplicationFactorResponse) {
173
85
  DecreaseReplicationFactorResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
174
86
  })(DecreaseReplicationFactorResponse || (DecreaseReplicationFactorResponse = {}));
175
- export var NodeNotFoundFault;
176
- (function (NodeNotFoundFault) {
177
- NodeNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
178
- })(NodeNotFoundFault || (NodeNotFoundFault = {}));
179
87
  export var DeleteClusterRequest;
180
88
  (function (DeleteClusterRequest) {
181
89
  DeleteClusterRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -200,10 +108,6 @@ export var DeleteSubnetGroupResponse;
200
108
  (function (DeleteSubnetGroupResponse) {
201
109
  DeleteSubnetGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
202
110
  })(DeleteSubnetGroupResponse || (DeleteSubnetGroupResponse = {}));
203
- export var SubnetGroupInUseFault;
204
- (function (SubnetGroupInUseFault) {
205
- SubnetGroupInUseFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
206
- })(SubnetGroupInUseFault || (SubnetGroupInUseFault = {}));
207
111
  export var DescribeClustersRequest;
208
112
  (function (DescribeClustersRequest) {
209
113
  DescribeClustersRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -272,10 +176,6 @@ export var IncreaseReplicationFactorResponse;
272
176
  (function (IncreaseReplicationFactorResponse) {
273
177
  IncreaseReplicationFactorResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
274
178
  })(IncreaseReplicationFactorResponse || (IncreaseReplicationFactorResponse = {}));
275
- export var InvalidARNFault;
276
- (function (InvalidARNFault) {
277
- InvalidARNFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
278
- })(InvalidARNFault || (InvalidARNFault = {}));
279
179
  export var ListTagsRequest;
280
180
  (function (ListTagsRequest) {
281
181
  ListTagsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -300,10 +200,6 @@ export var TagResourceResponse;
300
200
  (function (TagResourceResponse) {
301
201
  TagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
302
202
  })(TagResourceResponse || (TagResourceResponse = {}));
303
- export var TagNotFoundFault;
304
- (function (TagNotFoundFault) {
305
- TagNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
306
- })(TagNotFoundFault || (TagNotFoundFault = {}));
307
203
  export var UntagResourceRequest;
308
204
  (function (UntagResourceRequest) {
309
205
  UntagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -332,10 +228,6 @@ export var UpdateParameterGroupResponse;
332
228
  (function (UpdateParameterGroupResponse) {
333
229
  UpdateParameterGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
334
230
  })(UpdateParameterGroupResponse || (UpdateParameterGroupResponse = {}));
335
- export var SubnetInUse;
336
- (function (SubnetInUse) {
337
- SubnetInUse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
338
- })(SubnetInUse || (SubnetInUse = {}));
339
231
  export var UpdateSubnetGroupRequest;
340
232
  (function (UpdateSubnetGroupRequest) {
341
233
  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,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 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 });
19
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 { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
10
10
  import { CreateParameterGroupCommandInput, CreateParameterGroupCommandOutput } from "./commands/CreateParameterGroupCommand";
@@ -129,6 +129,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
129
129
  * @internal
130
130
  */
131
131
  defaultUserAgentProvider?: Provider<__UserAgent>;
132
+ /**
133
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
134
+ */
135
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
132
136
  }
133
137
  declare type DAXClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
134
138
  /**