AWS::Evidently::FeatureCreates or updates an Evidently *feature* that you want to launch or test. You can define up to five variations of a feature, and use these variations in your launches and experiments. A feature must be created in a project. For information about creating a project, see [CreateProject](https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_CreateProject.html) .
import { CfnFeature } from 'aws-cdk-lib/aws-evidently';Or use the module namespace:
import * as evidently from 'aws-cdk-lib/aws-evidently';
// evidently.CfnFeatureConfiguration passed to the constructor as CfnFeatureProps.
nameRequiredstringThe name for the feature. It can include up to 127 characters.
projectRequiredstring | IProjectRefThe name or ARN of the project that is to contain the new feature.
variationsRequiredIResolvable | IResolvable | VariationObjectProperty[]An array of structures that contain the configuration of the feature's different variations. Each `VariationObject` in the `Variations` array for a feature must have the same type of value ( `BooleanValue` , `DoubleValue` , `LongValue` or `StringValue` ).
defaultVariationOptionalstringThe name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature. This variation must also be listed in the `Variations` structure. If you omit `DefaultVariation` , the first variation listed in the `Variations` structure is used as the default variation.
descriptionOptionalstringAn optional description of the feature.
entityOverridesOptionalIResolvable | IResolvable | EntityOverrideProperty[]Specify users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.
evaluationStrategyOptionalstringSpecify `ALL_RULES` to activate the traffic allocation specified by any ongoing launches or experiments. Specify `DEFAULT_VARIATION` to serve the default variation to all users instead.
tagsOptionalCfnTag[]Assigns one or more tags (key-value pairs) to the feature. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters. You can associate as many as 50 tags with a feature. For more information, see [Tagging AWS resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) .
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-evidentlyAWS::Evidently::Feature