Class: AWSCDK::Evidently::CfnLaunch::StepConfigProperty

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

Overview

A structure that defines when each step of the launch is to start, and how much launch traffic is to be allocated to each variation during each step.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(group_weights:, start_time:, segment_overrides: nil) ⇒ StepConfigProperty

Returns a new instance of StepConfigProperty.

Parameters:



943
944
945
946
947
948
949
950
# File 'evidently/cfn_launch.rb', line 943

def initialize(group_weights:, start_time:, segment_overrides: nil)
  @group_weights = group_weights
  Jsii::Type.check_type(@group_weights, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZXZpZGVudGx5LkNmbkxhdW5jaC5Hcm91cFRvV2VpZ2h0UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "groupWeights")
  @start_time = start_time
  Jsii::Type.check_type(@start_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "startTime")
  @segment_overrides = segment_overrides
  Jsii::Type.check_type(@segment_overrides, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZXZpZGVudGx5LkNmbkxhdW5jaC5TZWdtZW50T3ZlcnJpZGVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "segmentOverrides") unless @segment_overrides.nil?
end

Instance Attribute Details

#group_weightsAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Evidently::CfnLaunch::GroupToWeightProperty> (readonly)

An array of structures that define how much launch traffic to allocate to each launch group during this step of the launch.



956
957
958
# File 'evidently/cfn_launch.rb', line 956

def group_weights
  @group_weights
end

#segment_overridesAWSCDK::IResolvable, ... (readonly)

An array of structures that you can use to specify different traffic splits for one or more audience segments .

A segment is a portion of your audience that share one or more characteristics. Examples could be Chrome browser users, users in Europe, or Firefox browser users in Europe who also fit other criteria that your application collects, such as age.

For more information, see Use segments to focus your audience .



972
973
974
# File 'evidently/cfn_launch.rb', line 972

def segment_overrides
  @segment_overrides
end

#start_timeString (readonly)

The date and time to start this step of the launch.

Use UTC format, yyyy-MM-ddTHH:mm:ssZ . For example, 2025-11-25T23:59:59Z



963
964
965
# File 'evidently/cfn_launch.rb', line 963

def start_time
  @start_time
end

Class Method Details

.jsii_propertiesObject



974
975
976
977
978
979
980
# File 'evidently/cfn_launch.rb', line 974

def self.jsii_properties
  {
    :group_weights => "groupWeights",
    :start_time => "startTime",
    :segment_overrides => "segmentOverrides",
  }
end

Instance Method Details

#to_jsiiObject



982
983
984
985
986
987
988
989
990
# File 'evidently/cfn_launch.rb', line 982

def to_jsii
  result = {}
  result.merge!({
    "groupWeights" => @group_weights,
    "startTime" => @start_time,
    "segmentOverrides" => @segment_overrides,
  })
  result.compact
end