#[non_exhaustive]pub enum DescribeHandshakeError {
AccessDeniedException(AccessDeniedException),
ConcurrentModificationException(ConcurrentModificationException),
HandshakeNotFoundException(HandshakeNotFoundException),
InvalidInputException(InvalidInputException),
ServiceException(ServiceException),
TooManyRequestsException(TooManyRequestsException),
Unhandled(Unhandled),
}
Expand description
Error type for the DescribeHandshakeError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.
ConcurrentModificationException(ConcurrentModificationException)
The target of the operation is currently being modified by a different request. Try again later.
HandshakeNotFoundException(HandshakeNotFoundException)
We can't find a handshake with the HandshakeId
that you specified.
InvalidInputException(InvalidInputException)
The requested operation failed because you provided invalid values for one or more of the request parameters. This exception includes a reason that contains additional information about the violated limit:
Some of the reasons in the following list might not be applicable to this specific API or operation.
-
DUPLICATE_TAG_KEY: Tag keys must be unique among the tags attached to the same entity.
-
IMMUTABLE_POLICY: You specified a policy that is managed by Amazon Web Services and can't be modified.
-
INPUT_REQUIRED: You must include a value for all required parameters.
-
INVALID_EMAIL_ADDRESS_TARGET: You specified an invalid email address for the invited account owner.
-
INVALID_ENUM: You specified an invalid value.
-
INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type string.
-
INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid characters.
-
INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least one invalid value.
-
INVALID_PAGINATION_TOKEN: Get the value for the
NextToken
parameter from the response to a previous call of the operation. -
INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account, organization, or email) as a party.
-
INVALID_PATTERN: You provided a value that doesn't match the required pattern.
-
INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match the required pattern.
-
INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name can't begin with the reserved prefix
AWSServiceRoleFor
. -
INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource Name (ARN) for the organization.
-
INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID.
-
INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system tag. You can’t add, edit, or delete system tag keys because they're reserved for Amazon Web Services use. System tags don’t count against your tags per resource limit.
-
MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the operation.
-
MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than allowed.
-
MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value than allowed.
-
MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than allowed.
-
MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value than allowed.
-
MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between entities in the same root.
-
TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target entity.
-
UNRECOGNIZED_SERVICE_PRINCIPAL: You specified a service principal that isn't recognized.
ServiceException(ServiceException)
Organizations can't complete your request because of an internal service error. Try again later.
TooManyRequestsException(TooManyRequestsException)
You have sent too many requests in too short a period of time. The quota helps protect against denial-of-service attacks. Try again later.
For information about quotas that affect Organizations, see Quotas for Organizations in the Organizations User Guide.
Unhandled(Unhandled)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl DescribeHandshakeError
impl DescribeHandshakeError
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 DescribeHandshakeError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the DescribeHandshakeError::Unhandled
variant from an 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_access_denied_exception(&self) -> bool
pub fn is_access_denied_exception(&self) -> bool
Returns true
if the error kind is DescribeHandshakeError::AccessDeniedException
.
sourcepub fn is_concurrent_modification_exception(&self) -> bool
pub fn is_concurrent_modification_exception(&self) -> bool
Returns true
if the error kind is DescribeHandshakeError::ConcurrentModificationException
.
sourcepub fn is_handshake_not_found_exception(&self) -> bool
pub fn is_handshake_not_found_exception(&self) -> bool
Returns true
if the error kind is DescribeHandshakeError::HandshakeNotFoundException
.
sourcepub fn is_invalid_input_exception(&self) -> bool
pub fn is_invalid_input_exception(&self) -> bool
Returns true
if the error kind is DescribeHandshakeError::InvalidInputException
.
sourcepub fn is_service_exception(&self) -> bool
pub fn is_service_exception(&self) -> bool
Returns true
if the error kind is DescribeHandshakeError::ServiceException
.
sourcepub fn is_too_many_requests_exception(&self) -> bool
pub fn is_too_many_requests_exception(&self) -> bool
Returns true
if the error kind is DescribeHandshakeError::TooManyRequestsException
.
Trait Implementations§
source§impl CreateUnhandledError for DescribeHandshakeError
impl CreateUnhandledError for DescribeHandshakeError
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 DescribeHandshakeError
impl Debug for DescribeHandshakeError
source§impl Display for DescribeHandshakeError
impl Display for DescribeHandshakeError
source§impl Error for DescribeHandshakeError
impl Error for DescribeHandshakeError
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<DescribeHandshakeError> for Error
impl From<DescribeHandshakeError> for Error
source§fn from(err: DescribeHandshakeError) -> Self
fn from(err: DescribeHandshakeError) -> Self
source§impl ProvideErrorMetadata for DescribeHandshakeError
impl ProvideErrorMetadata for DescribeHandshakeError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for DescribeHandshakeError
impl RequestId for DescribeHandshakeError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.Auto Trait Implementations§
impl Freeze for DescribeHandshakeError
impl !RefUnwindSafe for DescribeHandshakeError
impl Send for DescribeHandshakeError
impl Sync for DescribeHandshakeError
impl Unpin for DescribeHandshakeError
impl !UnwindSafe for DescribeHandshakeError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more