@aws-sdk/client-snowball 3.39.0 → 3.43.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist-cjs/endpoints.js +294 -65
  3. package/dist-cjs/runtimeConfig.browser.js +6 -3
  4. package/dist-cjs/runtimeConfig.js +5 -3
  5. package/dist-es/endpoints.js +294 -65
  6. package/dist-es/runtimeConfig.browser.js +3 -2
  7. package/dist-es/runtimeConfig.js +3 -3
  8. package/dist-types/SnowballClient.d.ts +8 -0
  9. package/dist-types/commands/CancelClusterCommand.d.ts +1 -1
  10. package/dist-types/commands/CancelJobCommand.d.ts +1 -1
  11. package/dist-types/commands/CreateAddressCommand.d.ts +1 -1
  12. package/dist-types/commands/CreateClusterCommand.d.ts +1 -1
  13. package/dist-types/commands/CreateJobCommand.d.ts +1 -1
  14. package/dist-types/commands/CreateLongTermPricingCommand.d.ts +1 -1
  15. package/dist-types/commands/CreateReturnShippingLabelCommand.d.ts +1 -1
  16. package/dist-types/commands/DescribeAddressCommand.d.ts +1 -1
  17. package/dist-types/commands/DescribeAddressesCommand.d.ts +1 -1
  18. package/dist-types/commands/DescribeClusterCommand.d.ts +1 -1
  19. package/dist-types/commands/DescribeJobCommand.d.ts +1 -1
  20. package/dist-types/commands/DescribeReturnShippingLabelCommand.d.ts +1 -1
  21. package/dist-types/commands/GetJobManifestCommand.d.ts +1 -1
  22. package/dist-types/commands/GetJobUnlockCodeCommand.d.ts +1 -1
  23. package/dist-types/commands/GetSnowballUsageCommand.d.ts +1 -1
  24. package/dist-types/commands/GetSoftwareUpdatesCommand.d.ts +1 -1
  25. package/dist-types/commands/ListClusterJobsCommand.d.ts +1 -1
  26. package/dist-types/commands/ListClustersCommand.d.ts +1 -1
  27. package/dist-types/commands/ListCompatibleImagesCommand.d.ts +1 -1
  28. package/dist-types/commands/ListJobsCommand.d.ts +1 -1
  29. package/dist-types/commands/ListLongTermPricingCommand.d.ts +1 -1
  30. package/dist-types/commands/UpdateClusterCommand.d.ts +1 -1
  31. package/dist-types/commands/UpdateJobCommand.d.ts +1 -1
  32. package/dist-types/commands/UpdateJobShipmentStateCommand.d.ts +1 -1
  33. package/dist-types/commands/UpdateLongTermPricingCommand.d.ts +1 -1
  34. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  35. package/dist-types/runtimeConfig.d.ts +2 -0
  36. package/dist-types/runtimeConfig.native.d.ts +2 -0
  37. package/dist-types/ts3.4/SnowballClient.d.ts +4 -0
  38. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  39. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  40. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  41. package/package.json +23 -23
@@ -1,85 +1,245 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
- "fips-ap-northeast-1": {
5
- hostname: "snowball-fips.ap-northeast-1.amazonaws.com",
6
- signingRegion: "ap-northeast-1",
4
+ "ap-northeast-1": {
5
+ variants: [
6
+ {
7
+ hostname: "snowball.ap-northeast-1.amazonaws.com",
8
+ tags: [],
9
+ },
10
+ {
11
+ hostname: "snowball-fips.ap-northeast-1.amazonaws.com",
12
+ tags: ["fips"],
13
+ },
14
+ ],
7
15
  },
8
- "fips-ap-northeast-2": {
9
- hostname: "snowball-fips.ap-northeast-2.amazonaws.com",
10
- signingRegion: "ap-northeast-2",
16
+ "ap-northeast-2": {
17
+ variants: [
18
+ {
19
+ hostname: "snowball.ap-northeast-2.amazonaws.com",
20
+ tags: [],
21
+ },
22
+ {
23
+ hostname: "snowball-fips.ap-northeast-2.amazonaws.com",
24
+ tags: ["fips"],
25
+ },
26
+ ],
11
27
  },
12
- "fips-ap-northeast-3": {
13
- hostname: "snowball-fips.ap-northeast-3.amazonaws.com",
14
- signingRegion: "ap-northeast-3",
28
+ "ap-northeast-3": {
29
+ variants: [
30
+ {
31
+ hostname: "snowball.ap-northeast-3.amazonaws.com",
32
+ tags: [],
33
+ },
34
+ {
35
+ hostname: "snowball-fips.ap-northeast-3.amazonaws.com",
36
+ tags: ["fips"],
37
+ },
38
+ ],
15
39
  },
16
- "fips-ap-south-1": {
17
- hostname: "snowball-fips.ap-south-1.amazonaws.com",
18
- signingRegion: "ap-south-1",
40
+ "ap-south-1": {
41
+ variants: [
42
+ {
43
+ hostname: "snowball.ap-south-1.amazonaws.com",
44
+ tags: [],
45
+ },
46
+ {
47
+ hostname: "snowball-fips.ap-south-1.amazonaws.com",
48
+ tags: ["fips"],
49
+ },
50
+ ],
19
51
  },
20
- "fips-ap-southeast-1": {
21
- hostname: "snowball-fips.ap-southeast-1.amazonaws.com",
22
- signingRegion: "ap-southeast-1",
52
+ "ap-southeast-1": {
53
+ variants: [
54
+ {
55
+ hostname: "snowball.ap-southeast-1.amazonaws.com",
56
+ tags: [],
57
+ },
58
+ {
59
+ hostname: "snowball-fips.ap-southeast-1.amazonaws.com",
60
+ tags: ["fips"],
61
+ },
62
+ ],
23
63
  },
24
- "fips-ap-southeast-2": {
25
- hostname: "snowball-fips.ap-southeast-2.amazonaws.com",
26
- signingRegion: "ap-southeast-2",
64
+ "ap-southeast-2": {
65
+ variants: [
66
+ {
67
+ hostname: "snowball.ap-southeast-2.amazonaws.com",
68
+ tags: [],
69
+ },
70
+ {
71
+ hostname: "snowball-fips.ap-southeast-2.amazonaws.com",
72
+ tags: ["fips"],
73
+ },
74
+ ],
27
75
  },
28
- "fips-ca-central-1": {
29
- hostname: "snowball-fips.ca-central-1.amazonaws.com",
30
- signingRegion: "ca-central-1",
76
+ "ca-central-1": {
77
+ variants: [
78
+ {
79
+ hostname: "snowball.ca-central-1.amazonaws.com",
80
+ tags: [],
81
+ },
82
+ {
83
+ hostname: "snowball-fips.ca-central-1.amazonaws.com",
84
+ tags: ["fips"],
85
+ },
86
+ ],
31
87
  },
32
- "fips-cn-north-1": {
33
- hostname: "snowball-fips.cn-north-1.amazonaws.com.cn",
34
- signingRegion: "cn-north-1",
88
+ "cn-north-1": {
89
+ variants: [
90
+ {
91
+ hostname: "snowball.cn-north-1.amazonaws.com.cn",
92
+ tags: [],
93
+ },
94
+ {
95
+ hostname: "snowball-fips.cn-north-1.amazonaws.com.cn",
96
+ tags: ["fips"],
97
+ },
98
+ ],
35
99
  },
36
- "fips-cn-northwest-1": {
37
- hostname: "snowball-fips.cn-northwest-1.amazonaws.com.cn",
38
- signingRegion: "cn-northwest-1",
100
+ "cn-northwest-1": {
101
+ variants: [
102
+ {
103
+ hostname: "snowball.cn-northwest-1.amazonaws.com.cn",
104
+ tags: [],
105
+ },
106
+ {
107
+ hostname: "snowball-fips.cn-northwest-1.amazonaws.com.cn",
108
+ tags: ["fips"],
109
+ },
110
+ ],
39
111
  },
40
- "fips-eu-central-1": {
41
- hostname: "snowball-fips.eu-central-1.amazonaws.com",
42
- signingRegion: "eu-central-1",
112
+ "eu-central-1": {
113
+ variants: [
114
+ {
115
+ hostname: "snowball.eu-central-1.amazonaws.com",
116
+ tags: [],
117
+ },
118
+ {
119
+ hostname: "snowball-fips.eu-central-1.amazonaws.com",
120
+ tags: ["fips"],
121
+ },
122
+ ],
43
123
  },
44
- "fips-eu-west-1": {
45
- hostname: "snowball-fips.eu-west-1.amazonaws.com",
46
- signingRegion: "eu-west-1",
124
+ "eu-west-1": {
125
+ variants: [
126
+ {
127
+ hostname: "snowball.eu-west-1.amazonaws.com",
128
+ tags: [],
129
+ },
130
+ {
131
+ hostname: "snowball-fips.eu-west-1.amazonaws.com",
132
+ tags: ["fips"],
133
+ },
134
+ ],
47
135
  },
48
- "fips-eu-west-2": {
49
- hostname: "snowball-fips.eu-west-2.amazonaws.com",
50
- signingRegion: "eu-west-2",
136
+ "eu-west-2": {
137
+ variants: [
138
+ {
139
+ hostname: "snowball.eu-west-2.amazonaws.com",
140
+ tags: [],
141
+ },
142
+ {
143
+ hostname: "snowball-fips.eu-west-2.amazonaws.com",
144
+ tags: ["fips"],
145
+ },
146
+ ],
51
147
  },
52
- "fips-eu-west-3": {
53
- hostname: "snowball-fips.eu-west-3.amazonaws.com",
54
- signingRegion: "eu-west-3",
148
+ "eu-west-3": {
149
+ variants: [
150
+ {
151
+ hostname: "snowball.eu-west-3.amazonaws.com",
152
+ tags: [],
153
+ },
154
+ {
155
+ hostname: "snowball-fips.eu-west-3.amazonaws.com",
156
+ tags: ["fips"],
157
+ },
158
+ ],
55
159
  },
56
- "fips-sa-east-1": {
57
- hostname: "snowball-fips.sa-east-1.amazonaws.com",
58
- signingRegion: "sa-east-1",
160
+ "sa-east-1": {
161
+ variants: [
162
+ {
163
+ hostname: "snowball.sa-east-1.amazonaws.com",
164
+ tags: [],
165
+ },
166
+ {
167
+ hostname: "snowball-fips.sa-east-1.amazonaws.com",
168
+ tags: ["fips"],
169
+ },
170
+ ],
59
171
  },
60
- "fips-us-east-1": {
61
- hostname: "snowball-fips.us-east-1.amazonaws.com",
62
- signingRegion: "us-east-1",
172
+ "us-east-1": {
173
+ variants: [
174
+ {
175
+ hostname: "snowball.us-east-1.amazonaws.com",
176
+ tags: [],
177
+ },
178
+ {
179
+ hostname: "snowball-fips.us-east-1.amazonaws.com",
180
+ tags: ["fips"],
181
+ },
182
+ ],
63
183
  },
64
- "fips-us-east-2": {
65
- hostname: "snowball-fips.us-east-2.amazonaws.com",
66
- signingRegion: "us-east-2",
184
+ "us-east-2": {
185
+ variants: [
186
+ {
187
+ hostname: "snowball.us-east-2.amazonaws.com",
188
+ tags: [],
189
+ },
190
+ {
191
+ hostname: "snowball-fips.us-east-2.amazonaws.com",
192
+ tags: ["fips"],
193
+ },
194
+ ],
67
195
  },
68
- "fips-us-gov-east-1": {
69
- hostname: "snowball-fips.us-gov-east-1.amazonaws.com",
70
- signingRegion: "us-gov-east-1",
196
+ "us-gov-east-1": {
197
+ variants: [
198
+ {
199
+ hostname: "snowball.us-gov-east-1.amazonaws.com",
200
+ tags: [],
201
+ },
202
+ {
203
+ hostname: "snowball-fips.us-gov-east-1.amazonaws.com",
204
+ tags: ["fips"],
205
+ },
206
+ ],
71
207
  },
72
- "fips-us-gov-west-1": {
73
- hostname: "snowball-fips.us-gov-west-1.amazonaws.com",
74
- signingRegion: "us-gov-west-1",
208
+ "us-gov-west-1": {
209
+ variants: [
210
+ {
211
+ hostname: "snowball.us-gov-west-1.amazonaws.com",
212
+ tags: [],
213
+ },
214
+ {
215
+ hostname: "snowball-fips.us-gov-west-1.amazonaws.com",
216
+ tags: ["fips"],
217
+ },
218
+ ],
75
219
  },
76
- "fips-us-west-1": {
77
- hostname: "snowball-fips.us-west-1.amazonaws.com",
78
- signingRegion: "us-west-1",
220
+ "us-west-1": {
221
+ variants: [
222
+ {
223
+ hostname: "snowball.us-west-1.amazonaws.com",
224
+ tags: [],
225
+ },
226
+ {
227
+ hostname: "snowball-fips.us-west-1.amazonaws.com",
228
+ tags: ["fips"],
229
+ },
230
+ ],
79
231
  },
80
- "fips-us-west-2": {
81
- hostname: "snowball-fips.us-west-2.amazonaws.com",
82
- signingRegion: "us-west-2",
232
+ "us-west-2": {
233
+ variants: [
234
+ {
235
+ hostname: "snowball.us-west-2.amazonaws.com",
236
+ tags: [],
237
+ },
238
+ {
239
+ hostname: "snowball-fips.us-west-2.amazonaws.com",
240
+ tags: ["fips"],
241
+ },
242
+ ],
83
243
  },
84
244
  };
85
245
  var partitionHash = {
@@ -124,27 +284,96 @@ var partitionHash = {
124
284
  "us-west-2",
125
285
  ],
126
286
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
127
- hostname: "snowball.{region}.amazonaws.com",
287
+ variants: [
288
+ {
289
+ hostname: "snowball.{region}.amazonaws.com",
290
+ tags: [],
291
+ },
292
+ {
293
+ hostname: "snowball-fips.{region}.amazonaws.com",
294
+ tags: ["fips"],
295
+ },
296
+ {
297
+ hostname: "snowball-fips.{region}.api.aws",
298
+ tags: ["dualstack", "fips"],
299
+ },
300
+ {
301
+ hostname: "snowball.{region}.api.aws",
302
+ tags: ["dualstack"],
303
+ },
304
+ ],
128
305
  },
129
306
  "aws-cn": {
130
307
  regions: ["cn-north-1", "cn-northwest-1", "fips-cn-north-1", "fips-cn-northwest-1"],
131
308
  regionRegex: "^cn\\-\\w+\\-\\d+$",
132
- hostname: "snowball.{region}.amazonaws.com.cn",
309
+ variants: [
310
+ {
311
+ hostname: "snowball.{region}.amazonaws.com.cn",
312
+ tags: [],
313
+ },
314
+ {
315
+ hostname: "snowball-fips.{region}.amazonaws.com.cn",
316
+ tags: ["fips"],
317
+ },
318
+ {
319
+ hostname: "snowball-fips.{region}.api.amazonwebservices.com.cn",
320
+ tags: ["dualstack", "fips"],
321
+ },
322
+ {
323
+ hostname: "snowball.{region}.api.amazonwebservices.com.cn",
324
+ tags: ["dualstack"],
325
+ },
326
+ ],
133
327
  },
134
328
  "aws-iso": {
135
329
  regions: ["us-iso-east-1", "us-iso-west-1"],
136
330
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
137
- hostname: "snowball.{region}.c2s.ic.gov",
331
+ variants: [
332
+ {
333
+ hostname: "snowball.{region}.c2s.ic.gov",
334
+ tags: [],
335
+ },
336
+ {
337
+ hostname: "snowball-fips.{region}.c2s.ic.gov",
338
+ tags: ["fips"],
339
+ },
340
+ ],
138
341
  },
139
342
  "aws-iso-b": {
140
343
  regions: ["us-isob-east-1"],
141
344
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
142
- hostname: "snowball.{region}.sc2s.sgov.gov",
345
+ variants: [
346
+ {
347
+ hostname: "snowball.{region}.sc2s.sgov.gov",
348
+ tags: [],
349
+ },
350
+ {
351
+ hostname: "snowball-fips.{region}.sc2s.sgov.gov",
352
+ tags: ["fips"],
353
+ },
354
+ ],
143
355
  },
144
356
  "aws-us-gov": {
145
357
  regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
146
358
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
147
- hostname: "snowball.{region}.amazonaws.com",
359
+ variants: [
360
+ {
361
+ hostname: "snowball.{region}.amazonaws.com",
362
+ tags: [],
363
+ },
364
+ {
365
+ hostname: "snowball-fips.{region}.amazonaws.com",
366
+ tags: ["fips"],
367
+ },
368
+ {
369
+ hostname: "snowball-fips.{region}.api.aws",
370
+ tags: ["dualstack", "fips"],
371
+ },
372
+ {
373
+ hostname: "snowball.{region}.api.aws",
374
+ tags: ["dualstack"],
375
+ },
376
+ ],
148
377
  },
149
378
  };
150
379
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
@@ -1,6 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
5
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
13
  export var getRuntimeConfig = function (config) {
13
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
14
15
  var clientSharedValues = getSharedRuntimeConfig(config);
15
- 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, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
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 });
16
17
  };
@@ -1,7 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
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
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  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, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
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 });
21
21
  };
@@ -101,6 +101,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
101
101
  * Optional logger for logging debug/info/warn/error.
102
102
  */
103
103
  logger?: __Logger;
104
+ /**
105
+ * Enables IPv6/IPv4 dualstack endpoint.
106
+ */
107
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
108
+ /**
109
+ * Enables FIPS compatible endpoints.
110
+ */
111
+ useFipsEndpoint?: boolean | __Provider<boolean>;
104
112
  /**
105
113
  * Unique service identifier.
106
114
  * @internal
@@ -22,7 +22,7 @@ export interface CancelClusterCommandOutput extends CancelClusterResult, __Metad
22
22
  *
23
23
  * @see {@link CancelClusterCommandInput} for command's `input` shape.
24
24
  * @see {@link CancelClusterCommandOutput} for command's `response` shape.
25
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
25
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
26
26
  *
27
27
  */
28
28
  export declare class CancelClusterCommand extends $Command<CancelClusterCommandInput, CancelClusterCommandOutput, SnowballClientResolvedConfig> {
@@ -23,7 +23,7 @@ export interface CancelJobCommandOutput extends CancelJobResult, __MetadataBeare
23
23
  *
24
24
  * @see {@link CancelJobCommandInput} for command's `input` shape.
25
25
  * @see {@link CancelJobCommandOutput} for command's `response` shape.
26
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
26
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
27
27
  *
28
28
  */
29
29
  export declare class CancelJobCommand extends $Command<CancelJobCommandInput, CancelJobCommandOutput, SnowballClientResolvedConfig> {
@@ -23,7 +23,7 @@ export interface CreateAddressCommandOutput extends CreateAddressResult, __Metad
23
23
  *
24
24
  * @see {@link CreateAddressCommandInput} for command's `input` shape.
25
25
  * @see {@link CreateAddressCommandOutput} for command's `response` shape.
26
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
26
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
27
27
  *
28
28
  */
29
29
  export declare class CreateAddressCommand extends $Command<CreateAddressCommandInput, CreateAddressCommandOutput, SnowballClientResolvedConfig> {
@@ -21,7 +21,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResult, __Metad
21
21
  *
22
22
  * @see {@link CreateClusterCommandInput} for command's `input` shape.
23
23
  * @see {@link CreateClusterCommandOutput} for command's `response` shape.
24
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
24
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
25
25
  *
26
26
  */
27
27
  export declare class CreateClusterCommand extends $Command<CreateClusterCommandInput, CreateClusterCommandOutput, SnowballClientResolvedConfig> {
@@ -151,7 +151,7 @@ export interface CreateJobCommandOutput extends CreateJobResult, __MetadataBeare
151
151
  *
152
152
  * @see {@link CreateJobCommandInput} for command's `input` shape.
153
153
  * @see {@link CreateJobCommandOutput} for command's `response` shape.
154
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
154
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
155
155
  *
156
156
  */
157
157
  export declare class CreateJobCommand extends $Command<CreateJobCommandInput, CreateJobCommandOutput, SnowballClientResolvedConfig> {
@@ -23,7 +23,7 @@ export interface CreateLongTermPricingCommandOutput extends CreateLongTermPricin
23
23
  *
24
24
  * @see {@link CreateLongTermPricingCommandInput} for command's `input` shape.
25
25
  * @see {@link CreateLongTermPricingCommandOutput} for command's `response` shape.
26
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
26
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
27
27
  *
28
28
  */
29
29
  export declare class CreateLongTermPricingCommand extends $Command<CreateLongTermPricingCommandInput, CreateLongTermPricingCommandOutput, SnowballClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface CreateReturnShippingLabelCommandOutput extends CreateReturnShip
20
20
  *
21
21
  * @see {@link CreateReturnShippingLabelCommandInput} for command's `input` shape.
22
22
  * @see {@link CreateReturnShippingLabelCommandOutput} for command's `response` shape.
23
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class CreateReturnShippingLabelCommand extends $Command<CreateReturnShippingLabelCommandInput, CreateReturnShippingLabelCommandOutput, SnowballClientResolvedConfig> {
@@ -21,7 +21,7 @@ export interface DescribeAddressCommandOutput extends DescribeAddressResult, __M
21
21
  *
22
22
  * @see {@link DescribeAddressCommandInput} for command's `input` shape.
23
23
  * @see {@link DescribeAddressCommandOutput} for command's `response` shape.
24
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
24
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
25
25
  *
26
26
  */
27
27
  export declare class DescribeAddressCommand extends $Command<DescribeAddressCommandInput, DescribeAddressCommandOutput, SnowballClientResolvedConfig> {
@@ -22,7 +22,7 @@ export interface DescribeAddressesCommandOutput extends DescribeAddressesResult,
22
22
  *
23
23
  * @see {@link DescribeAddressesCommandInput} for command's `input` shape.
24
24
  * @see {@link DescribeAddressesCommandOutput} for command's `response` shape.
25
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
25
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
26
26
  *
27
27
  */
28
28
  export declare class DescribeAddressesCommand extends $Command<DescribeAddressesCommandInput, DescribeAddressesCommandOutput, SnowballClientResolvedConfig> {
@@ -21,7 +21,7 @@ export interface DescribeClusterCommandOutput extends DescribeClusterResult, __M
21
21
  *
22
22
  * @see {@link DescribeClusterCommandInput} for command's `input` shape.
23
23
  * @see {@link DescribeClusterCommandOutput} for command's `response` shape.
24
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
24
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
25
25
  *
26
26
  */
27
27
  export declare class DescribeClusterCommand extends $Command<DescribeClusterCommandInput, DescribeClusterCommandOutput, SnowballClientResolvedConfig> {
@@ -21,7 +21,7 @@ export interface DescribeJobCommandOutput extends DescribeJobResult, __MetadataB
21
21
  *
22
22
  * @see {@link DescribeJobCommandInput} for command's `input` shape.
23
23
  * @see {@link DescribeJobCommandOutput} for command's `response` shape.
24
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
24
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
25
25
  *
26
26
  */
27
27
  export declare class DescribeJobCommand extends $Command<DescribeJobCommandInput, DescribeJobCommandOutput, SnowballClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface DescribeReturnShippingLabelCommandOutput extends DescribeReturn
20
20
  *
21
21
  * @see {@link DescribeReturnShippingLabelCommandInput} for command's `input` shape.
22
22
  * @see {@link DescribeReturnShippingLabelCommandOutput} for command's `response` shape.
23
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class DescribeReturnShippingLabelCommand extends $Command<DescribeReturnShippingLabelCommandInput, DescribeReturnShippingLabelCommandOutput, SnowballClientResolvedConfig> {
@@ -38,7 +38,7 @@ export interface GetJobManifestCommandOutput extends GetJobManifestResult, __Met
38
38
  *
39
39
  * @see {@link GetJobManifestCommandInput} for command's `input` shape.
40
40
  * @see {@link GetJobManifestCommandOutput} for command's `response` shape.
41
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
41
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
42
42
  *
43
43
  */
44
44
  export declare class GetJobManifestCommand extends $Command<GetJobManifestCommandInput, GetJobManifestCommandOutput, SnowballClientResolvedConfig> {
@@ -32,7 +32,7 @@ export interface GetJobUnlockCodeCommandOutput extends GetJobUnlockCodeResult, _
32
32
  *
33
33
  * @see {@link GetJobUnlockCodeCommandInput} for command's `input` shape.
34
34
  * @see {@link GetJobUnlockCodeCommandOutput} for command's `response` shape.
35
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
35
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
36
36
  *
37
37
  */
38
38
  export declare class GetJobUnlockCodeCommand extends $Command<GetJobUnlockCodeCommandInput, GetJobUnlockCodeCommandOutput, SnowballClientResolvedConfig> {
@@ -24,7 +24,7 @@ export interface GetSnowballUsageCommandOutput extends GetSnowballUsageResult, _
24
24
  *
25
25
  * @see {@link GetSnowballUsageCommandInput} for command's `input` shape.
26
26
  * @see {@link GetSnowballUsageCommandOutput} for command's `response` shape.
27
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
27
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
28
28
  *
29
29
  */
30
30
  export declare class GetSnowballUsageCommand extends $Command<GetSnowballUsageCommandInput, GetSnowballUsageCommandOutput, SnowballClientResolvedConfig> {
@@ -21,7 +21,7 @@ export interface GetSoftwareUpdatesCommandOutput extends GetSoftwareUpdatesResul
21
21
  *
22
22
  * @see {@link GetSoftwareUpdatesCommandInput} for command's `input` shape.
23
23
  * @see {@link GetSoftwareUpdatesCommandOutput} for command's `response` shape.
24
- * @see {@link SnowballClientResolvedConfig | config} for command's `input` shape.
24
+ * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
25
25
  *
26
26
  */
27
27
  export declare class GetSoftwareUpdatesCommand extends $Command<GetSoftwareUpdatesCommandInput, GetSoftwareUpdatesCommandOutput, SnowballClientResolvedConfig> {