published on Friday, Nov 13, 2026 by Pulumi
published on Friday, Nov 13, 2026 by Pulumi
Manages a tenant database (pluggable database, PDB) in an RDS for Oracle CDB instance in the multi-tenant configuration. The DB instance must use the oracle-ee-cdb or oracle-se2-cdb engine with multiTenant = true. See the AWS documentation for details.
The initial tenant database is created with the DB instance, using its dbName, username, and password. Use this resource to manage additional tenant databases or to import the initial one. RDS doesn’t allow deleting the last tenant database in a DB instance.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.rds.Instance("example", {
allocatedStorage: 20,
applyImmediately: true,
dbName: "PDB1",
engine: "oracle-se2-cdb",
engineVersion: "19.0.0.0.ru-2026-07.rur-2026-07.r1",
finalSnapshotIdentifier: "example-final",
identifier: "example",
instanceClass: aws.rds.InstanceType.T3_Small,
licenseModel: "bring-your-own-license",
multiTenant: true,
passwordWo: masterPassword,
passwordWoVersion: 1,
username: "admin",
});
const exampleTenantDatabase = new aws.rds.TenantDatabase("example", {
dbInstanceIdentifier: example.identifier,
finalSnapshotIdentifier: "example-pdb2-final",
masterUserPasswordWo: tenantPassword,
masterUserPasswordWoVersion: 1,
masterUsername: "pdbadmin",
tenantDbName: "PDB2",
});
import pulumi
import pulumi_aws as aws
example = aws.rds.Instance("example",
allocated_storage=20,
apply_immediately=True,
db_name="PDB1",
engine="oracle-se2-cdb",
engine_version="19.0.0.0.ru-2026-07.rur-2026-07.r1",
final_snapshot_identifier="example-final",
identifier="example",
instance_class=aws.rds.InstanceType.T3_SMALL,
license_model="bring-your-own-license",
multi_tenant=True,
password_wo=master_password,
password_wo_version=1,
username="admin")
example_tenant_database = aws.rds.TenantDatabase("example",
db_instance_identifier=example.identifier,
final_snapshot_identifier="example-pdb2-final",
master_user_password_wo=tenant_password,
master_user_password_wo_version=1,
master_username="pdbadmin",
tenant_db_name="PDB2")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/rds"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := rds.NewInstance(ctx, "example", &rds.InstanceArgs{
AllocatedStorage: pulumi.Int(20),
ApplyImmediately: pulumi.Bool(true),
DbName: pulumi.String("PDB1"),
Engine: pulumi.String("oracle-se2-cdb"),
EngineVersion: pulumi.String("19.0.0.0.ru-2026-07.rur-2026-07.r1"),
FinalSnapshotIdentifier: pulumi.String("example-final"),
Identifier: pulumi.String("example"),
InstanceClass: pulumi.String(rds.InstanceType_T3_Small),
LicenseModel: pulumi.String("bring-your-own-license"),
MultiTenant: pulumi.Bool(true),
PasswordWo: pulumi.Any(masterPassword),
PasswordWoVersion: pulumi.Int(1),
Username: pulumi.String("admin"),
})
if err != nil {
return err
}
_, err = rds.NewTenantDatabase(ctx, "example", &rds.TenantDatabaseArgs{
DbInstanceIdentifier: example.Identifier,
FinalSnapshotIdentifier: pulumi.String("example-pdb2-final"),
MasterUserPasswordWo: pulumi.Any(tenantPassword),
MasterUserPasswordWoVersion: pulumi.Int(1),
MasterUsername: pulumi.String("pdbadmin"),
TenantDbName: pulumi.String("PDB2"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Rds.Instance("example", new()
{
AllocatedStorage = 20,
ApplyImmediately = true,
DbName = "PDB1",
Engine = "oracle-se2-cdb",
EngineVersion = "19.0.0.0.ru-2026-07.rur-2026-07.r1",
FinalSnapshotIdentifier = "example-final",
Identifier = "example",
InstanceClass = Aws.Rds.InstanceType.T3_Small,
LicenseModel = "bring-your-own-license",
MultiTenant = true,
PasswordWo = masterPassword,
PasswordWoVersion = 1,
Username = "admin",
});
var exampleTenantDatabase = new Aws.Rds.TenantDatabase("example", new()
{
DbInstanceIdentifier = example.Identifier,
FinalSnapshotIdentifier = "example-pdb2-final",
MasterUserPasswordWo = tenantPassword,
MasterUserPasswordWoVersion = 1,
MasterUsername = "pdbadmin",
TenantDbName = "PDB2",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.Instance;
import com.pulumi.aws.rds.InstanceArgs;
import com.pulumi.aws.rds.TenantDatabase;
import com.pulumi.aws.rds.TenantDatabaseArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Instance("example", InstanceArgs.builder()
.allocatedStorage(20)
.applyImmediately(true)
.dbName("PDB1")
.engine("oracle-se2-cdb")
.engineVersion("19.0.0.0.ru-2026-07.rur-2026-07.r1")
.finalSnapshotIdentifier("example-final")
.identifier("example")
.instanceClass("db.t3.small")
.licenseModel("bring-your-own-license")
.multiTenant(true)
.passwordWo(masterPassword)
.passwordWoVersion(1)
.username("admin")
.build());
var exampleTenantDatabase = new TenantDatabase("exampleTenantDatabase", TenantDatabaseArgs.builder()
.dbInstanceIdentifier(example.identifier())
.finalSnapshotIdentifier("example-pdb2-final")
.masterUserPasswordWo(tenantPassword)
.masterUserPasswordWoVersion(1)
.masterUsername("pdbadmin")
.tenantDbName("PDB2")
.build());
}
}
resources:
example:
type: aws:rds:Instance
properties:
allocatedStorage: 20
applyImmediately: true
dbName: PDB1
engine: oracle-se2-cdb
engineVersion: 19.0.0.0.ru-2026-07.rur-2026-07.r1
finalSnapshotIdentifier: example-final
identifier: example
instanceClass: db.t3.small
licenseModel: bring-your-own-license
multiTenant: true
passwordWo: ${masterPassword}
passwordWoVersion: 1
username: admin
exampleTenantDatabase:
type: aws:rds:TenantDatabase
name: example
properties:
dbInstanceIdentifier: ${example.identifier}
finalSnapshotIdentifier: example-pdb2-final
masterUserPasswordWo: ${tenantPassword}
masterUserPasswordWoVersion: 1
masterUsername: pdbadmin
tenantDbName: PDB2
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_rds_instance" "example" {
lifecycle {
create_before_destroy = true
}
allocated_storage = 20
apply_immediately = true
db_name = "PDB1"
engine = "oracle-se2-cdb"
engine_version = "19.0.0.0.ru-2026-07.rur-2026-07.r1"
final_snapshot_identifier = "example-final"
identifier = "example"
instance_class = "db.t3.small"
license_model = "bring-your-own-license"
multi_tenant = true
password_wo = masterPassword
password_wo_version = 1
username = "admin"
}
resource "aws_rds_tenant_database" "example" {
lifecycle {
create_before_destroy = true
}
db_instance_identifier = aws_rds_instance.example.identifier
final_snapshot_identifier = "example-pdb2-final"
master_user_password_wo = tenantPassword
master_user_password_wo_version = 1
master_username = "pdbadmin"
tenant_db_name = "PDB2"
}
Password Managed by AWS Secrets Manager
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.rds.TenantDatabase("example", {
dbInstanceIdentifier: exampleAwsDbInstance.identifier,
manageMasterUserPassword: true,
masterUsername: "pdbadmin",
skipFinalSnapshot: true,
tenantDbName: "PDB2",
});
import pulumi
import pulumi_aws as aws
example = aws.rds.TenantDatabase("example",
db_instance_identifier=example_aws_db_instance["identifier"],
manage_master_user_password=True,
master_username="pdbadmin",
skip_final_snapshot=True,
tenant_db_name="PDB2")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/rds"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds.NewTenantDatabase(ctx, "example", &rds.TenantDatabaseArgs{
DbInstanceIdentifier: pulumi.Any(exampleAwsDbInstance.Identifier),
ManageMasterUserPassword: pulumi.Bool(true),
MasterUsername: pulumi.String("pdbadmin"),
SkipFinalSnapshot: pulumi.Bool(true),
TenantDbName: pulumi.String("PDB2"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Rds.TenantDatabase("example", new()
{
DbInstanceIdentifier = exampleAwsDbInstance.Identifier,
ManageMasterUserPassword = true,
MasterUsername = "pdbadmin",
SkipFinalSnapshot = true,
TenantDbName = "PDB2",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.TenantDatabase;
import com.pulumi.aws.rds.TenantDatabaseArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new TenantDatabase("example", TenantDatabaseArgs.builder()
.dbInstanceIdentifier(exampleAwsDbInstance.get("identifier"))
.manageMasterUserPassword(true)
.masterUsername("pdbadmin")
.skipFinalSnapshot(true)
.tenantDbName("PDB2")
.build());
}
}
resources:
example:
type: aws:rds:TenantDatabase
properties:
dbInstanceIdentifier: ${exampleAwsDbInstance.identifier}
manageMasterUserPassword: true
masterUsername: pdbadmin
skipFinalSnapshot: true
tenantDbName: PDB2
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_rds_tenant_database" "example" {
lifecycle {
create_before_destroy = true
}
db_instance_identifier = exampleAwsDbInstance.identifier
manage_master_user_password = true
master_username = "pdbadmin"
skip_final_snapshot = true
tenant_db_name = "PDB2"
}
Create TenantDatabase Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TenantDatabase(name: string, args: TenantDatabaseArgs, opts?: CustomResourceOptions);@overload
def TenantDatabase(resource_name: str,
args: TenantDatabaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TenantDatabase(resource_name: str,
opts: Optional[ResourceOptions] = None,
master_username: Optional[str] = None,
db_instance_identifier: Optional[str] = None,
tenant_db_name: Optional[str] = None,
master_user_password_wo_version: Optional[int] = None,
master_user_password: Optional[str] = None,
master_user_password_wo: Optional[str] = None,
character_set_name: Optional[str] = None,
master_user_secret_kms_key_id: Optional[str] = None,
manage_master_user_password: Optional[bool] = None,
nchar_character_set_name: Optional[str] = None,
region: Optional[str] = None,
skip_final_snapshot: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None,
final_snapshot_identifier: Optional[str] = None,
timeouts: Optional[TenantDatabaseTimeoutsArgs] = None)func NewTenantDatabase(ctx *Context, name string, args TenantDatabaseArgs, opts ...ResourceOption) (*TenantDatabase, error)public TenantDatabase(string name, TenantDatabaseArgs args, CustomResourceOptions? opts = null)
public TenantDatabase(String name, TenantDatabaseArgs args)
public TenantDatabase(String name, TenantDatabaseArgs args, CustomResourceOptions options)
type: aws:rds:TenantDatabase
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_rds_tenant_database" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TenantDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TenantDatabaseArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TenantDatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TenantDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TenantDatabaseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var tenantDatabaseResource = new Aws.Rds.TenantDatabase("tenantDatabaseResource", new()
{
MasterUsername = "string",
DbInstanceIdentifier = "string",
TenantDbName = "string",
MasterUserPasswordWoVersion = 0,
MasterUserPassword = "string",
MasterUserPasswordWo = "string",
CharacterSetName = "string",
MasterUserSecretKmsKeyId = "string",
ManageMasterUserPassword = false,
NcharCharacterSetName = "string",
Region = "string",
SkipFinalSnapshot = false,
Tags =
{
{ "string", "string" },
},
FinalSnapshotIdentifier = "string",
Timeouts = new Aws.Rds.Inputs.TenantDatabaseTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := rds.NewTenantDatabase(ctx, "tenantDatabaseResource", &rds.TenantDatabaseArgs{
MasterUsername: pulumi.String("string"),
DbInstanceIdentifier: pulumi.String("string"),
TenantDbName: pulumi.String("string"),
MasterUserPasswordWoVersion: pulumi.Int(0),
MasterUserPassword: pulumi.String("string"),
MasterUserPasswordWo: pulumi.String("string"),
CharacterSetName: pulumi.String("string"),
MasterUserSecretKmsKeyId: pulumi.String("string"),
ManageMasterUserPassword: pulumi.Bool(false),
NcharCharacterSetName: pulumi.String("string"),
Region: pulumi.String("string"),
SkipFinalSnapshot: pulumi.Bool(false),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
FinalSnapshotIdentifier: pulumi.String("string"),
Timeouts: &rds.TenantDatabaseTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
resource "aws_rds_tenant_database" "tenantDatabaseResource" {
lifecycle {
create_before_destroy = true
}
master_username = "string"
db_instance_identifier = "string"
tenant_db_name = "string"
master_user_password_wo_version = 0
master_user_password = "string"
master_user_password_wo = "string"
character_set_name = "string"
master_user_secret_kms_key_id = "string"
manage_master_user_password = false
nchar_character_set_name = "string"
region = "string"
skip_final_snapshot = false
tags = {
"string" = "string"
}
final_snapshot_identifier = "string"
_ {
timeouts = {
create = "string"
delete = "string"
update = "string"
}
}
}
var tenantDatabaseResource = new TenantDatabase("tenantDatabaseResource", TenantDatabaseArgs.builder()
.masterUsername("string")
.dbInstanceIdentifier("string")
.tenantDbName("string")
.masterUserPasswordWoVersion(0)
.masterUserPassword("string")
.masterUserPasswordWo("string")
.characterSetName("string")
.masterUserSecretKmsKeyId("string")
.manageMasterUserPassword(false)
.ncharCharacterSetName("string")
.region("string")
.skipFinalSnapshot(false)
.tags(Map.of("string", "string"))
.finalSnapshotIdentifier("string")
.timeouts(TenantDatabaseTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
tenant_database_resource = aws.rds.TenantDatabase("tenantDatabaseResource",
master_username="string",
db_instance_identifier="string",
tenant_db_name="string",
master_user_password_wo_version=0,
master_user_password="string",
master_user_password_wo="string",
character_set_name="string",
master_user_secret_kms_key_id="string",
manage_master_user_password=False,
nchar_character_set_name="string",
region="string",
skip_final_snapshot=False,
tags={
"string": "string",
},
final_snapshot_identifier="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const tenantDatabaseResource = new aws.rds.TenantDatabase("tenantDatabaseResource", {
masterUsername: "string",
dbInstanceIdentifier: "string",
tenantDbName: "string",
masterUserPasswordWoVersion: 0,
masterUserPassword: "string",
masterUserPasswordWo: "string",
characterSetName: "string",
masterUserSecretKmsKeyId: "string",
manageMasterUserPassword: false,
ncharCharacterSetName: "string",
region: "string",
skipFinalSnapshot: false,
tags: {
string: "string",
},
finalSnapshotIdentifier: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: aws:rds:TenantDatabase
properties:
characterSetName: string
dbInstanceIdentifier: string
finalSnapshotIdentifier: string
manageMasterUserPassword: false
masterUserPassword: string
masterUserPasswordWo: string
masterUserPasswordWoVersion: 0
masterUserSecretKmsKeyId: string
masterUsername: string
ncharCharacterSetName: string
region: string
skipFinalSnapshot: false
tags:
string: string
tenantDbName: string
timeouts:
create: string
delete: string
update: string
TenantDatabase Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TenantDatabase resource accepts the following input properties:
- Db
Instance stringIdentifier - Identifier of the DB instance that contains the tenant database.
- Master
Username string - Name of the master user for the tenant database.
- Tenant
Db stringName Name of the tenant database. Changing it renames the tenant database.
The following arguments are optional:
- Character
Set stringName - Character set of the tenant database. Defaults to
AL32UTF8. - Final
Snapshot stringIdentifier - Name of the DB snapshot created when the tenant database is deleted. Required unless
skipFinalSnapshotistrue. - Manage
Master boolUser Password - Whether to manage the master user password with AWS Secrets Manager. When
true, conflicts withmasterUserPasswordandmasterUserPasswordWo. Turning it off requires one of them. - Master
User stringPassword - Password for the master user. Stored in the Terraform state. Conflicts with
masterUserPasswordWo. - Master
User stringPassword Wo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password for the master user. Not stored in the Terraform state. Requires
masterUserPasswordWoVersion. - Master
User intPassword Wo Version - Version of
masterUserPasswordWo. Change it to update the password. - Master
User stringSecret Kms Key Id - ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when
manageMasterUserPasswordistrue. Can't be changed whilemanageMasterUserPasswordistrue; turn it off, apply, then turn it back on with the new key. After import, omit it or use the secret's key ARN. Defaults to theaws/secretsmanagerkey. - Nchar
Character stringSet Name - National character set of the tenant database. Defaults to
AL16UTF16. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Skip
Final boolSnapshot - Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to
false. - Dictionary<string, string>
Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.Note: One of
manageMasterUserPassword,masterUserPassword, ormasterUserPasswordWois required by RDS when creating a tenant database.- Timeouts
Tenant
Database Timeouts
- Db
Instance stringIdentifier - Identifier of the DB instance that contains the tenant database.
- Master
Username string - Name of the master user for the tenant database.
- Tenant
Db stringName Name of the tenant database. Changing it renames the tenant database.
The following arguments are optional:
- Character
Set stringName - Character set of the tenant database. Defaults to
AL32UTF8. - Final
Snapshot stringIdentifier - Name of the DB snapshot created when the tenant database is deleted. Required unless
skipFinalSnapshotistrue. - Manage
Master boolUser Password - Whether to manage the master user password with AWS Secrets Manager. When
true, conflicts withmasterUserPasswordandmasterUserPasswordWo. Turning it off requires one of them. - Master
User stringPassword - Password for the master user. Stored in the Terraform state. Conflicts with
masterUserPasswordWo. - Master
User stringPassword Wo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password for the master user. Not stored in the Terraform state. Requires
masterUserPasswordWoVersion. - Master
User intPassword Wo Version - Version of
masterUserPasswordWo. Change it to update the password. - Master
User stringSecret Kms Key Id - ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when
manageMasterUserPasswordistrue. Can't be changed whilemanageMasterUserPasswordistrue; turn it off, apply, then turn it back on with the new key. After import, omit it or use the secret's key ARN. Defaults to theaws/secretsmanagerkey. - Nchar
Character stringSet Name - National character set of the tenant database. Defaults to
AL16UTF16. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Skip
Final boolSnapshot - Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to
false. - map[string]string
Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.Note: One of
manageMasterUserPassword,masterUserPassword, ormasterUserPasswordWois required by RDS when creating a tenant database.- Timeouts
Tenant
Database Timeouts Args
- db_
instance_ stringidentifier - Identifier of the DB instance that contains the tenant database.
- master_
username string - Name of the master user for the tenant database.
- tenant_
db_ stringname Name of the tenant database. Changing it renames the tenant database.
The following arguments are optional:
- character_
set_ stringname - Character set of the tenant database. Defaults to
AL32UTF8. - final_
snapshot_ stringidentifier - Name of the DB snapshot created when the tenant database is deleted. Required unless
skipFinalSnapshotistrue. - manage_
master_ booluser_ password - Whether to manage the master user password with AWS Secrets Manager. When
true, conflicts withmasterUserPasswordandmasterUserPasswordWo. Turning it off requires one of them. - master_
user_ stringpassword - Password for the master user. Stored in the Terraform state. Conflicts with
masterUserPasswordWo. - master_
user_ stringpassword_ wo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password for the master user. Not stored in the Terraform state. Requires
masterUserPasswordWoVersion. - master_
user_ numberpassword_ wo_ version - Version of
masterUserPasswordWo. Change it to update the password. - master_
user_ stringsecret_ kms_ key_ id - ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when
manageMasterUserPasswordistrue. Can't be changed whilemanageMasterUserPasswordistrue; turn it off, apply, then turn it back on with the new key. After import, omit it or use the secret's key ARN. Defaults to theaws/secretsmanagerkey. - nchar_
character_ stringset_ name - National character set of the tenant database. Defaults to
AL16UTF16. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- skip_
final_ boolsnapshot - Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to
false. - map(string)
Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.Note: One of
manageMasterUserPassword,masterUserPassword, ormasterUserPasswordWois required by RDS when creating a tenant database.- timeouts object
- db
Instance StringIdentifier - Identifier of the DB instance that contains the tenant database.
- master
Username String - Name of the master user for the tenant database.
- tenant
Db StringName Name of the tenant database. Changing it renames the tenant database.
The following arguments are optional:
- character
Set StringName - Character set of the tenant database. Defaults to
AL32UTF8. - final
Snapshot StringIdentifier - Name of the DB snapshot created when the tenant database is deleted. Required unless
skipFinalSnapshotistrue. - manage
Master BooleanUser Password - Whether to manage the master user password with AWS Secrets Manager. When
true, conflicts withmasterUserPasswordandmasterUserPasswordWo. Turning it off requires one of them. - master
User StringPassword - Password for the master user. Stored in the Terraform state. Conflicts with
masterUserPasswordWo. - master
User StringPassword Wo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password for the master user. Not stored in the Terraform state. Requires
masterUserPasswordWoVersion. - master
User IntegerPassword Wo Version - Version of
masterUserPasswordWo. Change it to update the password. - master
User StringSecret Kms Key Id - ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when
manageMasterUserPasswordistrue. Can't be changed whilemanageMasterUserPasswordistrue; turn it off, apply, then turn it back on with the new key. After import, omit it or use the secret's key ARN. Defaults to theaws/secretsmanagerkey. - nchar
Character StringSet Name - National character set of the tenant database. Defaults to
AL16UTF16. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- skip
Final BooleanSnapshot - Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to
false. - Map<String,String>
Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.Note: One of
manageMasterUserPassword,masterUserPassword, ormasterUserPasswordWois required by RDS when creating a tenant database.- timeouts
Tenant
Database Timeouts
- db
Instance stringIdentifier - Identifier of the DB instance that contains the tenant database.
- master
Username string - Name of the master user for the tenant database.
- tenant
Db stringName Name of the tenant database. Changing it renames the tenant database.
The following arguments are optional:
- character
Set stringName - Character set of the tenant database. Defaults to
AL32UTF8. - final
Snapshot stringIdentifier - Name of the DB snapshot created when the tenant database is deleted. Required unless
skipFinalSnapshotistrue. - manage
Master booleanUser Password - Whether to manage the master user password with AWS Secrets Manager. When
true, conflicts withmasterUserPasswordandmasterUserPasswordWo. Turning it off requires one of them. - master
User stringPassword - Password for the master user. Stored in the Terraform state. Conflicts with
masterUserPasswordWo. - master
User stringPassword Wo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password for the master user. Not stored in the Terraform state. Requires
masterUserPasswordWoVersion. - master
User numberPassword Wo Version - Version of
masterUserPasswordWo. Change it to update the password. - master
User stringSecret Kms Key Id - ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when
manageMasterUserPasswordistrue. Can't be changed whilemanageMasterUserPasswordistrue; turn it off, apply, then turn it back on with the new key. After import, omit it or use the secret's key ARN. Defaults to theaws/secretsmanagerkey. - nchar
Character stringSet Name - National character set of the tenant database. Defaults to
AL16UTF16. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- skip
Final booleanSnapshot - Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to
false. - {[key: string]: string}
Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.Note: One of
manageMasterUserPassword,masterUserPassword, ormasterUserPasswordWois required by RDS when creating a tenant database.- timeouts
Tenant
Database Timeouts
- db_
instance_ stridentifier - Identifier of the DB instance that contains the tenant database.
- master_
username str - Name of the master user for the tenant database.
- tenant_
db_ strname Name of the tenant database. Changing it renames the tenant database.
The following arguments are optional:
- character_
set_ strname - Character set of the tenant database. Defaults to
AL32UTF8. - final_
snapshot_ stridentifier - Name of the DB snapshot created when the tenant database is deleted. Required unless
skipFinalSnapshotistrue. - manage_
master_ booluser_ password - Whether to manage the master user password with AWS Secrets Manager. When
true, conflicts withmasterUserPasswordandmasterUserPasswordWo. Turning it off requires one of them. - master_
user_ strpassword - Password for the master user. Stored in the Terraform state. Conflicts with
masterUserPasswordWo. - master_
user_ strpassword_ wo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password for the master user. Not stored in the Terraform state. Requires
masterUserPasswordWoVersion. - master_
user_ intpassword_ wo_ version - Version of
masterUserPasswordWo. Change it to update the password. - master_
user_ strsecret_ kms_ key_ id - ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when
manageMasterUserPasswordistrue. Can't be changed whilemanageMasterUserPasswordistrue; turn it off, apply, then turn it back on with the new key. After import, omit it or use the secret's key ARN. Defaults to theaws/secretsmanagerkey. - nchar_
character_ strset_ name - National character set of the tenant database. Defaults to
AL16UTF16. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- skip_
final_ boolsnapshot - Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to
false. - Mapping[str, str]
Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.Note: One of
manageMasterUserPassword,masterUserPassword, ormasterUserPasswordWois required by RDS when creating a tenant database.- timeouts
Tenant
Database Timeouts Args
- db
Instance StringIdentifier - Identifier of the DB instance that contains the tenant database.
- master
Username String - Name of the master user for the tenant database.
- tenant
Db StringName Name of the tenant database. Changing it renames the tenant database.
The following arguments are optional:
- character
Set StringName - Character set of the tenant database. Defaults to
AL32UTF8. - final
Snapshot StringIdentifier - Name of the DB snapshot created when the tenant database is deleted. Required unless
skipFinalSnapshotistrue. - manage
Master BooleanUser Password - Whether to manage the master user password with AWS Secrets Manager. When
true, conflicts withmasterUserPasswordandmasterUserPasswordWo. Turning it off requires one of them. - master
User StringPassword - Password for the master user. Stored in the Terraform state. Conflicts with
masterUserPasswordWo. - master
User StringPassword Wo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password for the master user. Not stored in the Terraform state. Requires
masterUserPasswordWoVersion. - master
User NumberPassword Wo Version - Version of
masterUserPasswordWo. Change it to update the password. - master
User StringSecret Kms Key Id - ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when
manageMasterUserPasswordistrue. Can't be changed whilemanageMasterUserPasswordistrue; turn it off, apply, then turn it back on with the new key. After import, omit it or use the secret's key ARN. Defaults to theaws/secretsmanagerkey. - nchar
Character StringSet Name - National character set of the tenant database. Defaults to
AL16UTF16. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- skip
Final BooleanSnapshot - Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to
false. - Map<String>
Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.Note: One of
manageMasterUserPassword,masterUserPassword, ormasterUserPasswordWois required by RDS when creating a tenant database.- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the TenantDatabase resource produces the following output properties:
- Arn string
- ARN of the tenant database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Master
User List<TenantSecrets Database Master User Secret> - Secrets Manager secret for the master user password when
manageMasterUserPasswordistrue. SeemasterUserSecretBlock below. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Tenant
Database stringResource Id - Region-unique, immutable identifier of the tenant database.
- Arn string
- ARN of the tenant database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Master
User []TenantSecrets Database Master User Secret - Secrets Manager secret for the master user password when
manageMasterUserPasswordistrue. SeemasterUserSecretBlock below. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Tenant
Database stringResource Id - Region-unique, immutable identifier of the tenant database.
- arn string
- ARN of the tenant database.
- id string
- The provider-assigned unique ID for this managed resource.
- master_
user_ list(object)secrets - Secrets Manager secret for the master user password when
manageMasterUserPasswordistrue. SeemasterUserSecretBlock below. - map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - tenant_
database_ stringresource_ id - Region-unique, immutable identifier of the tenant database.
- arn String
- ARN of the tenant database.
- id String
- The provider-assigned unique ID for this managed resource.
- master
User List<TenantSecrets Database Master User Secret> - Secrets Manager secret for the master user password when
manageMasterUserPasswordistrue. SeemasterUserSecretBlock below. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - tenant
Database StringResource Id - Region-unique, immutable identifier of the tenant database.
- arn string
- ARN of the tenant database.
- id string
- The provider-assigned unique ID for this managed resource.
- master
User TenantSecrets Database Master User Secret[] - Secrets Manager secret for the master user password when
manageMasterUserPasswordistrue. SeemasterUserSecretBlock below. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - tenant
Database stringResource Id - Region-unique, immutable identifier of the tenant database.
- arn str
- ARN of the tenant database.
- id str
- The provider-assigned unique ID for this managed resource.
- master_
user_ Sequence[Tenantsecrets Database Master User Secret] - Secrets Manager secret for the master user password when
manageMasterUserPasswordistrue. SeemasterUserSecretBlock below. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - tenant_
database_ strresource_ id - Region-unique, immutable identifier of the tenant database.
- arn String
- ARN of the tenant database.
- id String
- The provider-assigned unique ID for this managed resource.
- master
User List<Property Map>Secrets - Secrets Manager secret for the master user password when
manageMasterUserPasswordistrue. SeemasterUserSecretBlock below. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - tenant
Database StringResource Id - Region-unique, immutable identifier of the tenant database.
Look up Existing TenantDatabase Resource
Get an existing TenantDatabase resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TenantDatabaseState, opts?: CustomResourceOptions): TenantDatabase@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
character_set_name: Optional[str] = None,
db_instance_identifier: Optional[str] = None,
final_snapshot_identifier: Optional[str] = None,
manage_master_user_password: Optional[bool] = None,
master_user_password: Optional[str] = None,
master_user_password_wo: Optional[str] = None,
master_user_password_wo_version: Optional[int] = None,
master_user_secret_kms_key_id: Optional[str] = None,
master_user_secrets: Optional[Sequence[TenantDatabaseMasterUserSecretArgs]] = None,
master_username: Optional[str] = None,
nchar_character_set_name: Optional[str] = None,
region: Optional[str] = None,
skip_final_snapshot: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
tenant_database_resource_id: Optional[str] = None,
tenant_db_name: Optional[str] = None,
timeouts: Optional[TenantDatabaseTimeoutsArgs] = None) -> TenantDatabasefunc GetTenantDatabase(ctx *Context, name string, id IDInput, state *TenantDatabaseState, opts ...ResourceOption) (*TenantDatabase, error)public static TenantDatabase Get(string name, Input<string> id, TenantDatabaseState? state, CustomResourceOptions? opts = null)public static TenantDatabase get(String name, Output<String> id, TenantDatabaseState state, CustomResourceOptions options)resources: existingTenantDatabase: type: aws:rds:TenantDatabase get: id: ${id}import {
to = aws_rds_tenant_database.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state TenantDatabaseState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state TenantDatabaseState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state TenantDatabaseState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state TenantDatabaseState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Arn string
- ARN of the tenant database.
- Character
Set stringName - Character set of the tenant database. Defaults to
AL32UTF8. - Db
Instance stringIdentifier - Identifier of the DB instance that contains the tenant database.
- Final
Snapshot stringIdentifier - Name of the DB snapshot created when the tenant database is deleted. Required unless
skipFinalSnapshotistrue. - Manage
Master boolUser Password - Whether to manage the master user password with AWS Secrets Manager. When
true, conflicts withmasterUserPasswordandmasterUserPasswordWo. Turning it off requires one of them. - Master
User stringPassword - Password for the master user. Stored in the Terraform state. Conflicts with
masterUserPasswordWo. - Master
User stringPassword Wo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password for the master user. Not stored in the Terraform state. Requires
masterUserPasswordWoVersion. - Master
User intPassword Wo Version - Version of
masterUserPasswordWo. Change it to update the password. - Master
User stringSecret Kms Key Id - ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when
manageMasterUserPasswordistrue. Can't be changed whilemanageMasterUserPasswordistrue; turn it off, apply, then turn it back on with the new key. After import, omit it or use the secret's key ARN. Defaults to theaws/secretsmanagerkey. - Master
User List<TenantSecrets Database Master User Secret> - Secrets Manager secret for the master user password when
manageMasterUserPasswordistrue. SeemasterUserSecretBlock below. - Master
Username string - Name of the master user for the tenant database.
- Nchar
Character stringSet Name - National character set of the tenant database. Defaults to
AL16UTF16. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Skip
Final boolSnapshot - Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to
false. - Dictionary<string, string>
Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.Note: One of
manageMasterUserPassword,masterUserPassword, ormasterUserPasswordWois required by RDS when creating a tenant database.- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Tenant
Database stringResource Id - Region-unique, immutable identifier of the tenant database.
- Tenant
Db stringName Name of the tenant database. Changing it renames the tenant database.
The following arguments are optional:
- Timeouts
Tenant
Database Timeouts
- Arn string
- ARN of the tenant database.
- Character
Set stringName - Character set of the tenant database. Defaults to
AL32UTF8. - Db
Instance stringIdentifier - Identifier of the DB instance that contains the tenant database.
- Final
Snapshot stringIdentifier - Name of the DB snapshot created when the tenant database is deleted. Required unless
skipFinalSnapshotistrue. - Manage
Master boolUser Password - Whether to manage the master user password with AWS Secrets Manager. When
true, conflicts withmasterUserPasswordandmasterUserPasswordWo. Turning it off requires one of them. - Master
User stringPassword - Password for the master user. Stored in the Terraform state. Conflicts with
masterUserPasswordWo. - Master
User stringPassword Wo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password for the master user. Not stored in the Terraform state. Requires
masterUserPasswordWoVersion. - Master
User intPassword Wo Version - Version of
masterUserPasswordWo. Change it to update the password. - Master
User stringSecret Kms Key Id - ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when
manageMasterUserPasswordistrue. Can't be changed whilemanageMasterUserPasswordistrue; turn it off, apply, then turn it back on with the new key. After import, omit it or use the secret's key ARN. Defaults to theaws/secretsmanagerkey. - Master
User []TenantSecrets Database Master User Secret Args - Secrets Manager secret for the master user password when
manageMasterUserPasswordistrue. SeemasterUserSecretBlock below. - Master
Username string - Name of the master user for the tenant database.
- Nchar
Character stringSet Name - National character set of the tenant database. Defaults to
AL16UTF16. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Skip
Final boolSnapshot - Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to
false. - map[string]string
Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.Note: One of
manageMasterUserPassword,masterUserPassword, ormasterUserPasswordWois required by RDS when creating a tenant database.- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Tenant
Database stringResource Id - Region-unique, immutable identifier of the tenant database.
- Tenant
Db stringName Name of the tenant database. Changing it renames the tenant database.
The following arguments are optional:
- Timeouts
Tenant
Database Timeouts Args
- arn string
- ARN of the tenant database.
- character_
set_ stringname - Character set of the tenant database. Defaults to
AL32UTF8. - db_
instance_ stringidentifier - Identifier of the DB instance that contains the tenant database.
- final_
snapshot_ stringidentifier - Name of the DB snapshot created when the tenant database is deleted. Required unless
skipFinalSnapshotistrue. - manage_
master_ booluser_ password - Whether to manage the master user password with AWS Secrets Manager. When
true, conflicts withmasterUserPasswordandmasterUserPasswordWo. Turning it off requires one of them. - master_
user_ stringpassword - Password for the master user. Stored in the Terraform state. Conflicts with
masterUserPasswordWo. - master_
user_ stringpassword_ wo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password for the master user. Not stored in the Terraform state. Requires
masterUserPasswordWoVersion. - master_
user_ numberpassword_ wo_ version - Version of
masterUserPasswordWo. Change it to update the password. - master_
user_ stringsecret_ kms_ key_ id - ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when
manageMasterUserPasswordistrue. Can't be changed whilemanageMasterUserPasswordistrue; turn it off, apply, then turn it back on with the new key. After import, omit it or use the secret's key ARN. Defaults to theaws/secretsmanagerkey. - master_
user_ list(object)secrets - Secrets Manager secret for the master user password when
manageMasterUserPasswordistrue. SeemasterUserSecretBlock below. - master_
username string - Name of the master user for the tenant database.
- nchar_
character_ stringset_ name - National character set of the tenant database. Defaults to
AL16UTF16. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- skip_
final_ boolsnapshot - Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to
false. - map(string)
Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.Note: One of
manageMasterUserPassword,masterUserPassword, ormasterUserPasswordWois required by RDS when creating a tenant database.- map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - tenant_
database_ stringresource_ id - Region-unique, immutable identifier of the tenant database.
- tenant_
db_ stringname Name of the tenant database. Changing it renames the tenant database.
The following arguments are optional:
- timeouts object
- arn String
- ARN of the tenant database.
- character
Set StringName - Character set of the tenant database. Defaults to
AL32UTF8. - db
Instance StringIdentifier - Identifier of the DB instance that contains the tenant database.
- final
Snapshot StringIdentifier - Name of the DB snapshot created when the tenant database is deleted. Required unless
skipFinalSnapshotistrue. - manage
Master BooleanUser Password - Whether to manage the master user password with AWS Secrets Manager. When
true, conflicts withmasterUserPasswordandmasterUserPasswordWo. Turning it off requires one of them. - master
User StringPassword - Password for the master user. Stored in the Terraform state. Conflicts with
masterUserPasswordWo. - master
User StringPassword Wo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password for the master user. Not stored in the Terraform state. Requires
masterUserPasswordWoVersion. - master
User IntegerPassword Wo Version - Version of
masterUserPasswordWo. Change it to update the password. - master
User StringSecret Kms Key Id - ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when
manageMasterUserPasswordistrue. Can't be changed whilemanageMasterUserPasswordistrue; turn it off, apply, then turn it back on with the new key. After import, omit it or use the secret's key ARN. Defaults to theaws/secretsmanagerkey. - master
User List<TenantSecrets Database Master User Secret> - Secrets Manager secret for the master user password when
manageMasterUserPasswordistrue. SeemasterUserSecretBlock below. - master
Username String - Name of the master user for the tenant database.
- nchar
Character StringSet Name - National character set of the tenant database. Defaults to
AL16UTF16. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- skip
Final BooleanSnapshot - Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to
false. - Map<String,String>
Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.Note: One of
manageMasterUserPassword,masterUserPassword, ormasterUserPasswordWois required by RDS when creating a tenant database.- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - tenant
Database StringResource Id - Region-unique, immutable identifier of the tenant database.
- tenant
Db StringName Name of the tenant database. Changing it renames the tenant database.
The following arguments are optional:
- timeouts
Tenant
Database Timeouts
- arn string
- ARN of the tenant database.
- character
Set stringName - Character set of the tenant database. Defaults to
AL32UTF8. - db
Instance stringIdentifier - Identifier of the DB instance that contains the tenant database.
- final
Snapshot stringIdentifier - Name of the DB snapshot created when the tenant database is deleted. Required unless
skipFinalSnapshotistrue. - manage
Master booleanUser Password - Whether to manage the master user password with AWS Secrets Manager. When
true, conflicts withmasterUserPasswordandmasterUserPasswordWo. Turning it off requires one of them. - master
User stringPassword - Password for the master user. Stored in the Terraform state. Conflicts with
masterUserPasswordWo. - master
User stringPassword Wo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password for the master user. Not stored in the Terraform state. Requires
masterUserPasswordWoVersion. - master
User numberPassword Wo Version - Version of
masterUserPasswordWo. Change it to update the password. - master
User stringSecret Kms Key Id - ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when
manageMasterUserPasswordistrue. Can't be changed whilemanageMasterUserPasswordistrue; turn it off, apply, then turn it back on with the new key. After import, omit it or use the secret's key ARN. Defaults to theaws/secretsmanagerkey. - master
User TenantSecrets Database Master User Secret[] - Secrets Manager secret for the master user password when
manageMasterUserPasswordistrue. SeemasterUserSecretBlock below. - master
Username string - Name of the master user for the tenant database.
- nchar
Character stringSet Name - National character set of the tenant database. Defaults to
AL16UTF16. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- skip
Final booleanSnapshot - Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to
false. - {[key: string]: string}
Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.Note: One of
manageMasterUserPassword,masterUserPassword, ormasterUserPasswordWois required by RDS when creating a tenant database.- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - tenant
Database stringResource Id - Region-unique, immutable identifier of the tenant database.
- tenant
Db stringName Name of the tenant database. Changing it renames the tenant database.
The following arguments are optional:
- timeouts
Tenant
Database Timeouts
- arn str
- ARN of the tenant database.
- character_
set_ strname - Character set of the tenant database. Defaults to
AL32UTF8. - db_
instance_ stridentifier - Identifier of the DB instance that contains the tenant database.
- final_
snapshot_ stridentifier - Name of the DB snapshot created when the tenant database is deleted. Required unless
skipFinalSnapshotistrue. - manage_
master_ booluser_ password - Whether to manage the master user password with AWS Secrets Manager. When
true, conflicts withmasterUserPasswordandmasterUserPasswordWo. Turning it off requires one of them. - master_
user_ strpassword - Password for the master user. Stored in the Terraform state. Conflicts with
masterUserPasswordWo. - master_
user_ strpassword_ wo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password for the master user. Not stored in the Terraform state. Requires
masterUserPasswordWoVersion. - master_
user_ intpassword_ wo_ version - Version of
masterUserPasswordWo. Change it to update the password. - master_
user_ strsecret_ kms_ key_ id - ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when
manageMasterUserPasswordistrue. Can't be changed whilemanageMasterUserPasswordistrue; turn it off, apply, then turn it back on with the new key. After import, omit it or use the secret's key ARN. Defaults to theaws/secretsmanagerkey. - master_
user_ Sequence[Tenantsecrets Database Master User Secret Args] - Secrets Manager secret for the master user password when
manageMasterUserPasswordistrue. SeemasterUserSecretBlock below. - master_
username str - Name of the master user for the tenant database.
- nchar_
character_ strset_ name - National character set of the tenant database. Defaults to
AL16UTF16. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- skip_
final_ boolsnapshot - Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to
false. - Mapping[str, str]
Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.Note: One of
manageMasterUserPassword,masterUserPassword, ormasterUserPasswordWois required by RDS when creating a tenant database.- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - tenant_
database_ strresource_ id - Region-unique, immutable identifier of the tenant database.
- tenant_
db_ strname Name of the tenant database. Changing it renames the tenant database.
The following arguments are optional:
- timeouts
Tenant
Database Timeouts Args
- arn String
- ARN of the tenant database.
- character
Set StringName - Character set of the tenant database. Defaults to
AL32UTF8. - db
Instance StringIdentifier - Identifier of the DB instance that contains the tenant database.
- final
Snapshot StringIdentifier - Name of the DB snapshot created when the tenant database is deleted. Required unless
skipFinalSnapshotistrue. - manage
Master BooleanUser Password - Whether to manage the master user password with AWS Secrets Manager. When
true, conflicts withmasterUserPasswordandmasterUserPasswordWo. Turning it off requires one of them. - master
User StringPassword - Password for the master user. Stored in the Terraform state. Conflicts with
masterUserPasswordWo. - master
User StringPassword Wo - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Password for the master user. Not stored in the Terraform state. Requires
masterUserPasswordWoVersion. - master
User NumberPassword Wo Version - Version of
masterUserPasswordWo. Change it to update the password. - master
User StringSecret Kms Key Id - ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when
manageMasterUserPasswordistrue. Can't be changed whilemanageMasterUserPasswordistrue; turn it off, apply, then turn it back on with the new key. After import, omit it or use the secret's key ARN. Defaults to theaws/secretsmanagerkey. - master
User List<Property Map>Secrets - Secrets Manager secret for the master user password when
manageMasterUserPasswordistrue. SeemasterUserSecretBlock below. - master
Username String - Name of the master user for the tenant database.
- nchar
Character StringSet Name - National character set of the tenant database. Defaults to
AL16UTF16. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- skip
Final BooleanSnapshot - Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to
false. - Map<String>
Map of tags assigned to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.Note: One of
manageMasterUserPassword,masterUserPassword, ormasterUserPasswordWois required by RDS when creating a tenant database.- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - tenant
Database StringResource Id - Region-unique, immutable identifier of the tenant database.
- tenant
Db StringName Name of the tenant database. Changing it renames the tenant database.
The following arguments are optional:
- timeouts Property Map
Supporting Types
TenantDatabaseMasterUserSecret, TenantDatabaseMasterUserSecretArgs
- Kms
Key stringId - ARN, ID, or alias of the AWS KMS key used to encrypt the secret.
- Secret
Arn string - ARN of the secret.
- Secret
Status string - Status of the secret.
- Kms
Key stringId - ARN, ID, or alias of the AWS KMS key used to encrypt the secret.
- Secret
Arn string - ARN of the secret.
- Secret
Status string - Status of the secret.
- kms_
key_ stringid - ARN, ID, or alias of the AWS KMS key used to encrypt the secret.
- secret_
arn string - ARN of the secret.
- secret_
status string - Status of the secret.
- kms
Key StringId - ARN, ID, or alias of the AWS KMS key used to encrypt the secret.
- secret
Arn String - ARN of the secret.
- secret
Status String - Status of the secret.
- kms
Key stringId - ARN, ID, or alias of the AWS KMS key used to encrypt the secret.
- secret
Arn string - ARN of the secret.
- secret
Status string - Status of the secret.
- kms_
key_ strid - ARN, ID, or alias of the AWS KMS key used to encrypt the secret.
- secret_
arn str - ARN of the secret.
- secret_
status str - Status of the secret.
- kms
Key StringId - ARN, ID, or alias of the AWS KMS key used to encrypt the secret.
- secret
Arn String - ARN of the secret.
- secret
Status String - Status of the secret.
TenantDatabaseTimeouts, TenantDatabaseTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Identity Schema
Required
tenantDatabaseResourceId(String) Region-unique, immutable identifier of the tenant database.
Optional
accountId(String) AWS Account where this resource is managed.region(String) Region where this resource is managed.
Using pulumi import, import RDS tenant databases using the tenantDatabaseResourceId. For example:
$ pulumi import aws:rds/tenantDatabase:TenantDatabase example tdb-ABCDEFGHIJKLMNOPQRSTUVWXYZ
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Friday, Nov 13, 2026 by Pulumi