We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 14, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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:
- Dataset
Type Pulumi.Aws Native. Rekognition. Dataset Type - 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.
-
List<Pulumi.
Aws Native. Inputs. 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 string - The ARN of the project to which the dataset belongs.
-
Tag
Args - 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.
- list(object)
- 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 String - The ARN of the project to which the dataset belongs.
- List<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 string - The ARN of the project to which the dataset belongs.
- 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.
-
Sequence[Tag
Args] - 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.
- 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:
- Dataset
Arn 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.
- dataset_
arn 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.
- dataset
Arn 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.
- dataset
Arn 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
- Dataset
Type Train TRAIN- Dataset
Type Test 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.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 14, 2026 by Pulumi