create_scheduled_audit
async
¶
create_scheduled_audit(
frequency: AuditFrequency,
target_check_names: TargetAuditCheckNames,
scheduled_audit_name: ScheduledAuditName,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
day_of_month: Optional[DayOfMonth] = None,
day_of_week: Optional[DayOfWeek] = None,
tags: Optional[TagList] = None,
) -> CreateScheduledAuditResponse
Creates a scheduled audit that is run at a specified time interval.
Requires permission to access the CreateScheduledAudit action.
Parameters:
-
frequency(AuditFrequency) –How often the scheduled audit takes place, either
DAILY,WEEKLY,BIWEEKLYorMONTHLY. 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 "1" through "31" or "LAST". This field is required if the "frequency" parameter is set to
MONTHLY. If days 29 to 31 are specified, and the month doesn't have that many days, the audit takes place on theLASTday of the month. -
day_of_week(Optional[DayOfWeek], default:None) –The day of the week on which the scheduled audit takes place, either
SUN,MON,TUE,WED,THU,FRI, orSAT. This field is required if thefrequencyparameter is set toWEEKLYorBIWEEKLY. -
target_check_names(TargetAuditCheckNames) –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 you want to give to the scheduled audit. (Max. 128 chars)
-
tags(Optional[TagList], default:None) –Metadata that can be used to manage the scheduled audit.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–A limit has been exceeded.
-
ResourceAlreadyExistsException–The resource already exists.
-
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
3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 | |