import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdatePrivateDnsNamespaceRequest, UpdatePrivateDnsNamespaceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdatePrivateDnsNamespaceCommand}. */ export interface UpdatePrivateDnsNamespaceCommandInput extends UpdatePrivateDnsNamespaceRequest { } /** * @public * * The output of {@link UpdatePrivateDnsNamespaceCommand}. */ export interface UpdatePrivateDnsNamespaceCommandOutput extends UpdatePrivateDnsNamespaceResponse, __MetadataBearer { } declare const UpdatePrivateDnsNamespaceCommand_base: { new (input: UpdatePrivateDnsNamespaceCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdatePrivateDnsNamespaceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Updates a private DNS * namespace.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceDiscoveryClient, UpdatePrivateDnsNamespaceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import * // const { ServiceDiscoveryClient, UpdatePrivateDnsNamespaceCommand } = 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 = { // UpdatePrivateDnsNamespaceRequest * Id: "STRING_VALUE", // required * UpdaterRequestId: "STRING_VALUE", * Namespace: { // PrivateDnsNamespaceChange * Description: "STRING_VALUE", * Properties: { // PrivateDnsNamespacePropertiesChange * DnsProperties: { // PrivateDnsPropertiesMutableChange * SOA: { // SOAChange * TTL: Number("long"), // required * }, * }, * }, * }, * }; * const command = new UpdatePrivateDnsNamespaceCommand(input); * const response = await client.send(command); * // { // UpdatePrivateDnsNamespaceResponse * // OperationId: "STRING_VALUE", * // }; * * ``` * * @param UpdatePrivateDnsNamespaceCommandInput - {@link UpdatePrivateDnsNamespaceCommandInput} * @returns {@link UpdatePrivateDnsNamespaceCommandOutput} * @see {@link UpdatePrivateDnsNamespaceCommandInput} for command's `input` shape. * @see {@link UpdatePrivateDnsNamespaceCommandOutput} 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 private DNS namespace * ```javascript * // The following example updates the description of a private DNS namespace. * const input = { * Id: "ns-bk3aEXAMPLE", * Namespace: { * Description: "The updated namespace description." * }, * UpdaterRequestId: "" * }; * const command = new UpdatePrivateDnsNamespaceCommand(input); * const response = await client.send(command); * /* response is * { * OperationId: "ft52xe2koxhoeormaceymagglsdjyvEXAMPLE" * } * *\/ * ``` * * @example Update private DNS namespace using namespace ARN for shared namespace * ```javascript * // This example updates a private DNS namespace using a namespace ARN instead of namespace ID. * const input = { * Id: "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-bk3aexample", * Namespace: { * Description: "Updated description for shared private DNS namespace." * } * }; * const command = new UpdatePrivateDnsNamespaceCommand(input); * const response = await client.send(command); * /* response is * { * OperationId: "ft52xe2koxhoeormaceymagglsdjyvexample" * } * *\/ * ``` * * @public */ export declare class UpdatePrivateDnsNamespaceCommand extends UpdatePrivateDnsNamespaceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdatePrivateDnsNamespaceRequest; output: UpdatePrivateDnsNamespaceResponse; }; sdk: { input: UpdatePrivateDnsNamespaceCommandInput; output: UpdatePrivateDnsNamespaceCommandOutput; }; }; }