1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. rekognition
  6. Dataset

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi

    The AWS::Rekognition::Dataset type creates an Amazon Rekognition Custom Labels dataset.

    Create Dataset Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Dataset(name: string, args: DatasetArgs, opts?: CustomResourceOptions);
    @overload
    def Dataset(resource_name: str,
                args: DatasetArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Dataset(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                dataset_type: Optional[DatasetType] = None,
                project_arn: Optional[str] = None,
                tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewDataset(ctx *Context, name string, args DatasetArgs, opts ...ResourceOption) (*Dataset, error)
    public Dataset(string name, DatasetArgs args, CustomResourceOptions? opts = null)
    public Dataset(String name, DatasetArgs args)
    public Dataset(String name, DatasetArgs args, CustomResourceOptions options)
    
    type: aws-native:rekognition:Dataset
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_rekognition_dataset" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args DatasetArgs
    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 DatasetArgs
    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 DatasetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DatasetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DatasetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Dataset Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Dataset resource accepts the following input properties:

    DatasetType Pulumi.AwsNative.Rekognition.DatasetType
    The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.
    ProjectArn string
    The ARN of the project to which the dataset belongs.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    An array of key-value pairs to apply to this resource.
    DatasetType DatasetType
    The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.
    ProjectArn string
    The ARN of the project to which the dataset belongs.
    Tags TagArgs
    An array of key-value pairs to apply to this resource.
    dataset_type "TRAIN" | "TEST"
    The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.
    project_arn string
    The ARN of the project to which the dataset belongs.
    tags list(object)
    An array of key-value pairs to apply to this resource.
    datasetType DatasetType
    The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.
    projectArn String
    The ARN of the project to which the dataset belongs.
    tags List<Tag>
    An array of key-value pairs to apply to this resource.
    datasetType DatasetType
    The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.
    projectArn string
    The ARN of the project to which the dataset belongs.
    tags Tag[]
    An array of key-value pairs to apply to this resource.
    dataset_type DatasetType
    The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.
    project_arn str
    The ARN of the project to which the dataset belongs.
    tags Sequence[TagArgs]
    An array of key-value pairs to apply to this resource.
    datasetType "TRAIN" | "TEST"
    The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.
    projectArn String
    The ARN of the project to which the dataset belongs.
    tags List<Property Map>
    An array of key-value pairs to apply to this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Dataset resource produces the following output properties:

    DatasetArn string
    The ARN of the dataset.
    Id string
    The provider-assigned unique ID for this managed resource.
    DatasetArn string
    The ARN of the dataset.
    Id string
    The provider-assigned unique ID for this managed resource.
    dataset_arn string
    The ARN of the dataset.
    id string
    The provider-assigned unique ID for this managed resource.
    datasetArn String
    The ARN of the dataset.
    id String
    The provider-assigned unique ID for this managed resource.
    datasetArn string
    The ARN of the dataset.
    id string
    The provider-assigned unique ID for this managed resource.
    dataset_arn str
    The ARN of the dataset.
    id str
    The provider-assigned unique ID for this managed resource.
    datasetArn String
    The ARN of the dataset.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    DatasetType, DatasetTypeArgs

    Train
    TRAIN
    Test
    TEST
    DatasetTypeTrain
    TRAIN
    DatasetTypeTest
    TEST
    "TRAIN"
    TRAIN
    "TEST"
    TEST
    Train
    TRAIN
    Test
    TEST
    Train
    TRAIN
    Test
    TEST
    TRAIN
    TRAIN
    TEST
    TEST
    "TRAIN"
    TRAIN
    "TEST"
    TEST

    Tag, TagArgs

    A set of tags to apply to the resource.
    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.79.0
    published on Monday, Sep 14, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial