Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class DeleteDatasetCommandProtected

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 input = { // DeleteDatasetRequest
ProjectName: "STRING_VALUE", // required
DatasetType: "STRING_VALUE", // required
ClientToken: "STRING_VALUE",
};
const command = new DeleteDatasetCommand(input);
const response = await client.send(command);
// {};

Param

DeleteDatasetCommandInput

Returns

DeleteDatasetCommandOutput

See

Throws

AccessDeniedException (client fault)

You are not authorized to perform the action.

Throws

ConflictException (client fault)

The update or deletion of a resource caused an inconsistent state.

Throws

InternalServerException (server fault)

Amazon Lookout for Vision experienced a service issue. Try your call again.

Throws

ResourceNotFoundException (client fault)

The resource could not be found.

Throws

ThrottlingException (client fault)

Amazon Lookout for Vision is temporarily unable to process the request. Try your call again.

Throws

ValidationException (client fault)

An input validation error occured. For example, invalid characters in a project name, or if a pagination token is invalid.

Throws

LookoutVisionServiceException

Base exception class for all service exceptions from LookoutVision service.

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<DeleteDatasetCommandInput, DeleteDatasetCommandOutput>

Methods