azurerm_cosmosdb_mongo_collectionNivis Nix constructor for the azurerm_cosmosdb_mongo_collection resource (provider azurerm). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
account_name,
database_name,
resource_group_name,
analytical_storage_ttl ? null,
default_ttl_seconds ? null,
id ? null,
cfg_name ? null,
shard_key ? null,
throughput ? null,
autoscale_settings ? null,
index ? null,
timeouts ? null,
overrides ? {}
}Required arguments
account_namedatabase_nameresource_group_name
Optional arguments
analytical_storage_ttl(defaults tonull)default_ttl_seconds(defaults tonull)id(defaults tonull)cfg_name(defaults tonull)shard_key(defaults tonull)throughput(defaults tonull)autoscale_settings(defaults tonull)index(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
system_indexes
Example
azurerm_cosmosdb_mongo_collection {
name = "cosmosdb_mongo_collection";
account_name = …; # required
database_name = …; # required
resource_group_name = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.