1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. rds
  6. TenantDatabase
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.55.0
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:

    DbInstanceIdentifier string
    Identifier of the DB instance that contains the tenant database.
    MasterUsername string
    Name of the master user for the tenant database.
    TenantDbName string

    Name of the tenant database. Changing it renames the tenant database.

    The following arguments are optional:

    CharacterSetName string
    Character set of the tenant database. Defaults to AL32UTF8.
    FinalSnapshotIdentifier string
    Name of the DB snapshot created when the tenant database is deleted. Required unless skipFinalSnapshot is true.
    ManageMasterUserPassword bool
    Whether to manage the master user password with AWS Secrets Manager. When true, conflicts with masterUserPassword and masterUserPasswordWo. Turning it off requires one of them.
    MasterUserPassword string
    Password for the master user. Stored in the Terraform state. Conflicts with masterUserPasswordWo.
    MasterUserPasswordWo string
    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.
    MasterUserPasswordWoVersion int
    Version of masterUserPasswordWo. Change it to update the password.
    MasterUserSecretKmsKeyId string
    ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when manageMasterUserPassword is true. Can't be changed while manageMasterUserPassword is true; 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 the aws/secretsmanager key.
    NcharCharacterSetName string
    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.
    SkipFinalSnapshot bool
    Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to false.
    Tags Dictionary<string, string>

    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Note: One of manageMasterUserPassword, masterUserPassword, or masterUserPasswordWo is required by RDS when creating a tenant database.

    Timeouts TenantDatabaseTimeouts
    DbInstanceIdentifier string
    Identifier of the DB instance that contains the tenant database.
    MasterUsername string
    Name of the master user for the tenant database.
    TenantDbName string

    Name of the tenant database. Changing it renames the tenant database.

    The following arguments are optional:

    CharacterSetName string
    Character set of the tenant database. Defaults to AL32UTF8.
    FinalSnapshotIdentifier string
    Name of the DB snapshot created when the tenant database is deleted. Required unless skipFinalSnapshot is true.
    ManageMasterUserPassword bool
    Whether to manage the master user password with AWS Secrets Manager. When true, conflicts with masterUserPassword and masterUserPasswordWo. Turning it off requires one of them.
    MasterUserPassword string
    Password for the master user. Stored in the Terraform state. Conflicts with masterUserPasswordWo.
    MasterUserPasswordWo string
    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.
    MasterUserPasswordWoVersion int
    Version of masterUserPasswordWo. Change it to update the password.
    MasterUserSecretKmsKeyId string
    ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when manageMasterUserPassword is true. Can't be changed while manageMasterUserPassword is true; 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 the aws/secretsmanager key.
    NcharCharacterSetName string
    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.
    SkipFinalSnapshot bool
    Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to false.
    Tags map[string]string

    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Note: One of manageMasterUserPassword, masterUserPassword, or masterUserPasswordWo is required by RDS when creating a tenant database.

    Timeouts TenantDatabaseTimeoutsArgs
    db_instance_identifier string
    Identifier of the DB instance that contains the tenant database.
    master_username string
    Name of the master user for the tenant database.
    tenant_db_name string

    Name of the tenant database. Changing it renames the tenant database.

    The following arguments are optional:

    character_set_name string
    Character set of the tenant database. Defaults to AL32UTF8.
    final_snapshot_identifier string
    Name of the DB snapshot created when the tenant database is deleted. Required unless skipFinalSnapshot is true.
    manage_master_user_password bool
    Whether to manage the master user password with AWS Secrets Manager. When true, conflicts with masterUserPassword and masterUserPasswordWo. Turning it off requires one of them.
    master_user_password string
    Password for the master user. Stored in the Terraform state. Conflicts with masterUserPasswordWo.
    master_user_password_wo string
    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_password_wo_version number
    Version of masterUserPasswordWo. Change it to update the password.
    master_user_secret_kms_key_id string
    ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when manageMasterUserPassword is true. Can't be changed while manageMasterUserPassword is true; 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 the aws/secretsmanager key.
    nchar_character_set_name string
    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_snapshot bool
    Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to false.
    tags map(string)

    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Note: One of manageMasterUserPassword, masterUserPassword, or masterUserPasswordWo is required by RDS when creating a tenant database.

    timeouts object
    dbInstanceIdentifier String
    Identifier of the DB instance that contains the tenant database.
    masterUsername String
    Name of the master user for the tenant database.
    tenantDbName String

    Name of the tenant database. Changing it renames the tenant database.

    The following arguments are optional:

    characterSetName String
    Character set of the tenant database. Defaults to AL32UTF8.
    finalSnapshotIdentifier String
    Name of the DB snapshot created when the tenant database is deleted. Required unless skipFinalSnapshot is true.
    manageMasterUserPassword Boolean
    Whether to manage the master user password with AWS Secrets Manager. When true, conflicts with masterUserPassword and masterUserPasswordWo. Turning it off requires one of them.
    masterUserPassword String
    Password for the master user. Stored in the Terraform state. Conflicts with masterUserPasswordWo.
    masterUserPasswordWo String
    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.
    masterUserPasswordWoVersion Integer
    Version of masterUserPasswordWo. Change it to update the password.
    masterUserSecretKmsKeyId String
    ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when manageMasterUserPassword is true. Can't be changed while manageMasterUserPassword is true; 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 the aws/secretsmanager key.
    ncharCharacterSetName String
    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.
    skipFinalSnapshot Boolean
    Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to false.
    tags Map<String,String>

    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Note: One of manageMasterUserPassword, masterUserPassword, or masterUserPasswordWo is required by RDS when creating a tenant database.

    timeouts TenantDatabaseTimeouts
    dbInstanceIdentifier string
    Identifier of the DB instance that contains the tenant database.
    masterUsername string
    Name of the master user for the tenant database.
    tenantDbName string

    Name of the tenant database. Changing it renames the tenant database.

    The following arguments are optional:

    characterSetName string
    Character set of the tenant database. Defaults to AL32UTF8.
    finalSnapshotIdentifier string
    Name of the DB snapshot created when the tenant database is deleted. Required unless skipFinalSnapshot is true.
    manageMasterUserPassword boolean
    Whether to manage the master user password with AWS Secrets Manager. When true, conflicts with masterUserPassword and masterUserPasswordWo. Turning it off requires one of them.
    masterUserPassword string
    Password for the master user. Stored in the Terraform state. Conflicts with masterUserPasswordWo.
    masterUserPasswordWo string
    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.
    masterUserPasswordWoVersion number
    Version of masterUserPasswordWo. Change it to update the password.
    masterUserSecretKmsKeyId string
    ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when manageMasterUserPassword is true. Can't be changed while manageMasterUserPassword is true; 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 the aws/secretsmanager key.
    ncharCharacterSetName string
    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.
    skipFinalSnapshot boolean
    Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to false.
    tags {[key: string]: string}

    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Note: One of manageMasterUserPassword, masterUserPassword, or masterUserPasswordWo is required by RDS when creating a tenant database.

    timeouts TenantDatabaseTimeouts
    db_instance_identifier str
    Identifier of the DB instance that contains the tenant database.
    master_username str
    Name of the master user for the tenant database.
    tenant_db_name str

    Name of the tenant database. Changing it renames the tenant database.

    The following arguments are optional:

    character_set_name str
    Character set of the tenant database. Defaults to AL32UTF8.
    final_snapshot_identifier str
    Name of the DB snapshot created when the tenant database is deleted. Required unless skipFinalSnapshot is true.
    manage_master_user_password bool
    Whether to manage the master user password with AWS Secrets Manager. When true, conflicts with masterUserPassword and masterUserPasswordWo. Turning it off requires one of them.
    master_user_password str
    Password for the master user. Stored in the Terraform state. Conflicts with masterUserPasswordWo.
    master_user_password_wo str
    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_password_wo_version int
    Version of masterUserPasswordWo. Change it to update the password.
    master_user_secret_kms_key_id str
    ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when manageMasterUserPassword is true. Can't be changed while manageMasterUserPassword is true; 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 the aws/secretsmanager key.
    nchar_character_set_name str
    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_snapshot bool
    Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to false.
    tags Mapping[str, str]

    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Note: One of manageMasterUserPassword, masterUserPassword, or masterUserPasswordWo is required by RDS when creating a tenant database.

    timeouts TenantDatabaseTimeoutsArgs
    dbInstanceIdentifier String
    Identifier of the DB instance that contains the tenant database.
    masterUsername String
    Name of the master user for the tenant database.
    tenantDbName String

    Name of the tenant database. Changing it renames the tenant database.

    The following arguments are optional:

    characterSetName String
    Character set of the tenant database. Defaults to AL32UTF8.
    finalSnapshotIdentifier String
    Name of the DB snapshot created when the tenant database is deleted. Required unless skipFinalSnapshot is true.
    manageMasterUserPassword Boolean
    Whether to manage the master user password with AWS Secrets Manager. When true, conflicts with masterUserPassword and masterUserPasswordWo. Turning it off requires one of them.
    masterUserPassword String
    Password for the master user. Stored in the Terraform state. Conflicts with masterUserPasswordWo.
    masterUserPasswordWo String
    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.
    masterUserPasswordWoVersion Number
    Version of masterUserPasswordWo. Change it to update the password.
    masterUserSecretKmsKeyId String
    ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when manageMasterUserPassword is true. Can't be changed while manageMasterUserPassword is true; 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 the aws/secretsmanager key.
    ncharCharacterSetName String
    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.
    skipFinalSnapshot Boolean
    Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to false.
    tags Map<String>

    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Note: One of manageMasterUserPassword, masterUserPassword, or masterUserPasswordWo is 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.
    MasterUserSecrets List<TenantDatabaseMasterUserSecret>
    Secrets Manager secret for the master user password when manageMasterUserPassword is true. See masterUserSecret Block below.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    TenantDatabaseResourceId string
    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.
    MasterUserSecrets []TenantDatabaseMasterUserSecret
    Secrets Manager secret for the master user password when manageMasterUserPassword is true. See masterUserSecret Block below.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    TenantDatabaseResourceId string
    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_secrets list(object)
    Secrets Manager secret for the master user password when manageMasterUserPassword is true. See masterUserSecret Block below.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenant_database_resource_id string
    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.
    masterUserSecrets List<TenantDatabaseMasterUserSecret>
    Secrets Manager secret for the master user password when manageMasterUserPassword is true. See masterUserSecret Block below.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenantDatabaseResourceId String
    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.
    masterUserSecrets TenantDatabaseMasterUserSecret[]
    Secrets Manager secret for the master user password when manageMasterUserPassword is true. See masterUserSecret Block below.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenantDatabaseResourceId string
    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_secrets Sequence[TenantDatabaseMasterUserSecret]
    Secrets Manager secret for the master user password when manageMasterUserPassword is true. See masterUserSecret Block below.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenant_database_resource_id str
    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.
    masterUserSecrets List<Property Map>
    Secrets Manager secret for the master user password when manageMasterUserPassword is true. See masterUserSecret Block below.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenantDatabaseResourceId String
    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) -> TenantDatabase
    func 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.
    The following state arguments are supported:
    Arn string
    ARN of the tenant database.
    CharacterSetName string
    Character set of the tenant database. Defaults to AL32UTF8.
    DbInstanceIdentifier string
    Identifier of the DB instance that contains the tenant database.
    FinalSnapshotIdentifier string
    Name of the DB snapshot created when the tenant database is deleted. Required unless skipFinalSnapshot is true.
    ManageMasterUserPassword bool
    Whether to manage the master user password with AWS Secrets Manager. When true, conflicts with masterUserPassword and masterUserPasswordWo. Turning it off requires one of them.
    MasterUserPassword string
    Password for the master user. Stored in the Terraform state. Conflicts with masterUserPasswordWo.
    MasterUserPasswordWo string
    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.
    MasterUserPasswordWoVersion int
    Version of masterUserPasswordWo. Change it to update the password.
    MasterUserSecretKmsKeyId string
    ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when manageMasterUserPassword is true. Can't be changed while manageMasterUserPassword is true; 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 the aws/secretsmanager key.
    MasterUserSecrets List<TenantDatabaseMasterUserSecret>
    Secrets Manager secret for the master user password when manageMasterUserPassword is true. See masterUserSecret Block below.
    MasterUsername string
    Name of the master user for the tenant database.
    NcharCharacterSetName string
    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.
    SkipFinalSnapshot bool
    Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to false.
    Tags Dictionary<string, string>

    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Note: One of manageMasterUserPassword, masterUserPassword, or masterUserPasswordWo is required by RDS when creating a tenant database.

    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    TenantDatabaseResourceId string
    Region-unique, immutable identifier of the tenant database.
    TenantDbName string

    Name of the tenant database. Changing it renames the tenant database.

    The following arguments are optional:

    Timeouts TenantDatabaseTimeouts
    Arn string
    ARN of the tenant database.
    CharacterSetName string
    Character set of the tenant database. Defaults to AL32UTF8.
    DbInstanceIdentifier string
    Identifier of the DB instance that contains the tenant database.
    FinalSnapshotIdentifier string
    Name of the DB snapshot created when the tenant database is deleted. Required unless skipFinalSnapshot is true.
    ManageMasterUserPassword bool
    Whether to manage the master user password with AWS Secrets Manager. When true, conflicts with masterUserPassword and masterUserPasswordWo. Turning it off requires one of them.
    MasterUserPassword string
    Password for the master user. Stored in the Terraform state. Conflicts with masterUserPasswordWo.
    MasterUserPasswordWo string
    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.
    MasterUserPasswordWoVersion int
    Version of masterUserPasswordWo. Change it to update the password.
    MasterUserSecretKmsKeyId string
    ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when manageMasterUserPassword is true. Can't be changed while manageMasterUserPassword is true; 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 the aws/secretsmanager key.
    MasterUserSecrets []TenantDatabaseMasterUserSecretArgs
    Secrets Manager secret for the master user password when manageMasterUserPassword is true. See masterUserSecret Block below.
    MasterUsername string
    Name of the master user for the tenant database.
    NcharCharacterSetName string
    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.
    SkipFinalSnapshot bool
    Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to false.
    Tags map[string]string

    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Note: One of manageMasterUserPassword, masterUserPassword, or masterUserPasswordWo is required by RDS when creating a tenant database.

    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    TenantDatabaseResourceId string
    Region-unique, immutable identifier of the tenant database.
    TenantDbName string

    Name of the tenant database. Changing it renames the tenant database.

    The following arguments are optional:

    Timeouts TenantDatabaseTimeoutsArgs
    arn string
    ARN of the tenant database.
    character_set_name string
    Character set of the tenant database. Defaults to AL32UTF8.
    db_instance_identifier string
    Identifier of the DB instance that contains the tenant database.
    final_snapshot_identifier string
    Name of the DB snapshot created when the tenant database is deleted. Required unless skipFinalSnapshot is true.
    manage_master_user_password bool
    Whether to manage the master user password with AWS Secrets Manager. When true, conflicts with masterUserPassword and masterUserPasswordWo. Turning it off requires one of them.
    master_user_password string
    Password for the master user. Stored in the Terraform state. Conflicts with masterUserPasswordWo.
    master_user_password_wo string
    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_password_wo_version number
    Version of masterUserPasswordWo. Change it to update the password.
    master_user_secret_kms_key_id string
    ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when manageMasterUserPassword is true. Can't be changed while manageMasterUserPassword is true; 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 the aws/secretsmanager key.
    master_user_secrets list(object)
    Secrets Manager secret for the master user password when manageMasterUserPassword is true. See masterUserSecret Block below.
    master_username string
    Name of the master user for the tenant database.
    nchar_character_set_name string
    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_snapshot bool
    Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to false.
    tags map(string)

    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Note: One of manageMasterUserPassword, masterUserPassword, or masterUserPasswordWo is required by RDS when creating a tenant database.

    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenant_database_resource_id string
    Region-unique, immutable identifier of the tenant database.
    tenant_db_name string

    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.
    characterSetName String
    Character set of the tenant database. Defaults to AL32UTF8.
    dbInstanceIdentifier String
    Identifier of the DB instance that contains the tenant database.
    finalSnapshotIdentifier String
    Name of the DB snapshot created when the tenant database is deleted. Required unless skipFinalSnapshot is true.
    manageMasterUserPassword Boolean
    Whether to manage the master user password with AWS Secrets Manager. When true, conflicts with masterUserPassword and masterUserPasswordWo. Turning it off requires one of them.
    masterUserPassword String
    Password for the master user. Stored in the Terraform state. Conflicts with masterUserPasswordWo.
    masterUserPasswordWo String
    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.
    masterUserPasswordWoVersion Integer
    Version of masterUserPasswordWo. Change it to update the password.
    masterUserSecretKmsKeyId String
    ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when manageMasterUserPassword is true. Can't be changed while manageMasterUserPassword is true; 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 the aws/secretsmanager key.
    masterUserSecrets List<TenantDatabaseMasterUserSecret>
    Secrets Manager secret for the master user password when manageMasterUserPassword is true. See masterUserSecret Block below.
    masterUsername String
    Name of the master user for the tenant database.
    ncharCharacterSetName String
    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.
    skipFinalSnapshot Boolean
    Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to false.
    tags Map<String,String>

    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Note: One of manageMasterUserPassword, masterUserPassword, or masterUserPasswordWo is required by RDS when creating a tenant database.

    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenantDatabaseResourceId String
    Region-unique, immutable identifier of the tenant database.
    tenantDbName String

    Name of the tenant database. Changing it renames the tenant database.

    The following arguments are optional:

    timeouts TenantDatabaseTimeouts
    arn string
    ARN of the tenant database.
    characterSetName string
    Character set of the tenant database. Defaults to AL32UTF8.
    dbInstanceIdentifier string
    Identifier of the DB instance that contains the tenant database.
    finalSnapshotIdentifier string
    Name of the DB snapshot created when the tenant database is deleted. Required unless skipFinalSnapshot is true.
    manageMasterUserPassword boolean
    Whether to manage the master user password with AWS Secrets Manager. When true, conflicts with masterUserPassword and masterUserPasswordWo. Turning it off requires one of them.
    masterUserPassword string
    Password for the master user. Stored in the Terraform state. Conflicts with masterUserPasswordWo.
    masterUserPasswordWo string
    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.
    masterUserPasswordWoVersion number
    Version of masterUserPasswordWo. Change it to update the password.
    masterUserSecretKmsKeyId string
    ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when manageMasterUserPassword is true. Can't be changed while manageMasterUserPassword is true; 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 the aws/secretsmanager key.
    masterUserSecrets TenantDatabaseMasterUserSecret[]
    Secrets Manager secret for the master user password when manageMasterUserPassword is true. See masterUserSecret Block below.
    masterUsername string
    Name of the master user for the tenant database.
    ncharCharacterSetName string
    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.
    skipFinalSnapshot boolean
    Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to false.
    tags {[key: string]: string}

    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Note: One of manageMasterUserPassword, masterUserPassword, or masterUserPasswordWo is required by RDS when creating a tenant database.

    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenantDatabaseResourceId string
    Region-unique, immutable identifier of the tenant database.
    tenantDbName string

    Name of the tenant database. Changing it renames the tenant database.

    The following arguments are optional:

    timeouts TenantDatabaseTimeouts
    arn str
    ARN of the tenant database.
    character_set_name str
    Character set of the tenant database. Defaults to AL32UTF8.
    db_instance_identifier str
    Identifier of the DB instance that contains the tenant database.
    final_snapshot_identifier str
    Name of the DB snapshot created when the tenant database is deleted. Required unless skipFinalSnapshot is true.
    manage_master_user_password bool
    Whether to manage the master user password with AWS Secrets Manager. When true, conflicts with masterUserPassword and masterUserPasswordWo. Turning it off requires one of them.
    master_user_password str
    Password for the master user. Stored in the Terraform state. Conflicts with masterUserPasswordWo.
    master_user_password_wo str
    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_password_wo_version int
    Version of masterUserPasswordWo. Change it to update the password.
    master_user_secret_kms_key_id str
    ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when manageMasterUserPassword is true. Can't be changed while manageMasterUserPassword is true; 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 the aws/secretsmanager key.
    master_user_secrets Sequence[TenantDatabaseMasterUserSecretArgs]
    Secrets Manager secret for the master user password when manageMasterUserPassword is true. See masterUserSecret Block below.
    master_username str
    Name of the master user for the tenant database.
    nchar_character_set_name str
    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_snapshot bool
    Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to false.
    tags Mapping[str, str]

    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Note: One of manageMasterUserPassword, masterUserPassword, or masterUserPasswordWo is required by RDS when creating a tenant database.

    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenant_database_resource_id str
    Region-unique, immutable identifier of the tenant database.
    tenant_db_name str

    Name of the tenant database. Changing it renames the tenant database.

    The following arguments are optional:

    timeouts TenantDatabaseTimeoutsArgs
    arn String
    ARN of the tenant database.
    characterSetName String
    Character set of the tenant database. Defaults to AL32UTF8.
    dbInstanceIdentifier String
    Identifier of the DB instance that contains the tenant database.
    finalSnapshotIdentifier String
    Name of the DB snapshot created when the tenant database is deleted. Required unless skipFinalSnapshot is true.
    manageMasterUserPassword Boolean
    Whether to manage the master user password with AWS Secrets Manager. When true, conflicts with masterUserPassword and masterUserPasswordWo. Turning it off requires one of them.
    masterUserPassword String
    Password for the master user. Stored in the Terraform state. Conflicts with masterUserPasswordWo.
    masterUserPasswordWo String
    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.
    masterUserPasswordWoVersion Number
    Version of masterUserPasswordWo. Change it to update the password.
    masterUserSecretKmsKeyId String
    ARN, ID, or alias of the AWS KMS key used to encrypt the Secrets Manager secret when manageMasterUserPassword is true. Can't be changed while manageMasterUserPassword is true; 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 the aws/secretsmanager key.
    masterUserSecrets List<Property Map>
    Secrets Manager secret for the master user password when manageMasterUserPassword is true. See masterUserSecret Block below.
    masterUsername String
    Name of the master user for the tenant database.
    ncharCharacterSetName String
    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.
    skipFinalSnapshot Boolean
    Whether to skip the final DB snapshot when the tenant database is deleted. Defaults to false.
    tags Map<String>

    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Note: One of manageMasterUserPassword, masterUserPassword, or masterUserPasswordWo is required by RDS when creating a tenant database.

    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    tenantDatabaseResourceId String
    Region-unique, immutable identifier of the tenant database.
    tenantDbName String

    Name of the tenant database. Changing it renames the tenant database.

    The following arguments are optional:

    timeouts Property Map

    Supporting Types

    TenantDatabaseMasterUserSecret, TenantDatabaseMasterUserSecretArgs

    KmsKeyId string
    ARN, ID, or alias of the AWS KMS key used to encrypt the secret.
    SecretArn string
    ARN of the secret.
    SecretStatus string
    Status of the secret.
    KmsKeyId string
    ARN, ID, or alias of the AWS KMS key used to encrypt the secret.
    SecretArn string
    ARN of the secret.
    SecretStatus string
    Status of the secret.
    kms_key_id string
    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.
    kmsKeyId String
    ARN, ID, or alias of the AWS KMS key used to encrypt the secret.
    secretArn String
    ARN of the secret.
    secretStatus String
    Status of the secret.
    kmsKeyId string
    ARN, ID, or alias of the AWS KMS key used to encrypt the secret.
    secretArn string
    ARN of the secret.
    secretStatus string
    Status of the secret.
    kms_key_id str
    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.
    kmsKeyId String
    ARN, ID, or alias of the AWS KMS key used to encrypt the secret.
    secretArn String
    ARN of the secret.
    secretStatus 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 aws Terraform Provider.
    aws logo aws logo
    Viewing docs for AWS v7.55.0
    published on Friday, Nov 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial