@aws-sdk/client-kms 3.37.0 → 3.41.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 (76) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/commands/index.js +51 -0
  3. package/dist-cjs/endpoints.js +414 -11
  4. package/dist-cjs/index.js +4 -55
  5. package/dist-cjs/pagination/index.js +8 -0
  6. package/dist-cjs/runtimeConfig.browser.js +6 -3
  7. package/dist-cjs/runtimeConfig.js +5 -3
  8. package/dist-es/commands/index.js +48 -0
  9. package/dist-es/endpoints.js +414 -11
  10. package/dist-es/index.js +4 -55
  11. package/dist-es/pagination/index.js +5 -0
  12. package/dist-es/runtimeConfig.browser.js +3 -2
  13. package/dist-es/runtimeConfig.js +3 -3
  14. package/dist-types/KMSClient.d.ts +8 -0
  15. package/dist-types/commands/CancelKeyDeletionCommand.d.ts +1 -1
  16. package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateAliasCommand.d.ts +1 -1
  18. package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +1 -1
  19. package/dist-types/commands/CreateGrantCommand.d.ts +1 -1
  20. package/dist-types/commands/CreateKeyCommand.d.ts +1 -1
  21. package/dist-types/commands/DecryptCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteAliasCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +1 -1
  25. package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +1 -1
  26. package/dist-types/commands/DescribeKeyCommand.d.ts +1 -1
  27. package/dist-types/commands/DisableKeyCommand.d.ts +1 -1
  28. package/dist-types/commands/DisableKeyRotationCommand.d.ts +1 -1
  29. package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +1 -1
  30. package/dist-types/commands/EnableKeyCommand.d.ts +1 -1
  31. package/dist-types/commands/EnableKeyRotationCommand.d.ts +1 -1
  32. package/dist-types/commands/EncryptCommand.d.ts +1 -1
  33. package/dist-types/commands/GenerateDataKeyCommand.d.ts +1 -1
  34. package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +1 -1
  35. package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +1 -1
  36. package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +1 -1
  37. package/dist-types/commands/GenerateRandomCommand.d.ts +1 -1
  38. package/dist-types/commands/GetKeyPolicyCommand.d.ts +1 -1
  39. package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +1 -1
  40. package/dist-types/commands/GetParametersForImportCommand.d.ts +1 -1
  41. package/dist-types/commands/GetPublicKeyCommand.d.ts +1 -1
  42. package/dist-types/commands/ImportKeyMaterialCommand.d.ts +1 -1
  43. package/dist-types/commands/ListAliasesCommand.d.ts +1 -1
  44. package/dist-types/commands/ListGrantsCommand.d.ts +1 -1
  45. package/dist-types/commands/ListKeyPoliciesCommand.d.ts +1 -1
  46. package/dist-types/commands/ListKeysCommand.d.ts +1 -1
  47. package/dist-types/commands/ListResourceTagsCommand.d.ts +1 -1
  48. package/dist-types/commands/ListRetirableGrantsCommand.d.ts +1 -1
  49. package/dist-types/commands/PutKeyPolicyCommand.d.ts +1 -1
  50. package/dist-types/commands/ReEncryptCommand.d.ts +1 -1
  51. package/dist-types/commands/ReplicateKeyCommand.d.ts +1 -1
  52. package/dist-types/commands/RetireGrantCommand.d.ts +1 -1
  53. package/dist-types/commands/RevokeGrantCommand.d.ts +1 -1
  54. package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +1 -1
  55. package/dist-types/commands/SignCommand.d.ts +1 -1
  56. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  57. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  58. package/dist-types/commands/UpdateAliasCommand.d.ts +1 -1
  59. package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +1 -1
  60. package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +1 -1
  61. package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +1 -1
  62. package/dist-types/commands/VerifyCommand.d.ts +1 -1
  63. package/dist-types/commands/index.d.ts +48 -0
  64. package/dist-types/index.d.ts +4 -55
  65. package/dist-types/pagination/index.d.ts +5 -0
  66. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  67. package/dist-types/runtimeConfig.d.ts +2 -0
  68. package/dist-types/runtimeConfig.native.d.ts +2 -0
  69. package/dist-types/ts3.4/KMSClient.d.ts +4 -0
  70. package/dist-types/ts3.4/commands/index.d.ts +48 -0
  71. package/dist-types/ts3.4/index.d.ts +4 -55
  72. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  73. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  74. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  75. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  76. package/package.json +26 -26
package/CHANGELOG.md CHANGED
@@ -3,6 +3,48 @@
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.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
18
+
19
+
20
+ ### Features
21
+
22
+ * **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))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
29
+
30
+ **Note:** Version bump only for package @aws-sdk/client-kms
31
+
32
+
33
+
34
+
35
+
36
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
37
+
38
+
39
+ ### Features
40
+
41
+ * **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
42
+ * **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
43
+
44
+
45
+
46
+
47
+
6
48
  # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
7
49
 
8
50
 
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CancelKeyDeletionCommand"), exports);
5
+ tslib_1.__exportStar(require("./ConnectCustomKeyStoreCommand"), exports);
6
+ tslib_1.__exportStar(require("./CreateAliasCommand"), exports);
7
+ tslib_1.__exportStar(require("./CreateCustomKeyStoreCommand"), exports);
8
+ tslib_1.__exportStar(require("./CreateGrantCommand"), exports);
9
+ tslib_1.__exportStar(require("./CreateKeyCommand"), exports);
10
+ tslib_1.__exportStar(require("./DecryptCommand"), exports);
11
+ tslib_1.__exportStar(require("./DeleteAliasCommand"), exports);
12
+ tslib_1.__exportStar(require("./DeleteCustomKeyStoreCommand"), exports);
13
+ tslib_1.__exportStar(require("./DeleteImportedKeyMaterialCommand"), exports);
14
+ tslib_1.__exportStar(require("./DescribeCustomKeyStoresCommand"), exports);
15
+ tslib_1.__exportStar(require("./DescribeKeyCommand"), exports);
16
+ tslib_1.__exportStar(require("./DisableKeyCommand"), exports);
17
+ tslib_1.__exportStar(require("./DisableKeyRotationCommand"), exports);
18
+ tslib_1.__exportStar(require("./DisconnectCustomKeyStoreCommand"), exports);
19
+ tslib_1.__exportStar(require("./EnableKeyCommand"), exports);
20
+ tslib_1.__exportStar(require("./EnableKeyRotationCommand"), exports);
21
+ tslib_1.__exportStar(require("./EncryptCommand"), exports);
22
+ tslib_1.__exportStar(require("./GenerateDataKeyCommand"), exports);
23
+ tslib_1.__exportStar(require("./GenerateDataKeyPairCommand"), exports);
24
+ tslib_1.__exportStar(require("./GenerateDataKeyPairWithoutPlaintextCommand"), exports);
25
+ tslib_1.__exportStar(require("./GenerateDataKeyWithoutPlaintextCommand"), exports);
26
+ tslib_1.__exportStar(require("./GenerateRandomCommand"), exports);
27
+ tslib_1.__exportStar(require("./GetKeyPolicyCommand"), exports);
28
+ tslib_1.__exportStar(require("./GetKeyRotationStatusCommand"), exports);
29
+ tslib_1.__exportStar(require("./GetParametersForImportCommand"), exports);
30
+ tslib_1.__exportStar(require("./GetPublicKeyCommand"), exports);
31
+ tslib_1.__exportStar(require("./ImportKeyMaterialCommand"), exports);
32
+ tslib_1.__exportStar(require("./ListAliasesCommand"), exports);
33
+ tslib_1.__exportStar(require("./ListGrantsCommand"), exports);
34
+ tslib_1.__exportStar(require("./ListKeyPoliciesCommand"), exports);
35
+ tslib_1.__exportStar(require("./ListKeysCommand"), exports);
36
+ tslib_1.__exportStar(require("./ListResourceTagsCommand"), exports);
37
+ tslib_1.__exportStar(require("./ListRetirableGrantsCommand"), exports);
38
+ tslib_1.__exportStar(require("./PutKeyPolicyCommand"), exports);
39
+ tslib_1.__exportStar(require("./ReEncryptCommand"), exports);
40
+ tslib_1.__exportStar(require("./ReplicateKeyCommand"), exports);
41
+ tslib_1.__exportStar(require("./RetireGrantCommand"), exports);
42
+ tslib_1.__exportStar(require("./RevokeGrantCommand"), exports);
43
+ tslib_1.__exportStar(require("./ScheduleKeyDeletionCommand"), exports);
44
+ tslib_1.__exportStar(require("./SignCommand"), exports);
45
+ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
46
+ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
47
+ tslib_1.__exportStar(require("./UpdateAliasCommand"), exports);
48
+ tslib_1.__exportStar(require("./UpdateCustomKeyStoreCommand"), exports);
49
+ tslib_1.__exportStar(require("./UpdateKeyDescriptionCommand"), exports);
50
+ tslib_1.__exportStar(require("./UpdatePrimaryRegionCommand"), exports);
51
+ tslib_1.__exportStar(require("./VerifyCommand"), exports);
@@ -3,53 +3,456 @@ 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",
22
338
  "ca-central-1",
339
+ "ca-central-1-fips",
23
340
  "eu-central-1",
341
+ "eu-central-1-fips",
24
342
  "eu-north-1",
343
+ "eu-north-1-fips",
25
344
  "eu-south-1",
345
+ "eu-south-1-fips",
26
346
  "eu-west-1",
347
+ "eu-west-1-fips",
27
348
  "eu-west-2",
349
+ "eu-west-2-fips",
28
350
  "eu-west-3",
351
+ "eu-west-3-fips",
29
352
  "me-south-1",
353
+ "me-south-1-fips",
30
354
  "sa-east-1",
355
+ "sa-east-1-fips",
31
356
  "us-east-1",
357
+ "us-east-1-fips",
32
358
  "us-east-2",
359
+ "us-east-2-fips",
33
360
  "us-west-1",
361
+ "us-west-1-fips",
34
362
  "us-west-2",
363
+ "us-west-2-fips",
364
+ ],
365
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
366
+ variants: [
367
+ {
368
+ hostname: "kms.{region}.amazonaws.com",
369
+ tags: [],
370
+ },
371
+ {
372
+ hostname: "kms-fips.{region}.amazonaws.com",
373
+ tags: ["fips"],
374
+ },
375
+ {
376
+ hostname: "kms-fips.{region}.api.aws",
377
+ tags: ["dualstack", "fips"],
378
+ },
379
+ {
380
+ hostname: "kms.{region}.api.aws",
381
+ tags: ["dualstack"],
382
+ },
35
383
  ],
36
- hostname: "kms.{region}.amazonaws.com",
37
384
  },
38
385
  "aws-cn": {
39
386
  regions: ["cn-north-1", "cn-northwest-1"],
40
- hostname: "kms.{region}.amazonaws.com.cn",
387
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
388
+ variants: [
389
+ {
390
+ hostname: "kms.{region}.amazonaws.com.cn",
391
+ tags: [],
392
+ },
393
+ {
394
+ hostname: "kms-fips.{region}.amazonaws.com.cn",
395
+ tags: ["fips"],
396
+ },
397
+ {
398
+ hostname: "kms-fips.{region}.api.amazonwebservices.com.cn",
399
+ tags: ["dualstack", "fips"],
400
+ },
401
+ {
402
+ hostname: "kms.{region}.api.amazonwebservices.com.cn",
403
+ tags: ["dualstack"],
404
+ },
405
+ ],
41
406
  },
42
407
  "aws-iso": {
43
- regions: ["ProdFips", "us-iso-east-1", "us-iso-west-1"],
44
- hostname: "kms.{region}.c2s.ic.gov",
408
+ regions: ["ProdFips", "us-iso-east-1", "us-iso-east-1-fips", "us-iso-west-1", "us-iso-west-1-fips"],
409
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
410
+ variants: [
411
+ {
412
+ hostname: "kms.{region}.c2s.ic.gov",
413
+ tags: [],
414
+ },
415
+ {
416
+ hostname: "kms-fips.{region}.c2s.ic.gov",
417
+ tags: ["fips"],
418
+ },
419
+ ],
45
420
  },
46
421
  "aws-iso-b": {
47
- regions: ["ProdFips", "us-isob-east-1"],
48
- hostname: "kms.{region}.sc2s.sgov.gov",
422
+ regions: ["ProdFips", "us-isob-east-1", "us-isob-east-1-fips"],
423
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
424
+ variants: [
425
+ {
426
+ hostname: "kms.{region}.sc2s.sgov.gov",
427
+ tags: [],
428
+ },
429
+ {
430
+ hostname: "kms-fips.{region}.sc2s.sgov.gov",
431
+ tags: ["fips"],
432
+ },
433
+ ],
49
434
  },
50
435
  "aws-us-gov": {
51
- regions: ["ProdFips", "us-gov-east-1", "us-gov-west-1"],
52
- hostname: "kms.{region}.amazonaws.com",
436
+ regions: ["ProdFips", "us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"],
437
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
438
+ variants: [
439
+ {
440
+ hostname: "kms.{region}.amazonaws.com",
441
+ tags: [],
442
+ },
443
+ {
444
+ hostname: "kms-fips.{region}.amazonaws.com",
445
+ tags: ["fips"],
446
+ },
447
+ {
448
+ hostname: "kms-fips.{region}.api.aws",
449
+ tags: ["dualstack", "fips"],
450
+ },
451
+ {
452
+ hostname: "kms.{region}.api.aws",
453
+ tags: ["dualstack"],
454
+ },
455
+ ],
53
456
  },
54
457
  };
55
458
  const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
package/dist-cjs/index.js CHANGED
@@ -1,59 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./KMSClient"), exports);
5
4
  tslib_1.__exportStar(require("./KMS"), exports);
6
- tslib_1.__exportStar(require("./commands/CancelKeyDeletionCommand"), exports);
7
- tslib_1.__exportStar(require("./commands/ConnectCustomKeyStoreCommand"), exports);
8
- tslib_1.__exportStar(require("./commands/CreateAliasCommand"), exports);
9
- tslib_1.__exportStar(require("./commands/CreateCustomKeyStoreCommand"), exports);
10
- tslib_1.__exportStar(require("./commands/CreateGrantCommand"), exports);
11
- tslib_1.__exportStar(require("./commands/CreateKeyCommand"), exports);
12
- tslib_1.__exportStar(require("./commands/DecryptCommand"), exports);
13
- tslib_1.__exportStar(require("./commands/DeleteAliasCommand"), exports);
14
- tslib_1.__exportStar(require("./commands/DeleteCustomKeyStoreCommand"), exports);
15
- tslib_1.__exportStar(require("./commands/DeleteImportedKeyMaterialCommand"), exports);
16
- tslib_1.__exportStar(require("./commands/DescribeCustomKeyStoresCommand"), exports);
17
- tslib_1.__exportStar(require("./commands/DescribeKeyCommand"), exports);
18
- tslib_1.__exportStar(require("./commands/DisableKeyCommand"), exports);
19
- tslib_1.__exportStar(require("./commands/DisableKeyRotationCommand"), exports);
20
- tslib_1.__exportStar(require("./commands/DisconnectCustomKeyStoreCommand"), exports);
21
- tslib_1.__exportStar(require("./commands/EnableKeyCommand"), exports);
22
- tslib_1.__exportStar(require("./commands/EnableKeyRotationCommand"), exports);
23
- tslib_1.__exportStar(require("./commands/EncryptCommand"), exports);
24
- tslib_1.__exportStar(require("./commands/GenerateDataKeyCommand"), exports);
25
- tslib_1.__exportStar(require("./commands/GenerateDataKeyPairCommand"), exports);
26
- tslib_1.__exportStar(require("./commands/GenerateDataKeyPairWithoutPlaintextCommand"), exports);
27
- tslib_1.__exportStar(require("./commands/GenerateDataKeyWithoutPlaintextCommand"), exports);
28
- tslib_1.__exportStar(require("./commands/GenerateRandomCommand"), exports);
29
- tslib_1.__exportStar(require("./commands/GetKeyPolicyCommand"), exports);
30
- tslib_1.__exportStar(require("./commands/GetKeyRotationStatusCommand"), exports);
31
- tslib_1.__exportStar(require("./commands/GetParametersForImportCommand"), exports);
32
- tslib_1.__exportStar(require("./commands/GetPublicKeyCommand"), exports);
33
- tslib_1.__exportStar(require("./commands/ImportKeyMaterialCommand"), exports);
34
- tslib_1.__exportStar(require("./commands/ListAliasesCommand"), exports);
35
- tslib_1.__exportStar(require("./pagination/ListAliasesPaginator"), exports);
36
- tslib_1.__exportStar(require("./commands/ListGrantsCommand"), exports);
37
- tslib_1.__exportStar(require("./pagination/ListGrantsPaginator"), exports);
38
- tslib_1.__exportStar(require("./commands/ListKeyPoliciesCommand"), exports);
39
- tslib_1.__exportStar(require("./pagination/ListKeyPoliciesPaginator"), exports);
40
- tslib_1.__exportStar(require("./commands/ListKeysCommand"), exports);
41
- tslib_1.__exportStar(require("./pagination/ListKeysPaginator"), exports);
42
- tslib_1.__exportStar(require("./commands/ListResourceTagsCommand"), exports);
43
- tslib_1.__exportStar(require("./commands/ListRetirableGrantsCommand"), exports);
44
- tslib_1.__exportStar(require("./commands/PutKeyPolicyCommand"), exports);
45
- tslib_1.__exportStar(require("./commands/ReEncryptCommand"), exports);
46
- tslib_1.__exportStar(require("./commands/ReplicateKeyCommand"), exports);
47
- tslib_1.__exportStar(require("./commands/RetireGrantCommand"), exports);
48
- tslib_1.__exportStar(require("./commands/RevokeGrantCommand"), exports);
49
- tslib_1.__exportStar(require("./commands/ScheduleKeyDeletionCommand"), exports);
50
- tslib_1.__exportStar(require("./commands/SignCommand"), exports);
51
- tslib_1.__exportStar(require("./commands/TagResourceCommand"), exports);
52
- tslib_1.__exportStar(require("./commands/UntagResourceCommand"), exports);
53
- tslib_1.__exportStar(require("./commands/UpdateAliasCommand"), exports);
54
- tslib_1.__exportStar(require("./commands/UpdateCustomKeyStoreCommand"), exports);
55
- tslib_1.__exportStar(require("./commands/UpdateKeyDescriptionCommand"), exports);
56
- tslib_1.__exportStar(require("./commands/UpdatePrimaryRegionCommand"), exports);
57
- tslib_1.__exportStar(require("./commands/VerifyCommand"), exports);
58
- tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
59
- tslib_1.__exportStar(require("./models/index"), exports);
5
+ tslib_1.__exportStar(require("./KMSClient"), exports);
6
+ tslib_1.__exportStar(require("./commands"), exports);
7
+ tslib_1.__exportStar(require("./models"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListAliasesPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListGrantsPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListKeyPoliciesPaginator"), exports);
8
+ tslib_1.__exportStar(require("./ListKeysPaginator"), exports);
@@ -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;