ProjectArgs

data class ProjectArgs(val dataDelivery: Output<ProjectDataDeliveryArgs>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ProjectArgs>

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

Constructors

Link copied to clipboard
constructor(dataDelivery: Output<ProjectDataDeliveryArgs>? = null, description: Output<String>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard

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.

Link copied to clipboard
val description: Output<String>? = null

Specifies the description of the project.

Link copied to clipboard
val name: Output<String>? = null

A name for the project.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Tags to apply to the project. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): ProjectArgs