Class: AWSCDK::LookoutMetrics::CfnAnomalyDetector::CloudwatchConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lookout_metrics/cfn_anomaly_detector.rb

Overview

Details about an Amazon CloudWatch datasource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role_arn:) ⇒ CloudwatchConfigProperty

Returns a new instance of CloudwatchConfigProperty.

Parameters:

  • role_arn (String)

    An IAM role that gives Amazon Lookout for Metrics permission to access data in Amazon CloudWatch.



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_arnString (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_propertiesObject



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_jsiiObject



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