@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.
Files changed (64) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +4 -1
  3. package/dist-cjs/KMS.js +30 -0
  4. package/dist-cjs/commands/GenerateMacCommand.js +36 -0
  5. package/dist-cjs/commands/VerifyMacCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +2 -0
  7. package/dist-cjs/models/models_0.js +60 -3
  8. package/dist-cjs/protocols/Aws_json1_1.js +194 -2
  9. package/dist-es/KMS.js +30 -0
  10. package/dist-es/commands/GenerateMacCommand.js +39 -0
  11. package/dist-es/commands/VerifyMacCommand.js +39 -0
  12. package/dist-es/commands/index.js +2 -0
  13. package/dist-es/models/models_0.js +46 -0
  14. package/dist-es/protocols/Aws_json1_1.js +225 -1
  15. package/dist-types/KMS.d.ts +256 -219
  16. package/dist-types/KMSClient.d.ts +8 -3
  17. package/dist-types/commands/CancelKeyDeletionCommand.d.ts +1 -1
  18. package/dist-types/commands/CreateAliasCommand.d.ts +2 -2
  19. package/dist-types/commands/CreateGrantCommand.d.ts +2 -2
  20. package/dist-types/commands/CreateKeyCommand.d.ts +44 -40
  21. package/dist-types/commands/DecryptCommand.d.ts +7 -7
  22. package/dist-types/commands/DeleteAliasCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +1 -1
  24. package/dist-types/commands/DescribeKeyCommand.d.ts +6 -8
  25. package/dist-types/commands/DisableKeyCommand.d.ts +2 -3
  26. package/dist-types/commands/DisableKeyRotationCommand.d.ts +3 -3
  27. package/dist-types/commands/EnableKeyCommand.d.ts +1 -1
  28. package/dist-types/commands/EnableKeyRotationCommand.d.ts +3 -3
  29. package/dist-types/commands/EncryptCommand.d.ts +8 -26
  30. package/dist-types/commands/GenerateDataKeyCommand.d.ts +13 -15
  31. package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +12 -11
  32. package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +10 -11
  33. package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +21 -24
  34. package/dist-types/commands/GenerateMacCommand.d.ts +55 -0
  35. package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +2 -2
  36. package/dist-types/commands/GetParametersForImportCommand.d.ts +7 -7
  37. package/dist-types/commands/GetPublicKeyCommand.d.ts +2 -2
  38. package/dist-types/commands/ImportKeyMaterialCommand.d.ts +8 -8
  39. package/dist-types/commands/ListGrantsCommand.d.ts +1 -1
  40. package/dist-types/commands/ListRetirableGrantsCommand.d.ts +1 -1
  41. package/dist-types/commands/ReEncryptCommand.d.ts +8 -9
  42. package/dist-types/commands/ReplicateKeyCommand.d.ts +8 -4
  43. package/dist-types/commands/RetireGrantCommand.d.ts +4 -5
  44. package/dist-types/commands/RevokeGrantCommand.d.ts +1 -1
  45. package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +1 -1
  46. package/dist-types/commands/SignCommand.d.ts +3 -3
  47. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  48. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  49. package/dist-types/commands/UpdateAliasCommand.d.ts +2 -2
  50. package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +1 -1
  51. package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +2 -3
  52. package/dist-types/commands/VerifyCommand.d.ts +2 -2
  53. package/dist-types/commands/VerifyMacCommand.d.ts +56 -0
  54. package/dist-types/commands/index.d.ts +2 -0
  55. package/dist-types/models/models_0.d.ts +323 -114
  56. package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
  57. package/dist-types/ts3.4/KMS.d.ts +10 -0
  58. package/dist-types/ts3.4/KMSClient.d.ts +4 -2
  59. package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +17 -0
  61. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  62. package/dist-types/ts3.4/models/models_0.d.ts +81 -1
  63. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
  64. 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";