DeleteWorkspaceBundleCommand

Deletes the specified WorkSpace bundle. For more information about deleting WorkSpace bundles, see Delete a Custom WorkSpaces Bundle or Image .

Example Syntax

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

import { WorkSpacesClient, DeleteWorkspaceBundleCommand } from "@aws-sdk/client-workspaces"; // ES Modules import
// const { WorkSpacesClient, DeleteWorkspaceBundleCommand } = require("@aws-sdk/client-workspaces"); // CommonJS import
const client = new WorkSpacesClient(config);
const input = { // DeleteWorkspaceBundleRequest
  BundleId: "STRING_VALUE",
};
const command = new DeleteWorkspaceBundleCommand(input);
const response = await client.send(command);
// {};

DeleteWorkspaceBundleCommand Input

Parameter
Type
Description
BundleId
string | undefined

The identifier of the bundle.

DeleteWorkspaceBundleCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
AccessDeniedException
client

The user is not authorized to access a resource.

InvalidParameterValuesException
client

One or more parameter values are not valid.

ResourceAssociatedException
client

The resource is associated with a directory.

ResourceNotFoundException
client

The resource could not be found.

WorkSpacesServiceException
Base exception class for all service exceptions from WorkSpaces service.