Detective / Client / exceptions / AccessDeniedException

AccessDeniedException#

class Detective.Client.exceptions.AccessDeniedException#

The request issuer does not have permission to access this resource or perform this operation.

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': 'INVALID_GRAPH_ARN'|'INVALID_REQUEST_BODY'|'INTERNAL_ERROR',
    'ErrorCodeReason': 'string',
    'SubErrorCode': 'INVALID_GRAPH_ARN'|'INVALID_REQUEST_BODY'|'INTERNAL_ERROR',
    'SubErrorCodeReason': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The request issuer does not have permission to access this resource or perform this operation.

    • Message (string) –

    • ErrorCode (string) –

      The SDK default error code associated with the access denied exception.

    • ErrorCodeReason (string) –

      The SDK default explanation of why access was denied.

    • SubErrorCode (string) –

      The error code associated with the access denied exception.

    • SubErrorCodeReason (string) –

      An explanation of why access was denied.

    • 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.