Inspector2.Client.
get_configuration
()¶Retrieves setting configurations for Inspector scans.
See also: AWS API Documentation
Request Syntax
response = client.get_configuration()
{
'ecrConfiguration': {
'rescanDurationState': {
'rescanDuration': 'LIFETIME'|'DAYS_30'|'DAYS_180',
'status': 'SUCCESS'|'PENDING'|'FAILED',
'updatedAt': datetime(2015, 1, 1)
}
}
}
Response Structure
Specifies how the ECR automated re-scan duration is currently configured for your environment.
An object that contains details about the state of the ECR automated re-scan setting.
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.
The status of changes to the ECR automated re-scan duration.
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