Class: AWSCDK::DynamoDB::CfnTable::PointInTimeRecoverySpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DynamoDB::CfnTable::PointInTimeRecoverySpecificationProperty
- Defined in:
- dynamo_db/cfn_table.rb
Overview
The settings used to enable point in time recovery.
Instance Attribute Summary collapse
-
#point_in_time_recovery_enabled ⇒ Boolean, ...
readonly
Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.
-
#recovery_period_in_days ⇒ Numeric?
readonly
The number of preceding days for which continuous backups are taken and maintained.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(point_in_time_recovery_enabled: nil, recovery_period_in_days: nil) ⇒ PointInTimeRecoverySpecificationProperty
constructor
A new instance of PointInTimeRecoverySpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(point_in_time_recovery_enabled: nil, recovery_period_in_days: nil) ⇒ PointInTimeRecoverySpecificationProperty
Returns a new instance of PointInTimeRecoverySpecificationProperty.
1383 1384 1385 1386 1387 1388 |
# File 'dynamo_db/cfn_table.rb', line 1383 def initialize(point_in_time_recovery_enabled: nil, recovery_period_in_days: nil) @point_in_time_recovery_enabled = point_in_time_recovery_enabled Jsii::Type.check_type(@point_in_time_recovery_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "pointInTimeRecoveryEnabled") unless @point_in_time_recovery_enabled.nil? @recovery_period_in_days = recovery_period_in_days Jsii::Type.check_type(@recovery_period_in_days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "recoveryPeriodInDays") unless @recovery_period_in_days.nil? end |
Instance Attribute Details
#point_in_time_recovery_enabled ⇒ Boolean, ... (readonly)
Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.
1394 1395 1396 |
# File 'dynamo_db/cfn_table.rb', line 1394 def point_in_time_recovery_enabled @point_in_time_recovery_enabled end |
#recovery_period_in_days ⇒ Numeric? (readonly)
The number of preceding days for which continuous backups are taken and maintained.
Your table data is only recoverable to any point-in-time from within the configured recovery period. This parameter is optional. If no value is provided, the value will default to 35.
1401 1402 1403 |
# File 'dynamo_db/cfn_table.rb', line 1401 def recovery_period_in_days @recovery_period_in_days end |
Class Method Details
.jsii_properties ⇒ Object
1403 1404 1405 1406 1407 1408 |
# File 'dynamo_db/cfn_table.rb', line 1403 def self.jsii_properties { :point_in_time_recovery_enabled => "pointInTimeRecoveryEnabled", :recovery_period_in_days => "recoveryPeriodInDays", } end |
Instance Method Details
#to_jsii ⇒ Object
1410 1411 1412 1413 1414 1415 1416 1417 |
# File 'dynamo_db/cfn_table.rb', line 1410 def to_jsii result = {} result.merge!({ "pointInTimeRecoveryEnabled" => @point_in_time_recovery_enabled, "recoveryPeriodInDays" => @recovery_period_in_days, }) result.compact end |