azurerm_cosmosdb_sql_role_assignment

Nivis Nix constructor for the azurerm_cosmosdb_sql_role_assignment 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,
  principal_id,
  resource_group_name,
  role_definition_id,
  scope,
  id ? null,
  cfg_name ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • account_name
  • principal_id
  • resource_group_name
  • role_definition_id
  • scope
Optional arguments
  • id (defaults to null)
  • cfg_name (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • (none)
Example
azurerm_cosmosdb_sql_role_assignment {
  name = "cosmosdb_sql_role_assignment";
  account_name = …;  # required
  principal_id = …;  # required
  resource_group_name = …;  # required
  role_definition_id = …;  # required
  scope = …;  # required
}

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