#[non_exhaustive]
pub enum PutProjectPolicyErrorKind {
AccessDeniedException(AccessDeniedException),
InternalServerError(InternalServerError),
InvalidParameterException(InvalidParameterException),
InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException),
LimitExceededException(LimitExceededException),
MalformedPolicyDocumentException(MalformedPolicyDocumentException),
ProvisionedThroughputExceededException(ProvisionedThroughputExceededException),
ResourceAlreadyExistsException(ResourceAlreadyExistsException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
ThrottlingException(ThrottlingException),
Unhandled(Unhandled),
}Expand description
Types of errors that can occur for the PutProjectPolicy operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You are not authorized to perform the action.
InternalServerError(InternalServerError)
Amazon Rekognition experienced a service issue. Try your call again.
InvalidParameterException(InvalidParameterException)
Input parameter violated a constraint. Validate your parameter before calling the API operation again.
InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException)
The supplied revision id for the project policy is invalid.
LimitExceededException(LimitExceededException)
An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until the number of concurrently running jobs is below the Amazon Rekognition service limit.
MalformedPolicyDocumentException(MalformedPolicyDocumentException)
The format of the project policy document that you supplied to PutProjectPolicy is incorrect.
ProvisionedThroughputExceededException(ProvisionedThroughputExceededException)
The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Rekognition.
ResourceAlreadyExistsException(ResourceAlreadyExistsException)
A resource with the specified ID already exists.
ResourceNotFoundException(ResourceNotFoundException)
The resource specified in the request cannot be found.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The size of the collection exceeds the allowed limit. For more information, see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide.
ThrottlingException(ThrottlingException)
Amazon Rekognition is temporarily unable to process the request. Try your call again.
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.