You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::DLM::Types::CreateRule

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateRule as input to an Aws::Client method, you can use a vanilla Hash:

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

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.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#cron_expressionString

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.

Returns:

  • (String)

    The schedule, as a Cron expression.

#intervalInteger

The interval between snapshots. The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.

Returns:

  • (Integer)

    The interval between snapshots.

#interval_unitString

The interval unit.

Possible values:

  • HOURS

Returns:

  • (String)

    The interval unit.

#timesArray<String>

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.

Returns:

  • (Array<String>)

    The time, in UTC, to start the operation.