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.
Namespace: Amazon.ServiceDiscovery.Model
Assembly: AWSSDK.ServiceDiscovery.dll
Version: 3.x.y.z
public class DeregisterInstanceRequest : AmazonServiceDiscoveryRequest IAmazonWebServiceRequest
The DeregisterInstanceRequest type exposes the following members
Name | Description | |
---|---|---|
DeregisterInstanceRequest() |
Name | Type | Description | |
---|---|---|---|
InstanceId | System.String |
Gets and sets the property InstanceId.
The value that you specified for |
|
ServiceId | System.String |
Gets and sets the property ServiceId. The ID of the service that the instance is associated with. |
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;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5