update_cis_scan_configuration
async
¶
update_cis_scan_configuration(
scan_configuration_arn: CisScanConfigurationArn,
*,
config_overrides: Optional[AsyncInspector2ClientConfig] = 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
>>> await 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/async_inspector2.py
5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 | |