azurerm_lb_nat_ruleNivis Nix constructor for the azurerm_lb_nat_rule 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,
backend_port,
frontend_ip_configuration_name,
loadbalancer_id,
protocol,
resource_group_name,
backend_address_pool_id ? null,
floating_ip_enabled ? null,
frontend_port ? null,
frontend_port_end ? null,
frontend_port_start ? null,
id ? null,
idle_timeout_in_minutes ? null,
cfg_name ? null,
tcp_reset_enabled ? null,
timeouts ? null,
overrides ? {}
}Required arguments
backend_portfrontend_ip_configuration_nameloadbalancer_idprotocolresource_group_name
Optional arguments
backend_address_pool_id(defaults tonull)floating_ip_enabled(defaults tonull)frontend_port(defaults tonull)frontend_port_end(defaults tonull)frontend_port_start(defaults tonull)id(defaults tonull)idle_timeout_in_minutes(defaults tonull)cfg_name(defaults tonull)tcp_reset_enabled(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
backend_ip_configuration_idfrontend_ip_configuration_id
Example
azurerm_lb_nat_rule {
name = "lb_nat_rule";
backend_port = …; # required
frontend_ip_configuration_name = …; # required
loadbalancer_id = …; # required
protocol = …; # required
resource_group_name = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.