KeyUsage

class aws_cdk.aws_kms.KeyUsage(value)

Bases: enum.Enum

The key usage, represents the cryptographic operations of keys.

ExampleMetadata

infused

Example:

key = kms.Key(self, "MyKey",
    key_spec=kms.KeySpec.ECC_SECG_P256K1,  # Default to SYMMETRIC_DEFAULT
    key_usage=kms.KeyUsage.SIGN_VERIFY
)

Attributes

ENCRYPT_DECRYPT

Encryption and decryption.

SIGN_VERIFY

Signing and verification.