Amazon.SimpleSystemsManagement.AmazonSimpleSystemsManagementClient.DeleteDocument C# (CSharp) Method

DeleteDocument() public method

Deletes the SSM document and all instance associations to the document.

Before you delete the SSM document, we recommend that you use DeleteAssociation to disassociate all instances that are associated with the document.

/// You must disassociate an SSM document from all instances before you can delete it. /// /// An error occurred on the server side. /// /// The specified document does not exist. /// /// You attempted to delete a document while it is still shared. You must stop sharing /// the document before you can delete it. ///
public DeleteDocument ( Amazon.SimpleSystemsManagement.Model.DeleteDocumentRequest request ) : DeleteDocumentResponse
request Amazon.SimpleSystemsManagement.Model.DeleteDocumentRequest Container for the necessary parameters to execute the DeleteDocument service method.
return DeleteDocumentResponse
        public DeleteDocumentResponse DeleteDocument(DeleteDocumentRequest request)
        {
            var marshaller = new DeleteDocumentRequestMarshaller();
            var unmarshaller = DeleteDocumentResponseUnmarshaller.Instance;

            return Invoke<DeleteDocumentRequest,DeleteDocumentResponse>(request, marshaller, unmarshaller);
        }

Same methods

AmazonSimpleSystemsManagementClient::DeleteDocument ( string name ) : DeleteDocumentResponse
AmazonSimpleSystemsManagementClient