Class: AWSCDK::CleanRoomsML::CfnTrainingDataset::DatasetProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CleanRoomsML::CfnTrainingDataset::DatasetProperty
- Defined in:
- clean_rooms_ml/cfn_training_dataset.rb
Overview
Defines where the training dataset is located, what type of data it contains, and how to access the data.
Instance Attribute Summary collapse
-
#input_config ⇒ AWSCDK::IResolvable, AWSCDK::CleanRoomsML::CfnTrainingDataset::DatasetInputConfigProperty
readonly
A DatasetInputConfig object that defines the data source and schema mapping.
-
#type ⇒ String
readonly
What type of information is found in the dataset.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(input_config:, type:) ⇒ DatasetProperty
constructor
A new instance of DatasetProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(input_config:, type:) ⇒ DatasetProperty
Returns a new instance of DatasetProperty.
699 700 701 702 703 704 |
# File 'clean_rooms_ml/cfn_training_dataset.rb', line 699 def initialize(input_config:, type:) @input_config = input_config.is_a?(Hash) ? ::AWSCDK::CleanRoomsML::CfnTrainingDataset::DatasetInputConfigProperty.new(**input_config.transform_keys(&:to_sym)) : input_config Jsii::Type.check_type(@input_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbGVhbnJvb21zbWwuQ2ZuVHJhaW5pbmdEYXRhc2V0LkRhdGFzZXRJbnB1dENvbmZpZ1Byb3BlcnR5In1dfX0=")), "inputConfig") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") end |
Instance Attribute Details
#input_config ⇒ AWSCDK::IResolvable, AWSCDK::CleanRoomsML::CfnTrainingDataset::DatasetInputConfigProperty (readonly)
A DatasetInputConfig object that defines the data source and schema mapping.
710 711 712 |
# File 'clean_rooms_ml/cfn_training_dataset.rb', line 710 def input_config @input_config end |
#type ⇒ String (readonly)
What type of information is found in the dataset.
715 716 717 |
# File 'clean_rooms_ml/cfn_training_dataset.rb', line 715 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
717 718 719 720 721 722 |
# File 'clean_rooms_ml/cfn_training_dataset.rb', line 717 def self.jsii_properties { :input_config => "inputConfig", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
724 725 726 727 728 729 730 731 |
# File 'clean_rooms_ml/cfn_training_dataset.rb', line 724 def to_jsii result = {} result.merge!({ "inputConfig" => @input_config, "type" => @type, }) result.compact end |