Class: Aws::Drs::Types::PITPolicyRule
- Inherits:
-
Struct
- Object
- Struct
- Aws::Drs::Types::PITPolicyRule
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-drs/types.rb
Overview
Note:
When making an API call, you may pass PITPolicyRule data as a hash:
{
enabled: false,
interval: 1, # required
retention_duration: 1, # required
rule_id: 1,
units: "MINUTE", # required, accepts MINUTE, HOUR, DAY
}
A rule in the Point in Time (PIT) policy representing when to take snapshots and how long to retain them for.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
Whether this rule is enabled or not.
-
#interval ⇒ Integer
How often, in the chosen units, a snapshot should be taken.
-
#retention_duration ⇒ Integer
The duration to retain a snapshot for, in the chosen units.
-
#rule_id ⇒ Integer
The ID of the rule.
-
#units ⇒ String
The units used to measure the interval and retentionDuration.
Instance Attribute Details
#enabled ⇒ Boolean
Whether this rule is enabled or not.
1420 1421 1422 1423 1424 1425 1426 1427 1428 |
# File 'lib/aws-sdk-drs/types.rb', line 1420 class PITPolicyRule < Struct.new( :enabled, :interval, :retention_duration, :rule_id, :units) SENSITIVE = [] include Aws::Structure end |
#interval ⇒ Integer
How often, in the chosen units, a snapshot should be taken.
1420 1421 1422 1423 1424 1425 1426 1427 1428 |
# File 'lib/aws-sdk-drs/types.rb', line 1420 class PITPolicyRule < Struct.new( :enabled, :interval, :retention_duration, :rule_id, :units) SENSITIVE = [] include Aws::Structure end |
#retention_duration ⇒ Integer
The duration to retain a snapshot for, in the chosen units.
1420 1421 1422 1423 1424 1425 1426 1427 1428 |
# File 'lib/aws-sdk-drs/types.rb', line 1420 class PITPolicyRule < Struct.new( :enabled, :interval, :retention_duration, :rule_id, :units) SENSITIVE = [] include Aws::Structure end |
#rule_id ⇒ Integer
The ID of the rule.
1420 1421 1422 1423 1424 1425 1426 1427 1428 |
# File 'lib/aws-sdk-drs/types.rb', line 1420 class PITPolicyRule < Struct.new( :enabled, :interval, :retention_duration, :rule_id, :units) SENSITIVE = [] include Aws::Structure end |
#units ⇒ String
The units used to measure the interval and retentionDuration.
1420 1421 1422 1423 1424 1425 1426 1427 1428 |
# File 'lib/aws-sdk-drs/types.rb', line 1420 class PITPolicyRule < Struct.new( :enabled, :interval, :retention_duration, :rule_id, :units) SENSITIVE = [] include Aws::Structure end |