AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the DeregisterInstance operation. Deletes the Amazon RouteĀ 53 DNS records and health check, if any, that Cloud Map created for the specified instance.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ServiceDiscovery.AmazonServiceDiscoveryRequest
      Amazon.ServiceDiscovery.Model.DeregisterInstanceRequest

Namespace: Amazon.ServiceDiscovery.Model
Assembly: AWSSDK.ServiceDiscovery.dll
Version: 3.x.y.z

Syntax

C#
public class DeregisterInstanceRequest : AmazonServiceDiscoveryRequest
         IAmazonWebServiceRequest

The DeregisterInstanceRequest type exposes the following members

Constructors

NameDescription
Public Method DeregisterInstanceRequest()

Properties

NameTypeDescription
Public Property InstanceId System.String

Gets and sets the property InstanceId.

The value that you specified for Id in the RegisterInstance request.

Public Property ServiceId System.String

Gets and sets the property ServiceId.

The ID of the service that the instance is associated with.

Examples

Example: Deregister a service instance

Example: Deregister a service instance


var client = new AmazonServiceDiscoveryClient();
var response = client.DeregisterInstance(new DeregisterInstanceRequest 
{
    InstanceId = "myservice-53",
    ServiceId = "srv-p5zdwlg5uvvzjita"
});

string operationId = response.OperationId;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5