published on Wednesday, Jul 29, 2026 by Pulumi
published on Wednesday, Jul 29, 2026 by Pulumi
Hive Databases in Biglake Metastore. Hive Databases exist within a Hive Catalog.
Warning: This resource is in beta, and should be used with the terraform-provider-google-beta provider. See Provider Versions for more details on beta resources.
To get more information about HiveDatabase, see:
- How-to Guides
Example Usage
Biglake Hive Database
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const bucket = new gcp.storage.Bucket("bucket", {
name: "example-bucket",
location: "us-central1",
forceDestroy: true,
uniformBucketLevelAccess: true,
});
const catalog = new gcp.biglake.HiveCatalog("catalog", {
name: "tf_test_catalog_81126",
primaryLocation: "us-central1",
locationUri: pulumi.interpolate`gs://${bucket.name}`,
});
const myHiveDatabase = new gcp.biglake.HiveDatabase("my_hive_database", {
catalog: catalog.name,
name: "tf_test_database_88717",
locationUri: pulumi.interpolate`gs://${bucket.name}`,
parameters: {
key1: "value1",
key2: "value2",
},
description: "hive database description",
});
import pulumi
import pulumi_gcp as gcp
bucket = gcp.storage.Bucket("bucket",
name="example-bucket",
location="us-central1",
force_destroy=True,
uniform_bucket_level_access=True)
catalog = gcp.biglake.HiveCatalog("catalog",
name="tf_test_catalog_81126",
primary_location="us-central1",
location_uri=bucket.name.apply(lambda name: f"gs://{name}"))
my_hive_database = gcp.biglake.HiveDatabase("my_hive_database",
catalog=catalog.name,
name="tf_test_database_88717",
location_uri=bucket.name.apply(lambda name: f"gs://{name}"),
parameters={
"key1": "value1",
"key2": "value2",
},
description="hive database description")
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/biglake"
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
bucket, err := storage.NewBucket(ctx, "bucket", &storage.BucketArgs{
Name: pulumi.String("example-bucket"),
Location: pulumi.String("us-central1"),
ForceDestroy: pulumi.Bool(true),
UniformBucketLevelAccess: pulumi.Bool(true),
})
if err != nil {
return err
}
catalog, err := biglake.NewHiveCatalog(ctx, "catalog", &biglake.HiveCatalogArgs{
Name: pulumi.String("tf_test_catalog_81126"),
PrimaryLocation: pulumi.String("us-central1"),
LocationUri: bucket.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("gs://%v", name), nil
}).(pulumi.StringOutput),
})
if err != nil {
return err
}
_, err = biglake.NewHiveDatabase(ctx, "my_hive_database", &biglake.HiveDatabaseArgs{
Catalog: catalog.Name,
Name: pulumi.String("tf_test_database_88717"),
LocationUri: bucket.Name.ApplyT(func(name string) (string, error) {
return fmt.Sprintf("gs://%v", name), nil
}).(pulumi.StringOutput),
Parameters: pulumi.StringMap{
"key1": pulumi.String("value1"),
"key2": pulumi.String("value2"),
},
Description: pulumi.String("hive database description"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var bucket = new Gcp.Storage.Bucket("bucket", new()
{
Name = "example-bucket",
Location = "us-central1",
ForceDestroy = true,
UniformBucketLevelAccess = true,
});
var catalog = new Gcp.BigLake.HiveCatalog("catalog", new()
{
Name = "tf_test_catalog_81126",
PrimaryLocation = "us-central1",
LocationUri = bucket.Name.Apply(name => $"gs://{name}"),
});
var myHiveDatabase = new Gcp.BigLake.HiveDatabase("my_hive_database", new()
{
Catalog = catalog.Name,
Name = "tf_test_database_88717",
LocationUri = bucket.Name.Apply(name => $"gs://{name}"),
Parameters =
{
{ "key1", "value1" },
{ "key2", "value2" },
},
Description = "hive database description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.storage.Bucket;
import com.pulumi.gcp.storage.BucketArgs;
import com.pulumi.gcp.biglake.HiveCatalog;
import com.pulumi.gcp.biglake.HiveCatalogArgs;
import com.pulumi.gcp.biglake.HiveDatabase;
import com.pulumi.gcp.biglake.HiveDatabaseArgs;
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 bucket = new Bucket("bucket", BucketArgs.builder()
.name("example-bucket")
.location("us-central1")
.forceDestroy(true)
.uniformBucketLevelAccess(true)
.build());
var catalog = new HiveCatalog("catalog", HiveCatalogArgs.builder()
.name("tf_test_catalog_81126")
.primaryLocation("us-central1")
.locationUri(bucket.name().applyValue(_name -> String.format("gs://%s", _name)))
.build());
var myHiveDatabase = new HiveDatabase("myHiveDatabase", HiveDatabaseArgs.builder()
.catalog(catalog.name())
.name("tf_test_database_88717")
.locationUri(bucket.name().applyValue(_name -> String.format("gs://%s", _name)))
.parameters(Map.ofEntries(
Map.entry("key1", "value1"),
Map.entry("key2", "value2")
))
.description("hive database description")
.build());
}
}
resources:
bucket:
type: gcp:storage:Bucket
properties:
name: example-bucket
location: us-central1
forceDestroy: true
uniformBucketLevelAccess: true
catalog:
type: gcp:biglake:HiveCatalog
properties:
name: tf_test_catalog_81126
primaryLocation: us-central1
locationUri: gs://${bucket.name}
myHiveDatabase:
type: gcp:biglake:HiveDatabase
name: my_hive_database
properties:
catalog: ${catalog.name}
name: tf_test_database_88717
locationUri: gs://${bucket.name}
parameters:
key1: value1
key2: value2
description: hive database description
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_storage_bucket" "bucket" {
name = "example-bucket"
location = "us-central1"
force_destroy = true
uniform_bucket_level_access = true
}
resource "gcp_biglake_hivecatalog" "catalog" {
name = "tf_test_catalog_81126"
primary_location = "us-central1"
location_uri ="gs://${gcp_storage_bucket.bucket.name}"
}
resource "gcp_biglake_hivedatabase" "my_hive_database" {
catalog = gcp_biglake_hivecatalog.catalog.name
name = "tf_test_database_88717"
location_uri ="gs://${gcp_storage_bucket.bucket.name}"
parameters = {
"key1" = "value1"
"key2" = "value2"
}
description = "hive database description"
}
Create HiveDatabase Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HiveDatabase(name: string, args: HiveDatabaseArgs, opts?: CustomResourceOptions);@overload
def HiveDatabase(resource_name: str,
args: HiveDatabaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HiveDatabase(resource_name: str,
opts: Optional[ResourceOptions] = None,
catalog: Optional[str] = None,
deletion_policy: Optional[str] = None,
description: Optional[str] = None,
location_uri: Optional[str] = None,
name: Optional[str] = None,
parameters: Optional[Mapping[str, str]] = None,
project: Optional[str] = None)func NewHiveDatabase(ctx *Context, name string, args HiveDatabaseArgs, opts ...ResourceOption) (*HiveDatabase, error)public HiveDatabase(string name, HiveDatabaseArgs args, CustomResourceOptions? opts = null)
public HiveDatabase(String name, HiveDatabaseArgs args)
public HiveDatabase(String name, HiveDatabaseArgs args, CustomResourceOptions options)
type: gcp:biglake:HiveDatabase
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcp_biglake_hive_database" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args HiveDatabaseArgs
- 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 HiveDatabaseArgs
- 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 HiveDatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HiveDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HiveDatabaseArgs
- 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 hiveDatabaseResource = new Gcp.BigLake.HiveDatabase("hiveDatabaseResource", new()
{
Catalog = "string",
DeletionPolicy = "string",
Description = "string",
LocationUri = "string",
Name = "string",
Parameters =
{
{ "string", "string" },
},
Project = "string",
});
example, err := biglake.NewHiveDatabase(ctx, "hiveDatabaseResource", &biglake.HiveDatabaseArgs{
Catalog: pulumi.String("string"),
DeletionPolicy: pulumi.String("string"),
Description: pulumi.String("string"),
LocationUri: pulumi.String("string"),
Name: pulumi.String("string"),
Parameters: pulumi.StringMap{
"string": pulumi.String("string"),
},
Project: pulumi.String("string"),
})
resource "gcp_biglake_hive_database" "hiveDatabaseResource" {
lifecycle {
create_before_destroy = true
}
catalog = "string"
deletion_policy = "string"
description = "string"
location_uri = "string"
name = "string"
parameters = {
"string" = "string"
}
project = "string"
}
var hiveDatabaseResource = new HiveDatabase("hiveDatabaseResource", HiveDatabaseArgs.builder()
.catalog("string")
.deletionPolicy("string")
.description("string")
.locationUri("string")
.name("string")
.parameters(Map.of("string", "string"))
.project("string")
.build());
hive_database_resource = gcp.biglake.HiveDatabase("hiveDatabaseResource",
catalog="string",
deletion_policy="string",
description="string",
location_uri="string",
name="string",
parameters={
"string": "string",
},
project="string")
const hiveDatabaseResource = new gcp.biglake.HiveDatabase("hiveDatabaseResource", {
catalog: "string",
deletionPolicy: "string",
description: "string",
locationUri: "string",
name: "string",
parameters: {
string: "string",
},
project: "string",
});
type: gcp:biglake:HiveDatabase
properties:
catalog: string
deletionPolicy: string
description: string
locationUri: string
name: string
parameters:
string: string
project: string
HiveDatabase 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 HiveDatabase resource accepts the following input properties:
- Catalog string
- Hive catalog where the database to create is located.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Description string
- Description of the database.
- Location
Uri string - Cloud Storage location path where the database exists. If unspecified, the database will be stored in the catalog location. Format: gs://bucket/path/to/database
- Name string
- Database to create.
- Parameters Dictionary<string, string>
- Additional parameters associated with the database.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Catalog string
- Hive catalog where the database to create is located.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Description string
- Description of the database.
- Location
Uri string - Cloud Storage location path where the database exists. If unspecified, the database will be stored in the catalog location. Format: gs://bucket/path/to/database
- Name string
- Database to create.
- Parameters map[string]string
- Additional parameters associated with the database.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- catalog string
- Hive catalog where the database to create is located.
- deletion_
policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description string
- Description of the database.
- location_
uri string - Cloud Storage location path where the database exists. If unspecified, the database will be stored in the catalog location. Format: gs://bucket/path/to/database
- name string
- Database to create.
- parameters map(string)
- Additional parameters associated with the database.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- catalog String
- Hive catalog where the database to create is located.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description String
- Description of the database.
- location
Uri String - Cloud Storage location path where the database exists. If unspecified, the database will be stored in the catalog location. Format: gs://bucket/path/to/database
- name String
- Database to create.
- parameters Map<String,String>
- Additional parameters associated with the database.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- catalog string
- Hive catalog where the database to create is located.
- deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description string
- Description of the database.
- location
Uri string - Cloud Storage location path where the database exists. If unspecified, the database will be stored in the catalog location. Format: gs://bucket/path/to/database
- name string
- Database to create.
- parameters {[key: string]: string}
- Additional parameters associated with the database.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- catalog str
- Hive catalog where the database to create is located.
- deletion_
policy str - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description str
- Description of the database.
- location_
uri str - Cloud Storage location path where the database exists. If unspecified, the database will be stored in the catalog location. Format: gs://bucket/path/to/database
- name str
- Database to create.
- parameters Mapping[str, str]
- Additional parameters associated with the database.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- catalog String
- Hive catalog where the database to create is located.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description String
- Description of the database.
- location
Uri String - Cloud Storage location path where the database exists. If unspecified, the database will be stored in the catalog location. Format: gs://bucket/path/to/database
- name String
- Database to create.
- parameters Map<String>
- Additional parameters associated with the database.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the HiveDatabase resource produces the following output properties:
- Create
Time string - Output only. The creation time of the database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Output only. The update time of the database.
- Create
Time string - Output only. The creation time of the database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Output only. The update time of the database.
- create_
time string - Output only. The creation time of the database.
- id string
- The provider-assigned unique ID for this managed resource.
- update_
time string - Output only. The update time of the database.
- create
Time String - Output only. The creation time of the database.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Output only. The update time of the database.
- create
Time string - Output only. The creation time of the database.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - Output only. The update time of the database.
- create_
time str - Output only. The creation time of the database.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - Output only. The update time of the database.
- create
Time String - Output only. The creation time of the database.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Output only. The update time of the database.
Look up Existing HiveDatabase Resource
Get an existing HiveDatabase 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?: HiveDatabaseState, opts?: CustomResourceOptions): HiveDatabase@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
catalog: Optional[str] = None,
create_time: Optional[str] = None,
deletion_policy: Optional[str] = None,
description: Optional[str] = None,
location_uri: Optional[str] = None,
name: Optional[str] = None,
parameters: Optional[Mapping[str, str]] = None,
project: Optional[str] = None,
update_time: Optional[str] = None) -> HiveDatabasefunc GetHiveDatabase(ctx *Context, name string, id IDInput, state *HiveDatabaseState, opts ...ResourceOption) (*HiveDatabase, error)public static HiveDatabase Get(string name, Input<string> id, HiveDatabaseState? state, CustomResourceOptions? opts = null)public static HiveDatabase get(String name, Output<String> id, HiveDatabaseState state, CustomResourceOptions options)resources: _: type: gcp:biglake:HiveDatabase get: id: ${id}import {
to = gcp_biglake_hive_database.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.
- Catalog string
- Hive catalog where the database to create is located.
- Create
Time string - Output only. The creation time of the database.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Description string
- Description of the database.
- Location
Uri string - Cloud Storage location path where the database exists. If unspecified, the database will be stored in the catalog location. Format: gs://bucket/path/to/database
- Name string
- Database to create.
- Parameters Dictionary<string, string>
- Additional parameters associated with the database.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Update
Time string - Output only. The update time of the database.
- Catalog string
- Hive catalog where the database to create is located.
- Create
Time string - Output only. The creation time of the database.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Description string
- Description of the database.
- Location
Uri string - Cloud Storage location path where the database exists. If unspecified, the database will be stored in the catalog location. Format: gs://bucket/path/to/database
- Name string
- Database to create.
- Parameters map[string]string
- Additional parameters associated with the database.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Update
Time string - Output only. The update time of the database.
- catalog string
- Hive catalog where the database to create is located.
- create_
time string - Output only. The creation time of the database.
- deletion_
policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description string
- Description of the database.
- location_
uri string - Cloud Storage location path where the database exists. If unspecified, the database will be stored in the catalog location. Format: gs://bucket/path/to/database
- name string
- Database to create.
- parameters map(string)
- Additional parameters associated with the database.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update_
time string - Output only. The update time of the database.
- catalog String
- Hive catalog where the database to create is located.
- create
Time String - Output only. The creation time of the database.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description String
- Description of the database.
- location
Uri String - Cloud Storage location path where the database exists. If unspecified, the database will be stored in the catalog location. Format: gs://bucket/path/to/database
- name String
- Database to create.
- parameters Map<String,String>
- Additional parameters associated with the database.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update
Time String - Output only. The update time of the database.
- catalog string
- Hive catalog where the database to create is located.
- create
Time string - Output only. The creation time of the database.
- deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description string
- Description of the database.
- location
Uri string - Cloud Storage location path where the database exists. If unspecified, the database will be stored in the catalog location. Format: gs://bucket/path/to/database
- name string
- Database to create.
- parameters {[key: string]: string}
- Additional parameters associated with the database.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update
Time string - Output only. The update time of the database.
- catalog str
- Hive catalog where the database to create is located.
- create_
time str - Output only. The creation time of the database.
- deletion_
policy str - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description str
- Description of the database.
- location_
uri str - Cloud Storage location path where the database exists. If unspecified, the database will be stored in the catalog location. Format: gs://bucket/path/to/database
- name str
- Database to create.
- parameters Mapping[str, str]
- Additional parameters associated with the database.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update_
time str - Output only. The update time of the database.
- catalog String
- Hive catalog where the database to create is located.
- create
Time String - Output only. The creation time of the database.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description String
- Description of the database.
- location
Uri String - Cloud Storage location path where the database exists. If unspecified, the database will be stored in the catalog location. Format: gs://bucket/path/to/database
- name String
- Database to create.
- parameters Map<String>
- Additional parameters associated with the database.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- update
Time String - Output only. The update time of the database.
Import
HiveDatabase can be imported using any of these accepted formats:
hive/v1beta/projects/{{project}}/catalogs/{{catalog}}/databases/{{name}}{{project}}/{{catalog}}/{{name}}{{catalog}}/{{name}}
When using the pulumi import command, HiveDatabase can be imported using one of the formats above. For example:
$ pulumi import gcp:biglake/hiveDatabase:HiveDatabase default hive/v1beta/projects/{{project}}/catalogs/{{catalog}}/databases/{{name}}
$ pulumi import gcp:biglake/hiveDatabase:HiveDatabase default {{project}}/{{catalog}}/{{name}}
$ pulumi import gcp:biglake/hiveDatabase:HiveDatabase default {{catalog}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
published on Wednesday, Jul 29, 2026 by Pulumi