azurerm_cosmosdb_mongo_collection

Nivis 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_name
  • database_name
  • resource_group_name
Optional arguments
  • analytical_storage_ttl (defaults to null)
  • default_ttl_seconds (defaults to null)
  • id (defaults to null)
  • cfg_name (defaults to null)
  • shard_key (defaults to null)
  • throughput (defaults to null)
  • autoscale_settings (defaults to null)
  • index (defaults to null)
  • timeouts (defaults to null)
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.