Class: AWSCDK::Bedrock::CfnFlowVersion::FlowConditionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnFlowVersion::FlowConditionProperty
- Defined in:
- bedrock/cfn_flow_version.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.
681 682 683 684 685 686 |
# File 'bedrock/cfn_flow_version.rb', line 681 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 .
699 700 701 |
# File 'bedrock/cfn_flow_version.rb', line 699 def expression @expression end |
#name ⇒ String (readonly)
A name for the condition that you can reference.
692 693 694 |
# File 'bedrock/cfn_flow_version.rb', line 692 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
701 702 703 704 705 706 |
# File 'bedrock/cfn_flow_version.rb', line 701 def self.jsii_properties { :name => "name", :expression => "expression", } end |
Instance Method Details
#to_jsii ⇒ Object
708 709 710 711 712 713 714 715 |
# File 'bedrock/cfn_flow_version.rb', line 708 def to_jsii result = {} result.merge!({ "name" => @name, "expression" => @expression, }) result.compact end |