Inspector2 / Client / update_configuration

update_configuration#

Inspector2.Client.update_configuration(**kwargs)#

Updates setting configurations for your Amazon Inspector account. When you use this API as an Amazon Inspector delegated administrator this updates the setting for all accounts you manage. Member accounts in an organization cannot update this setting.

See also: AWS API Documentation

Request Syntax

response = client.update_configuration(
    ecrConfiguration={
        'rescanDuration': 'LIFETIME'|'DAYS_30'|'DAYS_180'
    }
)
Parameters:

ecrConfiguration (dict) –

[REQUIRED]

Specifies how the ECR automated re-scan will be updated for your environment.

  • rescanDuration (string) – [REQUIRED]

    The ECR automated re-scan duration defines how long an ECR image will be actively scanned by Amazon Inspector. When the number of days since an image was last pushed exceeds the automated re-scan duration the monitoring state of that image becomes inactive and all associated findings are scheduled for closure.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • Inspector2.Client.exceptions.ValidationException

  • Inspector2.Client.exceptions.AccessDeniedException

  • Inspector2.Client.exceptions.ThrottlingException

  • Inspector2.Client.exceptions.InternalServerException