@Generated(value="software.amazon.awssdk:codegen") public final class InvalidCrossAccountRoleException extends InspectorException implements ToCopyableBuilder<InvalidCrossAccountRoleException.Builder,InvalidCrossAccountRoleException>
Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
Modifier and Type | Class and Description |
---|---|
static interface |
InvalidCrossAccountRoleException.Builder |
Modifier and Type | Method and Description |
---|---|
static InvalidCrossAccountRoleException.Builder |
builder() |
Boolean |
canRetry()
You can immediately retry your request.
|
InvalidCrossAccountRoleErrorCode |
inspectorErrorCode()
Code that indicates the type of error that is generated.
|
String |
inspectorErrorCodeAsString()
Code that indicates the type of error that is generated.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InvalidCrossAccountRoleException.Builder> |
serializableBuilderClass() |
InvalidCrossAccountRoleException.Builder |
toBuilder()
Create a
AwsServiceException.Builder initialized with the properties of this AwsServiceException . |
awsErrorDetails, getMessage, isClockSkewException, isThrottlingException
requestId, statusCode
retryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy
public InvalidCrossAccountRoleException.Builder toBuilder()
AwsServiceException
AwsServiceException.Builder
initialized with the properties of this AwsServiceException
.toBuilder
in interface ToCopyableBuilder<InvalidCrossAccountRoleException.Builder,InvalidCrossAccountRoleException>
toBuilder
in class InspectorException
public static InvalidCrossAccountRoleException.Builder builder()
public static Class<? extends InvalidCrossAccountRoleException.Builder> serializableBuilderClass()
public Boolean canRetry()
You can immediately retry your request.
public InvalidCrossAccountRoleErrorCode inspectorErrorCode()
Code that indicates the type of error that is generated.
If the service returns an enum value that is not available in the current SDK version,
inspectorErrorCode
will return InvalidCrossAccountRoleErrorCode.UNKNOWN_TO_SDK_VERSION
. The raw
value returned by the service is available from inspectorErrorCodeAsString()
.
InvalidCrossAccountRoleErrorCode
public String inspectorErrorCodeAsString()
Code that indicates the type of error that is generated.
If the service returns an enum value that is not available in the current SDK version,
inspectorErrorCode
will return InvalidCrossAccountRoleErrorCode.UNKNOWN_TO_SDK_VERSION
. The raw
value returned by the service is available from inspectorErrorCodeAsString()
.
InvalidCrossAccountRoleErrorCode
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.