Inspector / Client / exceptions / InvalidCrossAccountRoleException
InvalidCrossAccountRoleException#
- class Inspector.Client.exceptions.InvalidCrossAccountRoleException#
Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
Example
try: ... except client.exceptions.InvalidCrossAccountRoleException as e: print(e.response)
- response#
The parsed error response. All exceptions have a top level
Error
key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'message': 'string', 'errorCode': 'ROLE_DOES_NOT_EXIST_OR_INVALID_TRUST_RELATIONSHIP'|'ROLE_DOES_NOT_HAVE_CORRECT_POLICY', 'canRetry': True|False, 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
message (string) –
Details of the exception error.
errorCode (string) –
Code that indicates the type of error that is generated.
canRetry (boolean) –
You can immediately retry your request.
Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.