azurerm_cosmosdb_account

Nivis Nix constructor for the azurerm_cosmosdb_account 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,
  location,
  offer_type,
  resource_group_name,
  access_key_metadata_writes_enabled ? null,
  analytical_storage_enabled ? null,
  automatic_failover_enabled ? null,
  burst_capacity_enabled ? null,
  create_mode ? null,
  default_identity_type ? null,
  free_tier_enabled ? null,
  id ? null,
  ip_range_filter ? null,
  is_virtual_network_filter_enabled ? null,
  key_vault_key_id ? null,
  kind ? null,
  local_authentication_enabled ? null,
  minimal_tls_version ? null,
  mongo_server_version ? null,
  multiple_write_locations_enabled ? null,
  cfg_name ? null,
  network_acl_bypass_for_azure_services ? null,
  network_acl_bypass_ids ? null,
  partition_merge_enabled ? null,
  public_network_access_enabled ? null,
  tags ? null,
  analytical_storage ? null,
  backup ? null,
  capabilities ? null,
  capacity ? null,
  consistency_policy ? null,
  cors_rule ? null,
  geo_location ? null,
  identity ? null,
  restore ? null,
  timeouts ? null,
  virtual_network_rule ? null,
  overrides ? {}
}
Required arguments
  • location
  • offer_type
  • resource_group_name
Optional arguments
  • access_key_metadata_writes_enabled (defaults to null)
  • analytical_storage_enabled (defaults to null)
  • automatic_failover_enabled (defaults to null)
  • burst_capacity_enabled (defaults to null)
  • create_mode (defaults to null)
  • default_identity_type (defaults to null)
  • free_tier_enabled (defaults to null)
  • id (defaults to null)
  • ip_range_filter (defaults to null)
  • is_virtual_network_filter_enabled (defaults to null)
  • key_vault_key_id (defaults to null)
  • kind (defaults to null)
  • local_authentication_enabled (defaults to null)
  • minimal_tls_version (defaults to null)
  • mongo_server_version (defaults to null)
  • multiple_write_locations_enabled (defaults to null)
  • cfg_name (defaults to null)
  • network_acl_bypass_for_azure_services (defaults to null)
  • network_acl_bypass_ids (defaults to null)
  • partition_merge_enabled (defaults to null)
  • public_network_access_enabled (defaults to null)
  • tags (defaults to null)
  • analytical_storage (defaults to null)
  • backup (defaults to null)
  • capabilities (defaults to null)
  • capacity (defaults to null)
  • consistency_policy (defaults to null)
  • cors_rule (defaults to null)
  • geo_location (defaults to null)
  • identity (defaults to null)
  • restore (defaults to null)
  • timeouts (defaults to null)
  • virtual_network_rule (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • endpoint
  • primary_key
  • primary_mongodb_connection_string
  • primary_readonly_key
  • primary_readonly_mongodb_connection_string
  • primary_readonly_sql_connection_string
  • primary_sql_connection_string
  • read_endpoints
  • secondary_key
  • secondary_mongodb_connection_string
  • secondary_readonly_key
  • secondary_readonly_mongodb_connection_string
  • secondary_readonly_sql_connection_string
  • secondary_sql_connection_string
  • write_endpoints
Example
azurerm_cosmosdb_account {
  name = "cosmosdb_account";
  location = …;  # required
  offer_type = …;  # required
  resource_group_name = …;  # required
}

The reference for every provider is generated from the provider's own schema, not copied from its documentation.