@aws-sdk/client-kms 3.67.0 → 3.74.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 +7 -7
@@ -22,6 +22,7 @@ import { GenerateDataKeyCommandInput, GenerateDataKeyCommandOutput } from "../co
22
22
  import { GenerateDataKeyPairCommandInput, GenerateDataKeyPairCommandOutput } from "../commands/GenerateDataKeyPairCommand";
23
23
  import { GenerateDataKeyPairWithoutPlaintextCommandInput, GenerateDataKeyPairWithoutPlaintextCommandOutput } from "../commands/GenerateDataKeyPairWithoutPlaintextCommand";
24
24
  import { GenerateDataKeyWithoutPlaintextCommandInput, GenerateDataKeyWithoutPlaintextCommandOutput } from "../commands/GenerateDataKeyWithoutPlaintextCommand";
25
+ import { GenerateMacCommandInput, GenerateMacCommandOutput } from "../commands/GenerateMacCommand";
25
26
  import { GenerateRandomCommandInput, GenerateRandomCommandOutput } from "../commands/GenerateRandomCommand";
26
27
  import { GetKeyPolicyCommandInput, GetKeyPolicyCommandOutput } from "../commands/GetKeyPolicyCommand";
27
28
  import { GetKeyRotationStatusCommandInput, GetKeyRotationStatusCommandOutput } from "../commands/GetKeyRotationStatusCommand";
@@ -48,6 +49,7 @@ import { UpdateCustomKeyStoreCommandInput, UpdateCustomKeyStoreCommandOutput } f
48
49
  import { UpdateKeyDescriptionCommandInput, UpdateKeyDescriptionCommandOutput } from "../commands/UpdateKeyDescriptionCommand";
49
50
  import { UpdatePrimaryRegionCommandInput, UpdatePrimaryRegionCommandOutput } from "../commands/UpdatePrimaryRegionCommand";
50
51
  import { VerifyCommandInput, VerifyCommandOutput } from "../commands/VerifyCommand";
52
+ import { VerifyMacCommandInput, VerifyMacCommandOutput } from "../commands/VerifyMacCommand";
51
53
  export declare const serializeAws_json1_1CancelKeyDeletionCommand: (input: CancelKeyDeletionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
52
54
  export declare const serializeAws_json1_1ConnectCustomKeyStoreCommand: (input: ConnectCustomKeyStoreCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
53
55
  export declare const serializeAws_json1_1CreateAliasCommand: (input: CreateAliasCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -70,6 +72,7 @@ export declare const serializeAws_json1_1GenerateDataKeyCommand: (input: Generat
70
72
  export declare const serializeAws_json1_1GenerateDataKeyPairCommand: (input: GenerateDataKeyPairCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
71
73
  export declare const serializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommand: (input: GenerateDataKeyPairWithoutPlaintextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
72
74
  export declare const serializeAws_json1_1GenerateDataKeyWithoutPlaintextCommand: (input: GenerateDataKeyWithoutPlaintextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
75
+ export declare const serializeAws_json1_1GenerateMacCommand: (input: GenerateMacCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
73
76
  export declare const serializeAws_json1_1GenerateRandomCommand: (input: GenerateRandomCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
74
77
  export declare const serializeAws_json1_1GetKeyPolicyCommand: (input: GetKeyPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
75
78
  export declare const serializeAws_json1_1GetKeyRotationStatusCommand: (input: GetKeyRotationStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -96,6 +99,7 @@ export declare const serializeAws_json1_1UpdateCustomKeyStoreCommand: (input: Up
96
99
  export declare const serializeAws_json1_1UpdateKeyDescriptionCommand: (input: UpdateKeyDescriptionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
97
100
  export declare const serializeAws_json1_1UpdatePrimaryRegionCommand: (input: UpdatePrimaryRegionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
98
101
  export declare const serializeAws_json1_1VerifyCommand: (input: VerifyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
102
+ export declare const serializeAws_json1_1VerifyMacCommand: (input: VerifyMacCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
99
103
  export declare const deserializeAws_json1_1CancelKeyDeletionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CancelKeyDeletionCommandOutput>;
100
104
  export declare const deserializeAws_json1_1ConnectCustomKeyStoreCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ConnectCustomKeyStoreCommandOutput>;
101
105
  export declare const deserializeAws_json1_1CreateAliasCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateAliasCommandOutput>;
@@ -118,6 +122,7 @@ export declare const deserializeAws_json1_1GenerateDataKeyCommand: (output: __Ht
118
122
  export declare const deserializeAws_json1_1GenerateDataKeyPairCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateDataKeyPairCommandOutput>;
119
123
  export declare const deserializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateDataKeyPairWithoutPlaintextCommandOutput>;
120
124
  export declare const deserializeAws_json1_1GenerateDataKeyWithoutPlaintextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateDataKeyWithoutPlaintextCommandOutput>;
125
+ export declare const deserializeAws_json1_1GenerateMacCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateMacCommandOutput>;
121
126
  export declare const deserializeAws_json1_1GenerateRandomCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateRandomCommandOutput>;
122
127
  export declare const deserializeAws_json1_1GetKeyPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetKeyPolicyCommandOutput>;
123
128
  export declare const deserializeAws_json1_1GetKeyRotationStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetKeyRotationStatusCommandOutput>;
@@ -144,3 +149,4 @@ export declare const deserializeAws_json1_1UpdateCustomKeyStoreCommand: (output:
144
149
  export declare const deserializeAws_json1_1UpdateKeyDescriptionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateKeyDescriptionCommandOutput>;
145
150
  export declare const deserializeAws_json1_1UpdatePrimaryRegionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdatePrimaryRegionCommandOutput>;
146
151
  export declare const deserializeAws_json1_1VerifyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<VerifyCommandOutput>;
152
+ export declare const deserializeAws_json1_1VerifyMacCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<VerifyMacCommandOutput>;
@@ -21,6 +21,7 @@ import { GenerateDataKeyCommandInput, GenerateDataKeyCommandOutput } from "./com
21
21
  import { GenerateDataKeyPairCommandInput, GenerateDataKeyPairCommandOutput } from "./commands/GenerateDataKeyPairCommand";
22
22
  import { GenerateDataKeyPairWithoutPlaintextCommandInput, GenerateDataKeyPairWithoutPlaintextCommandOutput } from "./commands/GenerateDataKeyPairWithoutPlaintextCommand";
23
23
  import { GenerateDataKeyWithoutPlaintextCommandInput, GenerateDataKeyWithoutPlaintextCommandOutput } from "./commands/GenerateDataKeyWithoutPlaintextCommand";
24
+ import { GenerateMacCommandInput, GenerateMacCommandOutput } from "./commands/GenerateMacCommand";
24
25
  import { GenerateRandomCommandInput, GenerateRandomCommandOutput } from "./commands/GenerateRandomCommand";
25
26
  import { GetKeyPolicyCommandInput, GetKeyPolicyCommandOutput } from "./commands/GetKeyPolicyCommand";
26
27
  import { GetKeyRotationStatusCommandInput, GetKeyRotationStatusCommandOutput } from "./commands/GetKeyRotationStatusCommand";
@@ -47,6 +48,7 @@ import { UpdateCustomKeyStoreCommandInput, UpdateCustomKeyStoreCommandOutput } f
47
48
  import { UpdateKeyDescriptionCommandInput, UpdateKeyDescriptionCommandOutput } from "./commands/UpdateKeyDescriptionCommand";
48
49
  import { UpdatePrimaryRegionCommandInput, UpdatePrimaryRegionCommandOutput } from "./commands/UpdatePrimaryRegionCommand";
49
50
  import { VerifyCommandInput, VerifyCommandOutput } from "./commands/VerifyCommand";
51
+ import { VerifyMacCommandInput, VerifyMacCommandOutput } from "./commands/VerifyMacCommand";
50
52
  import { KMSClient } from "./KMSClient";
51
53
 
52
54
  export declare class KMS extends KMSClient {
@@ -139,6 +141,10 @@ export declare class KMS extends KMSClient {
139
141
  generateDataKeyWithoutPlaintext(args: GenerateDataKeyWithoutPlaintextCommandInput, cb: (err: any, data?: GenerateDataKeyWithoutPlaintextCommandOutput) => void): void;
140
142
  generateDataKeyWithoutPlaintext(args: GenerateDataKeyWithoutPlaintextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateDataKeyWithoutPlaintextCommandOutput) => void): void;
141
143
 
144
+ generateMac(args: GenerateMacCommandInput, options?: __HttpHandlerOptions): Promise<GenerateMacCommandOutput>;
145
+ generateMac(args: GenerateMacCommandInput, cb: (err: any, data?: GenerateMacCommandOutput) => void): void;
146
+ generateMac(args: GenerateMacCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateMacCommandOutput) => void): void;
147
+
142
148
  generateRandom(args: GenerateRandomCommandInput, options?: __HttpHandlerOptions): Promise<GenerateRandomCommandOutput>;
143
149
  generateRandom(args: GenerateRandomCommandInput, cb: (err: any, data?: GenerateRandomCommandOutput) => void): void;
144
150
  generateRandom(args: GenerateRandomCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateRandomCommandOutput) => void): void;
@@ -242,4 +248,8 @@ export declare class KMS extends KMSClient {
242
248
  verify(args: VerifyCommandInput, options?: __HttpHandlerOptions): Promise<VerifyCommandOutput>;
243
249
  verify(args: VerifyCommandInput, cb: (err: any, data?: VerifyCommandOutput) => void): void;
244
250
  verify(args: VerifyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyCommandOutput) => void): void;
251
+
252
+ verifyMac(args: VerifyMacCommandInput, options?: __HttpHandlerOptions): Promise<VerifyMacCommandOutput>;
253
+ verifyMac(args: VerifyMacCommandInput, cb: (err: any, data?: VerifyMacCommandOutput) => void): void;
254
+ verifyMac(args: VerifyMacCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyMacCommandOutput) => void): void;
245
255
  }
@@ -28,6 +28,7 @@ import { GenerateDataKeyCommandInput, GenerateDataKeyCommandOutput } from "./com
28
28
  import { GenerateDataKeyPairCommandInput, GenerateDataKeyPairCommandOutput } from "./commands/GenerateDataKeyPairCommand";
29
29
  import { GenerateDataKeyPairWithoutPlaintextCommandInput, GenerateDataKeyPairWithoutPlaintextCommandOutput } from "./commands/GenerateDataKeyPairWithoutPlaintextCommand";
30
30
  import { GenerateDataKeyWithoutPlaintextCommandInput, GenerateDataKeyWithoutPlaintextCommandOutput } from "./commands/GenerateDataKeyWithoutPlaintextCommand";
31
+ import { GenerateMacCommandInput, GenerateMacCommandOutput } from "./commands/GenerateMacCommand";
31
32
  import { GenerateRandomCommandInput, GenerateRandomCommandOutput } from "./commands/GenerateRandomCommand";
32
33
  import { GetKeyPolicyCommandInput, GetKeyPolicyCommandOutput } from "./commands/GetKeyPolicyCommand";
33
34
  import { GetKeyRotationStatusCommandInput, GetKeyRotationStatusCommandOutput } from "./commands/GetKeyRotationStatusCommand";
@@ -54,8 +55,9 @@ import { UpdateCustomKeyStoreCommandInput, UpdateCustomKeyStoreCommandOutput } f
54
55
  import { UpdateKeyDescriptionCommandInput, UpdateKeyDescriptionCommandOutput } from "./commands/UpdateKeyDescriptionCommand";
55
56
  import { UpdatePrimaryRegionCommandInput, UpdatePrimaryRegionCommandOutput } from "./commands/UpdatePrimaryRegionCommand";
56
57
  import { VerifyCommandInput, VerifyCommandOutput } from "./commands/VerifyCommand";
57
- export declare type ServiceInputTypes = CancelKeyDeletionCommandInput | ConnectCustomKeyStoreCommandInput | CreateAliasCommandInput | CreateCustomKeyStoreCommandInput | CreateGrantCommandInput | CreateKeyCommandInput | DecryptCommandInput | DeleteAliasCommandInput | DeleteCustomKeyStoreCommandInput | DeleteImportedKeyMaterialCommandInput | DescribeCustomKeyStoresCommandInput | DescribeKeyCommandInput | DisableKeyCommandInput | DisableKeyRotationCommandInput | DisconnectCustomKeyStoreCommandInput | EnableKeyCommandInput | EnableKeyRotationCommandInput | EncryptCommandInput | GenerateDataKeyCommandInput | GenerateDataKeyPairCommandInput | GenerateDataKeyPairWithoutPlaintextCommandInput | GenerateDataKeyWithoutPlaintextCommandInput | GenerateRandomCommandInput | GetKeyPolicyCommandInput | GetKeyRotationStatusCommandInput | GetParametersForImportCommandInput | GetPublicKeyCommandInput | ImportKeyMaterialCommandInput | ListAliasesCommandInput | ListGrantsCommandInput | ListKeyPoliciesCommandInput | ListKeysCommandInput | ListResourceTagsCommandInput | ListRetirableGrantsCommandInput | PutKeyPolicyCommandInput | ReEncryptCommandInput | ReplicateKeyCommandInput | RetireGrantCommandInput | RevokeGrantCommandInput | ScheduleKeyDeletionCommandInput | SignCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAliasCommandInput | UpdateCustomKeyStoreCommandInput | UpdateKeyDescriptionCommandInput | UpdatePrimaryRegionCommandInput | VerifyCommandInput;
58
- export declare type ServiceOutputTypes = CancelKeyDeletionCommandOutput | ConnectCustomKeyStoreCommandOutput | CreateAliasCommandOutput | CreateCustomKeyStoreCommandOutput | CreateGrantCommandOutput | CreateKeyCommandOutput | DecryptCommandOutput | DeleteAliasCommandOutput | DeleteCustomKeyStoreCommandOutput | DeleteImportedKeyMaterialCommandOutput | DescribeCustomKeyStoresCommandOutput | DescribeKeyCommandOutput | DisableKeyCommandOutput | DisableKeyRotationCommandOutput | DisconnectCustomKeyStoreCommandOutput | EnableKeyCommandOutput | EnableKeyRotationCommandOutput | EncryptCommandOutput | GenerateDataKeyCommandOutput | GenerateDataKeyPairCommandOutput | GenerateDataKeyPairWithoutPlaintextCommandOutput | GenerateDataKeyWithoutPlaintextCommandOutput | GenerateRandomCommandOutput | GetKeyPolicyCommandOutput | GetKeyRotationStatusCommandOutput | GetParametersForImportCommandOutput | GetPublicKeyCommandOutput | ImportKeyMaterialCommandOutput | ListAliasesCommandOutput | ListGrantsCommandOutput | ListKeyPoliciesCommandOutput | ListKeysCommandOutput | ListResourceTagsCommandOutput | ListRetirableGrantsCommandOutput | PutKeyPolicyCommandOutput | ReEncryptCommandOutput | ReplicateKeyCommandOutput | RetireGrantCommandOutput | RevokeGrantCommandOutput | ScheduleKeyDeletionCommandOutput | SignCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAliasCommandOutput | UpdateCustomKeyStoreCommandOutput | UpdateKeyDescriptionCommandOutput | UpdatePrimaryRegionCommandOutput | VerifyCommandOutput;
58
+ import { VerifyMacCommandInput, VerifyMacCommandOutput } from "./commands/VerifyMacCommand";
59
+ export declare type ServiceInputTypes = CancelKeyDeletionCommandInput | ConnectCustomKeyStoreCommandInput | CreateAliasCommandInput | CreateCustomKeyStoreCommandInput | CreateGrantCommandInput | CreateKeyCommandInput | DecryptCommandInput | DeleteAliasCommandInput | DeleteCustomKeyStoreCommandInput | DeleteImportedKeyMaterialCommandInput | DescribeCustomKeyStoresCommandInput | DescribeKeyCommandInput | DisableKeyCommandInput | DisableKeyRotationCommandInput | DisconnectCustomKeyStoreCommandInput | EnableKeyCommandInput | EnableKeyRotationCommandInput | EncryptCommandInput | GenerateDataKeyCommandInput | GenerateDataKeyPairCommandInput | GenerateDataKeyPairWithoutPlaintextCommandInput | GenerateDataKeyWithoutPlaintextCommandInput | GenerateMacCommandInput | GenerateRandomCommandInput | GetKeyPolicyCommandInput | GetKeyRotationStatusCommandInput | GetParametersForImportCommandInput | GetPublicKeyCommandInput | ImportKeyMaterialCommandInput | ListAliasesCommandInput | ListGrantsCommandInput | ListKeyPoliciesCommandInput | ListKeysCommandInput | ListResourceTagsCommandInput | ListRetirableGrantsCommandInput | PutKeyPolicyCommandInput | ReEncryptCommandInput | ReplicateKeyCommandInput | RetireGrantCommandInput | RevokeGrantCommandInput | ScheduleKeyDeletionCommandInput | SignCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAliasCommandInput | UpdateCustomKeyStoreCommandInput | UpdateKeyDescriptionCommandInput | UpdatePrimaryRegionCommandInput | VerifyCommandInput | VerifyMacCommandInput;
60
+ export declare type ServiceOutputTypes = CancelKeyDeletionCommandOutput | ConnectCustomKeyStoreCommandOutput | CreateAliasCommandOutput | CreateCustomKeyStoreCommandOutput | CreateGrantCommandOutput | CreateKeyCommandOutput | DecryptCommandOutput | DeleteAliasCommandOutput | DeleteCustomKeyStoreCommandOutput | DeleteImportedKeyMaterialCommandOutput | DescribeCustomKeyStoresCommandOutput | DescribeKeyCommandOutput | DisableKeyCommandOutput | DisableKeyRotationCommandOutput | DisconnectCustomKeyStoreCommandOutput | EnableKeyCommandOutput | EnableKeyRotationCommandOutput | EncryptCommandOutput | GenerateDataKeyCommandOutput | GenerateDataKeyPairCommandOutput | GenerateDataKeyPairWithoutPlaintextCommandOutput | GenerateDataKeyWithoutPlaintextCommandOutput | GenerateMacCommandOutput | GenerateRandomCommandOutput | GetKeyPolicyCommandOutput | GetKeyRotationStatusCommandOutput | GetParametersForImportCommandOutput | GetPublicKeyCommandOutput | ImportKeyMaterialCommandOutput | ListAliasesCommandOutput | ListGrantsCommandOutput | ListKeyPoliciesCommandOutput | ListKeysCommandOutput | ListResourceTagsCommandOutput | ListRetirableGrantsCommandOutput | PutKeyPolicyCommandOutput | ReEncryptCommandOutput | ReplicateKeyCommandOutput | RetireGrantCommandOutput | RevokeGrantCommandOutput | ScheduleKeyDeletionCommandOutput | SignCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAliasCommandOutput | UpdateCustomKeyStoreCommandOutput | UpdateKeyDescriptionCommandOutput | UpdatePrimaryRegionCommandOutput | VerifyCommandOutput | VerifyMacCommandOutput;
59
61
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
60
62
 
61
63
  requestHandler?: __HttpHandler;
@@ -0,0 +1,17 @@
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 { GenerateMacRequest, GenerateMacResponse } from "../models/models_0";
5
+ export interface GenerateMacCommandInput extends GenerateMacRequest {
6
+ }
7
+ export interface GenerateMacCommandOutput extends GenerateMacResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class GenerateMacCommand extends $Command<GenerateMacCommandInput, GenerateMacCommandOutput, KMSClientResolvedConfig> {
11
+ readonly input: GenerateMacCommandInput;
12
+ constructor(input: GenerateMacCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GenerateMacCommandInput, GenerateMacCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
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
+ export declare class VerifyMacCommand extends $Command<VerifyMacCommandInput, VerifyMacCommandOutput, KMSClientResolvedConfig> {
11
+ readonly input: VerifyMacCommandInput;
12
+ constructor(input: VerifyMacCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<VerifyMacCommandInput, VerifyMacCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -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";
@@ -245,12 +245,14 @@ export declare enum GrantOperation {
245
245
  GenerateDataKeyPair = "GenerateDataKeyPair",
246
246
  GenerateDataKeyPairWithoutPlaintext = "GenerateDataKeyPairWithoutPlaintext",
247
247
  GenerateDataKeyWithoutPlaintext = "GenerateDataKeyWithoutPlaintext",
248
+ GenerateMac = "GenerateMac",
248
249
  GetPublicKey = "GetPublicKey",
249
250
  ReEncryptFrom = "ReEncryptFrom",
250
251
  ReEncryptTo = "ReEncryptTo",
251
252
  RetireGrant = "RetireGrant",
252
253
  Sign = "Sign",
253
- Verify = "Verify"
254
+ Verify = "Verify",
255
+ VerifyMac = "VerifyMac"
254
256
  }
255
257
  export interface CreateGrantRequest {
256
258
 
@@ -301,6 +303,10 @@ export declare enum CustomerMasterKeySpec {
301
303
  ECC_NIST_P384 = "ECC_NIST_P384",
302
304
  ECC_NIST_P521 = "ECC_NIST_P521",
303
305
  ECC_SECG_P256K1 = "ECC_SECG_P256K1",
306
+ HMAC_224 = "HMAC_224",
307
+ HMAC_256 = "HMAC_256",
308
+ HMAC_384 = "HMAC_384",
309
+ HMAC_512 = "HMAC_512",
304
310
  RSA_2048 = "RSA_2048",
305
311
  RSA_3072 = "RSA_3072",
306
312
  RSA_4096 = "RSA_4096",
@@ -311,6 +317,10 @@ export declare enum KeySpec {
311
317
  ECC_NIST_P384 = "ECC_NIST_P384",
312
318
  ECC_NIST_P521 = "ECC_NIST_P521",
313
319
  ECC_SECG_P256K1 = "ECC_SECG_P256K1",
320
+ HMAC_224 = "HMAC_224",
321
+ HMAC_256 = "HMAC_256",
322
+ HMAC_384 = "HMAC_384",
323
+ HMAC_512 = "HMAC_512",
314
324
  RSA_2048 = "RSA_2048",
315
325
  RSA_3072 = "RSA_3072",
316
326
  RSA_4096 = "RSA_4096",
@@ -318,6 +328,7 @@ export declare enum KeySpec {
318
328
  }
319
329
  export declare enum KeyUsageType {
320
330
  ENCRYPT_DECRYPT = "ENCRYPT_DECRYPT",
331
+ GENERATE_VERIFY_MAC = "GENERATE_VERIFY_MAC",
321
332
  SIGN_VERIFY = "SIGN_VERIFY"
322
333
  }
323
334
  export declare enum OriginType {
@@ -385,6 +396,12 @@ export declare enum KeyState {
385
396
  Unavailable = "Unavailable",
386
397
  Updating = "Updating"
387
398
  }
399
+ export declare enum MacAlgorithmSpec {
400
+ HMAC_SHA_224 = "HMAC_SHA_224",
401
+ HMAC_SHA_256 = "HMAC_SHA_256",
402
+ HMAC_SHA_384 = "HMAC_SHA_384",
403
+ HMAC_SHA_512 = "HMAC_SHA_512"
404
+ }
388
405
  export declare enum MultiRegionKeyType {
389
406
  PRIMARY = "PRIMARY",
390
407
  REPLICA = "REPLICA"
@@ -470,6 +487,8 @@ export interface KeyMetadata {
470
487
  MultiRegionConfiguration?: MultiRegionConfiguration;
471
488
 
472
489
  PendingDeletionWindowInDays?: number;
490
+
491
+ MacAlgorithms?: (MacAlgorithmSpec | string)[];
473
492
  }
474
493
  export declare namespace KeyMetadata {
475
494
 
@@ -887,6 +906,32 @@ export declare namespace GenerateDataKeyWithoutPlaintextResponse {
887
906
 
888
907
  const filterSensitiveLog: (obj: GenerateDataKeyWithoutPlaintextResponse) => any;
889
908
  }
909
+ export interface GenerateMacRequest {
910
+
911
+ Message: Uint8Array | undefined;
912
+
913
+ KeyId: string | undefined;
914
+
915
+ MacAlgorithm: MacAlgorithmSpec | string | undefined;
916
+
917
+ GrantTokens?: string[];
918
+ }
919
+ export declare namespace GenerateMacRequest {
920
+
921
+ const filterSensitiveLog: (obj: GenerateMacRequest) => any;
922
+ }
923
+ export interface GenerateMacResponse {
924
+
925
+ Mac?: Uint8Array;
926
+
927
+ MacAlgorithm?: MacAlgorithmSpec | string;
928
+
929
+ KeyId?: string;
930
+ }
931
+ export declare namespace GenerateMacResponse {
932
+
933
+ const filterSensitiveLog: (obj: GenerateMacResponse) => any;
934
+ }
890
935
  export interface GenerateRandomRequest {
891
936
 
892
937
  NumberOfBytes?: number;
@@ -1078,6 +1123,13 @@ export declare namespace KeyListEntry {
1078
1123
  const filterSensitiveLog: (obj: KeyListEntry) => any;
1079
1124
  }
1080
1125
 
1126
+ export declare class KMSInvalidMacException extends __BaseException {
1127
+ readonly name: "KMSInvalidMacException";
1128
+ readonly $fault: "client";
1129
+
1130
+ constructor(opts: __ExceptionOptionType<KMSInvalidMacException, __BaseException>);
1131
+ }
1132
+
1081
1133
  export declare class KMSInvalidSignatureException extends __BaseException {
1082
1134
  readonly name: "KMSInvalidSignatureException";
1083
1135
  readonly $fault: "client";
@@ -1482,3 +1534,31 @@ export declare namespace VerifyResponse {
1482
1534
 
1483
1535
  const filterSensitiveLog: (obj: VerifyResponse) => any;
1484
1536
  }
1537
+ export interface VerifyMacRequest {
1538
+
1539
+ Message: Uint8Array | undefined;
1540
+
1541
+ KeyId: string | undefined;
1542
+
1543
+ MacAlgorithm: MacAlgorithmSpec | string | undefined;
1544
+
1545
+ Mac: Uint8Array | undefined;
1546
+
1547
+ GrantTokens?: string[];
1548
+ }
1549
+ export declare namespace VerifyMacRequest {
1550
+
1551
+ const filterSensitiveLog: (obj: VerifyMacRequest) => any;
1552
+ }
1553
+ export interface VerifyMacResponse {
1554
+
1555
+ KeyId?: string;
1556
+
1557
+ MacValid?: boolean;
1558
+
1559
+ MacAlgorithm?: MacAlgorithmSpec | string;
1560
+ }
1561
+ export declare namespace VerifyMacResponse {
1562
+
1563
+ const filterSensitiveLog: (obj: VerifyMacResponse) => any;
1564
+ }
@@ -22,6 +22,7 @@ import { GenerateDataKeyCommandInput, GenerateDataKeyCommandOutput } from "../co
22
22
  import { GenerateDataKeyPairCommandInput, GenerateDataKeyPairCommandOutput } from "../commands/GenerateDataKeyPairCommand";
23
23
  import { GenerateDataKeyPairWithoutPlaintextCommandInput, GenerateDataKeyPairWithoutPlaintextCommandOutput } from "../commands/GenerateDataKeyPairWithoutPlaintextCommand";
24
24
  import { GenerateDataKeyWithoutPlaintextCommandInput, GenerateDataKeyWithoutPlaintextCommandOutput } from "../commands/GenerateDataKeyWithoutPlaintextCommand";
25
+ import { GenerateMacCommandInput, GenerateMacCommandOutput } from "../commands/GenerateMacCommand";
25
26
  import { GenerateRandomCommandInput, GenerateRandomCommandOutput } from "../commands/GenerateRandomCommand";
26
27
  import { GetKeyPolicyCommandInput, GetKeyPolicyCommandOutput } from "../commands/GetKeyPolicyCommand";
27
28
  import { GetKeyRotationStatusCommandInput, GetKeyRotationStatusCommandOutput } from "../commands/GetKeyRotationStatusCommand";
@@ -48,6 +49,7 @@ import { UpdateCustomKeyStoreCommandInput, UpdateCustomKeyStoreCommandOutput } f
48
49
  import { UpdateKeyDescriptionCommandInput, UpdateKeyDescriptionCommandOutput } from "../commands/UpdateKeyDescriptionCommand";
49
50
  import { UpdatePrimaryRegionCommandInput, UpdatePrimaryRegionCommandOutput } from "../commands/UpdatePrimaryRegionCommand";
50
51
  import { VerifyCommandInput, VerifyCommandOutput } from "../commands/VerifyCommand";
52
+ import { VerifyMacCommandInput, VerifyMacCommandOutput } from "../commands/VerifyMacCommand";
51
53
  export declare const serializeAws_json1_1CancelKeyDeletionCommand: (input: CancelKeyDeletionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
52
54
  export declare const serializeAws_json1_1ConnectCustomKeyStoreCommand: (input: ConnectCustomKeyStoreCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
53
55
  export declare const serializeAws_json1_1CreateAliasCommand: (input: CreateAliasCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -70,6 +72,7 @@ export declare const serializeAws_json1_1GenerateDataKeyCommand: (input: Generat
70
72
  export declare const serializeAws_json1_1GenerateDataKeyPairCommand: (input: GenerateDataKeyPairCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
71
73
  export declare const serializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommand: (input: GenerateDataKeyPairWithoutPlaintextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
72
74
  export declare const serializeAws_json1_1GenerateDataKeyWithoutPlaintextCommand: (input: GenerateDataKeyWithoutPlaintextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
75
+ export declare const serializeAws_json1_1GenerateMacCommand: (input: GenerateMacCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
73
76
  export declare const serializeAws_json1_1GenerateRandomCommand: (input: GenerateRandomCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
74
77
  export declare const serializeAws_json1_1GetKeyPolicyCommand: (input: GetKeyPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
75
78
  export declare const serializeAws_json1_1GetKeyRotationStatusCommand: (input: GetKeyRotationStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -96,6 +99,7 @@ export declare const serializeAws_json1_1UpdateCustomKeyStoreCommand: (input: Up
96
99
  export declare const serializeAws_json1_1UpdateKeyDescriptionCommand: (input: UpdateKeyDescriptionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
97
100
  export declare const serializeAws_json1_1UpdatePrimaryRegionCommand: (input: UpdatePrimaryRegionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
98
101
  export declare const serializeAws_json1_1VerifyCommand: (input: VerifyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
102
+ export declare const serializeAws_json1_1VerifyMacCommand: (input: VerifyMacCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
99
103
  export declare const deserializeAws_json1_1CancelKeyDeletionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CancelKeyDeletionCommandOutput>;
100
104
  export declare const deserializeAws_json1_1ConnectCustomKeyStoreCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ConnectCustomKeyStoreCommandOutput>;
101
105
  export declare const deserializeAws_json1_1CreateAliasCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateAliasCommandOutput>;
@@ -118,6 +122,7 @@ export declare const deserializeAws_json1_1GenerateDataKeyCommand: (output: __Ht
118
122
  export declare const deserializeAws_json1_1GenerateDataKeyPairCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateDataKeyPairCommandOutput>;
119
123
  export declare const deserializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateDataKeyPairWithoutPlaintextCommandOutput>;
120
124
  export declare const deserializeAws_json1_1GenerateDataKeyWithoutPlaintextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateDataKeyWithoutPlaintextCommandOutput>;
125
+ export declare const deserializeAws_json1_1GenerateMacCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateMacCommandOutput>;
121
126
  export declare const deserializeAws_json1_1GenerateRandomCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateRandomCommandOutput>;
122
127
  export declare const deserializeAws_json1_1GetKeyPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetKeyPolicyCommandOutput>;
123
128
  export declare const deserializeAws_json1_1GetKeyRotationStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetKeyRotationStatusCommandOutput>;
@@ -144,3 +149,4 @@ export declare const deserializeAws_json1_1UpdateCustomKeyStoreCommand: (output:
144
149
  export declare const deserializeAws_json1_1UpdateKeyDescriptionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateKeyDescriptionCommandOutput>;
145
150
  export declare const deserializeAws_json1_1UpdatePrimaryRegionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdatePrimaryRegionCommandOutput>;
146
151
  export declare const deserializeAws_json1_1VerifyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<VerifyCommandOutput>;
152
+ export declare const deserializeAws_json1_1VerifyMacCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<VerifyMacCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kms",
3
3
  "description": "AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",
4
- "version": "3.67.0",
4
+ "version": "3.74.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.67.0",
21
+ "@aws-sdk/client-sts": "3.74.0",
22
22
  "@aws-sdk/config-resolver": "3.58.0",
23
- "@aws-sdk/credential-provider-node": "3.67.0",
23
+ "@aws-sdk/credential-provider-node": "3.74.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.58.0",
25
25
  "@aws-sdk/hash-node": "3.55.0",
26
26
  "@aws-sdk/invalid-dependency": "3.55.0",
@@ -33,17 +33,17 @@
33
33
  "@aws-sdk/middleware-stack": "3.55.0",
34
34
  "@aws-sdk/middleware-user-agent": "3.58.0",
35
35
  "@aws-sdk/node-config-provider": "3.58.0",
36
- "@aws-sdk/node-http-handler": "3.58.0",
36
+ "@aws-sdk/node-http-handler": "3.74.0",
37
37
  "@aws-sdk/protocol-http": "3.58.0",
38
- "@aws-sdk/smithy-client": "3.55.0",
38
+ "@aws-sdk/smithy-client": "3.72.0",
39
39
  "@aws-sdk/types": "3.55.0",
40
40
  "@aws-sdk/url-parser": "3.55.0",
41
41
  "@aws-sdk/util-base64-browser": "3.58.0",
42
42
  "@aws-sdk/util-base64-node": "3.55.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
44
  "@aws-sdk/util-body-length-node": "3.55.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.58.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.72.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.72.0",
47
47
  "@aws-sdk/util-user-agent-browser": "3.58.0",
48
48
  "@aws-sdk/util-user-agent-node": "3.58.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.55.0",