public static final class CfnFeature.Builder
extends java.lang.Object
CfnFeature
.Modifier and Type | Method and Description |
---|---|
CfnFeature |
build() |
static CfnFeature.Builder |
create(Construct scope,
java.lang.String id) |
CfnFeature.Builder |
defaultVariation(java.lang.String defaultVariation)
The name of the variation to use as the default variation.
|
CfnFeature.Builder |
description(java.lang.String description)
An optional description of the feature.
|
CfnFeature.Builder |
entityOverrides(IResolvable entityOverrides)
Specify users that should always be served a specific variation of a feature.
|
CfnFeature.Builder |
entityOverrides(java.util.List<? extends java.lang.Object> entityOverrides)
Specify users that should always be served a specific variation of a feature.
|
CfnFeature.Builder |
evaluationStrategy(java.lang.String evaluationStrategy)
Specify `ALL_RULES` to activate the traffic allocation specified by any ongoing launches or experiments.
|
CfnFeature.Builder |
name(java.lang.String name)
The name for the feature.
|
CfnFeature.Builder |
project(java.lang.String project)
The name or ARN of the project that is to contain the new feature.
|
CfnFeature.Builder |
tags(java.util.List<? extends CfnTag> tags)
Assigns one or more tags (key-value pairs) to the feature.
|
CfnFeature.Builder |
variations(IResolvable variations)
An array of structures that contain the configuration of the feature's different variations.
|
CfnFeature.Builder |
variations(java.util.List<? extends java.lang.Object> variations)
An array of structures that contain the configuration of the feature's different variations.
|
public static CfnFeature.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnFeature.EntityOverrideProperty.Builder
.public CfnFeature.Builder name(java.lang.String name)
It can include up to 127 characters.
name
- The name for the feature. This parameter is required.this
public CfnFeature.Builder project(java.lang.String project)
project
- The name or ARN of the project that is to contain the new feature. This parameter is required.this
public CfnFeature.Builder variations(IResolvable variations)
Each VariationObject
in the Variations
array for a feature must have the same type of value ( BooleanValue
, DoubleValue
, LongValue
or StringValue
).
variations
- An array of structures that contain the configuration of the feature's different variations. This parameter is required.this
public CfnFeature.Builder variations(java.util.List<? extends java.lang.Object> variations)
Each VariationObject
in the Variations
array for a feature must have the same type of value ( BooleanValue
, DoubleValue
, LongValue
or StringValue
).
variations
- An array of structures that contain the configuration of the feature's different variations. This parameter is required.this
public CfnFeature.Builder defaultVariation(java.lang.String defaultVariation)
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.
defaultVariation
- The name of the variation to use as the default variation. This parameter is required.this
public CfnFeature.Builder description(java.lang.String description)
description
- An optional description of the feature. This parameter is required.this
public CfnFeature.Builder entityOverrides(IResolvable entityOverrides)
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.
entityOverrides
- Specify users that should always be served a specific variation of a feature. This parameter is required.this
public CfnFeature.Builder entityOverrides(java.util.List<? extends java.lang.Object> entityOverrides)
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.
entityOverrides
- Specify users that should always be served a specific variation of a feature. This parameter is required.this
public CfnFeature.Builder evaluationStrategy(java.lang.String evaluationStrategy)
Specify DEFAULT_VARIATION
to serve the default variation to all users instead.
evaluationStrategy
- Specify `ALL_RULES` to activate the traffic allocation specified by any ongoing launches or experiments. This parameter is required.this
public CfnFeature.Builder tags(java.util.List<? extends CfnTag> tags)
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 .
tags
- Assigns one or more tags (key-value pairs) to the feature. This parameter is required.this
public CfnFeature build()