Class: AWSCDK::DataBrew::CfnDataset::FormatOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataBrew::CfnDataset::FormatOptionsProperty
- Defined in:
- data_brew/cfn_dataset.rb
Overview
Represents a set of options that define the structure of either comma-separated value (CSV), Excel, or JSON input.
Instance Attribute Summary collapse
-
#csv ⇒ AWSCDK::IResolvable, ...
readonly
Options that define how CSV input is to be interpreted by DataBrew.
-
#excel ⇒ AWSCDK::IResolvable, ...
readonly
Options that define how Excel input is to be interpreted by DataBrew.
-
#json ⇒ AWSCDK::IResolvable, ...
readonly
Options that define how JSON input is to be interpreted by DataBrew.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(csv: nil, excel: nil, json: nil) ⇒ FormatOptionsProperty
constructor
A new instance of FormatOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(csv: nil, excel: nil, json: nil) ⇒ FormatOptionsProperty
Returns a new instance of FormatOptionsProperty.
1094 1095 1096 1097 1098 1099 1100 1101 |
# File 'data_brew/cfn_dataset.rb', line 1094 def initialize(csv: nil, excel: nil, json: nil) @csv = csv.is_a?(Hash) ? ::AWSCDK::DataBrew::CfnDataset::CsvOptionsProperty.new(**csv.transform_keys(&:to_sym)) : csv Jsii::Type.check_type(@csv, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhYnJldy5DZm5EYXRhc2V0LkNzdk9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "csv") unless @csv.nil? @excel = excel.is_a?(Hash) ? ::AWSCDK::DataBrew::CfnDataset::ExcelOptionsProperty.new(**excel.transform_keys(&:to_sym)) : excel Jsii::Type.check_type(@excel, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhYnJldy5DZm5EYXRhc2V0LkV4Y2VsT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "excel") unless @excel.nil? @json = json.is_a?(Hash) ? ::AWSCDK::DataBrew::CfnDataset::JsonOptionsProperty.new(**json.transform_keys(&:to_sym)) : json Jsii::Type.check_type(@json, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhYnJldy5DZm5EYXRhc2V0Lkpzb25PcHRpb25zUHJvcGVydHkifV19fQ==")), "json") unless @json.nil? end |
Instance Attribute Details
#csv ⇒ AWSCDK::IResolvable, ... (readonly)
Options that define how CSV input is to be interpreted by DataBrew.
1107 1108 1109 |
# File 'data_brew/cfn_dataset.rb', line 1107 def csv @csv end |
#excel ⇒ AWSCDK::IResolvable, ... (readonly)
Options that define how Excel input is to be interpreted by DataBrew.
1112 1113 1114 |
# File 'data_brew/cfn_dataset.rb', line 1112 def excel @excel end |
#json ⇒ AWSCDK::IResolvable, ... (readonly)
Options that define how JSON input is to be interpreted by DataBrew.
1117 1118 1119 |
# File 'data_brew/cfn_dataset.rb', line 1117 def json @json end |
Class Method Details
.jsii_properties ⇒ Object
1119 1120 1121 1122 1123 1124 1125 |
# File 'data_brew/cfn_dataset.rb', line 1119 def self.jsii_properties { :csv => "csv", :excel => "excel", :json => "json", } end |
Instance Method Details
#to_jsii ⇒ Object
1127 1128 1129 1130 1131 1132 1133 1134 1135 |
# File 'data_brew/cfn_dataset.rb', line 1127 def to_jsii result = {} result.merge!({ "csv" => @csv, "excel" => @excel, "json" => @json, }) result.compact end |