@aws-sdk/client-kms 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 (64) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist-cjs/endpoints.js +410 -11
  3. package/dist-cjs/runtimeConfig.browser.js +6 -3
  4. package/dist-cjs/runtimeConfig.js +5 -3
  5. package/dist-es/endpoints.js +410 -11
  6. package/dist-es/runtimeConfig.browser.js +3 -2
  7. package/dist-es/runtimeConfig.js +3 -3
  8. package/dist-types/KMSClient.d.ts +8 -0
  9. package/dist-types/commands/CancelKeyDeletionCommand.d.ts +1 -1
  10. package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +1 -1
  11. package/dist-types/commands/CreateAliasCommand.d.ts +1 -1
  12. package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +1 -1
  13. package/dist-types/commands/CreateGrantCommand.d.ts +1 -1
  14. package/dist-types/commands/CreateKeyCommand.d.ts +1 -1
  15. package/dist-types/commands/DecryptCommand.d.ts +1 -1
  16. package/dist-types/commands/DeleteAliasCommand.d.ts +1 -1
  17. package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +1 -1
  18. package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +1 -1
  19. package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +1 -1
  20. package/dist-types/commands/DescribeKeyCommand.d.ts +1 -1
  21. package/dist-types/commands/DisableKeyCommand.d.ts +1 -1
  22. package/dist-types/commands/DisableKeyRotationCommand.d.ts +1 -1
  23. package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +1 -1
  24. package/dist-types/commands/EnableKeyCommand.d.ts +1 -1
  25. package/dist-types/commands/EnableKeyRotationCommand.d.ts +1 -1
  26. package/dist-types/commands/EncryptCommand.d.ts +1 -1
  27. package/dist-types/commands/GenerateDataKeyCommand.d.ts +1 -1
  28. package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +1 -1
  29. package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +1 -1
  30. package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +1 -1
  31. package/dist-types/commands/GenerateRandomCommand.d.ts +1 -1
  32. package/dist-types/commands/GetKeyPolicyCommand.d.ts +1 -1
  33. package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +1 -1
  34. package/dist-types/commands/GetParametersForImportCommand.d.ts +1 -1
  35. package/dist-types/commands/GetPublicKeyCommand.d.ts +1 -1
  36. package/dist-types/commands/ImportKeyMaterialCommand.d.ts +1 -1
  37. package/dist-types/commands/ListAliasesCommand.d.ts +1 -1
  38. package/dist-types/commands/ListGrantsCommand.d.ts +1 -1
  39. package/dist-types/commands/ListKeyPoliciesCommand.d.ts +1 -1
  40. package/dist-types/commands/ListKeysCommand.d.ts +1 -1
  41. package/dist-types/commands/ListResourceTagsCommand.d.ts +1 -1
  42. package/dist-types/commands/ListRetirableGrantsCommand.d.ts +1 -1
  43. package/dist-types/commands/PutKeyPolicyCommand.d.ts +1 -1
  44. package/dist-types/commands/ReEncryptCommand.d.ts +1 -1
  45. package/dist-types/commands/ReplicateKeyCommand.d.ts +1 -1
  46. package/dist-types/commands/RetireGrantCommand.d.ts +1 -1
  47. package/dist-types/commands/RevokeGrantCommand.d.ts +1 -1
  48. package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +1 -1
  49. package/dist-types/commands/SignCommand.d.ts +1 -1
  50. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  51. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  52. package/dist-types/commands/UpdateAliasCommand.d.ts +1 -1
  53. package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +1 -1
  54. package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +1 -1
  55. package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +1 -1
  56. package/dist-types/commands/VerifyCommand.d.ts +1 -1
  57. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  58. package/dist-types/runtimeConfig.d.ts +2 -0
  59. package/dist-types/runtimeConfig.native.d.ts +2 -0
  60. package/dist-types/ts3.4/KMSClient.d.ts +4 -0
  61. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  62. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  63. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  64. package/package.json +23 -23
package/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-kms
9
+
10
+
11
+
12
+
13
+
14
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-kms
17
+
18
+
19
+
20
+
21
+
22
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
28
+
29
+
30
+
31
+
32
+
33
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
34
+
35
+
36
+ ### Features
37
+
38
+ * **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
39
+
40
+
41
+
42
+
43
+
6
44
  # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
45
 
8
46
  **Note:** Version bump only for package @aws-sdk/client-kms
@@ -3,58 +3,457 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultRegionInfoProvider = void 0;
4
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
- ProdFips: {
7
- hostname: "kms-fips.us-gov-west-1.amazonaws.com",
8
- signingRegion: "us-gov-west-1",
6
+ "af-south-1": {
7
+ variants: [
8
+ {
9
+ hostname: "kms.af-south-1.amazonaws.com",
10
+ tags: [],
11
+ },
12
+ {
13
+ hostname: "kms-fips.af-south-1.amazonaws.com",
14
+ tags: ["fips"],
15
+ },
16
+ ],
17
+ },
18
+ "ap-east-1": {
19
+ variants: [
20
+ {
21
+ hostname: "kms.ap-east-1.amazonaws.com",
22
+ tags: [],
23
+ },
24
+ {
25
+ hostname: "kms-fips.ap-east-1.amazonaws.com",
26
+ tags: ["fips"],
27
+ },
28
+ ],
29
+ },
30
+ "ap-northeast-1": {
31
+ variants: [
32
+ {
33
+ hostname: "kms.ap-northeast-1.amazonaws.com",
34
+ tags: [],
35
+ },
36
+ {
37
+ hostname: "kms-fips.ap-northeast-1.amazonaws.com",
38
+ tags: ["fips"],
39
+ },
40
+ ],
41
+ },
42
+ "ap-northeast-2": {
43
+ variants: [
44
+ {
45
+ hostname: "kms.ap-northeast-2.amazonaws.com",
46
+ tags: [],
47
+ },
48
+ {
49
+ hostname: "kms-fips.ap-northeast-2.amazonaws.com",
50
+ tags: ["fips"],
51
+ },
52
+ ],
53
+ },
54
+ "ap-northeast-3": {
55
+ variants: [
56
+ {
57
+ hostname: "kms.ap-northeast-3.amazonaws.com",
58
+ tags: [],
59
+ },
60
+ {
61
+ hostname: "kms-fips.ap-northeast-3.amazonaws.com",
62
+ tags: ["fips"],
63
+ },
64
+ ],
65
+ },
66
+ "ap-south-1": {
67
+ variants: [
68
+ {
69
+ hostname: "kms.ap-south-1.amazonaws.com",
70
+ tags: [],
71
+ },
72
+ {
73
+ hostname: "kms-fips.ap-south-1.amazonaws.com",
74
+ tags: ["fips"],
75
+ },
76
+ ],
77
+ },
78
+ "ap-southeast-1": {
79
+ variants: [
80
+ {
81
+ hostname: "kms.ap-southeast-1.amazonaws.com",
82
+ tags: [],
83
+ },
84
+ {
85
+ hostname: "kms-fips.ap-southeast-1.amazonaws.com",
86
+ tags: ["fips"],
87
+ },
88
+ ],
89
+ },
90
+ "ap-southeast-2": {
91
+ variants: [
92
+ {
93
+ hostname: "kms.ap-southeast-2.amazonaws.com",
94
+ tags: [],
95
+ },
96
+ {
97
+ hostname: "kms-fips.ap-southeast-2.amazonaws.com",
98
+ tags: ["fips"],
99
+ },
100
+ ],
101
+ },
102
+ "ca-central-1": {
103
+ variants: [
104
+ {
105
+ hostname: "kms.ca-central-1.amazonaws.com",
106
+ tags: [],
107
+ },
108
+ {
109
+ hostname: "kms-fips.ca-central-1.amazonaws.com",
110
+ tags: ["fips"],
111
+ },
112
+ ],
113
+ },
114
+ "eu-central-1": {
115
+ variants: [
116
+ {
117
+ hostname: "kms.eu-central-1.amazonaws.com",
118
+ tags: [],
119
+ },
120
+ {
121
+ hostname: "kms-fips.eu-central-1.amazonaws.com",
122
+ tags: ["fips"],
123
+ },
124
+ ],
125
+ },
126
+ "eu-north-1": {
127
+ variants: [
128
+ {
129
+ hostname: "kms.eu-north-1.amazonaws.com",
130
+ tags: [],
131
+ },
132
+ {
133
+ hostname: "kms-fips.eu-north-1.amazonaws.com",
134
+ tags: ["fips"],
135
+ },
136
+ ],
137
+ },
138
+ "eu-south-1": {
139
+ variants: [
140
+ {
141
+ hostname: "kms.eu-south-1.amazonaws.com",
142
+ tags: [],
143
+ },
144
+ {
145
+ hostname: "kms-fips.eu-south-1.amazonaws.com",
146
+ tags: ["fips"],
147
+ },
148
+ ],
149
+ },
150
+ "eu-west-1": {
151
+ variants: [
152
+ {
153
+ hostname: "kms.eu-west-1.amazonaws.com",
154
+ tags: [],
155
+ },
156
+ {
157
+ hostname: "kms-fips.eu-west-1.amazonaws.com",
158
+ tags: ["fips"],
159
+ },
160
+ ],
161
+ },
162
+ "eu-west-2": {
163
+ variants: [
164
+ {
165
+ hostname: "kms.eu-west-2.amazonaws.com",
166
+ tags: [],
167
+ },
168
+ {
169
+ hostname: "kms-fips.eu-west-2.amazonaws.com",
170
+ tags: ["fips"],
171
+ },
172
+ ],
173
+ },
174
+ "eu-west-3": {
175
+ variants: [
176
+ {
177
+ hostname: "kms.eu-west-3.amazonaws.com",
178
+ tags: [],
179
+ },
180
+ {
181
+ hostname: "kms-fips.eu-west-3.amazonaws.com",
182
+ tags: ["fips"],
183
+ },
184
+ ],
185
+ },
186
+ "me-south-1": {
187
+ variants: [
188
+ {
189
+ hostname: "kms.me-south-1.amazonaws.com",
190
+ tags: [],
191
+ },
192
+ {
193
+ hostname: "kms-fips.me-south-1.amazonaws.com",
194
+ tags: ["fips"],
195
+ },
196
+ ],
197
+ },
198
+ "sa-east-1": {
199
+ variants: [
200
+ {
201
+ hostname: "kms.sa-east-1.amazonaws.com",
202
+ tags: [],
203
+ },
204
+ {
205
+ hostname: "kms-fips.sa-east-1.amazonaws.com",
206
+ tags: ["fips"],
207
+ },
208
+ ],
209
+ },
210
+ "us-east-1": {
211
+ variants: [
212
+ {
213
+ hostname: "kms.us-east-1.amazonaws.com",
214
+ tags: [],
215
+ },
216
+ {
217
+ hostname: "kms-fips.us-east-1.amazonaws.com",
218
+ tags: ["fips"],
219
+ },
220
+ ],
221
+ },
222
+ "us-east-2": {
223
+ variants: [
224
+ {
225
+ hostname: "kms.us-east-2.amazonaws.com",
226
+ tags: [],
227
+ },
228
+ {
229
+ hostname: "kms-fips.us-east-2.amazonaws.com",
230
+ tags: ["fips"],
231
+ },
232
+ ],
233
+ },
234
+ "us-gov-east-1": {
235
+ variants: [
236
+ {
237
+ hostname: "kms.us-gov-east-1.amazonaws.com",
238
+ tags: [],
239
+ },
240
+ {
241
+ hostname: "kms-fips.us-gov-east-1.amazonaws.com",
242
+ tags: ["fips"],
243
+ },
244
+ ],
245
+ },
246
+ "us-gov-west-1": {
247
+ variants: [
248
+ {
249
+ hostname: "kms.us-gov-west-1.amazonaws.com",
250
+ tags: [],
251
+ },
252
+ {
253
+ hostname: "kms-fips.us-gov-west-1.amazonaws.com",
254
+ tags: ["fips"],
255
+ },
256
+ ],
257
+ },
258
+ "us-iso-east-1": {
259
+ variants: [
260
+ {
261
+ hostname: "kms.us-iso-east-1.c2s.ic.gov",
262
+ tags: [],
263
+ },
264
+ {
265
+ hostname: "kms-fips.us-iso-east-1.c2s.ic.gov",
266
+ tags: ["fips"],
267
+ },
268
+ ],
269
+ },
270
+ "us-iso-west-1": {
271
+ variants: [
272
+ {
273
+ hostname: "kms.us-iso-west-1.c2s.ic.gov",
274
+ tags: [],
275
+ },
276
+ {
277
+ hostname: "kms-fips.us-iso-west-1.c2s.ic.gov",
278
+ tags: ["fips"],
279
+ },
280
+ ],
281
+ },
282
+ "us-isob-east-1": {
283
+ variants: [
284
+ {
285
+ hostname: "kms.us-isob-east-1.sc2s.sgov.gov",
286
+ tags: [],
287
+ },
288
+ {
289
+ hostname: "kms-fips.us-isob-east-1.sc2s.sgov.gov",
290
+ tags: ["fips"],
291
+ },
292
+ ],
293
+ },
294
+ "us-west-1": {
295
+ variants: [
296
+ {
297
+ hostname: "kms.us-west-1.amazonaws.com",
298
+ tags: [],
299
+ },
300
+ {
301
+ hostname: "kms-fips.us-west-1.amazonaws.com",
302
+ tags: ["fips"],
303
+ },
304
+ ],
305
+ },
306
+ "us-west-2": {
307
+ variants: [
308
+ {
309
+ hostname: "kms.us-west-2.amazonaws.com",
310
+ tags: [],
311
+ },
312
+ {
313
+ hostname: "kms-fips.us-west-2.amazonaws.com",
314
+ tags: ["fips"],
315
+ },
316
+ ],
9
317
  },
10
318
  };
11
319
  const partitionHash = {
12
320
  aws: {
13
321
  regions: [
14
322
  "af-south-1",
323
+ "af-south-1-fips",
15
324
  "ap-east-1",
325
+ "ap-east-1-fips",
16
326
  "ap-northeast-1",
327
+ "ap-northeast-1-fips",
17
328
  "ap-northeast-2",
329
+ "ap-northeast-2-fips",
18
330
  "ap-northeast-3",
331
+ "ap-northeast-3-fips",
19
332
  "ap-south-1",
333
+ "ap-south-1-fips",
20
334
  "ap-southeast-1",
335
+ "ap-southeast-1-fips",
21
336
  "ap-southeast-2",
337
+ "ap-southeast-2-fips",
338
+ "ap-southeast-3-fips",
22
339
  "ca-central-1",
340
+ "ca-central-1-fips",
23
341
  "eu-central-1",
342
+ "eu-central-1-fips",
24
343
  "eu-north-1",
344
+ "eu-north-1-fips",
25
345
  "eu-south-1",
346
+ "eu-south-1-fips",
26
347
  "eu-west-1",
348
+ "eu-west-1-fips",
27
349
  "eu-west-2",
350
+ "eu-west-2-fips",
28
351
  "eu-west-3",
352
+ "eu-west-3-fips",
29
353
  "me-south-1",
354
+ "me-south-1-fips",
30
355
  "sa-east-1",
356
+ "sa-east-1-fips",
31
357
  "us-east-1",
358
+ "us-east-1-fips",
32
359
  "us-east-2",
360
+ "us-east-2-fips",
33
361
  "us-west-1",
362
+ "us-west-1-fips",
34
363
  "us-west-2",
364
+ "us-west-2-fips",
35
365
  ],
36
366
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
37
- hostname: "kms.{region}.amazonaws.com",
367
+ variants: [
368
+ {
369
+ hostname: "kms.{region}.amazonaws.com",
370
+ tags: [],
371
+ },
372
+ {
373
+ hostname: "kms-fips.{region}.amazonaws.com",
374
+ tags: ["fips"],
375
+ },
376
+ {
377
+ hostname: "kms-fips.{region}.api.aws",
378
+ tags: ["dualstack", "fips"],
379
+ },
380
+ {
381
+ hostname: "kms.{region}.api.aws",
382
+ tags: ["dualstack"],
383
+ },
384
+ ],
38
385
  },
39
386
  "aws-cn": {
40
387
  regions: ["cn-north-1", "cn-northwest-1"],
41
388
  regionRegex: "^cn\\-\\w+\\-\\d+$",
42
- hostname: "kms.{region}.amazonaws.com.cn",
389
+ variants: [
390
+ {
391
+ hostname: "kms.{region}.amazonaws.com.cn",
392
+ tags: [],
393
+ },
394
+ {
395
+ hostname: "kms-fips.{region}.amazonaws.com.cn",
396
+ tags: ["fips"],
397
+ },
398
+ {
399
+ hostname: "kms-fips.{region}.api.amazonwebservices.com.cn",
400
+ tags: ["dualstack", "fips"],
401
+ },
402
+ {
403
+ hostname: "kms.{region}.api.amazonwebservices.com.cn",
404
+ tags: ["dualstack"],
405
+ },
406
+ ],
43
407
  },
44
408
  "aws-iso": {
45
- regions: ["ProdFips", "us-iso-east-1", "us-iso-west-1"],
409
+ regions: ["ProdFips", "us-iso-east-1", "us-iso-east-1-fips", "us-iso-west-1", "us-iso-west-1-fips"],
46
410
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
47
- hostname: "kms.{region}.c2s.ic.gov",
411
+ variants: [
412
+ {
413
+ hostname: "kms.{region}.c2s.ic.gov",
414
+ tags: [],
415
+ },
416
+ {
417
+ hostname: "kms-fips.{region}.c2s.ic.gov",
418
+ tags: ["fips"],
419
+ },
420
+ ],
48
421
  },
49
422
  "aws-iso-b": {
50
- regions: ["ProdFips", "us-isob-east-1"],
423
+ regions: ["ProdFips", "us-isob-east-1", "us-isob-east-1-fips"],
51
424
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
52
- hostname: "kms.{region}.sc2s.sgov.gov",
425
+ variants: [
426
+ {
427
+ hostname: "kms.{region}.sc2s.sgov.gov",
428
+ tags: [],
429
+ },
430
+ {
431
+ hostname: "kms-fips.{region}.sc2s.sgov.gov",
432
+ tags: ["fips"],
433
+ },
434
+ ],
53
435
  },
54
436
  "aws-us-gov": {
55
- regions: ["ProdFips", "us-gov-east-1", "us-gov-west-1"],
437
+ regions: ["ProdFips", "us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"],
56
438
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
57
- hostname: "kms.{region}.amazonaws.com",
439
+ variants: [
440
+ {
441
+ hostname: "kms.{region}.amazonaws.com",
442
+ tags: [],
443
+ },
444
+ {
445
+ hostname: "kms-fips.{region}.amazonaws.com",
446
+ tags: ["fips"],
447
+ },
448
+ {
449
+ hostname: "kms-fips.{region}.api.aws",
450
+ tags: ["dualstack", "fips"],
451
+ },
452
+ {
453
+ hostname: "kms.{region}.api.aws",
454
+ tags: ["dualstack"],
455
+ },
456
+ ],
58
457
  },
59
458
  };
60
459
  const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
16
  const getRuntimeConfig = (config) => {
16
- 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;
17
18
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
18
19
  return {
19
20
  ...clientSharedValues,
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
30
31
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
31
32
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
32
33
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
33
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
34
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
34
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
36
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
37
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
35
38
  };
36
39
  };
37
40
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const getRuntimeConfig = (config) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
23
  return {
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
35
35
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
36
36
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
37
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
39
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
38
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
39
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
40
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
41
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
40
42
  };
41
43
  };
42
44
  exports.getRuntimeConfig = getRuntimeConfig;