Enum aws_sdk_verifiedpermissions::operation::list_identity_sources::ListIdentitySourcesError
source · #[non_exhaustive]pub enum ListIdentitySourcesError {
ResourceNotFoundException(ResourceNotFoundException),
AccessDeniedException(AccessDeniedException),
InternalServerException(InternalServerException),
ThrottlingException(ThrottlingException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
Error type for the ListIdentitySourcesError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ResourceNotFoundException(ResourceNotFoundException)
The request failed because it references a resource that doesn't exist.
AccessDeniedException(AccessDeniedException)
You don't have sufficient access to perform this action.
InternalServerException(InternalServerException)
The request failed because of an internal error. Try your request again later
ThrottlingException(ThrottlingException)
The request failed because it exceeded a throttling quota.
ValidationException(ValidationException)
The request failed because one or more input parameters don't satisfy their constraint requirements. The output is provided as a list of fields and a reason for each field that isn't valid.
The possible reasons include the following:
-
UnrecognizedEntityType
The policy includes an entity type that isn't found in the schema.
-
UnrecognizedActionId
The policy includes an action id that isn't found in the schema.
-
InvalidActionApplication
The policy includes an action that, according to the schema, doesn't support the specified principal and resource.
-
UnexpectedType
The policy included an operand that isn't a valid type for the specified operation.
-
IncompatibleTypes
The types of elements included in a
set
, or the types of expressions used in anif...then...else
clause aren't compatible in this context. -
MissingAttribute
The policy attempts to access a record or entity attribute that isn't specified in the schema. Test for the existence of the attribute first before attempting to access its value. For more information, see the has (presence of attribute test) operator in the Cedar Policy Language Guide.
-
UnsafeOptionalAttributeAccess
The policy attempts to access a record or entity attribute that is optional and isn't guaranteed to be present. Test for the existence of the attribute first before attempting to access its value. For more information, see the has (presence of attribute test) operator in the Cedar Policy Language Guide.
-
ImpossiblePolicy
Cedar has determined that a policy condition always evaluates to false. If the policy is always false, it can never apply to any query, and so it can never affect an authorization decision.
-
WrongNumberArguments
The policy references an extension type with the wrong number of arguments.
-
FunctionArgumentValidationError
Cedar couldn't parse the argument passed to an extension type. For example, a string that is to be parsed as an IPv4 address can contain only digits and the period character.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl ListIdentitySourcesError
impl ListIdentitySourcesError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the ListIdentitySourcesError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ListIdentitySourcesError::Unhandled
variant from a ::aws_smithy_types::error::ErrorMetadata
.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_resource_not_found_exception(&self) -> bool
pub fn is_resource_not_found_exception(&self) -> bool
Returns true
if the error kind is ListIdentitySourcesError::ResourceNotFoundException
.
sourcepub fn is_access_denied_exception(&self) -> bool
pub fn is_access_denied_exception(&self) -> bool
Returns true
if the error kind is ListIdentitySourcesError::AccessDeniedException
.
sourcepub fn is_internal_server_exception(&self) -> bool
pub fn is_internal_server_exception(&self) -> bool
Returns true
if the error kind is ListIdentitySourcesError::InternalServerException
.
sourcepub fn is_throttling_exception(&self) -> bool
pub fn is_throttling_exception(&self) -> bool
Returns true
if the error kind is ListIdentitySourcesError::ThrottlingException
.
sourcepub fn is_validation_exception(&self) -> bool
pub fn is_validation_exception(&self) -> bool
Returns true
if the error kind is ListIdentitySourcesError::ValidationException
.
Trait Implementations§
source§impl CreateUnhandledError for ListIdentitySourcesError
impl CreateUnhandledError for ListIdentitySourcesError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source
and error metadata.source§impl Debug for ListIdentitySourcesError
impl Debug for ListIdentitySourcesError
source§impl Display for ListIdentitySourcesError
impl Display for ListIdentitySourcesError
source§impl Error for ListIdentitySourcesError
impl Error for ListIdentitySourcesError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<ListIdentitySourcesError> for Error
impl From<ListIdentitySourcesError> for Error
source§fn from(err: ListIdentitySourcesError) -> Self
fn from(err: ListIdentitySourcesError) -> Self
source§impl ProvideErrorMetadata for ListIdentitySourcesError
impl ProvideErrorMetadata for ListIdentitySourcesError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ListIdentitySourcesError
impl RequestId for ListIdentitySourcesError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.