import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient"; import type { CreateDatabaseRequest, CreateDatabaseResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateDatabaseCommand}. */ export interface CreateDatabaseCommandInput extends CreateDatabaseRequest { } /** * @public * * The output of {@link CreateDatabaseCommand}. */ export interface CreateDatabaseCommandOutput extends CreateDatabaseResponse, __MetadataBearer { } declare const CreateDatabaseCommand_base: { new (input: CreateDatabaseCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateDatabaseCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Creates a new database in a Data Catalog.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlueClient, CreateDatabaseCommand } from "@aws-sdk/client-glue"; // ES Modules import * // const { GlueClient, CreateDatabaseCommand } = require("@aws-sdk/client-glue"); // CommonJS import * // import type { GlueClientConfig } from "@aws-sdk/client-glue"; * const config = {}; // type is GlueClientConfig * const client = new GlueClient(config); * const input = { // CreateDatabaseRequest * CatalogId: "STRING_VALUE", * DatabaseInput: { // DatabaseInput * Name: "STRING_VALUE", // required * Description: "STRING_VALUE", * LocationUri: "STRING_VALUE", * Parameters: { // ParametersMap * "": "STRING_VALUE", * }, * CreateTableDefaultPermissions: [ // PrincipalPermissionsList * { // PrincipalPermissions * Principal: { // DataLakePrincipal * DataLakePrincipalIdentifier: "STRING_VALUE", * }, * Permissions: [ // PermissionList * "ALL" || "SELECT" || "ALTER" || "DROP" || "DELETE" || "INSERT" || "CREATE_DATABASE" || "CREATE_TABLE" || "DATA_LOCATION_ACCESS", * ], * }, * ], * TargetDatabase: { // DatabaseIdentifier * CatalogId: "STRING_VALUE", * DatabaseName: "STRING_VALUE", * Region: "STRING_VALUE", * }, * FederatedDatabase: { // FederatedDatabase * Identifier: "STRING_VALUE", * ConnectionName: "STRING_VALUE", * ConnectionType: "STRING_VALUE", * }, * }, * Tags: { // TagsMap * "": "STRING_VALUE", * }, * }; * const command = new CreateDatabaseCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param CreateDatabaseCommandInput - {@link CreateDatabaseCommandInput} * @returns {@link CreateDatabaseCommandOutput} * @see {@link CreateDatabaseCommandInput} for command's `input` shape. * @see {@link CreateDatabaseCommandOutput} for command's `response` shape. * @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape. * * @throws {@link AlreadyExistsException} (client fault) *

A resource to be created or added already exists.

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

Two processes are trying to modify a resource simultaneously.

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

A federated resource already exists.

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

A federation source failed.

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

A federation source failed, but the operation may be retried.

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

An encryption operation failed.

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

An internal service error occurred.

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

The input provided was not valid.

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

The operation timed out.

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

A resource numerical limit was exceeded.

* * @throws {@link GlueServiceException} *

Base exception class for all service exceptions from Glue service.

* * * @public */ export declare class CreateDatabaseCommand extends CreateDatabaseCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateDatabaseRequest; output: {}; }; sdk: { input: CreateDatabaseCommandInput; output: CreateDatabaseCommandOutput; }; }; }