1. Packages
  2. Packages
  3. Databricks Provider
  4. API Docs
  5. PostgresDatabase
Viewing docs for Databricks v1.99.0
published on Wednesday, Jul 8, 2026 by Pulumi
databricks logo
Viewing docs for Databricks v1.99.0
published on Wednesday, Jul 8, 2026 by Pulumi

    Public Beta

    API Documentation

    Example Usage

    Managing Implicitly Created Database

    A database named databricks-postgres (Postgres name databricksPostgres) is implicitly created on every branch. Since Pulumi is declarative, managing an already-existing resource requires replaceExisting = true: it lets Pulumi represent the implicitly created database in Pulumi state and immediately apply the provided configuration to it.

    replaceExisting = true only affects the initial adoption. Once the database is in Pulumi state, it is managed like any other resource: removing it from your configuration and applying deletes the actual database (and its data), not just the state entry. This is unlike databricks.PostgresBranch, whose deletion is instead controlled by its parent project. To stop managing the database without deleting it, remove it from state with terraform state rm before removing it from your configuration.

    spec.role is optional: omit it to keep the database’s existing owner (as shown below). When you do set it — to change ownership — it must reference a role in the same branch, written as <branch-name>/roles/<role_id>.

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const _this = new databricks.PostgresProject("this", {
        projectId: "my-project",
        spec: {
            pgVersion: 17,
            displayName: "My Project",
        },
    });
    const production = new databricks.PostgresBranch("production", {
        branchId: "production",
        parent: _this.name,
        spec: {
            noExpiry: true,
        },
        replaceExisting: true,
    });
    const databricksPostgres = new databricks.PostgresDatabase("databricks_postgres", {
        databaseId: "databricks-postgres",
        parent: production.name,
        spec: {
            postgresDatabase: "databricks_postgres",
        },
        replaceExisting: true,
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    this = databricks.PostgresProject("this",
        project_id="my-project",
        spec={
            "pg_version": 17,
            "display_name": "My Project",
        })
    production = databricks.PostgresBranch("production",
        branch_id="production",
        parent=this.name,
        spec={
            "no_expiry": True,
        },
        replace_existing=True)
    databricks_postgres = databricks.PostgresDatabase("databricks_postgres",
        database_id="databricks-postgres",
        parent=production.name,
        spec={
            "postgres_database": "databricks_postgres",
        },
        replace_existing=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		this, err := databricks.NewPostgresProject(ctx, "this", &databricks.PostgresProjectArgs{
    			ProjectId: pulumi.String("my-project"),
    			Spec: &databricks.PostgresProjectSpecArgs{
    				PgVersion:   pulumi.Int(17),
    				DisplayName: pulumi.String("My Project"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		production, err := databricks.NewPostgresBranch(ctx, "production", &databricks.PostgresBranchArgs{
    			BranchId: pulumi.String("production"),
    			Parent:   this.Name,
    			Spec: &databricks.PostgresBranchSpecArgs{
    				NoExpiry: pulumi.Bool(true),
    			},
    			ReplaceExisting: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = databricks.NewPostgresDatabase(ctx, "databricks_postgres", &databricks.PostgresDatabaseArgs{
    			DatabaseId: pulumi.String("databricks-postgres"),
    			Parent:     production.Name,
    			Spec: &databricks.PostgresDatabaseSpecArgs{
    				PostgresDatabase: pulumi.String("databricks_postgres"),
    			},
    			ReplaceExisting: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = new Databricks.PostgresProject("this", new()
        {
            ProjectId = "my-project",
            Spec = new Databricks.Inputs.PostgresProjectSpecArgs
            {
                PgVersion = 17,
                DisplayName = "My Project",
            },
        });
    
        var production = new Databricks.PostgresBranch("production", new()
        {
            BranchId = "production",
            Parent = @this.Name,
            Spec = new Databricks.Inputs.PostgresBranchSpecArgs
            {
                NoExpiry = true,
            },
            ReplaceExisting = true,
        });
    
        var databricksPostgres = new Databricks.PostgresDatabase("databricks_postgres", new()
        {
            DatabaseId = "databricks-postgres",
            Parent = production.Name,
            Spec = new Databricks.Inputs.PostgresDatabaseSpecArgs
            {
                PostgresDatabase = "databricks_postgres",
            },
            ReplaceExisting = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.PostgresProject;
    import com.pulumi.databricks.PostgresProjectArgs;
    import com.pulumi.databricks.inputs.PostgresProjectSpecArgs;
    import com.pulumi.databricks.PostgresBranch;
    import com.pulumi.databricks.PostgresBranchArgs;
    import com.pulumi.databricks.inputs.PostgresBranchSpecArgs;
    import com.pulumi.databricks.PostgresDatabase;
    import com.pulumi.databricks.PostgresDatabaseArgs;
    import com.pulumi.databricks.inputs.PostgresDatabaseSpecArgs;
    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 this_ = new PostgresProject("this", PostgresProjectArgs.builder()
                .projectId("my-project")
                .spec(PostgresProjectSpecArgs.builder()
                    .pgVersion(17)
                    .displayName("My Project")
                    .build())
                .build());
    
            var production = new PostgresBranch("production", PostgresBranchArgs.builder()
                .branchId("production")
                .parent(this_.name())
                .spec(PostgresBranchSpecArgs.builder()
                    .noExpiry(true)
                    .build())
                .replaceExisting(true)
                .build());
    
            var databricksPostgres = new PostgresDatabase("databricksPostgres", PostgresDatabaseArgs.builder()
                .databaseId("databricks-postgres")
                .parent(production.name())
                .spec(PostgresDatabaseSpecArgs.builder()
                    .postgresDatabase("databricks_postgres")
                    .build())
                .replaceExisting(true)
                .build());
    
        }
    }
    
    resources:
      this:
        type: databricks:PostgresProject
        properties:
          projectId: my-project
          spec:
            pgVersion: 17
            displayName: My Project
      production:
        type: databricks:PostgresBranch
        properties:
          branchId: production
          parent: ${this.name}
          spec:
            noExpiry: true
          replaceExisting: true
      databricksPostgres:
        type: databricks:PostgresDatabase
        name: databricks_postgres
        properties:
          databaseId: databricks-postgres
          parent: ${production.name}
          spec:
            postgresDatabase: databricks_postgres
          replaceExisting: true
    
    pulumi {
      required_providers {
        databricks = {
          source = "pulumi/databricks"
        }
      }
    }
    
    resource "databricks_postgresproject" "this" {
      project_id = "my-project"
      spec = {
        pg_version   = 17
        display_name = "My Project"
      }
    }
    resource "databricks_postgresbranch" "production" {
      branch_id = "production"
      parent    = databricks_postgresproject.this.name
      spec = {
        no_expiry = true
      }
      replace_existing = true
    }
    resource "databricks_postgresdatabase" "databricks_postgres" {
      database_id = "databricks-postgres"
      parent      = databricks_postgresbranch.production.name
      spec = {
        postgres_database = "databricks_postgres"
      }
      replace_existing = true
    }
    

    Managing a Database Inherited by a Child Branch

    A child branch created from a source branch (via spec.source_branch) shares the source’s storage through copy-on-write, so every database on the source branch — including the implicit databricks-postgres database — already exists on the child at the branch point. These inherited databases are not created by Pulumi, so managing one requires replaceExisting = true, exactly as for the implicitly created database above.

    You typically adopt an inherited database when you want to manage its configuration (for example, transfer ownership via spec.role) on the child branch independently of the source.

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const child = new databricks.PostgresBranch("child", {
        branchId: "feature-x",
        parent: _this.name,
        spec: {
            sourceBranch: production.name,
            noExpiry: true,
        },
    });
    const inherited = new databricks.PostgresDatabase("inherited", {
        databaseId: "databricks-postgres",
        parent: child.name,
        spec: {
            postgresDatabase: "databricks_postgres",
        },
        replaceExisting: true,
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    child = databricks.PostgresBranch("child",
        branch_id="feature-x",
        parent=this["name"],
        spec={
            "source_branch": production["name"],
            "no_expiry": True,
        })
    inherited = databricks.PostgresDatabase("inherited",
        database_id="databricks-postgres",
        parent=child.name,
        spec={
            "postgres_database": "databricks_postgres",
        },
        replace_existing=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		child, err := databricks.NewPostgresBranch(ctx, "child", &databricks.PostgresBranchArgs{
    			BranchId: pulumi.String("feature-x"),
    			Parent:   pulumi.Any(this.Name),
    			Spec: &databricks.PostgresBranchSpecArgs{
    				SourceBranch: pulumi.Any(production.Name),
    				NoExpiry:     pulumi.Bool(true),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = databricks.NewPostgresDatabase(ctx, "inherited", &databricks.PostgresDatabaseArgs{
    			DatabaseId: pulumi.String("databricks-postgres"),
    			Parent:     child.Name,
    			Spec: &databricks.PostgresDatabaseSpecArgs{
    				PostgresDatabase: pulumi.String("databricks_postgres"),
    			},
    			ReplaceExisting: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var child = new Databricks.PostgresBranch("child", new()
        {
            BranchId = "feature-x",
            Parent = @this.Name,
            Spec = new Databricks.Inputs.PostgresBranchSpecArgs
            {
                SourceBranch = production.Name,
                NoExpiry = true,
            },
        });
    
        var inherited = new Databricks.PostgresDatabase("inherited", new()
        {
            DatabaseId = "databricks-postgres",
            Parent = child.Name,
            Spec = new Databricks.Inputs.PostgresDatabaseSpecArgs
            {
                PostgresDatabase = "databricks_postgres",
            },
            ReplaceExisting = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.PostgresBranch;
    import com.pulumi.databricks.PostgresBranchArgs;
    import com.pulumi.databricks.inputs.PostgresBranchSpecArgs;
    import com.pulumi.databricks.PostgresDatabase;
    import com.pulumi.databricks.PostgresDatabaseArgs;
    import com.pulumi.databricks.inputs.PostgresDatabaseSpecArgs;
    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 child = new PostgresBranch("child", PostgresBranchArgs.builder()
                .branchId("feature-x")
                .parent(this_.name())
                .spec(PostgresBranchSpecArgs.builder()
                    .sourceBranch(production.name())
                    .noExpiry(true)
                    .build())
                .build());
    
            var inherited = new PostgresDatabase("inherited", PostgresDatabaseArgs.builder()
                .databaseId("databricks-postgres")
                .parent(child.name())
                .spec(PostgresDatabaseSpecArgs.builder()
                    .postgresDatabase("databricks_postgres")
                    .build())
                .replaceExisting(true)
                .build());
    
        }
    }
    
    resources:
      child:
        type: databricks:PostgresBranch
        properties:
          branchId: feature-x
          parent: ${this.name}
          spec:
            sourceBranch: ${production.name}
            noExpiry: true
      inherited:
        type: databricks:PostgresDatabase
        properties:
          databaseId: databricks-postgres
          parent: ${child.name}
          spec:
            postgresDatabase: databricks_postgres
          replaceExisting: true
    
    pulumi {
      required_providers {
        databricks = {
          source = "pulumi/databricks"
        }
      }
    }
    
    resource "databricks_postgresbranch" "child" {
      branch_id = "feature-x"
      parent    = this.name
      spec = {
        source_branch = production.name
        no_expiry     = true
      }
    }
    resource "databricks_postgresdatabase" "inherited" {
      database_id = "databricks-postgres"
      parent      = databricks_postgresbranch.child.name
      spec = {
        postgres_database = "databricks_postgres"
      }
      replace_existing = true
    }
    

    Database Owned by a Specific Role

    Assign ownership to a role you manage alongside the database. The Postgres database will be created with the specified role as its owner.

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const appOwner = new databricks.PostgresRole("app_owner", {
        roleId: "app-owner",
        parent: main.name,
        spec: {
            postgresRole: "app_owner",
        },
    });
    const app = new databricks.PostgresDatabase("app", {
        databaseId: "app",
        parent: main.name,
        spec: {
            postgresDatabase: "app",
            role: appOwner.name,
        },
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    app_owner = databricks.PostgresRole("app_owner",
        role_id="app-owner",
        parent=main["name"],
        spec={
            "postgres_role": "app_owner",
        })
    app = databricks.PostgresDatabase("app",
        database_id="app",
        parent=main["name"],
        spec={
            "postgres_database": "app",
            "role": app_owner.name,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		appOwner, err := databricks.NewPostgresRole(ctx, "app_owner", &databricks.PostgresRoleArgs{
    			RoleId: pulumi.String("app-owner"),
    			Parent: pulumi.Any(main.Name),
    			Spec: &databricks.PostgresRoleSpecArgs{
    				PostgresRole: pulumi.String("app_owner"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = databricks.NewPostgresDatabase(ctx, "app", &databricks.PostgresDatabaseArgs{
    			DatabaseId: pulumi.String("app"),
    			Parent:     pulumi.Any(main.Name),
    			Spec: &databricks.PostgresDatabaseSpecArgs{
    				PostgresDatabase: pulumi.String("app"),
    				Role:             appOwner.Name,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var appOwner = new Databricks.PostgresRole("app_owner", new()
        {
            RoleId = "app-owner",
            Parent = main.Name,
            Spec = new Databricks.Inputs.PostgresRoleSpecArgs
            {
                PostgresRole = "app_owner",
            },
        });
    
        var app = new Databricks.PostgresDatabase("app", new()
        {
            DatabaseId = "app",
            Parent = main.Name,
            Spec = new Databricks.Inputs.PostgresDatabaseSpecArgs
            {
                PostgresDatabase = "app",
                Role = appOwner.Name,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.PostgresRole;
    import com.pulumi.databricks.PostgresRoleArgs;
    import com.pulumi.databricks.inputs.PostgresRoleSpecArgs;
    import com.pulumi.databricks.PostgresDatabase;
    import com.pulumi.databricks.PostgresDatabaseArgs;
    import com.pulumi.databricks.inputs.PostgresDatabaseSpecArgs;
    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 appOwner = new PostgresRole("appOwner", PostgresRoleArgs.builder()
                .roleId("app-owner")
                .parent(main.name())
                .spec(PostgresRoleSpecArgs.builder()
                    .postgresRole("app_owner")
                    .build())
                .build());
    
            var app = new PostgresDatabase("app", PostgresDatabaseArgs.builder()
                .databaseId("app")
                .parent(main.name())
                .spec(PostgresDatabaseSpecArgs.builder()
                    .postgresDatabase("app")
                    .role(appOwner.name())
                    .build())
                .build());
    
        }
    }
    
    resources:
      appOwner:
        type: databricks:PostgresRole
        name: app_owner
        properties:
          roleId: app-owner
          parent: ${main.name}
          spec:
            postgresRole: app_owner
      app:
        type: databricks:PostgresDatabase
        properties:
          databaseId: app
          parent: ${main.name}
          spec:
            postgresDatabase: app
            role: ${appOwner.name}
    
    pulumi {
      required_providers {
        databricks = {
          source = "pulumi/databricks"
        }
      }
    }
    
    resource "databricks_postgresrole" "app_owner" {
      role_id = "app-owner"
      parent  = main.name
      spec = {
        postgres_role = "app_owner"
      }
    }
    resource "databricks_postgresdatabase" "app" {
      database_id = "app"
      parent      = main.name
      spec = {
        postgres_database = "app"
        role              = databricks_postgresrole.app_owner.name
      }
    }
    

    Renaming a Database

    Changing spec.postgres_database renames the underlying Postgres database without replacing the resource. The resource identifier (databaseId) is separate from the Postgres database name, and stays intact in the example below.

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const analytics = new databricks.PostgresDatabase("analytics", {
        databaseId: "analytics",
        parent: main.name,
        spec: {
            postgresDatabase: "analytics_v2",
        },
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    analytics = databricks.PostgresDatabase("analytics",
        database_id="analytics",
        parent=main["name"],
        spec={
            "postgres_database": "analytics_v2",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databricks.NewPostgresDatabase(ctx, "analytics", &databricks.PostgresDatabaseArgs{
    			DatabaseId: pulumi.String("analytics"),
    			Parent:     pulumi.Any(main.Name),
    			Spec: &databricks.PostgresDatabaseSpecArgs{
    				PostgresDatabase: pulumi.String("analytics_v2"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var analytics = new Databricks.PostgresDatabase("analytics", new()
        {
            DatabaseId = "analytics",
            Parent = main.Name,
            Spec = new Databricks.Inputs.PostgresDatabaseSpecArgs
            {
                PostgresDatabase = "analytics_v2",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.PostgresDatabase;
    import com.pulumi.databricks.PostgresDatabaseArgs;
    import com.pulumi.databricks.inputs.PostgresDatabaseSpecArgs;
    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 analytics = new PostgresDatabase("analytics", PostgresDatabaseArgs.builder()
                .databaseId("analytics")
                .parent(main.name())
                .spec(PostgresDatabaseSpecArgs.builder()
                    .postgresDatabase("analytics_v2")
                    .build())
                .build());
    
        }
    }
    
    resources:
      analytics:
        type: databricks:PostgresDatabase
        properties:
          databaseId: analytics
          parent: ${main.name}
          spec:
            postgresDatabase: analytics_v2
    
    pulumi {
      required_providers {
        databricks = {
          source = "pulumi/databricks"
        }
      }
    }
    
    resource "databricks_postgresdatabase" "analytics" {
      database_id = "analytics"
      parent      = main.name
      spec = {
        postgres_database = "analytics_v2"
      }
    }
    

    Multiple databases in a branch

    By default, Pulumi creates resources in parallel if the dependency graph allows for that. However, Lakebase doesn’t allow the parallel management of resource inside a single branch. Only one of these resources can be created at a time:

    • Role
    • Database
    • Endpoint

    If you try to create resources in parallel, you’ll see a conflict error like:

    Your project already has conflicting operations in progress. Please wait until they are complete, and then try again.

    Pulumi serializes automatically when one resource references another, forming an edge in the dependency graph. For example, if a database’s spec.role points at a role, Pulumi creates the role before the database. For resources that don’t reference each other, like two sibling databases in the same branch, add dependsOn so Pulumi knows to wait for complete creation of the first resource, before starting the creation of the second one.

    For example:

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const schemaOwner = new databricks.PostgresRole("schema_owner", {
        roleId: "schemamigrator",
        parent: test.name,
        spec: {
            postgresRole: "schemamigrator",
            membershipRoles: ["DATABRICKS_SUPERUSER"],
        },
    });
    const application1 = new databricks.PostgresDatabase("application1", {
        databaseId: "application1",
        parent: test.name,
        spec: {
            postgresDatabase: "application1",
            role: schemaOwner.name,
        },
    });
    const application2 = new databricks.PostgresDatabase("application2", {
        databaseId: "application2",
        parent: test.name,
        spec: {
            postgresDatabase: "application2",
            role: schemaOwner.name,
        },
    }, {
        dependsOn: [application1],
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    schema_owner = databricks.PostgresRole("schema_owner",
        role_id="schemamigrator",
        parent=test["name"],
        spec={
            "postgres_role": "schemamigrator",
            "membership_roles": ["DATABRICKS_SUPERUSER"],
        })
    application1 = databricks.PostgresDatabase("application1",
        database_id="application1",
        parent=test["name"],
        spec={
            "postgres_database": "application1",
            "role": schema_owner.name,
        })
    application2 = databricks.PostgresDatabase("application2",
        database_id="application2",
        parent=test["name"],
        spec={
            "postgres_database": "application2",
            "role": schema_owner.name,
        },
        opts = pulumi.ResourceOptions(depends_on=[application1]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		schemaOwner, err := databricks.NewPostgresRole(ctx, "schema_owner", &databricks.PostgresRoleArgs{
    			RoleId: pulumi.String("schemamigrator"),
    			Parent: pulumi.Any(test.Name),
    			Spec: &databricks.PostgresRoleSpecArgs{
    				PostgresRole: pulumi.String("schemamigrator"),
    				MembershipRoles: pulumi.StringArray{
    					pulumi.String("DATABRICKS_SUPERUSER"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		application1, err := databricks.NewPostgresDatabase(ctx, "application1", &databricks.PostgresDatabaseArgs{
    			DatabaseId: pulumi.String("application1"),
    			Parent:     pulumi.Any(test.Name),
    			Spec: &databricks.PostgresDatabaseSpecArgs{
    				PostgresDatabase: pulumi.String("application1"),
    				Role:             schemaOwner.Name,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = databricks.NewPostgresDatabase(ctx, "application2", &databricks.PostgresDatabaseArgs{
    			DatabaseId: pulumi.String("application2"),
    			Parent:     pulumi.Any(test.Name),
    			Spec: &databricks.PostgresDatabaseSpecArgs{
    				PostgresDatabase: pulumi.String("application2"),
    				Role:             schemaOwner.Name,
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			application1,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var schemaOwner = new Databricks.PostgresRole("schema_owner", new()
        {
            RoleId = "schemamigrator",
            Parent = test.Name,
            Spec = new Databricks.Inputs.PostgresRoleSpecArgs
            {
                PostgresRole = "schemamigrator",
                MembershipRoles = new[]
                {
                    "DATABRICKS_SUPERUSER",
                },
            },
        });
    
        var application1 = new Databricks.PostgresDatabase("application1", new()
        {
            DatabaseId = "application1",
            Parent = test.Name,
            Spec = new Databricks.Inputs.PostgresDatabaseSpecArgs
            {
                PostgresDatabase = "application1",
                Role = schemaOwner.Name,
            },
        });
    
        var application2 = new Databricks.PostgresDatabase("application2", new()
        {
            DatabaseId = "application2",
            Parent = test.Name,
            Spec = new Databricks.Inputs.PostgresDatabaseSpecArgs
            {
                PostgresDatabase = "application2",
                Role = schemaOwner.Name,
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                application1,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.PostgresRole;
    import com.pulumi.databricks.PostgresRoleArgs;
    import com.pulumi.databricks.inputs.PostgresRoleSpecArgs;
    import com.pulumi.databricks.PostgresDatabase;
    import com.pulumi.databricks.PostgresDatabaseArgs;
    import com.pulumi.databricks.inputs.PostgresDatabaseSpecArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 schemaOwner = new PostgresRole("schemaOwner", PostgresRoleArgs.builder()
                .roleId("schemamigrator")
                .parent(test.name())
                .spec(PostgresRoleSpecArgs.builder()
                    .postgresRole("schemamigrator")
                    .membershipRoles("DATABRICKS_SUPERUSER")
                    .build())
                .build());
    
            var application1 = new PostgresDatabase("application1", PostgresDatabaseArgs.builder()
                .databaseId("application1")
                .parent(test.name())
                .spec(PostgresDatabaseSpecArgs.builder()
                    .postgresDatabase("application1")
                    .role(schemaOwner.name())
                    .build())
                .build());
    
            var application2 = new PostgresDatabase("application2", PostgresDatabaseArgs.builder()
                .databaseId("application2")
                .parent(test.name())
                .spec(PostgresDatabaseSpecArgs.builder()
                    .postgresDatabase("application2")
                    .role(schemaOwner.name())
                    .build())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(application1)
                    .build());
    
        }
    }
    
    resources:
      schemaOwner:
        type: databricks:PostgresRole
        name: schema_owner
        properties:
          roleId: schemamigrator
          parent: ${test.name}
          spec:
            postgresRole: schemamigrator
            membershipRoles:
              - DATABRICKS_SUPERUSER
      application1:
        type: databricks:PostgresDatabase
        properties:
          databaseId: application1
          parent: ${test.name}
          spec:
            postgresDatabase: application1
            role: ${schemaOwner.name}
      application2:
        type: databricks:PostgresDatabase
        properties:
          databaseId: application2
          parent: ${test.name}
          spec:
            postgresDatabase: application2
            role: ${schemaOwner.name}
        options:
          dependsOn:
            - ${application1}
    
    pulumi {
      required_providers {
        databricks = {
          source = "pulumi/databricks"
        }
      }
    }
    
    resource "databricks_postgresrole" "schema_owner" {
      role_id = "schemamigrator"
      parent  = test.name
      spec = {
        postgres_role    = "schemamigrator"
        membership_roles = ["DATABRICKS_SUPERUSER"]
      }
    }
    resource "databricks_postgresdatabase" "application1" {
      database_id = "application1"
      parent      = test.name
      spec = {
        postgres_database = "application1"
        role              = databricks_postgresrole.schema_owner.name
      }
    }
    resource "databricks_postgresdatabase" "application2" {
      depends_on  = [databricks_postgresdatabase.application1]
      database_id = "application2"
      parent      = test.name
      spec = {
        postgres_database = "application2"
        role              = databricks_postgresrole.schema_owner.name
      }
    }
    

    Create PostgresDatabase Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PostgresDatabase(name: string, args: PostgresDatabaseArgs, opts?: CustomResourceOptions);
    @overload
    def PostgresDatabase(resource_name: str,
                         args: PostgresDatabaseArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def PostgresDatabase(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         parent: Optional[str] = None,
                         database_id: Optional[str] = None,
                         provider_config: Optional[PostgresDatabaseProviderConfigArgs] = None,
                         replace_existing: Optional[bool] = None,
                         spec: Optional[PostgresDatabaseSpecArgs] = None)
    func NewPostgresDatabase(ctx *Context, name string, args PostgresDatabaseArgs, opts ...ResourceOption) (*PostgresDatabase, error)
    public PostgresDatabase(string name, PostgresDatabaseArgs args, CustomResourceOptions? opts = null)
    public PostgresDatabase(String name, PostgresDatabaseArgs args)
    public PostgresDatabase(String name, PostgresDatabaseArgs args, CustomResourceOptions options)
    
    type: databricks:PostgresDatabase
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "databricks_postgresdatabase" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args PostgresDatabaseArgs
    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 PostgresDatabaseArgs
    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 PostgresDatabaseArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PostgresDatabaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PostgresDatabaseArgs
    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 postgresDatabaseResource = new Databricks.PostgresDatabase("postgresDatabaseResource", new()
    {
        Parent = "string",
        DatabaseId = "string",
        ProviderConfig = new Databricks.Inputs.PostgresDatabaseProviderConfigArgs
        {
            WorkspaceId = "string",
        },
        ReplaceExisting = false,
        Spec = new Databricks.Inputs.PostgresDatabaseSpecArgs
        {
            PostgresDatabase = "string",
            Role = "string",
        },
    });
    
    example, err := databricks.NewPostgresDatabase(ctx, "postgresDatabaseResource", &databricks.PostgresDatabaseArgs{
    	Parent:     pulumi.String("string"),
    	DatabaseId: pulumi.String("string"),
    	ProviderConfig: &databricks.PostgresDatabaseProviderConfigArgs{
    		WorkspaceId: pulumi.String("string"),
    	},
    	ReplaceExisting: pulumi.Bool(false),
    	Spec: &databricks.PostgresDatabaseSpecArgs{
    		PostgresDatabase: pulumi.String("string"),
    		Role:             pulumi.String("string"),
    	},
    })
    
    resource "databricks_postgresdatabase" "postgresDatabaseResource" {
      parent      = "string"
      database_id = "string"
      provider_config = {
        workspace_id = "string"
      }
      replace_existing = false
      spec = {
        postgres_database = "string"
        role              = "string"
      }
    }
    
    var postgresDatabaseResource = new PostgresDatabase("postgresDatabaseResource", PostgresDatabaseArgs.builder()
        .parent("string")
        .databaseId("string")
        .providerConfig(PostgresDatabaseProviderConfigArgs.builder()
            .workspaceId("string")
            .build())
        .replaceExisting(false)
        .spec(PostgresDatabaseSpecArgs.builder()
            .postgresDatabase("string")
            .role("string")
            .build())
        .build());
    
    postgres_database_resource = databricks.PostgresDatabase("postgresDatabaseResource",
        parent="string",
        database_id="string",
        provider_config={
            "workspace_id": "string",
        },
        replace_existing=False,
        spec={
            "postgres_database": "string",
            "role": "string",
        })
    
    const postgresDatabaseResource = new databricks.PostgresDatabase("postgresDatabaseResource", {
        parent: "string",
        databaseId: "string",
        providerConfig: {
            workspaceId: "string",
        },
        replaceExisting: false,
        spec: {
            postgresDatabase: "string",
            role: "string",
        },
    });
    
    type: databricks:PostgresDatabase
    properties:
        databaseId: string
        parent: string
        providerConfig:
            workspaceId: string
        replaceExisting: false
        spec:
            postgresDatabase: string
            role: string
    

    PostgresDatabase 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 PostgresDatabase resource accepts the following input properties:

    Parent string
    The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    DatabaseId string
    (string) - Part of the resource name
    ProviderConfig PostgresDatabaseProviderConfig
    Configure the provider for management through account provider.
    ReplaceExisting bool
    If true, update the database if it already exists instead of returning an error
    Spec PostgresDatabaseSpec
    The desired state of the Database
    Parent string
    The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    DatabaseId string
    (string) - Part of the resource name
    ProviderConfig PostgresDatabaseProviderConfigArgs
    Configure the provider for management through account provider.
    ReplaceExisting bool
    If true, update the database if it already exists instead of returning an error
    Spec PostgresDatabaseSpecArgs
    The desired state of the Database
    parent string
    The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    database_id string
    (string) - Part of the resource name
    provider_config object
    Configure the provider for management through account provider.
    replace_existing bool
    If true, update the database if it already exists instead of returning an error
    spec object
    The desired state of the Database
    parent String
    The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    databaseId String
    (string) - Part of the resource name
    providerConfig PostgresDatabaseProviderConfig
    Configure the provider for management through account provider.
    replaceExisting Boolean
    If true, update the database if it already exists instead of returning an error
    spec PostgresDatabaseSpec
    The desired state of the Database
    parent string
    The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    databaseId string
    (string) - Part of the resource name
    providerConfig PostgresDatabaseProviderConfig
    Configure the provider for management through account provider.
    replaceExisting boolean
    If true, update the database if it already exists instead of returning an error
    spec PostgresDatabaseSpec
    The desired state of the Database
    parent str
    The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    database_id str
    (string) - Part of the resource name
    provider_config PostgresDatabaseProviderConfigArgs
    Configure the provider for management through account provider.
    replace_existing bool
    If true, update the database if it already exists instead of returning an error
    spec PostgresDatabaseSpecArgs
    The desired state of the Database
    parent String
    The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    databaseId String
    (string) - Part of the resource name
    providerConfig Property Map
    Configure the provider for management through account provider.
    replaceExisting Boolean
    If true, update the database if it already exists instead of returning an error
    spec Property Map
    The desired state of the Database

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PostgresDatabase resource produces the following output properties:

    CreateTime string
    (string) - A timestamp indicating when the database was created
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    Status PostgresDatabaseStatus
    (DatabaseDatabaseStatus) - The observed state of the Database
    UpdateTime string
    (string) - A timestamp indicating when the database was last updated
    CreateTime string
    (string) - A timestamp indicating when the database was created
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    Status PostgresDatabaseStatus
    (DatabaseDatabaseStatus) - The observed state of the Database
    UpdateTime string
    (string) - A timestamp indicating when the database was last updated
    create_time string
    (string) - A timestamp indicating when the database was created
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    status object
    (DatabaseDatabaseStatus) - The observed state of the Database
    update_time string
    (string) - A timestamp indicating when the database was last updated
    createTime String
    (string) - A timestamp indicating when the database was created
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    status PostgresDatabaseStatus
    (DatabaseDatabaseStatus) - The observed state of the Database
    updateTime String
    (string) - A timestamp indicating when the database was last updated
    createTime string
    (string) - A timestamp indicating when the database was created
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    status PostgresDatabaseStatus
    (DatabaseDatabaseStatus) - The observed state of the Database
    updateTime string
    (string) - A timestamp indicating when the database was last updated
    create_time str
    (string) - A timestamp indicating when the database was created
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    status PostgresDatabaseStatus
    (DatabaseDatabaseStatus) - The observed state of the Database
    update_time str
    (string) - A timestamp indicating when the database was last updated
    createTime String
    (string) - A timestamp indicating when the database was created
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    status Property Map
    (DatabaseDatabaseStatus) - The observed state of the Database
    updateTime String
    (string) - A timestamp indicating when the database was last updated

    Look up Existing PostgresDatabase Resource

    Get an existing PostgresDatabase 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?: PostgresDatabaseState, opts?: CustomResourceOptions): PostgresDatabase
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            database_id: Optional[str] = None,
            name: Optional[str] = None,
            parent: Optional[str] = None,
            provider_config: Optional[PostgresDatabaseProviderConfigArgs] = None,
            replace_existing: Optional[bool] = None,
            spec: Optional[PostgresDatabaseSpecArgs] = None,
            status: Optional[PostgresDatabaseStatusArgs] = None,
            update_time: Optional[str] = None) -> PostgresDatabase
    func GetPostgresDatabase(ctx *Context, name string, id IDInput, state *PostgresDatabaseState, opts ...ResourceOption) (*PostgresDatabase, error)
    public static PostgresDatabase Get(string name, Input<string> id, PostgresDatabaseState? state, CustomResourceOptions? opts = null)
    public static PostgresDatabase get(String name, Output<String> id, PostgresDatabaseState state, CustomResourceOptions options)
    resources:  _:    type: databricks:PostgresDatabase    get:      id: ${id}
    import {
      to = databricks_postgresdatabase.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreateTime string
    (string) - A timestamp indicating when the database was created
    DatabaseId string
    (string) - Part of the resource name
    Name string
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    Parent string
    The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    ProviderConfig PostgresDatabaseProviderConfig
    Configure the provider for management through account provider.
    ReplaceExisting bool
    If true, update the database if it already exists instead of returning an error
    Spec PostgresDatabaseSpec
    The desired state of the Database
    Status PostgresDatabaseStatus
    (DatabaseDatabaseStatus) - The observed state of the Database
    UpdateTime string
    (string) - A timestamp indicating when the database was last updated
    CreateTime string
    (string) - A timestamp indicating when the database was created
    DatabaseId string
    (string) - Part of the resource name
    Name string
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    Parent string
    The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    ProviderConfig PostgresDatabaseProviderConfigArgs
    Configure the provider for management through account provider.
    ReplaceExisting bool
    If true, update the database if it already exists instead of returning an error
    Spec PostgresDatabaseSpecArgs
    The desired state of the Database
    Status PostgresDatabaseStatusArgs
    (DatabaseDatabaseStatus) - The observed state of the Database
    UpdateTime string
    (string) - A timestamp indicating when the database was last updated
    create_time string
    (string) - A timestamp indicating when the database was created
    database_id string
    (string) - Part of the resource name
    name string
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    parent string
    The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    provider_config object
    Configure the provider for management through account provider.
    replace_existing bool
    If true, update the database if it already exists instead of returning an error
    spec object
    The desired state of the Database
    status object
    (DatabaseDatabaseStatus) - The observed state of the Database
    update_time string
    (string) - A timestamp indicating when the database was last updated
    createTime String
    (string) - A timestamp indicating when the database was created
    databaseId String
    (string) - Part of the resource name
    name String
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    parent String
    The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    providerConfig PostgresDatabaseProviderConfig
    Configure the provider for management through account provider.
    replaceExisting Boolean
    If true, update the database if it already exists instead of returning an error
    spec PostgresDatabaseSpec
    The desired state of the Database
    status PostgresDatabaseStatus
    (DatabaseDatabaseStatus) - The observed state of the Database
    updateTime String
    (string) - A timestamp indicating when the database was last updated
    createTime string
    (string) - A timestamp indicating when the database was created
    databaseId string
    (string) - Part of the resource name
    name string
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    parent string
    The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    providerConfig PostgresDatabaseProviderConfig
    Configure the provider for management through account provider.
    replaceExisting boolean
    If true, update the database if it already exists instead of returning an error
    spec PostgresDatabaseSpec
    The desired state of the Database
    status PostgresDatabaseStatus
    (DatabaseDatabaseStatus) - The observed state of the Database
    updateTime string
    (string) - A timestamp indicating when the database was last updated
    create_time str
    (string) - A timestamp indicating when the database was created
    database_id str
    (string) - Part of the resource name
    name str
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    parent str
    The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    provider_config PostgresDatabaseProviderConfigArgs
    Configure the provider for management through account provider.
    replace_existing bool
    If true, update the database if it already exists instead of returning an error
    spec PostgresDatabaseSpecArgs
    The desired state of the Database
    status PostgresDatabaseStatusArgs
    (DatabaseDatabaseStatus) - The observed state of the Database
    update_time str
    (string) - A timestamp indicating when the database was last updated
    createTime String
    (string) - A timestamp indicating when the database was created
    databaseId String
    (string) - Part of the resource name
    name String
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    parent String
    The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    providerConfig Property Map
    Configure the provider for management through account provider.
    replaceExisting Boolean
    If true, update the database if it already exists instead of returning an error
    spec Property Map
    The desired state of the Database
    status Property Map
    (DatabaseDatabaseStatus) - The observed state of the Database
    updateTime String
    (string) - A timestamp indicating when the database was last updated

    Supporting Types

    PostgresDatabaseProviderConfig, PostgresDatabaseProviderConfigArgs

    WorkspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    WorkspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspace_id string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId String
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspace_id str
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId String
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.

    PostgresDatabaseSpec, PostgresDatabaseSpecArgs

    PostgresDatabase string
    Role string
    PostgresDatabase string
    Role string
    postgres_database string
    role string
    postgresDatabase String
    role String
    postgresDatabase string
    role string
    postgresDatabase String
    role String

    PostgresDatabaseStatus, PostgresDatabaseStatusArgs

    DatabaseId string
    (string) - Part of the resource name
    PostgresDatabase string
    Role string
    DatabaseId string
    (string) - Part of the resource name
    PostgresDatabase string
    Role string
    database_id string
    (string) - Part of the resource name
    postgres_database string
    role string
    databaseId String
    (string) - Part of the resource name
    postgresDatabase String
    role String
    databaseId string
    (string) - Part of the resource name
    postgresDatabase string
    role string
    database_id str
    (string) - Part of the resource name
    postgres_database str
    role str
    databaseId String
    (string) - Part of the resource name
    postgresDatabase String
    role String

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Viewing docs for Databricks v1.99.0
    published on Wednesday, Jul 8, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial