update_scheduled_audit
(**kwargs)¶Updates a scheduled audit, including which checks are performed and how often the audit takes place.
Requires permission to access the UpdateScheduledAudit action.
See also: AWS API Documentation
Request Syntax
response = client.update_scheduled_audit(
frequency='DAILY'|'WEEKLY'|'BIWEEKLY'|'MONTHLY',
dayOfMonth='string',
dayOfWeek='SUN'|'MON'|'TUE'|'WED'|'THU'|'FRI'|'SAT',
targetCheckNames=[
'string',
],
scheduledAuditName='string'
)
DAILY
, WEEKLY
, BIWEEKLY
, or MONTHLY
. The start time of each audit is determined by the system.1
through 31
or LAST
. This field is required if the frequency
parameter is set to MONTHLY
. 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.SUN
, MON
, TUE
, WED
, THU
, FRI
, or SAT
. This field is required if the "frequency" parameter is set to WEEKLY
or BIWEEKLY
.Which checks are performed during the scheduled audit. Checks must be enabled for your account. (Use DescribeAccountAuditConfiguration
to see the list of all checks, including those that are enabled or use UpdateAccountAuditConfiguration
to select which checks are enabled.)
An audit check name. Checks must be enabled for your account. (Use DescribeAccountAuditConfiguration
to see the list of all checks, including those that are enabled or use UpdateAccountAuditConfiguration
to select which checks are enabled.)
[REQUIRED]
The name of the scheduled audit. (Max. 128 chars)
dict
Response Syntax
{
'scheduledAuditArn': 'string'
}
Response Structure
(dict) --
scheduledAuditArn (string) --
The ARN of the scheduled audit.
Exceptions
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.ResourceNotFoundException
IoT.Client.exceptions.ThrottlingException
IoT.Client.exceptions.InternalFailureException