Skip to content
v2.277.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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_evidently as evidently

variation_object_property = evidently.CfnFeature.VariationObjectProperty(
    variation_name="variationName",

    # the properties below are optional
    boolean_value=False,
    double_value=123,
    long_value=123,
    string_value="stringValue"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.evidently.*;

VariationObjectProperty variationObjectProperty = VariationObjectProperty.builder()
        .variationName("variationName")

        // the properties below are optional
        .booleanValue(false)
        .doubleValue(123)
        .longValue(123)
        .stringValue("stringValue")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Evidently;

var variationObjectProperty = new VariationObjectProperty {
    VariationName = "variationName",

    // the properties below are optional
    BooleanValue = false,
    DoubleValue = 123,
    LongValue = 123,
    StringValue = "stringValue"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

variationObjectProperty := &VariationObjectProperty{
	VariationName: jsii.String("variationName"),

	// the properties below are optional
	BooleanValue: jsii.Boolean(false),
	DoubleValue: jsii.Number(123),
	LongValue: jsii.Number(123),
	StringValue: jsii.String("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*string required #
A name for the variation.

It can include up to 127 characters.