#[non_exhaustive]
pub enum Error { AccessDeniedException(AccessDeniedException), ConflictException(ConflictException), InternalServerException(InternalServerException), ResourceNotFoundException(ResourceNotFoundException), ServiceQuotaExceededException(ServiceQuotaExceededException), ThrottlingException(ThrottlingException), ValidationException(ValidationException), Unhandled(Unhandled), }
Expand description

All possible error types for this service.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AccessDeniedException(AccessDeniedException)

You do not have sufficient access to perform this action.

§

ConflictException(ConflictException)

Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.

§

InternalServerException(InternalServerException)

The request processing has failed because of an unknown error, exception, or failure with an internal server.

§

ResourceNotFoundException(ResourceNotFoundException)

Indicates that a requested resource is not found.

§

ServiceQuotaExceededException(ServiceQuotaExceededException)

Indicates that the principal has crossed the permitted number of resources that can be created.

§

ThrottlingException(ThrottlingException)

Indicates that the principal has crossed the throttling limits of the API operations.

§

ValidationException(ValidationException)

The request failed because it contains a syntax error.

§

Unhandled(Unhandled)

An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<AttachCustomerManagedPolicyReferenceToPermissionSetError> for Error

source§

fn from(err: AttachCustomerManagedPolicyReferenceToPermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<AttachManagedPolicyToPermissionSetError> for Error

source§

fn from(err: AttachManagedPolicyToPermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<BuildError> for Error

source§

fn from(value: BuildError) -> Self

Converts to this type from the input type.
source§

impl From<CreateAccountAssignmentError> for Error

source§

fn from(err: CreateAccountAssignmentError) -> Self

Converts to this type from the input type.
source§

impl From<CreateInstanceAccessControlAttributeConfigurationError> for Error

source§

fn from(err: CreateInstanceAccessControlAttributeConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<CreatePermissionSetError> for Error

source§

fn from(err: CreatePermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteAccountAssignmentError> for Error

source§

fn from(err: DeleteAccountAssignmentError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteInlinePolicyFromPermissionSetError> for Error

source§

fn from(err: DeleteInlinePolicyFromPermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteInstanceAccessControlAttributeConfigurationError> for Error

source§

fn from(err: DeleteInstanceAccessControlAttributeConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<DeletePermissionSetError> for Error

source§

fn from(err: DeletePermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<DeletePermissionsBoundaryFromPermissionSetError> for Error

source§

fn from(err: DeletePermissionsBoundaryFromPermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeAccountAssignmentCreationStatusError> for Error

source§

fn from(err: DescribeAccountAssignmentCreationStatusError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeAccountAssignmentDeletionStatusError> for Error

source§

fn from(err: DescribeAccountAssignmentDeletionStatusError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeInstanceAccessControlAttributeConfigurationError> for Error

source§

fn from(err: DescribeInstanceAccessControlAttributeConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<DescribePermissionSetError> for Error

source§

fn from(err: DescribePermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<DescribePermissionSetProvisioningStatusError> for Error

source§

fn from(err: DescribePermissionSetProvisioningStatusError) -> Self

Converts to this type from the input type.
source§

impl From<DetachCustomerManagedPolicyReferenceFromPermissionSetError> for Error

source§

fn from(err: DetachCustomerManagedPolicyReferenceFromPermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<DetachManagedPolicyFromPermissionSetError> for Error

source§

fn from(err: DetachManagedPolicyFromPermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<GetInlinePolicyForPermissionSetError> for Error

source§

fn from(err: GetInlinePolicyForPermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<GetPermissionsBoundaryForPermissionSetError> for Error

source§

fn from(err: GetPermissionsBoundaryForPermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<ListAccountAssignmentCreationStatusError> for Error

source§

fn from(err: ListAccountAssignmentCreationStatusError) -> Self

Converts to this type from the input type.
source§

impl From<ListAccountAssignmentDeletionStatusError> for Error

source§

fn from(err: ListAccountAssignmentDeletionStatusError) -> Self

Converts to this type from the input type.
source§

impl From<ListAccountAssignmentsError> for Error

source§

fn from(err: ListAccountAssignmentsError) -> Self

Converts to this type from the input type.
source§

impl From<ListAccountsForProvisionedPermissionSetError> for Error

source§

fn from(err: ListAccountsForProvisionedPermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<ListCustomerManagedPolicyReferencesInPermissionSetError> for Error

source§

fn from(err: ListCustomerManagedPolicyReferencesInPermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<ListInstancesError> for Error

source§

fn from(err: ListInstancesError) -> Self

Converts to this type from the input type.
source§

impl From<ListManagedPoliciesInPermissionSetError> for Error

source§

fn from(err: ListManagedPoliciesInPermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<ListPermissionSetProvisioningStatusError> for Error

source§

fn from(err: ListPermissionSetProvisioningStatusError) -> Self

Converts to this type from the input type.
source§

impl From<ListPermissionSetsError> for Error

source§

fn from(err: ListPermissionSetsError) -> Self

Converts to this type from the input type.
source§

impl From<ListPermissionSetsProvisionedToAccountError> for Error

source§

fn from(err: ListPermissionSetsProvisionedToAccountError) -> Self

Converts to this type from the input type.
source§

impl From<ListTagsForResourceError> for Error

source§

fn from(err: ListTagsForResourceError) -> Self

Converts to this type from the input type.
source§

impl From<ProvisionPermissionSetError> for Error

source§

fn from(err: ProvisionPermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<PutInlinePolicyToPermissionSetError> for Error

source§

fn from(err: PutInlinePolicyToPermissionSetError) -> Self

Converts to this type from the input type.
source§

impl From<PutPermissionsBoundaryToPermissionSetError> for Error

source§

fn from(err: PutPermissionsBoundaryToPermissionSetError) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<AttachCustomerManagedPolicyReferenceToPermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from( err: SdkError<AttachCustomerManagedPolicyReferenceToPermissionSetError, R> ) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<AttachManagedPolicyToPermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<AttachManagedPolicyToPermissionSetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateAccountAssignmentError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateAccountAssignmentError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateInstanceAccessControlAttributeConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from( err: SdkError<CreateInstanceAccessControlAttributeConfigurationError, R> ) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreatePermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreatePermissionSetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteAccountAssignmentError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteAccountAssignmentError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteInlinePolicyFromPermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteInlinePolicyFromPermissionSetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteInstanceAccessControlAttributeConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from( err: SdkError<DeleteInstanceAccessControlAttributeConfigurationError, R> ) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeletePermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeletePermissionSetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeletePermissionsBoundaryFromPermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from( err: SdkError<DeletePermissionsBoundaryFromPermissionSetError, R> ) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeAccountAssignmentCreationStatusError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeAccountAssignmentCreationStatusError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeAccountAssignmentDeletionStatusError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeAccountAssignmentDeletionStatusError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeInstanceAccessControlAttributeConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from( err: SdkError<DescribeInstanceAccessControlAttributeConfigurationError, R> ) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribePermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribePermissionSetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribePermissionSetProvisioningStatusError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribePermissionSetProvisioningStatusError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DetachCustomerManagedPolicyReferenceFromPermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from( err: SdkError<DetachCustomerManagedPolicyReferenceFromPermissionSetError, R> ) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DetachManagedPolicyFromPermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DetachManagedPolicyFromPermissionSetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetInlinePolicyForPermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetInlinePolicyForPermissionSetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetPermissionsBoundaryForPermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetPermissionsBoundaryForPermissionSetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListAccountAssignmentCreationStatusError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListAccountAssignmentCreationStatusError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListAccountAssignmentDeletionStatusError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListAccountAssignmentDeletionStatusError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListAccountAssignmentsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListAccountAssignmentsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListAccountsForProvisionedPermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListAccountsForProvisionedPermissionSetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListCustomerManagedPolicyReferencesInPermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from( err: SdkError<ListCustomerManagedPolicyReferencesInPermissionSetError, R> ) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListInstancesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListInstancesError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListManagedPoliciesInPermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListManagedPoliciesInPermissionSetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListPermissionSetProvisioningStatusError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListPermissionSetProvisioningStatusError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListPermissionSetsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListPermissionSetsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListPermissionSetsProvisionedToAccountError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListPermissionSetsProvisionedToAccountError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListTagsForResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListTagsForResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ProvisionPermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ProvisionPermissionSetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<PutInlinePolicyToPermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<PutInlinePolicyToPermissionSetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<PutPermissionsBoundaryToPermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<PutPermissionsBoundaryToPermissionSetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<TagResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<TagResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UntagResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UntagResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateInstanceAccessControlAttributeConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from( err: SdkError<UpdateInstanceAccessControlAttributeConfigurationError, R> ) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdatePermissionSetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdatePermissionSetError, R>) -> Self

Converts to this type from the input type.
source§

impl From<TagResourceError> for Error

source§

fn from(err: TagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UntagResourceError> for Error

source§

fn from(err: UntagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateInstanceAccessControlAttributeConfigurationError> for Error

source§

fn from(err: UpdateInstanceAccessControlAttributeConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<UpdatePermissionSetError> for Error

source§

fn from(err: UpdatePermissionSetError) -> Self

Converts to this type from the input type.
source§

impl RequestId for Error

source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unsharedwhere Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more