Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateDatasetCommand

Creates a new dataset in an Amazon Lookout for Vision project. CreateDataset can create a training or a test dataset from a valid dataset source (DatasetSource).

If you want a single dataset project, specify train for the value of DatasetType.

To have a project with separate training and test datasets, call CreateDataset twice. On the first call, specify train for the value of DatasetType. On the second call, specify test for the value of DatasetType.

This operation requires permissions to perform the lookoutvision:CreateDataset operation.

example

Use a bare-bones client and the command you need to make an API call.

import { LookoutVisionClient, CreateDatasetCommand } from "@aws-sdk/client-lookoutvision"; // ES Modules import
// const { LookoutVisionClient, CreateDatasetCommand } = require("@aws-sdk/client-lookoutvision"); // CommonJS import
const client = new LookoutVisionClient(config);
const command = new CreateDatasetCommand(input);
const response = await client.send(command);
see

CreateDatasetCommandInput for command's input shape.

see

CreateDatasetCommandOutput for command's response shape.

see

config for LookoutVisionClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateDatasetCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateDatasetCommandInput, CreateDatasetCommandOutput>

Methods

Static getEndpointParameterInstructions