Class: AWSCDK::Bedrock::CfnFlow::FlowConditionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_flow.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.



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

#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 .



826
827
828
# File 'bedrock/cfn_flow.rb', line 826

def expression
  @expression
end

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



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_jsiiObject



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