#[non_exhaustive]pub enum SecretsManagerErrorCode {
Show 14 variants
DecryptionFailure,
EncryptionFailure,
InternalServiceError,
InvalidAction,
InvalidNextTokenException,
InvalidParameterException,
InvalidRequestException,
LimitExceededException,
MalformedPolicyDocumentException,
MissingAction,
PreconditionNotMetException,
PublicPolicyException,
ResourceExistsException,
ResourceNotFoundException,
}Expand description
Well-known Secrets Manager error codes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DecryptionFailure
DecryptionFailure error.
EncryptionFailure
EncryptionFailure error.
InternalServiceError
InternalServiceError error.
InvalidAction
InvalidAction error.
InvalidNextTokenException
InvalidNextTokenException error.
InvalidParameterException
InvalidParameterException error.
InvalidRequestException
InvalidRequestException error.
LimitExceededException
LimitExceededException error.
MalformedPolicyDocumentException
MalformedPolicyDocumentException error.
MissingAction
MissingAction error.
PreconditionNotMetException
PreconditionNotMetException error.
PublicPolicyException
PublicPolicyException error.
ResourceExistsException
ResourceExistsException error.
ResourceNotFoundException
ResourceNotFoundException error.
Implementations§
Source§impl SecretsManagerErrorCode
impl SecretsManagerErrorCode
Sourcepub fn error_type(&self) -> &'static str
pub fn error_type(&self) -> &'static str
Returns the short error type string for the JSON __type field.
Sourcepub fn default_status_code(&self) -> StatusCode
pub fn default_status_code(&self) -> StatusCode
Returns the default HTTP status code for this error.
Trait Implementations§
Source§impl Clone for SecretsManagerErrorCode
impl Clone for SecretsManagerErrorCode
Source§fn clone(&self) -> SecretsManagerErrorCode
fn clone(&self) -> SecretsManagerErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecretsManagerErrorCode
impl Debug for SecretsManagerErrorCode
Source§impl Default for SecretsManagerErrorCode
impl Default for SecretsManagerErrorCode
Source§fn default() -> SecretsManagerErrorCode
fn default() -> SecretsManagerErrorCode
Returns the “default value” for a type. Read more
Source§impl Display for SecretsManagerErrorCode
impl Display for SecretsManagerErrorCode
Source§impl Hash for SecretsManagerErrorCode
impl Hash for SecretsManagerErrorCode
Source§impl PartialEq for SecretsManagerErrorCode
impl PartialEq for SecretsManagerErrorCode
Source§fn eq(&self, other: &SecretsManagerErrorCode) -> bool
fn eq(&self, other: &SecretsManagerErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SecretsManagerErrorCode
impl Eq for SecretsManagerErrorCode
impl StructuralPartialEq for SecretsManagerErrorCode
Auto Trait Implementations§
impl Freeze for SecretsManagerErrorCode
impl RefUnwindSafe for SecretsManagerErrorCode
impl Send for SecretsManagerErrorCode
impl Sync for SecretsManagerErrorCode
impl Unpin for SecretsManagerErrorCode
impl UnsafeUnpin for SecretsManagerErrorCode
impl UnwindSafe for SecretsManagerErrorCode
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
Mutably borrows from an owned value. Read more