Class InvalidCrossAccountRoleException

  • All Implemented Interfaces:
    Serializable

    public class InvalidCrossAccountRoleException
    extends AmazonServiceException

    Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.

    See Also:
    Serialized Form
    • Constructor Detail

      • InvalidCrossAccountRoleException

        public InvalidCrossAccountRoleException​(String message)
        Constructs a new InvalidCrossAccountRoleException with the specified error message.
        Parameters:
        message - Describes the error encountered.
    • Method Detail

      • withErrorCode

        public InvalidCrossAccountRoleException withErrorCode​(String errorCode)

        Code that indicates the type of error that is generated.

        Parameters:
        errorCode - Code that indicates the type of error that is generated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InvalidCrossAccountRoleErrorCode
      • setCanRetry

        public void setCanRetry​(Boolean canRetry)

        You can immediately retry your request.

        Parameters:
        canRetry - You can immediately retry your request.
      • getCanRetry

        public Boolean getCanRetry()

        You can immediately retry your request.

        Returns:
        You can immediately retry your request.
      • withCanRetry

        public InvalidCrossAccountRoleException withCanRetry​(Boolean canRetry)

        You can immediately retry your request.

        Parameters:
        canRetry - You can immediately retry your request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isCanRetry

        public Boolean isCanRetry()

        You can immediately retry your request.

        Returns:
        You can immediately retry your request.