aws_routeNivis 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 tonull)core_network_arn(defaults tonull)destination_cidr_block(defaults tonull)destination_ipv6_cidr_block(defaults tonull)destination_prefix_list_id(defaults tonull)egress_only_gateway_id(defaults tonull)gateway_id(defaults tonull)id(defaults tonull)local_gateway_id(defaults tonull)nat_gateway_id(defaults tonull)network_interface_id(defaults tonull)odb_network_arn(defaults tonull)region(defaults tonull)transit_gateway_id(defaults tonull)vpc_endpoint_id(defaults tonull)vpc_peering_connection_id(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
igw_firewallinstance_idinstance_owner_idoriginstate
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.