Class: AWSCDK::StepFunctions::CfnStateMachineAlias::RoutingConfigurationVersionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctions::CfnStateMachineAlias::RoutingConfigurationVersionProperty
- Defined in:
- step_functions/cfn_state_machine_alias.rb
Overview
The state machine version to which you want to route the execution traffic.
Instance Attribute Summary collapse
-
#state_machine_version_arn ⇒ String
readonly
The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration.
-
#weight ⇒ Numeric
readonly
The percentage of traffic you want to route to the state machine version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(state_machine_version_arn:, weight:) ⇒ RoutingConfigurationVersionProperty
constructor
A new instance of RoutingConfigurationVersionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(state_machine_version_arn:, weight:) ⇒ RoutingConfigurationVersionProperty
Returns a new instance of RoutingConfigurationVersionProperty.
653 654 655 656 657 658 |
# File 'step_functions/cfn_state_machine_alias.rb', line 653 def initialize(state_machine_version_arn:, weight:) @state_machine_version_arn = state_machine_version_arn Jsii::Type.check_type(@state_machine_version_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stateMachineVersionArn") @weight = weight Jsii::Type.check_type(@weight, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "weight") end |
Instance Attribute Details
#state_machine_version_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration.
If you specify the ARN of a second version, it must belong to the same state machine as the first version.
666 667 668 |
# File 'step_functions/cfn_state_machine_alias.rb', line 666 def state_machine_version_arn @state_machine_version_arn end |
#weight ⇒ Numeric (readonly)
The percentage of traffic you want to route to the state machine version.
The sum of the weights in the routing configuration must be equal to 100.
673 674 675 |
# File 'step_functions/cfn_state_machine_alias.rb', line 673 def weight @weight end |
Class Method Details
.jsii_properties ⇒ Object
675 676 677 678 679 680 |
# File 'step_functions/cfn_state_machine_alias.rb', line 675 def self.jsii_properties { :state_machine_version_arn => "stateMachineVersionArn", :weight => "weight", } end |
Instance Method Details
#to_jsii ⇒ Object
682 683 684 685 686 687 688 689 |
# File 'step_functions/cfn_state_machine_alias.rb', line 682 def to_jsii result = {} result.merge!({ "stateMachineVersionArn" => @state_machine_version_arn, "weight" => @weight, }) result.compact end |