Class: AWSCDK::LookoutMetrics::CfnAlert::LambdaConfigurationProperty

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

Overview

Contains information about a Lambda configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lambda_arn:, role_arn:) ⇒ LambdaConfigurationProperty

Returns a new instance of LambdaConfigurationProperty.

Parameters:

  • lambda_arn (String)

    The ARN of the Lambda function.

  • role_arn (String)

    The ARN of an IAM role that has permission to invoke the Lambda function.



610
611
612
613
614
615
# File 'lookout_metrics/cfn_alert.rb', line 610

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

Instance Attribute Details

#lambda_arnString (readonly)

The ARN of the Lambda function.



621
622
623
# File 'lookout_metrics/cfn_alert.rb', line 621

def lambda_arn
  @lambda_arn
end

#role_arnString (readonly)

The ARN of an IAM role that has permission to invoke the Lambda function.



626
627
628
# File 'lookout_metrics/cfn_alert.rb', line 626

def role_arn
  @role_arn
end

Class Method Details

.jsii_propertiesObject



628
629
630
631
632
633
# File 'lookout_metrics/cfn_alert.rb', line 628

def self.jsii_properties
  {
    :lambda_arn => "lambdaArn",
    :role_arn => "roleArn",
  }
end

Instance Method Details

#to_jsiiObject



635
636
637
638
639
640
641
642
# File 'lookout_metrics/cfn_alert.rb', line 635

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