Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeregisterWorkspaceDirectoryCommand

Deregisters the specified directory. This operation is asynchronous and returns before the WorkSpace directory is deregistered. If any WorkSpaces are registered to this directory, you must remove them before you can deregister the directory.

Simple AD and AD Connector are made available to you free of charge to use with WorkSpaces. If there are no WorkSpaces being used with your Simple AD or AD Connector directory for 30 consecutive days, this directory will be automatically deregistered for use with Amazon WorkSpaces, and you will be charged for this directory as per the Directory Service pricing terms.

To delete empty directories, see Delete the Directory for Your WorkSpaces. If you delete your Simple AD or AD Connector directory, you can always create a new one when you want to start using WorkSpaces again.

example

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

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

DeregisterWorkspaceDirectoryCommandInput for command's input shape.

see

DeregisterWorkspaceDirectoryCommandOutput for command's response shape.

see

config for WorkSpacesClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: DeregisterWorkspaceDirectoryCommandInput

Readonly middlewareStack