Class CfnFeaturePropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFeaturePropsMixin>
- Enclosing class:
CfnFeaturePropsMixin
CfnFeaturePropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnFeaturePropsMixin.Buildercreate()static CfnFeaturePropsMixin.Buildercreate(CfnPropertyMixinOptions options) defaultVariation(String defaultVariation) The name of the variation to use as the default variation.description(String description) An optional description of the feature.entityOverrides(List<? extends Object> entityOverrides) Specify users that should always be served a specific variation of a feature.entityOverrides(IResolvable entityOverrides) Specify users that should always be served a specific variation of a feature.evaluationStrategy(String evaluationStrategy) SpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments.The name for the feature.The name or ARN of the project that is to contain the new feature.project(IProjectRef project) The name or ARN of the project that is to contain the new feature.Assigns one or more tags (key-value pairs) to the feature.variations(List<? extends Object> variations) An array of structures that contain the configuration of the feature's different variations.variations(IResolvable variations) An array of structures that contain the configuration of the feature's different variations.
-
Method Details
-
create
@Stability(Stable) public static CfnFeaturePropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnFeaturePropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnFeaturePropsMixin.Builder.
-
defaultVariation
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.- Parameters:
defaultVariation- The name of the variation to use as the default variation. This parameter is required.- Returns:
this- See Also:
-
description
An optional description of the feature.- Parameters:
description- An optional description of the feature. This parameter is required.- Returns:
this- See Also:
-
entityOverrides
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.
- Parameters:
entityOverrides- Specify users that should always be served a specific variation of a feature. This parameter is required.- Returns:
this- See Also:
-
entityOverrides
@Stability(Stable) public CfnFeaturePropsMixin.Builder entityOverrides(List<? extends Object> entityOverrides) 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.
- Parameters:
entityOverrides- Specify users that should always be served a specific variation of a feature. This parameter is required.- Returns:
this- See Also:
-
evaluationStrategy
@Stability(Stable) public CfnFeaturePropsMixin.Builder evaluationStrategy(String evaluationStrategy) SpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments.Specify
DEFAULT_VARIATIONto serve the default variation to all users instead.- Parameters:
evaluationStrategy- SpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments. This parameter is required.- Returns:
this- See Also:
-
name
The name for the feature.It can include up to 127 characters.
- Parameters:
name- The name for the feature. This parameter is required.- Returns:
this- See Also:
-
project
The name or ARN of the project that is to contain the new feature.- Parameters:
project- The name or ARN of the project that is to contain the new feature. This parameter is required.- Returns:
this- See Also:
-
project
The name or ARN of the project that is to contain the new feature.- Parameters:
project- The name or ARN of the project that is to contain the new feature. This parameter is required.- Returns:
this- See Also:
-
tags
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 .
- Parameters:
tags- Assigns one or more tags (key-value pairs) to the feature. This parameter is required.- Returns:
this- See Also:
-
variations
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).- Parameters:
variations- An array of structures that contain the configuration of the feature's different variations. This parameter is required.- Returns:
this- See Also:
-
variations
@Stability(Stable) public CfnFeaturePropsMixin.Builder variations(List<? extends Object> variations) 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).- Parameters:
variations- An array of structures that contain the configuration of the feature's different variations. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFeaturePropsMixin>- Returns:
- a newly built instance of
CfnFeaturePropsMixin.
-