@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
|
@@ -87,9 +87,11 @@ export type XksProxyConnectivityType = (typeof XksProxyConnectivityType)[keyof t
|
|
|
87
87
|
*/
|
|
88
88
|
export declare const GrantOperation: {
|
|
89
89
|
readonly CreateGrant: "CreateGrant";
|
|
90
|
+
readonly Decapsulate: "Decapsulate";
|
|
90
91
|
readonly Decrypt: "Decrypt";
|
|
91
92
|
readonly DeriveSharedSecret: "DeriveSharedSecret";
|
|
92
93
|
readonly DescribeKey: "DescribeKey";
|
|
94
|
+
readonly Encapsulate: "Encapsulate";
|
|
93
95
|
readonly Encrypt: "Encrypt";
|
|
94
96
|
readonly GenerateDataKey: "GenerateDataKey";
|
|
95
97
|
readonly GenerateDataKeyPair: "GenerateDataKeyPair";
|
|
@@ -148,6 +150,9 @@ export declare const KeySpec: {
|
|
|
148
150
|
readonly ML_DSA_44: "ML_DSA_44";
|
|
149
151
|
readonly ML_DSA_65: "ML_DSA_65";
|
|
150
152
|
readonly ML_DSA_87: "ML_DSA_87";
|
|
153
|
+
readonly ML_KEM_1024: "ML_KEM_1024";
|
|
154
|
+
readonly ML_KEM_512: "ML_KEM_512";
|
|
155
|
+
readonly ML_KEM_768: "ML_KEM_768";
|
|
151
156
|
readonly RSA_2048: "RSA_2048";
|
|
152
157
|
readonly RSA_3072: "RSA_3072";
|
|
153
158
|
readonly RSA_4096: "RSA_4096";
|
|
@@ -163,6 +168,7 @@ export type KeySpec = (typeof KeySpec)[keyof typeof KeySpec];
|
|
|
163
168
|
* @enum
|
|
164
169
|
*/
|
|
165
170
|
export declare const KeyUsageType: {
|
|
171
|
+
readonly ENCAPSULATE_DECAPSULATE: "ENCAPSULATE_DECAPSULATE";
|
|
166
172
|
readonly ENCRYPT_DECRYPT: "ENCRYPT_DECRYPT";
|
|
167
173
|
readonly GENERATE_VERIFY_MAC: "GENERATE_VERIFY_MAC";
|
|
168
174
|
readonly KEY_AGREEMENT: "KEY_AGREEMENT";
|
|
@@ -186,6 +192,17 @@ export declare const OriginType: {
|
|
|
186
192
|
* @public
|
|
187
193
|
*/
|
|
188
194
|
export type OriginType = (typeof OriginType)[keyof typeof OriginType];
|
|
195
|
+
/**
|
|
196
|
+
* @public
|
|
197
|
+
* @enum
|
|
198
|
+
*/
|
|
199
|
+
export declare const EncapsulationAlgorithmSpec: {
|
|
200
|
+
readonly ML_KEM: "ML_KEM";
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* @public
|
|
204
|
+
*/
|
|
205
|
+
export type EncapsulationAlgorithmSpec = (typeof EncapsulationAlgorithmSpec)[keyof typeof EncapsulationAlgorithmSpec];
|
|
189
206
|
/**
|
|
190
207
|
* @public
|
|
191
208
|
* @enum
|
|
@@ -312,6 +329,9 @@ export declare const DataKeyPairSpec: {
|
|
|
312
329
|
readonly ECC_NIST_P384: "ECC_NIST_P384";
|
|
313
330
|
readonly ECC_NIST_P521: "ECC_NIST_P521";
|
|
314
331
|
readonly ECC_SECG_P256K1: "ECC_SECG_P256K1";
|
|
332
|
+
readonly ML_KEM_1024: "ML_KEM_1024";
|
|
333
|
+
readonly ML_KEM_512: "ML_KEM_512";
|
|
334
|
+
readonly ML_KEM_768: "ML_KEM_768";
|
|
315
335
|
readonly RSA_2048: "RSA_2048";
|
|
316
336
|
readonly RSA_3072: "RSA_3072";
|
|
317
337
|
readonly RSA_4096: "RSA_4096";
|
|
@@ -360,8 +380,10 @@ export type KeyEncryptionMechanism = (typeof KeyEncryptionMechanism)[keyof typeo
|
|
|
360
380
|
* @enum
|
|
361
381
|
*/
|
|
362
382
|
export declare const KeyLastUsageTrackingOperation: {
|
|
383
|
+
readonly Decapsulate: "Decapsulate";
|
|
363
384
|
readonly Decrypt: "Decrypt";
|
|
364
385
|
readonly DeriveSharedSecret: "DeriveSharedSecret";
|
|
386
|
+
readonly Encapsulate: "Encapsulate";
|
|
365
387
|
readonly Encrypt: "Encrypt";
|
|
366
388
|
readonly GenerateDataKey: "GenerateDataKey";
|
|
367
389
|
readonly GenerateDataKeyPair: "GenerateDataKeyPair";
|
|
@@ -636,22 +636,6 @@ export declare class CustomKeyStoreHasCMKsException extends __BaseException {
|
|
|
636
636
|
*/
|
|
637
637
|
constructor(opts: __ExceptionOptionType<CustomKeyStoreHasCMKsException, __BaseException>);
|
|
638
638
|
}
|
|
639
|
-
/**
|
|
640
|
-
* <p>The request was rejected because the specified KMS key cannot decrypt the data. The
|
|
641
|
-
* <code>KeyId</code> in a <a>Decrypt</a> request and the <code>SourceKeyId</code>
|
|
642
|
-
* in a <a>ReEncrypt</a> request must identify the same KMS key that was used to
|
|
643
|
-
* encrypt the ciphertext.</p>
|
|
644
|
-
* @public
|
|
645
|
-
*/
|
|
646
|
-
export declare class IncorrectKeyException extends __BaseException {
|
|
647
|
-
static readonly shapeId: string;
|
|
648
|
-
readonly name: "IncorrectKeyException";
|
|
649
|
-
readonly $fault: "client";
|
|
650
|
-
/**
|
|
651
|
-
* @internal
|
|
652
|
-
*/
|
|
653
|
-
constructor(opts: __ExceptionOptionType<IncorrectKeyException, __BaseException>);
|
|
654
|
-
}
|
|
655
639
|
/**
|
|
656
640
|
* <p>From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request
|
|
657
641
|
* was rejected because the specified ciphertext, or additional authenticated data incorporated
|
|
@@ -659,6 +643,9 @@ export declare class IncorrectKeyException extends __BaseException {
|
|
|
659
643
|
* invalid.</p>
|
|
660
644
|
* <p>From the <a>ImportKeyMaterial</a> operation, the request was rejected because
|
|
661
645
|
* KMS could not decrypt the encrypted (wrapped) key material. </p>
|
|
646
|
+
* <p>From the <a>Decapsulate</a> operation, the request was rejected because the
|
|
647
|
+
* length of the <code>SharedSecretCiphertextBlob</code> is inconsistent with the specified ML-KEM
|
|
648
|
+
* key spec.</p>
|
|
662
649
|
* @public
|
|
663
650
|
*/
|
|
664
651
|
export declare class InvalidCiphertextException extends __BaseException {
|
|
@@ -687,8 +674,9 @@ export declare class InvalidCiphertextException extends __BaseException {
|
|
|
687
674
|
* messages, the <code>KeyUsage</code> must be <code>SIGN_VERIFY</code>. For generating and
|
|
688
675
|
* verifying message authentication codes (MACs), the <code>KeyUsage</code> must be
|
|
689
676
|
* <code>GENERATE_VERIFY_MAC</code>. For deriving key agreement secrets, the
|
|
690
|
-
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>.
|
|
691
|
-
*
|
|
677
|
+
* <code>KeyUsage</code> must be <code>KEY_AGREEMENT</code>. For encapsulating and decapsulating
|
|
678
|
+
* shared secrets, the <code>KeyUsage</code> must be <code>ENCAPSULATE_DECAPSULATE</code>. To find
|
|
679
|
+
* the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
692
680
|
* <p>To find the encryption or signing algorithms supported for a particular KMS key, use the
|
|
693
681
|
* <a>DescribeKey</a> operation.</p>
|
|
694
682
|
* @public
|
|
@@ -716,6 +704,22 @@ export declare class KeyUnavailableException extends __BaseException {
|
|
|
716
704
|
*/
|
|
717
705
|
constructor(opts: __ExceptionOptionType<KeyUnavailableException, __BaseException>);
|
|
718
706
|
}
|
|
707
|
+
/**
|
|
708
|
+
* <p>The request was rejected because the specified KMS key cannot decrypt the data. The
|
|
709
|
+
* <code>KeyId</code> in a <a>Decrypt</a> request and the <code>SourceKeyId</code>
|
|
710
|
+
* in a <a>ReEncrypt</a> request must identify the same KMS key that was used to
|
|
711
|
+
* encrypt the ciphertext.</p>
|
|
712
|
+
* @public
|
|
713
|
+
*/
|
|
714
|
+
export declare class IncorrectKeyException extends __BaseException {
|
|
715
|
+
static readonly shapeId: string;
|
|
716
|
+
readonly name: "IncorrectKeyException";
|
|
717
|
+
readonly $fault: "client";
|
|
718
|
+
/**
|
|
719
|
+
* @internal
|
|
720
|
+
*/
|
|
721
|
+
constructor(opts: __ExceptionOptionType<IncorrectKeyException, __BaseException>);
|
|
722
|
+
}
|
|
719
723
|
/**
|
|
720
724
|
* <p>The request was rejected because the marker that specifies where pagination should next
|
|
721
725
|
* begin is not valid.</p>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AlgorithmSpec, ConnectionErrorCodeType, ConnectionStateType, CustomerMasterKeySpec, CustomKeyStoreType, DataKeyPairSpec, DataKeySpec, DryRunModifierType, EncryptionAlgorithmSpec, ExpirationModelType, GrantOperation, ImportState, ImportType, IncludeKeyMaterial, KeyAgreementAlgorithmSpec, KeyEncryptionMechanism, KeyLastUsageTrackingOperation, KeyManagerType, KeyMaterialState, KeySpec, KeyState, KeyUsageType, MacAlgorithmSpec, MessageType, MultiRegionKeyType, OriginType, RotationType, SigningAlgorithmSpec, WrappingKeySpec, XksProxyConnectivityType } from "./enums";
|
|
1
|
+
import type { AlgorithmSpec, ConnectionErrorCodeType, ConnectionStateType, CustomerMasterKeySpec, CustomKeyStoreType, DataKeyPairSpec, DataKeySpec, DryRunModifierType, EncapsulationAlgorithmSpec, EncryptionAlgorithmSpec, ExpirationModelType, GrantOperation, ImportState, ImportType, IncludeKeyMaterial, KeyAgreementAlgorithmSpec, KeyEncryptionMechanism, KeyLastUsageTrackingOperation, KeyManagerType, KeyMaterialState, KeySpec, KeyState, KeyUsageType, MacAlgorithmSpec, MessageType, MultiRegionKeyType, OriginType, RotationType, SigningAlgorithmSpec, WrappingKeySpec, XksProxyConnectivityType } from "./enums";
|
|
2
2
|
/**
|
|
3
3
|
* <p>Contains information about an alias.</p>
|
|
4
4
|
* @public
|
|
@@ -689,6 +689,10 @@ export interface CreateKeyRequest {
|
|
|
689
689
|
* <code>SIGN_VERIFY</code>.</p>
|
|
690
690
|
* </li>
|
|
691
691
|
* <li>
|
|
692
|
+
* <p>For asymmetric KMS keys with ML-KEM key pairs, specify
|
|
693
|
+
* <code>ENCAPSULATE_DECAPSULATE</code>.</p>
|
|
694
|
+
* </li>
|
|
695
|
+
* <li>
|
|
692
696
|
* <p>For asymmetric KMS keys with SM2 key pairs (China Regions only), specify
|
|
693
697
|
* <code>ENCRYPT_DECRYPT</code>, <code>SIGN_VERIFY</code>, or
|
|
694
698
|
* <code>KEY_AGREEMENT</code>.</p>
|
|
@@ -850,6 +854,27 @@ export interface CreateKeyRequest {
|
|
|
850
854
|
* </ul>
|
|
851
855
|
* </li>
|
|
852
856
|
* <li>
|
|
857
|
+
* <p>Asymmetric ML-KEM key pairs (establishing shared secrets)</p>
|
|
858
|
+
* <ul>
|
|
859
|
+
* <li>
|
|
860
|
+
* <p>
|
|
861
|
+
* <code>ML_KEM_512</code>
|
|
862
|
+
* </p>
|
|
863
|
+
* </li>
|
|
864
|
+
* <li>
|
|
865
|
+
* <p>
|
|
866
|
+
* <code>ML_KEM_768</code>
|
|
867
|
+
* </p>
|
|
868
|
+
* </li>
|
|
869
|
+
* <li>
|
|
870
|
+
* <p>
|
|
871
|
+
* <code>ML_KEM_1024</code>
|
|
872
|
+
* </p>
|
|
873
|
+
* </li>
|
|
874
|
+
* </ul>
|
|
875
|
+
* <p>The ML-KEM key specs are not available in China Regions.</p>
|
|
876
|
+
* </li>
|
|
877
|
+
* <li>
|
|
853
878
|
* <p>SM2 key pairs (encryption and decryption -or- signing and verification -or- deriving
|
|
854
879
|
* shared secrets)</p>
|
|
855
880
|
* <ul>
|
|
@@ -1178,6 +1203,12 @@ export interface KeyMetadata {
|
|
|
1178
1203
|
* @public
|
|
1179
1204
|
*/
|
|
1180
1205
|
KeyAgreementAlgorithms?: KeyAgreementAlgorithmSpec[] | undefined;
|
|
1206
|
+
/**
|
|
1207
|
+
* <p>The key encapsulation algorithm that the KMS key supports. This field appears only for KMS
|
|
1208
|
+
* keys with a <code>KeyUsage</code> value of <code>ENCAPSULATE_DECAPSULATE</code>.</p>
|
|
1209
|
+
* @public
|
|
1210
|
+
*/
|
|
1211
|
+
EncapsulationAlgorithms?: EncapsulationAlgorithmSpec[] | undefined;
|
|
1181
1212
|
/**
|
|
1182
1213
|
* <p>Indicates whether the KMS key is a multi-Region (<code>True</code>) or regional
|
|
1183
1214
|
* (<code>False</code>) key. This value is <code>True</code> for multi-Region primary and
|
|
@@ -1574,6 +1605,86 @@ export interface CustomKeyStoresListEntry {
|
|
|
1574
1605
|
*/
|
|
1575
1606
|
XksProxyConfiguration?: XksProxyConfigurationType | undefined;
|
|
1576
1607
|
}
|
|
1608
|
+
/**
|
|
1609
|
+
* @public
|
|
1610
|
+
*/
|
|
1611
|
+
export interface DecapsulateRequest {
|
|
1612
|
+
/**
|
|
1613
|
+
* <p>Identifies the asymmetric ML-KEM KMS key whose public key was used to produce the
|
|
1614
|
+
* encapsulated shared secret. KMS uses the private key in the specified key pair to decapsulate
|
|
1615
|
+
* the shared secret. </p>
|
|
1616
|
+
* <p>To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.</p>
|
|
1617
|
+
* <p>For example:</p>
|
|
1618
|
+
* <ul>
|
|
1619
|
+
* <li>
|
|
1620
|
+
* <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
|
|
1621
|
+
* </p>
|
|
1622
|
+
* </li>
|
|
1623
|
+
* <li>
|
|
1624
|
+
* <p>Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
|
|
1625
|
+
* </p>
|
|
1626
|
+
* </li>
|
|
1627
|
+
* <li>
|
|
1628
|
+
* <p>Alias name: <code>alias/ExampleAlias</code>
|
|
1629
|
+
* </p>
|
|
1630
|
+
* </li>
|
|
1631
|
+
* <li>
|
|
1632
|
+
* <p>Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
|
|
1633
|
+
* </p>
|
|
1634
|
+
* </li>
|
|
1635
|
+
* </ul>
|
|
1636
|
+
* <p>To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and alias ARN, use <a>ListAliases</a>.</p>
|
|
1637
|
+
* @public
|
|
1638
|
+
*/
|
|
1639
|
+
KeyId: string | undefined;
|
|
1640
|
+
/**
|
|
1641
|
+
* <p>The encapsulated (ciphertext) form of the shared secret to recover. This is the
|
|
1642
|
+
* <code>SharedSecretCiphertextBlob</code> value that the <a>Encapsulate</a> operation
|
|
1643
|
+
* returns. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.</p>
|
|
1644
|
+
* @public
|
|
1645
|
+
*/
|
|
1646
|
+
SharedSecretCiphertextBlob: Uint8Array | undefined;
|
|
1647
|
+
/**
|
|
1648
|
+
* <p>Specifies the key encapsulation algorithm used to recover the shared secret. The only valid
|
|
1649
|
+
* value is <code>ML_KEM</code>.</p>
|
|
1650
|
+
* @public
|
|
1651
|
+
*/
|
|
1652
|
+
EncapsulationAlgorithm: EncapsulationAlgorithmSpec | undefined;
|
|
1653
|
+
/**
|
|
1654
|
+
* <p>A list of grant tokens.</p>
|
|
1655
|
+
* <p>Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved <i>eventual consistency</i>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html">Using a grant token</a> in the
|
|
1656
|
+
* <i>Key Management Service Developer Guide</i>.</p>
|
|
1657
|
+
* @public
|
|
1658
|
+
*/
|
|
1659
|
+
GrantTokens?: string[] | undefined;
|
|
1660
|
+
/**
|
|
1661
|
+
* <p>Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
|
|
1662
|
+
* <p>To learn more about how to use this parameter, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html">Testing your permissions</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
1663
|
+
* @public
|
|
1664
|
+
*/
|
|
1665
|
+
DryRun?: boolean | undefined;
|
|
1666
|
+
}
|
|
1667
|
+
/**
|
|
1668
|
+
* @public
|
|
1669
|
+
*/
|
|
1670
|
+
export interface DecapsulateResponse {
|
|
1671
|
+
/**
|
|
1672
|
+
* <p>The identifier of the ML-KEM KMS key used to decapsulate the shared secret.</p>
|
|
1673
|
+
* @public
|
|
1674
|
+
*/
|
|
1675
|
+
KeyId?: string | undefined;
|
|
1676
|
+
/**
|
|
1677
|
+
* <p>The plaintext shared secret recovered from the encapsulated form. It is a 32-byte value that
|
|
1678
|
+
* matches the shared secret held by the encapsulating party. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.</p>
|
|
1679
|
+
* @public
|
|
1680
|
+
*/
|
|
1681
|
+
SharedSecret?: Uint8Array | undefined;
|
|
1682
|
+
/**
|
|
1683
|
+
* <p>The key encapsulation algorithm used to recover the shared secret.</p>
|
|
1684
|
+
* @public
|
|
1685
|
+
*/
|
|
1686
|
+
EncapsulationAlgorithm?: EncapsulationAlgorithmSpec | undefined;
|
|
1687
|
+
}
|
|
1577
1688
|
/**
|
|
1578
1689
|
* <p>Contains information about the party that receives the response from the API
|
|
1579
1690
|
* operation.</p>
|
|
@@ -2186,6 +2297,91 @@ export interface EnableKeyRotationRequest {
|
|
|
2186
2297
|
*/
|
|
2187
2298
|
RotationPeriodInDays?: number | undefined;
|
|
2188
2299
|
}
|
|
2300
|
+
/**
|
|
2301
|
+
* @public
|
|
2302
|
+
*/
|
|
2303
|
+
export interface EncapsulateRequest {
|
|
2304
|
+
/**
|
|
2305
|
+
* <p>Identifies an asymmetric ML-KEM KMS key. KMS uses the public key in the specified key pair
|
|
2306
|
+
* to encapsulate the shared secret. ML-KEM KMS keys have a <code>KeySpec</code> value of <code>ML_KEM_512</code>,
|
|
2307
|
+
* <code>ML_KEM_768</code>, or <code>ML_KEM_1024</code> and a <code>KeyUsage</code> value of
|
|
2308
|
+
* <code>ENCAPSULATE_DECAPSULATE</code>. To find the <code>KeySpec</code> and <code>KeyUsage</code> of a
|
|
2309
|
+
* KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
2310
|
+
* <p>To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.</p>
|
|
2311
|
+
* <p>For example:</p>
|
|
2312
|
+
* <ul>
|
|
2313
|
+
* <li>
|
|
2314
|
+
* <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
|
|
2315
|
+
* </p>
|
|
2316
|
+
* </li>
|
|
2317
|
+
* <li>
|
|
2318
|
+
* <p>Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
|
|
2319
|
+
* </p>
|
|
2320
|
+
* </li>
|
|
2321
|
+
* <li>
|
|
2322
|
+
* <p>Alias name: <code>alias/ExampleAlias</code>
|
|
2323
|
+
* </p>
|
|
2324
|
+
* </li>
|
|
2325
|
+
* <li>
|
|
2326
|
+
* <p>Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
|
|
2327
|
+
* </p>
|
|
2328
|
+
* </li>
|
|
2329
|
+
* </ul>
|
|
2330
|
+
* <p>To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and alias ARN, use <a>ListAliases</a>.</p>
|
|
2331
|
+
* @public
|
|
2332
|
+
*/
|
|
2333
|
+
KeyId: string | undefined;
|
|
2334
|
+
/**
|
|
2335
|
+
* <p>Specifies the key encapsulation algorithm used to generate the shared secret and its
|
|
2336
|
+
* encapsulated form. The only valid value is <code>ML_KEM</code>.</p>
|
|
2337
|
+
* @public
|
|
2338
|
+
*/
|
|
2339
|
+
EncapsulationAlgorithm: EncapsulationAlgorithmSpec | undefined;
|
|
2340
|
+
/**
|
|
2341
|
+
* <p>A list of grant tokens.</p>
|
|
2342
|
+
* <p>Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved <i>eventual consistency</i>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">Grant token</a> and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/using-grant-token.html">Using a grant token</a> in the
|
|
2343
|
+
* <i>Key Management Service Developer Guide</i>.</p>
|
|
2344
|
+
* @public
|
|
2345
|
+
*/
|
|
2346
|
+
GrantTokens?: string[] | undefined;
|
|
2347
|
+
/**
|
|
2348
|
+
* <p>Checks if your request will succeed. <code>DryRun</code> is an optional parameter. </p>
|
|
2349
|
+
* <p>To learn more about how to use this parameter, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/testing-permissions.html">Testing your permissions</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
2350
|
+
* @public
|
|
2351
|
+
*/
|
|
2352
|
+
DryRun?: boolean | undefined;
|
|
2353
|
+
}
|
|
2354
|
+
/**
|
|
2355
|
+
* @public
|
|
2356
|
+
*/
|
|
2357
|
+
export interface EncapsulateResponse {
|
|
2358
|
+
/**
|
|
2359
|
+
* <p>The identifier of the ML-KEM KMS key used to encapsulate the shared secret.</p>
|
|
2360
|
+
* @public
|
|
2361
|
+
*/
|
|
2362
|
+
KeyId?: string | undefined;
|
|
2363
|
+
/**
|
|
2364
|
+
* <p>The plaintext shared secret. It is a 32-byte cryptographically random value that both
|
|
2365
|
+
* parties can use directly as key material or pass through a key derivation function to generate
|
|
2366
|
+
* multiple keys and nonces. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.</p>
|
|
2367
|
+
* @public
|
|
2368
|
+
*/
|
|
2369
|
+
SharedSecret?: Uint8Array | undefined;
|
|
2370
|
+
/**
|
|
2371
|
+
* <p>The encapsulated form of the shared secret. Pass this value to the <a>Decapsulate</a> operation to recover the shared secret. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
|
|
2372
|
+
* The length of <code>SharedSecretCiphertextBlob</code> depends on the ML-KEM key spec.
|
|
2373
|
+
* Before Base64 encoding, the encapsulated shared secret is 768 bytes for <code>ML_KEM_512</code>,
|
|
2374
|
+
* 1088 bytes for <code>ML_KEM_768</code>, and 1568 bytes for <code>ML_KEM_1024</code>.
|
|
2375
|
+
* </p>
|
|
2376
|
+
* @public
|
|
2377
|
+
*/
|
|
2378
|
+
SharedSecretCiphertextBlob?: Uint8Array | undefined;
|
|
2379
|
+
/**
|
|
2380
|
+
* <p>The key encapsulation algorithm used to generate the shared secret.</p>
|
|
2381
|
+
* @public
|
|
2382
|
+
*/
|
|
2383
|
+
EncapsulationAlgorithm?: EncapsulationAlgorithmSpec | undefined;
|
|
2384
|
+
}
|
|
2189
2385
|
/**
|
|
2190
2386
|
* @public
|
|
2191
2387
|
*/
|
|
@@ -2461,7 +2657,7 @@ export interface GenerateDataKeyPairRequest {
|
|
|
2461
2657
|
KeyId: string | undefined;
|
|
2462
2658
|
/**
|
|
2463
2659
|
* <p>Determines the type of data key pair that is generated. </p>
|
|
2464
|
-
* <p>The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and verify (but not both), the rule that permits you to use ECC KMS keys only to sign and verify, and the rule that permits you to use ML-DSA key pairs to sign and verify only are not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China Regions.</p>
|
|
2660
|
+
* <p>The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and verify (but not both), the rule that permits you to use ECC KMS keys only to sign and verify, and the rule that permits you to use ML-DSA key pairs to sign and verify only are not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China Regions. The ML-KEM key specs are not available in China Regions.</p>
|
|
2465
2661
|
* @public
|
|
2466
2662
|
*/
|
|
2467
2663
|
KeyPairSpec: DataKeyPairSpec | undefined;
|
|
@@ -2595,7 +2791,7 @@ export interface GenerateDataKeyPairWithoutPlaintextRequest {
|
|
|
2595
2791
|
KeyId: string | undefined;
|
|
2596
2792
|
/**
|
|
2597
2793
|
* <p>Determines the type of data key pair that is generated.</p>
|
|
2598
|
-
* <p>The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and verify (but not both), the rule that permits you to use ECC KMS keys only to sign and verify, and the rule that permits you to use ML-DSA key pairs to sign and verify only are not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China Regions.</p>
|
|
2794
|
+
* <p>The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and verify (but not both), the rule that permits you to use ECC KMS keys only to sign and verify, and the rule that permits you to use ML-DSA key pairs to sign and verify only are not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China Regions. The ML-KEM key specs are not available in China Regions.</p>
|
|
2599
2795
|
* @public
|
|
2600
2796
|
*/
|
|
2601
2797
|
KeyPairSpec: DataKeyPairSpec | undefined;
|
|
@@ -2922,8 +3118,8 @@ export interface GetKeyLastUsageResponse {
|
|
|
2922
3118
|
KeyId?: string | undefined;
|
|
2923
3119
|
/**
|
|
2924
3120
|
* <p>Contains usage information about the last time the KMS key was used for a successful cryptographic
|
|
2925
|
-
* operation. If the key has not been used since tracking began, this response element is
|
|
2926
|
-
* empty.</p>
|
|
3121
|
+
* operation. If the key has not been used since tracking began, this response element is an
|
|
3122
|
+
* empty object.</p>
|
|
2927
3123
|
* @public
|
|
2928
3124
|
*/
|
|
2929
3125
|
KeyLastUsage?: KeyLastUsageData | undefined;
|
|
@@ -3249,6 +3445,13 @@ export interface GetPublicKeyResponse {
|
|
|
3249
3445
|
* @public
|
|
3250
3446
|
*/
|
|
3251
3447
|
KeyAgreementAlgorithms?: KeyAgreementAlgorithmSpec[] | undefined;
|
|
3448
|
+
/**
|
|
3449
|
+
* <p>The key encapsulation algorithm used to establish a shared secret. This field is present
|
|
3450
|
+
* only when the KMS key has a <code>KeyUsage</code> value of
|
|
3451
|
+
* <code>ENCAPSULATE_DECAPSULATE</code>.</p>
|
|
3452
|
+
* @public
|
|
3453
|
+
*/
|
|
3454
|
+
EncapsulationAlgorithms?: EncapsulationAlgorithmSpec[] | undefined;
|
|
3252
3455
|
}
|
|
3253
3456
|
/**
|
|
3254
3457
|
* <p>Contains information about a grant.</p>
|
|
@@ -68,6 +68,8 @@ export declare var CreateGrantResponse$: StaticStructureSchema;
|
|
|
68
68
|
export declare var CreateKeyRequest$: StaticStructureSchema;
|
|
69
69
|
export declare var CreateKeyResponse$: StaticStructureSchema;
|
|
70
70
|
export declare var CustomKeyStoresListEntry$: StaticStructureSchema;
|
|
71
|
+
export declare var DecapsulateRequest$: StaticStructureSchema;
|
|
72
|
+
export declare var DecapsulateResponse$: StaticStructureSchema;
|
|
71
73
|
export declare var DecryptRequest$: StaticStructureSchema;
|
|
72
74
|
export declare var DecryptResponse$: StaticStructureSchema;
|
|
73
75
|
export declare var DeleteAliasRequest$: StaticStructureSchema;
|
|
@@ -87,6 +89,8 @@ export declare var DisconnectCustomKeyStoreRequest$: StaticStructureSchema;
|
|
|
87
89
|
export declare var DisconnectCustomKeyStoreResponse$: StaticStructureSchema;
|
|
88
90
|
export declare var EnableKeyRequest$: StaticStructureSchema;
|
|
89
91
|
export declare var EnableKeyRotationRequest$: StaticStructureSchema;
|
|
92
|
+
export declare var EncapsulateRequest$: StaticStructureSchema;
|
|
93
|
+
export declare var EncapsulateResponse$: StaticStructureSchema;
|
|
90
94
|
export declare var EncryptRequest$: StaticStructureSchema;
|
|
91
95
|
export declare var EncryptResponse$: StaticStructureSchema;
|
|
92
96
|
export declare var GenerateDataKeyPairRequest$: StaticStructureSchema;
|
|
@@ -169,6 +173,7 @@ export declare var CreateAlias$: StaticOperationSchema;
|
|
|
169
173
|
export declare var CreateCustomKeyStore$: StaticOperationSchema;
|
|
170
174
|
export declare var CreateGrant$: StaticOperationSchema;
|
|
171
175
|
export declare var CreateKey$: StaticOperationSchema;
|
|
176
|
+
export declare var Decapsulate$: StaticOperationSchema;
|
|
172
177
|
export declare var Decrypt$: StaticOperationSchema;
|
|
173
178
|
export declare var DeleteAlias$: StaticOperationSchema;
|
|
174
179
|
export declare var DeleteCustomKeyStore$: StaticOperationSchema;
|
|
@@ -181,6 +186,7 @@ export declare var DisableKeyRotation$: StaticOperationSchema;
|
|
|
181
186
|
export declare var DisconnectCustomKeyStore$: StaticOperationSchema;
|
|
182
187
|
export declare var EnableKey$: StaticOperationSchema;
|
|
183
188
|
export declare var EnableKeyRotation$: StaticOperationSchema;
|
|
189
|
+
export declare var Encapsulate$: StaticOperationSchema;
|
|
184
190
|
export declare var Encrypt$: StaticOperationSchema;
|
|
185
191
|
export declare var GenerateDataKey$: StaticOperationSchema;
|
|
186
192
|
export declare var GenerateDataKeyPair$: StaticOperationSchema;
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
} from "./commands/CreateCustomKeyStoreCommand";
|
|
20
20
|
import { CreateGrantCommandInput, CreateGrantCommandOutput } from "./commands/CreateGrantCommand";
|
|
21
21
|
import { CreateKeyCommandInput, CreateKeyCommandOutput } from "./commands/CreateKeyCommand";
|
|
22
|
+
import { DecapsulateCommandInput, DecapsulateCommandOutput } from "./commands/DecapsulateCommand";
|
|
22
23
|
import { DecryptCommandInput, DecryptCommandOutput } from "./commands/DecryptCommand";
|
|
23
24
|
import { DeleteAliasCommandInput, DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand";
|
|
24
25
|
import {
|
|
@@ -52,6 +53,7 @@ import {
|
|
|
52
53
|
EnableKeyRotationCommandInput,
|
|
53
54
|
EnableKeyRotationCommandOutput,
|
|
54
55
|
} from "./commands/EnableKeyRotationCommand";
|
|
56
|
+
import { EncapsulateCommandInput, EncapsulateCommandOutput } from "./commands/EncapsulateCommand";
|
|
55
57
|
import { EncryptCommandInput, EncryptCommandOutput } from "./commands/EncryptCommand";
|
|
56
58
|
import {
|
|
57
59
|
GenerateDataKeyCommandInput,
|
|
@@ -241,6 +243,19 @@ export interface KMS {
|
|
|
241
243
|
options: KMSRequestOptions,
|
|
242
244
|
cb: (err: any, data?: CreateKeyCommandOutput) => void,
|
|
243
245
|
): void;
|
|
246
|
+
decapsulate(
|
|
247
|
+
args: DecapsulateCommandInput,
|
|
248
|
+
options?: KMSRequestOptions,
|
|
249
|
+
): Promise<DecapsulateCommandOutput>;
|
|
250
|
+
decapsulate(
|
|
251
|
+
args: DecapsulateCommandInput,
|
|
252
|
+
cb: (err: any, data?: DecapsulateCommandOutput) => void,
|
|
253
|
+
): void;
|
|
254
|
+
decapsulate(
|
|
255
|
+
args: DecapsulateCommandInput,
|
|
256
|
+
options: KMSRequestOptions,
|
|
257
|
+
cb: (err: any, data?: DecapsulateCommandOutput) => void,
|
|
258
|
+
): void;
|
|
244
259
|
decrypt(): Promise<DecryptCommandOutput>;
|
|
245
260
|
decrypt(args: DecryptCommandInput, options?: KMSRequestOptions): Promise<DecryptCommandOutput>;
|
|
246
261
|
decrypt(args: DecryptCommandInput, cb: (err: any, data?: DecryptCommandOutput) => void): void;
|
|
@@ -393,6 +408,19 @@ export interface KMS {
|
|
|
393
408
|
options: KMSRequestOptions,
|
|
394
409
|
cb: (err: any, data?: EnableKeyRotationCommandOutput) => void,
|
|
395
410
|
): void;
|
|
411
|
+
encapsulate(
|
|
412
|
+
args: EncapsulateCommandInput,
|
|
413
|
+
options?: KMSRequestOptions,
|
|
414
|
+
): Promise<EncapsulateCommandOutput>;
|
|
415
|
+
encapsulate(
|
|
416
|
+
args: EncapsulateCommandInput,
|
|
417
|
+
cb: (err: any, data?: EncapsulateCommandOutput) => void,
|
|
418
|
+
): void;
|
|
419
|
+
encapsulate(
|
|
420
|
+
args: EncapsulateCommandInput,
|
|
421
|
+
options: KMSRequestOptions,
|
|
422
|
+
cb: (err: any, data?: EncapsulateCommandOutput) => void,
|
|
423
|
+
): void;
|
|
396
424
|
encrypt(args: EncryptCommandInput, options?: KMSRequestOptions): Promise<EncryptCommandOutput>;
|
|
397
425
|
encrypt(args: EncryptCommandInput, cb: (err: any, data?: EncryptCommandOutput) => void): void;
|
|
398
426
|
encrypt(
|
|
@@ -48,6 +48,7 @@ import {
|
|
|
48
48
|
} from "./commands/CreateCustomKeyStoreCommand";
|
|
49
49
|
import { CreateGrantCommandInput, CreateGrantCommandOutput } from "./commands/CreateGrantCommand";
|
|
50
50
|
import { CreateKeyCommandInput, CreateKeyCommandOutput } from "./commands/CreateKeyCommand";
|
|
51
|
+
import { DecapsulateCommandInput, DecapsulateCommandOutput } from "./commands/DecapsulateCommand";
|
|
51
52
|
import { DecryptCommandInput, DecryptCommandOutput } from "./commands/DecryptCommand";
|
|
52
53
|
import { DeleteAliasCommandInput, DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand";
|
|
53
54
|
import {
|
|
@@ -81,6 +82,7 @@ import {
|
|
|
81
82
|
EnableKeyRotationCommandInput,
|
|
82
83
|
EnableKeyRotationCommandOutput,
|
|
83
84
|
} from "./commands/EnableKeyRotationCommand";
|
|
85
|
+
import { EncapsulateCommandInput, EncapsulateCommandOutput } from "./commands/EncapsulateCommand";
|
|
84
86
|
import { EncryptCommandInput, EncryptCommandOutput } from "./commands/EncryptCommand";
|
|
85
87
|
import {
|
|
86
88
|
GenerateDataKeyCommandInput,
|
|
@@ -200,6 +202,7 @@ export type ServiceInputTypes =
|
|
|
200
202
|
| CreateCustomKeyStoreCommandInput
|
|
201
203
|
| CreateGrantCommandInput
|
|
202
204
|
| CreateKeyCommandInput
|
|
205
|
+
| DecapsulateCommandInput
|
|
203
206
|
| DecryptCommandInput
|
|
204
207
|
| DeleteAliasCommandInput
|
|
205
208
|
| DeleteCustomKeyStoreCommandInput
|
|
@@ -212,6 +215,7 @@ export type ServiceInputTypes =
|
|
|
212
215
|
| DisconnectCustomKeyStoreCommandInput
|
|
213
216
|
| EnableKeyCommandInput
|
|
214
217
|
| EnableKeyRotationCommandInput
|
|
218
|
+
| EncapsulateCommandInput
|
|
215
219
|
| EncryptCommandInput
|
|
216
220
|
| GenerateDataKeyCommandInput
|
|
217
221
|
| GenerateDataKeyPairCommandInput
|
|
@@ -255,6 +259,7 @@ export type ServiceOutputTypes =
|
|
|
255
259
|
| CreateCustomKeyStoreCommandOutput
|
|
256
260
|
| CreateGrantCommandOutput
|
|
257
261
|
| CreateKeyCommandOutput
|
|
262
|
+
| DecapsulateCommandOutput
|
|
258
263
|
| DecryptCommandOutput
|
|
259
264
|
| DeleteAliasCommandOutput
|
|
260
265
|
| DeleteCustomKeyStoreCommandOutput
|
|
@@ -267,6 +272,7 @@ export type ServiceOutputTypes =
|
|
|
267
272
|
| DisconnectCustomKeyStoreCommandOutput
|
|
268
273
|
| EnableKeyCommandOutput
|
|
269
274
|
| EnableKeyRotationCommandOutput
|
|
275
|
+
| EncapsulateCommandOutput
|
|
270
276
|
| EncryptCommandOutput
|
|
271
277
|
| GenerateDataKeyCommandOutput
|
|
272
278
|
| GenerateDataKeyPairCommandOutput
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import { DecapsulateRequest, DecapsulateResponse } from "../models/models_0";
|
|
3
|
+
export { __MetadataBearer };
|
|
4
|
+
export interface DecapsulateCommandInput extends DecapsulateRequest {}
|
|
5
|
+
export interface DecapsulateCommandOutput extends DecapsulateResponse, __MetadataBearer {}
|
|
6
|
+
declare const DecapsulateCommand_base: {
|
|
7
|
+
new (
|
|
8
|
+
input: DecapsulateCommandInput,
|
|
9
|
+
): import("@smithy/core/client").CommandImpl<
|
|
10
|
+
DecapsulateCommandInput,
|
|
11
|
+
DecapsulateCommandOutput,
|
|
12
|
+
import("..").KMSClientResolvedConfig,
|
|
13
|
+
import("..").ServiceInputTypes,
|
|
14
|
+
import("..").ServiceOutputTypes
|
|
15
|
+
>;
|
|
16
|
+
new (
|
|
17
|
+
input: DecapsulateCommandInput,
|
|
18
|
+
): import("@smithy/core/client").CommandImpl<
|
|
19
|
+
DecapsulateCommandInput,
|
|
20
|
+
DecapsulateCommandOutput,
|
|
21
|
+
import("..").KMSClientResolvedConfig,
|
|
22
|
+
import("..").ServiceInputTypes,
|
|
23
|
+
import("..").ServiceOutputTypes
|
|
24
|
+
>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
export declare class DecapsulateCommand extends DecapsulateCommand_base {
|
|
28
|
+
protected static __types: {
|
|
29
|
+
api: {
|
|
30
|
+
input: DecapsulateRequest;
|
|
31
|
+
output: DecapsulateResponse;
|
|
32
|
+
};
|
|
33
|
+
sdk: {
|
|
34
|
+
input: DecapsulateCommandInput;
|
|
35
|
+
output: DecapsulateCommandOutput;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import { EncapsulateRequest, EncapsulateResponse } from "../models/models_0";
|
|
3
|
+
export { __MetadataBearer };
|
|
4
|
+
export interface EncapsulateCommandInput extends EncapsulateRequest {}
|
|
5
|
+
export interface EncapsulateCommandOutput extends EncapsulateResponse, __MetadataBearer {}
|
|
6
|
+
declare const EncapsulateCommand_base: {
|
|
7
|
+
new (
|
|
8
|
+
input: EncapsulateCommandInput,
|
|
9
|
+
): import("@smithy/core/client").CommandImpl<
|
|
10
|
+
EncapsulateCommandInput,
|
|
11
|
+
EncapsulateCommandOutput,
|
|
12
|
+
import("..").KMSClientResolvedConfig,
|
|
13
|
+
import("..").ServiceInputTypes,
|
|
14
|
+
import("..").ServiceOutputTypes
|
|
15
|
+
>;
|
|
16
|
+
new (
|
|
17
|
+
input: EncapsulateCommandInput,
|
|
18
|
+
): import("@smithy/core/client").CommandImpl<
|
|
19
|
+
EncapsulateCommandInput,
|
|
20
|
+
EncapsulateCommandOutput,
|
|
21
|
+
import("..").KMSClientResolvedConfig,
|
|
22
|
+
import("..").ServiceInputTypes,
|
|
23
|
+
import("..").ServiceOutputTypes
|
|
24
|
+
>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
export declare class EncapsulateCommand extends EncapsulateCommand_base {
|
|
28
|
+
protected static __types: {
|
|
29
|
+
api: {
|
|
30
|
+
input: EncapsulateRequest;
|
|
31
|
+
output: EncapsulateResponse;
|
|
32
|
+
};
|
|
33
|
+
sdk: {
|
|
34
|
+
input: EncapsulateCommandInput;
|
|
35
|
+
output: EncapsulateCommandOutput;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -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";
|