enum KeyUsage
This page is available in another version. Click here for the v2 documentation.
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.KMS.KeyUsage |
![]() | software.amazon.awscdk.services.kms.KeyUsage |
![]() | aws_cdk.aws_kms.KeyUsage |
![]() | @aws-cdk/aws-kms » KeyUsage |
The key usage, represents the cryptographic operations of keys.
Example
const key = new kms.Key(this, 'MyKey', {
keySpec: kms.KeySpec.ECC_SECG_P256K1, // Default to SYMMETRIC_DEFAULT
keyUsage: kms.KeyUsage.SIGN_VERIFY, // and ENCRYPT_DECRYPT
});
Members
Name | Description |
---|---|
ENCRYPT_DECRYPT | Encryption and decryption. |
SIGN_VERIFY | Signing and verification. |
ENCRYPT_DECRYPT
Encryption and decryption.
SIGN_VERIFY
Signing and verification.