Class: AWSCDK::Bedrock::CfnFlow::LambdaFunctionFlowNodeConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_flow.rb

Overview

Contains configurations for a Lambda function node in the flow.

You specify the Lambda function to invoke and the inputs into the function. The output is the response that is defined in the Lambda function. For more information, see Node types in a flow in the Amazon Bedrock User Guide.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lambda_arn:) ⇒ LambdaFunctionFlowNodeConfigurationProperty

Returns a new instance of LambdaFunctionFlowNodeConfigurationProperty.

Parameters:

  • lambda_arn (String)

    The Amazon Resource Name (ARN) of the Lambda function to invoke.



1828
1829
1830
1831
# File 'bedrock/cfn_flow.rb', line 1828

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

Instance Attribute Details

#lambda_arnString (readonly)

The Amazon Resource Name (ARN) of the Lambda function to invoke.



1837
1838
1839
# File 'bedrock/cfn_flow.rb', line 1837

def lambda_arn
  @lambda_arn
end

Class Method Details

.jsii_propertiesObject



1839
1840
1841
1842
1843
# File 'bedrock/cfn_flow.rb', line 1839

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

Instance Method Details

#to_jsiiObject



1845
1846
1847
1848
1849
1850
1851
# File 'bedrock/cfn_flow.rb', line 1845

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