pub enum KmsErrorKind {
NotFound,
Disabled,
InvalidState,
AccessDenied,
InvalidKeyUsage,
InvalidCiphertext,
Internal,
}Expand description
The KMS failure classes a consuming service distinguishes.
Variants§
NotFound
No key with that id, ARN or alias (NotFoundException).
Disabled
The key is disabled (DisabledException).
InvalidState
The key is in a state that cannot be used, such as PendingDeletion
(KMSInvalidStateException).
AccessDenied
The key policy does not allow the call (AccessDeniedException).
InvalidKeyUsage
The key’s usage or spec does not allow the operation
(InvalidKeyUsageException).
InvalidCiphertext
The ciphertext is malformed, was sealed under another key or another
encryption context (InvalidCiphertextException).
Internal
No KMS is wired, or KMS failed internally (KMSInternalException).
Implementations§
Source§impl KmsErrorKind
impl KmsErrorKind
Sourcepub fn sqs_code(self) -> (u16, &'static str)
pub fn sqs_code(self) -> (u16, &'static str)
The awsQuery error code and HTTP status SQS answers a send or receive
with when KMS fails this way for an encrypted queue (KmsAccessDenied
etc., declared by SendMessage / SendMessageBatch / ReceiveMessage). A
ciphertext KMS cannot open is the key’s invalid state.
Trait Implementations§
Source§impl Clone for KmsErrorKind
impl Clone for KmsErrorKind
impl Copy for KmsErrorKind
Source§impl Debug for KmsErrorKind
impl Debug for KmsErrorKind
impl Eq for KmsErrorKind
Source§impl PartialEq for KmsErrorKind
impl PartialEq for KmsErrorKind
impl StructuralPartialEq for KmsErrorKind
Auto Trait Implementations§
impl Forget for KmsErrorKind
impl Freeze for KmsErrorKind
impl Move for KmsErrorKind
impl RefUnwindSafe for KmsErrorKind
impl Send for KmsErrorKind
impl Sync for KmsErrorKind
impl Unpin for KmsErrorKind
impl UnsafeUnpin for KmsErrorKind
impl UnwindSafe for KmsErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.