@aws-sdk/client-efs 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 (43) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist-cjs/endpoints.js +360 -83
  3. package/dist-cjs/runtimeConfig.browser.js +6 -3
  4. package/dist-cjs/runtimeConfig.js +5 -3
  5. package/dist-es/endpoints.js +360 -83
  6. package/dist-es/runtimeConfig.browser.js +3 -2
  7. package/dist-es/runtimeConfig.js +3 -3
  8. package/dist-types/EFSClient.d.ts +8 -0
  9. package/dist-types/commands/CreateAccessPointCommand.d.ts +1 -1
  10. package/dist-types/commands/CreateFileSystemCommand.d.ts +1 -1
  11. package/dist-types/commands/CreateMountTargetCommand.d.ts +1 -1
  12. package/dist-types/commands/CreateTagsCommand.d.ts +1 -1
  13. package/dist-types/commands/DeleteAccessPointCommand.d.ts +1 -1
  14. package/dist-types/commands/DeleteFileSystemCommand.d.ts +1 -1
  15. package/dist-types/commands/DeleteFileSystemPolicyCommand.d.ts +1 -1
  16. package/dist-types/commands/DeleteMountTargetCommand.d.ts +1 -1
  17. package/dist-types/commands/DeleteTagsCommand.d.ts +1 -1
  18. package/dist-types/commands/DescribeAccessPointsCommand.d.ts +1 -1
  19. package/dist-types/commands/DescribeAccountPreferencesCommand.d.ts +1 -1
  20. package/dist-types/commands/DescribeBackupPolicyCommand.d.ts +1 -1
  21. package/dist-types/commands/DescribeFileSystemPolicyCommand.d.ts +1 -1
  22. package/dist-types/commands/DescribeFileSystemsCommand.d.ts +1 -1
  23. package/dist-types/commands/DescribeLifecycleConfigurationCommand.d.ts +1 -1
  24. package/dist-types/commands/DescribeMountTargetSecurityGroupsCommand.d.ts +1 -1
  25. package/dist-types/commands/DescribeMountTargetsCommand.d.ts +1 -1
  26. package/dist-types/commands/DescribeTagsCommand.d.ts +1 -1
  27. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  28. package/dist-types/commands/ModifyMountTargetSecurityGroupsCommand.d.ts +1 -1
  29. package/dist-types/commands/PutAccountPreferencesCommand.d.ts +1 -1
  30. package/dist-types/commands/PutBackupPolicyCommand.d.ts +1 -1
  31. package/dist-types/commands/PutFileSystemPolicyCommand.d.ts +1 -1
  32. package/dist-types/commands/PutLifecycleConfigurationCommand.d.ts +1 -1
  33. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  34. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  35. package/dist-types/commands/UpdateFileSystemCommand.d.ts +1 -1
  36. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  37. package/dist-types/runtimeConfig.d.ts +2 -0
  38. package/dist-types/runtimeConfig.native.d.ts +2 -0
  39. package/dist-types/ts3.4/EFSClient.d.ts +4 -0
  40. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  41. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  42. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  43. package/package.json +23 -23
@@ -1,109 +1,317 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
- "fips-af-south-1": {
5
- hostname: "elasticfilesystem-fips.af-south-1.amazonaws.com",
6
- signingRegion: "af-south-1",
4
+ "af-south-1": {
5
+ variants: [
6
+ {
7
+ hostname: "elasticfilesystem.af-south-1.amazonaws.com",
8
+ tags: [],
9
+ },
10
+ {
11
+ hostname: "elasticfilesystem-fips.af-south-1.amazonaws.com",
12
+ tags: ["fips"],
13
+ },
14
+ ],
7
15
  },
8
- "fips-ap-east-1": {
9
- hostname: "elasticfilesystem-fips.ap-east-1.amazonaws.com",
10
- signingRegion: "ap-east-1",
16
+ "ap-east-1": {
17
+ variants: [
18
+ {
19
+ hostname: "elasticfilesystem.ap-east-1.amazonaws.com",
20
+ tags: [],
21
+ },
22
+ {
23
+ hostname: "elasticfilesystem-fips.ap-east-1.amazonaws.com",
24
+ tags: ["fips"],
25
+ },
26
+ ],
11
27
  },
12
- "fips-ap-northeast-1": {
13
- hostname: "elasticfilesystem-fips.ap-northeast-1.amazonaws.com",
14
- signingRegion: "ap-northeast-1",
28
+ "ap-northeast-1": {
29
+ variants: [
30
+ {
31
+ hostname: "elasticfilesystem.ap-northeast-1.amazonaws.com",
32
+ tags: [],
33
+ },
34
+ {
35
+ hostname: "elasticfilesystem-fips.ap-northeast-1.amazonaws.com",
36
+ tags: ["fips"],
37
+ },
38
+ ],
15
39
  },
16
- "fips-ap-northeast-2": {
17
- hostname: "elasticfilesystem-fips.ap-northeast-2.amazonaws.com",
18
- signingRegion: "ap-northeast-2",
40
+ "ap-northeast-2": {
41
+ variants: [
42
+ {
43
+ hostname: "elasticfilesystem.ap-northeast-2.amazonaws.com",
44
+ tags: [],
45
+ },
46
+ {
47
+ hostname: "elasticfilesystem-fips.ap-northeast-2.amazonaws.com",
48
+ tags: ["fips"],
49
+ },
50
+ ],
19
51
  },
20
- "fips-ap-northeast-3": {
21
- hostname: "elasticfilesystem-fips.ap-northeast-3.amazonaws.com",
22
- signingRegion: "ap-northeast-3",
52
+ "ap-northeast-3": {
53
+ variants: [
54
+ {
55
+ hostname: "elasticfilesystem.ap-northeast-3.amazonaws.com",
56
+ tags: [],
57
+ },
58
+ {
59
+ hostname: "elasticfilesystem-fips.ap-northeast-3.amazonaws.com",
60
+ tags: ["fips"],
61
+ },
62
+ ],
23
63
  },
24
- "fips-ap-south-1": {
25
- hostname: "elasticfilesystem-fips.ap-south-1.amazonaws.com",
26
- signingRegion: "ap-south-1",
64
+ "ap-south-1": {
65
+ variants: [
66
+ {
67
+ hostname: "elasticfilesystem.ap-south-1.amazonaws.com",
68
+ tags: [],
69
+ },
70
+ {
71
+ hostname: "elasticfilesystem-fips.ap-south-1.amazonaws.com",
72
+ tags: ["fips"],
73
+ },
74
+ ],
27
75
  },
28
- "fips-ap-southeast-1": {
29
- hostname: "elasticfilesystem-fips.ap-southeast-1.amazonaws.com",
30
- signingRegion: "ap-southeast-1",
76
+ "ap-southeast-1": {
77
+ variants: [
78
+ {
79
+ hostname: "elasticfilesystem.ap-southeast-1.amazonaws.com",
80
+ tags: [],
81
+ },
82
+ {
83
+ hostname: "elasticfilesystem-fips.ap-southeast-1.amazonaws.com",
84
+ tags: ["fips"],
85
+ },
86
+ ],
31
87
  },
32
- "fips-ap-southeast-2": {
33
- hostname: "elasticfilesystem-fips.ap-southeast-2.amazonaws.com",
34
- signingRegion: "ap-southeast-2",
88
+ "ap-southeast-2": {
89
+ variants: [
90
+ {
91
+ hostname: "elasticfilesystem.ap-southeast-2.amazonaws.com",
92
+ tags: [],
93
+ },
94
+ {
95
+ hostname: "elasticfilesystem-fips.ap-southeast-2.amazonaws.com",
96
+ tags: ["fips"],
97
+ },
98
+ ],
35
99
  },
36
- "fips-ca-central-1": {
37
- hostname: "elasticfilesystem-fips.ca-central-1.amazonaws.com",
38
- signingRegion: "ca-central-1",
100
+ "ca-central-1": {
101
+ variants: [
102
+ {
103
+ hostname: "elasticfilesystem.ca-central-1.amazonaws.com",
104
+ tags: [],
105
+ },
106
+ {
107
+ hostname: "elasticfilesystem-fips.ca-central-1.amazonaws.com",
108
+ tags: ["fips"],
109
+ },
110
+ ],
39
111
  },
40
- "fips-cn-north-1": {
41
- hostname: "elasticfilesystem-fips.cn-north-1.amazonaws.com.cn",
42
- signingRegion: "cn-north-1",
112
+ "cn-north-1": {
113
+ variants: [
114
+ {
115
+ hostname: "elasticfilesystem.cn-north-1.amazonaws.com.cn",
116
+ tags: [],
117
+ },
118
+ {
119
+ hostname: "elasticfilesystem-fips.cn-north-1.amazonaws.com.cn",
120
+ tags: ["fips"],
121
+ },
122
+ ],
43
123
  },
44
- "fips-cn-northwest-1": {
45
- hostname: "elasticfilesystem-fips.cn-northwest-1.amazonaws.com.cn",
46
- signingRegion: "cn-northwest-1",
124
+ "cn-northwest-1": {
125
+ variants: [
126
+ {
127
+ hostname: "elasticfilesystem.cn-northwest-1.amazonaws.com.cn",
128
+ tags: [],
129
+ },
130
+ {
131
+ hostname: "elasticfilesystem-fips.cn-northwest-1.amazonaws.com.cn",
132
+ tags: ["fips"],
133
+ },
134
+ ],
47
135
  },
48
- "fips-eu-central-1": {
49
- hostname: "elasticfilesystem-fips.eu-central-1.amazonaws.com",
50
- signingRegion: "eu-central-1",
136
+ "eu-central-1": {
137
+ variants: [
138
+ {
139
+ hostname: "elasticfilesystem.eu-central-1.amazonaws.com",
140
+ tags: [],
141
+ },
142
+ {
143
+ hostname: "elasticfilesystem-fips.eu-central-1.amazonaws.com",
144
+ tags: ["fips"],
145
+ },
146
+ ],
51
147
  },
52
- "fips-eu-north-1": {
53
- hostname: "elasticfilesystem-fips.eu-north-1.amazonaws.com",
54
- signingRegion: "eu-north-1",
148
+ "eu-north-1": {
149
+ variants: [
150
+ {
151
+ hostname: "elasticfilesystem.eu-north-1.amazonaws.com",
152
+ tags: [],
153
+ },
154
+ {
155
+ hostname: "elasticfilesystem-fips.eu-north-1.amazonaws.com",
156
+ tags: ["fips"],
157
+ },
158
+ ],
55
159
  },
56
- "fips-eu-south-1": {
57
- hostname: "elasticfilesystem-fips.eu-south-1.amazonaws.com",
58
- signingRegion: "eu-south-1",
160
+ "eu-south-1": {
161
+ variants: [
162
+ {
163
+ hostname: "elasticfilesystem.eu-south-1.amazonaws.com",
164
+ tags: [],
165
+ },
166
+ {
167
+ hostname: "elasticfilesystem-fips.eu-south-1.amazonaws.com",
168
+ tags: ["fips"],
169
+ },
170
+ ],
59
171
  },
60
- "fips-eu-west-1": {
61
- hostname: "elasticfilesystem-fips.eu-west-1.amazonaws.com",
62
- signingRegion: "eu-west-1",
172
+ "eu-west-1": {
173
+ variants: [
174
+ {
175
+ hostname: "elasticfilesystem.eu-west-1.amazonaws.com",
176
+ tags: [],
177
+ },
178
+ {
179
+ hostname: "elasticfilesystem-fips.eu-west-1.amazonaws.com",
180
+ tags: ["fips"],
181
+ },
182
+ ],
63
183
  },
64
- "fips-eu-west-2": {
65
- hostname: "elasticfilesystem-fips.eu-west-2.amazonaws.com",
66
- signingRegion: "eu-west-2",
184
+ "eu-west-2": {
185
+ variants: [
186
+ {
187
+ hostname: "elasticfilesystem.eu-west-2.amazonaws.com",
188
+ tags: [],
189
+ },
190
+ {
191
+ hostname: "elasticfilesystem-fips.eu-west-2.amazonaws.com",
192
+ tags: ["fips"],
193
+ },
194
+ ],
67
195
  },
68
- "fips-eu-west-3": {
69
- hostname: "elasticfilesystem-fips.eu-west-3.amazonaws.com",
70
- signingRegion: "eu-west-3",
196
+ "eu-west-3": {
197
+ variants: [
198
+ {
199
+ hostname: "elasticfilesystem.eu-west-3.amazonaws.com",
200
+ tags: [],
201
+ },
202
+ {
203
+ hostname: "elasticfilesystem-fips.eu-west-3.amazonaws.com",
204
+ tags: ["fips"],
205
+ },
206
+ ],
71
207
  },
72
- "fips-me-south-1": {
73
- hostname: "elasticfilesystem-fips.me-south-1.amazonaws.com",
74
- signingRegion: "me-south-1",
208
+ "me-south-1": {
209
+ variants: [
210
+ {
211
+ hostname: "elasticfilesystem.me-south-1.amazonaws.com",
212
+ tags: [],
213
+ },
214
+ {
215
+ hostname: "elasticfilesystem-fips.me-south-1.amazonaws.com",
216
+ tags: ["fips"],
217
+ },
218
+ ],
75
219
  },
76
- "fips-sa-east-1": {
77
- hostname: "elasticfilesystem-fips.sa-east-1.amazonaws.com",
78
- signingRegion: "sa-east-1",
220
+ "sa-east-1": {
221
+ variants: [
222
+ {
223
+ hostname: "elasticfilesystem.sa-east-1.amazonaws.com",
224
+ tags: [],
225
+ },
226
+ {
227
+ hostname: "elasticfilesystem-fips.sa-east-1.amazonaws.com",
228
+ tags: ["fips"],
229
+ },
230
+ ],
79
231
  },
80
- "fips-us-east-1": {
81
- hostname: "elasticfilesystem-fips.us-east-1.amazonaws.com",
82
- signingRegion: "us-east-1",
232
+ "us-east-1": {
233
+ variants: [
234
+ {
235
+ hostname: "elasticfilesystem.us-east-1.amazonaws.com",
236
+ tags: [],
237
+ },
238
+ {
239
+ hostname: "elasticfilesystem-fips.us-east-1.amazonaws.com",
240
+ tags: ["fips"],
241
+ },
242
+ ],
83
243
  },
84
- "fips-us-east-2": {
85
- hostname: "elasticfilesystem-fips.us-east-2.amazonaws.com",
86
- signingRegion: "us-east-2",
244
+ "us-east-2": {
245
+ variants: [
246
+ {
247
+ hostname: "elasticfilesystem.us-east-2.amazonaws.com",
248
+ tags: [],
249
+ },
250
+ {
251
+ hostname: "elasticfilesystem-fips.us-east-2.amazonaws.com",
252
+ tags: ["fips"],
253
+ },
254
+ ],
87
255
  },
88
- "fips-us-gov-east-1": {
89
- hostname: "elasticfilesystem-fips.us-gov-east-1.amazonaws.com",
90
- signingRegion: "us-gov-east-1",
256
+ "us-gov-east-1": {
257
+ variants: [
258
+ {
259
+ hostname: "elasticfilesystem.us-gov-east-1.amazonaws.com",
260
+ tags: [],
261
+ },
262
+ {
263
+ hostname: "elasticfilesystem-fips.us-gov-east-1.amazonaws.com",
264
+ tags: ["fips"],
265
+ },
266
+ ],
91
267
  },
92
- "fips-us-gov-west-1": {
93
- hostname: "elasticfilesystem-fips.us-gov-west-1.amazonaws.com",
94
- signingRegion: "us-gov-west-1",
268
+ "us-gov-west-1": {
269
+ variants: [
270
+ {
271
+ hostname: "elasticfilesystem.us-gov-west-1.amazonaws.com",
272
+ tags: [],
273
+ },
274
+ {
275
+ hostname: "elasticfilesystem-fips.us-gov-west-1.amazonaws.com",
276
+ tags: ["fips"],
277
+ },
278
+ ],
95
279
  },
96
- "fips-us-iso-east-1": {
97
- hostname: "elasticfilesystem-fips.us-iso-east-1.c2s.ic.gov",
98
- signingRegion: "us-iso-east-1",
280
+ "us-iso-east-1": {
281
+ variants: [
282
+ {
283
+ hostname: "elasticfilesystem.us-iso-east-1.c2s.ic.gov",
284
+ tags: [],
285
+ },
286
+ {
287
+ hostname: "elasticfilesystem-fips.us-iso-east-1.c2s.ic.gov",
288
+ tags: ["fips"],
289
+ },
290
+ ],
99
291
  },
100
- "fips-us-west-1": {
101
- hostname: "elasticfilesystem-fips.us-west-1.amazonaws.com",
102
- signingRegion: "us-west-1",
292
+ "us-west-1": {
293
+ variants: [
294
+ {
295
+ hostname: "elasticfilesystem.us-west-1.amazonaws.com",
296
+ tags: [],
297
+ },
298
+ {
299
+ hostname: "elasticfilesystem-fips.us-west-1.amazonaws.com",
300
+ tags: ["fips"],
301
+ },
302
+ ],
103
303
  },
104
- "fips-us-west-2": {
105
- hostname: "elasticfilesystem-fips.us-west-2.amazonaws.com",
106
- signingRegion: "us-west-2",
304
+ "us-west-2": {
305
+ variants: [
306
+ {
307
+ hostname: "elasticfilesystem.us-west-2.amazonaws.com",
308
+ tags: [],
309
+ },
310
+ {
311
+ hostname: "elasticfilesystem-fips.us-west-2.amazonaws.com",
312
+ tags: ["fips"],
313
+ },
314
+ ],
107
315
  },
108
316
  };
109
317
  var partitionHash = {
@@ -153,27 +361,96 @@ var partitionHash = {
153
361
  "us-west-2",
154
362
  ],
155
363
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
156
- hostname: "elasticfilesystem.{region}.amazonaws.com",
364
+ variants: [
365
+ {
366
+ hostname: "elasticfilesystem.{region}.amazonaws.com",
367
+ tags: [],
368
+ },
369
+ {
370
+ hostname: "elasticfilesystem-fips.{region}.amazonaws.com",
371
+ tags: ["fips"],
372
+ },
373
+ {
374
+ hostname: "elasticfilesystem-fips.{region}.api.aws",
375
+ tags: ["dualstack", "fips"],
376
+ },
377
+ {
378
+ hostname: "elasticfilesystem.{region}.api.aws",
379
+ tags: ["dualstack"],
380
+ },
381
+ ],
157
382
  },
158
383
  "aws-cn": {
159
384
  regions: ["cn-north-1", "cn-northwest-1", "fips-cn-north-1", "fips-cn-northwest-1"],
160
385
  regionRegex: "^cn\\-\\w+\\-\\d+$",
161
- hostname: "elasticfilesystem.{region}.amazonaws.com.cn",
386
+ variants: [
387
+ {
388
+ hostname: "elasticfilesystem.{region}.amazonaws.com.cn",
389
+ tags: [],
390
+ },
391
+ {
392
+ hostname: "elasticfilesystem-fips.{region}.amazonaws.com.cn",
393
+ tags: ["fips"],
394
+ },
395
+ {
396
+ hostname: "elasticfilesystem-fips.{region}.api.amazonwebservices.com.cn",
397
+ tags: ["dualstack", "fips"],
398
+ },
399
+ {
400
+ hostname: "elasticfilesystem.{region}.api.amazonwebservices.com.cn",
401
+ tags: ["dualstack"],
402
+ },
403
+ ],
162
404
  },
163
405
  "aws-iso": {
164
406
  regions: ["fips-us-iso-east-1", "us-iso-east-1", "us-iso-west-1"],
165
407
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
166
- hostname: "elasticfilesystem.{region}.c2s.ic.gov",
408
+ variants: [
409
+ {
410
+ hostname: "elasticfilesystem.{region}.c2s.ic.gov",
411
+ tags: [],
412
+ },
413
+ {
414
+ hostname: "elasticfilesystem-fips.{region}.c2s.ic.gov",
415
+ tags: ["fips"],
416
+ },
417
+ ],
167
418
  },
168
419
  "aws-iso-b": {
169
420
  regions: ["us-isob-east-1"],
170
421
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
171
- hostname: "elasticfilesystem.{region}.sc2s.sgov.gov",
422
+ variants: [
423
+ {
424
+ hostname: "elasticfilesystem.{region}.sc2s.sgov.gov",
425
+ tags: [],
426
+ },
427
+ {
428
+ hostname: "elasticfilesystem-fips.{region}.sc2s.sgov.gov",
429
+ tags: ["fips"],
430
+ },
431
+ ],
172
432
  },
173
433
  "aws-us-gov": {
174
434
  regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
175
435
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
176
- hostname: "elasticfilesystem.{region}.amazonaws.com",
436
+ variants: [
437
+ {
438
+ hostname: "elasticfilesystem.{region}.amazonaws.com",
439
+ tags: [],
440
+ },
441
+ {
442
+ hostname: "elasticfilesystem-fips.{region}.amazonaws.com",
443
+ tags: ["fips"],
444
+ },
445
+ {
446
+ hostname: "elasticfilesystem-fips.{region}.api.aws",
447
+ tags: ["dualstack", "fips"],
448
+ },
449
+ {
450
+ hostname: "elasticfilesystem.{region}.api.aws",
451
+ tags: ["dualstack"],
452
+ },
453
+ ],
177
454
  },
178
455
  };
179
456
  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
  };
@@ -103,6 +103,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
103
103
  * Optional logger for logging debug/info/warn/error.
104
104
  */
105
105
  logger?: __Logger;
106
+ /**
107
+ * Enables IPv6/IPv4 dualstack endpoint.
108
+ */
109
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
110
+ /**
111
+ * Enables FIPS compatible endpoints.
112
+ */
113
+ useFipsEndpoint?: boolean | __Provider<boolean>;
106
114
  /**
107
115
  * Unique service identifier.
108
116
  * @internal
@@ -27,7 +27,7 @@ export interface CreateAccessPointCommandOutput extends AccessPointDescription,
27
27
  *
28
28
  * @see {@link CreateAccessPointCommandInput} for command's `input` shape.
29
29
  * @see {@link CreateAccessPointCommandOutput} for command's `response` shape.
30
- * @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
30
+ * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
31
31
  *
32
32
  */
33
33
  export declare class CreateAccessPointCommand extends $Command<CreateAccessPointCommandInput, CreateAccessPointCommandOutput, EFSClientResolvedConfig> {
@@ -73,7 +73,7 @@ export interface CreateFileSystemCommandOutput extends FileSystemDescription, __
73
73
  *
74
74
  * @see {@link CreateFileSystemCommandInput} for command's `input` shape.
75
75
  * @see {@link CreateFileSystemCommandOutput} for command's `response` shape.
76
- * @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
76
+ * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
77
77
  *
78
78
  */
79
79
  export declare class CreateFileSystemCommand extends $Command<CreateFileSystemCommandInput, CreateFileSystemCommandOutput, EFSClientResolvedConfig> {
@@ -161,7 +161,7 @@ export interface CreateMountTargetCommandOutput extends MountTargetDescription,
161
161
  *
162
162
  * @see {@link CreateMountTargetCommandInput} for command's `input` shape.
163
163
  * @see {@link CreateMountTargetCommandOutput} for command's `response` shape.
164
- * @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
164
+ * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
165
165
  *
166
166
  */
167
167
  export declare class CreateMountTargetCommand extends $Command<CreateMountTargetCommandInput, CreateMountTargetCommandOutput, EFSClientResolvedConfig> {
@@ -31,7 +31,7 @@ export interface CreateTagsCommandOutput extends __MetadataBearer {
31
31
  *
32
32
  * @see {@link CreateTagsCommandInput} for command's `input` shape.
33
33
  * @see {@link CreateTagsCommandOutput} for command's `response` shape.
34
- * @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
34
+ * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
35
35
  *
36
36
  */
37
37
  export declare class CreateTagsCommand extends $Command<CreateTagsCommandInput, CreateTagsCommandOutput, EFSClientResolvedConfig> {
@@ -23,7 +23,7 @@ export interface DeleteAccessPointCommandOutput extends __MetadataBearer {
23
23
  *
24
24
  * @see {@link DeleteAccessPointCommandInput} for command's `input` shape.
25
25
  * @see {@link DeleteAccessPointCommandOutput} for command's `response` shape.
26
- * @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
26
+ * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
27
27
  *
28
28
  */
29
29
  export declare class DeleteAccessPointCommand extends $Command<DeleteAccessPointCommandInput, DeleteAccessPointCommandOutput, EFSClientResolvedConfig> {
@@ -34,7 +34,7 @@ export interface DeleteFileSystemCommandOutput extends __MetadataBearer {
34
34
  *
35
35
  * @see {@link DeleteFileSystemCommandInput} for command's `input` shape.
36
36
  * @see {@link DeleteFileSystemCommandOutput} for command's `response` shape.
37
- * @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
37
+ * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
38
38
  *
39
39
  */
40
40
  export declare class DeleteFileSystemCommand extends $Command<DeleteFileSystemCommandInput, DeleteFileSystemCommandOutput, EFSClientResolvedConfig> {
@@ -23,7 +23,7 @@ export interface DeleteFileSystemPolicyCommandOutput extends __MetadataBearer {
23
23
  *
24
24
  * @see {@link DeleteFileSystemPolicyCommandInput} for command's `input` shape.
25
25
  * @see {@link DeleteFileSystemPolicyCommandOutput} for command's `response` shape.
26
- * @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
26
+ * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
27
27
  *
28
28
  */
29
29
  export declare class DeleteFileSystemPolicyCommand extends $Command<DeleteFileSystemPolicyCommandInput, DeleteFileSystemPolicyCommandOutput, EFSClientResolvedConfig> {
@@ -53,7 +53,7 @@ export interface DeleteMountTargetCommandOutput extends __MetadataBearer {
53
53
  *
54
54
  * @see {@link DeleteMountTargetCommandInput} for command's `input` shape.
55
55
  * @see {@link DeleteMountTargetCommandOutput} for command's `response` shape.
56
- * @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
56
+ * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
57
57
  *
58
58
  */
59
59
  export declare class DeleteMountTargetCommand extends $Command<DeleteMountTargetCommandInput, DeleteMountTargetCommandOutput, EFSClientResolvedConfig> {
@@ -32,7 +32,7 @@ export interface DeleteTagsCommandOutput extends __MetadataBearer {
32
32
  *
33
33
  * @see {@link DeleteTagsCommandInput} for command's `input` shape.
34
34
  * @see {@link DeleteTagsCommandOutput} for command's `response` shape.
35
- * @see {@link EFSClientResolvedConfig | config} for command's `input` shape.
35
+ * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
36
36
  *
37
37
  */
38
38
  export declare class DeleteTagsCommand extends $Command<DeleteTagsCommandInput, DeleteTagsCommandOutput, EFSClientResolvedConfig> {