@aws-sdk/client-kms 3.1156.0 → 3.1157.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.
- package/README.md +27 -0
- package/dist-cjs/index.js +102 -36
- package/dist-es/KMS.js +4 -0
- package/dist-es/commands/DecapsulateCommand.js +4 -0
- package/dist-es/commands/EncapsulateCommand.js +4 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/enums.js +14 -0
- package/dist-es/models/errors.js +13 -13
- package/dist-es/schemas/schemas_0.js +58 -22
- package/dist-types/KMS.d.ts +27 -0
- package/dist-types/KMSClient.d.ts +17 -2
- package/dist-types/commands/CreateGrantCommand.d.ts +1 -1
- package/dist-types/commands/CreateKeyCommand.d.ts +7 -4
- package/dist-types/commands/DecapsulateCommand.d.ts +233 -0
- package/dist-types/commands/DecryptCommand.d.ts +6 -2
- package/dist-types/commands/DeriveSharedSecretCommand.d.ts +3 -2
- package/dist-types/commands/DescribeKeyCommand.d.ts +5 -2
- package/dist-types/commands/EncapsulateCommand.d.ts +212 -0
- package/dist-types/commands/EncryptCommand.d.ts +3 -2
- package/dist-types/commands/GenerateDataKeyCommand.d.ts +3 -2
- package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +10 -4
- package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +10 -4
- package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +3 -2
- package/dist-types/commands/GenerateMacCommand.d.ts +3 -2
- package/dist-types/commands/GetKeyLastUsageCommand.d.ts +3 -2
- package/dist-types/commands/GetPublicKeyCommand.d.ts +8 -4
- package/dist-types/commands/ImportKeyMaterialCommand.d.ts +3 -0
- package/dist-types/commands/ListGrantsCommand.d.ts +1 -1
- package/dist-types/commands/ListRetirableGrantsCommand.d.ts +1 -1
- package/dist-types/commands/ReEncryptCommand.d.ts +6 -2
- package/dist-types/commands/ReplicateKeyCommand.d.ts +5 -2
- package/dist-types/commands/SignCommand.d.ts +3 -2
- package/dist-types/commands/VerifyCommand.d.ts +3 -2
- package/dist-types/commands/VerifyMacCommand.d.ts +3 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/index.d.ts +13 -0
- package/dist-types/models/enums.d.ts +22 -0
- package/dist-types/models/errors.d.ts +22 -18
- package/dist-types/models/models_0.d.ts +208 -5
- package/dist-types/schemas/schemas_0.d.ts +6 -0
- package/dist-types/ts3.4/KMS.d.ts +28 -0
- package/dist-types/ts3.4/KMSClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/DecapsulateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/EncapsulateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/enums.d.ts +16 -0
- package/dist-types/ts3.4/models/errors.d.ts +6 -6
- package/dist-types/ts3.4/models/models_0.d.ts +27 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -35,6 +35,19 @@ support</a> in the KMS Developer Guide.</p>
|
|
|
35
35
|
support cipher suites with Perfect Forward Secrecy (PFS) such as Ephemeral Diffie-Hellman
|
|
36
36
|
(DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as Java 7
|
|
37
37
|
and later support these modes.</p>
|
|
38
|
+
<note>
|
|
39
|
+
<p>With current technology, brute force attacks on KMS TLS cipher suite key exchange
|
|
40
|
+
mechanisms are not feasible. However, cipher suites that use Rivest–Shamir–Adleman (RSA)
|
|
41
|
+
or Diffie-Hellman (DH) key exchange will be susceptible if large-scale quantum computing
|
|
42
|
+
becomes practical.
|
|
43
|
+
<a href="https://nvlpubs.nist.gov/nistpubs/ir/2024/NIST.IR.8547.ipd.pdf">NIST IR 8547</a>
|
|
44
|
+
on the NIST website establishes a timeline to phase out quantum-vulnerable algorithms
|
|
45
|
+
by 2030 and disallow them entirely by 2035. If your applications rely on the long-term
|
|
46
|
+
confidentiality of KMS API traffic, we recommend that you
|
|
47
|
+
<a href="https://docs.aws.amazon.com/kms/latest/developerguide/pqtls.html">use post-quantum TLS with KMS</a>.
|
|
48
|
+
For more information about post-quantum cybersecurity, see <a href="https://www.nsa.gov/Cybersecurity/Post-Quantum-Cybersecurity-Resources/">Post-Quantum Cybersecurity Resources</a> on the
|
|
49
|
+
National Security Agency (NSA) website.</p>
|
|
50
|
+
</note>
|
|
38
51
|
<p>
|
|
39
52
|
<b>Signing Requests</b>
|
|
40
53
|
</p>
|
|
@@ -320,6 +333,13 @@ CreateKey
|
|
|
320
333
|
</details>
|
|
321
334
|
<details>
|
|
322
335
|
<summary>
|
|
336
|
+
Decapsulate
|
|
337
|
+
</summary>
|
|
338
|
+
|
|
339
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kms/command/DecapsulateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kms/Interface/DecapsulateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kms/Interface/DecapsulateCommandOutput/)
|
|
340
|
+
</details>
|
|
341
|
+
<details>
|
|
342
|
+
<summary>
|
|
323
343
|
Decrypt
|
|
324
344
|
</summary>
|
|
325
345
|
|
|
@@ -404,6 +424,13 @@ EnableKeyRotation
|
|
|
404
424
|
</details>
|
|
405
425
|
<details>
|
|
406
426
|
<summary>
|
|
427
|
+
Encapsulate
|
|
428
|
+
</summary>
|
|
429
|
+
|
|
430
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kms/command/EncapsulateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kms/Interface/EncapsulateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kms/Interface/EncapsulateCommandOutput/)
|
|
431
|
+
</details>
|
|
432
|
+
<details>
|
|
433
|
+
<summary>
|
|
407
434
|
Encrypt
|
|
408
435
|
</summary>
|
|
409
436
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -69,7 +69,7 @@ const commonParams = {
|
|
|
69
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
var version = "3.
|
|
72
|
+
var version = "3.1156.0";
|
|
73
73
|
var packageInfo = {
|
|
74
74
|
version: version};
|
|
75
75
|
|
|
@@ -620,19 +620,6 @@ class CustomKeyStoreHasCMKsException extends KMSServiceException {
|
|
|
620
620
|
Object.setPrototypeOf(this, CustomKeyStoreHasCMKsException.prototype);
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
class IncorrectKeyException extends KMSServiceException {
|
|
624
|
-
static shapeId = "com.amazonaws.kms#IncorrectKeyException";
|
|
625
|
-
name = "IncorrectKeyException";
|
|
626
|
-
$fault = "client";
|
|
627
|
-
constructor(opts) {
|
|
628
|
-
super({
|
|
629
|
-
name: "IncorrectKeyException",
|
|
630
|
-
$fault: "client",
|
|
631
|
-
...opts,
|
|
632
|
-
});
|
|
633
|
-
Object.setPrototypeOf(this, IncorrectKeyException.prototype);
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
623
|
class InvalidCiphertextException extends KMSServiceException {
|
|
637
624
|
static shapeId = "com.amazonaws.kms#InvalidCiphertextException";
|
|
638
625
|
name = "InvalidCiphertextException";
|
|
@@ -672,6 +659,19 @@ class KeyUnavailableException extends KMSServiceException {
|
|
|
672
659
|
Object.setPrototypeOf(this, KeyUnavailableException.prototype);
|
|
673
660
|
}
|
|
674
661
|
}
|
|
662
|
+
class IncorrectKeyException extends KMSServiceException {
|
|
663
|
+
static shapeId = "com.amazonaws.kms#IncorrectKeyException";
|
|
664
|
+
name = "IncorrectKeyException";
|
|
665
|
+
$fault = "client";
|
|
666
|
+
constructor(opts) {
|
|
667
|
+
super({
|
|
668
|
+
name: "IncorrectKeyException",
|
|
669
|
+
$fault: "client",
|
|
670
|
+
...opts,
|
|
671
|
+
});
|
|
672
|
+
Object.setPrototypeOf(this, IncorrectKeyException.prototype);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
675
|
class InvalidMarkerException extends KMSServiceException {
|
|
676
676
|
static shapeId = "com.amazonaws.kms#InvalidMarkerException";
|
|
677
677
|
name = "InvalidMarkerException";
|
|
@@ -850,16 +850,21 @@ const _DKi = "DisableKey";
|
|
|
850
850
|
const _DR = "DryRun";
|
|
851
851
|
const _DRM = "DryRunModifiers";
|
|
852
852
|
const _DROE = "DryRunOperationException";
|
|
853
|
-
const _DRe = "
|
|
854
|
-
const _DRec = "
|
|
853
|
+
const _DRe = "DecapsulateRequest";
|
|
854
|
+
const _DRec = "DecapsulateResponse";
|
|
855
|
+
const _DRecr = "DecryptRequest";
|
|
856
|
+
const _DRecry = "DecryptResponse";
|
|
855
857
|
const _DSS = "DeriveSharedSecret";
|
|
856
858
|
const _DSSR = "DeriveSharedSecretRequest";
|
|
857
859
|
const _DSSRe = "DeriveSharedSecretResponse";
|
|
858
860
|
const _DTE = "DependencyTimeoutException";
|
|
859
|
-
const _De = "
|
|
861
|
+
const _De = "Decapsulate";
|
|
862
|
+
const _Dec = "Decrypt";
|
|
860
863
|
const _E = "Enabled";
|
|
861
|
-
const _EA = "
|
|
862
|
-
const _EAn = "
|
|
864
|
+
const _EA = "EncapsulationAlgorithm";
|
|
865
|
+
const _EAn = "EncryptionAlgorithm";
|
|
866
|
+
const _EAnc = "EncryptionAlgorithms";
|
|
867
|
+
const _EAnca = "EncapsulationAlgorithms";
|
|
863
868
|
const _EC = "EncryptionContext";
|
|
864
869
|
const _ECE = "EncryptionContextEquals";
|
|
865
870
|
const _ECS = "EncryptionContextSubset";
|
|
@@ -870,9 +875,12 @@ const _EKR = "EnableKeyRequest";
|
|
|
870
875
|
const _EKRR = "EnableKeyRotationRequest";
|
|
871
876
|
const _EKRn = "EnableKeyRotation";
|
|
872
877
|
const _EM = "ExpirationModel";
|
|
873
|
-
const _ER = "
|
|
874
|
-
const _ERn = "
|
|
875
|
-
const
|
|
878
|
+
const _ER = "EncapsulateRequest";
|
|
879
|
+
const _ERn = "EncapsulateResponse";
|
|
880
|
+
const _ERnc = "EncryptRequest";
|
|
881
|
+
const _ERncr = "EncryptResponse";
|
|
882
|
+
const _En = "Encapsulate";
|
|
883
|
+
const _Enc = "Encrypt";
|
|
876
884
|
const _G = "Grants";
|
|
877
885
|
const _GC = "GrantConstraints";
|
|
878
886
|
const _GDK = "GenerateDataKey";
|
|
@@ -1070,6 +1078,7 @@ const _SKMI = "SourceKeyMaterialId";
|
|
|
1070
1078
|
const _SR = "SignRequest";
|
|
1071
1079
|
const _SRi = "SignResponse";
|
|
1072
1080
|
const _SS = "SharedSecret";
|
|
1081
|
+
const _SSCB = "SharedSecretCiphertextBlob";
|
|
1073
1082
|
const _SV = "SignatureValid";
|
|
1074
1083
|
const _Si = "Sign";
|
|
1075
1084
|
const _T = "Tags";
|
|
@@ -1510,14 +1519,24 @@ var CustomKeyStoresListEntry$ = [3, n0, _CKSLE,
|
|
|
1510
1519
|
[_CKSI, _CKSN, _CHCI, _TAC, _CS, _CEC, _CD, _CKST, _XPCk],
|
|
1511
1520
|
[0, 0, 0, 0, 0, 0, 4, 0, [() => XksProxyConfigurationType$, 0]]
|
|
1512
1521
|
];
|
|
1513
|
-
var
|
|
1522
|
+
var DecapsulateRequest$ = [3, n0, _DRe,
|
|
1514
1523
|
0,
|
|
1515
|
-
[
|
|
1524
|
+
[_KI, _SSCB, _EA, _GT, _DR],
|
|
1525
|
+
[0, 21, 0, 64 | 0, 2], 3
|
|
1526
|
+
];
|
|
1527
|
+
var DecapsulateResponse$ = [3, n0, _DRec,
|
|
1528
|
+
0,
|
|
1529
|
+
[_KI, _SS, _EA],
|
|
1530
|
+
[0, [() => PlaintextType, 0], 0]
|
|
1531
|
+
];
|
|
1532
|
+
var DecryptRequest$ = [3, n0, _DRecr,
|
|
1533
|
+
0,
|
|
1534
|
+
[_CB, _EC, _GT, _KI, _EAn, _R, _DR, _DRM],
|
|
1516
1535
|
[21, 128 | 0, 64 | 0, 0, 0, () => RecipientInfo$, 2, 64 | 0]
|
|
1517
1536
|
];
|
|
1518
|
-
var DecryptResponse$ = [3, n0,
|
|
1537
|
+
var DecryptResponse$ = [3, n0, _DRecry,
|
|
1519
1538
|
0,
|
|
1520
|
-
[_KI, _Pl,
|
|
1539
|
+
[_KI, _Pl, _EAn, _CFR, _KMI],
|
|
1521
1540
|
[0, [() => PlaintextType, 0], 0, 21, 0]
|
|
1522
1541
|
];
|
|
1523
1542
|
var DeleteAliasRequest$ = [3, n0, _DAR,
|
|
@@ -1605,14 +1624,24 @@ var EnableKeyRotationRequest$ = [3, n0, _EKRR,
|
|
|
1605
1624
|
[_KI, _RPID],
|
|
1606
1625
|
[0, 1], 1
|
|
1607
1626
|
];
|
|
1608
|
-
var
|
|
1627
|
+
var EncapsulateRequest$ = [3, n0, _ER,
|
|
1628
|
+
0,
|
|
1629
|
+
[_KI, _EA, _GT, _DR],
|
|
1630
|
+
[0, 0, 64 | 0, 2], 2
|
|
1631
|
+
];
|
|
1632
|
+
var EncapsulateResponse$ = [3, n0, _ERn,
|
|
1633
|
+
0,
|
|
1634
|
+
[_KI, _SS, _SSCB, _EA],
|
|
1635
|
+
[0, [() => PlaintextType, 0], 21, 0]
|
|
1636
|
+
];
|
|
1637
|
+
var EncryptRequest$ = [3, n0, _ERnc,
|
|
1609
1638
|
0,
|
|
1610
|
-
[_KI, _Pl, _EC, _GT,
|
|
1639
|
+
[_KI, _Pl, _EC, _GT, _EAn, _DR],
|
|
1611
1640
|
[0, [() => PlaintextType, 0], 128 | 0, 64 | 0, 0, 2], 2
|
|
1612
1641
|
];
|
|
1613
|
-
var EncryptResponse$ = [3, n0,
|
|
1642
|
+
var EncryptResponse$ = [3, n0, _ERncr,
|
|
1614
1643
|
0,
|
|
1615
|
-
[_CB, _KI,
|
|
1644
|
+
[_CB, _KI, _EAn],
|
|
1616
1645
|
[21, 0, 0]
|
|
1617
1646
|
];
|
|
1618
1647
|
var GenerateDataKeyPairRequest$ = [3, n0, _GDKPR,
|
|
@@ -1722,8 +1751,8 @@ var GetPublicKeyRequest$ = [3, n0, _GPKR,
|
|
|
1722
1751
|
];
|
|
1723
1752
|
var GetPublicKeyResponse$ = [3, n0, _GPKRe,
|
|
1724
1753
|
0,
|
|
1725
|
-
[_KI, _PK, _CMKS, _KS, _KU,
|
|
1726
|
-
[0, 21, 0, 0, 0, 64 | 0, 64 | 0, 64 | 0]
|
|
1754
|
+
[_KI, _PK, _CMKS, _KS, _KU, _EAnc, _SA, _KAAe, _EAnca],
|
|
1755
|
+
[0, 21, 0, 0, 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0]
|
|
1727
1756
|
];
|
|
1728
1757
|
var GrantConstraints$ = [3, n0, _GC,
|
|
1729
1758
|
0,
|
|
@@ -1757,8 +1786,8 @@ var KeyListEntry$ = [3, n0, _KLE,
|
|
|
1757
1786
|
];
|
|
1758
1787
|
var KeyMetadata$ = [3, n0, _KM,
|
|
1759
1788
|
0,
|
|
1760
|
-
[_KI, _AWSAI, _A, _CD, _E, _D, _KU, _KSe, _DD, _VT, _Or, _CKSI, _CHCI, _EM, _KMe, _CMKS, _KS,
|
|
1761
|
-
[0, 0, 0, 4, 2, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 64 | 0, 64 | 0, 64 | 0, 2, () => MultiRegionConfiguration$, 1, 64 | 0, () => XksKeyConfigurationType$, 0], 1
|
|
1789
|
+
[_KI, _AWSAI, _A, _CD, _E, _D, _KU, _KSe, _DD, _VT, _Or, _CKSI, _CHCI, _EM, _KMe, _CMKS, _KS, _EAnc, _SA, _KAAe, _EAnca, _MR, _MRC, _PDWID, _MAa, _XKC, _CKMI],
|
|
1790
|
+
[0, 0, 0, 4, 2, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 2, () => MultiRegionConfiguration$, 1, 64 | 0, () => XksKeyConfigurationType$, 0], 1
|
|
1762
1791
|
];
|
|
1763
1792
|
var ListAliasesRequest$ = [3, n0, _LAR,
|
|
1764
1793
|
0,
|
|
@@ -2026,7 +2055,10 @@ var CreateGrant$ = [9, n0, _CG,
|
|
|
2026
2055
|
var CreateKey$ = [9, n0, _CK,
|
|
2027
2056
|
0, () => CreateKeyRequest$, () => CreateKeyResponse$
|
|
2028
2057
|
];
|
|
2029
|
-
var
|
|
2058
|
+
var Decapsulate$ = [9, n0, _De,
|
|
2059
|
+
0, () => DecapsulateRequest$, () => DecapsulateResponse$
|
|
2060
|
+
];
|
|
2061
|
+
var Decrypt$ = [9, n0, _Dec,
|
|
2030
2062
|
0, () => DecryptRequest$, () => DecryptResponse$
|
|
2031
2063
|
];
|
|
2032
2064
|
var DeleteAlias$ = [9, n0, _DA,
|
|
@@ -2062,7 +2094,10 @@ var EnableKey$ = [9, n0, _EK,
|
|
|
2062
2094
|
var EnableKeyRotation$ = [9, n0, _EKRn,
|
|
2063
2095
|
0, () => EnableKeyRotationRequest$, () => __Unit
|
|
2064
2096
|
];
|
|
2065
|
-
var
|
|
2097
|
+
var Encapsulate$ = [9, n0, _En,
|
|
2098
|
+
0, () => EncapsulateRequest$, () => EncapsulateResponse$
|
|
2099
|
+
];
|
|
2100
|
+
var Encrypt$ = [9, n0, _Enc,
|
|
2066
2101
|
0, () => EncryptRequest$, () => EncryptResponse$
|
|
2067
2102
|
];
|
|
2068
2103
|
var GenerateDataKey$ = [9, n0, _GDK,
|
|
@@ -2340,6 +2375,9 @@ class CreateGrantCommand extends command(_ep0, _mw0, "CreateGrant", CreateGrant$
|
|
|
2340
2375
|
class CreateKeyCommand extends command(_ep0, _mw0, "CreateKey", CreateKey$) {
|
|
2341
2376
|
}
|
|
2342
2377
|
|
|
2378
|
+
class DecapsulateCommand extends command(_ep0, _mw0, "Decapsulate", Decapsulate$) {
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2343
2381
|
class DecryptCommand extends command(_ep0, _mw0, "Decrypt", Decrypt$) {
|
|
2344
2382
|
}
|
|
2345
2383
|
|
|
@@ -2376,6 +2414,9 @@ class EnableKeyCommand extends command(_ep0, _mw0, "EnableKey", EnableKey$) {
|
|
|
2376
2414
|
class EnableKeyRotationCommand extends command(_ep0, _mw0, "EnableKeyRotation", EnableKeyRotation$) {
|
|
2377
2415
|
}
|
|
2378
2416
|
|
|
2417
|
+
class EncapsulateCommand extends command(_ep0, _mw0, "Encapsulate", Encapsulate$) {
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2379
2420
|
class EncryptCommand extends command(_ep0, _mw0, "Encrypt", Encrypt$) {
|
|
2380
2421
|
}
|
|
2381
2422
|
|
|
@@ -2507,6 +2548,7 @@ const commands = {
|
|
|
2507
2548
|
CreateCustomKeyStoreCommand,
|
|
2508
2549
|
CreateGrantCommand,
|
|
2509
2550
|
CreateKeyCommand,
|
|
2551
|
+
DecapsulateCommand,
|
|
2510
2552
|
DecryptCommand,
|
|
2511
2553
|
DeleteAliasCommand,
|
|
2512
2554
|
DeleteCustomKeyStoreCommand,
|
|
@@ -2519,6 +2561,7 @@ const commands = {
|
|
|
2519
2561
|
DisconnectCustomKeyStoreCommand,
|
|
2520
2562
|
EnableKeyCommand,
|
|
2521
2563
|
EnableKeyRotationCommand,
|
|
2564
|
+
EncapsulateCommand,
|
|
2522
2565
|
EncryptCommand,
|
|
2523
2566
|
GenerateDataKeyCommand,
|
|
2524
2567
|
GenerateDataKeyPairCommand,
|
|
@@ -2615,9 +2658,11 @@ const XksProxyConnectivityType = {
|
|
|
2615
2658
|
};
|
|
2616
2659
|
const GrantOperation = {
|
|
2617
2660
|
CreateGrant: "CreateGrant",
|
|
2661
|
+
Decapsulate: "Decapsulate",
|
|
2618
2662
|
Decrypt: "Decrypt",
|
|
2619
2663
|
DeriveSharedSecret: "DeriveSharedSecret",
|
|
2620
2664
|
DescribeKey: "DescribeKey",
|
|
2665
|
+
Encapsulate: "Encapsulate",
|
|
2621
2666
|
Encrypt: "Encrypt",
|
|
2622
2667
|
GenerateDataKey: "GenerateDataKey",
|
|
2623
2668
|
GenerateDataKeyPair: "GenerateDataKeyPair",
|
|
@@ -2660,6 +2705,9 @@ const KeySpec = {
|
|
|
2660
2705
|
ML_DSA_44: "ML_DSA_44",
|
|
2661
2706
|
ML_DSA_65: "ML_DSA_65",
|
|
2662
2707
|
ML_DSA_87: "ML_DSA_87",
|
|
2708
|
+
ML_KEM_1024: "ML_KEM_1024",
|
|
2709
|
+
ML_KEM_512: "ML_KEM_512",
|
|
2710
|
+
ML_KEM_768: "ML_KEM_768",
|
|
2663
2711
|
RSA_2048: "RSA_2048",
|
|
2664
2712
|
RSA_3072: "RSA_3072",
|
|
2665
2713
|
RSA_4096: "RSA_4096",
|
|
@@ -2667,6 +2715,7 @@ const KeySpec = {
|
|
|
2667
2715
|
SYMMETRIC_DEFAULT: "SYMMETRIC_DEFAULT",
|
|
2668
2716
|
};
|
|
2669
2717
|
const KeyUsageType = {
|
|
2718
|
+
ENCAPSULATE_DECAPSULATE: "ENCAPSULATE_DECAPSULATE",
|
|
2670
2719
|
ENCRYPT_DECRYPT: "ENCRYPT_DECRYPT",
|
|
2671
2720
|
GENERATE_VERIFY_MAC: "GENERATE_VERIFY_MAC",
|
|
2672
2721
|
KEY_AGREEMENT: "KEY_AGREEMENT",
|
|
@@ -2678,6 +2727,9 @@ const OriginType = {
|
|
|
2678
2727
|
EXTERNAL: "EXTERNAL",
|
|
2679
2728
|
EXTERNAL_KEY_STORE: "EXTERNAL_KEY_STORE",
|
|
2680
2729
|
};
|
|
2730
|
+
const EncapsulationAlgorithmSpec = {
|
|
2731
|
+
ML_KEM: "ML_KEM",
|
|
2732
|
+
};
|
|
2681
2733
|
const EncryptionAlgorithmSpec = {
|
|
2682
2734
|
RSAES_OAEP_SHA_1: "RSAES_OAEP_SHA_1",
|
|
2683
2735
|
RSAES_OAEP_SHA_256: "RSAES_OAEP_SHA_256",
|
|
@@ -2736,6 +2788,9 @@ const DataKeyPairSpec = {
|
|
|
2736
2788
|
ECC_NIST_P384: "ECC_NIST_P384",
|
|
2737
2789
|
ECC_NIST_P521: "ECC_NIST_P521",
|
|
2738
2790
|
ECC_SECG_P256K1: "ECC_SECG_P256K1",
|
|
2791
|
+
ML_KEM_1024: "ML_KEM_1024",
|
|
2792
|
+
ML_KEM_512: "ML_KEM_512",
|
|
2793
|
+
ML_KEM_768: "ML_KEM_768",
|
|
2739
2794
|
RSA_2048: "RSA_2048",
|
|
2740
2795
|
RSA_3072: "RSA_3072",
|
|
2741
2796
|
RSA_4096: "RSA_4096",
|
|
@@ -2752,8 +2807,10 @@ const KeyEncryptionMechanism = {
|
|
|
2752
2807
|
RSAES_OAEP_SHA_256: "RSAES_OAEP_SHA_256",
|
|
2753
2808
|
};
|
|
2754
2809
|
const KeyLastUsageTrackingOperation = {
|
|
2810
|
+
Decapsulate: "Decapsulate",
|
|
2755
2811
|
Decrypt: "Decrypt",
|
|
2756
2812
|
DeriveSharedSecret: "DeriveSharedSecret",
|
|
2813
|
+
Encapsulate: "Encapsulate",
|
|
2757
2814
|
Encrypt: "Encrypt",
|
|
2758
2815
|
GenerateDataKey: "GenerateDataKey",
|
|
2759
2816
|
GenerateDataKeyPair: "GenerateDataKeyPair",
|
|
@@ -2853,6 +2910,10 @@ exports.CustomKeyStoresListEntry$ = CustomKeyStoresListEntry$;
|
|
|
2853
2910
|
exports.CustomerMasterKeySpec = CustomerMasterKeySpec;
|
|
2854
2911
|
exports.DataKeyPairSpec = DataKeyPairSpec;
|
|
2855
2912
|
exports.DataKeySpec = DataKeySpec;
|
|
2913
|
+
exports.Decapsulate$ = Decapsulate$;
|
|
2914
|
+
exports.DecapsulateCommand = DecapsulateCommand;
|
|
2915
|
+
exports.DecapsulateRequest$ = DecapsulateRequest$;
|
|
2916
|
+
exports.DecapsulateResponse$ = DecapsulateResponse$;
|
|
2856
2917
|
exports.Decrypt$ = Decrypt$;
|
|
2857
2918
|
exports.DecryptCommand = DecryptCommand;
|
|
2858
2919
|
exports.DecryptRequest$ = DecryptRequest$;
|
|
@@ -2903,6 +2964,11 @@ exports.EnableKeyRequest$ = EnableKeyRequest$;
|
|
|
2903
2964
|
exports.EnableKeyRotation$ = EnableKeyRotation$;
|
|
2904
2965
|
exports.EnableKeyRotationCommand = EnableKeyRotationCommand;
|
|
2905
2966
|
exports.EnableKeyRotationRequest$ = EnableKeyRotationRequest$;
|
|
2967
|
+
exports.Encapsulate$ = Encapsulate$;
|
|
2968
|
+
exports.EncapsulateCommand = EncapsulateCommand;
|
|
2969
|
+
exports.EncapsulateRequest$ = EncapsulateRequest$;
|
|
2970
|
+
exports.EncapsulateResponse$ = EncapsulateResponse$;
|
|
2971
|
+
exports.EncapsulationAlgorithmSpec = EncapsulationAlgorithmSpec;
|
|
2906
2972
|
exports.Encrypt$ = Encrypt$;
|
|
2907
2973
|
exports.EncryptCommand = EncryptCommand;
|
|
2908
2974
|
exports.EncryptRequest$ = EncryptRequest$;
|
package/dist-es/KMS.js
CHANGED
|
@@ -5,6 +5,7 @@ import { CreateAliasCommand, } from "./commands/CreateAliasCommand";
|
|
|
5
5
|
import { CreateCustomKeyStoreCommand, } from "./commands/CreateCustomKeyStoreCommand";
|
|
6
6
|
import { CreateGrantCommand, } from "./commands/CreateGrantCommand";
|
|
7
7
|
import { CreateKeyCommand } from "./commands/CreateKeyCommand";
|
|
8
|
+
import { DecapsulateCommand, } from "./commands/DecapsulateCommand";
|
|
8
9
|
import { DecryptCommand } from "./commands/DecryptCommand";
|
|
9
10
|
import { DeleteAliasCommand, } from "./commands/DeleteAliasCommand";
|
|
10
11
|
import { DeleteCustomKeyStoreCommand, } from "./commands/DeleteCustomKeyStoreCommand";
|
|
@@ -17,6 +18,7 @@ import { DisableKeyRotationCommand, } from "./commands/DisableKeyRotationCommand
|
|
|
17
18
|
import { DisconnectCustomKeyStoreCommand, } from "./commands/DisconnectCustomKeyStoreCommand";
|
|
18
19
|
import { EnableKeyCommand } from "./commands/EnableKeyCommand";
|
|
19
20
|
import { EnableKeyRotationCommand, } from "./commands/EnableKeyRotationCommand";
|
|
21
|
+
import { EncapsulateCommand, } from "./commands/EncapsulateCommand";
|
|
20
22
|
import { EncryptCommand } from "./commands/EncryptCommand";
|
|
21
23
|
import { GenerateDataKeyCommand, } from "./commands/GenerateDataKeyCommand";
|
|
22
24
|
import { GenerateDataKeyPairCommand, } from "./commands/GenerateDataKeyPairCommand";
|
|
@@ -69,6 +71,7 @@ const commands = {
|
|
|
69
71
|
CreateCustomKeyStoreCommand,
|
|
70
72
|
CreateGrantCommand,
|
|
71
73
|
CreateKeyCommand,
|
|
74
|
+
DecapsulateCommand,
|
|
72
75
|
DecryptCommand,
|
|
73
76
|
DeleteAliasCommand,
|
|
74
77
|
DeleteCustomKeyStoreCommand,
|
|
@@ -81,6 +84,7 @@ const commands = {
|
|
|
81
84
|
DisconnectCustomKeyStoreCommand,
|
|
82
85
|
EnableKeyCommand,
|
|
83
86
|
EnableKeyRotationCommand,
|
|
87
|
+
EncapsulateCommand,
|
|
84
88
|
EncryptCommand,
|
|
85
89
|
GenerateDataKeyCommand,
|
|
86
90
|
GenerateDataKeyPairCommand,
|
|
@@ -4,6 +4,7 @@ export * from "./CreateAliasCommand";
|
|
|
4
4
|
export * from "./CreateCustomKeyStoreCommand";
|
|
5
5
|
export * from "./CreateGrantCommand";
|
|
6
6
|
export * from "./CreateKeyCommand";
|
|
7
|
+
export * from "./DecapsulateCommand";
|
|
7
8
|
export * from "./DecryptCommand";
|
|
8
9
|
export * from "./DeleteAliasCommand";
|
|
9
10
|
export * from "./DeleteCustomKeyStoreCommand";
|
|
@@ -16,6 +17,7 @@ export * from "./DisableKeyRotationCommand";
|
|
|
16
17
|
export * from "./DisconnectCustomKeyStoreCommand";
|
|
17
18
|
export * from "./EnableKeyCommand";
|
|
18
19
|
export * from "./EnableKeyRotationCommand";
|
|
20
|
+
export * from "./EncapsulateCommand";
|
|
19
21
|
export * from "./EncryptCommand";
|
|
20
22
|
export * from "./GenerateDataKeyCommand";
|
|
21
23
|
export * from "./GenerateDataKeyPairCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -43,9 +43,11 @@ export const XksProxyConnectivityType = {
|
|
|
43
43
|
};
|
|
44
44
|
export const GrantOperation = {
|
|
45
45
|
CreateGrant: "CreateGrant",
|
|
46
|
+
Decapsulate: "Decapsulate",
|
|
46
47
|
Decrypt: "Decrypt",
|
|
47
48
|
DeriveSharedSecret: "DeriveSharedSecret",
|
|
48
49
|
DescribeKey: "DescribeKey",
|
|
50
|
+
Encapsulate: "Encapsulate",
|
|
49
51
|
Encrypt: "Encrypt",
|
|
50
52
|
GenerateDataKey: "GenerateDataKey",
|
|
51
53
|
GenerateDataKeyPair: "GenerateDataKeyPair",
|
|
@@ -88,6 +90,9 @@ export const KeySpec = {
|
|
|
88
90
|
ML_DSA_44: "ML_DSA_44",
|
|
89
91
|
ML_DSA_65: "ML_DSA_65",
|
|
90
92
|
ML_DSA_87: "ML_DSA_87",
|
|
93
|
+
ML_KEM_1024: "ML_KEM_1024",
|
|
94
|
+
ML_KEM_512: "ML_KEM_512",
|
|
95
|
+
ML_KEM_768: "ML_KEM_768",
|
|
91
96
|
RSA_2048: "RSA_2048",
|
|
92
97
|
RSA_3072: "RSA_3072",
|
|
93
98
|
RSA_4096: "RSA_4096",
|
|
@@ -95,6 +100,7 @@ export const KeySpec = {
|
|
|
95
100
|
SYMMETRIC_DEFAULT: "SYMMETRIC_DEFAULT",
|
|
96
101
|
};
|
|
97
102
|
export const KeyUsageType = {
|
|
103
|
+
ENCAPSULATE_DECAPSULATE: "ENCAPSULATE_DECAPSULATE",
|
|
98
104
|
ENCRYPT_DECRYPT: "ENCRYPT_DECRYPT",
|
|
99
105
|
GENERATE_VERIFY_MAC: "GENERATE_VERIFY_MAC",
|
|
100
106
|
KEY_AGREEMENT: "KEY_AGREEMENT",
|
|
@@ -106,6 +112,9 @@ export const OriginType = {
|
|
|
106
112
|
EXTERNAL: "EXTERNAL",
|
|
107
113
|
EXTERNAL_KEY_STORE: "EXTERNAL_KEY_STORE",
|
|
108
114
|
};
|
|
115
|
+
export const EncapsulationAlgorithmSpec = {
|
|
116
|
+
ML_KEM: "ML_KEM",
|
|
117
|
+
};
|
|
109
118
|
export const EncryptionAlgorithmSpec = {
|
|
110
119
|
RSAES_OAEP_SHA_1: "RSAES_OAEP_SHA_1",
|
|
111
120
|
RSAES_OAEP_SHA_256: "RSAES_OAEP_SHA_256",
|
|
@@ -164,6 +173,9 @@ export const DataKeyPairSpec = {
|
|
|
164
173
|
ECC_NIST_P384: "ECC_NIST_P384",
|
|
165
174
|
ECC_NIST_P521: "ECC_NIST_P521",
|
|
166
175
|
ECC_SECG_P256K1: "ECC_SECG_P256K1",
|
|
176
|
+
ML_KEM_1024: "ML_KEM_1024",
|
|
177
|
+
ML_KEM_512: "ML_KEM_512",
|
|
178
|
+
ML_KEM_768: "ML_KEM_768",
|
|
167
179
|
RSA_2048: "RSA_2048",
|
|
168
180
|
RSA_3072: "RSA_3072",
|
|
169
181
|
RSA_4096: "RSA_4096",
|
|
@@ -180,8 +192,10 @@ export const KeyEncryptionMechanism = {
|
|
|
180
192
|
RSAES_OAEP_SHA_256: "RSAES_OAEP_SHA_256",
|
|
181
193
|
};
|
|
182
194
|
export const KeyLastUsageTrackingOperation = {
|
|
195
|
+
Decapsulate: "Decapsulate",
|
|
183
196
|
Decrypt: "Decrypt",
|
|
184
197
|
DeriveSharedSecret: "DeriveSharedSecret",
|
|
198
|
+
Encapsulate: "Encapsulate",
|
|
185
199
|
Encrypt: "Encrypt",
|
|
186
200
|
GenerateDataKey: "GenerateDataKey",
|
|
187
201
|
GenerateDataKeyPair: "GenerateDataKeyPair",
|
package/dist-es/models/errors.js
CHANGED
|
@@ -480,19 +480,6 @@ export class CustomKeyStoreHasCMKsException extends __BaseException {
|
|
|
480
480
|
Object.setPrototypeOf(this, CustomKeyStoreHasCMKsException.prototype);
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
export class IncorrectKeyException extends __BaseException {
|
|
484
|
-
static shapeId = "com.amazonaws.kms#IncorrectKeyException";
|
|
485
|
-
name = "IncorrectKeyException";
|
|
486
|
-
$fault = "client";
|
|
487
|
-
constructor(opts) {
|
|
488
|
-
super({
|
|
489
|
-
name: "IncorrectKeyException",
|
|
490
|
-
$fault: "client",
|
|
491
|
-
...opts,
|
|
492
|
-
});
|
|
493
|
-
Object.setPrototypeOf(this, IncorrectKeyException.prototype);
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
483
|
export class InvalidCiphertextException extends __BaseException {
|
|
497
484
|
static shapeId = "com.amazonaws.kms#InvalidCiphertextException";
|
|
498
485
|
name = "InvalidCiphertextException";
|
|
@@ -532,6 +519,19 @@ export class KeyUnavailableException extends __BaseException {
|
|
|
532
519
|
Object.setPrototypeOf(this, KeyUnavailableException.prototype);
|
|
533
520
|
}
|
|
534
521
|
}
|
|
522
|
+
export class IncorrectKeyException extends __BaseException {
|
|
523
|
+
static shapeId = "com.amazonaws.kms#IncorrectKeyException";
|
|
524
|
+
name = "IncorrectKeyException";
|
|
525
|
+
$fault = "client";
|
|
526
|
+
constructor(opts) {
|
|
527
|
+
super({
|
|
528
|
+
name: "IncorrectKeyException",
|
|
529
|
+
$fault: "client",
|
|
530
|
+
...opts,
|
|
531
|
+
});
|
|
532
|
+
Object.setPrototypeOf(this, IncorrectKeyException.prototype);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
535
|
export class InvalidMarkerException extends __BaseException {
|
|
536
536
|
static shapeId = "com.amazonaws.kms#InvalidMarkerException";
|
|
537
537
|
name = "InvalidMarkerException";
|