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"azurerm_cosmosdb_mongo_collection" {
source="./modules/azurerm/r/azurerm_cosmosdb_mongo_collection"# account_name - (required) is a type of stringaccount_name=null# database_name - (required) is a type of stringdatabase_name=null# default_ttl_seconds - (optional) is a type of numberdefault_ttl_seconds=null# name - (required) is a type of stringname=null# resource_group_name - (required) is a type of stringresource_group_name=null# shard_key - (optional) is a type of stringshard_key=null# throughput - (optional) is a type of numberthroughput=nullautoscale_settings=[{
max_throughput =null
}]
index=[{
keys = []
unique =null
}]
timeouts=[{
create =null
delete =null
read =null
update =null
}]
}
resource"azurerm_cosmosdb_mongo_collection""this" {
# account_name - (required) is a type of stringaccount_name=var.account_name# database_name - (required) is a type of stringdatabase_name=var.database_name# default_ttl_seconds - (optional) is a type of numberdefault_ttl_seconds=var.default_ttl_seconds# name - (required) is a type of stringname=var.name# resource_group_name - (required) is a type of stringresource_group_name=var.resource_group_name# shard_key - (optional) is a type of stringshard_key=var.shard_key# throughput - (optional) is a type of numberthroughput=var.throughputdynamic"autoscale_settings" {
for_each=var.autoscale_settingscontent {
# max_throughput - (optional) is a type of numbermax_throughput=autoscale_settings.value["max_throughput"]
}
}
dynamic"index" {
for_each=var.indexcontent {
# keys - (required) is a type of list of stringkeys=index.value["keys"]
# unique - (optional) is a type of boolunique=index.value["unique"]
}
}
dynamic"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"]
# read - (optional) is a type of stringread=timeouts.value["read"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}
output"id" {
description="returns a string"value=azurerm_cosmosdb_mongo_collection.this.id
}
output"system_indexes" {
description="returns a list of object"value=azurerm_cosmosdb_mongo_collection.this.system_indexes
}
output"throughput" {
description="returns a number"value=azurerm_cosmosdb_mongo_collection.this.throughput
}
output"this" {
value=azurerm_cosmosdb_mongo_collection.this
}