Class: AWSCDK::Bedrock::CfnFlow::InlineCodeFlowNodeConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnFlow::InlineCodeFlowNodeConfigurationProperty
- Defined in:
- bedrock/cfn_flow.rb
Overview
Contains configurations for an inline code node in your flow.
Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.
Instance Attribute Summary collapse
-
#code ⇒ String
readonly
The code that's executed in your inline code node.
-
#language ⇒ String
readonly
The programming language used by your inline code node.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code:, language:) ⇒ InlineCodeFlowNodeConfigurationProperty
constructor
A new instance of InlineCodeFlowNodeConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(code:, language:) ⇒ InlineCodeFlowNodeConfigurationProperty
Returns a new instance of InlineCodeFlowNodeConfigurationProperty.
1577 1578 1579 1580 1581 1582 |
# File 'bedrock/cfn_flow.rb', line 1577 def initialize(code:, language:) @code = code Jsii::Type.check_type(@code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "code") @language = language Jsii::Type.check_type(@language, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "language") end |
Instance Attribute Details
#code ⇒ String (readonly)
The code that's executed in your inline code node.
The code can access input data from previous nodes in the flow, perform operations on that data, and produce output that can be used by other nodes in your flow.
The code must be valid in the programming language that you specify.
1592 1593 1594 |
# File 'bedrock/cfn_flow.rb', line 1592 def code @code end |
#language ⇒ String (readonly)
The programming language used by your inline code node.
The code must be valid in the programming language that you specify. Currently, only Python 3 ( Python_3 ) is supported.
1599 1600 1601 |
# File 'bedrock/cfn_flow.rb', line 1599 def language @language end |
Class Method Details
.jsii_properties ⇒ Object
1601 1602 1603 1604 1605 1606 |
# File 'bedrock/cfn_flow.rb', line 1601 def self.jsii_properties { :code => "code", :language => "language", } end |
Instance Method Details
#to_jsii ⇒ Object
1608 1609 1610 1611 1612 1613 1614 1615 |
# File 'bedrock/cfn_flow.rb', line 1608 def to_jsii result = {} result.merge!({ "code" => @code, "language" => @language, }) result.compact end |