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(
    ec2Configuration={
        'scanMode': 'EC2_SSM_AGENT_BASED'|'EC2_HYBRID'
    },
    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:
  • ec2Configuration (dict) –

    Specifies how the Amazon EC2 automated scan will be updated for your environment.

    • scanMode (string) – [REQUIRED]

      The scan method that is applied to the instance.

  • ecrConfiguration (dict) –

    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