update_scheduled_audit
async
¶
update_scheduled_audit(
scheduled_audit_name: ScheduledAuditName,
*,
config_overrides: Optional[AsyncIoTClientConfig] = 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/async_io_t.py
18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 | |