Enum aws_sdk_iam::error::PutRolePolicyErrorKind
source · [−]#[non_exhaustive]
pub enum PutRolePolicyErrorKind {
LimitExceededException(LimitExceededException),
MalformedPolicyDocumentException(MalformedPolicyDocumentException),
NoSuchEntityException(NoSuchEntityException),
ServiceFailureException(ServiceFailureException),
UnmodifiableEntityException(UnmodifiableEntityException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}Expand description
Types of errors that can occur for the PutRolePolicy operation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
LimitExceededException(LimitExceededException)
The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
MalformedPolicyDocumentException(MalformedPolicyDocumentException)
The request was rejected because the policy document was malformed. The error message describes the specific error.
NoSuchEntityException(NoSuchEntityException)
The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
ServiceFailureException(ServiceFailureException)
The request processing has failed because of an unknown error, exception or failure.
UnmodifiableEntityException(UnmodifiableEntityException)
The request was rejected because only the service that depends on the service-linked role can modify or delete the role on your behalf. The error message includes the name of the service that depends on this service-linked role. You must request the change through that service.
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unexpected error, e.g. invalid JSON returned by the service or an unknown error code