OpsWorksCM / Client / delete_server
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
DescribeServerrequests. If the AWS CloudFormation stack cannot be deleted, the server cannot be deleted.
This operation is asynchronous.
InvalidStateExceptionis thrown when a server deletion is already in progress. A
ResourceNotFoundExceptionis thrown when the server does not exist. A
ValidationExceptionis raised when parameters of the request are not valid.
See also: AWS API Documentation
response = client.delete_server( ServerName='string' )
ServerName (string) –
The ID of the server to delete.
- Return type: