Class: AWSCDK::Bedrock::CfnFlowVersion::InlineCodeFlowNodeConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_flow_version.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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code:, language:) ⇒ InlineCodeFlowNodeConfigurationProperty

Returns a new instance of InlineCodeFlowNodeConfigurationProperty.

Parameters:

  • code (String)

    The code that's executed in your inline code node.

  • language (String)

    The programming language used by your inline code node.



1398
1399
1400
1401
1402
1403
# File 'bedrock/cfn_flow_version.rb', line 1398

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

#codeString (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.



1413
1414
1415
# File 'bedrock/cfn_flow_version.rb', line 1413

def code
  @code
end

#languageString (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.



1420
1421
1422
# File 'bedrock/cfn_flow_version.rb', line 1420

def language
  @language
end

Class Method Details

.jsii_propertiesObject



1422
1423
1424
1425
1426
1427
# File 'bedrock/cfn_flow_version.rb', line 1422

def self.jsii_properties
  {
    :code => "code",
    :language => "language",
  }
end

Instance Method Details

#to_jsiiObject



1429
1430
1431
1432
1433
1434
1435
1436
# File 'bedrock/cfn_flow_version.rb', line 1429

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