Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <[email protected]> |
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 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.
- 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:
data TerminateWorkspaces Source
Contains the inputs for the TerminateWorkspaces operation.
See: terminateWorkspaces
smart constructor.
Instances
Request Lenses
twTerminateWorkspaceRequests :: Lens' TerminateWorkspaces (NonEmpty TerminateRequest) Source
An array of structures that specify the WorkSpaces to terminate.
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:
data TerminateWorkspacesResponse Source
Contains the results of the TerminateWorkspaces operation.
See: terminateWorkspacesResponse
smart constructor.
Response Lenses
twrsFailedRequests :: Lens' TerminateWorkspacesResponse [FailedWorkspaceChangeRequest] Source
An array of structures that represent any WorkSpaces that could not be terminated.
twrsResponseStatus :: Lens' TerminateWorkspacesResponse Int Source
The response status code.