import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreatePrivateDnsNamespaceRequest, CreatePrivateDnsNamespaceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreatePrivateDnsNamespaceCommand}. */ export interface CreatePrivateDnsNamespaceCommandInput extends CreatePrivateDnsNamespaceRequest { } /** * @public * * The output of {@link CreatePrivateDnsNamespaceCommand}. */ export interface CreatePrivateDnsNamespaceCommandOutput extends CreatePrivateDnsNamespaceResponse, __MetadataBearer { } declare const CreatePrivateDnsNamespaceCommand_base: { new (input: CreatePrivateDnsNamespaceCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreatePrivateDnsNamespaceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a private namespace based on DNS, which is visible only inside a specified Amazon * VPC. The namespace defines your service naming scheme. For example, if you name your namespace * example.com and name your service backend, the resulting DNS name for * the service is backend.example.com. Service instances that are registered using a * private DNS namespace can be discovered using either a DiscoverInstances request or * using DNS. For the current quota on the number of namespaces that you can create using the same * Amazon Web Services account, see Cloud Map quotas in the * Cloud Map Developer Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceDiscoveryClient, CreatePrivateDnsNamespaceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import * // const { ServiceDiscoveryClient, CreatePrivateDnsNamespaceCommand } = 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 = { // CreatePrivateDnsNamespaceRequest * Name: "STRING_VALUE", // required * CreatorRequestId: "STRING_VALUE", * Description: "STRING_VALUE", * Vpc: "STRING_VALUE", // required * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * Properties: { // PrivateDnsNamespaceProperties * DnsProperties: { // PrivateDnsPropertiesMutable * SOA: { // SOA * TTL: Number("long"), // required * }, * }, * }, * }; * const command = new CreatePrivateDnsNamespaceCommand(input); * const response = await client.send(command); * // { // CreatePrivateDnsNamespaceResponse * // OperationId: "STRING_VALUE", * // }; * * ``` * * @param CreatePrivateDnsNamespaceCommandInput - {@link CreatePrivateDnsNamespaceCommandInput} * @returns {@link CreatePrivateDnsNamespaceCommandOutput} * @see {@link CreatePrivateDnsNamespaceCommandInput} for command's `input` shape. * @see {@link CreatePrivateDnsNamespaceCommandOutput} 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 NamespaceAlreadyExists} (client fault) *

The namespace that you're trying to create already exists.

* * @throws {@link ResourceLimitExceeded} (client fault) *

The resource can't be created because you've reached the quota on the number of * resources.

* * @throws {@link TooManyTagsException} (client fault) *

The list of tags on the resource is over the quota. The maximum number of tags that can be * applied to a resource is 50.

* * @throws {@link ServiceDiscoveryServiceException} *

Base exception class for all service exceptions from ServiceDiscovery service.

* * * @example Example: Create private DNS namespace * ```javascript * // Example: Create private DNS namespace * const input = { * CreatorRequestId: "eedd6892-50f3-41b2-8af9-611d6e1d1a8c", * Name: "example.com", * Vpc: "vpc-1c56417b" * }; * const command = new CreatePrivateDnsNamespaceCommand(input); * const response = await client.send(command); * /* response is * { * OperationId: "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd" * } * *\/ * ``` * * @public */ export declare class CreatePrivateDnsNamespaceCommand extends CreatePrivateDnsNamespaceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreatePrivateDnsNamespaceRequest; output: CreatePrivateDnsNamespaceResponse; }; sdk: { input: CreatePrivateDnsNamespaceCommandInput; output: CreatePrivateDnsNamespaceCommandOutput; }; }; }