class Aws::DLM::Types::CreateRule

Specifies when to create snapshots of EBS volumes.

You must specify either a Cron expression or an interval, interval unit, and start time. You cannot specify both.

@note When making an API call, you may pass CreateRule

data as a hash:

    {
      location: "CLOUD", # accepts CLOUD, OUTPOST_LOCAL
      interval: 1,
      interval_unit: "HOURS", # accepts HOURS
      times: ["Time"],
      cron_expression: "CronExpression",
    }

@!attribute [rw] location

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.
@return [String]

@!attribute [rw] interval

The interval between snapshots. The supported values are 1, 2, 3, 4,
6, 8, 12, and 24.
@return [Integer]

@!attribute [rw] interval_unit

The interval unit.
@return [String]

@!attribute [rw] 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 DLM selects a
time within the next 24 hours.
@return [Array<String>]

@!attribute [rw] cron_expression

The schedule, as a Cron expression. The schedule interval must be
between 1 hour and 1 year. For more information, see [Cron
expressions][1] in the *Amazon CloudWatch User Guide*.

[1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/CreateRule AWS API Documentation

Constants

SENSITIVE