Class: AWSCDK::Bedrock::CfnFlow::FlowNodeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnFlow::FlowNodeProperty
- Defined in:
- bedrock/cfn_flow.rb
Overview
Contains configurations about a node in the flow.
Instance Attribute Summary collapse
-
#configuration ⇒ AWSCDK::IResolvable, ...
readonly
Contains configurations for the node.
-
#inputs ⇒ AWSCDK::IResolvable, ...
readonly
An array of objects, each of which contains information about an input into the node.
-
#name ⇒ String
readonly
A name for the node.
-
#outputs ⇒ AWSCDK::IResolvable, ...
readonly
A list of objects, each of which contains information about an output from the node.
-
#type ⇒ String
readonly
The type of node.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, type:, configuration: nil, inputs: nil, outputs: nil) ⇒ FlowNodeProperty
constructor
A new instance of FlowNodeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, type:, configuration: nil, inputs: nil, outputs: nil) ⇒ FlowNodeProperty
Returns a new instance of FlowNodeProperty.
1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 |
# File 'bedrock/cfn_flow.rb', line 1422 def initialize(name:, type:, configuration: nil, inputs: nil, outputs: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @configuration = configuration.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnFlow::FlowNodeConfigurationProperty.new(**configuration.transform_keys(&:to_sym)) : configuration Jsii::Type.check_type(@configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkZsb3cuRmxvd05vZGVDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "configuration") unless @configuration.nil? @inputs = inputs Jsii::Type.check_type(@inputs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5GbG93LkZsb3dOb2RlSW5wdXRQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "inputs") unless @inputs.nil? @outputs = outputs Jsii::Type.check_type(@outputs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5GbG93LkZsb3dOb2RlT3V0cHV0UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "outputs") unless @outputs.nil? end |
Instance Attribute Details
#configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Contains configurations for the node.
1451 1452 1453 |
# File 'bedrock/cfn_flow.rb', line 1451 def configuration @configuration end |
#inputs ⇒ AWSCDK::IResolvable, ... (readonly)
An array of objects, each of which contains information about an input into the node.
1456 1457 1458 |
# File 'bedrock/cfn_flow.rb', line 1456 def inputs @inputs end |
#name ⇒ String (readonly)
A name for the node.
1439 1440 1441 |
# File 'bedrock/cfn_flow.rb', line 1439 def name @name end |
#outputs ⇒ AWSCDK::IResolvable, ... (readonly)
A list of objects, each of which contains information about an output from the node.
1461 1462 1463 |
# File 'bedrock/cfn_flow.rb', line 1461 def outputs @outputs end |
#type ⇒ String (readonly)
The type of node.
This value must match the name of the key that you provide in the configuration you provide in the FlowNodeConfiguration field.
1446 1447 1448 |
# File 'bedrock/cfn_flow.rb', line 1446 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
1463 1464 1465 1466 1467 1468 1469 1470 1471 |
# File 'bedrock/cfn_flow.rb', line 1463 def self.jsii_properties { :name => "name", :type => "type", :configuration => "configuration", :inputs => "inputs", :outputs => "outputs", } end |
Instance Method Details
#to_jsii ⇒ Object
1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 |
# File 'bedrock/cfn_flow.rb', line 1473 def to_jsii result = {} result.merge!({ "name" => @name, "type" => @type, "configuration" => @configuration, "inputs" => @inputs, "outputs" => @outputs, }) result.compact end |