@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.355Z") @Stability(value=Stable) public interface CfnFeatureProps extends software.amazon.jsii.JsiiSerializable
Example:
// 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.*;
CfnFeatureProps cfnFeatureProps = CfnFeatureProps.builder()
.name("name")
.project("project")
.variations(List.of(VariationObjectProperty.builder()
.booleanValue(false)
.doubleValue(123)
.longValue(123)
.stringValue("stringValue")
.variationName("variationName")
.build()))
// the properties below are optional
.defaultVariation("defaultVariation")
.description("description")
.entityOverrides(List.of(EntityOverrideProperty.builder()
.entityId("entityId")
.variation("variation")
.build()))
.evaluationStrategy("evaluationStrategy")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnFeatureProps.Builder
A builder for
CfnFeatureProps |
static class |
CfnFeatureProps.Jsii$Proxy
An implementation for
CfnFeatureProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnFeatureProps.Builder |
builder() |
default String |
getDefaultVariation()
The name of the variation to use as the default variation.
|
default String |
getDescription()
An optional description of the feature.
|
default Object |
getEntityOverrides()
Specify users that should always be served a specific variation of a feature.
|
default String |
getEvaluationStrategy()
Specify `ALL_RULES` to activate the traffic allocation specified by any ongoing launches or experiments.
|
String |
getName()
The name for the feature.
|
String |
getProject()
The name or ARN of the project that is to contain the new feature.
|
default List<CfnTag> |
getTags()
Assigns one or more tags (key-value pairs) to the feature.
|
Object |
getVariations()
An array of structures that contain the configuration of the feature's different variations.
|
@Stability(value=Stable) @NotNull String getName()
It can include up to 127 characters.
@Stability(value=Stable) @NotNull String getProject()
@Stability(value=Stable) @NotNull Object getVariations()
Each VariationObject in the Variations array for a feature must have the same type of value ( BooleanValue , DoubleValue , LongValue or StringValue ).
@Stability(value=Stable) @Nullable default String getDefaultVariation()
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.
@Stability(value=Stable) @Nullable default String getDescription()
@Stability(value=Stable) @Nullable default Object getEntityOverrides()
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.
@Stability(value=Stable) @Nullable default String getEvaluationStrategy()
Specify DEFAULT_VARIATION to serve the default variation to all users instead.
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
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 .
@Stability(value=Stable) static CfnFeatureProps.Builder builder()
CfnFeatureProps.Builder of CfnFeaturePropsCopyright © 2022. All rights reserved.