#[non_exhaustive]
pub enum DeleteResourcePolicyErrorKind {
InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException),
InvalidRequestException(InvalidRequestException),
ThrottledException(ThrottledException),
Unhandled(Unhandled),
}
Expand description
Types of errors that can occur for the DeleteResourcePolicy
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException)
A policy revision id was provided which does not match the latest policy revision. This exception is also if a policy revision id of 0 is provided via PutResourcePolicy
and a policy with the same name already exists.
InvalidRequestException(InvalidRequestException)
The request is missing required parameters or has invalid parameters.
ThrottledException(ThrottledException)
The request exceeds the maximum number of requests per second.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
When logging an error from the SDK, it is recommended that you either wrap the error in
DisplayErrorContext
, use another
error reporter library that visits the error’s cause/source chain, or call
Error::source
for more details about the underlying cause.