KeyUsage Enum
The key usage, represents the cryptographic operations of keys.
| Source | aws-kms/lib/key.ts |
|---|---|
| Type last changed |
Example
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
key := kms.NewKey(this, jsii.String("MyKey"), &KeyProps{
KeySpec: kms.KeySpec_ECC_SECG_P256K1,
// Default to SYMMETRIC_DEFAULT
KeyUsage: kms.KeyUsage_SIGN_VERIFY,
})
Members
| Member | Description |
|---|---|
ENCRYPT_DECRYPT | Encryption and decryption. |
SIGN_VERIFY | Signing and verification. |
GENERATE_VERIFY_MAC | Generating and verifying MACs. |
KEY_AGREEMENT | Deriving shared secrets. |
Referenced by
KeyProps.keyUsagekey_usagekeyUsageKeyUsageKeyUsage