| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.WorkSpaces.TerminateWorkspaces
Description
Terminates the specified WorkSpaces.
Terminating a WorkSpace is a permanent action and cannot be undone. The user's data is 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 returns before the WorkSpaces have been completely terminated.
Synopsis
- terminateWorkspaces :: NonEmpty TerminateRequest -> TerminateWorkspaces
- data TerminateWorkspaces
- twTerminateWorkspaceRequests :: Lens' TerminateWorkspaces (NonEmpty TerminateRequest)
- terminateWorkspacesResponse :: Int -> TerminateWorkspacesResponse
- data TerminateWorkspacesResponse
- twrsFailedRequests :: Lens' TerminateWorkspacesResponse [FailedWorkspaceChangeRequest]
- twrsResponseStatus :: Lens' TerminateWorkspacesResponse Int
Creating a Request
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:
twTerminateWorkspaceRequests- The WorkSpaces to terminate. You can specify up to 25 WorkSpaces.
data TerminateWorkspaces Source #
See: terminateWorkspaces smart constructor.
Instances
Request Lenses
twTerminateWorkspaceRequests :: Lens' TerminateWorkspaces (NonEmpty TerminateRequest) Source #
The WorkSpaces to terminate. You can specify up to 25 WorkSpaces.
Destructuring the Response
terminateWorkspacesResponse Source #
Arguments
| :: Int | |
| -> TerminateWorkspacesResponse |
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:
twrsFailedRequests- Information about the WorkSpaces that could not be terminated.twrsResponseStatus- -- | The response status code.
data TerminateWorkspacesResponse Source #
See: terminateWorkspacesResponse smart constructor.
Instances
Response Lenses
twrsFailedRequests :: Lens' TerminateWorkspacesResponse [FailedWorkspaceChangeRequest] Source #
Information about the WorkSpaces that could not be terminated.
twrsResponseStatus :: Lens' TerminateWorkspacesResponse Int Source #
- - | The response status code.