Inspector / Client / exceptions / AccessDeniedException
AccessDeniedException#
- class Inspector.Client.exceptions.AccessDeniedException#
You do not have required permissions to access the requested resource.
Example
try: ... except client.exceptions.AccessDeniedException 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': 'ACCESS_DENIED_TO_ASSESSMENT_TARGET'|'ACCESS_DENIED_TO_ASSESSMENT_TEMPLATE'|'ACCESS_DENIED_TO_ASSESSMENT_RUN'|'ACCESS_DENIED_TO_FINDING'|'ACCESS_DENIED_TO_RESOURCE_GROUP'|'ACCESS_DENIED_TO_RULES_PACKAGE'|'ACCESS_DENIED_TO_SNS_TOPIC'|'ACCESS_DENIED_TO_IAM_ROLE', 'canRetry': True|False, 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
You do not have required permissions to access the requested resource.
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.