Class: AWSCDK::LookoutMetrics::CfnAnomalyDetector::JsonFormatDescriptorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LookoutMetrics::CfnAnomalyDetector::JsonFormatDescriptorProperty
- Defined in:
- lookout_metrics/cfn_anomaly_detector.rb
Overview
Contains information about how a source JSON data file should be analyzed.
Instance Attribute Summary collapse
-
#charset ⇒ String?
readonly
The character set in which the source JSON file is written.
-
#file_compression ⇒ String?
readonly
The level of compression of the source CSV file.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(charset: nil, file_compression: nil) ⇒ JsonFormatDescriptorProperty
constructor
A new instance of JsonFormatDescriptorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(charset: nil, file_compression: nil) ⇒ JsonFormatDescriptorProperty
Returns a new instance of JsonFormatDescriptorProperty.
802 803 804 805 806 807 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 802 def initialize(charset: nil, file_compression: nil) @charset = charset Jsii::Type.check_type(@charset, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "charset") unless @charset.nil? @file_compression = file_compression Jsii::Type.check_type(@file_compression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fileCompression") unless @file_compression.nil? end |
Instance Attribute Details
#charset ⇒ String? (readonly)
The character set in which the source JSON file is written.
813 814 815 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 813 def charset @charset end |
#file_compression ⇒ String? (readonly)
The level of compression of the source CSV file.
818 819 820 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 818 def file_compression @file_compression end |
Class Method Details
.jsii_properties ⇒ Object
820 821 822 823 824 825 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 820 def self.jsii_properties { :charset => "charset", :file_compression => "fileCompression", } end |
Instance Method Details
#to_jsii ⇒ Object
827 828 829 830 831 832 833 834 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 827 def to_jsii result = {} result.merge!({ "charset" => @charset, "fileCompression" => @file_compression, }) result.compact end |