Class: AWSCDK::Evidently::CfnLaunch::GroupToWeightProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(group_name:, split_weight:) ⇒ GroupToWeightProperty

Returns a new instance of GroupToWeightProperty.

Parameters:

  • group_name (String)

    The name of the launch group.

  • split_weight (Numeric)

    The portion of launch traffic to allocate to this launch group.



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_nameString (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_weightNumeric (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_propertiesObject



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_jsiiObject



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