Inspector2 / Client / update_organization_configuration

update_organization_configuration#

Inspector2.Client.update_organization_configuration(**kwargs)#

Updates the configurations for your Amazon Inspector organization.

See also: AWS API Documentation

Request Syntax

response = client.update_organization_configuration(
    autoEnable={
        'ec2': True|False,
        'ecr': True|False,
        'lambda': True|False,
        'lambdaCode': True|False
    }
)
Parameters:

autoEnable (dict) –

[REQUIRED]

Defines which scan types are enabled automatically for new members of your Amazon Inspector organization.

  • ec2 (boolean) – [REQUIRED]

    Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector organization.

  • ecr (boolean) – [REQUIRED]

    Represents whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector organization.

  • lambda (boolean) –

    Represents whether AWS Lambda standard scans are automatically enabled for new members of your Amazon Inspector organization.

  • lambdaCode (boolean) –

    Represents whether AWS Lambda code scans are automatically enabled for new members of your Amazon Inspector organization. </p>

Return type:

dict

Returns:

Response Syntax

{
    'autoEnable': {
        'ec2': True|False,
        'ecr': True|False,
        'lambda': True|False,
        'lambdaCode': True|False
    }
}

Response Structure

  • (dict) –

    • autoEnable (dict) –

      The updated status of scan types automatically enabled for new members of your Amazon Inspector organization.

      • ec2 (boolean) –

        Represents whether Amazon EC2 scans are automatically enabled for new members of your Amazon Inspector organization.

      • ecr (boolean) –

        Represents whether Amazon ECR scans are automatically enabled for new members of your Amazon Inspector organization.

      • lambda (boolean) –

        Represents whether AWS Lambda standard scans are automatically enabled for new members of your Amazon Inspector organization.

      • lambdaCode (boolean) –

        Represents whether AWS Lambda code scans are automatically enabled for new members of your Amazon Inspector organization. </p>

Exceptions

  • Inspector2.Client.exceptions.AccessDeniedException

  • Inspector2.Client.exceptions.ValidationException

  • Inspector2.Client.exceptions.ThrottlingException

  • Inspector2.Client.exceptions.InternalServerException