aws_subnetNivis Nix constructor for the aws_subnet 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,
vpc_id,
assign_ipv6_address_on_creation ? null,
availability_zone ? null,
availability_zone_id ? null,
cidr_block ? null,
customer_owned_ipv4_pool ? null,
enable_dns64 ? null,
enable_lni_at_device_index ? null,
enable_resource_name_dns_a_record_on_launch ? null,
enable_resource_name_dns_aaaa_record_on_launch ? null,
id ? null,
ipv4_ipam_pool_id ? null,
ipv4_netmask_length ? null,
ipv6_cidr_block ? null,
ipv6_ipam_pool_id ? null,
ipv6_native ? null,
ipv6_netmask_length ? null,
map_customer_owned_ip_on_launch ? null,
map_public_ip_on_launch ? null,
outpost_arn ? null,
private_dns_hostname_type_on_launch ? null,
region ? null,
tags ? null,
tags_all ? null,
timeouts ? null,
overrides ? {}
}Required arguments
vpc_id
Optional arguments
assign_ipv6_address_on_creation(defaults tonull)availability_zone(defaults tonull)availability_zone_id(defaults tonull)cidr_block(defaults tonull)customer_owned_ipv4_pool(defaults tonull)enable_dns64(defaults tonull)enable_lni_at_device_index(defaults tonull)enable_resource_name_dns_a_record_on_launch(defaults tonull)enable_resource_name_dns_aaaa_record_on_launch(defaults tonull)id(defaults tonull)ipv4_ipam_pool_id(defaults tonull)ipv4_netmask_length(defaults tonull)ipv6_cidr_block(defaults tonull)ipv6_ipam_pool_id(defaults tonull)ipv6_native(defaults tonull)ipv6_netmask_length(defaults tonull)map_customer_owned_ip_on_launch(defaults tonull)map_public_ip_on_launch(defaults tonull)outpost_arn(defaults tonull)private_dns_hostname_type_on_launch(defaults tonull)region(defaults tonull)tags(defaults tonull)tags_all(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
arnipv6_cidr_block_association_idnetwork_firewall_connectivity_typeowner_id
Example
aws_subnet {
name = "subnet";
vpc_id = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.