Class: AWSCDK::Bedrock::CfnFlow::FlowConnectionProperty

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

Overview

Contains information about a connection between two nodes in the flow.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, source:, target:, type:, configuration: nil) ⇒ FlowConnectionProperty

Returns a new instance of FlowConnectionProperty.

Parameters:

  • name (String)

    A name for the connection that you can reference.

  • source (String)

    The node that the connection starts at.

  • target (String)

    The node that the connection ends at.

  • type (String)

    Whether the source node that the connection begins from is a condition node ( Conditional ) or not ( Data ).

  • configuration (AWSCDK::IResolvable, AWSCDK::Bedrock::CfnFlow::FlowConnectionConfigurationProperty, nil) (defaults to: nil)

    The configuration of the connection.



934
935
936
937
938
939
940
941
942
943
944
945
# File 'bedrock/cfn_flow.rb', line 934

def initialize(name:, source:, target:, type:, configuration: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @source = source
  Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source")
  @target = target
  Jsii::Type.check_type(@target, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "target")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @configuration = configuration.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnFlow::FlowConnectionConfigurationProperty.new(**configuration.transform_keys(&:to_sym)) : configuration
  Jsii::Type.check_type(@configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkZsb3cuRmxvd0Nvbm5lY3Rpb25Db25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "configuration") unless @configuration.nil?
end

Instance Attribute Details

#configurationAWSCDK::IResolvable, ... (readonly)

The configuration of the connection.



971
972
973
# File 'bedrock/cfn_flow.rb', line 971

def configuration
  @configuration
end

#nameString (readonly)

A name for the connection that you can reference.



951
952
953
# File 'bedrock/cfn_flow.rb', line 951

def name
  @name
end

#sourceString (readonly)

The node that the connection starts at.



956
957
958
# File 'bedrock/cfn_flow.rb', line 956

def source
  @source
end

#targetString (readonly)

The node that the connection ends at.



961
962
963
# File 'bedrock/cfn_flow.rb', line 961

def target
  @target
end

#typeString (readonly)

Whether the source node that the connection begins from is a condition node ( Conditional ) or not ( Data ).



966
967
968
# File 'bedrock/cfn_flow.rb', line 966

def type
  @type
end

Class Method Details

.jsii_propertiesObject



973
974
975
976
977
978
979
980
981
# File 'bedrock/cfn_flow.rb', line 973

def self.jsii_properties
  {
    :name => "name",
    :source => "source",
    :target => "target",
    :type => "type",
    :configuration => "configuration",
  }
end

Instance Method Details

#to_jsiiObject



983
984
985
986
987
988
989
990
991
992
993
# File 'bedrock/cfn_flow.rb', line 983

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "source" => @source,
    "target" => @target,
    "type" => @type,
    "configuration" => @configuration,
  })
  result.compact
end