Class: AWSCDK::IoTFleetWise::CfnCampaign::DataPartitionStorageOptionsProperty

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

Overview

Size, time, and location options for the data partition.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(maximum_size:, minimum_time_to_live:, storage_location:) ⇒ DataPartitionStorageOptionsProperty

Returns a new instance of DataPartitionStorageOptionsProperty.

Parameters:



1087
1088
1089
1090
1091
1092
1093
1094
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1087

def initialize(maximum_size:, minimum_time_to_live:, storage_location:)
  @maximum_size = maximum_size.is_a?(Hash) ? ::AWSCDK::IoTFleetWise::CfnCampaign::StorageMaximumSizeProperty.new(**maximum_size.transform_keys(&:to_sym)) : maximum_size
  Jsii::Type.check_type(@maximum_size, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RmbGVldHdpc2UuQ2ZuQ2FtcGFpZ24uU3RvcmFnZU1heGltdW1TaXplUHJvcGVydHkifV19fQ==")), "maximumSize")
  @minimum_time_to_live = minimum_time_to_live.is_a?(Hash) ? ::AWSCDK::IoTFleetWise::CfnCampaign::StorageMinimumTimeToLiveProperty.new(**minimum_time_to_live.transform_keys(&:to_sym)) : minimum_time_to_live
  Jsii::Type.check_type(@minimum_time_to_live, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RmbGVldHdpc2UuQ2ZuQ2FtcGFpZ24uU3RvcmFnZU1pbmltdW1UaW1lVG9MaXZlUHJvcGVydHkifV19fQ==")), "minimumTimeToLive")
  @storage_location = storage_location
  Jsii::Type.check_type(@storage_location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "storageLocation")
end

Instance Attribute Details

#maximum_sizeAWSCDK::IResolvable, AWSCDK::IoTFleetWise::CfnCampaign::StorageMaximumSizeProperty (readonly)

The maximum storage size of the data stored in the data partition.

Newer data overwrites older data when the partition reaches the maximum size.



1102
1103
1104
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1102

def maximum_size
  @maximum_size
end

#minimum_time_to_liveAWSCDK::IResolvable, AWSCDK::IoTFleetWise::CfnCampaign::StorageMinimumTimeToLiveProperty (readonly)

The amount of time that data in this partition will be kept on disk.

  • After the designated amount of time passes, the data can be removed, but it's not guaranteed to be removed.
  • Before the time expires, data in this partition can still be deleted if the partition reaches its configured maximum size.
  • Newer data will overwrite older data when the partition reaches the maximum size.


1111
1112
1113
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1111

def minimum_time_to_live
  @minimum_time_to_live
end

#storage_locationString (readonly)

The folder name for the data partition under the campaign storage folder.



1116
1117
1118
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1116

def storage_location
  @storage_location
end

Class Method Details

.jsii_propertiesObject



1118
1119
1120
1121
1122
1123
1124
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1118

def self.jsii_properties
  {
    :maximum_size => "maximumSize",
    :minimum_time_to_live => "minimumTimeToLive",
    :storage_location => "storageLocation",
  }
end

Instance Method Details

#to_jsiiObject



1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1126

def to_jsii
  result = {}
  result.merge!({
    "maximumSize" => @maximum_size,
    "minimumTimeToLive" => @minimum_time_to_live,
    "storageLocation" => @storage_location,
  })
  result.compact
end