Class: AWSCDK::IoTAnalytics::CfnDatastore::RetentionPeriodProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTAnalytics::CfnDatastore::RetentionPeriodProperty
- Defined in:
- io_t_analytics/cfn_datastore.rb
Overview
How long, in days, message data is kept.
Instance Attribute Summary collapse
-
#number_of_days ⇒ Numeric?
readonly
The number of days that message data is kept.
-
#unlimited ⇒ Boolean, ...
readonly
If true, message data is kept indefinitely.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(number_of_days: nil, unlimited: nil) ⇒ RetentionPeriodProperty
constructor
A new instance of RetentionPeriodProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(number_of_days: nil, unlimited: nil) ⇒ RetentionPeriodProperty
Returns a new instance of RetentionPeriodProperty.
1038 1039 1040 1041 1042 1043 |
# File 'io_t_analytics/cfn_datastore.rb', line 1038 def initialize(number_of_days: nil, unlimited: nil) @number_of_days = number_of_days Jsii::Type.check_type(@number_of_days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "numberOfDays") unless @number_of_days.nil? @unlimited = unlimited Jsii::Type.check_type(@unlimited, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "unlimited") unless @unlimited.nil? end |
Instance Attribute Details
#number_of_days ⇒ Numeric? (readonly)
The number of days that message data is kept.
The unlimited parameter must be false.
1051 1052 1053 |
# File 'io_t_analytics/cfn_datastore.rb', line 1051 def number_of_days @number_of_days end |
#unlimited ⇒ Boolean, ... (readonly)
If true, message data is kept indefinitely.
1056 1057 1058 |
# File 'io_t_analytics/cfn_datastore.rb', line 1056 def unlimited @unlimited end |
Class Method Details
.jsii_properties ⇒ Object
1058 1059 1060 1061 1062 1063 |
# File 'io_t_analytics/cfn_datastore.rb', line 1058 def self.jsii_properties { :number_of_days => "numberOfDays", :unlimited => "unlimited", } end |
Instance Method Details
#to_jsii ⇒ Object
1065 1066 1067 1068 1069 1070 1071 1072 |
# File 'io_t_analytics/cfn_datastore.rb', line 1065 def to_jsii result = {} result.merge!({ "numberOfDays" => @number_of_days, "unlimited" => @unlimited, }) result.compact end |