Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates a scheduled audit, including which checks are performed and how often the audit takes place.
Requires permission to access the UpdateScheduledAudit action.
Synopsis
- data UpdateScheduledAudit = UpdateScheduledAudit' {}
- newUpdateScheduledAudit :: Text -> UpdateScheduledAudit
- updateScheduledAudit_frequency :: Lens' UpdateScheduledAudit (Maybe AuditFrequency)
- updateScheduledAudit_dayOfMonth :: Lens' UpdateScheduledAudit (Maybe Text)
- updateScheduledAudit_targetCheckNames :: Lens' UpdateScheduledAudit (Maybe [Text])
- updateScheduledAudit_dayOfWeek :: Lens' UpdateScheduledAudit (Maybe DayOfWeek)
- updateScheduledAudit_scheduledAuditName :: Lens' UpdateScheduledAudit Text
- data UpdateScheduledAuditResponse = UpdateScheduledAuditResponse' {}
- newUpdateScheduledAuditResponse :: Int -> UpdateScheduledAuditResponse
- updateScheduledAuditResponse_scheduledAuditArn :: Lens' UpdateScheduledAuditResponse (Maybe Text)
- updateScheduledAuditResponse_httpStatus :: Lens' UpdateScheduledAuditResponse Int
Creating a Request
data UpdateScheduledAudit Source #
See: newUpdateScheduledAudit
smart constructor.
UpdateScheduledAudit' | |
|
Instances
newUpdateScheduledAudit Source #
Create a value of UpdateScheduledAudit
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:frequency:UpdateScheduledAudit'
, updateScheduledAudit_frequency
- How often the scheduled audit takes place, either DAILY
, WEEKLY
,
BIWEEKLY
, or MONTHLY
. The start time of each audit is determined by
the system.
$sel:dayOfMonth:UpdateScheduledAudit'
, updateScheduledAudit_dayOfMonth
- 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-31 are specified, and the
month does not have that many days, the audit takes place on the
"LAST" day of the month.
$sel:targetCheckNames:UpdateScheduledAudit'
, updateScheduledAudit_targetCheckNames
- 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.)
$sel:dayOfWeek:UpdateScheduledAudit'
, updateScheduledAudit_dayOfWeek
- The day of the week on which the scheduled audit takes place. This can
be one of SUN
, MON
, TUE
, WED
, THU
, FRI
, or SAT
. This field
is required if the "frequency" parameter is set to WEEKLY
or
BIWEEKLY
.
$sel:scheduledAuditName:UpdateScheduledAudit'
, updateScheduledAudit_scheduledAuditName
- The name of the scheduled audit. (Max. 128 chars)
Request Lenses
updateScheduledAudit_frequency :: Lens' UpdateScheduledAudit (Maybe AuditFrequency) Source #
How often the scheduled audit takes place, either DAILY
, WEEKLY
,
BIWEEKLY
, or MONTHLY
. The start time of each audit is determined by
the system.
updateScheduledAudit_dayOfMonth :: Lens' UpdateScheduledAudit (Maybe Text) Source #
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-31 are specified, and the
month does not have that many days, the audit takes place on the
"LAST" day of the month.
updateScheduledAudit_targetCheckNames :: Lens' UpdateScheduledAudit (Maybe [Text]) Source #
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.)
updateScheduledAudit_dayOfWeek :: Lens' UpdateScheduledAudit (Maybe DayOfWeek) Source #
The day of the week on which the scheduled audit takes place. This can
be one of SUN
, MON
, TUE
, WED
, THU
, FRI
, or SAT
. This field
is required if the "frequency" parameter is set to WEEKLY
or
BIWEEKLY
.
updateScheduledAudit_scheduledAuditName :: Lens' UpdateScheduledAudit Text Source #
The name of the scheduled audit. (Max. 128 chars)
Destructuring the Response
data UpdateScheduledAuditResponse Source #
See: newUpdateScheduledAuditResponse
smart constructor.
UpdateScheduledAuditResponse' | |
|
Instances
newUpdateScheduledAuditResponse Source #
Create a value of UpdateScheduledAuditResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:scheduledAuditArn:UpdateScheduledAuditResponse'
, updateScheduledAuditResponse_scheduledAuditArn
- The ARN of the scheduled audit.
$sel:httpStatus:UpdateScheduledAuditResponse'
, updateScheduledAuditResponse_httpStatus
- The response's http status code.
Response Lenses
updateScheduledAuditResponse_scheduledAuditArn :: Lens' UpdateScheduledAuditResponse (Maybe Text) Source #
The ARN of the scheduled audit.
updateScheduledAuditResponse_httpStatus :: Lens' UpdateScheduledAuditResponse Int Source #
The response's http status code.