1. Packages
  2. AWS Classic
  3. API Docs
  4. evidently
  5. Feature

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.22.2 published on Friday, Feb 16, 2024 by Pulumi

aws.evidently.Feature

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.22.2 published on Friday, Feb 16, 2024 by Pulumi

    Provides a CloudWatch Evidently Feature resource.

    Example Usage

    Basic

    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()
        {
            Project = aws_evidently_project.Example.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 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{
    			Project:     pulumi.Any(aws_evidently_project.Example.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
    	})
    }
    
    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()        
                .project(aws_evidently_project.example().name())
                .description("example description")
                .variations(FeatureVariationArgs.builder()
                    .name("Variation1")
                    .value(FeatureVariationValueArgs.builder()
                        .stringValue("example")
                        .build())
                    .build())
                .tags(Map.of("Key1", "example Feature"))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.evidently.Feature("example",
        project=aws_evidently_project["example"]["name"],
        description="example description",
        variations=[aws.evidently.FeatureVariationArgs(
            name="Variation1",
            value=aws.evidently.FeatureVariationValueArgs(
                string_value="example",
            ),
        )],
        tags={
            "Key1": "example Feature",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.evidently.Feature("example", {
        project: aws_evidently_project.example.name,
        description: "example description",
        variations: [{
            name: "Variation1",
            value: {
                stringValue: "example",
            },
        }],
        tags: {
            Key1: "example Feature",
        },
    });
    
    resources:
      example:
        type: aws:evidently:Feature
        properties:
          project: ${aws_evidently_project.example.name}
          description: example description
          variations:
            - name: Variation1
              value:
                stringValue: example
          tags:
            Key1: example Feature
    

    With default variation

    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()
        {
            Project = aws_evidently_project.Example.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 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{
    			Project:          pulumi.Any(aws_evidently_project.Example.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
    	})
    }
    
    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()        
                .project(aws_evidently_project.example().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());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.evidently.Feature("example",
        project=aws_evidently_project["example"]["name"],
        default_variation="Variation2",
        variations=[
            aws.evidently.FeatureVariationArgs(
                name="Variation1",
                value=aws.evidently.FeatureVariationValueArgs(
                    string_value="exampleval1",
                ),
            ),
            aws.evidently.FeatureVariationArgs(
                name="Variation2",
                value=aws.evidently.FeatureVariationValueArgs(
                    string_value="exampleval2",
                ),
            ),
        ])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.evidently.Feature("example", {
        project: aws_evidently_project.example.name,
        defaultVariation: "Variation2",
        variations: [
            {
                name: "Variation1",
                value: {
                    stringValue: "exampleval1",
                },
            },
            {
                name: "Variation2",
                value: {
                    stringValue: "exampleval2",
                },
            },
        ],
    });
    
    resources:
      example:
        type: aws:evidently:Feature
        properties:
          project: ${aws_evidently_project.example.name}
          defaultVariation: Variation2
          variations:
            - name: Variation1
              value:
                stringValue: exampleval1
            - name: Variation2
              value:
                stringValue: exampleval2
    

    With entity overrides

    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()
        {
            Project = aws_evidently_project.Example.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 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{
    			Project: pulumi.Any(aws_evidently_project.Example.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
    	})
    }
    
    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()        
                .project(aws_evidently_project.example().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());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.evidently.Feature("example",
        project=aws_evidently_project["example"]["name"],
        entity_overrides={
            "test1": "Variation1",
        },
        variations=[
            aws.evidently.FeatureVariationArgs(
                name="Variation1",
                value=aws.evidently.FeatureVariationValueArgs(
                    string_value="exampleval1",
                ),
            ),
            aws.evidently.FeatureVariationArgs(
                name="Variation2",
                value=aws.evidently.FeatureVariationValueArgs(
                    string_value="exampleval2",
                ),
            ),
        ])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.evidently.Feature("example", {
        project: aws_evidently_project.example.name,
        entityOverrides: {
            test1: "Variation1",
        },
        variations: [
            {
                name: "Variation1",
                value: {
                    stringValue: "exampleval1",
                },
            },
            {
                name: "Variation2",
                value: {
                    stringValue: "exampleval2",
                },
            },
        ],
    });
    
    resources:
      example:
        type: aws:evidently:Feature
        properties:
          project: ${aws_evidently_project.example.name}
          entityOverrides:
            test1: Variation1
          variations:
            - name: Variation1
              value:
                stringValue: exampleval1
            - name: Variation2
              value:
                stringValue: exampleval2
    

    With evaluation strategy

    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()
        {
            Project = aws_evidently_project.Example.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 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{
    			Project:            pulumi.Any(aws_evidently_project.Example.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
    	})
    }
    
    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()        
                .project(aws_evidently_project.example().name())
                .evaluationStrategy("ALL_RULES")
                .entityOverrides(Map.of("test1", "Variation1"))
                .variations(FeatureVariationArgs.builder()
                    .name("Variation1")
                    .value(FeatureVariationValueArgs.builder()
                        .stringValue("exampleval1")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.evidently.Feature("example",
        project=aws_evidently_project["example"]["name"],
        evaluation_strategy="ALL_RULES",
        entity_overrides={
            "test1": "Variation1",
        },
        variations=[aws.evidently.FeatureVariationArgs(
            name="Variation1",
            value=aws.evidently.FeatureVariationValueArgs(
                string_value="exampleval1",
            ),
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.evidently.Feature("example", {
        project: aws_evidently_project.example.name,
        evaluationStrategy: "ALL_RULES",
        entityOverrides: {
            test1: "Variation1",
        },
        variations: [{
            name: "Variation1",
            value: {
                stringValue: "exampleval1",
            },
        }],
    });
    
    resources:
      example:
        type: aws:evidently:Feature
        properties:
          project: ${aws_evidently_project.example.name}
          evaluationStrategy: ALL_RULES
          entityOverrides:
            test1: Variation1
          variations:
            - name: Variation1
              value:
                stringValue: exampleval1
    

    Create Feature Resource

    new Feature(name: string, args: FeatureArgs, opts?: CustomResourceOptions);
    @overload
    def Feature(resource_name: str,
                opts: Optional[ResourceOptions] = 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,
                project: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                variations: Optional[Sequence[FeatureVariationArgs]] = None)
    @overload
    def Feature(resource_name: str,
                args: FeatureArgs,
                opts: Optional[ResourceOptions] = 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.
    
    
    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

    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<FeatureVariation>
    One or more blocks that contain the configuration of the feature's different variations. Detailed below
    DefaultVariation 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 default_variation, the first variation listed in the variations structure is used as the default variation.
    Description string
    Specifies the description of the feature.
    EntityOverrides 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.
    EvaluationStrategy string
    Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.
    Name string
    The name for the new feature. Minimum length of 1. Maximum length of 127.
    Tags 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 []FeatureVariationArgs
    One or more blocks that contain the configuration of the feature's different variations. Detailed below
    DefaultVariation 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 default_variation, the first variation listed in the variations structure is used as the default variation.
    Description string
    Specifies the description of the feature.
    EntityOverrides 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.
    EvaluationStrategy string
    Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.
    Name string
    The name for the new feature. Minimum length of 1. Maximum length of 127.
    Tags 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<FeatureVariation>
    One or more blocks that contain the configuration of the feature's different variations. Detailed below
    defaultVariation 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 default_variation, the first variation listed in the variations structure is used as the default variation.
    description String
    Specifies the description of the feature.
    entityOverrides 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.
    evaluationStrategy String
    Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.
    name String
    The name for the new feature. Minimum length of 1. Maximum length of 127.
    tags 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 FeatureVariation[]
    One or more blocks that contain the configuration of the feature's different variations. Detailed below
    defaultVariation 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 default_variation, the first variation listed in the variations structure is used as the default variation.
    description string
    Specifies the description of the feature.
    entityOverrides {[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.
    evaluationStrategy string
    Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.
    name string
    The name for the new feature. Minimum length of 1. Maximum length of 127.
    tags {[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[FeatureVariationArgs]
    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 omit default_variation, the first variation listed in the variations 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. Specify DEFAULT_VARIATION to serve the default variation to all users instead.
    name str
    The name for the new feature. Minimum length of 1. Maximum length of 127.
    tags 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
    defaultVariation 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 default_variation, the first variation listed in the variations structure is used as the default variation.
    description String
    Specifies the description of the feature.
    entityOverrides 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.
    evaluationStrategy String
    Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.
    name String
    The name for the new feature. Minimum length of 1. Maximum length of 127.
    tags 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.
    CreatedTime string
    The date and time that the feature is created.
    EvaluationRules List<FeatureEvaluationRule>
    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.
    LastUpdatedTime string
    The date and time that the feature was most recently updated.
    Status string
    The current state of the feature. Valid values are AVAILABLE and UPDATING.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    ValueType 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.
    CreatedTime string
    The date and time that the feature is created.
    EvaluationRules []FeatureEvaluationRule
    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.
    LastUpdatedTime string
    The date and time that the feature was most recently updated.
    Status string
    The current state of the feature. Valid values are AVAILABLE and UPDATING.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    ValueType 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.
    createdTime String
    The date and time that the feature is created.
    evaluationRules List<FeatureEvaluationRule>
    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.
    lastUpdatedTime String
    The date and time that the feature was most recently updated.
    status String
    The current state of the feature. Valid values are AVAILABLE and UPDATING.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    valueType 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.
    createdTime string
    The date and time that the feature is created.
    evaluationRules FeatureEvaluationRule[]
    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.
    lastUpdatedTime string
    The date and time that the feature was most recently updated.
    status string
    The current state of the feature. Valid values are AVAILABLE and UPDATING.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    valueType 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[FeatureEvaluationRule]
    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_time str
    The date and time that the feature was most recently updated.
    status str
    The current state of the feature. Valid values are AVAILABLE and UPDATING.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    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.
    createdTime String
    The date and time that the feature is created.
    evaluationRules 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.
    lastUpdatedTime String
    The date and time that the feature was most recently updated.
    status String
    The current state of the feature. Valid values are AVAILABLE and UPDATING.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    valueType 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.
    The following state arguments are supported:
    Arn string
    The ARN of the feature.
    CreatedTime string
    The date and time that the feature is created.
    DefaultVariation 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 default_variation, the first variation listed in the variations structure is used as the default variation.
    Description string
    Specifies the description of the feature.
    EntityOverrides 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.
    EvaluationRules List<FeatureEvaluationRule>
    One or more blocks that define the evaluation rules for the feature. Detailed below
    EvaluationStrategy string
    Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.
    LastUpdatedTime string
    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 of 127.
    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 and UPDATING.
    Tags 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.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    ValueType string
    Defines the type of value used to define the different feature variations. Valid Values: STRING, LONG, DOUBLE, BOOLEAN.
    Variations List<FeatureVariation>
    One or more blocks that contain the configuration of the feature's different variations. Detailed below
    Arn string
    The ARN of the feature.
    CreatedTime string
    The date and time that the feature is created.
    DefaultVariation 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 default_variation, the first variation listed in the variations structure is used as the default variation.
    Description string
    Specifies the description of the feature.
    EntityOverrides 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.
    EvaluationRules []FeatureEvaluationRuleArgs
    One or more blocks that define the evaluation rules for the feature. Detailed below
    EvaluationStrategy string
    Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.
    LastUpdatedTime string
    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 of 127.
    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 and UPDATING.
    Tags 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.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    ValueType string
    Defines the type of value used to define the different feature variations. Valid Values: STRING, LONG, DOUBLE, BOOLEAN.
    Variations []FeatureVariationArgs
    One or more blocks that contain the configuration of the feature's different variations. Detailed below
    arn String
    The ARN of the feature.
    createdTime String
    The date and time that the feature is created.
    defaultVariation 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 default_variation, the first variation listed in the variations structure is used as the default variation.
    description String
    Specifies the description of the feature.
    entityOverrides 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.
    evaluationRules List<FeatureEvaluationRule>
    One or more blocks that define the evaluation rules for the feature. Detailed below
    evaluationStrategy String
    Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.
    lastUpdatedTime String
    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 of 127.
    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 and UPDATING.
    tags 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.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    valueType String
    Defines the type of value used to define the different feature variations. Valid Values: STRING, LONG, DOUBLE, BOOLEAN.
    variations List<FeatureVariation>
    One or more blocks that contain the configuration of the feature's different variations. Detailed below
    arn string
    The ARN of the feature.
    createdTime string
    The date and time that the feature is created.
    defaultVariation 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 default_variation, the first variation listed in the variations structure is used as the default variation.
    description string
    Specifies the description of the feature.
    entityOverrides {[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.
    evaluationRules FeatureEvaluationRule[]
    One or more blocks that define the evaluation rules for the feature. Detailed below
    evaluationStrategy string
    Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.
    lastUpdatedTime string
    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 of 127.
    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 and UPDATING.
    tags {[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.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    valueType string
    Defines the type of value used to define the different feature variations. Valid Values: STRING, LONG, DOUBLE, BOOLEAN.
    variations FeatureVariation[]
    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 omit default_variation, the first variation listed in the variations 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[FeatureEvaluationRuleArgs]
    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. Specify DEFAULT_VARIATION to serve the default variation to all users instead.
    last_updated_time str
    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 of 127.
    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 and UPDATING.
    tags 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.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    value_type str
    Defines the type of value used to define the different feature variations. Valid Values: STRING, LONG, DOUBLE, BOOLEAN.
    variations Sequence[FeatureVariationArgs]
    One or more blocks that contain the configuration of the feature's different variations. Detailed below
    arn String
    The ARN of the feature.
    createdTime String
    The date and time that the feature is created.
    defaultVariation 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 default_variation, the first variation listed in the variations structure is used as the default variation.
    description String
    Specifies the description of the feature.
    entityOverrides 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.
    evaluationRules List<Property Map>
    One or more blocks that define the evaluation rules for the feature. Detailed below
    evaluationStrategy String
    Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.
    lastUpdatedTime String
    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 of 127.
    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 and UPDATING.
    tags 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.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    valueType 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

    Name string
    The name for the new feature. Minimum length of 1. Maximum length of 127.
    Type string
    This value is aws.evidently.splits if this is an evaluation rule for a launch, and it is aws.evidently.onlineab if this is an evaluation rule for an experiment.
    Name string
    The name for the new feature. Minimum length of 1. Maximum length of 127.
    Type string
    This value is aws.evidently.splits if this is an evaluation rule for a launch, and it is aws.evidently.onlineab if this is an evaluation rule for an experiment.
    name String
    The name for the new feature. Minimum length of 1. Maximum length of 127.
    type String
    This value is aws.evidently.splits if this is an evaluation rule for a launch, and it is aws.evidently.onlineab if this is an evaluation rule for an experiment.
    name string
    The name for the new feature. Minimum length of 1. Maximum length of 127.
    type string
    This value is aws.evidently.splits if this is an evaluation rule for a launch, and it is aws.evidently.onlineab if this is an evaluation rule for an experiment.
    name str
    The name for the new feature. Minimum length of 1. Maximum length of 127.
    type str
    This value is aws.evidently.splits if this is an evaluation rule for a launch, and it is aws.evidently.onlineab if this is an evaluation rule for an experiment.
    name String
    The name for the new feature. Minimum length of 1. Maximum length of 127.
    type String
    This value is aws.evidently.splits if this is an evaluation rule for a launch, and it is aws.evidently.onlineab if this is an evaluation rule for an experiment.

    FeatureVariation, FeatureVariationArgs

    Name string
    The name of the variation. Minimum length of 1. Maximum length of 127.
    Value FeatureVariationValue
    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 of 127.
    Value FeatureVariationValue
    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 of 127.
    value FeatureVariationValue
    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 of 127.
    value FeatureVariationValue
    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 of 127.
    value FeatureVariationValue
    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 of 127.
    value Property Map
    A block that specifies the value assigned to this variation. Detailed below

    FeatureVariationValue, FeatureVariationValueArgs

    BoolValue string
    If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
    DoubleValue string
    If this feature uses the double integer variation type, this field contains the double integer value of this variation.
    LongValue string
    If this feature uses the long variation type, this field contains the long value of this variation. Minimum value of -9007199254740991. Maximum value of 9007199254740991.
    StringValue string
    If this feature uses the string variation type, this field contains the string value of this variation. Minimum length of 0. Maximum length of 512.
    BoolValue string
    If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
    DoubleValue string
    If this feature uses the double integer variation type, this field contains the double integer value of this variation.
    LongValue string
    If this feature uses the long variation type, this field contains the long value of this variation. Minimum value of -9007199254740991. Maximum value of 9007199254740991.
    StringValue string
    If this feature uses the string variation type, this field contains the string value of this variation. Minimum length of 0. Maximum length of 512.
    boolValue String
    If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
    doubleValue String
    If this feature uses the double integer variation type, this field contains the double integer value of this variation.
    longValue String
    If this feature uses the long variation type, this field contains the long value of this variation. Minimum value of -9007199254740991. Maximum value of 9007199254740991.
    stringValue String
    If this feature uses the string variation type, this field contains the string value of this variation. Minimum length of 0. Maximum length of 512.
    boolValue string
    If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
    doubleValue string
    If this feature uses the double integer variation type, this field contains the double integer value of this variation.
    longValue string
    If this feature uses the long variation type, this field contains the long value of this variation. Minimum value of -9007199254740991. Maximum value of 9007199254740991.
    stringValue string
    If this feature uses the string variation type, this field contains the string value of this variation. Minimum length of 0. Maximum length of 512.
    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 of 9007199254740991.
    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 of 512.
    boolValue String
    If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
    doubleValue String
    If this feature uses the double integer variation type, this field contains the double integer value of this variation.
    longValue String
    If this feature uses the long variation type, this field contains the long value of this variation. Minimum value of -9007199254740991. Maximum value of 9007199254740991.
    stringValue String
    If this feature uses the string variation type, this field contains the string value of this variation. Minimum length of 0. Maximum length of 512.

    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
    

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.22.2 published on Friday, Feb 16, 2024 by Pulumi