Class CfnFeature
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.evidently.CfnFeature
- All Implemented Interfaces:
IInspectable,ITaggable,IFeatureRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:11.345Z")
@Stability(Stable)
public class CfnFeature
extends CfnResource
implements IInspectable, IFeatureRef, ITaggable
Creates 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 .
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.*;
CfnFeature cfnFeature = CfnFeature.Builder.create(this, "MyCfnFeature")
.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 TypeClassDescriptionstatic final classA fluent builder forCfnFeature.static interfaceA set of key-value pairs that specify users who should always be served a specific variation of a feature.static interfaceThis structure contains the name and variation value of one variation of a feature.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.evidently.IFeatureRef
IFeatureRef.Jsii$Default, IFeatureRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnFeature(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFeature(software.amazon.jsii.JsiiObjectRef objRef) CfnFeature(software.constructs.Construct scope, String id, CfnFeatureProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the feature.The name of the variation to use as the default variation.An optional description of the feature.Specify users that should always be served a specific variation of a feature.SpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments.A reference to a Feature resource.getName()The name for the feature.The name or ARN of the project that is to contain the new feature.getTags()Tag Manager which manages the tags for this resource.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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDefaultVariation(String value) The name of the variation to use as the default variation.voidsetDescription(String value) An optional description of the feature.voidsetEntityOverrides(List<Object> value) Specify users that should always be served a specific variation of a feature.voidsetEntityOverrides(IResolvable value) Specify users that should always be served a specific variation of a feature.voidsetEvaluationStrategy(String value) SpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments.voidThe name for the feature.voidsetProject(String value) The name or ARN of the project that is to contain the new feature.voidsetTagsRaw(List<CfnTag> value) Assigns one or more tags (key-value pairs) to the feature.voidsetVariations(List<Object> value) An array of structures that contain the configuration of the feature's different variations.voidsetVariations(IResolvable value) An array of structures that contain the configuration of the feature's different variations.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnFeature
protected CfnFeature(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFeature
protected CfnFeature(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFeature
@Stability(Stable) public CfnFeature(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFeatureProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The ARN of the feature.For example,
arn:aws:evidently:us-west-2:0123455678912:project/myProject/feature/myFeature. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFeatureRef
A reference to a Feature resource.- Specified by:
getFeatureRefin interfaceIFeatureRef
-
getTags
Tag Manager which manages the tags for this resource. -
getName
The name for the feature. -
setName
The name for the feature. -
getProject
The name or ARN of the project that is to contain the new feature. -
setProject
The name or ARN of the project that is to contain the new feature. -
getVariations
An array of structures that contain the configuration of the feature's different variations. -
setVariations
An array of structures that contain the configuration of the feature's different variations. -
setVariations
An array of structures that contain the configuration of the feature's different variations. -
getDefaultVariation
The name of the variation to use as the default variation. -
setDefaultVariation
The name of the variation to use as the default variation. -
getDescription
An optional description of the feature. -
setDescription
An optional description of the feature. -
getEntityOverrides
Specify users that should always be served a specific variation of a feature. -
setEntityOverrides
Specify users that should always be served a specific variation of a feature. -
setEntityOverrides
Specify users that should always be served a specific variation of a feature. -
getEvaluationStrategy
SpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments. -
setEvaluationStrategy
SpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments. -
getTagsRaw
Assigns one or more tags (key-value pairs) to the feature. -
setTagsRaw
Assigns one or more tags (key-value pairs) to the feature.
-