KeyUsage

class aws_cdk.aws_kms.KeyUsage(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: 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.

GENERATE_VERIFY_MAC

Generating and verifying MACs.

SIGN_VERIFY

Signing and verification.