Class: AWSCDK::Bedrock::CfnFlowAlias::FlowAliasConcurrencyConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnFlowAlias::FlowAliasConcurrencyConfigurationProperty
- 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
-
#max_concurrency ⇒ Numeric?
readonly
The maximum number of nodes that can be executed concurrently in the flow.
-
#type ⇒ String
readonly
The type of concurrency to use for parallel node execution.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, max_concurrency: nil) ⇒ FlowAliasConcurrencyConfigurationProperty
constructor
A new instance of FlowAliasConcurrencyConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, max_concurrency: nil) ⇒ FlowAliasConcurrencyConfigurationProperty
Returns a new instance of FlowAliasConcurrencyConfigurationProperty.
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_concurrency ⇒ Numeric? (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 |
#type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |