aws-cdk-lib.aws_evidently.CfnFeature.VariationObjectProperty

interface VariationObjectProperty

LanguageType name
.NETAmazon.CDK.AWS.Evidently.CfnFeature.VariationObjectProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsevidently#CfnFeature_VariationObjectProperty
Javasoftware.amazon.awscdk.services.evidently.CfnFeature.VariationObjectProperty
Pythonaws_cdk.aws_evidently.CfnFeature.VariationObjectProperty
TypeScript aws-cdk-lib » aws_evidently » CfnFeature » VariationObjectProperty

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

// 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

NameTypeDescription
variationNamestringA name for the variation.
booleanValue?boolean | IResolvableThe value assigned to this variation, if the variation type is boolean.
doubleValue?numberThe value assigned to this variation, if the variation type is a double.
longValue?numberThe value assigned to this variation, if the variation type is a long.
stringValue?stringThe value assigned to this variation, if the variation type is a string.

variationName

Type: string

A name for the variation.

It can include up to 127 characters.


booleanValue?

Type: boolean | IResolvable (optional)

The value assigned to this variation, if the variation type is boolean.


doubleValue?

Type: number (optional)

The value assigned to this variation, if the variation type is a double.


longValue?

Type: number (optional)

The value assigned to this variation, if the variation type is a long.


stringValue?

Type: string (optional)

The value assigned to this variation, if the variation type is a string.