Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data CreateRule = CreateRule' {}
- newCreateRule :: CreateRule
- createRule_cronExpression :: Lens' CreateRule (Maybe Text)
- createRule_interval :: Lens' CreateRule (Maybe Natural)
- createRule_intervalUnit :: Lens' CreateRule (Maybe IntervalUnitValues)
- createRule_location :: Lens' CreateRule (Maybe LocationValues)
- createRule_times :: Lens' CreateRule (Maybe [Text])
Documentation
data CreateRule Source #
[Snapshot and AMI policies only] Specifies when the policy should create snapshots or AMIs.
- You must specify either CronExpression, or Interval, IntervalUnit, and Times.
- If you need to specify an ArchiveRule for the schedule, then you must specify a creation frequency of at least 28 days.
See: newCreateRule
smart constructor.
CreateRule' | |
|
Instances
newCreateRule :: CreateRule Source #
Create a value of CreateRule
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:cronExpression:CreateRule'
, createRule_cronExpression
- The schedule, as a Cron expression. The schedule interval must be
between 1 hour and 1 year. For more information, see
Cron expressions
in the Amazon CloudWatch User Guide.
$sel:interval:CreateRule'
, createRule_interval
- The interval between snapshots. The supported values are 1, 2, 3, 4, 6,
8, 12, and 24.
$sel:intervalUnit:CreateRule'
, createRule_intervalUnit
- The interval unit.
$sel:location:CreateRule'
, createRule_location
- [Snapshot policies only] Specifies the destination for snapshots
created by the policy. To create snapshots in the same Region as the
source resource, specify CLOUD
. To create snapshots on the same
Outpost as the source resource, specify OUTPOST_LOCAL
. If you omit
this parameter, CLOUD
is used by default.
If the policy targets resources in an Amazon Web Services Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost.
$sel:times:CreateRule'
, createRule_times
- The time, in UTC, to start the operation. The supported format is hh:mm.
The operation occurs within a one-hour window following the specified time. If you do not specify a time, Amazon Data Lifecycle Manager selects a time within the next 24 hours.
createRule_cronExpression :: Lens' CreateRule (Maybe Text) Source #
The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. For more information, see Cron expressions in the Amazon CloudWatch User Guide.
createRule_interval :: Lens' CreateRule (Maybe Natural) Source #
The interval between snapshots. The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.
createRule_intervalUnit :: Lens' CreateRule (Maybe IntervalUnitValues) Source #
The interval unit.
createRule_location :: Lens' CreateRule (Maybe LocationValues) Source #
[Snapshot policies only] Specifies the destination for snapshots
created by the policy. To create snapshots in the same Region as the
source resource, specify CLOUD
. To create snapshots on the same
Outpost as the source resource, specify OUTPOST_LOCAL
. If you omit
this parameter, CLOUD
is used by default.
If the policy targets resources in an Amazon Web Services Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost.
createRule_times :: Lens' CreateRule (Maybe [Text]) Source #
The time, in UTC, to start the operation. The supported format is hh:mm.
The operation occurs within a one-hour window following the specified time. If you do not specify a time, Amazon Data Lifecycle Manager selects a time within the next 24 hours.