Class: AWSCDK::IoTAnalytics::CfnDataset::ResourceConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTAnalytics::CfnDataset::ResourceConfigurationProperty
- Defined in:
- io_t_analytics/cfn_dataset.rb
Overview
The configuration of the resource used to execute the containerAction .
Instance Attribute Summary collapse
-
#compute_type ⇒ String
readonly
The type of the compute resource used to execute the
containerAction. -
#volume_size_in_gb ⇒ Numeric
readonly
The size, in GB, of the persistent storage available to the resource instance used to execute the
containerAction(min: 1, max: 50).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(compute_type:, volume_size_in_gb:) ⇒ ResourceConfigurationProperty
constructor
A new instance of ResourceConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(compute_type:, volume_size_in_gb:) ⇒ ResourceConfigurationProperty
Returns a new instance of ResourceConfigurationProperty.
1228 1229 1230 1231 1232 1233 |
# File 'io_t_analytics/cfn_dataset.rb', line 1228 def initialize(compute_type:, volume_size_in_gb:) @compute_type = compute_type Jsii::Type.check_type(@compute_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "computeType") @volume_size_in_gb = volume_size_in_gb Jsii::Type.check_type(@volume_size_in_gb, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "volumeSizeInGb") end |
Instance Attribute Details
#compute_type ⇒ String (readonly)
The type of the compute resource used to execute the containerAction .
Possible values are: ACU_1 (vCPU=4, memory=16 GiB) or ACU_2 (vCPU=8, memory=32 GiB).
1241 1242 1243 |
# File 'io_t_analytics/cfn_dataset.rb', line 1241 def compute_type @compute_type end |
#volume_size_in_gb ⇒ Numeric (readonly)
The size, in GB, of the persistent storage available to the resource instance used to execute the containerAction (min: 1, max: 50).
1246 1247 1248 |
# File 'io_t_analytics/cfn_dataset.rb', line 1246 def volume_size_in_gb @volume_size_in_gb end |
Class Method Details
.jsii_properties ⇒ Object
1248 1249 1250 1251 1252 1253 |
# File 'io_t_analytics/cfn_dataset.rb', line 1248 def self.jsii_properties { :compute_type => "computeType", :volume_size_in_gb => "volumeSizeInGb", } end |
Instance Method Details
#to_jsii ⇒ Object
1255 1256 1257 1258 1259 1260 1261 1262 |
# File 'io_t_analytics/cfn_dataset.rb', line 1255 def to_jsii result = {} result.merge!({ "computeType" => @compute_type, "volumeSizeInGb" => @volume_size_in_gb, }) result.compact end |