#[non_exhaustive]pub enum UpdatePolicyStoreError {
ConflictException(ConflictException),
ResourceNotFoundException(ResourceNotFoundException),
AccessDeniedException(AccessDeniedException),
InternalServerException(InternalServerException),
ThrottlingException(ThrottlingException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
Error type for the UpdatePolicyStoreError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConflictException(ConflictException)
The request failed because another request to modify a resource occurred at the same.
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 UpdatePolicyStoreError
impl UpdatePolicyStoreError
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 UpdatePolicyStoreError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the UpdatePolicyStoreError::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_conflict_exception(&self) -> bool
pub fn is_conflict_exception(&self) -> bool
Returns true
if the error kind is UpdatePolicyStoreError::ConflictException
.
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 UpdatePolicyStoreError::ResourceNotFoundException
.
sourcepub fn is_access_denied_exception(&self) -> bool
pub fn is_access_denied_exception(&self) -> bool
Returns true
if the error kind is UpdatePolicyStoreError::AccessDeniedException
.
sourcepub fn is_internal_server_exception(&self) -> bool
pub fn is_internal_server_exception(&self) -> bool
Returns true
if the error kind is UpdatePolicyStoreError::InternalServerException
.
sourcepub fn is_throttling_exception(&self) -> bool
pub fn is_throttling_exception(&self) -> bool
Returns true
if the error kind is UpdatePolicyStoreError::ThrottlingException
.
sourcepub fn is_validation_exception(&self) -> bool
pub fn is_validation_exception(&self) -> bool
Returns true
if the error kind is UpdatePolicyStoreError::ValidationException
.
Trait Implementations§
source§impl CreateUnhandledError for UpdatePolicyStoreError
impl CreateUnhandledError for UpdatePolicyStoreError
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 UpdatePolicyStoreError
impl Debug for UpdatePolicyStoreError
source§impl Display for UpdatePolicyStoreError
impl Display for UpdatePolicyStoreError
source§impl Error for UpdatePolicyStoreError
impl Error for UpdatePolicyStoreError
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<UpdatePolicyStoreError> for Error
impl From<UpdatePolicyStoreError> for Error
source§fn from(err: UpdatePolicyStoreError) -> Self
fn from(err: UpdatePolicyStoreError) -> Self
source§impl ProvideErrorMetadata for UpdatePolicyStoreError
impl ProvideErrorMetadata for UpdatePolicyStoreError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for UpdatePolicyStoreError
impl RequestId for UpdatePolicyStoreError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.