Class: AWSCDK::LookoutMetrics::CfnAnomalyDetector::AppFlowConfigProperty

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

Overview

Details about an Amazon AppFlow flow datasource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(flow_name:, role_arn:) ⇒ AppFlowConfigProperty

Returns a new instance of AppFlowConfigProperty.

Parameters:

  • flow_name (String)

    name of the flow.

  • role_arn (String)

    An IAM role that gives Amazon Lookout for Metrics permission to access the flow.



600
601
602
603
604
605
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 600

def initialize(flow_name:, role_arn:)
  @flow_name = flow_name
  Jsii::Type.check_type(@flow_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "flowName")
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
end

Instance Attribute Details

#flow_nameString (readonly)

name of the flow.



611
612
613
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 611

def flow_name
  @flow_name
end

#role_arnString (readonly)

An IAM role that gives Amazon Lookout for Metrics permission to access the flow.



616
617
618
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 616

def role_arn
  @role_arn
end

Class Method Details

.jsii_propertiesObject



618
619
620
621
622
623
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 618

def self.jsii_properties
  {
    :flow_name => "flowName",
    :role_arn => "roleArn",
  }
end

Instance Method Details

#to_jsiiObject



625
626
627
628
629
630
631
632
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 625

def to_jsii
  result = {}
  result.merge!({
    "flowName" => @flow_name,
    "roleArn" => @role_arn,
  })
  result.compact
end