You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"google_firestore_document" {
source="./modules/google-beta/r/google_firestore_document"# collection - (required) is a type of stringcollection=null# database - (optional) is a type of stringdatabase=null# document_id - (required) is a type of stringdocument_id=null# fields - (required) is a type of stringfields=null# project - (optional) is a type of stringproject=nulltimeouts=[{
create =null
delete =null
update =null
}]
}
variable"collection" {
description="(required) - The collection ID, relative to database. For example: chatrooms or chatrooms/my-document/private-messages."type=string
}
variable"database" {
description="(optional) - The Firestore database id. Defaults to '\"(default)\"'."type=stringdefault=null
}
variable"document_id" {
description="(required) - The client-assigned document ID to use for this document during creation."type=string
}
variable"fields" {
description="(required) - The document's [fields](https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.documents) formated as a json string."type=string
}
variable"project" {
description="(optional)"type=stringdefault=null
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
update =string
}
))
default=[]
}
resource"google_firestore_document""this" {
# collection - (required) is a type of stringcollection=var.collection# database - (optional) is a type of stringdatabase=var.database# document_id - (required) is a type of stringdocument_id=var.document_id# fields - (required) is a type of stringfields=var.fields# project - (optional) is a type of stringproject=var.projectdynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}