Skip to content
v2.275.0

VariationObjectProperty Struct ​

This structure contains the name and variation value of one variation of a feature.

It can contain only one of the following parameters: BooleanValue , DoubleValue , LongValue or StringValue .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_evidently as evidently } from 'aws-cdk-lib';
const variationObjectProperty: evidently.CfnFeature.VariationObjectProperty = {
  variationName: 'variationName',

  // the properties below are optional
  booleanValue: false,
  doubleValue: 123,
  longValue: 123,
  stringValue: 'stringValue',
};

Properties ​

booleanValueoptionalboolean | IResolvableboolean_valueoptionaltyping.Union[bool, IResolvable]booleanValueoptionalBooleanBooleanValueoptionalboolBooleanValueoptionalinterface{}#
The value assigned to this variation, if the variation type is boolean.
doubleValueoptionalnumberdouble_valueoptionalint | floatdoubleValueoptionalNumberDoubleValueoptionaldoubleDoubleValueoptional*float64#
The value assigned to this variation, if the variation type is a double.
longValueoptionalnumberlong_valueoptionalint | floatlongValueoptionalNumberLongValueoptionaldoubleLongValueoptional*float64#
The value assigned to this variation, if the variation type is a long.
stringValueoptionalstringstring_valueoptionalstrstringValueoptionalStringStringValueoptionalstringStringValueoptional*string#
The value assigned to this variation, if the variation type is a string.
variationNamestringvariation_namestrvariationNameStringVariationNamestringVariationName*stringrequired#
A name for the variation.

It can include up to 127 characters.