Class: AWSCDK::StepFunctions::CfnStateMachineAlias::RoutingConfigurationVersionProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(state_machine_version_arn:, weight:) ⇒ RoutingConfigurationVersionProperty

Returns a new instance of RoutingConfigurationVersionProperty.

Parameters:

  • state_machine_version_arn (String)

    The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration.

  • weight (Numeric)

    The percentage of traffic you want to route to the state machine version.



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_arnString (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

#weightNumeric (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_propertiesObject



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_jsiiObject



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