CfnDatasetProps

class aws_cdk.aws_rekognition.CfnDatasetProps(*, dataset_type, project_arn=None, tags=None)

Bases: object

Properties for defining a CfnDataset.

Parameters:
  • dataset_type (str) – The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.

  • project_arn (Optional[str]) – The ARN of the project to which the dataset belongs.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – An array of key-value pairs to apply to this resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-dataset.html

ExampleMetadata:

fixture=_generated

Example:

from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_rekognition as rekognition

cfn_dataset_props = rekognition.CfnDatasetProps(
    dataset_type="datasetType",

    # the properties below are optional
    project_arn="projectArn",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

dataset_type

The type of the dataset.

Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-dataset.html#cfn-rekognition-dataset-datasettype

project_arn

The ARN of the project to which the dataset belongs.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-dataset.html#cfn-rekognition-dataset-projectarn

tags

An array of key-value pairs to apply to this resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-dataset.html#cfn-rekognition-dataset-tags