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={
        'pullDateRescanDuration': 'DAYS_14'|'DAYS_30'|'DAYS_60'|'DAYS_90'|'DAYS_180',
        'rescanDuration': 'LIFETIME'|'DAYS_30'|'DAYS_180'|'DAYS_14'|'DAYS_60'|'DAYS_90'
    }
)
Parameters:

ecrConfiguration (dict) –

[REQUIRED]

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

  • pullDateRescanDuration (string) –

    The rescan duration configured for image pull date.

  • rescanDuration (string) – [REQUIRED]

    The rescan duration configured for image push date.

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