update_scheduled_audit
¶
update_scheduled_audit(
scheduled_audit_name: ScheduledAuditName,
*,
config_overrides: Optional[IoTClientConfig] = None,
frequency: Optional[AuditFrequency] = None,
day_of_month: Optional[DayOfMonth] = None,
day_of_week: Optional[DayOfWeek] = None,
target_check_names: Optional[TargetAuditCheckNames] = None,
) -> UpdateScheduledAuditResponse
Updates a scheduled audit, including which checks are performed and how often the audit takes place.
Requires permission to access the UpdateScheduledAudit action.
Parameters:
-
frequency(Optional[AuditFrequency], default:None) –How often the scheduled audit takes place, either
DAILY,WEEKLY,BIWEEKLY, orMONTHLY. The start time of each audit is determined by the system. -
day_of_month(Optional[DayOfMonth], default:None) –The day of the month on which the scheduled audit takes place. This can be
1through31orLAST. This field is required if thefrequencyparameter is set toMONTHLY. If days 29-31 are specified, and the month does not have that many days, the audit takes place on the "LAST" day of the month. -
day_of_week(Optional[DayOfWeek], default:None) –The day of the week on which the scheduled audit takes place. This can be one of
SUN,MON,TUE,WED,THU,FRI, orSAT. This field is required if the "frequency" parameter is set toWEEKLYorBIWEEKLY. -
target_check_names(Optional[TargetAuditCheckNames], default:None) –Which checks are performed during the scheduled audit. Checks must be enabled for your account. (Use
DescribeAccountAuditConfigurationto see the list of all checks, including those that are enabled or useUpdateAccountAuditConfigurationto select which checks are enabled.) -
scheduled_audit_name(ScheduledAuditName) –The name of the scheduled audit. (Max. 128 chars)
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The rate exceeds the limit.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/io_t.py
18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 | |