Class: AWSCDK::Bedrock::CfnFlowAlias::FlowAliasConcurrencyConfigurationProperty

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

Overview

Determines how multiple nodes in a flow can run in parallel.

Running nodes concurrently can improve your flow's performance.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, max_concurrency: nil) ⇒ FlowAliasConcurrencyConfigurationProperty

Returns a new instance of FlowAliasConcurrencyConfigurationProperty.

Parameters:

  • type (String)

    The type of concurrency to use for parallel node execution. Specify one of the following options:.

  • max_concurrency (Numeric, nil) (defaults to: nil)

    The maximum number of nodes that can be executed concurrently in the flow.



621
622
623
624
625
626
# File 'bedrock/cfn_flow_alias.rb', line 621

def initialize(type:, max_concurrency: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @max_concurrency = max_concurrency
  Jsii::Type.check_type(@max_concurrency, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxConcurrency") unless @max_concurrency.nil?
end

Instance Attribute Details

#max_concurrencyNumeric? (readonly)

The maximum number of nodes that can be executed concurrently in the flow.



640
641
642
# File 'bedrock/cfn_flow_alias.rb', line 640

def max_concurrency
  @max_concurrency
end

#typeString (readonly)

The type of concurrency to use for parallel node execution. Specify one of the following options:.

  • Automatic - Amazon Bedrock determines which nodes can be executed in parallel based on the flow definition and its dependencies.
  • Manual - You specify which nodes can be executed in parallel.


635
636
637
# File 'bedrock/cfn_flow_alias.rb', line 635

def type
  @type
end

Class Method Details

.jsii_propertiesObject



642
643
644
645
646
647
# File 'bedrock/cfn_flow_alias.rb', line 642

def self.jsii_properties
  {
    :type => "type",
    :max_concurrency => "maxConcurrency",
  }
end

Instance Method Details

#to_jsiiObject



649
650
651
652
653
654
655
656
# File 'bedrock/cfn_flow_alias.rb', line 649

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "maxConcurrency" => @max_concurrency,
  })
  result.compact
end