Skip to content

Bedrock Agent  >  Structures  >  InlineCodeFlowNodeConfiguration

InlineCodeFlowNodeConfiguration

Structure Class

InlineCodeFlowNodeConfiguration dataclass

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.

Attributes

code class-attribute instance-attribute
code: str = field(repr=False, default='')

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.

language class-attribute instance-attribute
language: SupportedLanguages = SupportedLanguages('Python_3')

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.