Class CfnFeature
- All Implemented Interfaces:
- IConstruct,- IDependable,- IInspectable,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct
AWS::Evidently::Feature.
 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();
 - 
Nested Class SummaryNested 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.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstructIConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectableIInspectable.Jsii$Default, IInspectable.Jsii$Proxy
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionCfnFeature(Construct scope, String id, CfnFeatureProps props) Create a newAWS::Evidently::Feature.protectedCfnFeature(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFeature(software.amazon.jsii.JsiiObjectRef objRef) 
- 
Method SummaryModifier 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.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.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.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.core.CfnResourceaddDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElementgetRefMethods inherited from class software.amazon.awscdk.core.CfnElementgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.ConstructgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Field Details- 
CFN_RESOURCE_TYPE_NAMEThe CloudFormation resource type name for this resource class.
 
- 
- 
Constructor Details- 
CfnFeatureprotected CfnFeature(software.amazon.jsii.JsiiObjectRef objRef) 
- 
CfnFeatureprotected CfnFeature(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
CfnFeature@Stability(Stable) public CfnFeature(@NotNull Construct scope, @NotNull String id, @NotNull CfnFeatureProps props) Create a newAWS::Evidently::Feature.- Parameters:
- scope-- scope in which this resource is defined.
 
- id-- scoped id of the resource.
 
- props-- resource properties.
 
 
 
- 
- 
Method Details- 
inspectExamines the CloudFormation resource and discloses attributes.- Specified by:
- inspectin interface- IInspectable
- Parameters:
- inspector-- tree inspector to collect and process attributes.
 
 
- 
renderProperties@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
- renderPropertiesin class- CfnResource
- Parameters:
- props- This parameter is required.
 
- 
getAttrArnThe ARN of the feature.For example, arn:aws:evidently:us-west-2:0123455678912:project/myProject/feature/myFeature.
- 
getCfnProperties- Overrides:
- getCfnPropertiesin class- CfnResource
 
- 
getTagsAssigns 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 . 
- 
getNameThe name for the feature.It can include up to 127 characters. 
- 
setNameThe name for the feature.It can include up to 127 characters. 
- 
getProjectThe name or ARN of the project that is to contain the new feature.
- 
setProjectThe name or ARN of the project that is to contain the new feature.
- 
getVariationsAn 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).
- 
setVariationsAn 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).
- 
setVariationsAn 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).
- 
getDefaultVariationThe 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.
- 
setDefaultVariationThe 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.
- 
getDescriptionAn optional description of the feature.
- 
setDescriptionAn optional description of the feature.
- 
getEntityOverridesSpecify 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. 
- 
setEntityOverridesSpecify 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. 
- 
setEntityOverridesSpecify 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. 
- 
getEvaluationStrategySpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments.Specify DEFAULT_VARIATIONto serve the default variation to all users instead.
- 
setEvaluationStrategySpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments.Specify DEFAULT_VARIATIONto serve the default variation to all users instead.
 
-