import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateHttpNamespaceRequest, UpdateHttpNamespaceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdateHttpNamespaceCommand}. */ export interface UpdateHttpNamespaceCommandInput extends UpdateHttpNamespaceRequest { } /** * @public * * The output of {@link UpdateHttpNamespaceCommand}. */ export interface UpdateHttpNamespaceCommandOutput extends UpdateHttpNamespaceResponse, __MetadataBearer { } declare const UpdateHttpNamespaceCommand_base: { new (input: UpdateHttpNamespaceCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateHttpNamespaceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Updates an HTTP * namespace.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceDiscoveryClient, UpdateHttpNamespaceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import * // const { ServiceDiscoveryClient, UpdateHttpNamespaceCommand } = 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 = { // UpdateHttpNamespaceRequest * Id: "STRING_VALUE", // required * UpdaterRequestId: "STRING_VALUE", * Namespace: { // HttpNamespaceChange * Description: "STRING_VALUE", // required * }, * }; * const command = new UpdateHttpNamespaceCommand(input); * const response = await client.send(command); * // { // UpdateHttpNamespaceResponse * // OperationId: "STRING_VALUE", * // }; * * ``` * * @param UpdateHttpNamespaceCommandInput - {@link UpdateHttpNamespaceCommandInput} * @returns {@link UpdateHttpNamespaceCommandOutput} * @see {@link UpdateHttpNamespaceCommandInput} for command's `input` shape. * @see {@link UpdateHttpNamespaceCommandOutput} 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 To update a HTTP namespace * ```javascript * // The following example updates the description of a HTTP namespace. * const input = { * Id: "ns-vh4nbmEXAMPLE", * Namespace: { * Description: "The updated namespace description." * } * }; * const command = new UpdateHttpNamespaceCommand(input); * const response = await client.send(command); * /* response is * { * OperationId: "ft52xe2koxhoeormaceymagglsdjyvEXAMPLE" * } * *\/ * ``` * * @example Update HTTP namespace using namespace ARN for shared namespace * ```javascript * // This example updates an HTTP namespace using a namespace ARN instead of namespace ID. * const input = { * Id: "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-vh4nbmexample", * Namespace: { * Description: "Updated description for shared HTTP namespace." * } * }; * const command = new UpdateHttpNamespaceCommand(input); * const response = await client.send(command); * /* response is * { * OperationId: "ft52xe2koxhoeormaceymagglsdjyvexample" * } * *\/ * ``` * * @public */ export declare class UpdateHttpNamespaceCommand extends UpdateHttpNamespaceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateHttpNamespaceRequest; output: UpdateHttpNamespaceResponse; }; sdk: { input: UpdateHttpNamespaceCommandInput; output: UpdateHttpNamespaceCommandOutput; }; }; }