@aws-sdk/client-kms 3.529.1 → 3.535.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 (113) hide show
  1. package/dist-types/KMS.d.ts +7 -1
  2. package/dist-types/KMSClient.d.ts +1 -1
  3. package/dist-types/commands/CancelKeyDeletionCommand.d.ts +2 -1
  4. package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +2 -1
  5. package/dist-types/commands/CreateAliasCommand.d.ts +2 -1
  6. package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +2 -1
  7. package/dist-types/commands/CreateGrantCommand.d.ts +2 -1
  8. package/dist-types/commands/CreateKeyCommand.d.ts +2 -1
  9. package/dist-types/commands/DecryptCommand.d.ts +6 -5
  10. package/dist-types/commands/DeleteAliasCommand.d.ts +2 -1
  11. package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +2 -1
  12. package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +2 -1
  13. package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +2 -1
  14. package/dist-types/commands/DescribeKeyCommand.d.ts +2 -1
  15. package/dist-types/commands/DisableKeyCommand.d.ts +2 -1
  16. package/dist-types/commands/DisableKeyRotationCommand.d.ts +2 -1
  17. package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +2 -1
  18. package/dist-types/commands/EnableKeyCommand.d.ts +2 -1
  19. package/dist-types/commands/EnableKeyRotationCommand.d.ts +2 -1
  20. package/dist-types/commands/EncryptCommand.d.ts +4 -3
  21. package/dist-types/commands/GenerateDataKeyCommand.d.ts +6 -5
  22. package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +7 -6
  23. package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +4 -3
  24. package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +3 -2
  25. package/dist-types/commands/GenerateMacCommand.d.ts +4 -3
  26. package/dist-types/commands/GenerateRandomCommand.d.ts +5 -4
  27. package/dist-types/commands/GetKeyPolicyCommand.d.ts +2 -1
  28. package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +2 -1
  29. package/dist-types/commands/GetParametersForImportCommand.d.ts +4 -3
  30. package/dist-types/commands/GetPublicKeyCommand.d.ts +3 -2
  31. package/dist-types/commands/ImportKeyMaterialCommand.d.ts +4 -3
  32. package/dist-types/commands/ListAliasesCommand.d.ts +2 -1
  33. package/dist-types/commands/ListGrantsCommand.d.ts +2 -1
  34. package/dist-types/commands/ListKeyPoliciesCommand.d.ts +2 -1
  35. package/dist-types/commands/ListKeysCommand.d.ts +2 -1
  36. package/dist-types/commands/ListResourceTagsCommand.d.ts +2 -1
  37. package/dist-types/commands/ListRetirableGrantsCommand.d.ts +2 -1
  38. package/dist-types/commands/PutKeyPolicyCommand.d.ts +2 -1
  39. package/dist-types/commands/ReEncryptCommand.d.ts +4 -3
  40. package/dist-types/commands/ReplicateKeyCommand.d.ts +2 -1
  41. package/dist-types/commands/RetireGrantCommand.d.ts +2 -1
  42. package/dist-types/commands/RevokeGrantCommand.d.ts +2 -1
  43. package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +2 -1
  44. package/dist-types/commands/SignCommand.d.ts +4 -3
  45. package/dist-types/commands/TagResourceCommand.d.ts +2 -1
  46. package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
  47. package/dist-types/commands/UpdateAliasCommand.d.ts +2 -1
  48. package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +2 -1
  49. package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +2 -1
  50. package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +2 -1
  51. package/dist-types/commands/VerifyCommand.d.ts +4 -3
  52. package/dist-types/commands/VerifyMacCommand.d.ts +4 -3
  53. package/dist-types/models/models_0.d.ts +404 -404
  54. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  55. package/dist-types/runtimeConfig.d.ts +2 -2
  56. package/dist-types/runtimeConfig.native.d.ts +2 -2
  57. package/dist-types/runtimeConfig.shared.d.ts +2 -2
  58. package/dist-types/ts3.4/KMS.d.ts +6 -0
  59. package/dist-types/ts3.4/commands/CancelKeyDeletionCommand.d.ts +9 -0
  60. package/dist-types/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +9 -0
  61. package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +9 -0
  62. package/dist-types/ts3.4/commands/CreateCustomKeyStoreCommand.d.ts +9 -0
  63. package/dist-types/ts3.4/commands/CreateGrantCommand.d.ts +9 -0
  64. package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +9 -0
  65. package/dist-types/ts3.4/commands/DecryptCommand.d.ts +7 -0
  66. package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +9 -0
  67. package/dist-types/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +9 -0
  68. package/dist-types/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +9 -0
  69. package/dist-types/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +9 -0
  70. package/dist-types/ts3.4/commands/DescribeKeyCommand.d.ts +9 -0
  71. package/dist-types/ts3.4/commands/DisableKeyCommand.d.ts +9 -0
  72. package/dist-types/ts3.4/commands/DisableKeyRotationCommand.d.ts +9 -0
  73. package/dist-types/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +9 -0
  74. package/dist-types/ts3.4/commands/EnableKeyCommand.d.ts +9 -0
  75. package/dist-types/ts3.4/commands/EnableKeyRotationCommand.d.ts +9 -0
  76. package/dist-types/ts3.4/commands/EncryptCommand.d.ts +7 -0
  77. package/dist-types/ts3.4/commands/GenerateDataKeyCommand.d.ts +9 -0
  78. package/dist-types/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +9 -0
  79. package/dist-types/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +9 -0
  80. package/dist-types/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +9 -0
  81. package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +9 -0
  82. package/dist-types/ts3.4/commands/GenerateRandomCommand.d.ts +9 -0
  83. package/dist-types/ts3.4/commands/GetKeyPolicyCommand.d.ts +9 -0
  84. package/dist-types/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +9 -0
  85. package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +9 -0
  86. package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +9 -0
  87. package/dist-types/ts3.4/commands/ImportKeyMaterialCommand.d.ts +9 -0
  88. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +9 -0
  89. package/dist-types/ts3.4/commands/ListGrantsCommand.d.ts +9 -0
  90. package/dist-types/ts3.4/commands/ListKeyPoliciesCommand.d.ts +9 -0
  91. package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +9 -0
  92. package/dist-types/ts3.4/commands/ListResourceTagsCommand.d.ts +9 -0
  93. package/dist-types/ts3.4/commands/ListRetirableGrantsCommand.d.ts +9 -0
  94. package/dist-types/ts3.4/commands/PutKeyPolicyCommand.d.ts +9 -0
  95. package/dist-types/ts3.4/commands/ReEncryptCommand.d.ts +9 -0
  96. package/dist-types/ts3.4/commands/ReplicateKeyCommand.d.ts +9 -0
  97. package/dist-types/ts3.4/commands/RetireGrantCommand.d.ts +9 -0
  98. package/dist-types/ts3.4/commands/RevokeGrantCommand.d.ts +9 -0
  99. package/dist-types/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +9 -0
  100. package/dist-types/ts3.4/commands/SignCommand.d.ts +7 -0
  101. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +9 -0
  102. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +9 -0
  103. package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +9 -0
  104. package/dist-types/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +9 -0
  105. package/dist-types/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +9 -0
  106. package/dist-types/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +9 -0
  107. package/dist-types/ts3.4/commands/VerifyCommand.d.ts +7 -0
  108. package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +9 -0
  109. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  110. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  111. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  112. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
  113. package/package.json +40 -40
@@ -22,10 +22,10 @@ export interface UpdateCustomKeyStoreCommandOutput extends UpdateCustomKeyStoreR
22
22
  }
23
23
  declare const UpdateCustomKeyStoreCommand_base: {
24
24
  new (input: UpdateCustomKeyStoreCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateCustomKeyStoreCommandInput, UpdateCustomKeyStoreCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: UpdateCustomKeyStoreCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateCustomKeyStoreCommandInput, UpdateCustomKeyStoreCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Changes the properties of a custom key store. You can use this operation to change the
30
30
  * properties of an CloudHSM key store or an external key store.</p>
31
31
  * <p>Use the required <code>CustomKeyStoreId</code> parameter to identify the custom key store.
@@ -313,6 +313,7 @@ declare const UpdateCustomKeyStoreCommand_base: {
313
313
  * @throws {@link KMSServiceException}
314
314
  * <p>Base exception class for all service exceptions from KMS service.</p>
315
315
  *
316
+ * @public
316
317
  * @example To edit the friendly name of a custom key store
317
318
  * ```javascript
318
319
  * // This example changes the friendly name of the AWS KMS custom key store to the name that you specify. This operation does not return any data. To verify that the operation worked, use the DescribeCustomKeyStores operation.
@@ -22,10 +22,10 @@ export interface UpdateKeyDescriptionCommandOutput extends __MetadataBearer {
22
22
  }
23
23
  declare const UpdateKeyDescriptionCommand_base: {
24
24
  new (input: UpdateKeyDescriptionCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateKeyDescriptionCommandInput, UpdateKeyDescriptionCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: UpdateKeyDescriptionCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateKeyDescriptionCommandInput, UpdateKeyDescriptionCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Updates the description of a KMS key. To see the description of a KMS key, use <a>DescribeKey</a>. </p>
30
30
  * <p>The KMS key that you use for this operation must be in a compatible key state. For
31
31
  * 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>
@@ -112,6 +112,7 @@ declare const UpdateKeyDescriptionCommand_base: {
112
112
  * @throws {@link KMSServiceException}
113
113
  * <p>Base exception class for all service exceptions from KMS service.</p>
114
114
  *
115
+ * @public
115
116
  * @example To update the description of a KMS key
116
117
  * ```javascript
117
118
  * // The following example updates the description of the specified KMS key.
@@ -22,10 +22,10 @@ export interface UpdatePrimaryRegionCommandOutput extends __MetadataBearer {
22
22
  }
23
23
  declare const UpdatePrimaryRegionCommand_base: {
24
24
  new (input: UpdatePrimaryRegionCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePrimaryRegionCommandInput, UpdatePrimaryRegionCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: UpdatePrimaryRegionCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePrimaryRegionCommandInput, UpdatePrimaryRegionCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Changes the primary key of a multi-Region key. </p>
30
30
  * <p>This operation changes the replica key in the specified Region to a primary key and
31
31
  * changes the former primary key to a replica key. For example, suppose you have a primary key
@@ -158,6 +158,7 @@ declare const UpdatePrimaryRegionCommand_base: {
158
158
  * @throws {@link KMSServiceException}
159
159
  * <p>Base exception class for all service exceptions from KMS service.</p>
160
160
  *
161
+ * @public
161
162
  * @example To update the primary Region of a multi-Region KMS key
162
163
  * ```javascript
163
164
  * // The following UpdatePrimaryRegion example changes the multi-Region replica key in the eu-central-1 Region to the primary key. The current primary key in the us-west-1 Region becomes a replica key.
@@ -22,10 +22,10 @@ export interface VerifyCommandOutput extends VerifyResponse, __MetadataBearer {
22
22
  }
23
23
  declare const VerifyCommand_base: {
24
24
  new (input: VerifyCommandInput): import("@smithy/smithy-client").CommandImpl<VerifyCommandInput, VerifyCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: VerifyCommandInput): import("@smithy/smithy-client").CommandImpl<VerifyCommandInput, VerifyCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Verifies a digital signature that was generated by the <a>Sign</a> operation. </p>
30
30
  * <p></p>
31
31
  * <p>Verification confirms that an authorized user signed the message with the specified KMS
@@ -72,9 +72,9 @@ declare const VerifyCommand_base: {
72
72
  * const client = new KMSClient(config);
73
73
  * const input = { // VerifyRequest
74
74
  * KeyId: "STRING_VALUE", // required
75
- * Message: "BLOB_VALUE", // required
75
+ * Message: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
76
76
  * MessageType: "RAW" || "DIGEST",
77
- * Signature: "BLOB_VALUE", // required
77
+ * Signature: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
78
78
  * SigningAlgorithm: "RSASSA_PSS_SHA_256" || "RSASSA_PSS_SHA_384" || "RSASSA_PSS_SHA_512" || "RSASSA_PKCS1_V1_5_SHA_256" || "RSASSA_PKCS1_V1_5_SHA_384" || "RSASSA_PKCS1_V1_5_SHA_512" || "ECDSA_SHA_256" || "ECDSA_SHA_384" || "ECDSA_SHA_512" || "SM2DSA", // required
79
79
  * GrantTokens: [ // GrantTokenList
80
80
  * "STRING_VALUE",
@@ -171,6 +171,7 @@ declare const VerifyCommand_base: {
171
171
  * @throws {@link KMSServiceException}
172
172
  * <p>Base exception class for all service exceptions from KMS service.</p>
173
173
  *
174
+ * @public
174
175
  * @example To use an asymmetric KMS key to verify a digital signature
175
176
  * ```javascript
176
177
  * // This operation uses the public key in an elliptic curve (ECC) asymmetric key to verify a digital signature within AWS KMS.
@@ -22,10 +22,10 @@ export interface VerifyMacCommandOutput extends VerifyMacResponse, __MetadataBea
22
22
  }
23
23
  declare const VerifyMacCommand_base: {
24
24
  new (input: VerifyMacCommandInput): import("@smithy/smithy-client").CommandImpl<VerifyMacCommandInput, VerifyMacCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: VerifyMacCommandInput): import("@smithy/smithy-client").CommandImpl<VerifyMacCommandInput, VerifyMacCommandOutput, KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC
30
30
  * KMS key, and MAC algorithm. To verify the HMAC, <code>VerifyMac</code> computes an HMAC using
31
31
  * the message, HMAC KMS key, and MAC algorithm that you specify, and compares the computed HMAC
@@ -57,10 +57,10 @@ declare const VerifyMacCommand_base: {
57
57
  * // const { KMSClient, VerifyMacCommand } = require("@aws-sdk/client-kms"); // CommonJS import
58
58
  * const client = new KMSClient(config);
59
59
  * const input = { // VerifyMacRequest
60
- * Message: "BLOB_VALUE", // required
60
+ * Message: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
61
61
  * KeyId: "STRING_VALUE", // required
62
62
  * MacAlgorithm: "HMAC_SHA_224" || "HMAC_SHA_256" || "HMAC_SHA_384" || "HMAC_SHA_512", // required
63
- * Mac: "BLOB_VALUE", // required
63
+ * Mac: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
64
64
  * GrantTokens: [ // GrantTokenList
65
65
  * "STRING_VALUE",
66
66
  * ],
@@ -152,6 +152,7 @@ declare const VerifyMacCommand_base: {
152
152
  * @throws {@link KMSServiceException}
153
153
  * <p>Base exception class for all service exceptions from KMS service.</p>
154
154
  *
155
+ * @public
155
156
  * @example To verify an HMAC
156
157
  * ```javascript
157
158
  * // This example verifies an HMAC for a particular message, HMAC KMS keys, and MAC algorithm. A value of 'true' in the MacValid value in the response indicates that the HMAC is valid.