ProjectArgs

data class ProjectArgs(val autoUpdate: Output<String>? = null, val feature: Output<String>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val timeouts: Output<ProjectTimeoutsArgs>? = null) : ConvertibleToJava<ProjectArgs>

Resource for managing an AWS Rekognition Project.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.rekognition.Project("example", {
name: "example-project",
autoUpdate: "ENABLED",
feature: "CONTENT_MODERATION",
});
import pulumi
import pulumi_aws as aws
example = aws.rekognition.Project("example",
name="example-project",
auto_update="ENABLED",
feature="CONTENT_MODERATION")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Rekognition.Project("example", new()
{
Name = "example-project",
AutoUpdate = "ENABLED",
Feature = "CONTENT_MODERATION",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rekognition"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rekognition.NewProject(ctx, "example", &rekognition.ProjectArgs{
Name: pulumi.String("example-project"),
AutoUpdate: pulumi.String("ENABLED"),
Feature: pulumi.String("CONTENT_MODERATION"),
})
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.rekognition.Project;
import com.pulumi.aws.rekognition.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-project")
.autoUpdate("ENABLED")
.feature("CONTENT_MODERATION")
.build());
}
}
resources:
example:
type: aws:rekognition:Project
properties:
name: example-project
autoUpdate: ENABLED
feature: CONTENT_MODERATION

Import

Using pulumi import, import Rekognition Project using the name. For example:

$ pulumi import aws:rekognition/project:Project example project-id-12345678

Constructors

Link copied to clipboard
constructor(autoUpdate: Output<String>? = null, feature: Output<String>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null, timeouts: Output<ProjectTimeoutsArgs>? = null)

Properties

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

Specify if automatic retraining should occur. Valid values are ENABLED or DISABLED. Defaults to DISABLED.

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

Specify the feature being customized. Valid values are CONTENT_MODERATION or CUSTOM_LABELS. Defaults to CUSTOM_LABELS.

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

Desired name of the project. The following arguments are optional:

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

Map of tags assigned to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val timeouts: Output<ProjectTimeoutsArgs>? = null

Functions

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