import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ModifyTenantDatabaseMessage, ModifyTenantDatabaseResult } from "../models/models_1"; import type { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ModifyTenantDatabaseCommand}. */ export interface ModifyTenantDatabaseCommandInput extends ModifyTenantDatabaseMessage { } /** * @public * * The output of {@link ModifyTenantDatabaseCommand}. */ export interface ModifyTenantDatabaseCommandOutput extends ModifyTenantDatabaseResult, __MetadataBearer { } declare const ModifyTenantDatabaseCommand_base: { new (input: ModifyTenantDatabaseCommandInput): import("@smithy/core/client").CommandImpl; new (input: ModifyTenantDatabaseCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Modifies an existing tenant database in a DB instance. You can change the tenant database name or the master user password. This operation is supported only for RDS for Oracle CDB instances using the multi-tenant configuration.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RDSClient, ModifyTenantDatabaseCommand } from "@aws-sdk/client-rds"; // ES Modules import * // const { RDSClient, ModifyTenantDatabaseCommand } = 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 = { // ModifyTenantDatabaseMessage * DBInstanceIdentifier: "STRING_VALUE", // required * TenantDBName: "STRING_VALUE", // required * MasterUserPassword: "STRING_VALUE", * NewTenantDBName: "STRING_VALUE", * ManageMasterUserPassword: true || false, * RotateMasterUserPassword: true || false, * MasterUserSecretKmsKeyId: "STRING_VALUE", * }; * const command = new ModifyTenantDatabaseCommand(input); * const response = await client.send(command); * // { // ModifyTenantDatabaseResult * // 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 ModifyTenantDatabaseCommandInput - {@link ModifyTenantDatabaseCommandInput} * @returns {@link ModifyTenantDatabaseCommandOutput} * @see {@link ModifyTenantDatabaseCommandInput} for command's `input` shape. * @see {@link ModifyTenantDatabaseCommandOutput} 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 TenantDatabaseNotFoundFault} (client fault) *

The specified tenant database wasn't found in the DB instance.

* * @throws {@link RDSServiceException} *

Base exception class for all service exceptions from RDS service.

* * * @public */ export declare class ModifyTenantDatabaseCommand extends ModifyTenantDatabaseCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ModifyTenantDatabaseMessage; output: ModifyTenantDatabaseResult; }; sdk: { input: ModifyTenantDatabaseCommandInput; output: ModifyTenantDatabaseCommandOutput; }; }; }