Class: AWSCDK::Bedrock::CfnFlowVersion::FlowNodeInputProperty

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

Overview

Contains configurations for an input in an Amazon Bedrock Flows node.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expression:, name:, type:) ⇒ FlowNodeInputProperty

Returns a new instance of FlowNodeInputProperty.

Parameters:

  • expression (String)

    An expression that formats the input for the node.

  • name (String)

    Specifies a name for the input that you can reference.

  • type (String)

    Specifies the data type of the input.



1177
1178
1179
1180
1181
1182
1183
1184
# File 'bedrock/cfn_flow_version.rb', line 1177

def initialize(expression:, name:, type:)
  @expression = expression
  Jsii::Type.check_type(@expression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expression")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#expressionString (readonly)

An expression that formats the input for the node.

For an explanation of how to create expressions, see Expressions in Prompt flows in Amazon Bedrock .



1192
1193
1194
# File 'bedrock/cfn_flow_version.rb', line 1192

def expression
  @expression
end

#nameString (readonly)

Specifies a name for the input that you can reference.



1197
1198
1199
# File 'bedrock/cfn_flow_version.rb', line 1197

def name
  @name
end

#typeString (readonly)

Specifies the data type of the input.

If the input doesn't match this type at runtime, a validation error will be thrown.



1204
1205
1206
# File 'bedrock/cfn_flow_version.rb', line 1204

def type
  @type
end

Class Method Details

.jsii_propertiesObject



1206
1207
1208
1209
1210
1211
1212
# File 'bedrock/cfn_flow_version.rb', line 1206

def self.jsii_properties
  {
    :expression => "expression",
    :name => "name",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



1214
1215
1216
1217
1218
1219
1220
1221
1222
# File 'bedrock/cfn_flow_version.rb', line 1214

def to_jsii
  result = {}
  result.merge!({
    "expression" => @expression,
    "name" => @name,
    "type" => @type,
  })
  result.compact
end