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

DeregisterManagedInstance() public method

Removes the server or virtual machine from the list of registered servers. You can reregister the instance again at any time. If you don’t plan to use Run Command on the server, we suggest uninstalling the SSM agent first.
/// An error occurred on the server side. /// /// 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. /// ///
public DeregisterManagedInstance ( DeregisterManagedInstanceRequest request ) : DeregisterManagedInstanceResponse
request Amazon.SimpleSystemsManagement.Model.DeregisterManagedInstanceRequest Container for the necessary parameters to execute the DeregisterManagedInstance service method.
return DeregisterManagedInstanceResponse
        public DeregisterManagedInstanceResponse DeregisterManagedInstance(DeregisterManagedInstanceRequest request)
        {
            var marshaller = new DeregisterManagedInstanceRequestMarshaller();
            var unmarshaller = DeregisterManagedInstanceResponseUnmarshaller.Instance;

            return Invoke<DeregisterManagedInstanceRequest,DeregisterManagedInstanceResponse>(request, marshaller, unmarshaller);
        }
AmazonSimpleSystemsManagementClient