Class: AWSCDK::Bedrock::CfnFlowVersion::FlowConnectionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_flow_version.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::CfnFlowVersion::FlowConnectionConfigurationProperty, nil) (defaults to: nil)

    The configuration of the connection.



807
808
809
810
811
812
813
814
815
816
817
818
# File 'bedrock/cfn_flow_version.rb', line 807

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::CfnFlowVersion::FlowConnectionConfigurationProperty.new(**configuration.transform_keys(&:to_sym)) : configuration
  Jsii::Type.check_type(@configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkZsb3dWZXJzaW9uLkZsb3dDb25uZWN0aW9uQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "configuration") unless @configuration.nil?
end

Instance Attribute Details

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

The configuration of the connection.



844
845
846
# File 'bedrock/cfn_flow_version.rb', line 844

def configuration
  @configuration
end

#nameString (readonly)

A name for the connection that you can reference.



824
825
826
# File 'bedrock/cfn_flow_version.rb', line 824

def name
  @name
end

#sourceString (readonly)

The node that the connection starts at.



829
830
831
# File 'bedrock/cfn_flow_version.rb', line 829

def source
  @source
end

#targetString (readonly)

The node that the connection ends at.



834
835
836
# File 'bedrock/cfn_flow_version.rb', line 834

def target
  @target
end

#typeString (readonly)

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



839
840
841
# File 'bedrock/cfn_flow_version.rb', line 839

def type
  @type
end

Class Method Details

.jsii_propertiesObject



846
847
848
849
850
851
852
853
854
# File 'bedrock/cfn_flow_version.rb', line 846

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

Instance Method Details

#to_jsiiObject



856
857
858
859
860
861
862
863
864
865
866
# File 'bedrock/cfn_flow_version.rb', line 856

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