We recommend new projects start with resources from the AWS provider.
aws-native.evidently.Feature
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Evidently::Feature.
Create Feature Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Feature(name: string, args: FeatureArgs, opts?: CustomResourceOptions);
@overload
def Feature(resource_name: str,
args: FeatureArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Feature(resource_name: str,
opts: Optional[ResourceOptions] = None,
project: Optional[str] = None,
variations: Optional[Sequence[FeatureVariationObjectArgs]] = None,
default_variation: Optional[str] = None,
description: Optional[str] = None,
entity_overrides: Optional[Sequence[FeatureEntityOverrideArgs]] = None,
evaluation_strategy: Optional[FeatureEvaluationStrategy] = None,
name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewFeature(ctx *Context, name string, args FeatureArgs, opts ...ResourceOption) (*Feature, error)
public Feature(string name, FeatureArgs args, CustomResourceOptions? opts = null)
public Feature(String name, FeatureArgs args)
public Feature(String name, FeatureArgs args, CustomResourceOptions options)
type: aws-native:evidently:Feature
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FeatureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FeatureArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FeatureArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FeatureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FeatureArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Feature Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Feature resource accepts the following input properties:
- Project string
- The name or ARN of the project that is to contain the new feature.
- Variations
List<Pulumi.
Aws Native. Evidently. Inputs. Feature Variation Object> An array of structures that contain the configuration of the feature's different variations.
Each
VariationObject
in theVariations
array for a feature must have the same type of value (BooleanValue
,DoubleValue
,LongValue
orStringValue
).- Default
Variation string 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
Variations
structure.If you omit
DefaultVariation
, the first variation listed in theVariations
structure is used as the default variation.- Description string
- An optional description of the feature.
- Entity
Overrides List<Pulumi.Aws Native. Evidently. Inputs. Feature Entity Override> - 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.
- Evaluation
Strategy Pulumi.Aws Native. Evidently. Feature Evaluation Strategy - Specify
ALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments. SpecifyDEFAULT_VARIATION
to serve the default variation to all users instead. - Name string
- The name for the feature. It can include up to 127 characters.
- List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Project string
- The name or ARN of the project that is to contain the new feature.
- Variations
[]Feature
Variation Object Args An array of structures that contain the configuration of the feature's different variations.
Each
VariationObject
in theVariations
array for a feature must have the same type of value (BooleanValue
,DoubleValue
,LongValue
orStringValue
).- Default
Variation string 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
Variations
structure.If you omit
DefaultVariation
, the first variation listed in theVariations
structure is used as the default variation.- Description string
- An optional description of the feature.
- Entity
Overrides []FeatureEntity Override Args - 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.
- Evaluation
Strategy FeatureEvaluation Strategy - Specify
ALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments. SpecifyDEFAULT_VARIATION
to serve the default variation to all users instead. - Name string
- The name for the feature. It can include up to 127 characters.
- Tag
Args - An array of key-value pairs to apply to this resource.
- project String
- The name or ARN of the project that is to contain the new feature.
- variations
List<Feature
Variation Object> An array of structures that contain the configuration of the feature's different variations.
Each
VariationObject
in theVariations
array for a feature must have the same type of value (BooleanValue
,DoubleValue
,LongValue
orStringValue
).- default
Variation String 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
Variations
structure.If you omit
DefaultVariation
, the first variation listed in theVariations
structure is used as the default variation.- description String
- An optional description of the feature.
- entity
Overrides List<FeatureEntity Override> - 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.
- evaluation
Strategy FeatureEvaluation Strategy - Specify
ALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments. SpecifyDEFAULT_VARIATION
to serve the default variation to all users instead. - name String
- The name for the feature. It can include up to 127 characters.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- project string
- The name or ARN of the project that is to contain the new feature.
- variations
Feature
Variation Object[] An array of structures that contain the configuration of the feature's different variations.
Each
VariationObject
in theVariations
array for a feature must have the same type of value (BooleanValue
,DoubleValue
,LongValue
orStringValue
).- default
Variation string 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
Variations
structure.If you omit
DefaultVariation
, the first variation listed in theVariations
structure is used as the default variation.- description string
- An optional description of the feature.
- entity
Overrides FeatureEntity Override[] - 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.
- evaluation
Strategy FeatureEvaluation Strategy - Specify
ALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments. SpecifyDEFAULT_VARIATION
to serve the default variation to all users instead. - name string
- The name for the feature. It can include up to 127 characters.
- Tag[]
- An array of key-value pairs to apply to this resource.
- project str
- The name or ARN of the project that is to contain the new feature.
- variations
Sequence[Feature
Variation Object Args] An array of structures that contain the configuration of the feature's different variations.
Each
VariationObject
in theVariations
array for a feature must have the same type of value (BooleanValue
,DoubleValue
,LongValue
orStringValue
).- default_
variation str 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
Variations
structure.If you omit
DefaultVariation
, the first variation listed in theVariations
structure is used as the default variation.- description str
- An optional description of the feature.
- entity_
overrides Sequence[FeatureEntity Override Args] - 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.
- evaluation_
strategy FeatureEvaluation Strategy - Specify
ALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments. SpecifyDEFAULT_VARIATION
to serve the default variation to all users instead. - name str
- The name for the feature. It can include up to 127 characters.
- Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- project String
- The name or ARN of the project that is to contain the new feature.
- variations List<Property Map>
An array of structures that contain the configuration of the feature's different variations.
Each
VariationObject
in theVariations
array for a feature must have the same type of value (BooleanValue
,DoubleValue
,LongValue
orStringValue
).- default
Variation String 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
Variations
structure.If you omit
DefaultVariation
, the first variation listed in theVariations
structure is used as the default variation.- description String
- An optional description of the feature.
- entity
Overrides List<Property Map> - 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.
- evaluation
Strategy "ALL_RULES" | "DEFAULT_VARIATION" - Specify
ALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments. SpecifyDEFAULT_VARIATION
to serve the default variation to all users instead. - name String
- The name for the feature. It can include up to 127 characters.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Feature resource produces the following output properties:
Supporting Types
FeatureEntityOverride, FeatureEntityOverrideArgs
FeatureEvaluationStrategy, FeatureEvaluationStrategyArgs
- All
Rules - ALL_RULES
- Default
Variation - DEFAULT_VARIATION
- Feature
Evaluation Strategy All Rules - ALL_RULES
- Feature
Evaluation Strategy Default Variation - DEFAULT_VARIATION
- All
Rules - ALL_RULES
- Default
Variation - DEFAULT_VARIATION
- All
Rules - ALL_RULES
- Default
Variation - DEFAULT_VARIATION
- ALL_RULES
- ALL_RULES
- DEFAULT_VARIATION
- DEFAULT_VARIATION
- "ALL_RULES"
- ALL_RULES
- "DEFAULT_VARIATION"
- DEFAULT_VARIATION
FeatureVariationObject, FeatureVariationObjectArgs
- Boolean
Value bool - The value assigned to this variation, if the variation type is boolean.
- Double
Value double - The value assigned to this variation, if the variation type is a double.
- Long
Value double - The value assigned to this variation, if the variation type is a long.
- String
Value string - The value assigned to this variation, if the variation type is a string.
- Variation
Name string - A name for the variation. It can include up to 127 characters.
- Boolean
Value bool - The value assigned to this variation, if the variation type is boolean.
- Double
Value float64 - The value assigned to this variation, if the variation type is a double.
- Long
Value float64 - The value assigned to this variation, if the variation type is a long.
- String
Value string - The value assigned to this variation, if the variation type is a string.
- Variation
Name string - A name for the variation. It can include up to 127 characters.
- boolean
Value Boolean - The value assigned to this variation, if the variation type is boolean.
- double
Value Double - The value assigned to this variation, if the variation type is a double.
- long
Value Double - The value assigned to this variation, if the variation type is a long.
- string
Value String - The value assigned to this variation, if the variation type is a string.
- variation
Name String - A name for the variation. It can include up to 127 characters.
- boolean
Value boolean - The value assigned to this variation, if the variation type is boolean.
- double
Value number - The value assigned to this variation, if the variation type is a double.
- long
Value number - The value assigned to this variation, if the variation type is a long.
- string
Value string - The value assigned to this variation, if the variation type is a string.
- variation
Name string - A name for the variation. It can include up to 127 characters.
- boolean_
value bool - The value assigned to this variation, if the variation type is boolean.
- double_
value float - The value assigned to this variation, if the variation type is a double.
- long_
value float - The value assigned to this variation, if the variation type is a long.
- string_
value str - The value assigned to this variation, if the variation type is a string.
- variation_
name str - A name for the variation. It can include up to 127 characters.
- boolean
Value Boolean - The value assigned to this variation, if the variation type is boolean.
- double
Value Number - The value assigned to this variation, if the variation type is a double.
- long
Value Number - The value assigned to this variation, if the variation type is a long.
- string
Value String - The value assigned to this variation, if the variation type is a string.
- variation
Name String - A name for the variation. It can include up to 127 characters.
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.