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 |
Deletes the server and the underlying AWS CloudFormation stacks (including the server's EC2 instance). When you run this command, the server state is updated to DELETING
. After the server is deleted, it is no longer returned by DescribeServer
requests. If the AWS CloudFormation stack cannot be deleted, the server cannot be deleted.
This operation is asynchronous.
An InvalidStateException
is thrown when a server deletion is already in progress. A ResourceNotFoundException
is thrown when the server does not exist. A ValidationException
is raised when parameters of the request are not valid.
Synopsis
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.
Instances
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.
Instances
Response Lenses
dsrsResponseStatus :: Lens' DeleteServerResponse Int Source #
- - | The response status code.