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

{
    '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) –

    • 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

  • Inspector2.Client.exceptions.ResourceNotFoundException

  • Inspector2.Client.exceptions.ThrottlingException

  • Inspector2.Client.exceptions.InternalServerException