Class: AWSCDK::Bedrock::CfnFlow::FlowConditionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnFlow::FlowConditionProperty
- Defined in:
- bedrock/cfn_flow.rb
Overview
Defines a condition in the condition node.
Instance Attribute Summary collapse
-
#expression ⇒ String?
readonly
Defines the condition.
-
#name ⇒ String
readonly
A name for the condition that you can reference.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, expression: nil) ⇒ FlowConditionProperty
constructor
A new instance of FlowConditionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, expression: nil) ⇒ FlowConditionProperty
Returns a new instance of FlowConditionProperty.
808 809 810 811 812 813 |
# File 'bedrock/cfn_flow.rb', line 808 def initialize(name:, expression: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @expression = expression Jsii::Type.check_type(@expression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expression") unless @expression.nil? end |
Instance Attribute Details
#expression ⇒ String? (readonly)
Defines the condition.
You must refer to at least one of the inputs in the condition. For more information, expand the Condition node section in Node types in prompt flows .
826 827 828 |
# File 'bedrock/cfn_flow.rb', line 826 def expression @expression end |
#name ⇒ String (readonly)
A name for the condition that you can reference.
819 820 821 |
# File 'bedrock/cfn_flow.rb', line 819 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
828 829 830 831 832 833 |
# File 'bedrock/cfn_flow.rb', line 828 def self.jsii_properties { :name => "name", :expression => "expression", } end |
Instance Method Details
#to_jsii ⇒ Object
835 836 837 838 839 840 841 842 |
# File 'bedrock/cfn_flow.rb', line 835 def to_jsii result = {} result.merge!({ "name" => @name, "expression" => @expression, }) result.compact end |