Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Deletes the server and the underlying AWS CloudFormation stack (including the server's EC2 instance). The server status updated to DELETING
. Once the server is successfully deleted, it will no longer be returned by DescribeServer
requests. If the AWS CloudFormation stack cannot be deleted, the server cannot be deleted.
This operation is asynchronous.
A InvalidStateException
is thrown then a server is already deleting. A ResourceNotFoundException
is thrown when the server does not exist. A ValidationException
is raised when parameters of the request are invalid.
Creating a Request
Creates a value of DeleteServer
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dsServerName
- The ID of the server to delete.
data DeleteServer Source #
See: deleteServer
smart constructor.
Request Lenses
dsServerName :: Lens' DeleteServer Text Source #
The ID of the server to delete.
Destructuring the Response
Creates a value of DeleteServerResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dsrsResponseStatus
- -- | The response status code.
data DeleteServerResponse Source #
See: deleteServerResponse
smart constructor.
Response Lenses
dsrsResponseStatus :: Lens' DeleteServerResponse Int Source #
- - | The response status code.