Copyright | (c) 2013-2021 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 |
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
- data DeleteServer = DeleteServer' {
- serverName :: Text
- newDeleteServer :: Text -> DeleteServer
- deleteServer_serverName :: Lens' DeleteServer Text
- data DeleteServerResponse = DeleteServerResponse' {
- httpStatus :: Int
- newDeleteServerResponse :: Int -> DeleteServerResponse
- deleteServerResponse_httpStatus :: Lens' DeleteServerResponse Int
Creating a Request
data DeleteServer Source #
See: newDeleteServer
smart constructor.
DeleteServer' | |
|
Instances
Create a value of DeleteServer
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:serverName:DeleteServer'
, deleteServer_serverName
- The ID of the server to delete.
Request Lenses
deleteServer_serverName :: Lens' DeleteServer Text Source #
The ID of the server to delete.
Destructuring the Response
data DeleteServerResponse Source #
See: newDeleteServerResponse
smart constructor.
DeleteServerResponse' | |
|
Instances
newDeleteServerResponse Source #
Create a value of DeleteServerResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DeleteServerResponse'
, deleteServerResponse_httpStatus
- The response's http status code.
Response Lenses
deleteServerResponse_httpStatus :: Lens' DeleteServerResponse Int Source #
The response's http status code.