ns1_redirect

Nivis Nix constructor for the ns1_redirect resource (provider ns1). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.

Constructor
{
  name,
  domain,
  path,
  target,
  certificate_id ? null,
  forwarding_mode ? null,
  forwarding_type ? null,
  https_forced ? null,
  query_forwarding ? null,
  tags ? null,
  overrides ? {}
}
Required arguments
  • domain
  • path
  • target
Optional arguments
  • certificate_id (defaults to null)
  • forwarding_mode (defaults to null)
  • forwarding_type (defaults to null)
  • https_forced (defaults to null)
  • query_forwarding (defaults to null)
  • tags (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • https_enabled
  • id
  • last_updated
Example
ns1_redirect {
  name = "redirect";
  domain = …;  # required
  path = …;  # required
  target = …;  # required
}

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