aws.evidently.Feature
Explore with Pulumi AI
Provides a CloudWatch Evidently Feature resource.
Example Usage
Basic
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.evidently.Feature("example", {
name: "example",
project: exampleAwsEvidentlyProject.name,
description: "example description",
variations: [{
name: "Variation1",
value: {
stringValue: "example",
},
}],
tags: {
Key1: "example Feature",
},
});
import pulumi
import pulumi_aws as aws
example = aws.evidently.Feature("example",
name="example",
project=example_aws_evidently_project["name"],
description="example description",
variations=[{
"name": "Variation1",
"value": {
"string_value": "example",
},
}],
tags={
"Key1": "example Feature",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/evidently"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := evidently.NewFeature(ctx, "example", &evidently.FeatureArgs{
Name: pulumi.String("example"),
Project: pulumi.Any(exampleAwsEvidentlyProject.Name),
Description: pulumi.String("example description"),
Variations: evidently.FeatureVariationArray{
&evidently.FeatureVariationArgs{
Name: pulumi.String("Variation1"),
Value: &evidently.FeatureVariationValueArgs{
StringValue: pulumi.String("example"),
},
},
},
Tags: pulumi.StringMap{
"Key1": pulumi.String("example Feature"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Evidently.Feature("example", new()
{
Name = "example",
Project = exampleAwsEvidentlyProject.Name,
Description = "example description",
Variations = new[]
{
new Aws.Evidently.Inputs.FeatureVariationArgs
{
Name = "Variation1",
Value = new Aws.Evidently.Inputs.FeatureVariationValueArgs
{
StringValue = "example",
},
},
},
Tags =
{
{ "Key1", "example Feature" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.evidently.Feature;
import com.pulumi.aws.evidently.FeatureArgs;
import com.pulumi.aws.evidently.inputs.FeatureVariationArgs;
import com.pulumi.aws.evidently.inputs.FeatureVariationValueArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Feature("example", FeatureArgs.builder()
.name("example")
.project(exampleAwsEvidentlyProject.name())
.description("example description")
.variations(FeatureVariationArgs.builder()
.name("Variation1")
.value(FeatureVariationValueArgs.builder()
.stringValue("example")
.build())
.build())
.tags(Map.of("Key1", "example Feature"))
.build());
}
}
resources:
example:
type: aws:evidently:Feature
properties:
name: example
project: ${exampleAwsEvidentlyProject.name}
description: example description
variations:
- name: Variation1
value:
stringValue: example
tags:
Key1: example Feature
With default variation
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.evidently.Feature("example", {
name: "example",
project: exampleAwsEvidentlyProject.name,
defaultVariation: "Variation2",
variations: [
{
name: "Variation1",
value: {
stringValue: "exampleval1",
},
},
{
name: "Variation2",
value: {
stringValue: "exampleval2",
},
},
],
});
import pulumi
import pulumi_aws as aws
example = aws.evidently.Feature("example",
name="example",
project=example_aws_evidently_project["name"],
default_variation="Variation2",
variations=[
{
"name": "Variation1",
"value": {
"string_value": "exampleval1",
},
},
{
"name": "Variation2",
"value": {
"string_value": "exampleval2",
},
},
])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/evidently"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := evidently.NewFeature(ctx, "example", &evidently.FeatureArgs{
Name: pulumi.String("example"),
Project: pulumi.Any(exampleAwsEvidentlyProject.Name),
DefaultVariation: pulumi.String("Variation2"),
Variations: evidently.FeatureVariationArray{
&evidently.FeatureVariationArgs{
Name: pulumi.String("Variation1"),
Value: &evidently.FeatureVariationValueArgs{
StringValue: pulumi.String("exampleval1"),
},
},
&evidently.FeatureVariationArgs{
Name: pulumi.String("Variation2"),
Value: &evidently.FeatureVariationValueArgs{
StringValue: pulumi.String("exampleval2"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Evidently.Feature("example", new()
{
Name = "example",
Project = exampleAwsEvidentlyProject.Name,
DefaultVariation = "Variation2",
Variations = new[]
{
new Aws.Evidently.Inputs.FeatureVariationArgs
{
Name = "Variation1",
Value = new Aws.Evidently.Inputs.FeatureVariationValueArgs
{
StringValue = "exampleval1",
},
},
new Aws.Evidently.Inputs.FeatureVariationArgs
{
Name = "Variation2",
Value = new Aws.Evidently.Inputs.FeatureVariationValueArgs
{
StringValue = "exampleval2",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.evidently.Feature;
import com.pulumi.aws.evidently.FeatureArgs;
import com.pulumi.aws.evidently.inputs.FeatureVariationArgs;
import com.pulumi.aws.evidently.inputs.FeatureVariationValueArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Feature("example", FeatureArgs.builder()
.name("example")
.project(exampleAwsEvidentlyProject.name())
.defaultVariation("Variation2")
.variations(
FeatureVariationArgs.builder()
.name("Variation1")
.value(FeatureVariationValueArgs.builder()
.stringValue("exampleval1")
.build())
.build(),
FeatureVariationArgs.builder()
.name("Variation2")
.value(FeatureVariationValueArgs.builder()
.stringValue("exampleval2")
.build())
.build())
.build());
}
}
resources:
example:
type: aws:evidently:Feature
properties:
name: example
project: ${exampleAwsEvidentlyProject.name}
defaultVariation: Variation2
variations:
- name: Variation1
value:
stringValue: exampleval1
- name: Variation2
value:
stringValue: exampleval2
With entity overrides
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.evidently.Feature("example", {
name: "example",
project: exampleAwsEvidentlyProject.name,
entityOverrides: {
test1: "Variation1",
},
variations: [
{
name: "Variation1",
value: {
stringValue: "exampleval1",
},
},
{
name: "Variation2",
value: {
stringValue: "exampleval2",
},
},
],
});
import pulumi
import pulumi_aws as aws
example = aws.evidently.Feature("example",
name="example",
project=example_aws_evidently_project["name"],
entity_overrides={
"test1": "Variation1",
},
variations=[
{
"name": "Variation1",
"value": {
"string_value": "exampleval1",
},
},
{
"name": "Variation2",
"value": {
"string_value": "exampleval2",
},
},
])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/evidently"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := evidently.NewFeature(ctx, "example", &evidently.FeatureArgs{
Name: pulumi.String("example"),
Project: pulumi.Any(exampleAwsEvidentlyProject.Name),
EntityOverrides: pulumi.StringMap{
"test1": pulumi.String("Variation1"),
},
Variations: evidently.FeatureVariationArray{
&evidently.FeatureVariationArgs{
Name: pulumi.String("Variation1"),
Value: &evidently.FeatureVariationValueArgs{
StringValue: pulumi.String("exampleval1"),
},
},
&evidently.FeatureVariationArgs{
Name: pulumi.String("Variation2"),
Value: &evidently.FeatureVariationValueArgs{
StringValue: pulumi.String("exampleval2"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Evidently.Feature("example", new()
{
Name = "example",
Project = exampleAwsEvidentlyProject.Name,
EntityOverrides =
{
{ "test1", "Variation1" },
},
Variations = new[]
{
new Aws.Evidently.Inputs.FeatureVariationArgs
{
Name = "Variation1",
Value = new Aws.Evidently.Inputs.FeatureVariationValueArgs
{
StringValue = "exampleval1",
},
},
new Aws.Evidently.Inputs.FeatureVariationArgs
{
Name = "Variation2",
Value = new Aws.Evidently.Inputs.FeatureVariationValueArgs
{
StringValue = "exampleval2",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.evidently.Feature;
import com.pulumi.aws.evidently.FeatureArgs;
import com.pulumi.aws.evidently.inputs.FeatureVariationArgs;
import com.pulumi.aws.evidently.inputs.FeatureVariationValueArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Feature("example", FeatureArgs.builder()
.name("example")
.project(exampleAwsEvidentlyProject.name())
.entityOverrides(Map.of("test1", "Variation1"))
.variations(
FeatureVariationArgs.builder()
.name("Variation1")
.value(FeatureVariationValueArgs.builder()
.stringValue("exampleval1")
.build())
.build(),
FeatureVariationArgs.builder()
.name("Variation2")
.value(FeatureVariationValueArgs.builder()
.stringValue("exampleval2")
.build())
.build())
.build());
}
}
resources:
example:
type: aws:evidently:Feature
properties:
name: example
project: ${exampleAwsEvidentlyProject.name}
entityOverrides:
test1: Variation1
variations:
- name: Variation1
value:
stringValue: exampleval1
- name: Variation2
value:
stringValue: exampleval2
With evaluation strategy
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.evidently.Feature("example", {
name: "example",
project: exampleAwsEvidentlyProject.name,
evaluationStrategy: "ALL_RULES",
entityOverrides: {
test1: "Variation1",
},
variations: [{
name: "Variation1",
value: {
stringValue: "exampleval1",
},
}],
});
import pulumi
import pulumi_aws as aws
example = aws.evidently.Feature("example",
name="example",
project=example_aws_evidently_project["name"],
evaluation_strategy="ALL_RULES",
entity_overrides={
"test1": "Variation1",
},
variations=[{
"name": "Variation1",
"value": {
"string_value": "exampleval1",
},
}])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/evidently"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := evidently.NewFeature(ctx, "example", &evidently.FeatureArgs{
Name: pulumi.String("example"),
Project: pulumi.Any(exampleAwsEvidentlyProject.Name),
EvaluationStrategy: pulumi.String("ALL_RULES"),
EntityOverrides: pulumi.StringMap{
"test1": pulumi.String("Variation1"),
},
Variations: evidently.FeatureVariationArray{
&evidently.FeatureVariationArgs{
Name: pulumi.String("Variation1"),
Value: &evidently.FeatureVariationValueArgs{
StringValue: pulumi.String("exampleval1"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Evidently.Feature("example", new()
{
Name = "example",
Project = exampleAwsEvidentlyProject.Name,
EvaluationStrategy = "ALL_RULES",
EntityOverrides =
{
{ "test1", "Variation1" },
},
Variations = new[]
{
new Aws.Evidently.Inputs.FeatureVariationArgs
{
Name = "Variation1",
Value = new Aws.Evidently.Inputs.FeatureVariationValueArgs
{
StringValue = "exampleval1",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.evidently.Feature;
import com.pulumi.aws.evidently.FeatureArgs;
import com.pulumi.aws.evidently.inputs.FeatureVariationArgs;
import com.pulumi.aws.evidently.inputs.FeatureVariationValueArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Feature("example", FeatureArgs.builder()
.name("example")
.project(exampleAwsEvidentlyProject.name())
.evaluationStrategy("ALL_RULES")
.entityOverrides(Map.of("test1", "Variation1"))
.variations(FeatureVariationArgs.builder()
.name("Variation1")
.value(FeatureVariationValueArgs.builder()
.stringValue("exampleval1")
.build())
.build())
.build());
}
}
resources:
example:
type: aws:evidently:Feature
properties:
name: example
project: ${exampleAwsEvidentlyProject.name}
evaluationStrategy: ALL_RULES
entityOverrides:
test1: Variation1
variations:
- name: Variation1
value:
stringValue: exampleval1
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[FeatureVariationArgs]] = None,
default_variation: Optional[str] = None,
description: Optional[str] = None,
entity_overrides: Optional[Mapping[str, str]] = None,
evaluation_strategy: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = 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: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.
Constructor example
The following reference example uses placeholder values for all input properties.
var featureResource = new Aws.Evidently.Feature("featureResource", new()
{
Project = "string",
Variations = new[]
{
new Aws.Evidently.Inputs.FeatureVariationArgs
{
Name = "string",
Value = new Aws.Evidently.Inputs.FeatureVariationValueArgs
{
BoolValue = "string",
DoubleValue = "string",
LongValue = "string",
StringValue = "string",
},
},
},
DefaultVariation = "string",
Description = "string",
EntityOverrides =
{
{ "string", "string" },
},
EvaluationStrategy = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := evidently.NewFeature(ctx, "featureResource", &evidently.FeatureArgs{
Project: pulumi.String("string"),
Variations: evidently.FeatureVariationArray{
&evidently.FeatureVariationArgs{
Name: pulumi.String("string"),
Value: &evidently.FeatureVariationValueArgs{
BoolValue: pulumi.String("string"),
DoubleValue: pulumi.String("string"),
LongValue: pulumi.String("string"),
StringValue: pulumi.String("string"),
},
},
},
DefaultVariation: pulumi.String("string"),
Description: pulumi.String("string"),
EntityOverrides: pulumi.StringMap{
"string": pulumi.String("string"),
},
EvaluationStrategy: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var featureResource = new Feature("featureResource", FeatureArgs.builder()
.project("string")
.variations(FeatureVariationArgs.builder()
.name("string")
.value(FeatureVariationValueArgs.builder()
.boolValue("string")
.doubleValue("string")
.longValue("string")
.stringValue("string")
.build())
.build())
.defaultVariation("string")
.description("string")
.entityOverrides(Map.of("string", "string"))
.evaluationStrategy("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
feature_resource = aws.evidently.Feature("featureResource",
project="string",
variations=[{
"name": "string",
"value": {
"boolValue": "string",
"doubleValue": "string",
"longValue": "string",
"stringValue": "string",
},
}],
default_variation="string",
description="string",
entity_overrides={
"string": "string",
},
evaluation_strategy="string",
name="string",
tags={
"string": "string",
})
const featureResource = new aws.evidently.Feature("featureResource", {
project: "string",
variations: [{
name: "string",
value: {
boolValue: "string",
doubleValue: "string",
longValue: "string",
stringValue: "string",
},
}],
defaultVariation: "string",
description: "string",
entityOverrides: {
string: "string",
},
evaluationStrategy: "string",
name: "string",
tags: {
string: "string",
},
});
type: aws:evidently:Feature
properties:
defaultVariation: string
description: string
entityOverrides:
string: string
evaluationStrategy: string
name: string
project: string
tags:
string: string
variations:
- name: string
value:
boolValue: string
doubleValue: string
longValue: string
stringValue: string
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
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<Feature
Variation> - One or more blocks that contain the configuration of the feature's different variations. Detailed below
- 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 omitdefault_variation
, the first variation listed in thevariations
structure is used as the default variation. - Description string
- Specifies the description of the feature.
- Entity
Overrides Dictionary<string, string> - 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 string - 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 new feature. Minimum length of
1
. Maximum length of127
. - Dictionary<string, string>
- Tags to apply to the feature. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Project string
- The name or ARN of the project that is to contain the new feature.
- Variations
[]Feature
Variation Args - One or more blocks that contain the configuration of the feature's different variations. Detailed below
- 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 omitdefault_variation
, the first variation listed in thevariations
structure is used as the default variation. - Description string
- Specifies the description of the feature.
- Entity
Overrides map[string]string - 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 string - 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 new feature. Minimum length of
1
. Maximum length of127
. - map[string]string
- Tags to apply to the feature. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- project String
- The name or ARN of the project that is to contain the new feature.
- variations
List<Feature
Variation> - One or more blocks that contain the configuration of the feature's different variations. Detailed below
- 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 omitdefault_variation
, the first variation listed in thevariations
structure is used as the default variation. - description String
- Specifies the description of the feature.
- entity
Overrides Map<String,String> - 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 String - 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 new feature. Minimum length of
1
. Maximum length of127
. - Map<String,String>
- Tags to apply to the feature. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- project string
- The name or ARN of the project that is to contain the new feature.
- variations
Feature
Variation[] - One or more blocks that contain the configuration of the feature's different variations. Detailed below
- 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 omitdefault_variation
, the first variation listed in thevariations
structure is used as the default variation. - description string
- Specifies the description of the feature.
- entity
Overrides {[key: string]: string} - 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 string - 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 new feature. Minimum length of
1
. Maximum length of127
. - {[key: string]: string}
- Tags to apply to the feature. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- project str
- The name or ARN of the project that is to contain the new feature.
- variations
Sequence[Feature
Variation Args] - One or more blocks that contain the configuration of the feature's different variations. Detailed below
- 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 omitdefault_variation
, the first variation listed in thevariations
structure is used as the default variation. - description str
- Specifies the description of the feature.
- entity_
overrides Mapping[str, str] - 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 str - 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 new feature. Minimum length of
1
. Maximum length of127
. - Mapping[str, str]
- Tags to apply to the feature. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- project String
- The name or ARN of the project that is to contain the new feature.
- variations List<Property Map>
- One or more blocks that contain the configuration of the feature's different variations. Detailed below
- 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 omitdefault_variation
, the first variation listed in thevariations
structure is used as the default variation. - description String
- Specifies the description of the feature.
- entity
Overrides Map<String> - 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 String - 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 new feature. Minimum length of
1
. Maximum length of127
. - Map<String>
- Tags to apply to the feature. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the Feature resource produces the following output properties:
- Arn string
- The ARN of the feature.
- Created
Time string - The date and time that the feature is created.
- Evaluation
Rules List<FeatureEvaluation Rule> - One or more blocks that define the evaluation rules for the feature. Detailed below
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringTime - The date and time that the feature was most recently updated.
- Status string
- The current state of the feature. Valid values are
AVAILABLE
andUPDATING
. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Value
Type string - Defines the type of value used to define the different feature variations. Valid Values:
STRING
,LONG
,DOUBLE
,BOOLEAN
.
- Arn string
- The ARN of the feature.
- Created
Time string - The date and time that the feature is created.
- Evaluation
Rules []FeatureEvaluation Rule - One or more blocks that define the evaluation rules for the feature. Detailed below
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringTime - The date and time that the feature was most recently updated.
- Status string
- The current state of the feature. Valid values are
AVAILABLE
andUPDATING
. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Value
Type string - Defines the type of value used to define the different feature variations. Valid Values:
STRING
,LONG
,DOUBLE
,BOOLEAN
.
- arn String
- The ARN of the feature.
- created
Time String - The date and time that the feature is created.
- evaluation
Rules List<FeatureEvaluation Rule> - One or more blocks that define the evaluation rules for the feature. Detailed below
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringTime - The date and time that the feature was most recently updated.
- status String
- The current state of the feature. Valid values are
AVAILABLE
andUPDATING
. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - value
Type String - Defines the type of value used to define the different feature variations. Valid Values:
STRING
,LONG
,DOUBLE
,BOOLEAN
.
- arn string
- The ARN of the feature.
- created
Time string - The date and time that the feature is created.
- evaluation
Rules FeatureEvaluation Rule[] - One or more blocks that define the evaluation rules for the feature. Detailed below
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringTime - The date and time that the feature was most recently updated.
- status string
- The current state of the feature. Valid values are
AVAILABLE
andUPDATING
. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - value
Type string - Defines the type of value used to define the different feature variations. Valid Values:
STRING
,LONG
,DOUBLE
,BOOLEAN
.
- arn str
- The ARN of the feature.
- created_
time str - The date and time that the feature is created.
- evaluation_
rules Sequence[FeatureEvaluation Rule] - One or more blocks that define the evaluation rules for the feature. Detailed below
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ strtime - The date and time that the feature was most recently updated.
- status str
- The current state of the feature. Valid values are
AVAILABLE
andUPDATING
. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - value_
type str - Defines the type of value used to define the different feature variations. Valid Values:
STRING
,LONG
,DOUBLE
,BOOLEAN
.
- arn String
- The ARN of the feature.
- created
Time String - The date and time that the feature is created.
- evaluation
Rules List<Property Map> - One or more blocks that define the evaluation rules for the feature. Detailed below
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringTime - The date and time that the feature was most recently updated.
- status String
- The current state of the feature. Valid values are
AVAILABLE
andUPDATING
. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - value
Type String - Defines the type of value used to define the different feature variations. Valid Values:
STRING
,LONG
,DOUBLE
,BOOLEAN
.
Look up Existing Feature Resource
Get an existing Feature resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FeatureState, opts?: CustomResourceOptions): Feature
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
created_time: Optional[str] = None,
default_variation: Optional[str] = None,
description: Optional[str] = None,
entity_overrides: Optional[Mapping[str, str]] = None,
evaluation_rules: Optional[Sequence[FeatureEvaluationRuleArgs]] = None,
evaluation_strategy: Optional[str] = None,
last_updated_time: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
value_type: Optional[str] = None,
variations: Optional[Sequence[FeatureVariationArgs]] = None) -> Feature
func GetFeature(ctx *Context, name string, id IDInput, state *FeatureState, opts ...ResourceOption) (*Feature, error)
public static Feature Get(string name, Input<string> id, FeatureState? state, CustomResourceOptions? opts = null)
public static Feature get(String name, Output<String> id, FeatureState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- The ARN of the feature.
- Created
Time string - The date and time that the feature is created.
- 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 omitdefault_variation
, the first variation listed in thevariations
structure is used as the default variation. - Description string
- Specifies the description of the feature.
- Entity
Overrides Dictionary<string, string> - 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
Rules List<FeatureEvaluation Rule> - One or more blocks that define the evaluation rules for the feature. Detailed below
- Evaluation
Strategy string - 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. - Last
Updated stringTime - The date and time that the feature was most recently updated.
- Name string
- The name for the new feature. Minimum length of
1
. Maximum length of127
. - Project string
- The name or ARN of the project that is to contain the new feature.
- Status string
- The current state of the feature. Valid values are
AVAILABLE
andUPDATING
. - Dictionary<string, string>
- Tags to apply to the feature. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Value
Type string - Defines the type of value used to define the different feature variations. Valid Values:
STRING
,LONG
,DOUBLE
,BOOLEAN
. - Variations
List<Feature
Variation> - One or more blocks that contain the configuration of the feature's different variations. Detailed below
- Arn string
- The ARN of the feature.
- Created
Time string - The date and time that the feature is created.
- 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 omitdefault_variation
, the first variation listed in thevariations
structure is used as the default variation. - Description string
- Specifies the description of the feature.
- Entity
Overrides map[string]string - 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
Rules []FeatureEvaluation Rule Args - One or more blocks that define the evaluation rules for the feature. Detailed below
- Evaluation
Strategy string - 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. - Last
Updated stringTime - The date and time that the feature was most recently updated.
- Name string
- The name for the new feature. Minimum length of
1
. Maximum length of127
. - Project string
- The name or ARN of the project that is to contain the new feature.
- Status string
- The current state of the feature. Valid values are
AVAILABLE
andUPDATING
. - map[string]string
- Tags to apply to the feature. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Value
Type string - Defines the type of value used to define the different feature variations. Valid Values:
STRING
,LONG
,DOUBLE
,BOOLEAN
. - Variations
[]Feature
Variation Args - One or more blocks that contain the configuration of the feature's different variations. Detailed below
- arn String
- The ARN of the feature.
- created
Time String - The date and time that the feature is created.
- 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 omitdefault_variation
, the first variation listed in thevariations
structure is used as the default variation. - description String
- Specifies the description of the feature.
- entity
Overrides Map<String,String> - 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
Rules List<FeatureEvaluation Rule> - One or more blocks that define the evaluation rules for the feature. Detailed below
- evaluation
Strategy String - 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. - last
Updated StringTime - The date and time that the feature was most recently updated.
- name String
- The name for the new feature. Minimum length of
1
. Maximum length of127
. - project String
- The name or ARN of the project that is to contain the new feature.
- status String
- The current state of the feature. Valid values are
AVAILABLE
andUPDATING
. - Map<String,String>
- Tags to apply to the feature. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - value
Type String - Defines the type of value used to define the different feature variations. Valid Values:
STRING
,LONG
,DOUBLE
,BOOLEAN
. - variations
List<Feature
Variation> - One or more blocks that contain the configuration of the feature's different variations. Detailed below
- arn string
- The ARN of the feature.
- created
Time string - The date and time that the feature is created.
- 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 omitdefault_variation
, the first variation listed in thevariations
structure is used as the default variation. - description string
- Specifies the description of the feature.
- entity
Overrides {[key: string]: string} - 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
Rules FeatureEvaluation Rule[] - One or more blocks that define the evaluation rules for the feature. Detailed below
- evaluation
Strategy string - 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. - last
Updated stringTime - The date and time that the feature was most recently updated.
- name string
- The name for the new feature. Minimum length of
1
. Maximum length of127
. - project string
- The name or ARN of the project that is to contain the new feature.
- status string
- The current state of the feature. Valid values are
AVAILABLE
andUPDATING
. - {[key: string]: string}
- Tags to apply to the feature. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - value
Type string - Defines the type of value used to define the different feature variations. Valid Values:
STRING
,LONG
,DOUBLE
,BOOLEAN
. - variations
Feature
Variation[] - One or more blocks that contain the configuration of the feature's different variations. Detailed below
- arn str
- The ARN of the feature.
- created_
time str - The date and time that the feature is created.
- 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 omitdefault_variation
, the first variation listed in thevariations
structure is used as the default variation. - description str
- Specifies the description of the feature.
- entity_
overrides Mapping[str, str] - 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_
rules Sequence[FeatureEvaluation Rule Args] - One or more blocks that define the evaluation rules for the feature. Detailed below
- evaluation_
strategy str - 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. - last_
updated_ strtime - The date and time that the feature was most recently updated.
- name str
- The name for the new feature. Minimum length of
1
. Maximum length of127
. - project str
- The name or ARN of the project that is to contain the new feature.
- status str
- The current state of the feature. Valid values are
AVAILABLE
andUPDATING
. - Mapping[str, str]
- Tags to apply to the feature. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - value_
type str - Defines the type of value used to define the different feature variations. Valid Values:
STRING
,LONG
,DOUBLE
,BOOLEAN
. - variations
Sequence[Feature
Variation Args] - One or more blocks that contain the configuration of the feature's different variations. Detailed below
- arn String
- The ARN of the feature.
- created
Time String - The date and time that the feature is created.
- 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 omitdefault_variation
, the first variation listed in thevariations
structure is used as the default variation. - description String
- Specifies the description of the feature.
- entity
Overrides Map<String> - 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
Rules List<Property Map> - One or more blocks that define the evaluation rules for the feature. Detailed below
- evaluation
Strategy String - 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. - last
Updated StringTime - The date and time that the feature was most recently updated.
- name String
- The name for the new feature. Minimum length of
1
. Maximum length of127
. - project String
- The name or ARN of the project that is to contain the new feature.
- status String
- The current state of the feature. Valid values are
AVAILABLE
andUPDATING
. - Map<String>
- Tags to apply to the feature. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - value
Type String - Defines the type of value used to define the different feature variations. Valid Values:
STRING
,LONG
,DOUBLE
,BOOLEAN
. - variations List<Property Map>
- One or more blocks that contain the configuration of the feature's different variations. Detailed below
Supporting Types
FeatureEvaluationRule, FeatureEvaluationRuleArgs
FeatureVariation, FeatureVariationArgs
- Name string
- The name of the variation. Minimum length of
1
. Maximum length of127
. - Value
Feature
Variation Value - A block that specifies the value assigned to this variation. Detailed below
- Name string
- The name of the variation. Minimum length of
1
. Maximum length of127
. - Value
Feature
Variation Value - A block that specifies the value assigned to this variation. Detailed below
- name String
- The name of the variation. Minimum length of
1
. Maximum length of127
. - value
Feature
Variation Value - A block that specifies the value assigned to this variation. Detailed below
- name string
- The name of the variation. Minimum length of
1
. Maximum length of127
. - value
Feature
Variation Value - A block that specifies the value assigned to this variation. Detailed below
- name str
- The name of the variation. Minimum length of
1
. Maximum length of127
. - value
Feature
Variation Value - A block that specifies the value assigned to this variation. Detailed below
- name String
- The name of the variation. Minimum length of
1
. Maximum length of127
. - value Property Map
- A block that specifies the value assigned to this variation. Detailed below
FeatureVariationValue, FeatureVariationValueArgs
- Bool
Value string - If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
- Double
Value string - If this feature uses the double integer variation type, this field contains the double integer value of this variation.
- Long
Value string - If this feature uses the long variation type, this field contains the long value of this variation. Minimum value of
-9007199254740991
. Maximum value of9007199254740991
. - String
Value string - If this feature uses the string variation type, this field contains the string value of this variation. Minimum length of
0
. Maximum length of512
.
- Bool
Value string - If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
- Double
Value string - If this feature uses the double integer variation type, this field contains the double integer value of this variation.
- Long
Value string - If this feature uses the long variation type, this field contains the long value of this variation. Minimum value of
-9007199254740991
. Maximum value of9007199254740991
. - String
Value string - If this feature uses the string variation type, this field contains the string value of this variation. Minimum length of
0
. Maximum length of512
.
- bool
Value String - If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
- double
Value String - If this feature uses the double integer variation type, this field contains the double integer value of this variation.
- long
Value String - If this feature uses the long variation type, this field contains the long value of this variation. Minimum value of
-9007199254740991
. Maximum value of9007199254740991
. - string
Value String - If this feature uses the string variation type, this field contains the string value of this variation. Minimum length of
0
. Maximum length of512
.
- bool
Value string - If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
- double
Value string - If this feature uses the double integer variation type, this field contains the double integer value of this variation.
- long
Value string - If this feature uses the long variation type, this field contains the long value of this variation. Minimum value of
-9007199254740991
. Maximum value of9007199254740991
. - string
Value string - If this feature uses the string variation type, this field contains the string value of this variation. Minimum length of
0
. Maximum length of512
.
- bool_
value str - If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
- double_
value str - If this feature uses the double integer variation type, this field contains the double integer value of this variation.
- long_
value str - If this feature uses the long variation type, this field contains the long value of this variation. Minimum value of
-9007199254740991
. Maximum value of9007199254740991
. - string_
value str - If this feature uses the string variation type, this field contains the string value of this variation. Minimum length of
0
. Maximum length of512
.
- bool
Value String - If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
- double
Value String - If this feature uses the double integer variation type, this field contains the double integer value of this variation.
- long
Value String - If this feature uses the long variation type, this field contains the long value of this variation. Minimum value of
-9007199254740991
. Maximum value of9007199254740991
. - string
Value String - If this feature uses the string variation type, this field contains the string value of this variation. Minimum length of
0
. Maximum length of512
.
Import
Using pulumi import
, import CloudWatch Evidently Feature using the feature name
and name
or arn
of the hosting CloudWatch Evidently Project separated by a :
. For example:
$ pulumi import aws:evidently/feature:Feature example exampleFeatureName:arn:aws:evidently:us-east-1:123456789012:project/example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.