Class: AWSCDK::LookoutMetrics::CfnAnomalyDetector::CsvFormatDescriptorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LookoutMetrics::CfnAnomalyDetector::CsvFormatDescriptorProperty
- Defined in:
- lookout_metrics/cfn_anomaly_detector.rb
Overview
Contains information about how a source CSV data file should be analyzed.
Instance Attribute Summary collapse
-
#charset ⇒ String?
readonly
The character set in which the source CSV file is written.
-
#contains_header ⇒ Boolean, ...
readonly
Whether or not the source CSV file contains a header.
-
#delimiter ⇒ String?
readonly
The character used to delimit the source CSV file.
-
#file_compression ⇒ String?
readonly
The level of compression of the source CSV file.
-
#header_list ⇒ Array<String>?
readonly
A list of the source CSV file's headers, if any.
-
#quote_symbol ⇒ String?
readonly
The character used as a quote character.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(charset: nil, contains_header: nil, delimiter: nil, file_compression: nil, header_list: nil, quote_symbol: nil) ⇒ CsvFormatDescriptorProperty
constructor
A new instance of CsvFormatDescriptorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(charset: nil, contains_header: nil, delimiter: nil, file_compression: nil, header_list: nil, quote_symbol: nil) ⇒ CsvFormatDescriptorProperty
Returns a new instance of CsvFormatDescriptorProperty.
680 681 682 683 684 685 686 687 688 689 690 691 692 693 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 680 def initialize(charset: nil, contains_header: nil, delimiter: nil, file_compression: nil, header_list: nil, quote_symbol: nil) @charset = charset Jsii::Type.check_type(@charset, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "charset") unless @charset.nil? @contains_header = contains_header Jsii::Type.check_type(@contains_header, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "containsHeader") unless @contains_header.nil? @delimiter = delimiter Jsii::Type.check_type(@delimiter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "delimiter") unless @delimiter.nil? @file_compression = file_compression Jsii::Type.check_type(@file_compression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fileCompression") unless @file_compression.nil? @header_list = header_list Jsii::Type.check_type(@header_list, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "headerList") unless @header_list.nil? @quote_symbol = quote_symbol Jsii::Type.check_type(@quote_symbol, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "quoteSymbol") unless @quote_symbol.nil? end |
Instance Attribute Details
#charset ⇒ String? (readonly)
The character set in which the source CSV file is written.
699 700 701 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 699 def charset @charset end |
#contains_header ⇒ Boolean, ... (readonly)
Whether or not the source CSV file contains a header.
704 705 706 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 704 def contains_header @contains_header end |
#delimiter ⇒ String? (readonly)
The character used to delimit the source CSV file.
709 710 711 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 709 def delimiter @delimiter end |
#file_compression ⇒ String? (readonly)
The level of compression of the source CSV file.
714 715 716 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 714 def file_compression @file_compression end |
#header_list ⇒ Array<String>? (readonly)
A list of the source CSV file's headers, if any.
719 720 721 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 719 def header_list @header_list end |
#quote_symbol ⇒ String? (readonly)
The character used as a quote character.
724 725 726 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 724 def quote_symbol @quote_symbol end |
Class Method Details
.jsii_properties ⇒ Object
726 727 728 729 730 731 732 733 734 735 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 726 def self.jsii_properties { :charset => "charset", :contains_header => "containsHeader", :delimiter => "delimiter", :file_compression => "fileCompression", :header_list => "headerList", :quote_symbol => "quoteSymbol", } end |
Instance Method Details
#to_jsii ⇒ Object
737 738 739 740 741 742 743 744 745 746 747 748 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 737 def to_jsii result = {} result.merge!({ "charset" => @charset, "containsHeader" => @contains_header, "delimiter" => @delimiter, "fileCompression" => @file_compression, "headerList" => @header_list, "quoteSymbol" => @quote_symbol, }) result.compact end |