Crypto KMS
    Preparing search index...

    Type Alias KmsErrorCode

    KmsErrorCode:
        | "NOT_FOUND"
        | "DISABLED"
        | "INVALID_USAGE"
        | "INVALID_ARGUMENT"
        | "INVALID_CIPHERTEXT"
        | "DECRYPTION_FAILED"
        | "VERSION_DESTROYED"
        | "NOT_IMPLEMENTED"
        | "DEPENDENCY_MISSING"

    Machine-readable reason for a KmsError.

    • NOT_FOUND: the key, or the key version named by a ciphertext, does not exist.
    • DISABLED: the key is disabled or scheduled for deletion.
    • INVALID_USAGE: the key's usage does not allow the operation (for example signing with an encryption key).
    • INVALID_ARGUMENT: an argument is malformed (for example a non-string encryption-context value) or the request is not allowed (for example destroying the current key version).
    • INVALID_CIPHERTEXT: the ciphertext is truncated or not in a format this provider produced.
    • DECRYPTION_FAILED: authentication failed: wrong key, wrong encryption context, or tampered ciphertext.
    • VERSION_DESTROYED: the ciphertext was produced by a key version whose material has been destroyed.
    • NOT_IMPLEMENTED: the provider is a stub (Azure), or its backend has no such operation (Vault Transit cannot disable a key).
    • DEPENDENCY_MISSING: an optional peer dependency is not installed.