Class: AWSCDK::Lightsail::CfnInstance::AutoSnapshotAddOnProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lightsail::CfnInstance::AutoSnapshotAddOnProperty
- 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
-
#snapshot_time_of_day ⇒ String?
readonly
The daily time when an automatic snapshot will be created.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(snapshot_time_of_day: nil) ⇒ AutoSnapshotAddOnProperty
constructor
A new instance of AutoSnapshotAddOnProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(snapshot_time_of_day: nil) ⇒ AutoSnapshotAddOnProperty
Returns a new instance of AutoSnapshotAddOnProperty.
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_day ⇒ String? (readonly)
The daily time when an automatic snapshot will be created.
Constraints:
- Must be in
HH:00format, 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_properties ⇒ Object
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_jsii ⇒ Object
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 |