Class: AWSCDK::LookoutMetrics::CfnAnomalyDetector::CloudwatchConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LookoutMetrics::CfnAnomalyDetector::CloudwatchConfigProperty
- Defined in:
- lookout_metrics/cfn_anomaly_detector.rb
Overview
Details about an Amazon CloudWatch datasource.
Instance Attribute Summary collapse
-
#role_arn ⇒ String
readonly
An IAM role that gives Amazon Lookout for Metrics permission to access data in Amazon CloudWatch.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(role_arn:) ⇒ CloudwatchConfigProperty
constructor
A new instance of CloudwatchConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(role_arn:) ⇒ CloudwatchConfigProperty
Returns a new instance of CloudwatchConfigProperty.
642 643 644 645 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 642 def initialize(role_arn:) @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") end |
Instance Attribute Details
#role_arn ⇒ String (readonly)
An IAM role that gives Amazon Lookout for Metrics permission to access data in Amazon CloudWatch.
651 652 653 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 651 def role_arn @role_arn end |
Class Method Details
.jsii_properties ⇒ Object
653 654 655 656 657 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 653 def self.jsii_properties { :role_arn => "roleArn", } end |
Instance Method Details
#to_jsii ⇒ Object
659 660 661 662 663 664 665 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 659 def to_jsii result = {} result.merge!({ "roleArn" => @role_arn, }) result.compact end |