aws_route

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

Constructor
{
  name,
  route_table_id,
  carrier_gateway_id ? null,
  core_network_arn ? null,
  destination_cidr_block ? null,
  destination_ipv6_cidr_block ? null,
  destination_prefix_list_id ? null,
  egress_only_gateway_id ? null,
  gateway_id ? null,
  id ? null,
  local_gateway_id ? null,
  nat_gateway_id ? null,
  network_interface_id ? null,
  odb_network_arn ? null,
  region ? null,
  transit_gateway_id ? null,
  vpc_endpoint_id ? null,
  vpc_peering_connection_id ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • route_table_id
Optional arguments
  • carrier_gateway_id (defaults to null)
  • core_network_arn (defaults to null)
  • destination_cidr_block (defaults to null)
  • destination_ipv6_cidr_block (defaults to null)
  • destination_prefix_list_id (defaults to null)
  • egress_only_gateway_id (defaults to null)
  • gateway_id (defaults to null)
  • id (defaults to null)
  • local_gateway_id (defaults to null)
  • nat_gateway_id (defaults to null)
  • network_interface_id (defaults to null)
  • odb_network_arn (defaults to null)
  • region (defaults to null)
  • transit_gateway_id (defaults to null)
  • vpc_endpoint_id (defaults to null)
  • vpc_peering_connection_id (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • igw_firewall
  • instance_id
  • instance_owner_id
  • origin
  • state
Example
aws_route {
  name = "route";
  route_table_id = …;  # required
}

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