@aws-sdk/client-snowball 3.46.0 → 3.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
18
 
8
19
 
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "ap-northeast-1": {
7
7
  variants: [
8
- {
9
- hostname: "snowball.ap-northeast-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "snowball-fips.ap-northeast-1.amazonaws.com",
14
10
  tags: ["fips"],
@@ -17,10 +13,6 @@ const regionHash = {
17
13
  },
18
14
  "ap-northeast-2": {
19
15
  variants: [
20
- {
21
- hostname: "snowball.ap-northeast-2.amazonaws.com",
22
- tags: [],
23
- },
24
16
  {
25
17
  hostname: "snowball-fips.ap-northeast-2.amazonaws.com",
26
18
  tags: ["fips"],
@@ -29,10 +21,6 @@ const regionHash = {
29
21
  },
30
22
  "ap-northeast-3": {
31
23
  variants: [
32
- {
33
- hostname: "snowball.ap-northeast-3.amazonaws.com",
34
- tags: [],
35
- },
36
24
  {
37
25
  hostname: "snowball-fips.ap-northeast-3.amazonaws.com",
38
26
  tags: ["fips"],
@@ -41,10 +29,6 @@ const regionHash = {
41
29
  },
42
30
  "ap-south-1": {
43
31
  variants: [
44
- {
45
- hostname: "snowball.ap-south-1.amazonaws.com",
46
- tags: [],
47
- },
48
32
  {
49
33
  hostname: "snowball-fips.ap-south-1.amazonaws.com",
50
34
  tags: ["fips"],
@@ -53,10 +37,6 @@ const regionHash = {
53
37
  },
54
38
  "ap-southeast-1": {
55
39
  variants: [
56
- {
57
- hostname: "snowball.ap-southeast-1.amazonaws.com",
58
- tags: [],
59
- },
60
40
  {
61
41
  hostname: "snowball-fips.ap-southeast-1.amazonaws.com",
62
42
  tags: ["fips"],
@@ -65,10 +45,6 @@ const regionHash = {
65
45
  },
66
46
  "ap-southeast-2": {
67
47
  variants: [
68
- {
69
- hostname: "snowball.ap-southeast-2.amazonaws.com",
70
- tags: [],
71
- },
72
48
  {
73
49
  hostname: "snowball-fips.ap-southeast-2.amazonaws.com",
74
50
  tags: ["fips"],
@@ -77,10 +53,6 @@ const regionHash = {
77
53
  },
78
54
  "ca-central-1": {
79
55
  variants: [
80
- {
81
- hostname: "snowball.ca-central-1.amazonaws.com",
82
- tags: [],
83
- },
84
56
  {
85
57
  hostname: "snowball-fips.ca-central-1.amazonaws.com",
86
58
  tags: ["fips"],
@@ -89,10 +61,6 @@ const regionHash = {
89
61
  },
90
62
  "cn-north-1": {
91
63
  variants: [
92
- {
93
- hostname: "snowball.cn-north-1.amazonaws.com.cn",
94
- tags: [],
95
- },
96
64
  {
97
65
  hostname: "snowball-fips.cn-north-1.amazonaws.com.cn",
98
66
  tags: ["fips"],
@@ -101,10 +69,6 @@ const regionHash = {
101
69
  },
102
70
  "cn-northwest-1": {
103
71
  variants: [
104
- {
105
- hostname: "snowball.cn-northwest-1.amazonaws.com.cn",
106
- tags: [],
107
- },
108
72
  {
109
73
  hostname: "snowball-fips.cn-northwest-1.amazonaws.com.cn",
110
74
  tags: ["fips"],
@@ -113,10 +77,6 @@ const regionHash = {
113
77
  },
114
78
  "eu-central-1": {
115
79
  variants: [
116
- {
117
- hostname: "snowball.eu-central-1.amazonaws.com",
118
- tags: [],
119
- },
120
80
  {
121
81
  hostname: "snowball-fips.eu-central-1.amazonaws.com",
122
82
  tags: ["fips"],
@@ -125,10 +85,6 @@ const regionHash = {
125
85
  },
126
86
  "eu-west-1": {
127
87
  variants: [
128
- {
129
- hostname: "snowball.eu-west-1.amazonaws.com",
130
- tags: [],
131
- },
132
88
  {
133
89
  hostname: "snowball-fips.eu-west-1.amazonaws.com",
134
90
  tags: ["fips"],
@@ -137,10 +93,6 @@ const regionHash = {
137
93
  },
138
94
  "eu-west-2": {
139
95
  variants: [
140
- {
141
- hostname: "snowball.eu-west-2.amazonaws.com",
142
- tags: [],
143
- },
144
96
  {
145
97
  hostname: "snowball-fips.eu-west-2.amazonaws.com",
146
98
  tags: ["fips"],
@@ -149,10 +101,6 @@ const regionHash = {
149
101
  },
150
102
  "eu-west-3": {
151
103
  variants: [
152
- {
153
- hostname: "snowball.eu-west-3.amazonaws.com",
154
- tags: [],
155
- },
156
104
  {
157
105
  hostname: "snowball-fips.eu-west-3.amazonaws.com",
158
106
  tags: ["fips"],
@@ -161,10 +109,6 @@ const regionHash = {
161
109
  },
162
110
  "sa-east-1": {
163
111
  variants: [
164
- {
165
- hostname: "snowball.sa-east-1.amazonaws.com",
166
- tags: [],
167
- },
168
112
  {
169
113
  hostname: "snowball-fips.sa-east-1.amazonaws.com",
170
114
  tags: ["fips"],
@@ -173,10 +117,6 @@ const regionHash = {
173
117
  },
174
118
  "us-east-1": {
175
119
  variants: [
176
- {
177
- hostname: "snowball.us-east-1.amazonaws.com",
178
- tags: [],
179
- },
180
120
  {
181
121
  hostname: "snowball-fips.us-east-1.amazonaws.com",
182
122
  tags: ["fips"],
@@ -185,10 +125,6 @@ const regionHash = {
185
125
  },
186
126
  "us-east-2": {
187
127
  variants: [
188
- {
189
- hostname: "snowball.us-east-2.amazonaws.com",
190
- tags: [],
191
- },
192
128
  {
193
129
  hostname: "snowball-fips.us-east-2.amazonaws.com",
194
130
  tags: ["fips"],
@@ -197,10 +133,6 @@ const regionHash = {
197
133
  },
198
134
  "us-gov-east-1": {
199
135
  variants: [
200
- {
201
- hostname: "snowball.us-gov-east-1.amazonaws.com",
202
- tags: [],
203
- },
204
136
  {
205
137
  hostname: "snowball-fips.us-gov-east-1.amazonaws.com",
206
138
  tags: ["fips"],
@@ -209,10 +141,6 @@ const regionHash = {
209
141
  },
210
142
  "us-gov-west-1": {
211
143
  variants: [
212
- {
213
- hostname: "snowball.us-gov-west-1.amazonaws.com",
214
- tags: [],
215
- },
216
144
  {
217
145
  hostname: "snowball-fips.us-gov-west-1.amazonaws.com",
218
146
  tags: ["fips"],
@@ -221,10 +149,6 @@ const regionHash = {
221
149
  },
222
150
  "us-west-1": {
223
151
  variants: [
224
- {
225
- hostname: "snowball.us-west-1.amazonaws.com",
226
- tags: [],
227
- },
228
152
  {
229
153
  hostname: "snowball-fips.us-west-1.amazonaws.com",
230
154
  tags: ["fips"],
@@ -233,10 +157,6 @@ const regionHash = {
233
157
  },
234
158
  "us-west-2": {
235
159
  variants: [
236
- {
237
- hostname: "snowball.us-west-2.amazonaws.com",
238
- tags: [],
239
- },
240
160
  {
241
161
  hostname: "snowball-fips.us-west-2.amazonaws.com",
242
162
  tags: ["fips"],
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShippingLabelStatus = exports.CreateReturnShippingLabelRequest = exports.ConflictException = exports.CreateLongTermPricingResult = exports.CreateLongTermPricingRequest = exports.LongTermPricingType = exports.CreateJobResult = exports.CreateJobRequest = exports.SnowballCapacity = exports.DeviceConfiguration = exports.SnowconeDeviceConfiguration = exports.WirelessConnection = exports.ClusterLimitExceededException = exports.InvalidInputCombinationException = exports.Ec2RequestFailedException = exports.CreateClusterResult = exports.CreateClusterRequest = exports.TaxDocuments = exports.INDTaxDocuments = exports.SnowballType = exports.ShippingOption = exports.JobResource = exports.S3Resource = exports.TargetOnDeviceService = exports.TransferOption = exports.DeviceServiceName = exports.KeyRange = exports.LambdaResource = exports.EventTriggerDefinition = exports.Ec2AmiResource = exports.RemoteManagement = exports.OnDeviceServiceConfiguration = exports.TGWOnDeviceServiceConfiguration = exports.NFSOnDeviceServiceConfiguration = exports.StorageUnit = exports.Notification = exports.JobState = exports.JobType = exports.UnsupportedAddressException = exports.InvalidAddressException = exports.CreateAddressResult = exports.CreateAddressRequest = exports.CancelJobResult = exports.CancelJobRequest = exports.KMSRequestFailedException = exports.InvalidResourceException = exports.InvalidJobStateException = exports.CancelClusterResult = exports.CancelClusterRequest = exports.Address = void 0;
4
- exports.UpdateLongTermPricingRequest = exports.UpdateJobShipmentStateResult = exports.UpdateJobShipmentStateRequest = exports.ShipmentState = exports.UpdateJobResult = exports.UpdateJobRequest = exports.UpdateClusterResult = exports.UpdateClusterRequest = exports.ListLongTermPricingResult = exports.LongTermPricingListEntry = exports.ListLongTermPricingRequest = exports.ListJobsResult = exports.ListJobsRequest = exports.ListCompatibleImagesResult = exports.CompatibleImage = exports.ListCompatibleImagesRequest = exports.ListClustersResult = exports.ClusterListEntry = exports.ListClustersRequest = exports.ListClusterJobsResult = exports.JobListEntry = exports.ListClusterJobsRequest = exports.GetSoftwareUpdatesResult = exports.GetSoftwareUpdatesRequest = exports.GetSnowballUsageResult = exports.GetSnowballUsageRequest = exports.GetJobUnlockCodeResult = exports.GetJobUnlockCodeRequest = exports.GetJobManifestResult = exports.GetJobManifestRequest = exports.DescribeReturnShippingLabelResult = exports.DescribeReturnShippingLabelRequest = exports.DescribeJobResult = exports.JobMetadata = exports.ShippingDetails = exports.Shipment = exports.JobLogs = exports.DataTransfer = exports.DescribeJobRequest = exports.DescribeClusterResult = exports.ClusterMetadata = exports.ClusterState = exports.DescribeClusterRequest = exports.InvalidNextTokenException = exports.DescribeAddressesResult = exports.DescribeAddressesRequest = exports.DescribeAddressResult = exports.DescribeAddressRequest = exports.ReturnShippingLabelAlreadyExistsException = exports.CreateReturnShippingLabelResult = void 0;
5
- exports.UpdateLongTermPricingResult = void 0;
3
+ exports.DescribeClusterResult = exports.ClusterMetadata = exports.ClusterState = exports.DescribeClusterRequest = exports.DescribeAddressesResult = exports.DescribeAddressesRequest = exports.DescribeAddressResult = exports.DescribeAddressRequest = exports.CreateReturnShippingLabelResult = exports.ShippingLabelStatus = exports.CreateReturnShippingLabelRequest = exports.CreateLongTermPricingResult = exports.CreateLongTermPricingRequest = exports.LongTermPricingType = exports.CreateJobResult = exports.CreateJobRequest = exports.SnowballCapacity = exports.DeviceConfiguration = exports.SnowconeDeviceConfiguration = exports.WirelessConnection = exports.CreateClusterResult = exports.CreateClusterRequest = exports.TaxDocuments = exports.INDTaxDocuments = exports.SnowballType = exports.ShippingOption = exports.JobResource = exports.S3Resource = exports.TargetOnDeviceService = exports.TransferOption = exports.DeviceServiceName = exports.KeyRange = exports.LambdaResource = exports.EventTriggerDefinition = exports.Ec2AmiResource = exports.RemoteManagement = exports.OnDeviceServiceConfiguration = exports.TGWOnDeviceServiceConfiguration = exports.NFSOnDeviceServiceConfiguration = exports.StorageUnit = exports.Notification = exports.JobState = exports.JobType = exports.CreateAddressResult = exports.CreateAddressRequest = exports.CancelJobResult = exports.CancelJobRequest = exports.CancelClusterResult = exports.CancelClusterRequest = exports.Address = void 0;
4
+ exports.UpdateLongTermPricingResult = exports.UpdateLongTermPricingRequest = exports.UpdateJobShipmentStateResult = exports.UpdateJobShipmentStateRequest = exports.ShipmentState = exports.UpdateJobResult = exports.UpdateJobRequest = exports.UpdateClusterResult = exports.UpdateClusterRequest = exports.ListLongTermPricingResult = exports.LongTermPricingListEntry = exports.ListLongTermPricingRequest = exports.ListJobsResult = exports.ListJobsRequest = exports.ListCompatibleImagesResult = exports.CompatibleImage = exports.ListCompatibleImagesRequest = exports.ListClustersResult = exports.ClusterListEntry = exports.ListClustersRequest = exports.ListClusterJobsResult = exports.JobListEntry = exports.ListClusterJobsRequest = exports.GetSoftwareUpdatesResult = exports.GetSoftwareUpdatesRequest = exports.GetSnowballUsageResult = exports.GetSnowballUsageRequest = exports.GetJobUnlockCodeResult = exports.GetJobUnlockCodeRequest = exports.GetJobManifestResult = exports.GetJobManifestRequest = exports.DescribeReturnShippingLabelResult = exports.DescribeReturnShippingLabelRequest = exports.DescribeJobResult = exports.JobMetadata = exports.ShippingDetails = exports.Shipment = exports.JobLogs = exports.DataTransfer = exports.DescribeJobRequest = void 0;
6
5
  var Address;
7
6
  (function (Address) {
8
7
  Address.filterSensitiveLog = (obj) => ({
@@ -21,24 +20,6 @@ var CancelClusterResult;
21
20
  ...obj,
22
21
  });
23
22
  })(CancelClusterResult = exports.CancelClusterResult || (exports.CancelClusterResult = {}));
24
- var InvalidJobStateException;
25
- (function (InvalidJobStateException) {
26
- InvalidJobStateException.filterSensitiveLog = (obj) => ({
27
- ...obj,
28
- });
29
- })(InvalidJobStateException = exports.InvalidJobStateException || (exports.InvalidJobStateException = {}));
30
- var InvalidResourceException;
31
- (function (InvalidResourceException) {
32
- InvalidResourceException.filterSensitiveLog = (obj) => ({
33
- ...obj,
34
- });
35
- })(InvalidResourceException = exports.InvalidResourceException || (exports.InvalidResourceException = {}));
36
- var KMSRequestFailedException;
37
- (function (KMSRequestFailedException) {
38
- KMSRequestFailedException.filterSensitiveLog = (obj) => ({
39
- ...obj,
40
- });
41
- })(KMSRequestFailedException = exports.KMSRequestFailedException || (exports.KMSRequestFailedException = {}));
42
23
  var CancelJobRequest;
43
24
  (function (CancelJobRequest) {
44
25
  CancelJobRequest.filterSensitiveLog = (obj) => ({
@@ -63,18 +44,6 @@ var CreateAddressResult;
63
44
  ...obj,
64
45
  });
65
46
  })(CreateAddressResult = exports.CreateAddressResult || (exports.CreateAddressResult = {}));
66
- var InvalidAddressException;
67
- (function (InvalidAddressException) {
68
- InvalidAddressException.filterSensitiveLog = (obj) => ({
69
- ...obj,
70
- });
71
- })(InvalidAddressException = exports.InvalidAddressException || (exports.InvalidAddressException = {}));
72
- var UnsupportedAddressException;
73
- (function (UnsupportedAddressException) {
74
- UnsupportedAddressException.filterSensitiveLog = (obj) => ({
75
- ...obj,
76
- });
77
- })(UnsupportedAddressException = exports.UnsupportedAddressException || (exports.UnsupportedAddressException = {}));
78
47
  var JobType;
79
48
  (function (JobType) {
80
49
  JobType["EXPORT"] = "EXPORT";
@@ -224,24 +193,6 @@ var CreateClusterResult;
224
193
  ...obj,
225
194
  });
226
195
  })(CreateClusterResult = exports.CreateClusterResult || (exports.CreateClusterResult = {}));
227
- var Ec2RequestFailedException;
228
- (function (Ec2RequestFailedException) {
229
- Ec2RequestFailedException.filterSensitiveLog = (obj) => ({
230
- ...obj,
231
- });
232
- })(Ec2RequestFailedException = exports.Ec2RequestFailedException || (exports.Ec2RequestFailedException = {}));
233
- var InvalidInputCombinationException;
234
- (function (InvalidInputCombinationException) {
235
- InvalidInputCombinationException.filterSensitiveLog = (obj) => ({
236
- ...obj,
237
- });
238
- })(InvalidInputCombinationException = exports.InvalidInputCombinationException || (exports.InvalidInputCombinationException = {}));
239
- var ClusterLimitExceededException;
240
- (function (ClusterLimitExceededException) {
241
- ClusterLimitExceededException.filterSensitiveLog = (obj) => ({
242
- ...obj,
243
- });
244
- })(ClusterLimitExceededException = exports.ClusterLimitExceededException || (exports.ClusterLimitExceededException = {}));
245
196
  var WirelessConnection;
246
197
  (function (WirelessConnection) {
247
198
  WirelessConnection.filterSensitiveLog = (obj) => ({
@@ -300,12 +251,6 @@ var CreateLongTermPricingResult;
300
251
  ...obj,
301
252
  });
302
253
  })(CreateLongTermPricingResult = exports.CreateLongTermPricingResult || (exports.CreateLongTermPricingResult = {}));
303
- var ConflictException;
304
- (function (ConflictException) {
305
- ConflictException.filterSensitiveLog = (obj) => ({
306
- ...obj,
307
- });
308
- })(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
309
254
  var CreateReturnShippingLabelRequest;
310
255
  (function (CreateReturnShippingLabelRequest) {
311
256
  CreateReturnShippingLabelRequest.filterSensitiveLog = (obj) => ({
@@ -325,12 +270,6 @@ var CreateReturnShippingLabelResult;
325
270
  ...obj,
326
271
  });
327
272
  })(CreateReturnShippingLabelResult = exports.CreateReturnShippingLabelResult || (exports.CreateReturnShippingLabelResult = {}));
328
- var ReturnShippingLabelAlreadyExistsException;
329
- (function (ReturnShippingLabelAlreadyExistsException) {
330
- ReturnShippingLabelAlreadyExistsException.filterSensitiveLog = (obj) => ({
331
- ...obj,
332
- });
333
- })(ReturnShippingLabelAlreadyExistsException = exports.ReturnShippingLabelAlreadyExistsException || (exports.ReturnShippingLabelAlreadyExistsException = {}));
334
273
  var DescribeAddressRequest;
335
274
  (function (DescribeAddressRequest) {
336
275
  DescribeAddressRequest.filterSensitiveLog = (obj) => ({
@@ -355,12 +294,6 @@ var DescribeAddressesResult;
355
294
  ...obj,
356
295
  });
357
296
  })(DescribeAddressesResult = exports.DescribeAddressesResult || (exports.DescribeAddressesResult = {}));
358
- var InvalidNextTokenException;
359
- (function (InvalidNextTokenException) {
360
- InvalidNextTokenException.filterSensitiveLog = (obj) => ({
361
- ...obj,
362
- });
363
- })(InvalidNextTokenException = exports.InvalidNextTokenException || (exports.InvalidNextTokenException = {}));
364
297
  var DescribeClusterRequest;
365
298
  (function (DescribeClusterRequest) {
366
299
  DescribeClusterRequest.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),
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
4
  "ap-northeast-1": {
5
5
  variants: [
6
- {
7
- hostname: "snowball.ap-northeast-1.amazonaws.com",
8
- tags: [],
9
- },
10
6
  {
11
7
  hostname: "snowball-fips.ap-northeast-1.amazonaws.com",
12
8
  tags: ["fips"],
@@ -15,10 +11,6 @@ var regionHash = {
15
11
  },
16
12
  "ap-northeast-2": {
17
13
  variants: [
18
- {
19
- hostname: "snowball.ap-northeast-2.amazonaws.com",
20
- tags: [],
21
- },
22
14
  {
23
15
  hostname: "snowball-fips.ap-northeast-2.amazonaws.com",
24
16
  tags: ["fips"],
@@ -27,10 +19,6 @@ var regionHash = {
27
19
  },
28
20
  "ap-northeast-3": {
29
21
  variants: [
30
- {
31
- hostname: "snowball.ap-northeast-3.amazonaws.com",
32
- tags: [],
33
- },
34
22
  {
35
23
  hostname: "snowball-fips.ap-northeast-3.amazonaws.com",
36
24
  tags: ["fips"],
@@ -39,10 +27,6 @@ var regionHash = {
39
27
  },
40
28
  "ap-south-1": {
41
29
  variants: [
42
- {
43
- hostname: "snowball.ap-south-1.amazonaws.com",
44
- tags: [],
45
- },
46
30
  {
47
31
  hostname: "snowball-fips.ap-south-1.amazonaws.com",
48
32
  tags: ["fips"],
@@ -51,10 +35,6 @@ var regionHash = {
51
35
  },
52
36
  "ap-southeast-1": {
53
37
  variants: [
54
- {
55
- hostname: "snowball.ap-southeast-1.amazonaws.com",
56
- tags: [],
57
- },
58
38
  {
59
39
  hostname: "snowball-fips.ap-southeast-1.amazonaws.com",
60
40
  tags: ["fips"],
@@ -63,10 +43,6 @@ var regionHash = {
63
43
  },
64
44
  "ap-southeast-2": {
65
45
  variants: [
66
- {
67
- hostname: "snowball.ap-southeast-2.amazonaws.com",
68
- tags: [],
69
- },
70
46
  {
71
47
  hostname: "snowball-fips.ap-southeast-2.amazonaws.com",
72
48
  tags: ["fips"],
@@ -75,10 +51,6 @@ var regionHash = {
75
51
  },
76
52
  "ca-central-1": {
77
53
  variants: [
78
- {
79
- hostname: "snowball.ca-central-1.amazonaws.com",
80
- tags: [],
81
- },
82
54
  {
83
55
  hostname: "snowball-fips.ca-central-1.amazonaws.com",
84
56
  tags: ["fips"],
@@ -87,10 +59,6 @@ var regionHash = {
87
59
  },
88
60
  "cn-north-1": {
89
61
  variants: [
90
- {
91
- hostname: "snowball.cn-north-1.amazonaws.com.cn",
92
- tags: [],
93
- },
94
62
  {
95
63
  hostname: "snowball-fips.cn-north-1.amazonaws.com.cn",
96
64
  tags: ["fips"],
@@ -99,10 +67,6 @@ var regionHash = {
99
67
  },
100
68
  "cn-northwest-1": {
101
69
  variants: [
102
- {
103
- hostname: "snowball.cn-northwest-1.amazonaws.com.cn",
104
- tags: [],
105
- },
106
70
  {
107
71
  hostname: "snowball-fips.cn-northwest-1.amazonaws.com.cn",
108
72
  tags: ["fips"],
@@ -111,10 +75,6 @@ var regionHash = {
111
75
  },
112
76
  "eu-central-1": {
113
77
  variants: [
114
- {
115
- hostname: "snowball.eu-central-1.amazonaws.com",
116
- tags: [],
117
- },
118
78
  {
119
79
  hostname: "snowball-fips.eu-central-1.amazonaws.com",
120
80
  tags: ["fips"],
@@ -123,10 +83,6 @@ var regionHash = {
123
83
  },
124
84
  "eu-west-1": {
125
85
  variants: [
126
- {
127
- hostname: "snowball.eu-west-1.amazonaws.com",
128
- tags: [],
129
- },
130
86
  {
131
87
  hostname: "snowball-fips.eu-west-1.amazonaws.com",
132
88
  tags: ["fips"],
@@ -135,10 +91,6 @@ var regionHash = {
135
91
  },
136
92
  "eu-west-2": {
137
93
  variants: [
138
- {
139
- hostname: "snowball.eu-west-2.amazonaws.com",
140
- tags: [],
141
- },
142
94
  {
143
95
  hostname: "snowball-fips.eu-west-2.amazonaws.com",
144
96
  tags: ["fips"],
@@ -147,10 +99,6 @@ var regionHash = {
147
99
  },
148
100
  "eu-west-3": {
149
101
  variants: [
150
- {
151
- hostname: "snowball.eu-west-3.amazonaws.com",
152
- tags: [],
153
- },
154
102
  {
155
103
  hostname: "snowball-fips.eu-west-3.amazonaws.com",
156
104
  tags: ["fips"],
@@ -159,10 +107,6 @@ var regionHash = {
159
107
  },
160
108
  "sa-east-1": {
161
109
  variants: [
162
- {
163
- hostname: "snowball.sa-east-1.amazonaws.com",
164
- tags: [],
165
- },
166
110
  {
167
111
  hostname: "snowball-fips.sa-east-1.amazonaws.com",
168
112
  tags: ["fips"],
@@ -171,10 +115,6 @@ var regionHash = {
171
115
  },
172
116
  "us-east-1": {
173
117
  variants: [
174
- {
175
- hostname: "snowball.us-east-1.amazonaws.com",
176
- tags: [],
177
- },
178
118
  {
179
119
  hostname: "snowball-fips.us-east-1.amazonaws.com",
180
120
  tags: ["fips"],
@@ -183,10 +123,6 @@ var regionHash = {
183
123
  },
184
124
  "us-east-2": {
185
125
  variants: [
186
- {
187
- hostname: "snowball.us-east-2.amazonaws.com",
188
- tags: [],
189
- },
190
126
  {
191
127
  hostname: "snowball-fips.us-east-2.amazonaws.com",
192
128
  tags: ["fips"],
@@ -195,10 +131,6 @@ var regionHash = {
195
131
  },
196
132
  "us-gov-east-1": {
197
133
  variants: [
198
- {
199
- hostname: "snowball.us-gov-east-1.amazonaws.com",
200
- tags: [],
201
- },
202
134
  {
203
135
  hostname: "snowball-fips.us-gov-east-1.amazonaws.com",
204
136
  tags: ["fips"],
@@ -207,10 +139,6 @@ var regionHash = {
207
139
  },
208
140
  "us-gov-west-1": {
209
141
  variants: [
210
- {
211
- hostname: "snowball.us-gov-west-1.amazonaws.com",
212
- tags: [],
213
- },
214
142
  {
215
143
  hostname: "snowball-fips.us-gov-west-1.amazonaws.com",
216
144
  tags: ["fips"],
@@ -219,10 +147,6 @@ var regionHash = {
219
147
  },
220
148
  "us-west-1": {
221
149
  variants: [
222
- {
223
- hostname: "snowball.us-west-1.amazonaws.com",
224
- tags: [],
225
- },
226
150
  {
227
151
  hostname: "snowball-fips.us-west-1.amazonaws.com",
228
152
  tags: ["fips"],
@@ -231,10 +155,6 @@ var regionHash = {
231
155
  },
232
156
  "us-west-2": {
233
157
  variants: [
234
- {
235
- hostname: "snowball.us-west-2.amazonaws.com",
236
- tags: [],
237
- },
238
158
  {
239
159
  hostname: "snowball-fips.us-west-2.amazonaws.com",
240
160
  tags: ["fips"],