import * as pulumi from "@pulumi/pulumi"; import * as enums from "../../types/enums"; /** * Create a database. */ 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, 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 App Engine integration mode to use for this database. */ readonly appEngineIntegrationMode: pulumi.Output; /** * The concurrency control mode to use for this database. */ readonly concurrencyMode: pulumi.Output; /** * The timestamp at which this database was created. Databases created before 2016 do not populate create_time. */ readonly createTime: pulumi.Output; /** * Required. The ID to use for the database, which will become the final component of the database's resource name. This value should be 4-63 characters. Valid characters are /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. "(default)" database id is also valid. */ readonly databaseId: pulumi.Output; /** * State of delete protection for the database. */ readonly deleteProtectionState: pulumi.Output; /** * The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with `now - version_retention_period`. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery. */ readonly earliestVersionTime: pulumi.Output; /** * This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. */ readonly etag: pulumi.Output; /** * The key_prefix for this database. This key_prefix is used, in combination with the project id ("~") to construct the application id that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes. This value may be empty in which case the appid to use for URL-encoded keys is the project_id (eg: foo instead of v~foo). */ readonly keyPrefix: pulumi.Output; /** * The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations. */ readonly location: pulumi.Output; /** * The resource name of the Database. Format: `projects/{project}/databases/{database}` */ readonly name: pulumi.Output; /** * Whether to enable the PITR feature on this database. */ readonly pointInTimeRecoveryEnablement: pulumi.Output; readonly project: pulumi.Output; /** * The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose. */ readonly type: pulumi.Output; /** * The system-generated UUID4 for this Database. */ readonly uid: pulumi.Output; /** * The timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database. */ readonly updateTime: pulumi.Output; /** * The period during which past versions of data are retained in the database. Any read or query can specify a `read_time` within this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour. */ readonly versionRetentionPeriod: 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); } /** * The set of arguments for constructing a Database resource. */ export interface DatabaseArgs { /** * The App Engine integration mode to use for this database. */ appEngineIntegrationMode?: pulumi.Input; /** * The concurrency control mode to use for this database. */ concurrencyMode?: pulumi.Input; /** * Required. The ID to use for the database, which will become the final component of the database's resource name. This value should be 4-63 characters. Valid characters are /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. "(default)" database id is also valid. */ databaseId: pulumi.Input; /** * State of delete protection for the database. */ deleteProtectionState?: pulumi.Input; /** * This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. */ etag?: pulumi.Input; /** * The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations. */ location?: pulumi.Input; /** * The resource name of the Database. Format: `projects/{project}/databases/{database}` */ name?: pulumi.Input; /** * Whether to enable the PITR feature on this database. */ pointInTimeRecoveryEnablement?: pulumi.Input; project?: pulumi.Input; /** * The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose. */ type?: pulumi.Input; }