Class: AWSCDK::LookoutMetrics::CfnAnomalyDetectorProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LookoutMetrics::CfnAnomalyDetectorProps
- Defined in:
- lookout_metrics/cfn_anomaly_detector_props.rb
Overview
Properties for defining a CfnAnomalyDetector.
Instance Attribute Summary collapse
-
#anomaly_detector_config ⇒ AWSCDK::IResolvable, AWSCDK::LookoutMetrics::CfnAnomalyDetector::AnomalyDetectorConfigProperty
readonly
Contains information about the configuration of the anomaly detector.
-
#anomaly_detector_description ⇒ String?
readonly
A description of the detector.
-
#anomaly_detector_name ⇒ String?
readonly
The name of the detector.
-
#kms_key_arn ⇒ String, ...
readonly
The ARN of the KMS key to use to encrypt your data.
-
#metric_set_list ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::LookoutMetrics::CfnAnomalyDetector::MetricSetProperty>
readonly
The detector's dataset.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(anomaly_detector_config:, metric_set_list:, anomaly_detector_description: nil, anomaly_detector_name: nil, kms_key_arn: nil) ⇒ CfnAnomalyDetectorProps
constructor
A new instance of CfnAnomalyDetectorProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(anomaly_detector_config:, metric_set_list:, anomaly_detector_description: nil, anomaly_detector_name: nil, kms_key_arn: nil) ⇒ CfnAnomalyDetectorProps
Returns a new instance of CfnAnomalyDetectorProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lookout_metrics/cfn_anomaly_detector_props.rb', line 14 def initialize(anomaly_detector_config:, metric_set_list:, anomaly_detector_description: nil, anomaly_detector_name: nil, kms_key_arn: nil) @anomaly_detector_config = anomaly_detector_config.is_a?(Hash) ? ::AWSCDK::LookoutMetrics::CfnAnomalyDetector::AnomalyDetectorConfigProperty.new(**anomaly_detector_config.transform_keys(&:to_sym)) : anomaly_detector_config Jsii::Type.check_type(@anomaly_detector_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sb29rb3V0bWV0cmljcy5DZm5Bbm9tYWx5RGV0ZWN0b3IuQW5vbWFseURldGVjdG9yQ29uZmlnUHJvcGVydHkifV19fQ==")), "anomalyDetectorConfig") @metric_set_list = metric_set_list Jsii::Type.check_type(@metric_set_list, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9va291dG1ldHJpY3MuQ2ZuQW5vbWFseURldGVjdG9yLk1ldHJpY1NldFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "metricSetList") @anomaly_detector_description = anomaly_detector_description Jsii::Type.check_type(@anomaly_detector_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "anomalyDetectorDescription") unless @anomaly_detector_description.nil? @anomaly_detector_name = anomaly_detector_name Jsii::Type.check_type(@anomaly_detector_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "anomalyDetectorName") unless @anomaly_detector_name.nil? @kms_key_arn = kms_key_arn Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19rbXMuSUtleVJlZiJ9XX19")), "kmsKeyArn") unless @kms_key_arn.nil? end |
Instance Attribute Details
#anomaly_detector_config ⇒ AWSCDK::IResolvable, AWSCDK::LookoutMetrics::CfnAnomalyDetector::AnomalyDetectorConfigProperty (readonly)
Contains information about the configuration of the anomaly detector.
31 32 33 |
# File 'lookout_metrics/cfn_anomaly_detector_props.rb', line 31 def anomaly_detector_config @anomaly_detector_config end |
#anomaly_detector_description ⇒ String? (readonly)
A description of the detector.
41 42 43 |
# File 'lookout_metrics/cfn_anomaly_detector_props.rb', line 41 def anomaly_detector_description @anomaly_detector_description end |
#anomaly_detector_name ⇒ String? (readonly)
The name of the detector.
46 47 48 |
# File 'lookout_metrics/cfn_anomaly_detector_props.rb', line 46 def anomaly_detector_name @anomaly_detector_name end |
#kms_key_arn ⇒ String, ... (readonly)
The ARN of the KMS key to use to encrypt your data.
51 52 53 |
# File 'lookout_metrics/cfn_anomaly_detector_props.rb', line 51 def kms_key_arn @kms_key_arn end |
#metric_set_list ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::LookoutMetrics::CfnAnomalyDetector::MetricSetProperty> (readonly)
The detector's dataset.
36 37 38 |
# File 'lookout_metrics/cfn_anomaly_detector_props.rb', line 36 def metric_set_list @metric_set_list end |
Class Method Details
.jsii_properties ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'lookout_metrics/cfn_anomaly_detector_props.rb', line 53 def self.jsii_properties { :anomaly_detector_config => "anomalyDetectorConfig", :metric_set_list => "metricSetList", :anomaly_detector_description => "anomalyDetectorDescription", :anomaly_detector_name => "anomalyDetectorName", :kms_key_arn => "kmsKeyArn", } end |
Instance Method Details
#to_jsii ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 |
# File 'lookout_metrics/cfn_anomaly_detector_props.rb', line 63 def to_jsii result = {} result.merge!({ "anomalyDetectorConfig" => @anomaly_detector_config, "metricSetList" => @metric_set_list, "anomalyDetectorDescription" => @anomaly_detector_description, "anomalyDetectorName" => @anomaly_detector_name, "kmsKeyArn" => @kms_key_arn, }) result.compact end |