amazonka-workspaces-1.2.0.2: Amazon WorkSpaces SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.WorkSpaces.TerminateWorkspaces

Contents

Description

Terminates the specified WorkSpaces.

Terminating a WorkSpace is a permanent action and cannot be undone. The user's data is not maintained and will be destroyed. If you need to archive any user data, contact Amazon Web Services before terminating the WorkSpace.

You can terminate a WorkSpace that is in any state except SUSPENDED.

This operation is asynchronous and will return before the WorkSpaces have been completely terminated.

See: AWS API Reference for TerminateWorkspaces.

Synopsis

Creating a Request

terminateWorkspaces Source

Creates a value of TerminateWorkspaces with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

twTerminateWorkspaceRequests :: Lens' TerminateWorkspaces (NonEmpty TerminateRequest) Source

An array of structures that specify the WorkSpaces to terminate.

Destructuring the Response

terminateWorkspacesResponse Source

Creates a value of TerminateWorkspacesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

twrsFailedRequests :: Lens' TerminateWorkspacesResponse [FailedWorkspaceChangeRequest] Source

An array of structures that represent any WorkSpaces that could not be terminated.