enum KeyUsage
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.KMS.KeyUsage |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awskms#KeyUsage |
Java | software.amazon.awscdk.services.kms.KeyUsage |
Python | aws_cdk.aws_kms.KeyUsage |
TypeScript (source) | aws-cdk-lib » 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. |
GENERATE_VERIFY_MAC | Generating and verifying MACs. |
KEY_AGREEMENT | Deriving shared secrets. |
ENCRYPT_DECRYPT
Encryption and decryption.
SIGN_VERIFY
Signing and verification.
GENERATE_VERIFY_MAC
Generating and verifying MACs.
KEY_AGREEMENT
Deriving shared secrets.