Class: AWSCDK::IoTAnalytics::CfnDataset::VariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTAnalytics::CfnDataset::VariableProperty
- Defined in:
- io_t_analytics/cfn_dataset.rb
Overview
An instance of a variable to be passed to the containerAction execution.
Each variable must have a name and a value given by one of string_value , dataset_content_version_value , or output_file_uri_value .
Instance Attribute Summary collapse
-
#dataset_content_version_value ⇒ AWSCDK::IResolvable, ...
readonly
The value of the variable as a structure that specifies a dataset content version.
-
#double_value ⇒ Numeric?
readonly
The value of the variable as a double (numeric).
-
#output_file_uri_value ⇒ AWSCDK::IResolvable, ...
readonly
The value of the variable as a structure that specifies an output file URI.
-
#string_value ⇒ String?
readonly
The value of the variable as a string.
-
#variable_name ⇒ String
readonly
The name of the variable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(variable_name:, dataset_content_version_value: nil, double_value: nil, output_file_uri_value: nil, string_value: nil) ⇒ VariableProperty
constructor
A new instance of VariableProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(variable_name:, dataset_content_version_value: nil, double_value: nil, output_file_uri_value: nil, string_value: nil) ⇒ VariableProperty
Returns a new instance of VariableProperty.
1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 |
# File 'io_t_analytics/cfn_dataset.rb', line 1509 def initialize(variable_name:, dataset_content_version_value: nil, double_value: nil, output_file_uri_value: nil, string_value: nil) @variable_name = variable_name Jsii::Type.check_type(@variable_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "variableName") @dataset_content_version_value = dataset_content_version_value.is_a?(Hash) ? ::AWSCDK::IoTAnalytics::CfnDataset::DatasetContentVersionValueProperty.new(**dataset_content_version_value.transform_keys(&:to_sym)) : dataset_content_version_value Jsii::Type.check_type(@dataset_content_version_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RhbmFseXRpY3MuQ2ZuRGF0YXNldC5EYXRhc2V0Q29udGVudFZlcnNpb25WYWx1ZVByb3BlcnR5In1dfX0=")), "datasetContentVersionValue") unless @dataset_content_version_value.nil? @double_value = double_value Jsii::Type.check_type(@double_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "doubleValue") unless @double_value.nil? @output_file_uri_value = output_file_uri_value.is_a?(Hash) ? ::AWSCDK::IoTAnalytics::CfnDataset::OutputFileURIValueProperty.new(**output_file_uri_value.transform_keys(&:to_sym)) : output_file_uri_value Jsii::Type.check_type(@output_file_uri_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RhbmFseXRpY3MuQ2ZuRGF0YXNldC5PdXRwdXRGaWxlVXJpVmFsdWVQcm9wZXJ0eSJ9XX19")), "outputFileUriValue") unless @output_file_uri_value.nil? @string_value = string_value Jsii::Type.check_type(@string_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stringValue") unless @string_value.nil? end |
Instance Attribute Details
#dataset_content_version_value ⇒ AWSCDK::IResolvable, ... (readonly)
The value of the variable as a structure that specifies a dataset content version.
1531 1532 1533 |
# File 'io_t_analytics/cfn_dataset.rb', line 1531 def dataset_content_version_value @dataset_content_version_value end |
#double_value ⇒ Numeric? (readonly)
The value of the variable as a double (numeric).
1536 1537 1538 |
# File 'io_t_analytics/cfn_dataset.rb', line 1536 def double_value @double_value end |
#output_file_uri_value ⇒ AWSCDK::IResolvable, ... (readonly)
The value of the variable as a structure that specifies an output file URI.
1541 1542 1543 |
# File 'io_t_analytics/cfn_dataset.rb', line 1541 def output_file_uri_value @output_file_uri_value end |
#string_value ⇒ String? (readonly)
The value of the variable as a string.
1546 1547 1548 |
# File 'io_t_analytics/cfn_dataset.rb', line 1546 def string_value @string_value end |
#variable_name ⇒ String (readonly)
The name of the variable.
1526 1527 1528 |
# File 'io_t_analytics/cfn_dataset.rb', line 1526 def variable_name @variable_name end |
Class Method Details
.jsii_properties ⇒ Object
1548 1549 1550 1551 1552 1553 1554 1555 1556 |
# File 'io_t_analytics/cfn_dataset.rb', line 1548 def self.jsii_properties { :variable_name => "variableName", :dataset_content_version_value => "datasetContentVersionValue", :double_value => "doubleValue", :output_file_uri_value => "outputFileUriValue", :string_value => "stringValue", } end |
Instance Method Details
#to_jsii ⇒ Object
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 |
# File 'io_t_analytics/cfn_dataset.rb', line 1558 def to_jsii result = {} result.merge!({ "variableName" => @variable_name, "datasetContentVersionValue" => @dataset_content_version_value, "doubleValue" => @double_value, "outputFileUriValue" => @output_file_uri_value, "stringValue" => @string_value, }) result.compact end |