fn delete_server(
        &self,
        input: DeleteServerRequest,
    ) -> RusotoFuture<DeleteServerResponse, DeleteServerError> {
        let mut request = SignedRequest::new("POST", "opsworks-cm", &self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "OpsWorksCM_V2016_11_01.DeleteServer");
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded));

        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().and_then(|response| {
                    proto::json::ResponsePayload::new(&response)
                        .deserialize::<DeleteServerResponse, _>()
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(DeleteServerError::from_response(response))),
                )
            }
        })
    }
/// <p> 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 <code>DELETING</code>. After the server is deleted, it is no longer returned by <code>DescribeServer</code> requests. If the AWS CloudFormation stack cannot be deleted, the server cannot be deleted. </p> <p> This operation is asynchronous. </p> <p> An <code>InvalidStateException</code> is thrown when a server deletion is already in progress. A <code>ResourceNotFoundException</code> is thrown when the server does not exist. A <code>ValidationException</code> is raised when parameters of the request are not valid. </p> <p> </p>
 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.
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 .
fn delete_server(
        &self,
        input: DeleteServerRequest,
    ) -> RusotoFuture<DeleteServerResponse, DeleteServerError> {
        let mut request = SignedRequest::new("POST", "opsworks-cm", &self.region, "/");
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "OpsWorksCM_V2016_11_01.DeleteServer");
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded));
        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().and_then(|response| {
                    proto::json::ResponsePayload::new(&response)
                        .deserialize::<DeleteServerResponse, _>()
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(DeleteServerError::from_response(response))),
                )
            }
        })
    }
fn delete_server ( & self , input : DeleteServerRequest , ) -> RusotoFuture < DeleteServerResponse , DeleteServerError > { let mut request = SignedRequest :: new ( " " , " " , & self . region , " " ) ; request . set_content_type ( " " . to_owned ( ) ) ; request . add_header ( " " , " " ) ; let encoded = serde_json :: to_string ( & input ) . unwrap ( ) ; request . set_payload ( Some ( encoded ) ) ; self . client . sign_and_dispatch ( request , | response | { if response . status . is_success ( ) { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { proto :: json :: ResponsePayload :: new ( & response ) . deserialize :: < DeleteServerResponse , _ > ( ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | Err ( DeleteServerError :: from_response ( response ) ) ) , ) } } ) }
<p> Deletes the server and the underlying AWS CloudFormation stacks (including the server's EC2 instance).
<p > Deletes the server and the underlying AWS CloudFormation stacks ( including the server ' s EC2 instance ) .
&self
input
DeleteServerRequest