@aws-sdk/client-kms 3.72.0 → 3.75.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/CHANGELOG.md +27 -0
- package/README.md +4 -1
- package/dist-cjs/KMS.js +30 -0
- package/dist-cjs/commands/GenerateMacCommand.js +36 -0
- package/dist-cjs/commands/VerifyMacCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +60 -3
- package/dist-cjs/protocols/Aws_json1_1.js +194 -2
- package/dist-es/KMS.js +30 -0
- package/dist-es/commands/GenerateMacCommand.js +39 -0
- package/dist-es/commands/VerifyMacCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +46 -0
- package/dist-es/protocols/Aws_json1_1.js +225 -1
- package/dist-types/KMS.d.ts +256 -219
- package/dist-types/KMSClient.d.ts +8 -3
- package/dist-types/commands/CancelKeyDeletionCommand.d.ts +1 -1
- package/dist-types/commands/CreateAliasCommand.d.ts +2 -2
- package/dist-types/commands/CreateGrantCommand.d.ts +2 -2
- package/dist-types/commands/CreateKeyCommand.d.ts +44 -40
- package/dist-types/commands/DecryptCommand.d.ts +7 -7
- package/dist-types/commands/DeleteAliasCommand.d.ts +1 -1
- package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +1 -1
- package/dist-types/commands/DescribeKeyCommand.d.ts +6 -8
- package/dist-types/commands/DisableKeyCommand.d.ts +2 -3
- package/dist-types/commands/DisableKeyRotationCommand.d.ts +3 -3
- package/dist-types/commands/EnableKeyCommand.d.ts +1 -1
- package/dist-types/commands/EnableKeyRotationCommand.d.ts +3 -3
- package/dist-types/commands/EncryptCommand.d.ts +8 -26
- package/dist-types/commands/GenerateDataKeyCommand.d.ts +13 -15
- package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +12 -11
- package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +10 -11
- package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +21 -24
- package/dist-types/commands/GenerateMacCommand.d.ts +55 -0
- package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +2 -2
- package/dist-types/commands/GetParametersForImportCommand.d.ts +7 -7
- package/dist-types/commands/GetPublicKeyCommand.d.ts +2 -2
- package/dist-types/commands/ImportKeyMaterialCommand.d.ts +8 -8
- 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 +8 -9
- package/dist-types/commands/ReplicateKeyCommand.d.ts +8 -4
- package/dist-types/commands/RetireGrantCommand.d.ts +4 -5
- package/dist-types/commands/RevokeGrantCommand.d.ts +1 -1
- package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +1 -1
- package/dist-types/commands/SignCommand.d.ts +3 -3
- package/dist-types/commands/TagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateAliasCommand.d.ts +2 -2
- package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +2 -3
- package/dist-types/commands/VerifyCommand.d.ts +2 -2
- package/dist-types/commands/VerifyMacCommand.d.ts +56 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +323 -114
- package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/ts3.4/KMS.d.ts +10 -0
- package/dist-types/ts3.4/KMSClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +81 -1
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
- package/package.json +9 -9
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
|
|
4
|
+
import { VerifyMacRequest, VerifyMacResponse } from "../models/models_0";
|
|
5
|
+
export interface VerifyMacCommandInput extends VerifyMacRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface VerifyMacCommandOutput extends VerifyMacResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC
|
|
11
|
+
* KMS key, and MAC algorithm. To verify the HMAC, <code>VerifyMac</code> computes an HMAC using
|
|
12
|
+
* the message, HMAC KMS key, and MAC algorithm that you specify, and compares the computed HMAC
|
|
13
|
+
* to the HMAC that you specify. If the HMACs are identical, the verification succeeds;
|
|
14
|
+
* otherwise, it fails.</p>
|
|
15
|
+
*
|
|
16
|
+
* <p>Verification indicates that the message hasn't changed since the HMAC was calculated, and
|
|
17
|
+
* the specified key was used to generate and verify the HMAC.</p>
|
|
18
|
+
* <p>This operation is part of KMS support for HMAC KMS keys. For details, see
|
|
19
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC keys in KMS</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
20
|
+
*
|
|
21
|
+
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
22
|
+
* details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
23
|
+
* <p>
|
|
24
|
+
* <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
|
|
25
|
+
* the key ARN or alias ARN in the value of the <code>KeyId</code> parameter. </p>
|
|
26
|
+
*
|
|
27
|
+
* <p>
|
|
28
|
+
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:VerifyMac</a> (key policy)</p>
|
|
29
|
+
* <p>
|
|
30
|
+
* <b>Related operations</b>: <a>GenerateMac</a>
|
|
31
|
+
* </p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { KMSClient, VerifyMacCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
36
|
+
* // const { KMSClient, VerifyMacCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
37
|
+
* const client = new KMSClient(config);
|
|
38
|
+
* const command = new VerifyMacCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @see {@link VerifyMacCommandInput} for command's `input` shape.
|
|
43
|
+
* @see {@link VerifyMacCommandOutput} for command's `response` shape.
|
|
44
|
+
* @see {@link KMSClientResolvedConfig | config} for KMSClient's `config` shape.
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
export declare class VerifyMacCommand extends $Command<VerifyMacCommandInput, VerifyMacCommandOutput, KMSClientResolvedConfig> {
|
|
48
|
+
readonly input: VerifyMacCommandInput;
|
|
49
|
+
constructor(input: VerifyMacCommandInput);
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<VerifyMacCommandInput, VerifyMacCommandOutput>;
|
|
54
|
+
private serialize;
|
|
55
|
+
private deserialize;
|
|
56
|
+
}
|
|
@@ -20,6 +20,7 @@ export * from "./GenerateDataKeyCommand";
|
|
|
20
20
|
export * from "./GenerateDataKeyPairCommand";
|
|
21
21
|
export * from "./GenerateDataKeyPairWithoutPlaintextCommand";
|
|
22
22
|
export * from "./GenerateDataKeyWithoutPlaintextCommand";
|
|
23
|
+
export * from "./GenerateMacCommand";
|
|
23
24
|
export * from "./GenerateRandomCommand";
|
|
24
25
|
export * from "./GetKeyPolicyCommand";
|
|
25
26
|
export * from "./GetKeyRotationStatusCommand";
|
|
@@ -46,3 +47,4 @@ export * from "./UpdateCustomKeyStoreCommand";
|
|
|
46
47
|
export * from "./UpdateKeyDescriptionCommand";
|
|
47
48
|
export * from "./UpdatePrimaryRegionCommand";
|
|
48
49
|
export * from "./VerifyCommand";
|
|
50
|
+
export * from "./VerifyMacCommand";
|