import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Databases are containers of tables. * * To get more information about Database, see: * * * [API documentation](https://cloud.google.com/bigquery/docs/reference/biglake/rest/v1/projects.locations.catalogs.databases) * * How-to Guides * * [Manage open source metadata with BigLake Metastore](https://cloud.google.com/bigquery/docs/manage-open-source-metadata#create_databases) * * ## Example Usage * * ### Biglake Database * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const catalog = new gcp.biglake.Catalog("catalog", { * name: "my_catalog", * location: "US", * }); * const bucket = new gcp.storage.Bucket("bucket", { * name: "my_bucket", * location: "US", * forceDestroy: true, * uniformBucketLevelAccess: true, * }); * const metadataFolder = new gcp.storage.BucketObject("metadata_folder", { * name: "metadata/", * content: " ", * bucket: bucket.name, * }); * const database = new gcp.biglake.Database("database", { * name: "my_database", * catalog: catalog.id, * type: "HIVE", * hiveOptions: { * locationUri: pulumi.interpolate`gs://${bucket.name}/${metadataFolder.name}`, * parameters: { * owner: "John Doe", * }, * }, * }); * ``` * * ## Import * * Database can be imported using any of these accepted formats: * * * `{{catalog}}/databases/{{name}}` * * When using the `pulumi import` command, Database can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:biglake/database:Database default {{catalog}}/databases/{{name}} * ``` */ export declare class Database extends pulumi.CustomResource { /** * Get an existing Database resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: DatabaseState, opts?: pulumi.CustomResourceOptions): Database; /** * Returns true if the given object is an instance of Database. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Database; /** * The parent catalog. */ readonly catalog: pulumi.Output; /** * Output only. The creation time of the database. A timestamp in RFC3339 * UTC "Zulu" format, with nanosecond resolution and up to nine fractional * digits. Examples: "2014-10-02T15:01:23Z" and * "2014-10-02T15:01:23.045123456Z". */ readonly createTime: pulumi.Output; /** * Output only. The deletion time of the database. Only set after the * database is deleted. A timestamp in RFC3339 UTC "Zulu" format, with * nanosecond resolution and up to nine fractional digits. Examples: * "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". */ readonly deleteTime: pulumi.Output; /** * Output only. The time when this database is considered expired. Only set * after the database is deleted. A timestamp in RFC3339 UTC "Zulu" format, * with nanosecond resolution and up to nine fractional digits. Examples: * "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". */ readonly expireTime: pulumi.Output; /** * Options of a Hive database. * Structure is documented below. */ readonly hiveOptions: pulumi.Output; /** * The name of the database. */ readonly name: pulumi.Output; /** * The database type. */ readonly type: pulumi.Output; /** * Output only. The last modification time of the database. A timestamp in * RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine * fractional digits. Examples: "2014-10-02T15:01:23Z" and * "2014-10-02T15:01:23.045123456Z". */ readonly updateTime: pulumi.Output; /** * Create a Database resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: DatabaseArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Database resources. */ export interface DatabaseState { /** * The parent catalog. */ catalog?: pulumi.Input; /** * Output only. The creation time of the database. A timestamp in RFC3339 * UTC "Zulu" format, with nanosecond resolution and up to nine fractional * digits. Examples: "2014-10-02T15:01:23Z" and * "2014-10-02T15:01:23.045123456Z". */ createTime?: pulumi.Input; /** * Output only. The deletion time of the database. Only set after the * database is deleted. A timestamp in RFC3339 UTC "Zulu" format, with * nanosecond resolution and up to nine fractional digits. Examples: * "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". */ deleteTime?: pulumi.Input; /** * Output only. The time when this database is considered expired. Only set * after the database is deleted. A timestamp in RFC3339 UTC "Zulu" format, * with nanosecond resolution and up to nine fractional digits. Examples: * "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". */ expireTime?: pulumi.Input; /** * Options of a Hive database. * Structure is documented below. */ hiveOptions?: pulumi.Input; /** * The name of the database. */ name?: pulumi.Input; /** * The database type. */ type?: pulumi.Input; /** * Output only. The last modification time of the database. A timestamp in * RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine * fractional digits. Examples: "2014-10-02T15:01:23Z" and * "2014-10-02T15:01:23.045123456Z". */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a Database resource. */ export interface DatabaseArgs { /** * The parent catalog. */ catalog: pulumi.Input; /** * Options of a Hive database. * Structure is documented below. */ hiveOptions: pulumi.Input; /** * The name of the database. */ name?: pulumi.Input; /** * The database type. */ type: pulumi.Input; }