#[non_exhaustive]pub enum CreatePermissionError {
IdempotentParameterMismatchException(IdempotentParameterMismatchException),
InvalidClientTokenException(InvalidClientTokenException),
InvalidParameterException(InvalidParameterException),
InvalidPolicyException(InvalidPolicyException),
MalformedPolicyTemplateException(MalformedPolicyTemplateException),
OperationNotPermittedException(OperationNotPermittedException),
PermissionAlreadyExistsException(PermissionAlreadyExistsException),
PermissionLimitExceededException(PermissionLimitExceededException),
ServerInternalException(ServerInternalException),
ServiceUnavailableException(ServiceUnavailableException),
Unhandled(Unhandled),
}
Expand description
Error type for the CreatePermissionError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
IdempotentParameterMismatchException(IdempotentParameterMismatchException)
The operation failed because the client token input parameter matched one that was used with a previous call to the operation, but at least one of the other input parameters is different from the previous call.
InvalidClientTokenException(InvalidClientTokenException)
The operation failed because the specified client token isn't valid.
InvalidParameterException(InvalidParameterException)
The operation failed because a parameter you specified isn't valid.
InvalidPolicyException(InvalidPolicyException)
The operation failed because a policy you specified isn't valid.
MalformedPolicyTemplateException(MalformedPolicyTemplateException)
The operation failed because the policy template that you provided isn't valid.
OperationNotPermittedException(OperationNotPermittedException)
The operation failed because the requested operation isn't permitted.
PermissionAlreadyExistsException(PermissionAlreadyExistsException)
The operation failed because a permission with the specified name already exists in the requested Amazon Web Services Region. Choose a different name.
PermissionLimitExceededException(PermissionLimitExceededException)
The operation failed because it would exceed the maximum number of permissions you can create in each Amazon Web Services Region. To view the limits for your Amazon Web Services account, see the RAM page in the Service Quotas console.
ServerInternalException(ServerInternalException)
The operation failed because the service could not respond to the request due to an internal problem. Try again later.
The operation failed because the service isn't available. Try again later.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl CreatePermissionError
impl CreatePermissionError
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 CreatePermissionError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the CreatePermissionError::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_idempotent_parameter_mismatch_exception(&self) -> bool
pub fn is_idempotent_parameter_mismatch_exception(&self) -> bool
Returns true
if the error kind is CreatePermissionError::IdempotentParameterMismatchException
.
sourcepub fn is_invalid_client_token_exception(&self) -> bool
pub fn is_invalid_client_token_exception(&self) -> bool
Returns true
if the error kind is CreatePermissionError::InvalidClientTokenException
.
sourcepub fn is_invalid_parameter_exception(&self) -> bool
pub fn is_invalid_parameter_exception(&self) -> bool
Returns true
if the error kind is CreatePermissionError::InvalidParameterException
.
sourcepub fn is_invalid_policy_exception(&self) -> bool
pub fn is_invalid_policy_exception(&self) -> bool
Returns true
if the error kind is CreatePermissionError::InvalidPolicyException
.
sourcepub fn is_malformed_policy_template_exception(&self) -> bool
pub fn is_malformed_policy_template_exception(&self) -> bool
Returns true
if the error kind is CreatePermissionError::MalformedPolicyTemplateException
.
sourcepub fn is_operation_not_permitted_exception(&self) -> bool
pub fn is_operation_not_permitted_exception(&self) -> bool
Returns true
if the error kind is CreatePermissionError::OperationNotPermittedException
.
sourcepub fn is_permission_already_exists_exception(&self) -> bool
pub fn is_permission_already_exists_exception(&self) -> bool
Returns true
if the error kind is CreatePermissionError::PermissionAlreadyExistsException
.
sourcepub fn is_permission_limit_exceeded_exception(&self) -> bool
pub fn is_permission_limit_exceeded_exception(&self) -> bool
Returns true
if the error kind is CreatePermissionError::PermissionLimitExceededException
.
sourcepub fn is_server_internal_exception(&self) -> bool
pub fn is_server_internal_exception(&self) -> bool
Returns true
if the error kind is CreatePermissionError::ServerInternalException
.
Returns true
if the error kind is CreatePermissionError::ServiceUnavailableException
.
Trait Implementations§
source§impl CreateUnhandledError for CreatePermissionError
impl CreateUnhandledError for CreatePermissionError
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 CreatePermissionError
impl Debug for CreatePermissionError
source§impl Display for CreatePermissionError
impl Display for CreatePermissionError
source§impl Error for CreatePermissionError
impl Error for CreatePermissionError
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<CreatePermissionError> for Error
impl From<CreatePermissionError> for Error
source§fn from(err: CreatePermissionError) -> Self
fn from(err: CreatePermissionError) -> Self
source§impl ProvideErrorMetadata for CreatePermissionError
impl ProvideErrorMetadata for CreatePermissionError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for CreatePermissionError
impl RequestId for CreatePermissionError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.