azurerm_iothub_shared_access_policyNivis 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_nameresource_group_name
Optional arguments
device_connect(defaults tonull)id(defaults tonull)cfg_name(defaults tonull)registry_read(defaults tonull)registry_write(defaults tonull)service_connect(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
primary_connection_stringprimary_keysecondary_connection_stringsecondary_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.