Enum aws_sdk_ram::Error

source ·
#[non_exhaustive]
pub enum Error {
Show 29 variants IdempotentParameterMismatchException(IdempotentParameterMismatchException), InvalidClientTokenException(InvalidClientTokenException), InvalidMaxResultsException(InvalidMaxResultsException), InvalidNextTokenException(InvalidNextTokenException), InvalidParameterException(InvalidParameterException), InvalidPolicyException(InvalidPolicyException), InvalidResourceTypeException(InvalidResourceTypeException), InvalidStateTransitionException(InvalidStateTransitionException), MalformedArnException(MalformedArnException), MalformedPolicyTemplateException(MalformedPolicyTemplateException), MissingRequiredParameterException(MissingRequiredParameterException), OperationNotPermittedException(OperationNotPermittedException), PermissionAlreadyExistsException(PermissionAlreadyExistsException), PermissionLimitExceededException(PermissionLimitExceededException), PermissionVersionsLimitExceededException(PermissionVersionsLimitExceededException), ResourceArnNotFoundException(ResourceArnNotFoundException), ResourceShareInvitationAlreadyAcceptedException(ResourceShareInvitationAlreadyAcceptedException), ResourceShareInvitationAlreadyRejectedException(ResourceShareInvitationAlreadyRejectedException), ResourceShareInvitationArnNotFoundException(ResourceShareInvitationArnNotFoundException), ResourceShareInvitationExpiredException(ResourceShareInvitationExpiredException), ResourceShareLimitExceededException(ResourceShareLimitExceededException), ServerInternalException(ServerInternalException), ServiceUnavailableException(ServiceUnavailableException), TagLimitExceededException(TagLimitExceededException), TagPolicyViolationException(TagPolicyViolationException), ThrottlingException(ThrottlingException), UnknownResourceException(UnknownResourceException), UnmatchedPolicyPermissionException(UnmatchedPolicyPermissionException), 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.
§

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.

§

InvalidMaxResultsException(InvalidMaxResultsException)

The operation failed because the specified value for MaxResults isn't valid.

§

InvalidNextTokenException(InvalidNextTokenException)

The operation failed because the specified value for NextToken isn't valid. You must specify a value you received in the NextToken response of a previous call to this operation.

§

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.

§

InvalidResourceTypeException(InvalidResourceTypeException)

The operation failed because the specified resource type isn't valid.

§

InvalidStateTransitionException(InvalidStateTransitionException)

The operation failed because the requested operation isn't valid for the resource share in its current state.

§

MalformedArnException(MalformedArnException)

The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.

§

MalformedPolicyTemplateException(MalformedPolicyTemplateException)

The operation failed because the policy template that you provided isn't valid.

§

MissingRequiredParameterException(MissingRequiredParameterException)

The operation failed because a required input parameter is missing.

§

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.

§

PermissionVersionsLimitExceededException(PermissionVersionsLimitExceededException)

The operation failed because it would exceed the limit for the number of versions you can have for a permission. To view the limits for your Amazon Web Services account, see the RAM page in the Service Quotas console.

§

ResourceArnNotFoundException(ResourceArnNotFoundException)

The operation failed because the specified Amazon Resource Name (ARN) was not found.

§

ResourceShareInvitationAlreadyAcceptedException(ResourceShareInvitationAlreadyAcceptedException)

The operation failed because the specified invitation was already accepted.

§

ResourceShareInvitationAlreadyRejectedException(ResourceShareInvitationAlreadyRejectedException)

The operation failed because the specified invitation was already rejected.

§

ResourceShareInvitationArnNotFoundException(ResourceShareInvitationArnNotFoundException)

The operation failed because the specified Amazon Resource Name (ARN) for an invitation was not found.

§

ResourceShareInvitationExpiredException(ResourceShareInvitationExpiredException)

The operation failed because the specified invitation is past its expiration date and time.

§

ResourceShareLimitExceededException(ResourceShareLimitExceededException)

The operation failed because it would exceed the limit for resource shares for your account. 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.

§

ServiceUnavailableException(ServiceUnavailableException)

The operation failed because the service isn't available. Try again later.

§

TagLimitExceededException(TagLimitExceededException)

The operation failed because it would exceed the limit for tags for your Amazon Web Services account.

§

TagPolicyViolationException(TagPolicyViolationException)

The operation failed because the specified tag key is a reserved word and can't be used.

§

ThrottlingException(ThrottlingException)

The operation failed because it exceeded the rate at which you are allowed to perform this operation. Please try again later.

§

UnknownResourceException(UnknownResourceException)

The operation failed because a specified resource couldn't be found.

§

UnmatchedPolicyPermissionException(UnmatchedPolicyPermissionException)

There isn't an existing managed permission defined in RAM that has the same IAM permissions as the resource-based policy attached to the resource. You should first run PromotePermissionCreatedFromPolicy to create that managed permission.

§

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<AcceptResourceShareInvitationError> for Error

source§

fn from(err: AcceptResourceShareInvitationError) -> Self

Converts to this type from the input type.
source§

impl From<AssociateResourceShareError> for Error

source§

fn from(err: AssociateResourceShareError) -> Self

Converts to this type from the input type.
source§

impl From<AssociateResourceSharePermissionError> for Error

source§

fn from(err: AssociateResourceSharePermissionError) -> Self

Converts to this type from the input type.
source§

impl From<CreatePermissionError> for Error

source§

fn from(err: CreatePermissionError) -> Self

Converts to this type from the input type.
source§

impl From<CreatePermissionVersionError> for Error

source§

fn from(err: CreatePermissionVersionError) -> Self

Converts to this type from the input type.
source§

impl From<CreateResourceShareError> for Error

source§

fn from(err: CreateResourceShareError) -> Self

Converts to this type from the input type.
source§

impl From<DeletePermissionError> for Error

source§

fn from(err: DeletePermissionError) -> Self

Converts to this type from the input type.
source§

impl From<DeletePermissionVersionError> for Error

source§

fn from(err: DeletePermissionVersionError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteResourceShareError> for Error

source§

fn from(err: DeleteResourceShareError) -> Self

Converts to this type from the input type.
source§

impl From<DisassociateResourceShareError> for Error

source§

fn from(err: DisassociateResourceShareError) -> Self

Converts to this type from the input type.
source§

impl From<DisassociateResourceSharePermissionError> for Error

source§

fn from(err: DisassociateResourceSharePermissionError) -> Self

Converts to this type from the input type.
source§

impl From<EnableSharingWithAwsOrganizationError> for Error

source§

fn from(err: EnableSharingWithAwsOrganizationError) -> Self

Converts to this type from the input type.
source§

impl From<GetPermissionError> for Error

source§

fn from(err: GetPermissionError) -> Self

Converts to this type from the input type.
source§

impl From<GetResourcePoliciesError> for Error

source§

fn from(err: GetResourcePoliciesError) -> Self

Converts to this type from the input type.
source§

impl From<GetResourceShareAssociationsError> for Error

source§

fn from(err: GetResourceShareAssociationsError) -> Self

Converts to this type from the input type.
source§

impl From<GetResourceShareInvitationsError> for Error

source§

fn from(err: GetResourceShareInvitationsError) -> Self

Converts to this type from the input type.
source§

impl From<GetResourceSharesError> for Error

source§

fn from(err: GetResourceSharesError) -> Self

Converts to this type from the input type.
source§

impl From<ListPendingInvitationResourcesError> for Error

source§

fn from(err: ListPendingInvitationResourcesError) -> Self

Converts to this type from the input type.
source§

impl From<ListPermissionAssociationsError> for Error

source§

fn from(err: ListPermissionAssociationsError) -> Self

Converts to this type from the input type.
source§

impl From<ListPermissionVersionsError> for Error

source§

fn from(err: ListPermissionVersionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListPermissionsError> for Error

source§

fn from(err: ListPermissionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListPrincipalsError> for Error

source§

fn from(err: ListPrincipalsError) -> Self

Converts to this type from the input type.
source§

impl From<ListReplacePermissionAssociationsWorkError> for Error

source§

fn from(err: ListReplacePermissionAssociationsWorkError) -> Self

Converts to this type from the input type.
source§

impl From<ListResourceSharePermissionsError> for Error

source§

fn from(err: ListResourceSharePermissionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListResourceTypesError> for Error

source§

fn from(err: ListResourceTypesError) -> Self

Converts to this type from the input type.
source§

impl From<ListResourcesError> for Error

source§

fn from(err: ListResourcesError) -> Self

Converts to this type from the input type.
source§

impl From<PromotePermissionCreatedFromPolicyError> for Error

source§

fn from(err: PromotePermissionCreatedFromPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<PromoteResourceShareCreatedFromPolicyError> for Error

source§

fn from(err: PromoteResourceShareCreatedFromPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<RejectResourceShareInvitationError> for Error

source§

fn from(err: RejectResourceShareInvitationError) -> Self

Converts to this type from the input type.
source§

impl From<ReplacePermissionAssociationsError> for Error

source§

fn from(err: ReplacePermissionAssociationsError) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<AcceptResourceShareInvitationError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<AssociateResourceShareError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<AssociateResourceSharePermissionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreatePermissionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreatePermissionVersionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateResourceShareError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeletePermissionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeletePermissionVersionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteResourceShareError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DisassociateResourceShareError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DisassociateResourceSharePermissionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<EnableSharingWithAwsOrganizationError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetPermissionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetResourcePoliciesError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetResourceShareAssociationsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetResourceShareInvitationsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetResourceSharesError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListPendingInvitationResourcesError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListPermissionAssociationsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListPermissionVersionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListPermissionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListPrincipalsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListReplacePermissionAssociationsWorkError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListResourceSharePermissionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListResourceTypesError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListResourcesError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<PromotePermissionCreatedFromPolicyError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<PromoteResourceShareCreatedFromPolicyError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<RejectResourceShareInvitationError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ReplacePermissionAssociationsError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<SetDefaultPermissionVersionError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<TagResourceError, R>> for Error
where 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 Error
where 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<UpdateResourceShareError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl From<SetDefaultPermissionVersionError> for Error

source§

fn from(err: SetDefaultPermissionVersionError) -> 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<UpdateResourceShareError> for Error

source§

fn from(err: UpdateResourceShareError) -> 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 T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 Unshared
where 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 T
where 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 T
where 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 T
where 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