published on Friday, May 1, 2026 by Pulumi
published on Friday, May 1, 2026 by Pulumi
Create PostgresCatalog Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PostgresCatalog(name: string, args: PostgresCatalogArgs, opts?: CustomResourceOptions);@overload
def PostgresCatalog(resource_name: str,
args: PostgresCatalogArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PostgresCatalog(resource_name: str,
opts: Optional[ResourceOptions] = None,
catalog_id: Optional[str] = None,
provider_config: Optional[PostgresCatalogProviderConfigArgs] = None,
spec: Optional[PostgresCatalogSpecArgs] = None)func NewPostgresCatalog(ctx *Context, name string, args PostgresCatalogArgs, opts ...ResourceOption) (*PostgresCatalog, error)public PostgresCatalog(string name, PostgresCatalogArgs args, CustomResourceOptions? opts = null)
public PostgresCatalog(String name, PostgresCatalogArgs args)
public PostgresCatalog(String name, PostgresCatalogArgs args, CustomResourceOptions options)
type: databricks:PostgresCatalog
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PostgresCatalogArgs
- 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 PostgresCatalogArgs
- 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 PostgresCatalogArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PostgresCatalogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PostgresCatalogArgs
- 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 postgresCatalogResource = new Databricks.PostgresCatalog("postgresCatalogResource", new()
{
CatalogId = "string",
ProviderConfig = new Databricks.Inputs.PostgresCatalogProviderConfigArgs
{
WorkspaceId = "string",
},
Spec = new Databricks.Inputs.PostgresCatalogSpecArgs
{
PostgresDatabase = "string",
Branch = "string",
CreateDatabaseIfMissing = false,
},
});
example, err := databricks.NewPostgresCatalog(ctx, "postgresCatalogResource", &databricks.PostgresCatalogArgs{
CatalogId: pulumi.String("string"),
ProviderConfig: &databricks.PostgresCatalogProviderConfigArgs{
WorkspaceId: pulumi.String("string"),
},
Spec: &databricks.PostgresCatalogSpecArgs{
PostgresDatabase: pulumi.String("string"),
Branch: pulumi.String("string"),
CreateDatabaseIfMissing: pulumi.Bool(false),
},
})
var postgresCatalogResource = new PostgresCatalog("postgresCatalogResource", PostgresCatalogArgs.builder()
.catalogId("string")
.providerConfig(PostgresCatalogProviderConfigArgs.builder()
.workspaceId("string")
.build())
.spec(PostgresCatalogSpecArgs.builder()
.postgresDatabase("string")
.branch("string")
.createDatabaseIfMissing(false)
.build())
.build());
postgres_catalog_resource = databricks.PostgresCatalog("postgresCatalogResource",
catalog_id="string",
provider_config={
"workspace_id": "string",
},
spec={
"postgres_database": "string",
"branch": "string",
"create_database_if_missing": False,
})
const postgresCatalogResource = new databricks.PostgresCatalog("postgresCatalogResource", {
catalogId: "string",
providerConfig: {
workspaceId: "string",
},
spec: {
postgresDatabase: "string",
branch: "string",
createDatabaseIfMissing: false,
},
});
type: databricks:PostgresCatalog
properties:
catalogId: string
providerConfig:
workspaceId: string
spec:
branch: string
createDatabaseIfMissing: false
postgresDatabase: string
PostgresCatalog 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 PostgresCatalog resource accepts the following input properties:
- Catalog
Id string - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- Provider
Config PostgresCatalog Provider Config - Configure the provider for management through account provider.
- Spec
Postgres
Catalog Spec - The desired state of the Catalog
- Catalog
Id string - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- Provider
Config PostgresCatalog Provider Config Args - Configure the provider for management through account provider.
- Spec
Postgres
Catalog Spec Args - The desired state of the Catalog
- catalog
Id String - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- provider
Config PostgresCatalog Provider Config - Configure the provider for management through account provider.
- spec
Postgres
Catalog Spec - The desired state of the Catalog
- catalog
Id string - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- provider
Config PostgresCatalog Provider Config - Configure the provider for management through account provider.
- spec
Postgres
Catalog Spec - The desired state of the Catalog
- catalog_
id str - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- provider_
config PostgresCatalog Provider Config Args - Configure the provider for management through account provider.
- spec
Postgres
Catalog Spec Args - The desired state of the Catalog
- catalog
Id String - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- provider
Config Property Map - Configure the provider for management through account provider.
- spec Property Map
- The desired state of the Catalog
Outputs
All input properties are implicitly available as output properties. Additionally, the PostgresCatalog resource produces the following output properties:
- Create
Time string - (string) - A timestamp indicating when the catalog was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (string) - Output only. The full resource path of the catalog.
- Status
Postgres
Catalog Status - (CatalogCatalogStatus) - The observed state of the Catalog
- Uid string
- (string) - System-generated unique identifier for the catalog
- Update
Time string - (string) - A timestamp indicating when the catalog was last updated
- Create
Time string - (string) - A timestamp indicating when the catalog was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (string) - Output only. The full resource path of the catalog.
- Status
Postgres
Catalog Status - (CatalogCatalogStatus) - The observed state of the Catalog
- Uid string
- (string) - System-generated unique identifier for the catalog
- Update
Time string - (string) - A timestamp indicating when the catalog was last updated
- create
Time String - (string) - A timestamp indicating when the catalog was created
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- (string) - Output only. The full resource path of the catalog.
- status
Postgres
Catalog Status - (CatalogCatalogStatus) - The observed state of the Catalog
- uid String
- (string) - System-generated unique identifier for the catalog
- update
Time String - (string) - A timestamp indicating when the catalog was last updated
- create
Time string - (string) - A timestamp indicating when the catalog was created
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- (string) - Output only. The full resource path of the catalog.
- status
Postgres
Catalog Status - (CatalogCatalogStatus) - The observed state of the Catalog
- uid string
- (string) - System-generated unique identifier for the catalog
- update
Time string - (string) - A timestamp indicating when the catalog was last updated
- create_
time str - (string) - A timestamp indicating when the catalog was created
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- (string) - Output only. The full resource path of the catalog.
- status
Postgres
Catalog Status - (CatalogCatalogStatus) - The observed state of the Catalog
- uid str
- (string) - System-generated unique identifier for the catalog
- update_
time str - (string) - A timestamp indicating when the catalog was last updated
- create
Time String - (string) - A timestamp indicating when the catalog was created
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- (string) - Output only. The full resource path of the catalog.
- status Property Map
- (CatalogCatalogStatus) - The observed state of the Catalog
- uid String
- (string) - System-generated unique identifier for the catalog
- update
Time String - (string) - A timestamp indicating when the catalog was last updated
Look up Existing PostgresCatalog Resource
Get an existing PostgresCatalog 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?: PostgresCatalogState, opts?: CustomResourceOptions): PostgresCatalog@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
catalog_id: Optional[str] = None,
create_time: Optional[str] = None,
name: Optional[str] = None,
provider_config: Optional[PostgresCatalogProviderConfigArgs] = None,
spec: Optional[PostgresCatalogSpecArgs] = None,
status: Optional[PostgresCatalogStatusArgs] = None,
uid: Optional[str] = None,
update_time: Optional[str] = None) -> PostgresCatalogfunc GetPostgresCatalog(ctx *Context, name string, id IDInput, state *PostgresCatalogState, opts ...ResourceOption) (*PostgresCatalog, error)public static PostgresCatalog Get(string name, Input<string> id, PostgresCatalogState? state, CustomResourceOptions? opts = null)public static PostgresCatalog get(String name, Output<String> id, PostgresCatalogState state, CustomResourceOptions options)resources: _: type: databricks:PostgresCatalog get: 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.
- Catalog
Id string - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- Create
Time string - (string) - A timestamp indicating when the catalog was created
- Name string
- (string) - Output only. The full resource path of the catalog.
- Provider
Config PostgresCatalog Provider Config - Configure the provider for management through account provider.
- Spec
Postgres
Catalog Spec - The desired state of the Catalog
- Status
Postgres
Catalog Status - (CatalogCatalogStatus) - The observed state of the Catalog
- Uid string
- (string) - System-generated unique identifier for the catalog
- Update
Time string - (string) - A timestamp indicating when the catalog was last updated
- Catalog
Id string - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- Create
Time string - (string) - A timestamp indicating when the catalog was created
- Name string
- (string) - Output only. The full resource path of the catalog.
- Provider
Config PostgresCatalog Provider Config Args - Configure the provider for management through account provider.
- Spec
Postgres
Catalog Spec Args - The desired state of the Catalog
- Status
Postgres
Catalog Status Args - (CatalogCatalogStatus) - The observed state of the Catalog
- Uid string
- (string) - System-generated unique identifier for the catalog
- Update
Time string - (string) - A timestamp indicating when the catalog was last updated
- catalog
Id String - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- create
Time String - (string) - A timestamp indicating when the catalog was created
- name String
- (string) - Output only. The full resource path of the catalog.
- provider
Config PostgresCatalog Provider Config - Configure the provider for management through account provider.
- spec
Postgres
Catalog Spec - The desired state of the Catalog
- status
Postgres
Catalog Status - (CatalogCatalogStatus) - The observed state of the Catalog
- uid String
- (string) - System-generated unique identifier for the catalog
- update
Time String - (string) - A timestamp indicating when the catalog was last updated
- catalog
Id string - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- create
Time string - (string) - A timestamp indicating when the catalog was created
- name string
- (string) - Output only. The full resource path of the catalog.
- provider
Config PostgresCatalog Provider Config - Configure the provider for management through account provider.
- spec
Postgres
Catalog Spec - The desired state of the Catalog
- status
Postgres
Catalog Status - (CatalogCatalogStatus) - The observed state of the Catalog
- uid string
- (string) - System-generated unique identifier for the catalog
- update
Time string - (string) - A timestamp indicating when the catalog was last updated
- catalog_
id str - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- create_
time str - (string) - A timestamp indicating when the catalog was created
- name str
- (string) - Output only. The full resource path of the catalog.
- provider_
config PostgresCatalog Provider Config Args - Configure the provider for management through account provider.
- spec
Postgres
Catalog Spec Args - The desired state of the Catalog
- status
Postgres
Catalog Status Args - (CatalogCatalogStatus) - The observed state of the Catalog
- uid str
- (string) - System-generated unique identifier for the catalog
- update_
time str - (string) - A timestamp indicating when the catalog was last updated
- catalog
Id String - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- create
Time String - (string) - A timestamp indicating when the catalog was created
- name String
- (string) - Output only. The full resource path of the catalog.
- provider
Config Property Map - Configure the provider for management through account provider.
- spec Property Map
- The desired state of the Catalog
- status Property Map
- (CatalogCatalogStatus) - The observed state of the Catalog
- uid String
- (string) - System-generated unique identifier for the catalog
- update
Time String - (string) - A timestamp indicating when the catalog was last updated
Supporting Types
PostgresCatalogProviderConfig, PostgresCatalogProviderConfigArgs
- Workspace
Id 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.
- workspace
Id 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.
- workspace_
id str - 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.
PostgresCatalogSpec, PostgresCatalogSpecArgs
- Postgres
Database string - (string) - The name of the Postgres database associated with the catalog
- Branch string
- (string) - The resource path of the branch associated with the catalog.
- Create
Database boolIf Missing If set to true, the specified postgresDatabase is created on behalf of the calling user if it does not already exist. In this case, the calling user has a role created for them in Postgres if they do not already have one.
Defaults to false, meaning that the request fails if the specified postgresDatabase does not already exist
- Postgres
Database string - (string) - The name of the Postgres database associated with the catalog
- Branch string
- (string) - The resource path of the branch associated with the catalog.
- Create
Database boolIf Missing If set to true, the specified postgresDatabase is created on behalf of the calling user if it does not already exist. In this case, the calling user has a role created for them in Postgres if they do not already have one.
Defaults to false, meaning that the request fails if the specified postgresDatabase does not already exist
- postgres
Database String - (string) - The name of the Postgres database associated with the catalog
- branch String
- (string) - The resource path of the branch associated with the catalog.
- create
Database BooleanIf Missing If set to true, the specified postgresDatabase is created on behalf of the calling user if it does not already exist. In this case, the calling user has a role created for them in Postgres if they do not already have one.
Defaults to false, meaning that the request fails if the specified postgresDatabase does not already exist
- postgres
Database string - (string) - The name of the Postgres database associated with the catalog
- branch string
- (string) - The resource path of the branch associated with the catalog.
- create
Database booleanIf Missing If set to true, the specified postgresDatabase is created on behalf of the calling user if it does not already exist. In this case, the calling user has a role created for them in Postgres if they do not already have one.
Defaults to false, meaning that the request fails if the specified postgresDatabase does not already exist
- postgres_
database str - (string) - The name of the Postgres database associated with the catalog
- branch str
- (string) - The resource path of the branch associated with the catalog.
- create_
database_ boolif_ missing If set to true, the specified postgresDatabase is created on behalf of the calling user if it does not already exist. In this case, the calling user has a role created for them in Postgres if they do not already have one.
Defaults to false, meaning that the request fails if the specified postgresDatabase does not already exist
- postgres
Database String - (string) - The name of the Postgres database associated with the catalog
- branch String
- (string) - The resource path of the branch associated with the catalog.
- create
Database BooleanIf Missing If set to true, the specified postgresDatabase is created on behalf of the calling user if it does not already exist. In this case, the calling user has a role created for them in Postgres if they do not already have one.
Defaults to false, meaning that the request fails if the specified postgresDatabase does not already exist
PostgresCatalogStatus, PostgresCatalogStatusArgs
- Branch string
- (string) - The resource path of the branch associated with the catalog.
- Catalog
Id string - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- Postgres
Database string - (string) - The name of the Postgres database associated with the catalog
- Project string
- (string) - The resource path of the project associated with the catalog.
- Branch string
- (string) - The resource path of the branch associated with the catalog.
- Catalog
Id string - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- Postgres
Database string - (string) - The name of the Postgres database associated with the catalog
- Project string
- (string) - The resource path of the project associated with the catalog.
- branch String
- (string) - The resource path of the branch associated with the catalog.
- catalog
Id String - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- postgres
Database String - (string) - The name of the Postgres database associated with the catalog
- project String
- (string) - The resource path of the project associated with the catalog.
- branch string
- (string) - The resource path of the branch associated with the catalog.
- catalog
Id string - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- postgres
Database string - (string) - The name of the Postgres database associated with the catalog
- project string
- (string) - The resource path of the project associated with the catalog.
- branch str
- (string) - The resource path of the branch associated with the catalog.
- catalog_
id str - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- postgres_
database str - (string) - The name of the Postgres database associated with the catalog
- project str
- (string) - The resource path of the project associated with the catalog.
- branch String
- (string) - The resource path of the branch associated with the catalog.
- catalog
Id String - The ID in the Unity Catalog. It becomes the full resource name, for example "myCatalog" becomes "catalogs/my_catalog"
- postgres
Database String - (string) - The name of the Postgres database associated with the catalog
- project String
- (string) - The resource path of the project associated with the catalog.
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricksTerraform Provider.
published on Friday, May 1, 2026 by Pulumi
