#[non_exhaustive]
pub enum ValidateResourcePolicyErrorKind {
InternalServiceError(InternalServiceError),
InvalidParameterException(InvalidParameterException),
InvalidRequestException(InvalidRequestException),
MalformedPolicyDocumentException(MalformedPolicyDocumentException),
ResourceNotFoundException(ResourceNotFoundException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
Types of errors that can occur for the ValidateResourcePolicy
operation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
InternalServiceError(InternalServiceError)
An error occurred on the server side.
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.
-
The secret is managed by another service, and you must use that service to update it. For more information, see Secrets managed by other Amazon Web Services services.
MalformedPolicyDocumentException(MalformedPolicyDocumentException)
The resource policy has syntax errors.
ResourceNotFoundException(ResourceNotFoundException)
Secrets Manager can't find the resource that you asked for.
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unexpected error, e.g. invalid JSON returned by the service or an unknown error code