#[non_exhaustive]
pub enum PutResourcePolicyErrorKind {
InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException),
LockoutPreventionException(LockoutPreventionException),
MalformedPolicyDocumentException(MalformedPolicyDocumentException),
PolicyCountLimitExceededException(PolicyCountLimitExceededException),
PolicySizeLimitExceededException(PolicySizeLimitExceededException),
ThrottledException(ThrottledException),
Unhandled(Unhandled),
}
Expand description
Types of errors that can occur for the PutResourcePolicy
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.
LockoutPreventionException(LockoutPreventionException)
The provided resource policy would prevent the caller of this request from calling PutResourcePolicy in the future.
MalformedPolicyDocumentException(MalformedPolicyDocumentException)
Invalid policy document provided in request.
PolicyCountLimitExceededException(PolicyCountLimitExceededException)
Exceeded the maximum number of resource policies for a target Amazon Web Services account.
PolicySizeLimitExceededException(PolicySizeLimitExceededException)
Exceeded the maximum size for a resource policy.
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.