Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteDatasetCommand

Deletes an existing Amazon Lookout for Vision dataset.

If your the project has a single dataset, you must create a new dataset before you can create a model.

If you project has a training dataset and a test dataset consider the following.

  • If you delete the test dataset, your project reverts to a single dataset project. If you then train the model, Amazon Lookout for Vision internally splits the remaining dataset into a training and test dataset.

  • If you delete the training dataset, you must create a training dataset before you can create a model.

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

example

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

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

DeleteDatasetCommandInput for command's input shape.

see

DeleteDatasetCommandOutput for command's response shape.

see

config for LookoutVisionClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DeleteDatasetCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<DeleteDatasetCommandInput, DeleteDatasetCommandOutput>

Methods

Static getEndpointParameterInstructions