Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.firestore/v1.Database
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Create a database.
Create Database Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Database(name: string, args: DatabaseArgs, opts?: CustomResourceOptions);
@overload
def Database(resource_name: str,
args: DatabaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Database(resource_name: str,
opts: Optional[ResourceOptions] = None,
database_id: Optional[str] = None,
app_engine_integration_mode: Optional[DatabaseAppEngineIntegrationMode] = None,
concurrency_mode: Optional[DatabaseConcurrencyMode] = None,
delete_protection_state: Optional[DatabaseDeleteProtectionState] = None,
etag: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
point_in_time_recovery_enablement: Optional[DatabasePointInTimeRecoveryEnablement] = None,
project: Optional[str] = None,
type: Optional[DatabaseType] = None)
func NewDatabase(ctx *Context, name string, args DatabaseArgs, opts ...ResourceOption) (*Database, error)
public Database(string name, DatabaseArgs args, CustomResourceOptions? opts = null)
public Database(String name, DatabaseArgs args)
public Database(String name, DatabaseArgs args, CustomResourceOptions options)
type: google-native:firestore/v1:Database
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 DatabaseArgs
- 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 DatabaseArgs
- 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 DatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatabaseArgs
- 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 google_nativeDatabaseResource = new GoogleNative.Firestore.V1.Database("google-nativeDatabaseResource", new()
{
DatabaseId = "string",
AppEngineIntegrationMode = GoogleNative.Firestore.V1.DatabaseAppEngineIntegrationMode.AppEngineIntegrationModeUnspecified,
ConcurrencyMode = GoogleNative.Firestore.V1.DatabaseConcurrencyMode.ConcurrencyModeUnspecified,
DeleteProtectionState = GoogleNative.Firestore.V1.DatabaseDeleteProtectionState.DeleteProtectionStateUnspecified,
Etag = "string",
Location = "string",
Name = "string",
PointInTimeRecoveryEnablement = GoogleNative.Firestore.V1.DatabasePointInTimeRecoveryEnablement.PointInTimeRecoveryEnablementUnspecified,
Project = "string",
Type = GoogleNative.Firestore.V1.DatabaseType.DatabaseTypeUnspecified,
});
example, err := firestore.NewDatabase(ctx, "google-nativeDatabaseResource", &firestore.DatabaseArgs{
DatabaseId: pulumi.String("string"),
AppEngineIntegrationMode: firestore.DatabaseAppEngineIntegrationModeAppEngineIntegrationModeUnspecified,
ConcurrencyMode: firestore.DatabaseConcurrencyModeConcurrencyModeUnspecified,
DeleteProtectionState: firestore.DatabaseDeleteProtectionStateDeleteProtectionStateUnspecified,
Etag: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
PointInTimeRecoveryEnablement: firestore.DatabasePointInTimeRecoveryEnablementPointInTimeRecoveryEnablementUnspecified,
Project: pulumi.String("string"),
Type: firestore.DatabaseTypeDatabaseTypeUnspecified,
})
var google_nativeDatabaseResource = new Database("google-nativeDatabaseResource", DatabaseArgs.builder()
.databaseId("string")
.appEngineIntegrationMode("APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED")
.concurrencyMode("CONCURRENCY_MODE_UNSPECIFIED")
.deleteProtectionState("DELETE_PROTECTION_STATE_UNSPECIFIED")
.etag("string")
.location("string")
.name("string")
.pointInTimeRecoveryEnablement("POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED")
.project("string")
.type("DATABASE_TYPE_UNSPECIFIED")
.build());
google_native_database_resource = google_native.firestore.v1.Database("google-nativeDatabaseResource",
database_id="string",
app_engine_integration_mode=google_native.firestore.v1.DatabaseAppEngineIntegrationMode.APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED,
concurrency_mode=google_native.firestore.v1.DatabaseConcurrencyMode.CONCURRENCY_MODE_UNSPECIFIED,
delete_protection_state=google_native.firestore.v1.DatabaseDeleteProtectionState.DELETE_PROTECTION_STATE_UNSPECIFIED,
etag="string",
location="string",
name="string",
point_in_time_recovery_enablement=google_native.firestore.v1.DatabasePointInTimeRecoveryEnablement.POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED,
project="string",
type=google_native.firestore.v1.DatabaseType.DATABASE_TYPE_UNSPECIFIED)
const google_nativeDatabaseResource = new google_native.firestore.v1.Database("google-nativeDatabaseResource", {
databaseId: "string",
appEngineIntegrationMode: google_native.firestore.v1.DatabaseAppEngineIntegrationMode.AppEngineIntegrationModeUnspecified,
concurrencyMode: google_native.firestore.v1.DatabaseConcurrencyMode.ConcurrencyModeUnspecified,
deleteProtectionState: google_native.firestore.v1.DatabaseDeleteProtectionState.DeleteProtectionStateUnspecified,
etag: "string",
location: "string",
name: "string",
pointInTimeRecoveryEnablement: google_native.firestore.v1.DatabasePointInTimeRecoveryEnablement.PointInTimeRecoveryEnablementUnspecified,
project: "string",
type: google_native.firestore.v1.DatabaseType.DatabaseTypeUnspecified,
});
type: google-native:firestore/v1:Database
properties:
appEngineIntegrationMode: APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED
concurrencyMode: CONCURRENCY_MODE_UNSPECIFIED
databaseId: string
deleteProtectionState: DELETE_PROTECTION_STATE_UNSPECIFIED
etag: string
location: string
name: string
pointInTimeRecoveryEnablement: POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED
project: string
type: DATABASE_TYPE_UNSPECIFIED
Database 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 Database resource accepts the following input properties:
- Database
Id string - 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.
- App
Engine Pulumi.Integration Mode Google Native. Firestore. V1. Database App Engine Integration Mode - The App Engine integration mode to use for this database.
- Concurrency
Mode Pulumi.Google Native. Firestore. V1. Database Concurrency Mode - The concurrency control mode to use for this database.
- Delete
Protection Pulumi.State Google Native. Firestore. V1. Database Delete Protection State - State of delete protection for the database.
- Etag string
- 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.
- Location string
- The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
- Name string
- The resource name of the Database. Format:
projects/{project}/databases/{database}
- Point
In Pulumi.Time Recovery Enablement Google Native. Firestore. V1. Database Point In Time Recovery Enablement - Whether to enable the PITR feature on this database.
- Project string
- Type
Pulumi.
Google Native. Firestore. V1. Database Type - The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
- Database
Id string - 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.
- App
Engine DatabaseIntegration Mode App Engine Integration Mode - The App Engine integration mode to use for this database.
- Concurrency
Mode DatabaseConcurrency Mode - The concurrency control mode to use for this database.
- Delete
Protection DatabaseState Delete Protection State - State of delete protection for the database.
- Etag string
- 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.
- Location string
- The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
- Name string
- The resource name of the Database. Format:
projects/{project}/databases/{database}
- Point
In DatabaseTime Recovery Enablement Point In Time Recovery Enablement - Whether to enable the PITR feature on this database.
- Project string
- Type
Database
Type - The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
- database
Id String - 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.
- app
Engine DatabaseIntegration Mode App Engine Integration Mode - The App Engine integration mode to use for this database.
- concurrency
Mode DatabaseConcurrency Mode - The concurrency control mode to use for this database.
- delete
Protection DatabaseState Delete Protection State - State of delete protection for the database.
- etag String
- 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.
- location String
- The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
- name String
- The resource name of the Database. Format:
projects/{project}/databases/{database}
- point
In DatabaseTime Recovery Enablement Point In Time Recovery Enablement - Whether to enable the PITR feature on this database.
- project String
- type
Database
Type - The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
- database
Id string - 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.
- app
Engine DatabaseIntegration Mode App Engine Integration Mode - The App Engine integration mode to use for this database.
- concurrency
Mode DatabaseConcurrency Mode - The concurrency control mode to use for this database.
- delete
Protection DatabaseState Delete Protection State - State of delete protection for the database.
- etag string
- 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.
- location string
- The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
- name string
- The resource name of the Database. Format:
projects/{project}/databases/{database}
- point
In DatabaseTime Recovery Enablement Point In Time Recovery Enablement - Whether to enable the PITR feature on this database.
- project string
- type
Database
Type - The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
- database_
id str - 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.
- app_
engine_ Databaseintegration_ mode App Engine Integration Mode - The App Engine integration mode to use for this database.
- concurrency_
mode DatabaseConcurrency Mode - The concurrency control mode to use for this database.
- delete_
protection_ Databasestate Delete Protection State - State of delete protection for the database.
- etag str
- 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.
- location str
- The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
- name str
- The resource name of the Database. Format:
projects/{project}/databases/{database}
- point_
in_ Databasetime_ recovery_ enablement Point In Time Recovery Enablement - Whether to enable the PITR feature on this database.
- project str
- type
Database
Type - The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
- database
Id String - 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.
- app
Engine "APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED" | "ENABLED" | "DISABLED"Integration Mode - The App Engine integration mode to use for this database.
- concurrency
Mode "CONCURRENCY_MODE_UNSPECIFIED" | "OPTIMISTIC" | "PESSIMISTIC" | "OPTIMISTIC_WITH_ENTITY_GROUPS" - The concurrency control mode to use for this database.
- delete
Protection "DELETE_PROTECTION_STATE_UNSPECIFIED" | "DELETE_PROTECTION_DISABLED" | "DELETE_PROTECTION_ENABLED"State - State of delete protection for the database.
- etag String
- 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.
- location String
- The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
- name String
- The resource name of the Database. Format:
projects/{project}/databases/{database}
- point
In "POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED" | "POINT_IN_TIME_RECOVERY_ENABLED" | "POINT_IN_TIME_RECOVERY_DISABLED"Time Recovery Enablement - Whether to enable the PITR feature on this database.
- project String
- type "DATABASE_TYPE_UNSPECIFIED" | "FIRESTORE_NATIVE" | "DATASTORE_MODE"
- The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
Outputs
All input properties are implicitly available as output properties. Additionally, the Database resource produces the following output properties:
- Create
Time string - The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
- Earliest
Version stringTime - 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. - Id string
- The provider-assigned unique ID for this managed resource.
- Key
Prefix string - 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).
- Uid string
- The system-generated UUID4 for this Database.
- Update
Time string - 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.
- Version
Retention stringPeriod - 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.
- Create
Time string - The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
- Earliest
Version stringTime - 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. - Id string
- The provider-assigned unique ID for this managed resource.
- Key
Prefix string - 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).
- Uid string
- The system-generated UUID4 for this Database.
- Update
Time string - 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.
- Version
Retention stringPeriod - 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.
- create
Time String - The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
- earliest
Version StringTime - 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. - id String
- The provider-assigned unique ID for this managed resource.
- key
Prefix String - 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).
- uid String
- The system-generated UUID4 for this Database.
- update
Time String - 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.
- version
Retention StringPeriod - 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.
- create
Time string - The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
- earliest
Version stringTime - 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. - id string
- The provider-assigned unique ID for this managed resource.
- key
Prefix string - 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).
- uid string
- The system-generated UUID4 for this Database.
- update
Time string - 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.
- version
Retention stringPeriod - 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.
- create_
time str - The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
- earliest_
version_ strtime - 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. - id str
- The provider-assigned unique ID for this managed resource.
- key_
prefix str - 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).
- uid str
- The system-generated UUID4 for this Database.
- update_
time str - 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.
- version_
retention_ strperiod - 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.
- create
Time String - The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
- earliest
Version StringTime - 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. - id String
- The provider-assigned unique ID for this managed resource.
- key
Prefix String - 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).
- uid String
- The system-generated UUID4 for this Database.
- update
Time String - 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.
- version
Retention StringPeriod - 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.
Supporting Types
DatabaseAppEngineIntegrationMode, DatabaseAppEngineIntegrationModeArgs
- App
Engine Integration Mode Unspecified - APP_ENGINE_INTEGRATION_MODE_UNSPECIFIEDNot used.
- Enabled
- ENABLEDIf an App Engine application exists in the same region as this database, App Engine configuration will impact this database. This includes disabling of the application & database, as well as disabling writes to the database.
- Disabled
- DISABLEDApp Engine has no effect on the ability of this database to serve requests. This is the default setting for databases created with the Firestore API.
- Database
App Engine Integration Mode App Engine Integration Mode Unspecified - APP_ENGINE_INTEGRATION_MODE_UNSPECIFIEDNot used.
- Database
App Engine Integration Mode Enabled - ENABLEDIf an App Engine application exists in the same region as this database, App Engine configuration will impact this database. This includes disabling of the application & database, as well as disabling writes to the database.
- Database
App Engine Integration Mode Disabled - DISABLEDApp Engine has no effect on the ability of this database to serve requests. This is the default setting for databases created with the Firestore API.
- App
Engine Integration Mode Unspecified - APP_ENGINE_INTEGRATION_MODE_UNSPECIFIEDNot used.
- Enabled
- ENABLEDIf an App Engine application exists in the same region as this database, App Engine configuration will impact this database. This includes disabling of the application & database, as well as disabling writes to the database.
- Disabled
- DISABLEDApp Engine has no effect on the ability of this database to serve requests. This is the default setting for databases created with the Firestore API.
- App
Engine Integration Mode Unspecified - APP_ENGINE_INTEGRATION_MODE_UNSPECIFIEDNot used.
- Enabled
- ENABLEDIf an App Engine application exists in the same region as this database, App Engine configuration will impact this database. This includes disabling of the application & database, as well as disabling writes to the database.
- Disabled
- DISABLEDApp Engine has no effect on the ability of this database to serve requests. This is the default setting for databases created with the Firestore API.
- APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED
- APP_ENGINE_INTEGRATION_MODE_UNSPECIFIEDNot used.
- ENABLED
- ENABLEDIf an App Engine application exists in the same region as this database, App Engine configuration will impact this database. This includes disabling of the application & database, as well as disabling writes to the database.
- DISABLED
- DISABLEDApp Engine has no effect on the ability of this database to serve requests. This is the default setting for databases created with the Firestore API.
- "APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED"
- APP_ENGINE_INTEGRATION_MODE_UNSPECIFIEDNot used.
- "ENABLED"
- ENABLEDIf an App Engine application exists in the same region as this database, App Engine configuration will impact this database. This includes disabling of the application & database, as well as disabling writes to the database.
- "DISABLED"
- DISABLEDApp Engine has no effect on the ability of this database to serve requests. This is the default setting for databases created with the Firestore API.
DatabaseConcurrencyMode, DatabaseConcurrencyModeArgs
- Concurrency
Mode Unspecified - CONCURRENCY_MODE_UNSPECIFIEDNot used.
- Optimistic
- OPTIMISTICUse optimistic concurrency control by default. This mode is available for Cloud Firestore databases.
- Pessimistic
- PESSIMISTICUse pessimistic concurrency control by default. This mode is available for Cloud Firestore databases. This is the default setting for Cloud Firestore.
- Optimistic
With Entity Groups - OPTIMISTIC_WITH_ENTITY_GROUPSUse optimistic concurrency control with entity groups by default. This is the only available mode for Cloud Datastore. This mode is also available for Cloud Firestore with Datastore Mode but is not recommended.
- Database
Concurrency Mode Concurrency Mode Unspecified - CONCURRENCY_MODE_UNSPECIFIEDNot used.
- Database
Concurrency Mode Optimistic - OPTIMISTICUse optimistic concurrency control by default. This mode is available for Cloud Firestore databases.
- Database
Concurrency Mode Pessimistic - PESSIMISTICUse pessimistic concurrency control by default. This mode is available for Cloud Firestore databases. This is the default setting for Cloud Firestore.
- Database
Concurrency Mode Optimistic With Entity Groups - OPTIMISTIC_WITH_ENTITY_GROUPSUse optimistic concurrency control with entity groups by default. This is the only available mode for Cloud Datastore. This mode is also available for Cloud Firestore with Datastore Mode but is not recommended.
- Concurrency
Mode Unspecified - CONCURRENCY_MODE_UNSPECIFIEDNot used.
- Optimistic
- OPTIMISTICUse optimistic concurrency control by default. This mode is available for Cloud Firestore databases.
- Pessimistic
- PESSIMISTICUse pessimistic concurrency control by default. This mode is available for Cloud Firestore databases. This is the default setting for Cloud Firestore.
- Optimistic
With Entity Groups - OPTIMISTIC_WITH_ENTITY_GROUPSUse optimistic concurrency control with entity groups by default. This is the only available mode for Cloud Datastore. This mode is also available for Cloud Firestore with Datastore Mode but is not recommended.
- Concurrency
Mode Unspecified - CONCURRENCY_MODE_UNSPECIFIEDNot used.
- Optimistic
- OPTIMISTICUse optimistic concurrency control by default. This mode is available for Cloud Firestore databases.
- Pessimistic
- PESSIMISTICUse pessimistic concurrency control by default. This mode is available for Cloud Firestore databases. This is the default setting for Cloud Firestore.
- Optimistic
With Entity Groups - OPTIMISTIC_WITH_ENTITY_GROUPSUse optimistic concurrency control with entity groups by default. This is the only available mode for Cloud Datastore. This mode is also available for Cloud Firestore with Datastore Mode but is not recommended.
- CONCURRENCY_MODE_UNSPECIFIED
- CONCURRENCY_MODE_UNSPECIFIEDNot used.
- OPTIMISTIC
- OPTIMISTICUse optimistic concurrency control by default. This mode is available for Cloud Firestore databases.
- PESSIMISTIC
- PESSIMISTICUse pessimistic concurrency control by default. This mode is available for Cloud Firestore databases. This is the default setting for Cloud Firestore.
- OPTIMISTIC_WITH_ENTITY_GROUPS
- OPTIMISTIC_WITH_ENTITY_GROUPSUse optimistic concurrency control with entity groups by default. This is the only available mode for Cloud Datastore. This mode is also available for Cloud Firestore with Datastore Mode but is not recommended.
- "CONCURRENCY_MODE_UNSPECIFIED"
- CONCURRENCY_MODE_UNSPECIFIEDNot used.
- "OPTIMISTIC"
- OPTIMISTICUse optimistic concurrency control by default. This mode is available for Cloud Firestore databases.
- "PESSIMISTIC"
- PESSIMISTICUse pessimistic concurrency control by default. This mode is available for Cloud Firestore databases. This is the default setting for Cloud Firestore.
- "OPTIMISTIC_WITH_ENTITY_GROUPS"
- OPTIMISTIC_WITH_ENTITY_GROUPSUse optimistic concurrency control with entity groups by default. This is the only available mode for Cloud Datastore. This mode is also available for Cloud Firestore with Datastore Mode but is not recommended.
DatabaseDeleteProtectionState, DatabaseDeleteProtectionStateArgs
- Delete
Protection State Unspecified - DELETE_PROTECTION_STATE_UNSPECIFIEDThe default value. Delete protection type is not specified
- Delete
Protection Disabled - DELETE_PROTECTION_DISABLEDDelete protection is disabled
- Delete
Protection Enabled - DELETE_PROTECTION_ENABLEDDelete protection is enabled
- Database
Delete Protection State Delete Protection State Unspecified - DELETE_PROTECTION_STATE_UNSPECIFIEDThe default value. Delete protection type is not specified
- Database
Delete Protection State Delete Protection Disabled - DELETE_PROTECTION_DISABLEDDelete protection is disabled
- Database
Delete Protection State Delete Protection Enabled - DELETE_PROTECTION_ENABLEDDelete protection is enabled
- Delete
Protection State Unspecified - DELETE_PROTECTION_STATE_UNSPECIFIEDThe default value. Delete protection type is not specified
- Delete
Protection Disabled - DELETE_PROTECTION_DISABLEDDelete protection is disabled
- Delete
Protection Enabled - DELETE_PROTECTION_ENABLEDDelete protection is enabled
- Delete
Protection State Unspecified - DELETE_PROTECTION_STATE_UNSPECIFIEDThe default value. Delete protection type is not specified
- Delete
Protection Disabled - DELETE_PROTECTION_DISABLEDDelete protection is disabled
- Delete
Protection Enabled - DELETE_PROTECTION_ENABLEDDelete protection is enabled
- DELETE_PROTECTION_STATE_UNSPECIFIED
- DELETE_PROTECTION_STATE_UNSPECIFIEDThe default value. Delete protection type is not specified
- DELETE_PROTECTION_DISABLED
- DELETE_PROTECTION_DISABLEDDelete protection is disabled
- DELETE_PROTECTION_ENABLED
- DELETE_PROTECTION_ENABLEDDelete protection is enabled
- "DELETE_PROTECTION_STATE_UNSPECIFIED"
- DELETE_PROTECTION_STATE_UNSPECIFIEDThe default value. Delete protection type is not specified
- "DELETE_PROTECTION_DISABLED"
- DELETE_PROTECTION_DISABLEDDelete protection is disabled
- "DELETE_PROTECTION_ENABLED"
- DELETE_PROTECTION_ENABLEDDelete protection is enabled
DatabasePointInTimeRecoveryEnablement, DatabasePointInTimeRecoveryEnablementArgs
- Point
In Time Recovery Enablement Unspecified - POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIEDNot used.
- Point
In Time Recovery Enabled - POINT_IN_TIME_RECOVERY_ENABLEDReads are supported on selected versions of the data from within the past 7 days: * Reads against any timestamp within the past hour * Reads against 1-minute snapshots beyond 1 hour and within 7 days
version_retention_period
andearliest_version_time
can be used to determine the supported versions. - Point
In Time Recovery Disabled - POINT_IN_TIME_RECOVERY_DISABLEDReads are supported on any version of the data from within the past 1 hour.
- Database
Point In Time Recovery Enablement Point In Time Recovery Enablement Unspecified - POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIEDNot used.
- Database
Point In Time Recovery Enablement Point In Time Recovery Enabled - POINT_IN_TIME_RECOVERY_ENABLEDReads are supported on selected versions of the data from within the past 7 days: * Reads against any timestamp within the past hour * Reads against 1-minute snapshots beyond 1 hour and within 7 days
version_retention_period
andearliest_version_time
can be used to determine the supported versions. - Database
Point In Time Recovery Enablement Point In Time Recovery Disabled - POINT_IN_TIME_RECOVERY_DISABLEDReads are supported on any version of the data from within the past 1 hour.
- Point
In Time Recovery Enablement Unspecified - POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIEDNot used.
- Point
In Time Recovery Enabled - POINT_IN_TIME_RECOVERY_ENABLEDReads are supported on selected versions of the data from within the past 7 days: * Reads against any timestamp within the past hour * Reads against 1-minute snapshots beyond 1 hour and within 7 days
version_retention_period
andearliest_version_time
can be used to determine the supported versions. - Point
In Time Recovery Disabled - POINT_IN_TIME_RECOVERY_DISABLEDReads are supported on any version of the data from within the past 1 hour.
- Point
In Time Recovery Enablement Unspecified - POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIEDNot used.
- Point
In Time Recovery Enabled - POINT_IN_TIME_RECOVERY_ENABLEDReads are supported on selected versions of the data from within the past 7 days: * Reads against any timestamp within the past hour * Reads against 1-minute snapshots beyond 1 hour and within 7 days
version_retention_period
andearliest_version_time
can be used to determine the supported versions. - Point
In Time Recovery Disabled - POINT_IN_TIME_RECOVERY_DISABLEDReads are supported on any version of the data from within the past 1 hour.
- POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED
- POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIEDNot used.
- POINT_IN_TIME_RECOVERY_ENABLED
- POINT_IN_TIME_RECOVERY_ENABLEDReads are supported on selected versions of the data from within the past 7 days: * Reads against any timestamp within the past hour * Reads against 1-minute snapshots beyond 1 hour and within 7 days
version_retention_period
andearliest_version_time
can be used to determine the supported versions. - POINT_IN_TIME_RECOVERY_DISABLED
- POINT_IN_TIME_RECOVERY_DISABLEDReads are supported on any version of the data from within the past 1 hour.
- "POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED"
- POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIEDNot used.
- "POINT_IN_TIME_RECOVERY_ENABLED"
- POINT_IN_TIME_RECOVERY_ENABLEDReads are supported on selected versions of the data from within the past 7 days: * Reads against any timestamp within the past hour * Reads against 1-minute snapshots beyond 1 hour and within 7 days
version_retention_period
andearliest_version_time
can be used to determine the supported versions. - "POINT_IN_TIME_RECOVERY_DISABLED"
- POINT_IN_TIME_RECOVERY_DISABLEDReads are supported on any version of the data from within the past 1 hour.
DatabaseType, DatabaseTypeArgs
- Database
Type Unspecified - DATABASE_TYPE_UNSPECIFIEDThe default value. This value is used if the database type is omitted.
- Firestore
Native - FIRESTORE_NATIVEFirestore Native Mode
- Datastore
Mode - DATASTORE_MODEFirestore in Datastore Mode.
- Database
Type Database Type Unspecified - DATABASE_TYPE_UNSPECIFIEDThe default value. This value is used if the database type is omitted.
- Database
Type Firestore Native - FIRESTORE_NATIVEFirestore Native Mode
- Database
Type Datastore Mode - DATASTORE_MODEFirestore in Datastore Mode.
- Database
Type Unspecified - DATABASE_TYPE_UNSPECIFIEDThe default value. This value is used if the database type is omitted.
- Firestore
Native - FIRESTORE_NATIVEFirestore Native Mode
- Datastore
Mode - DATASTORE_MODEFirestore in Datastore Mode.
- Database
Type Unspecified - DATABASE_TYPE_UNSPECIFIEDThe default value. This value is used if the database type is omitted.
- Firestore
Native - FIRESTORE_NATIVEFirestore Native Mode
- Datastore
Mode - DATASTORE_MODEFirestore in Datastore Mode.
- DATABASE_TYPE_UNSPECIFIED
- DATABASE_TYPE_UNSPECIFIEDThe default value. This value is used if the database type is omitted.
- FIRESTORE_NATIVE
- FIRESTORE_NATIVEFirestore Native Mode
- DATASTORE_MODE
- DATASTORE_MODEFirestore in Datastore Mode.
- "DATABASE_TYPE_UNSPECIFIED"
- DATABASE_TYPE_UNSPECIFIEDThe default value. This value is used if the database type is omitted.
- "FIRESTORE_NATIVE"
- FIRESTORE_NATIVEFirestore Native Mode
- "DATASTORE_MODE"
- DATASTORE_MODEFirestore in Datastore Mode.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.