Class: AWSCDK::Lightsail::CfnInstance::AutoSnapshotAddOnProperty

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

Overview

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

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.



843
844
845
846
# File 'lightsail/cfn_instance.rb', line 843

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.


858
859
860
# File 'lightsail/cfn_instance.rb', line 858

def snapshot_time_of_day
  @snapshot_time_of_day
end

Class Method Details

.jsii_propertiesObject



860
861
862
863
864
# File 'lightsail/cfn_instance.rb', line 860

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

Instance Method Details

#to_jsiiObject



866
867
868
869
870
871
872
# File 'lightsail/cfn_instance.rb', line 866

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