Class: AWSCDK::DynamoDB::CfnGlobalTable::PointInTimeRecoverySpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dynamo_db/cfn_global_table.rb

Overview

Represents the settings used to enable point in time recovery.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(point_in_time_recovery_enabled: nil, recovery_period_in_days: nil) ⇒ PointInTimeRecoverySpecificationProperty

Returns a new instance of PointInTimeRecoverySpecificationProperty.

Parameters:

  • point_in_time_recovery_enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.

  • recovery_period_in_days (Numeric, nil) (defaults to: nil)

    The number of preceding days for which continuous backups are taken and maintained.



1314
1315
1316
1317
1318
1319
# File 'dynamo_db/cfn_global_table.rb', line 1314

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_enabledBoolean, ... (readonly)

Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.



1325
1326
1327
# File 'dynamo_db/cfn_global_table.rb', line 1325

def point_in_time_recovery_enabled
  @point_in_time_recovery_enabled
end

#recovery_period_in_daysNumeric? (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.



1332
1333
1334
# File 'dynamo_db/cfn_global_table.rb', line 1332

def recovery_period_in_days
  @recovery_period_in_days
end

Class Method Details

.jsii_propertiesObject



1334
1335
1336
1337
1338
1339
# File 'dynamo_db/cfn_global_table.rb', line 1334

def self.jsii_properties
  {
    :point_in_time_recovery_enabled => "pointInTimeRecoveryEnabled",
    :recovery_period_in_days => "recoveryPeriodInDays",
  }
end

Instance Method Details

#to_jsiiObject



1341
1342
1343
1344
1345
1346
1347
1348
# File 'dynamo_db/cfn_global_table.rb', line 1341

def to_jsii
  result = {}
  result.merge!({
    "pointInTimeRecoveryEnabled" => @point_in_time_recovery_enabled,
    "recoveryPeriodInDays" => @recovery_period_in_days,
  })
  result.compact
end