Class: AWSCDK::Lightsail::CfnDisk::AutoSnapshotAddOnProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lightsail/cfn_disk.rb

Overview

AutoSnapshotAddOn is a property of the AddOn property. It describes the automatic snapshot add-on for a disk.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(snapshot_time_of_day: nil) ⇒ AutoSnapshotAddOnProperty

Returns a new instance of AutoSnapshotAddOnProperty.

Parameters:

  • snapshot_time_of_day (String, nil) (defaults to: nil)

    The daily time when an automatic snapshot will be created.



724
725
726
727
# File 'lightsail/cfn_disk.rb', line 724

def initialize(snapshot_time_of_day: nil)
  @snapshot_time_of_day = snapshot_time_of_day
  Jsii::Type.check_type(@snapshot_time_of_day, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "snapshotTimeOfDay") unless @snapshot_time_of_day.nil?
end

Instance Attribute Details

#snapshot_time_of_dayString? (readonly)

The daily time when an automatic snapshot will be created.

Constraints:

  • Must be in HH:00 format, and in an hourly increment.
  • Specified in Coordinated Universal Time (UTC).
  • The snapshot will be automatically created between the time specified and up to 45 minutes after.


739
740
741
# File 'lightsail/cfn_disk.rb', line 739

def snapshot_time_of_day
  @snapshot_time_of_day
end

Class Method Details

.jsii_propertiesObject



741
742
743
744
745
# File 'lightsail/cfn_disk.rb', line 741

def self.jsii_properties
  {
    :snapshot_time_of_day => "snapshotTimeOfDay",
  }
end

Instance Method Details

#to_jsiiObject



747
748
749
750
751
752
753
# File 'lightsail/cfn_disk.rb', line 747

def to_jsii
  result = {}
  result.merge!({
    "snapshotTimeOfDay" => @snapshot_time_of_day,
  })
  result.compact
end