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': {
            'rescanDuration': 'LIFETIME'|'DAYS_30'|'DAYS_180',
            '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 automated re-scan setting.

        • rescanDuration (string) --

          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.

        • 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