Amazon.OpsWorksCM.AmazonOpsWorksCMClient.DeleteServer C# (CSharp) Méthode

DeleteServer() public méthode

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.

/// The resource is in a state that does not allow you to perform a specified action. /// /// The requested resource does not exist, or access was denied. /// /// One or more of the provided request parameters are not valid. ///
public DeleteServer ( DeleteServerRequest request ) : DeleteServerResponse
request DeleteServerRequest Container for the necessary parameters to execute the DeleteServer service method.
Résultat DeleteServerResponse
        public DeleteServerResponse DeleteServer(DeleteServerRequest request)
        {
            var marshaller = new DeleteServerRequestMarshaller();
            var unmarshaller = DeleteServerResponseUnmarshaller.Instance;

            return Invoke<DeleteServerRequest,DeleteServerResponse>(request, marshaller, unmarshaller);
        }