import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeleteNamespaceRequest, DeleteNamespaceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DeleteNamespaceCommand}. */ export interface DeleteNamespaceCommandInput extends DeleteNamespaceRequest { } /** * @public * * The output of {@link DeleteNamespaceCommand}. */ export interface DeleteNamespaceCommandOutput extends DeleteNamespaceResponse, __MetadataBearer { } declare const DeleteNamespaceCommand_base: { new (input: DeleteNamespaceCommandInput): import("@smithy/core/client").CommandImpl; new (input: DeleteNamespaceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Deletes a namespace from the current account. If the namespace still contains one or more * services, the request fails.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceDiscoveryClient, DeleteNamespaceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import * // const { ServiceDiscoveryClient, DeleteNamespaceCommand } = 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 = { // DeleteNamespaceRequest * Id: "STRING_VALUE", // required * }; * const command = new DeleteNamespaceCommand(input); * const response = await client.send(command); * // { // DeleteNamespaceResponse * // OperationId: "STRING_VALUE", * // }; * * ``` * * @param DeleteNamespaceCommandInput - {@link DeleteNamespaceCommandInput} * @returns {@link DeleteNamespaceCommandOutput} * @see {@link DeleteNamespaceCommandInput} for command's `input` shape. * @see {@link DeleteNamespaceCommandOutput} 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 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 NamespaceNotFound} (client fault) *

No namespace exists with the specified ID.

* * @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 ServiceDiscoveryServiceException} *

Base exception class for all service exceptions from ServiceDiscovery service.

* * * @example Example: Delete namespace * ```javascript * // Example: Delete namespace * const input = { * Id: "ns-ylexjili4cdxy3xm" * }; * const command = new DeleteNamespaceCommand(input); * const response = await client.send(command); * /* response is * { * OperationId: "abcd1234-xmpl-5678-9012-abcd1234xmplabcd" * } * *\/ * ``` * * @example Delete namespace using namespace ARN * ```javascript * // Deletes a namespace using a namespace ARN instead of namespace ID, useful when working with shared namespaces. * const input = { * Id: "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678" * }; * const command = new DeleteNamespaceCommand(input); * const response = await client.send(command); * /* response is * { * OperationId: "abcd1234-xmpl-5678-9012-abcd1234xmplabcd" * } * *\/ * ``` * * @public */ export declare class DeleteNamespaceCommand extends DeleteNamespaceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteNamespaceRequest; output: DeleteNamespaceResponse; }; sdk: { input: DeleteNamespaceCommandInput; output: DeleteNamespaceCommandOutput; }; }; }