Inspector2 / Client / update_ec2_deep_inspection_configuration

update_ec2_deep_inspection_configuration#

Inspector2.Client.update_ec2_deep_inspection_configuration(**kwargs)#

Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.

See also: AWS API Documentation

Request Syntax

response = client.update_ec2_deep_inspection_configuration(
    activateDeepInspection=True|False,
    packagePaths=[
        'string',
    ]
)
Parameters:
  • activateDeepInspection (boolean) – Specify TRUE to activate Amazon Inspector deep inspection in your account, or FALSE to deactivate. Member accounts in an organization cannot deactivate deep inspection, instead the delegated administrator for the organization can deactivate a member account using BatchUpdateMemberEc2DeepInspectionStatus.

  • packagePaths (list) –

    The Amazon Inspector deep inspection custom paths you are adding for your account.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'errorMessage': 'string',
    'orgPackagePaths': [
        'string',
    ],
    'packagePaths': [
        'string',
    ],
    'status': 'ACTIVATED'|'DEACTIVATED'|'PENDING'|'FAILED'
}

Response Structure

  • (dict) –

    • errorMessage (string) –

      An error message explaining why new Amazon Inspector deep inspection custom paths could not be added.

    • orgPackagePaths (list) –

      The current Amazon Inspector deep inspection custom paths for the organization.

      • (string) –

    • packagePaths (list) –

      The current Amazon Inspector deep inspection custom paths for your account.

      • (string) –

    • status (string) –

      The status of Amazon Inspector deep inspection in your account.

Exceptions

  • Inspector2.Client.exceptions.ValidationException

  • Inspector2.Client.exceptions.AccessDeniedException

  • Inspector2.Client.exceptions.ThrottlingException

  • Inspector2.Client.exceptions.InternalServerException