Inspector2 / Client / update_configuration
update_configuration¶
- Inspector2.Client.update_configuration(**kwargs)¶
Updates the scan configuration for your Amazon Inspector account. If you don’t specify an
accountId, this operation updates the delegated administrator’s configuration and propagates it to member accounts that have not been individually configured. If you specify anaccountId, this operation updates that member account’s configuration. Only the delegated administrator can specify anaccountId; member accounts cannot call this operation.See also: AWS API Documentation
Request Syntax
response = client.update_configuration( accountId='string', ecrConfiguration={ 'rescanDuration': 'LIFETIME'|'DAYS_30'|'DAYS_180'|'DAYS_14'|'DAYS_60'|'DAYS_90', 'pullDateRescanDuration': 'DAYS_14'|'DAYS_30'|'DAYS_60'|'DAYS_90'|'DAYS_180', 'pullDateRescanMode': 'LAST_PULL_DATE'|'LAST_IN_USE_AT' }, ec2Configuration={ 'scanMode': 'EC2_SSM_AGENT_BASED'|'EC2_HYBRID', 'activateVMScanner': True|False }, updateConfigurationInheritance={ 'ec2Configuration': 'INHERIT_FROM_ADMIN', 'ecrConfiguration': 'INHERIT_FROM_ADMIN' } )
- Parameters:
accountId (string) – The 12-digit Amazon Web Services account ID of the member account whose scan configuration you want to update. When specified, you must be the delegated administrator for this member account. If not specified, the operation updates your own configuration and propagates changes to any member accounts that have not been individually configured.
ecrConfiguration (dict) –
Specifies how the ECR automated re-scan will be updated for your environment.
rescanDuration (string) – [REQUIRED]
The rescan duration configured for image push date.
pullDateRescanDuration (string) –
The rescan duration configured for image pull date.
pullDateRescanMode (string) –
The pull date for the re-scan mode.
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.
activateVMScanner (boolean) –
Whether to activate Amazon Inspector VM scanner for Amazon EC2 scanning.
updateConfigurationInheritance (dict) –
Specifies which scan-type configurations to reset to the delegated administrator’s inherited values for the targeted member account. Each member of this structure is independently optional. When specified,
ec2ConfigurationandecrConfigurationmust be absent, andaccountIdmust also be present. OnlyINHERIT_FROM_ADMINis valid for each member. If not specified, the operation uses theec2ConfigurationandecrConfigurationparameters instead.ec2Configuration (string) –
The inheritance mode for Amazon EC2 scan configuration. Set to
INHERIT_FROM_ADMINto reset the member account’s Amazon EC2 scan configuration to inherit from the delegated administrator. If omitted, the member account’s existing Amazon EC2 scan configuration is not changed.ecrConfiguration (string) –
The inheritance mode for Amazon ECR scan configuration. Set to
INHERIT_FROM_ADMINto reset the member account’s Amazon ECR scan configuration to inherit from the delegated administrator. If omitted, the member account’s existing Amazon ECR scan configuration is not changed.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions