import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdatePublicDnsNamespaceRequest, UpdatePublicDnsNamespaceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdatePublicDnsNamespaceCommand}. */ export interface UpdatePublicDnsNamespaceCommandInput extends UpdatePublicDnsNamespaceRequest { } /** * @public * * The output of {@link UpdatePublicDnsNamespaceCommand}. */ export interface UpdatePublicDnsNamespaceCommandOutput extends UpdatePublicDnsNamespaceResponse, __MetadataBearer { } declare const UpdatePublicDnsNamespaceCommand_base: { new (input: UpdatePublicDnsNamespaceCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdatePublicDnsNamespaceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Updates a public DNS namespace.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceDiscoveryClient, UpdatePublicDnsNamespaceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import * // const { ServiceDiscoveryClient, UpdatePublicDnsNamespaceCommand } = 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 = { // UpdatePublicDnsNamespaceRequest * Id: "STRING_VALUE", // required * UpdaterRequestId: "STRING_VALUE", * Namespace: { // PublicDnsNamespaceChange * Description: "STRING_VALUE", * Properties: { // PublicDnsNamespacePropertiesChange * DnsProperties: { // PublicDnsPropertiesMutableChange * SOA: { // SOAChange * TTL: Number("long"), // required * }, * }, * }, * }, * }; * const command = new UpdatePublicDnsNamespaceCommand(input); * const response = await client.send(command); * // { // UpdatePublicDnsNamespaceResponse * // OperationId: "STRING_VALUE", * // }; * * ``` * * @param UpdatePublicDnsNamespaceCommandInput - {@link UpdatePublicDnsNamespaceCommandInput} * @returns {@link UpdatePublicDnsNamespaceCommandOutput} * @see {@link UpdatePublicDnsNamespaceCommandInput} for command's `input` shape. * @see {@link UpdatePublicDnsNamespaceCommandOutput} 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 public DNS namespace * ```javascript * // The following example updates the description of a public DNS namespace. * const input = { * Id: "ns-bk3aEXAMPLE", * Namespace: { * Description: "The updated namespace description." * }, * UpdaterRequestId: "" * }; * const command = new UpdatePublicDnsNamespaceCommand(input); * const response = await client.send(command); * /* response is * { * OperationId: "ft52xe2koxhoeormaceymagglsdjEXAMPLE" * } * *\/ * ``` * * @example Update public DNS namespace using namespace ARN for shared namespace * ```javascript * // This example updates a public 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 public DNS namespace." * } * }; * const command = new UpdatePublicDnsNamespaceCommand(input); * const response = await client.send(command); * /* response is * { * OperationId: "ft52xe2koxhoeormaceymagglsdjexample" * } * *\/ * ``` * * @public */ export declare class UpdatePublicDnsNamespaceCommand extends UpdatePublicDnsNamespaceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdatePublicDnsNamespaceRequest; output: UpdatePublicDnsNamespaceResponse; }; sdk: { input: UpdatePublicDnsNamespaceCommandInput; output: UpdatePublicDnsNamespaceCommandOutput; }; }; }