Class: AWSCDK::Evidently::CfnLaunch::LaunchGroupObjectProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
evidently/cfn_launch.rb

Overview

A structure that defines one launch group in a launch.

A launch group is a variation of the feature that you are including in the launch.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(feature:, group_name:, variation:, description: nil) ⇒ LaunchGroupObjectProperty

Returns a new instance of LaunchGroupObjectProperty.

Parameters:

  • feature (String)

    The feature that this launch is using.

  • group_name (String)

    A name for this launch group.

  • variation (String)

    The feature variation to use for this launch group.

  • description (String, nil) (defaults to: nil)

    A description of the launch group.



737
738
739
740
741
742
743
744
745
746
# File 'evidently/cfn_launch.rb', line 737

def initialize(feature:, group_name:, variation:, description: nil)
  @feature = feature
  Jsii::Type.check_type(@feature, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "feature")
  @group_name = group_name
  Jsii::Type.check_type(@group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupName")
  @variation = variation
  Jsii::Type.check_type(@variation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "variation")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

A description of the launch group.



769
770
771
# File 'evidently/cfn_launch.rb', line 769

def description
  @description
end

#featureString (readonly)

The feature that this launch is using.



752
753
754
# File 'evidently/cfn_launch.rb', line 752

def feature
  @feature
end

#group_nameString (readonly)

A name for this launch group.

It can include up to 127 characters.



759
760
761
# File 'evidently/cfn_launch.rb', line 759

def group_name
  @group_name
end

#variationString (readonly)

The feature variation to use for this launch group.



764
765
766
# File 'evidently/cfn_launch.rb', line 764

def variation
  @variation
end

Class Method Details

.jsii_propertiesObject



771
772
773
774
775
776
777
778
# File 'evidently/cfn_launch.rb', line 771

def self.jsii_properties
  {
    :feature => "feature",
    :group_name => "groupName",
    :variation => "variation",
    :description => "description",
  }
end

Instance Method Details

#to_jsiiObject



780
781
782
783
784
785
786
787
788
789
# File 'evidently/cfn_launch.rb', line 780

def to_jsii
  result = {}
  result.merge!({
    "feature" => @feature,
    "groupName" => @group_name,
    "variation" => @variation,
    "description" => @description,
  })
  result.compact
end