azurerm_iothub_shared_access_policy

Nivis Nix constructor for the azurerm_iothub_shared_access_policy 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,
  iothub_name,
  resource_group_name,
  device_connect ? null,
  id ? null,
  cfg_name ? null,
  registry_read ? null,
  registry_write ? null,
  service_connect ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • iothub_name
  • resource_group_name
Optional arguments
  • device_connect (defaults to null)
  • id (defaults to null)
  • cfg_name (defaults to null)
  • registry_read (defaults to null)
  • registry_write (defaults to null)
  • service_connect (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • primary_connection_string
  • primary_key
  • secondary_connection_string
  • secondary_key
Example
azurerm_iothub_shared_access_policy {
  name = "iothub_shared_access_policy";
  iothub_name = …;  # required
  resource_group_name = …;  # required
}

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