Errors
| Code | Status | Means |
|---|---|---|
KMS_KEY_NOT_FOUND | 404 | No key with that id in your account. A key belonging to another account reads the same way. |
KMS_KEY_NAME_EXISTS | 409 | Another key of yours already holds the name. |
KMS_KEY_DISABLED | 409 | Crypto operation on a disabled key. |
KMS_KEY_PENDING_DELETION | 409 | Crypto, enable, disable or update on a key inside the deletion window. Cancel first. |
KMS_INVALID_KEY_USAGE | 400 | Operation from the usage the key is not pinned to, or a spec/usage pair the spec cannot satisfy. |
KMS_INVALID_KEY_SPEC | 400 | Unknown spec, or an encryption context supplied for an asymmetric key. |
KMS_UNSUPPORTED_SIGNING_ALGORITHM | 400 | signing_algorithm does not match the key spec. |
KMS_INVALID_DELETION_WINDOW | 400 | pending_window_in_days outside 7–30. |