@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.
- package/dist-types/KMS.d.ts +7 -1
- package/dist-types/KMSClient.d.ts +1 -1
- package/dist-types/commands/CancelKeyDeletionCommand.d.ts +2 -1
- package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +2 -1
- package/dist-types/commands/CreateAliasCommand.d.ts +2 -1
- package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +2 -1
- package/dist-types/commands/CreateGrantCommand.d.ts +2 -1
- package/dist-types/commands/CreateKeyCommand.d.ts +2 -1
- package/dist-types/commands/DecryptCommand.d.ts +6 -5
- package/dist-types/commands/DeleteAliasCommand.d.ts +2 -1
- package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +2 -1
- package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +2 -1
- package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +2 -1
- package/dist-types/commands/DescribeKeyCommand.d.ts +2 -1
- package/dist-types/commands/DisableKeyCommand.d.ts +2 -1
- package/dist-types/commands/DisableKeyRotationCommand.d.ts +2 -1
- package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +2 -1
- package/dist-types/commands/EnableKeyCommand.d.ts +2 -1
- package/dist-types/commands/EnableKeyRotationCommand.d.ts +2 -1
- package/dist-types/commands/EncryptCommand.d.ts +4 -3
- package/dist-types/commands/GenerateDataKeyCommand.d.ts +6 -5
- package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +7 -6
- package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +4 -3
- package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +3 -2
- package/dist-types/commands/GenerateMacCommand.d.ts +4 -3
- package/dist-types/commands/GenerateRandomCommand.d.ts +5 -4
- package/dist-types/commands/GetKeyPolicyCommand.d.ts +2 -1
- package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +2 -1
- package/dist-types/commands/GetParametersForImportCommand.d.ts +4 -3
- package/dist-types/commands/GetPublicKeyCommand.d.ts +3 -2
- package/dist-types/commands/ImportKeyMaterialCommand.d.ts +4 -3
- package/dist-types/commands/ListAliasesCommand.d.ts +2 -1
- package/dist-types/commands/ListGrantsCommand.d.ts +2 -1
- package/dist-types/commands/ListKeyPoliciesCommand.d.ts +2 -1
- package/dist-types/commands/ListKeysCommand.d.ts +2 -1
- package/dist-types/commands/ListResourceTagsCommand.d.ts +2 -1
- package/dist-types/commands/ListRetirableGrantsCommand.d.ts +2 -1
- package/dist-types/commands/PutKeyPolicyCommand.d.ts +2 -1
- package/dist-types/commands/ReEncryptCommand.d.ts +4 -3
- package/dist-types/commands/ReplicateKeyCommand.d.ts +2 -1
- package/dist-types/commands/RetireGrantCommand.d.ts +2 -1
- package/dist-types/commands/RevokeGrantCommand.d.ts +2 -1
- package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +2 -1
- package/dist-types/commands/SignCommand.d.ts +4 -3
- package/dist-types/commands/TagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateAliasCommand.d.ts +2 -1
- package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +2 -1
- package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +2 -1
- package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +2 -1
- package/dist-types/commands/VerifyCommand.d.ts +4 -3
- package/dist-types/commands/VerifyMacCommand.d.ts +4 -3
- package/dist-types/models/models_0.d.ts +404 -404
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/dist-types/ts3.4/KMS.d.ts +6 -0
- package/dist-types/ts3.4/commands/CancelKeyDeletionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateCustomKeyStoreCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateGrantCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DecryptCommand.d.ts +7 -0
- package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeKeyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DisableKeyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DisableKeyRotationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/EnableKeyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/EnableKeyRotationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/EncryptCommand.d.ts +7 -0
- package/dist-types/ts3.4/commands/GenerateDataKeyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GenerateRandomCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetKeyPolicyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ImportKeyMaterialCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListGrantsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListKeyPoliciesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListResourceTagsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListRetirableGrantsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutKeyPolicyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ReEncryptCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ReplicateKeyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/RetireGrantCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/RevokeGrantCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/SignCommand.d.ts +7 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/VerifyCommand.d.ts +7 -0
- package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +9 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- 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: "
|
|
75
|
+
* Message: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
|
|
76
76
|
* MessageType: "RAW" || "DIGEST",
|
|
77
|
-
* Signature: "
|
|
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: "
|
|
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: "
|
|
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.
|