Class: AWSCDK::Bedrock::CfnFlowVersion::FlowNodeInputProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnFlowVersion::FlowNodeInputProperty
- Defined in:
- bedrock/cfn_flow_version.rb
Overview
Contains configurations for an input in an Amazon Bedrock Flows node.
Instance Attribute Summary collapse
-
#expression ⇒ String
readonly
An expression that formats the input for the node.
-
#name ⇒ String
readonly
Specifies a name for the input that you can reference.
-
#type ⇒ String
readonly
Specifies the data type of the input.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(expression:, name:, type:) ⇒ FlowNodeInputProperty
constructor
A new instance of FlowNodeInputProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(expression:, name:, type:) ⇒ FlowNodeInputProperty
Returns a new instance of FlowNodeInputProperty.
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
#expression ⇒ String (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 |
#name ⇒ String (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 |
#type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |