Enum aws_sdk_secretsmanager::Error
source · [−]#[non_exhaustive]
pub enum Error {
Show 13 variants
DecryptionFailure(DecryptionFailure),
EncryptionFailure(EncryptionFailure),
InternalServiceError(InternalServiceError),
InvalidNextTokenException(InvalidNextTokenException),
InvalidParameterException(InvalidParameterException),
InvalidRequestException(InvalidRequestException),
LimitExceededException(LimitExceededException),
MalformedPolicyDocumentException(MalformedPolicyDocumentException),
PreconditionNotMetException(PreconditionNotMetException),
PublicPolicyException(PublicPolicyException),
ResourceExistsException(ResourceExistsException),
ResourceNotFoundException(ResourceNotFoundException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
DecryptionFailure(DecryptionFailure)
Secrets Manager can't decrypt the protected secret text using the provided KMS key.
EncryptionFailure(EncryptionFailure)
Secrets Manager can't encrypt the protected secret text using the provided KMS key. Check that the KMS key is available, enabled, and not in an invalid state. For more information, see Key state: Effect on your KMS key.
InternalServiceError(InternalServiceError)
An error occurred on the server side.
InvalidNextTokenException(InvalidNextTokenException)
The NextToken
value is invalid.
InvalidParameterException(InvalidParameterException)
The parameter name or value is invalid.
InvalidRequestException(InvalidRequestException)
A parameter value is not valid for the current state of the resource.
Possible causes:
-
The secret is scheduled for deletion.
-
You tried to enable rotation on a secret that doesn't already have a Lambda function ARN configured and you didn't include such an ARN as a parameter in this call.
LimitExceededException(LimitExceededException)
The request failed because it would exceed one of the Secrets Manager quotas.
MalformedPolicyDocumentException(MalformedPolicyDocumentException)
The resource policy has syntax errors.
PreconditionNotMetException(PreconditionNotMetException)
The request failed because you did not complete all the prerequisite steps.
PublicPolicyException(PublicPolicyException)
The BlockPublicPolicy
parameter is set to true, and the resource policy did not prevent broad access to the secret.
ResourceExistsException(ResourceExistsException)
A resource with the ID you requested already exists.
ResourceNotFoundException(ResourceNotFoundException)
Secrets Manager can't find the resource that you asked for.
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unhandled error occurred.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl<R> From<SdkError<CancelRotateSecretError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CancelRotateSecretError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CancelRotateSecretError, R>) -> Self
fn from(err: SdkError<CancelRotateSecretError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<CreateSecretError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateSecretError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateSecretError, R>) -> Self
fn from(err: SdkError<CreateSecretError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<DeleteResourcePolicyError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteResourcePolicyError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteResourcePolicyError, R>) -> Self
fn from(err: SdkError<DeleteResourcePolicyError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<DeleteSecretError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteSecretError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteSecretError, R>) -> Self
fn from(err: SdkError<DeleteSecretError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<DescribeSecretError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeSecretError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeSecretError, R>) -> Self
fn from(err: SdkError<DescribeSecretError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<GetRandomPasswordError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetRandomPasswordError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetRandomPasswordError, R>) -> Self
fn from(err: SdkError<GetRandomPasswordError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<GetResourcePolicyError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetResourcePolicyError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetResourcePolicyError, R>) -> Self
fn from(err: SdkError<GetResourcePolicyError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<GetSecretValueError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetSecretValueError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetSecretValueError, R>) -> Self
fn from(err: SdkError<GetSecretValueError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<ListSecretVersionIdsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListSecretVersionIdsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListSecretVersionIdsError, R>) -> Self
fn from(err: SdkError<ListSecretVersionIdsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<ListSecretsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListSecretsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListSecretsError, R>) -> Self
fn from(err: SdkError<ListSecretsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<PutResourcePolicyError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<PutResourcePolicyError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<PutResourcePolicyError, R>) -> Self
fn from(err: SdkError<PutResourcePolicyError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<PutSecretValueError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<PutSecretValueError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<PutSecretValueError, R>) -> Self
fn from(err: SdkError<PutSecretValueError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<RemoveRegionsFromReplicationError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<RemoveRegionsFromReplicationError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<RemoveRegionsFromReplicationError, R>) -> Self
fn from(err: SdkError<RemoveRegionsFromReplicationError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<ReplicateSecretToRegionsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ReplicateSecretToRegionsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ReplicateSecretToRegionsError, R>) -> Self
fn from(err: SdkError<ReplicateSecretToRegionsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<RestoreSecretError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<RestoreSecretError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<RestoreSecretError, R>) -> Self
fn from(err: SdkError<RestoreSecretError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<RotateSecretError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<RotateSecretError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<RotateSecretError, R>) -> Self
fn from(err: SdkError<RotateSecretError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<StopReplicationToReplicaError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<StopReplicationToReplicaError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<StopReplicationToReplicaError, R>) -> Self
fn from(err: SdkError<StopReplicationToReplicaError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<TagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<TagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<UntagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UntagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<UpdateSecretError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateSecretError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<UpdateSecretError, R>) -> Self
fn from(err: SdkError<UpdateSecretError, R>) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more