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
- Struct
- Aws::DLM::Types::CreateRule
- Defined in:
- (unknown)
Overview
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
-
#cron_expression ⇒ String
The schedule, as a Cron expression.
-
#interval ⇒ Integer
The interval between snapshots.
-
#interval_unit ⇒ String
The interval unit.
-
#times ⇒ Array<String>
The time, in UTC, to start the operation.
Instance Attribute Details
#cron_expression ⇒ String
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.
#interval ⇒ Integer
The interval between snapshots. The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.
#interval_unit ⇒ String
The interval unit.
Possible values:
- HOURS
#times ⇒ Array<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.