Interface CfnFeatureProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFeatureProps.Jsii$Proxy
CfnFeature.
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()
.variationName("variationName")
// the properties below are optional
.booleanValue(false)
.doubleValue(123)
.longValue(123)
.stringValue("stringValue")
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFeaturePropsstatic final classAn implementation forCfnFeatureProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnFeatureProps.Builderbuilder()default StringThe name of the variation to use as the default variation.default StringAn optional description of the feature.default ObjectSpecify users that should always be served a specific variation of a feature.default StringSpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments.getName()The name for the feature.The name or ARN of the project that is to contain the new feature.getTags()Assigns one or more tags (key-value pairs) to the feature.An array of structures that contain the configuration of the feature's different variations.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name for the feature.It can include up to 127 characters.
- See Also:
-
getProject
The name or ARN of the project that is to contain the new feature.- See Also:
-
getVariations
An array of structures that contain the configuration of the feature's different variations.Each
VariationObjectin theVariationsarray for a feature must have the same type of value (BooleanValue,DoubleValue,LongValueorStringValue).Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnFeature.VariationObjectProperty>- See Also:
-
getDefaultVariation
The 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
Variationsstructure.If you omit
DefaultVariation, the first variation listed in theVariationsstructure is used as the default variation.- See Also:
-
getDescription
An optional description of the feature.- See Also:
-
getEntityOverrides
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.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnFeature.EntityOverrideProperty>- See Also:
-
getEvaluationStrategy
SpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments.Specify
DEFAULT_VARIATIONto serve the default variation to all users instead.- See Also:
-
getTags
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 .
- See Also:
-
builder
- Returns:
- a
CfnFeatureProps.BuilderofCfnFeatureProps
-