permalink |
---|
/firestore_database/ |
firestore_database
represents the google_firestore_database
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withAppEngineIntegrationMode()
fn withConcurrencyMode()
fn withDeleteProtectionState()
fn withLocationId()
fn withName()
fn withPointInTimeRecoveryEnablement()
fn withProject()
fn withTimeouts()
fn withTimeoutsMixin()
fn withType()
obj timeouts
new()
google.firestore_database.new
injects a new google_firestore_database
Terraform resource
block into the root module document.
Additionally, this inserts a private function into the _ref
attribute that generates references to attributes of the
resource. For example, if you added a new instance to the root using:
# arguments omitted for brevity
google.firestore_database.new('some_id')
You can get the reference to the id
field of the created google.firestore_database
using the reference:
$._ref.google_firestore_database.some_id.get('id')
This is the same as directly entering "${ google_firestore_database.some_id.id }"
as the value.
NOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use super
, self
,
or $
to refer to the root object. Instead, make an explicit outer object using local
.
Args:
resourceLabel
(string
): The name label of the block.app_engine_integration_mode
(string
): The App Engine integration mode to use for this database. Possible values: ["ENABLED", "DISABLED"] Whennull
, theapp_engine_integration_mode
field will be omitted from the resulting object.concurrency_mode
(string
): The concurrency control mode to use for this database. Possible values: ["OPTIMISTIC", "PESSIMISTIC", "OPTIMISTIC_WITH_ENTITY_GROUPS"] Whennull
, theconcurrency_mode
field will be omitted from the resulting object.delete_protection_state
(string
): State of delete protection for the database. Possible values: ["DELETE_PROTECTION_STATE_UNSPECIFIED", "DELETE_PROTECTION_ENABLED", "DELETE_PROTECTION_DISABLED"] Whennull
, thedelete_protection_state
field will be omitted from the resulting object.location_id
(string
): The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.name
(string
): 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][0-9]-/ 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.point_in_time_recovery_enablement
(string
): Whether to enable the PITR feature on this database. If 'POINT_IN_TIME_RECOVERY_ENABLED' is selected, reads are supported on selected versions of the data from within the past 7 days. versionRetentionPeriod and earliestVersionTime can be used to determine the supported versions. These include reads against any timestamp within the past hour and reads against 1-minute snapshots beyond 1 hour and within 7 days. If 'POINT_IN_TIME_RECOVERY_DISABLED' is selected, reads are supported on any version of the data from within the past 1 hour. Default value: "POINT_IN_TIME_RECOVERY_DISABLED" Possible values: ["POINT_IN_TIME_RECOVERY_ENABLED", "POINT_IN_TIME_RECOVERY_DISABLED"] Whennull
, thepoint_in_time_recovery_enablement
field will be omitted from the resulting object.project
(string
): Set theproject
field on the resulting resource block. Whennull
, theproject
field will be omitted from the resulting object.type
(string
): The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose. Possible values: ["FIRESTORE_NATIVE", "DATASTORE_MODE"]timeouts
(obj
): Set thetimeouts
field on the resulting resource block. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.firestore_database.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
google.firestore_database.newAttrs
constructs a new object with attributes and blocks configured for the firestore_database
Terraform resource.
Unlike google.firestore_database.new, this function will not inject the resource
block into the root Terraform document. Instead, this must be passed in as the attrs
argument for the
tf.withResource function to build a complete block.
This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to injecting into a complete block.
Args:
app_engine_integration_mode
(string
): The App Engine integration mode to use for this database. Possible values: ["ENABLED", "DISABLED"] Whennull
, theapp_engine_integration_mode
field will be omitted from the resulting object.concurrency_mode
(string
): The concurrency control mode to use for this database. Possible values: ["OPTIMISTIC", "PESSIMISTIC", "OPTIMISTIC_WITH_ENTITY_GROUPS"] Whennull
, theconcurrency_mode
field will be omitted from the resulting object.delete_protection_state
(string
): State of delete protection for the database. Possible values: ["DELETE_PROTECTION_STATE_UNSPECIFIED", "DELETE_PROTECTION_ENABLED", "DELETE_PROTECTION_DISABLED"] Whennull
, thedelete_protection_state
field will be omitted from the resulting object.location_id
(string
): The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.name
(string
): 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][0-9]-/ 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.point_in_time_recovery_enablement
(string
): Whether to enable the PITR feature on this database. If 'POINT_IN_TIME_RECOVERY_ENABLED' is selected, reads are supported on selected versions of the data from within the past 7 days. versionRetentionPeriod and earliestVersionTime can be used to determine the supported versions. These include reads against any timestamp within the past hour and reads against 1-minute snapshots beyond 1 hour and within 7 days. If 'POINT_IN_TIME_RECOVERY_DISABLED' is selected, reads are supported on any version of the data from within the past 1 hour. Default value: "POINT_IN_TIME_RECOVERY_DISABLED" Possible values: ["POINT_IN_TIME_RECOVERY_ENABLED", "POINT_IN_TIME_RECOVERY_DISABLED"] Whennull
, thepoint_in_time_recovery_enablement
field will be omitted from the resulting object.project
(string
): Set theproject
field on the resulting object. Whennull
, theproject
field will be omitted from the resulting object.type
(string
): The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose. Possible values: ["FIRESTORE_NATIVE", "DATASTORE_MODE"]timeouts
(obj
): Set thetimeouts
field on the resulting object. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.firestore_database.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
firestore_database
resource into the root Terraform configuration.
withAppEngineIntegrationMode()
google.string.withAppEngineIntegrationMode
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the app_engine_integration_mode field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theapp_engine_integration_mode
field.
withConcurrencyMode()
google.string.withConcurrencyMode
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the concurrency_mode field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theconcurrency_mode
field.
withDeleteProtectionState()
google.string.withDeleteProtectionState
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the delete_protection_state field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedelete_protection_state
field.
withLocationId()
google.string.withLocationId
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the location_id field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thelocation_id
field.
withName()
google.string.withName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thename
field.
withPointInTimeRecoveryEnablement()
google.string.withPointInTimeRecoveryEnablement
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the point_in_time_recovery_enablement field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thepoint_in_time_recovery_enablement
field.
withProject()
google.string.withProject
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the project field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theproject
field.
withTimeouts()
google.obj.withTimeouts
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will replace the map with the passed in value
. If you wish to instead merge the
passed in value to the existing map, use the google.obj.withTimeoutsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withTimeoutsMixin()
google.obj.withTimeoutsMixin
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will merge the passed in value to the existing map. If you wish
to instead replace the entire map with the passed in value
, use the google.obj.withTimeouts
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withType()
google.string.withType
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the type field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thetype
field.
new()
google.firestore_database.timeouts.new
constructs a new object with attributes and blocks configured for the timeouts
Terraform sub block.
Args:
create
(string
): Set thecreate
field on the resulting object. Whennull
, thecreate
field will be omitted from the resulting object.delete
(string
): Set thedelete
field on the resulting object. Whennull
, thedelete
field will be omitted from the resulting object.update
(string
): Set theupdate
field on the resulting object. Whennull
, theupdate
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
timeouts
sub block.