Class: AWSCDK::IoTFleetWise::CfnCampaign::StorageMinimumTimeToLiveProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_fleet_wise/cfn_campaign.rb

Overview

Information about the minimum amount of time that data will be kept.

Access to certain AWS IoT FleetWise features is currently gated. For more information, see AWS Region and feature availability in the AWS IoT FleetWise Developer Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(unit:, value:) ⇒ StorageMinimumTimeToLiveProperty

Returns a new instance of StorageMinimumTimeToLiveProperty.

Parameters:

  • unit (String)

    The time increment type.

  • value (Numeric)

    The minimum amount of time to store the data.



1543
1544
1545
1546
1547
1548
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1543

def initialize(unit:, value:)
  @unit = unit
  Jsii::Type.check_type(@unit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "unit")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
end

Instance Attribute Details

#unitString (readonly)

The time increment type.



1554
1555
1556
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1554

def unit
  @unit
end

#valueNumeric (readonly)

The minimum amount of time to store the data.



1559
1560
1561
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1559

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1561
1562
1563
1564
1565
1566
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1561

def self.jsii_properties
  {
    :unit => "unit",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



1568
1569
1570
1571
1572
1573
1574
1575
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1568

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