Inspector / Client / exceptions / AgentsAlreadyRunningAssessmentException

AgentsAlreadyRunningAssessmentException#

class Inspector.Client.exceptions.AgentsAlreadyRunningAssessmentException#

You started an assessment run, but one of the instances is already participating in another assessment run.

Example

try:
  ...
except client.exceptions.AgentsAlreadyRunningAssessmentException 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',
    'agents': [
        {
            'agentId': 'string',
            'assessmentRunArn': 'string'
        },
    ],
    'agentsTruncated': True|False,
    'canRetry': True|False,
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    You started an assessment run, but one of the instances is already participating in another assessment run.

    • message (string) –

      Details of the exception error.

    • agents (list) –

      • (dict) –

        Used in the exception error that is thrown if you start an assessment run for an assessment target that includes an EC2 instance that is already participating in another started assessment run.

        • agentId (string) –

          ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.

        • assessmentRunArn (string) –

          The ARN of the assessment run that has already been started.

    • agentsTruncated (boolean) –

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