import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient"; import type { CreateDomainRequest, CreateDomainResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateDomainCommand}. */ export interface CreateDomainCommandInput extends CreateDomainRequest { } /** * @public * * The output of {@link CreateDomainCommand}. */ export interface CreateDomainCommandOutput extends CreateDomainResult, __MetadataBearer { } declare const CreateDomainCommand_base: { new (input: CreateDomainCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateDomainCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

* Creates a domain. CodeArtifact domains make it easier to manage multiple repositories across an * organization. You can use a domain to apply permissions across many * repositories owned by different Amazon Web Services accounts. An asset is stored only once * in a domain, even if it's in multiple repositories. *

*

Although you can have multiple domains, we recommend a single production domain that contains all * published artifacts so that your development teams can find and share packages. You can use a second * pre-production domain to test changes to the production domain configuration. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodeartifactClient, CreateDomainCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import * // const { CodeartifactClient, CreateDomainCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import * // import type { CodeartifactClientConfig } from "@aws-sdk/client-codeartifact"; * const config = {}; // type is CodeartifactClientConfig * const client = new CodeartifactClient(config); * const input = { // CreateDomainRequest * domain: "STRING_VALUE", // required * encryptionKey: "STRING_VALUE", * tags: [ // TagList * { // Tag * key: "STRING_VALUE", // required * value: "STRING_VALUE", // required * }, * ], * }; * const command = new CreateDomainCommand(input); * const response = await client.send(command); * // { // CreateDomainResult * // domain: { // DomainDescription * // name: "STRING_VALUE", * // owner: "STRING_VALUE", * // arn: "STRING_VALUE", * // status: "Active" || "Deleted", * // createdTime: new Date("TIMESTAMP"), * // encryptionKey: "STRING_VALUE", * // repositoryCount: Number("int"), * // assetSizeBytes: Number("long"), * // s3BucketArn: "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateDomainCommandInput - {@link CreateDomainCommandInput} * @returns {@link CreateDomainCommandOutput} * @see {@link CreateDomainCommandInput} for command's `input` shape. * @see {@link CreateDomainCommandOutput} for command's `response` shape. * @see {@link CodeartifactClientResolvedConfig | config} for CodeartifactClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

* The operation did not succeed because of an unauthorized access attempt. *

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

* The operation did not succeed because prerequisites are not met. *

* * @throws {@link InternalServerException} (server fault) *

The operation did not succeed because of an error that occurred inside CodeArtifact.

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

* The operation did not succeed because the resource requested is not found in the service. *

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

* The operation did not succeed because it would have exceeded a service limit for your account. *

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

* The operation did not succeed because too many requests are sent to the service. *

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

* The operation did not succeed because a parameter in the request was sent with an invalid value. *

* * @throws {@link CodeartifactServiceException} *

Base exception class for all service exceptions from Codeartifact service.

* * * @public */ export declare class CreateDomainCommand extends CreateDomainCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateDomainRequest; output: CreateDomainResult; }; sdk: { input: CreateDomainCommandInput; output: CreateDomainCommandOutput; }; }; }