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 |
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.
- 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.
Request Lenses
twTerminateWorkspaceRequests :: Lens' TerminateWorkspaces (NonEmpty TerminateRequest) Source #
The WorkSpaces to terminate. You can specify up to 25 WorkSpaces.
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:
twrsFailedRequests
- Information about the WorkSpaces that could not be terminated.twrsResponseStatus
- -- | The response status code.
data TerminateWorkspacesResponse Source #
See: terminateWorkspacesResponse
smart constructor.
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.