import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeleteServiceRequest, DeleteServiceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DeleteServiceCommand}. */ export interface DeleteServiceCommandInput extends DeleteServiceRequest { } /** * @public * * The output of {@link DeleteServiceCommand}. */ export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __MetadataBearer { } declare const DeleteServiceCommand_base: { new (input: DeleteServiceCommandInput): import("@smithy/core/client").CommandImpl; new (input: DeleteServiceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Deletes a specified service and all associated service attributes. If the service still * contains one or more registered instances, the request fails.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceDiscoveryClient, DeleteServiceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import * // const { ServiceDiscoveryClient, DeleteServiceCommand } = 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 = { // DeleteServiceRequest * Id: "STRING_VALUE", // required * }; * const command = new DeleteServiceCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteServiceCommandInput - {@link DeleteServiceCommandInput} * @returns {@link DeleteServiceCommandOutput} * @see {@link DeleteServiceCommandInput} for command's `input` shape. * @see {@link DeleteServiceCommandOutput} for command's `response` shape. * @see {@link ServiceDiscoveryClientResolvedConfig | config} for ServiceDiscoveryClient's `config` shape. * * @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: Delete service * ```javascript * // Example: Delete service * const input = { * Id: "srv-p5zdwlg5uvvzjita" * }; * const command = new DeleteServiceCommand(input); * const response = await client.send(command); * /* response is * { /* empty *\/ } * *\/ * ``` * * @example Delete service using service ARN * ```javascript * // Deletes a service using a service ARN instead of service ID, useful when working with shared namespaces. * const input = { * Id: "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678" * }; * const command = new DeleteServiceCommand(input); * const response = await client.send(command); * /* response is * { /* empty *\/ } * *\/ * ``` * * @public */ export declare class DeleteServiceCommand extends DeleteServiceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteServiceRequest; output: {}; }; sdk: { input: DeleteServiceCommandInput; output: DeleteServiceCommandOutput; }; }; }