Class: AWSCDK::DataBrew::CfnDataset::CsvOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataBrew::CfnDataset::CsvOptionsProperty
- Defined in:
- data_brew/cfn_dataset.rb
Overview
Represents a set of options that define how DataBrew will read a comma-separated value (CSV) file when creating a dataset from that file.
Instance Attribute Summary collapse
-
#delimiter ⇒ String?
readonly
A single character that specifies the delimiter being used in the CSV file.
-
#header_row ⇒ Boolean, ...
readonly
A variable that specifies whether the first row in the file is parsed as the header.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(delimiter: nil, header_row: nil) ⇒ CsvOptionsProperty
constructor
A new instance of CsvOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(delimiter: nil, header_row: nil) ⇒ CsvOptionsProperty
Returns a new instance of CsvOptionsProperty.
584 585 586 587 588 589 |
# File 'data_brew/cfn_dataset.rb', line 584 def initialize(delimiter: nil, header_row: nil) @delimiter = delimiter Jsii::Type.check_type(@delimiter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "delimiter") unless @delimiter.nil? @header_row = header_row Jsii::Type.check_type(@header_row, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "headerRow") unless @header_row.nil? end |
Instance Attribute Details
#delimiter ⇒ String? (readonly)
A single character that specifies the delimiter being used in the CSV file.
595 596 597 |
# File 'data_brew/cfn_dataset.rb', line 595 def delimiter @delimiter end |
#header_row ⇒ Boolean, ... (readonly)
A variable that specifies whether the first row in the file is parsed as the header.
If this value is false, column names are auto-generated.
602 603 604 |
# File 'data_brew/cfn_dataset.rb', line 602 def header_row @header_row end |
Class Method Details
.jsii_properties ⇒ Object
604 605 606 607 608 609 |
# File 'data_brew/cfn_dataset.rb', line 604 def self.jsii_properties { :delimiter => "delimiter", :header_row => "headerRow", } end |
Instance Method Details
#to_jsii ⇒ Object
611 612 613 614 615 616 617 618 |
# File 'data_brew/cfn_dataset.rb', line 611 def to_jsii result = {} result.merge!({ "delimiter" => @delimiter, "headerRow" => @header_row, }) result.compact end |