interface VariationObjectProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Evidently.CfnFeature.VariationObjectProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsevidently#CfnFeature_VariationObjectProperty |
Java | software.amazon.awscdk.services.evidently.CfnFeature.VariationObjectProperty |
Python | aws_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
Name | Type | Description |
---|---|---|
variation | string | A name for the variation. |
boolean | boolean | IResolvable | The value assigned to this variation, if the variation type is boolean. |
double | number | The value assigned to this variation, if the variation type is a double. |
long | number | The value assigned to this variation, if the variation type is a long. |
string | string | The 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.