Try AWS Native preview for resources not in the classic version.
aws.rekognition.Project
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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")
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
})
}
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 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
Create Project Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Project(name: string, args?: ProjectArgs, opts?: CustomResourceOptions);
@overload
def Project(resource_name: str,
args: Optional[ProjectArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Project(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_update: Optional[str] = None,
feature: Optional[str] = None,
name: Optional[str] = None,
timeouts: Optional[ProjectTimeoutsArgs] = None)
func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)
public Project(string name, ProjectArgs? args = null, CustomResourceOptions? opts = null)
public Project(String name, ProjectArgs args)
public Project(String name, ProjectArgs args, CustomResourceOptions options)
type: aws:rekognition:Project
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 ProjectArgs
- 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 ProjectArgs
- 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 ProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectArgs
- 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 exampleprojectResourceResourceFromRekognitionproject = new Aws.Rekognition.Project("exampleprojectResourceResourceFromRekognitionproject", new()
{
AutoUpdate = "string",
Feature = "string",
Name = "string",
Timeouts = new Aws.Rekognition.Inputs.ProjectTimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := rekognition.NewProject(ctx, "exampleprojectResourceResourceFromRekognitionproject", &rekognition.ProjectArgs{
AutoUpdate: pulumi.String("string"),
Feature: pulumi.String("string"),
Name: pulumi.String("string"),
Timeouts: &rekognition.ProjectTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var exampleprojectResourceResourceFromRekognitionproject = new Project("exampleprojectResourceResourceFromRekognitionproject", ProjectArgs.builder()
.autoUpdate("string")
.feature("string")
.name("string")
.timeouts(ProjectTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
exampleproject_resource_resource_from_rekognitionproject = aws.rekognition.Project("exampleprojectResourceResourceFromRekognitionproject",
auto_update="string",
feature="string",
name="string",
timeouts={
"create": "string",
"delete": "string",
})
const exampleprojectResourceResourceFromRekognitionproject = new aws.rekognition.Project("exampleprojectResourceResourceFromRekognitionproject", {
autoUpdate: "string",
feature: "string",
name: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: aws:rekognition:Project
properties:
autoUpdate: string
feature: string
name: string
timeouts:
create: string
delete: string
Project 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 Project resource accepts the following input properties:
- Auto
Update string - Specify if automatic retraining should occur. Valid values are
ENABLED
orDISABLED
. Defaults toDISABLED
- Feature string
- Specify the feature being customized. Valid values are
CONTENT_MODERATION
orCUSTOM_LABELS
. Defaults toCUSTOM_LABELS
- Name string
Desired name of the project
The following arguments are optional:
- Timeouts
Project
Timeouts
- Auto
Update string - Specify if automatic retraining should occur. Valid values are
ENABLED
orDISABLED
. Defaults toDISABLED
- Feature string
- Specify the feature being customized. Valid values are
CONTENT_MODERATION
orCUSTOM_LABELS
. Defaults toCUSTOM_LABELS
- Name string
Desired name of the project
The following arguments are optional:
- Timeouts
Project
Timeouts Args
- auto
Update String - Specify if automatic retraining should occur. Valid values are
ENABLED
orDISABLED
. Defaults toDISABLED
- feature String
- Specify the feature being customized. Valid values are
CONTENT_MODERATION
orCUSTOM_LABELS
. Defaults toCUSTOM_LABELS
- name String
Desired name of the project
The following arguments are optional:
- timeouts
Project
Timeouts
- auto
Update string - Specify if automatic retraining should occur. Valid values are
ENABLED
orDISABLED
. Defaults toDISABLED
- feature string
- Specify the feature being customized. Valid values are
CONTENT_MODERATION
orCUSTOM_LABELS
. Defaults toCUSTOM_LABELS
- name string
Desired name of the project
The following arguments are optional:
- timeouts
Project
Timeouts
- auto_
update str - Specify if automatic retraining should occur. Valid values are
ENABLED
orDISABLED
. Defaults toDISABLED
- feature str
- Specify the feature being customized. Valid values are
CONTENT_MODERATION
orCUSTOM_LABELS
. Defaults toCUSTOM_LABELS
- name str
Desired name of the project
The following arguments are optional:
- timeouts
Project
Timeouts Args
- auto
Update String - Specify if automatic retraining should occur. Valid values are
ENABLED
orDISABLED
. Defaults toDISABLED
- feature String
- Specify the feature being customized. Valid values are
CONTENT_MODERATION
orCUSTOM_LABELS
. Defaults toCUSTOM_LABELS
- name String
Desired name of the project
The following arguments are optional:
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:
Look up Existing Project Resource
Get an existing Project 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?: ProjectState, opts?: CustomResourceOptions): Project
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
auto_update: Optional[str] = None,
feature: Optional[str] = None,
name: Optional[str] = None,
timeouts: Optional[ProjectTimeoutsArgs] = None) -> Project
func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)
public static Project get(String name, Output<String> id, ProjectState 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
- ARN of the Project.
- Auto
Update string - Specify if automatic retraining should occur. Valid values are
ENABLED
orDISABLED
. Defaults toDISABLED
- Feature string
- Specify the feature being customized. Valid values are
CONTENT_MODERATION
orCUSTOM_LABELS
. Defaults toCUSTOM_LABELS
- Name string
Desired name of the project
The following arguments are optional:
- Timeouts
Project
Timeouts
- Arn string
- ARN of the Project.
- Auto
Update string - Specify if automatic retraining should occur. Valid values are
ENABLED
orDISABLED
. Defaults toDISABLED
- Feature string
- Specify the feature being customized. Valid values are
CONTENT_MODERATION
orCUSTOM_LABELS
. Defaults toCUSTOM_LABELS
- Name string
Desired name of the project
The following arguments are optional:
- Timeouts
Project
Timeouts Args
- arn String
- ARN of the Project.
- auto
Update String - Specify if automatic retraining should occur. Valid values are
ENABLED
orDISABLED
. Defaults toDISABLED
- feature String
- Specify the feature being customized. Valid values are
CONTENT_MODERATION
orCUSTOM_LABELS
. Defaults toCUSTOM_LABELS
- name String
Desired name of the project
The following arguments are optional:
- timeouts
Project
Timeouts
- arn string
- ARN of the Project.
- auto
Update string - Specify if automatic retraining should occur. Valid values are
ENABLED
orDISABLED
. Defaults toDISABLED
- feature string
- Specify the feature being customized. Valid values are
CONTENT_MODERATION
orCUSTOM_LABELS
. Defaults toCUSTOM_LABELS
- name string
Desired name of the project
The following arguments are optional:
- timeouts
Project
Timeouts
- arn str
- ARN of the Project.
- auto_
update str - Specify if automatic retraining should occur. Valid values are
ENABLED
orDISABLED
. Defaults toDISABLED
- feature str
- Specify the feature being customized. Valid values are
CONTENT_MODERATION
orCUSTOM_LABELS
. Defaults toCUSTOM_LABELS
- name str
Desired name of the project
The following arguments are optional:
- timeouts
Project
Timeouts Args
- arn String
- ARN of the Project.
- auto
Update String - Specify if automatic retraining should occur. Valid values are
ENABLED
orDISABLED
. Defaults toDISABLED
- feature String
- Specify the feature being customized. Valid values are
CONTENT_MODERATION
orCUSTOM_LABELS
. Defaults toCUSTOM_LABELS
- name String
Desired name of the project
The following arguments are optional:
- timeouts Property Map
Supporting Types
ProjectTimeouts, ProjectTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
Import
Using pulumi import
, import Rekognition Project using the name
. For example:
$ pulumi import aws:rekognition/project:Project example project-id-12345678
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.
Try AWS Native preview for resources not in the classic version.