Inspector / Client / exceptions / AssessmentRunInProgressException

AssessmentRunInProgressException#

class Inspector.Client.exceptions.AssessmentRunInProgressException#

You cannot perform a specified action if an assessment run is currently in progress.

Example

try:
  ...
except client.exceptions.AssessmentRunInProgressException 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',
    'assessmentRunArns': [
        'string',
    ],
    'assessmentRunArnsTruncated': True|False,
    'canRetry': True|False,
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    You cannot perform a specified action if an assessment run is currently in progress.

    • message (string) –

      Details of the exception error.

    • assessmentRunArns (list) –

      The ARNs of the assessment runs that are currently in progress.

      • (string) –

    • assessmentRunArnsTruncated (boolean) –

      Boolean value that indicates whether the ARN list of the assessment runs is truncated.

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