update_cis_scan_configuration
¶
update_cis_scan_configuration(
scan_configuration_arn: CisScanConfigurationArn,
*,
config_overrides: Optional[Inspector2ClientConfig] = None,
scan_name: Optional[CisScanName] = None,
security_level: Optional[CisSecurityLevel] = None,
schedule: Optional[Schedule] = None,
targets: Optional[UpdateCisTargets] = None,
) -> UpdateCisScanConfigurationResponse
Updates a CIS scan configuration.
Parameters:
-
scan_configuration_arn(CisScanConfigurationArn) –The CIS scan configuration ARN.
-
scan_name(Optional[CisScanName], default:None) –The scan name for the CIS scan configuration.
-
security_level(Optional[CisSecurityLevel], default:None) –The security level for the CIS scan configuration. Security level refers to the Benchmark levels that CIS assigns to a profile.
-
schedule(Optional[Schedule], default:None) –The schedule for the CIS scan configuration.
-
targets(Optional[UpdateCisTargets], default:None) –The targets for the CIS scan configuration.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
For
Enable, you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region. -
InternalServerException–The request has failed due to an internal failure of the Amazon Inspector service.
-
ResourceNotFoundException–The operation tried to access an invalid resource. Make sure the resource is specified correctly.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation due to missing required fields or having invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Sample UpdateCisScanConfiguration Call
>>> client.update_cis_scan_configuration(scan_configuration_arn='arn:aws:inspector2:us-east-1:123412341234:owner/123412341234/cis-configuration/624b746d-e080-44ae-8c1d-48e653365a38', scan_name='sample_new', security_level='LEVEL_2', schedule={'daily': {'startTime': {'timeOfDay': '12:56', 'timezone': 'UTC'}}}, targets={'accountIds': ['SELF'], 'targetResourceTags': {'key2': ['value2']}})
Source code in docs_src/capo_inspector2/_services/inspector2.py
5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 | |