Inspector2 / Client / get_configuration

get_configuration#

Inspector2.Client.get_configuration()#

Retrieves setting configurations for Inspector scans.

See also: AWS API Documentation

Request Syntax

response = client.get_configuration()
Return type:

dict

Returns:

Response Syntax

{
    'ec2Configuration': {
        'scanModeState': {
            'scanMode': 'EC2_SSM_AGENT_BASED'|'EC2_HYBRID',
            'scanModeStatus': 'SUCCESS'|'PENDING'
        }
    },
    'ecrConfiguration': {
        'rescanDurationState': {
            'pullDateRescanDuration': 'DAYS_14'|'DAYS_30'|'DAYS_60'|'DAYS_90'|'DAYS_180',
            'rescanDuration': 'LIFETIME'|'DAYS_30'|'DAYS_180'|'DAYS_14'|'DAYS_60'|'DAYS_90',
            'status': 'SUCCESS'|'PENDING'|'FAILED',
            'updatedAt': datetime(2015, 1, 1)
        }
    }
}

Response Structure

  • (dict) –

    • ec2Configuration (dict) –

      Specifies how the Amazon EC2 automated scan mode is currently configured for your environment.

      • scanModeState (dict) –

        An object that contains details about the state of the Amazon EC2 scan mode.

        • scanMode (string) –

          The scan method that is applied to the instance.

        • scanModeStatus (string) –

          The status of the Amazon EC2 scan mode setting.

    • ecrConfiguration (dict) –

      Specifies how the ECR automated re-scan duration is currently configured for your environment.

      • rescanDurationState (dict) –

        An object that contains details about the state of the ECR re-scan settings.

        • pullDateRescanDuration (string) –

          The rescan duration configured for image pull date.

        • rescanDuration (string) –

          The rescan duration configured for image push date. </p>

        • status (string) –

          The status of changes to the ECR automated re-scan duration.

        • updatedAt (datetime) –

          A timestamp representing when the last time the ECR scan duration setting was changed.

Exceptions