import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateTenantDatabaseMessage, CreateTenantDatabaseResult } from "../models/models_0"; import type { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateTenantDatabaseCommand}. */ export interface CreateTenantDatabaseCommandInput extends CreateTenantDatabaseMessage { } /** * @public * * The output of {@link CreateTenantDatabaseCommand}. */ export interface CreateTenantDatabaseCommandOutput extends CreateTenantDatabaseResult, __MetadataBearer { } declare const CreateTenantDatabaseCommand_base: { new (input: CreateTenantDatabaseCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateTenantDatabaseCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Creates a tenant database in a DB instance that uses the multi-tenant configuration. Only RDS for Oracle container database (CDB) instances are supported.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RDSClient, CreateTenantDatabaseCommand } from "@aws-sdk/client-rds"; // ES Modules import * // const { RDSClient, CreateTenantDatabaseCommand } = require("@aws-sdk/client-rds"); // CommonJS import * // import type { RDSClientConfig } from "@aws-sdk/client-rds"; * const config = {}; // type is RDSClientConfig * const client = new RDSClient(config); * const input = { // CreateTenantDatabaseMessage * DBInstanceIdentifier: "STRING_VALUE", // required * TenantDBName: "STRING_VALUE", // required * MasterUsername: "STRING_VALUE", // required * MasterUserPassword: "STRING_VALUE", * CharacterSetName: "STRING_VALUE", * NcharCharacterSetName: "STRING_VALUE", * ManageMasterUserPassword: true || false, * MasterUserSecretKmsKeyId: "STRING_VALUE", * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * }; * const command = new CreateTenantDatabaseCommand(input); * const response = await client.send(command); * // { // CreateTenantDatabaseResult * // TenantDatabase: { // TenantDatabase * // TenantDatabaseCreateTime: new Date("TIMESTAMP"), * // DBInstanceIdentifier: "STRING_VALUE", * // TenantDBName: "STRING_VALUE", * // Status: "STRING_VALUE", * // MasterUsername: "STRING_VALUE", * // DbiResourceId: "STRING_VALUE", * // TenantDatabaseResourceId: "STRING_VALUE", * // TenantDatabaseARN: "STRING_VALUE", * // CharacterSetName: "STRING_VALUE", * // NcharCharacterSetName: "STRING_VALUE", * // DeletionProtection: true || false, * // PendingModifiedValues: { // TenantDatabasePendingModifiedValues * // MasterUserPassword: "STRING_VALUE", * // TenantDBName: "STRING_VALUE", * // }, * // MasterUserSecret: { // MasterUserSecret * // SecretArn: "STRING_VALUE", * // SecretStatus: "STRING_VALUE", * // KmsKeyId: "STRING_VALUE", * // }, * // TagList: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // }, * // }; * * ``` * * @param CreateTenantDatabaseCommandInput - {@link CreateTenantDatabaseCommandInput} * @returns {@link CreateTenantDatabaseCommandOutput} * @see {@link CreateTenantDatabaseCommandInput} for command's `input` shape. * @see {@link CreateTenantDatabaseCommandOutput} for command's `response` shape. * @see {@link RDSClientResolvedConfig | config} for RDSClient's `config` shape. * * @throws {@link DBInstanceNotFoundFault} (client fault) *

DBInstanceIdentifier doesn't refer to an existing DB instance.

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

The DB instance isn't in a valid state.

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

An error occurred accessing an Amazon Web Services KMS key.

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

You attempted to either create a tenant database that already exists or modify a tenant database to use the name of an existing tenant database.

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

You attempted to create more tenant databases than are permitted in your Amazon Web Services account.

* * @throws {@link RDSServiceException} *

Base exception class for all service exceptions from RDS service.

* * * @public */ export declare class CreateTenantDatabaseCommand extends CreateTenantDatabaseCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateTenantDatabaseMessage; output: CreateTenantDatabaseResult; }; sdk: { input: CreateTenantDatabaseCommandInput; output: CreateTenantDatabaseCommandOutput; }; }; }