@aws-sdk/client-snowball 3.36.1 → 3.40.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.
@@ -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 = {
@@ -123,23 +283,89 @@ var partitionHash = {
123
283
  "us-west-1",
124
284
  "us-west-2",
125
285
  ],
126
- hostname: "snowball.{region}.amazonaws.com",
286
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
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
+ ],
127
305
  },
128
306
  "aws-cn": {
129
307
  regions: ["cn-north-1", "cn-northwest-1", "fips-cn-north-1", "fips-cn-northwest-1"],
130
- hostname: "snowball.{region}.amazonaws.com.cn",
308
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
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
+ ],
131
327
  },
132
328
  "aws-iso": {
133
- regions: ["us-iso-east-1"],
134
- hostname: "snowball.{region}.c2s.ic.gov",
329
+ regions: ["us-iso-east-1", "us-iso-west-1"],
330
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
331
+ variants: [
332
+ {
333
+ hostname: "snowball.{region}.c2s.ic.gov",
334
+ tags: [],
335
+ },
336
+ ],
135
337
  },
136
338
  "aws-iso-b": {
137
339
  regions: ["us-isob-east-1"],
138
- hostname: "snowball.{region}.sc2s.sgov.gov",
340
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
341
+ variants: [
342
+ {
343
+ hostname: "snowball.{region}.sc2s.sgov.gov",
344
+ tags: [],
345
+ },
346
+ ],
139
347
  },
140
348
  "aws-us-gov": {
141
349
  regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
142
- hostname: "snowball.{region}.amazonaws.com",
350
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
351
+ variants: [
352
+ {
353
+ hostname: "snowball.{region}.amazonaws.com",
354
+ tags: [],
355
+ },
356
+ {
357
+ hostname: "snowball-fips.{region}.amazonaws.com",
358
+ tags: ["fips"],
359
+ },
360
+ {
361
+ hostname: "snowball-fips.{region}.api.aws",
362
+ tags: ["dualstack", "fips"],
363
+ },
364
+ {
365
+ hostname: "snowball.{region}.api.aws",
366
+ tags: ["dualstack"],
367
+ },
368
+ ],
143
369
  },
144
370
  };
145
371
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
package/dist-es/index.js CHANGED
@@ -1,31 +1,5 @@
1
- export * from "./SnowballClient";
2
1
  export * from "./Snowball";
3
- export * from "./commands/CancelClusterCommand";
4
- export * from "./commands/CancelJobCommand";
5
- export * from "./commands/CreateAddressCommand";
6
- export * from "./commands/CreateClusterCommand";
7
- export * from "./commands/CreateJobCommand";
8
- export * from "./commands/CreateLongTermPricingCommand";
9
- export * from "./commands/CreateReturnShippingLabelCommand";
10
- export * from "./commands/DescribeAddressCommand";
11
- export * from "./commands/DescribeAddressesCommand";
12
- export * from "./pagination/DescribeAddressesPaginator";
13
- export * from "./commands/DescribeClusterCommand";
14
- export * from "./commands/DescribeJobCommand";
15
- export * from "./commands/DescribeReturnShippingLabelCommand";
16
- export * from "./commands/GetJobManifestCommand";
17
- export * from "./commands/GetJobUnlockCodeCommand";
18
- export * from "./commands/GetSnowballUsageCommand";
19
- export * from "./commands/GetSoftwareUpdatesCommand";
20
- export * from "./commands/ListClusterJobsCommand";
21
- export * from "./commands/ListClustersCommand";
22
- export * from "./commands/ListCompatibleImagesCommand";
23
- export * from "./commands/ListJobsCommand";
24
- export * from "./pagination/ListJobsPaginator";
25
- export * from "./commands/ListLongTermPricingCommand";
26
- export * from "./commands/UpdateClusterCommand";
27
- export * from "./commands/UpdateJobCommand";
28
- export * from "./commands/UpdateJobShipmentStateCommand";
29
- export * from "./commands/UpdateLongTermPricingCommand";
30
- export * from "./pagination/Interfaces";
31
- export * from "./models/index";
2
+ export * from "./SnowballClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -0,0 +1,3 @@
1
+ export * from "./DescribeAddressesPaginator";
2
+ export * from "./Interfaces";
3
+ export * from "./ListJobsPaginator";
@@ -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
@@ -0,0 +1,25 @@
1
+ export * from "./CancelClusterCommand";
2
+ export * from "./CancelJobCommand";
3
+ export * from "./CreateAddressCommand";
4
+ export * from "./CreateClusterCommand";
5
+ export * from "./CreateJobCommand";
6
+ export * from "./CreateLongTermPricingCommand";
7
+ export * from "./CreateReturnShippingLabelCommand";
8
+ export * from "./DescribeAddressCommand";
9
+ export * from "./DescribeAddressesCommand";
10
+ export * from "./DescribeClusterCommand";
11
+ export * from "./DescribeJobCommand";
12
+ export * from "./DescribeReturnShippingLabelCommand";
13
+ export * from "./GetJobManifestCommand";
14
+ export * from "./GetJobUnlockCodeCommand";
15
+ export * from "./GetSnowballUsageCommand";
16
+ export * from "./GetSoftwareUpdatesCommand";
17
+ export * from "./ListClusterJobsCommand";
18
+ export * from "./ListClustersCommand";
19
+ export * from "./ListCompatibleImagesCommand";
20
+ export * from "./ListJobsCommand";
21
+ export * from "./ListLongTermPricingCommand";
22
+ export * from "./UpdateClusterCommand";
23
+ export * from "./UpdateJobCommand";
24
+ export * from "./UpdateJobShipmentStateCommand";
25
+ export * from "./UpdateLongTermPricingCommand";
@@ -1,31 +1,5 @@
1
- export * from "./SnowballClient";
2
1
  export * from "./Snowball";
3
- export * from "./commands/CancelClusterCommand";
4
- export * from "./commands/CancelJobCommand";
5
- export * from "./commands/CreateAddressCommand";
6
- export * from "./commands/CreateClusterCommand";
7
- export * from "./commands/CreateJobCommand";
8
- export * from "./commands/CreateLongTermPricingCommand";
9
- export * from "./commands/CreateReturnShippingLabelCommand";
10
- export * from "./commands/DescribeAddressCommand";
11
- export * from "./commands/DescribeAddressesCommand";
12
- export * from "./pagination/DescribeAddressesPaginator";
13
- export * from "./commands/DescribeClusterCommand";
14
- export * from "./commands/DescribeJobCommand";
15
- export * from "./commands/DescribeReturnShippingLabelCommand";
16
- export * from "./commands/GetJobManifestCommand";
17
- export * from "./commands/GetJobUnlockCodeCommand";
18
- export * from "./commands/GetSnowballUsageCommand";
19
- export * from "./commands/GetSoftwareUpdatesCommand";
20
- export * from "./commands/ListClusterJobsCommand";
21
- export * from "./commands/ListClustersCommand";
22
- export * from "./commands/ListCompatibleImagesCommand";
23
- export * from "./commands/ListJobsCommand";
24
- export * from "./pagination/ListJobsPaginator";
25
- export * from "./commands/ListLongTermPricingCommand";
26
- export * from "./commands/UpdateClusterCommand";
27
- export * from "./commands/UpdateJobCommand";
28
- export * from "./commands/UpdateJobShipmentStateCommand";
29
- export * from "./commands/UpdateLongTermPricingCommand";
30
- export * from "./pagination/Interfaces";
31
- export * from "./models/index";
2
+ export * from "./SnowballClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -0,0 +1,3 @@
1
+ export * from "./DescribeAddressesPaginator";
2
+ export * from "./Interfaces";
3
+ export * from "./ListJobsPaginator";
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: SnowballClientConfig) => {
16
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
17
  sha256: import("@aws-sdk/types").HashConstructor;
18
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  utf8Decoder: import("@aws-sdk/types").Decoder;
20
22
  utf8Encoder: import("@aws-sdk/types").Encoder;
21
23
  apiVersion: string;
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: SnowballClientConfig) => {
16
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
17
  sha256: import("@aws-sdk/types").HashConstructor;
18
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  utf8Decoder: import("@aws-sdk/types").Decoder;
20
22
  utf8Encoder: import("@aws-sdk/types").Encoder;
21
23
  apiVersion: string;
@@ -18,6 +18,8 @@ export declare const getRuntimeConfig: (config: SnowballClientConfig) => {
18
18
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
19
19
  retryMode: string | import("@aws-sdk/types").Provider<string>;
20
20
  logger: import("@aws-sdk/types").Logger;
21
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
23
  serviceId: string;
22
24
  region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
23
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
@@ -63,6 +63,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
63
63
 
64
64
  logger?: __Logger;
65
65
 
66
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
67
+
68
+ useFipsEndpoint?: boolean | __Provider<boolean>;
69
+
66
70
  serviceId?: string;
67
71
 
68
72
  region?: string | __Provider<string>;
@@ -0,0 +1,25 @@
1
+ export * from "./CancelClusterCommand";
2
+ export * from "./CancelJobCommand";
3
+ export * from "./CreateAddressCommand";
4
+ export * from "./CreateClusterCommand";
5
+ export * from "./CreateJobCommand";
6
+ export * from "./CreateLongTermPricingCommand";
7
+ export * from "./CreateReturnShippingLabelCommand";
8
+ export * from "./DescribeAddressCommand";
9
+ export * from "./DescribeAddressesCommand";
10
+ export * from "./DescribeClusterCommand";
11
+ export * from "./DescribeJobCommand";
12
+ export * from "./DescribeReturnShippingLabelCommand";
13
+ export * from "./GetJobManifestCommand";
14
+ export * from "./GetJobUnlockCodeCommand";
15
+ export * from "./GetSnowballUsageCommand";
16
+ export * from "./GetSoftwareUpdatesCommand";
17
+ export * from "./ListClusterJobsCommand";
18
+ export * from "./ListClustersCommand";
19
+ export * from "./ListCompatibleImagesCommand";
20
+ export * from "./ListJobsCommand";
21
+ export * from "./ListLongTermPricingCommand";
22
+ export * from "./UpdateClusterCommand";
23
+ export * from "./UpdateJobCommand";
24
+ export * from "./UpdateJobShipmentStateCommand";
25
+ export * from "./UpdateLongTermPricingCommand";