Class: AWSCDK::IoTAnalytics::CfnChannel::RetentionPeriodProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_analytics/cfn_channel.rb

Overview

How long, in days, message data is kept.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(number_of_days: nil, unlimited: nil) ⇒ RetentionPeriodProperty

Returns a new instance of RetentionPeriodProperty.

Parameters:

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

    The number of days that message data is kept.

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

    If true, message data is kept indefinitely.



676
677
678
679
680
681
# File 'io_t_analytics/cfn_channel.rb', line 676

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_daysNumeric? (readonly)

The number of days that message data is kept.

The unlimited parameter must be false.



689
690
691
# File 'io_t_analytics/cfn_channel.rb', line 689

def number_of_days
  @number_of_days
end

#unlimitedBoolean, ... (readonly)

If true, message data is kept indefinitely.



694
695
696
# File 'io_t_analytics/cfn_channel.rb', line 694

def unlimited
  @unlimited
end

Class Method Details

.jsii_propertiesObject



696
697
698
699
700
701
# File 'io_t_analytics/cfn_channel.rb', line 696

def self.jsii_properties
  {
    :number_of_days => "numberOfDays",
    :unlimited => "unlimited",
  }
end

Instance Method Details

#to_jsiiObject



703
704
705
706
707
708
709
710
# File 'io_t_analytics/cfn_channel.rb', line 703

def to_jsii
  result = {}
  result.merge!({
    "numberOfDays" => @number_of_days,
    "unlimited" => @unlimited,
  })
  result.compact
end