Project
Provides a CloudWatch Evidently Project resource.
Example Usage
Basic
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.evidently.Project("example", {
name: "Example",
description: "Example Description",
tags: {
Key1: "example Project",
},
});
import pulumi
import pulumi_aws as aws
example = aws.evidently.Project("example",
name="Example",
description="Example Description",
tags={
"Key1": "example Project",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Evidently.Project("example", new()
{
Name = "Example",
Description = "Example Description",
Tags =
{
{ "Key1", "example Project" },
},
});
});
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.NewProject(ctx, "example", &evidently.ProjectArgs{
Name: pulumi.String("Example"),
Description: pulumi.String("Example Description"),
Tags: pulumi.StringMap{
"Key1": pulumi.String("example Project"),
},
})
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.Project;
import com.pulumi.aws.evidently.ProjectArgs;
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 Project("example", ProjectArgs.builder()
.name("Example")
.description("Example Description")
.tags(Map.of("Key1", "example Project"))
.build());
}
}
resources:
example:
type: aws:evidently:Project
properties:
name: Example
description: Example Description
tags:
Key1: example Project
Store evaluation events in a CloudWatch Log Group
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.evidently.Project("example", {
name: "Example",
description: "Example Description",
dataDelivery: {
cloudwatchLogs: {
logGroup: "example-log-group-name",
},
},
tags: {
Key1: "example Project",
},
});
import pulumi
import pulumi_aws as aws
example = aws.evidently.Project("example",
name="Example",
description="Example Description",
data_delivery={
"cloudwatch_logs": {
"log_group": "example-log-group-name",
},
},
tags={
"Key1": "example Project",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Evidently.Project("example", new()
{
Name = "Example",
Description = "Example Description",
DataDelivery = new Aws.Evidently.Inputs.ProjectDataDeliveryArgs
{
CloudwatchLogs = new Aws.Evidently.Inputs.ProjectDataDeliveryCloudwatchLogsArgs
{
LogGroup = "example-log-group-name",
},
},
Tags =
{
{ "Key1", "example Project" },
},
});
});
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.NewProject(ctx, "example", &evidently.ProjectArgs{
Name: pulumi.String("Example"),
Description: pulumi.String("Example Description"),
DataDelivery: &evidently.ProjectDataDeliveryArgs{
CloudwatchLogs: &evidently.ProjectDataDeliveryCloudwatchLogsArgs{
LogGroup: pulumi.String("example-log-group-name"),
},
},
Tags: pulumi.StringMap{
"Key1": pulumi.String("example Project"),
},
})
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.Project;
import com.pulumi.aws.evidently.ProjectArgs;
import com.pulumi.aws.evidently.inputs.ProjectDataDeliveryArgs;
import com.pulumi.aws.evidently.inputs.ProjectDataDeliveryCloudwatchLogsArgs;
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 Project("example", ProjectArgs.builder()
.name("Example")
.description("Example Description")
.dataDelivery(ProjectDataDeliveryArgs.builder()
.cloudwatchLogs(ProjectDataDeliveryCloudwatchLogsArgs.builder()
.logGroup("example-log-group-name")
.build())
.build())
.tags(Map.of("Key1", "example Project"))
.build());
}
}
resources:
example:
type: aws:evidently:Project
properties:
name: Example
description: Example Description
dataDelivery:
cloudwatchLogs:
logGroup: example-log-group-name
tags:
Key1: example Project
Store evaluation events in an S3 bucket
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.evidently.Project("example", {
name: "Example",
description: "Example Description",
dataDelivery: {
s3Destination: {
bucket: "example-bucket-name",
prefix: "example",
},
},
tags: {
Key1: "example Project",
},
});
import pulumi
import pulumi_aws as aws
example = aws.evidently.Project("example",
name="Example",
description="Example Description",
data_delivery={
"s3_destination": {
"bucket": "example-bucket-name",
"prefix": "example",
},
},
tags={
"Key1": "example Project",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Evidently.Project("example", new()
{
Name = "Example",
Description = "Example Description",
DataDelivery = new Aws.Evidently.Inputs.ProjectDataDeliveryArgs
{
S3Destination = new Aws.Evidently.Inputs.ProjectDataDeliveryS3DestinationArgs
{
Bucket = "example-bucket-name",
Prefix = "example",
},
},
Tags =
{
{ "Key1", "example Project" },
},
});
});
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.NewProject(ctx, "example", &evidently.ProjectArgs{
Name: pulumi.String("Example"),
Description: pulumi.String("Example Description"),
DataDelivery: &evidently.ProjectDataDeliveryArgs{
S3Destination: &evidently.ProjectDataDeliveryS3DestinationArgs{
Bucket: pulumi.String("example-bucket-name"),
Prefix: pulumi.String("example"),
},
},
Tags: pulumi.StringMap{
"Key1": pulumi.String("example Project"),
},
})
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.Project;
import com.pulumi.aws.evidently.ProjectArgs;
import com.pulumi.aws.evidently.inputs.ProjectDataDeliveryArgs;
import com.pulumi.aws.evidently.inputs.ProjectDataDeliveryS3DestinationArgs;
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 Project("example", ProjectArgs.builder()
.name("Example")
.description("Example Description")
.dataDelivery(ProjectDataDeliveryArgs.builder()
.s3Destination(ProjectDataDeliveryS3DestinationArgs.builder()
.bucket("example-bucket-name")
.prefix("example")
.build())
.build())
.tags(Map.of("Key1", "example Project"))
.build());
}
}
resources:
example:
type: aws:evidently:Project
properties:
name: Example
description: Example Description
dataDelivery:
s3Destination:
bucket: example-bucket-name
prefix: example
tags:
Key1: example Project
Import
Using pulumi import
, import CloudWatch Evidently Project using the arn
. For example:
$ pulumi import aws:evidently/project:Project example arn:aws:evidently:us-east-1:123456789012:segment/example
Properties
The number of ongoing experiments currently in the project.
The number of ongoing launches currently in the project.
The date and time that the project is created.
A block that contains information about where Evidently is to store evaluation events for longer term storage, if you choose to do so. If you choose not to store these events, Evidently deletes them after using them to produce metrics and other experiment results that you can view. See below.
Specifies the description of the project.
The number of experiments currently in the project. This includes all experiments that have been created and not deleted, whether they are ongoing or not.
The number of features currently in the project.
The date and time that the project was most recently updated.
The number of launches currently in the project. This includes all launches that have been created and not deleted, whether they are ongoing or not.