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

DeleteAssociation() public method

Disassociates the specified SSM document from the specified instance.

When you disassociate an SSM document from an instance, it does not change the configuration of the instance. To change the configuration state of an instance after you disassociate a document, you must create a new document with the desired configuration and associate it with the instance.

/// The specified association does not exist. /// /// An error occurred on the server side. /// /// The specified document does not exist. /// /// The following problems can cause this exception: /// /// /// /// You do not have permission to access the instance. /// /// /// /// The SSM agent is not running. On managed instances and Linux instances, verify that /// the SSM agent is running. On EC2 Windows instances, verify that the EC2Config service /// is running. /// /// /// /// The SSM agent or EC2Config service is not registered to the SSM endpoint. Try reinstalling /// the SSM agent or EC2Config service. /// /// /// /// The instance is not in valid state. Valid states are: Running, Pending, Stopped, Stopping. /// Invalid states are: Shutting-down and Terminated. /// /// /// There are concurrent updates for a resource that supports one update at a time. ///
public DeleteAssociation ( DeleteAssociationRequest request ) : DeleteAssociationResponse
request Amazon.SimpleSystemsManagement.Model.DeleteAssociationRequest Container for the necessary parameters to execute the DeleteAssociation service method.
return DeleteAssociationResponse
        public DeleteAssociationResponse DeleteAssociation(DeleteAssociationRequest request)
        {
            var marshaller = new DeleteAssociationRequestMarshaller();
            var unmarshaller = DeleteAssociationResponseUnmarshaller.Instance;

            return Invoke<DeleteAssociationRequest,DeleteAssociationResponse>(request, marshaller, unmarshaller);
        }

Same methods

AmazonSimpleSystemsManagementClient::DeleteAssociation ( string instanceId, string name ) : DeleteAssociationResponse
AmazonSimpleSystemsManagementClient