azurerm_cosmosdb_accountNivis 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
locationoffer_typeresource_group_name
Optional arguments
access_key_metadata_writes_enabled(defaults tonull)analytical_storage_enabled(defaults tonull)automatic_failover_enabled(defaults tonull)burst_capacity_enabled(defaults tonull)create_mode(defaults tonull)default_identity_type(defaults tonull)free_tier_enabled(defaults tonull)id(defaults tonull)ip_range_filter(defaults tonull)is_virtual_network_filter_enabled(defaults tonull)key_vault_key_id(defaults tonull)kind(defaults tonull)local_authentication_enabled(defaults tonull)minimal_tls_version(defaults tonull)mongo_server_version(defaults tonull)multiple_write_locations_enabled(defaults tonull)cfg_name(defaults tonull)network_acl_bypass_for_azure_services(defaults tonull)network_acl_bypass_ids(defaults tonull)partition_merge_enabled(defaults tonull)public_network_access_enabled(defaults tonull)tags(defaults tonull)analytical_storage(defaults tonull)backup(defaults tonull)capabilities(defaults tonull)capacity(defaults tonull)consistency_policy(defaults tonull)cors_rule(defaults tonull)geo_location(defaults tonull)identity(defaults tonull)restore(defaults tonull)timeouts(defaults tonull)virtual_network_rule(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
endpointprimary_keyprimary_mongodb_connection_stringprimary_readonly_keyprimary_readonly_mongodb_connection_stringprimary_readonly_sql_connection_stringprimary_sql_connection_stringread_endpointssecondary_keysecondary_mongodb_connection_stringsecondary_readonly_keysecondary_readonly_mongodb_connection_stringsecondary_readonly_sql_connection_stringsecondary_sql_connection_stringwrite_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.