create_scheduled_audit
¶
create_scheduled_audit(
frequency: AuditFrequency,
target_check_names: TargetAuditCheckNames,
scheduled_audit_name: ScheduledAuditName,
*,
config_overrides: Optional[IoTClientConfig] = 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/io_t.py
3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 | |