Class: AWSCDK::LookoutMetrics::CfnAlert::LambdaConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LookoutMetrics::CfnAlert::LambdaConfigurationProperty
- Defined in:
- lookout_metrics/cfn_alert.rb
Overview
Contains information about a Lambda configuration.
Instance Attribute Summary collapse
-
#lambda_arn ⇒ String
readonly
The ARN of the Lambda function.
-
#role_arn ⇒ String
readonly
The ARN of an IAM role that has permission to invoke the Lambda function.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(lambda_arn:, role_arn:) ⇒ LambdaConfigurationProperty
constructor
A new instance of LambdaConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(lambda_arn:, role_arn:) ⇒ LambdaConfigurationProperty
Returns a new instance of LambdaConfigurationProperty.
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_arn ⇒ String (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_arn ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |