Class: AWSCDK::Bedrock::CfnFlowVersion::FlowNodeProperty

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

Overview

Contains configurations about a node in the flow.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, type:, configuration: nil, inputs: nil, outputs: nil) ⇒ FlowNodeProperty

Returns a new instance of FlowNodeProperty.

Parameters:



1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
# File 'bedrock/cfn_flow_version.rb', line 1281

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

Instance Attribute Details

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

Contains configurations for the node.



1310
1311
1312
# File 'bedrock/cfn_flow_version.rb', line 1310

def configuration
  @configuration
end

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

An array of objects, each of which contains information about an input into the node.



1315
1316
1317
# File 'bedrock/cfn_flow_version.rb', line 1315

def inputs
  @inputs
end

#nameString (readonly)

A name for the node.



1298
1299
1300
# File 'bedrock/cfn_flow_version.rb', line 1298

def name
  @name
end

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

A list of objects, each of which contains information about an output from the node.



1320
1321
1322
# File 'bedrock/cfn_flow_version.rb', line 1320

def outputs
  @outputs
end

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



1305
1306
1307
# File 'bedrock/cfn_flow_version.rb', line 1305

def type
  @type
end

Class Method Details

.jsii_propertiesObject



1322
1323
1324
1325
1326
1327
1328
1329
1330
# File 'bedrock/cfn_flow_version.rb', line 1322

def self.jsii_properties
  {
    :name => "name",
    :type => "type",
    :configuration => "configuration",
    :inputs => "inputs",
    :outputs => "outputs",
  }
end

Instance Method Details

#to_jsiiObject



1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
# File 'bedrock/cfn_flow_version.rb', line 1332

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