Class: AWSCDK::Bedrock::CfnFlowVersion::FlowConditionProperty

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

Overview

Defines a condition in the condition node.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, expression: nil) ⇒ FlowConditionProperty

Returns a new instance of FlowConditionProperty.

Parameters:

  • name (String)

    A name for the condition that you can reference.

  • expression (String, nil) (defaults to: nil)

    Defines the condition.



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

#expressionString? (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

#nameString (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_propertiesObject



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_jsiiObject



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