import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeregisterInstanceRequest, DeregisterInstanceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DeregisterInstanceCommand}. */ export interface DeregisterInstanceCommandInput extends DeregisterInstanceRequest { } /** * @public * * The output of {@link DeregisterInstanceCommand}. */ export interface DeregisterInstanceCommandOutput extends DeregisterInstanceResponse, __MetadataBearer { } declare const DeregisterInstanceCommand_base: { new (input: DeregisterInstanceCommandInput): import("@smithy/core/client").CommandImpl; new (input: DeregisterInstanceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Deletes the Amazon RouteĀ 53 DNS records and health check, if any, that Cloud Map created for the * specified instance.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceDiscoveryClient, DeregisterInstanceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import * // const { ServiceDiscoveryClient, DeregisterInstanceCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import * // import type { ServiceDiscoveryClientConfig } from "@aws-sdk/client-servicediscovery"; * const config = {}; // type is ServiceDiscoveryClientConfig * const client = new ServiceDiscoveryClient(config); * const input = { // DeregisterInstanceRequest * ServiceId: "STRING_VALUE", // required * InstanceId: "STRING_VALUE", // required * }; * const command = new DeregisterInstanceCommand(input); * const response = await client.send(command); * // { // DeregisterInstanceResponse * // OperationId: "STRING_VALUE", * // }; * * ``` * * @param DeregisterInstanceCommandInput - {@link DeregisterInstanceCommandInput} * @returns {@link DeregisterInstanceCommandOutput} * @see {@link DeregisterInstanceCommandInput} for command's `input` shape. * @see {@link DeregisterInstanceCommandOutput} for command's `response` shape. * @see {@link ServiceDiscoveryClientResolvedConfig | config} for ServiceDiscoveryClient's `config` shape. * * @throws {@link DuplicateRequest} (client fault) *

The operation is already in progress.

* * @throws {@link InstanceNotFound} (client fault) *

No instance exists with the specified ID, or the instance was recently registered, and * information about the instance hasn't propagated yet.

* * @throws {@link InvalidInput} (client fault) *

One or more specified values aren't valid. For example, a required value might be missing, a * numeric value might be outside the allowed range, or a string value might exceed length * constraints.

* * @throws {@link ResourceInUse} (client fault) *

The specified resource can't be deleted because it contains other resources. For example, * you can't delete a service that contains any instances.

* * @throws {@link ServiceNotFound} (client fault) *

No service exists with the specified ID.

* * @throws {@link ServiceDiscoveryServiceException} *

Base exception class for all service exceptions from ServiceDiscovery service.

* * * @example Example: Deregister a service instance * ```javascript * // Example: Deregister a service instance * const input = { * InstanceId: "myservice-53", * ServiceId: "srv-p5zdwlg5uvvzjita" * }; * const command = new DeregisterInstanceCommand(input); * const response = await client.send(command); * /* response is * { * OperationId: "4yejorelbukcjzpnr6tlmrghsjwpngf4-k98rnaiq" * } * *\/ * ``` * * @example Deregister instance using service ARN * ```javascript * // Deregisters an instance using a service ARN instead of service ID, useful when working with shared namespaces. * const input = { * InstanceId: "i-abcd1234xmpl5678", * ServiceId: "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678" * }; * const command = new DeregisterInstanceCommand(input); * const response = await client.send(command); * /* response is * { * OperationId: "abcd1234-xmpl-5678-9012-abcd1234xmpl" * } * *\/ * ``` * * @public */ export declare class DeregisterInstanceCommand extends DeregisterInstanceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeregisterInstanceRequest; output: DeregisterInstanceResponse; }; sdk: { input: DeregisterInstanceCommandInput; output: DeregisterInstanceCommandOutput; }; }; }