Class: AWSCDK::Evidently::CfnLaunch::GroupToWeightProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Evidently::CfnLaunch::GroupToWeightProperty
- Defined in:
- evidently/cfn_launch.rb
Overview
A structure containing the percentage of launch traffic to allocate to one launch group.
Instance Attribute Summary collapse
-
#group_name ⇒ String
readonly
The name of the launch group.
-
#split_weight ⇒ Numeric
readonly
The portion of launch traffic to allocate to this launch group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(group_name:, split_weight:) ⇒ GroupToWeightProperty
constructor
A new instance of GroupToWeightProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(group_name:, split_weight:) ⇒ GroupToWeightProperty
Returns a new instance of GroupToWeightProperty.
686 687 688 689 690 691 |
# File 'evidently/cfn_launch.rb', line 686 def initialize(group_name:, split_weight:) @group_name = group_name Jsii::Type.check_type(@group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupName") @split_weight = split_weight Jsii::Type.check_type(@split_weight, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "splitWeight") end |
Instance Attribute Details
#group_name ⇒ String (readonly)
The name of the launch group.
It can include up to 127 characters.
699 700 701 |
# File 'evidently/cfn_launch.rb', line 699 def group_name @group_name end |
#split_weight ⇒ Numeric (readonly)
The portion of launch traffic to allocate to this launch group.
This is represented in thousandths of a percent. For example, specify 20,000 to allocate 20% of the launch audience to this launch group.
706 707 708 |
# File 'evidently/cfn_launch.rb', line 706 def split_weight @split_weight end |
Class Method Details
.jsii_properties ⇒ Object
708 709 710 711 712 713 |
# File 'evidently/cfn_launch.rb', line 708 def self.jsii_properties { :group_name => "groupName", :split_weight => "splitWeight", } end |
Instance Method Details
#to_jsii ⇒ Object
715 716 717 718 719 720 721 722 |
# File 'evidently/cfn_launch.rb', line 715 def to_jsii result = {} result.merge!({ "groupName" => @group_name, "splitWeight" => @split_weight, }) result.compact end |