amazonka-rekognition-2.0: Amazon Rekognition SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Rekognition.CreateDataset

Description

Creates a new Amazon Rekognition Custom Labels dataset. You can create a dataset by using an Amazon Sagemaker format manifest file or by copying an existing Amazon Rekognition Custom Labels dataset.

To create a training dataset for a project, specify train for the value of DatasetType. To create the test dataset for a project, specify test for the value of DatasetType.

The response from CreateDataset is the Amazon Resource Name (ARN) for the dataset. Creating a dataset takes a while to complete. Use DescribeDataset to check the current status. The dataset created successfully if the value of Status is CREATE_COMPLETE.

To check if any non-terminal errors occurred, call ListDatasetEntries and check for the presence of errors lists in the JSON Lines.

Dataset creation fails if a terminal error occurs (Status = CREATE_FAILED). Currently, you can't access the terminal error information.

For more information, see Creating dataset in the /Amazon Rekognition Custom Labels Developer Guide/.

This operation requires permissions to perform the rekognition:CreateDataset action. If you want to copy an existing dataset, you also require permission to perform the rekognition:ListDatasetEntries action.

Synopsis

Creating a Request

data CreateDataset Source #

See: newCreateDataset smart constructor.

Constructors

CreateDataset' 

Fields

  • datasetSource :: Maybe DatasetSource

    The source files for the dataset. You can specify the ARN of an existing dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format manifest file. If you don't specify datasetSource, an empty dataset is created. To add labeled images to the dataset, You can use the console or call UpdateDatasetEntries.

  • datasetType :: DatasetType

    The type of the dataset. Specify train to create a training dataset. Specify test to create a test dataset.

  • projectArn :: Text

    The ARN of the Amazon Rekognition Custom Labels project to which you want to asssign the dataset.

Instances

Instances details
ToJSON CreateDataset Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

ToHeaders CreateDataset Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

ToPath CreateDataset Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

ToQuery CreateDataset Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

AWSRequest CreateDataset Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

Associated Types

type AWSResponse CreateDataset #

Generic CreateDataset Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

Associated Types

type Rep CreateDataset :: Type -> Type #

Read CreateDataset Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

Show CreateDataset Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

NFData CreateDataset Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

Methods

rnf :: CreateDataset -> () #

Eq CreateDataset Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

Hashable CreateDataset Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

type AWSResponse CreateDataset Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

type Rep CreateDataset Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

type Rep CreateDataset = D1 ('MetaData "CreateDataset" "Amazonka.Rekognition.CreateDataset" "amazonka-rekognition-2.0-EaCrS9R3rWADqefEZvOx5B" 'False) (C1 ('MetaCons "CreateDataset'" 'PrefixI 'True) (S1 ('MetaSel ('Just "datasetSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DatasetSource)) :*: (S1 ('MetaSel ('Just "datasetType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DatasetType) :*: S1 ('MetaSel ('Just "projectArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateDataset Source #

Create a value of CreateDataset with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:datasetSource:CreateDataset', createDataset_datasetSource - The source files for the dataset. You can specify the ARN of an existing dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format manifest file. If you don't specify datasetSource, an empty dataset is created. To add labeled images to the dataset, You can use the console or call UpdateDatasetEntries.

CreateDataset, createDataset_datasetType - The type of the dataset. Specify train to create a training dataset. Specify test to create a test dataset.

CreateDataset, createDataset_projectArn - The ARN of the Amazon Rekognition Custom Labels project to which you want to asssign the dataset.

Request Lenses

createDataset_datasetSource :: Lens' CreateDataset (Maybe DatasetSource) Source #

The source files for the dataset. You can specify the ARN of an existing dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format manifest file. If you don't specify datasetSource, an empty dataset is created. To add labeled images to the dataset, You can use the console or call UpdateDatasetEntries.

createDataset_datasetType :: Lens' CreateDataset DatasetType Source #

The type of the dataset. Specify train to create a training dataset. Specify test to create a test dataset.

createDataset_projectArn :: Lens' CreateDataset Text Source #

The ARN of the Amazon Rekognition Custom Labels project to which you want to asssign the dataset.

Destructuring the Response

data CreateDatasetResponse Source #

See: newCreateDatasetResponse smart constructor.

Constructors

CreateDatasetResponse' 

Fields

Instances

Instances details
Generic CreateDatasetResponse Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

Associated Types

type Rep CreateDatasetResponse :: Type -> Type #

Read CreateDatasetResponse Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

Show CreateDatasetResponse Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

NFData CreateDatasetResponse Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

Methods

rnf :: CreateDatasetResponse -> () #

Eq CreateDatasetResponse Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

type Rep CreateDatasetResponse Source # 
Instance details

Defined in Amazonka.Rekognition.CreateDataset

type Rep CreateDatasetResponse = D1 ('MetaData "CreateDatasetResponse" "Amazonka.Rekognition.CreateDataset" "amazonka-rekognition-2.0-EaCrS9R3rWADqefEZvOx5B" 'False) (C1 ('MetaCons "CreateDatasetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "datasetArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateDatasetResponse Source #

Create a value of CreateDatasetResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateDatasetResponse, createDatasetResponse_datasetArn - The ARN of the created Amazon Rekognition Custom Labels dataset.

$sel:httpStatus:CreateDatasetResponse', createDatasetResponse_httpStatus - The response's http status code.

Response Lenses

createDatasetResponse_datasetArn :: Lens' CreateDatasetResponse (Maybe Text) Source #

The ARN of the created Amazon Rekognition Custom Labels dataset.