aws_default_subnetNivis Nix constructor for the aws_default_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,
availability_zone,
assign_ipv6_address_on_creation ? null,
customer_owned_ipv4_pool ? null,
enable_dns64 ? null,
enable_resource_name_dns_a_record_on_launch ? null,
enable_resource_name_dns_aaaa_record_on_launch ? null,
force_destroy ? null,
id ? null,
ipv6_cidr_block ? null,
ipv6_native ? null,
map_customer_owned_ip_on_launch ? null,
map_public_ip_on_launch ? null,
private_dns_hostname_type_on_launch ? null,
region ? null,
tags ? null,
tags_all ? null,
timeouts ? null,
overrides ? {}
}Required arguments
availability_zone
Optional arguments
assign_ipv6_address_on_creation(defaults tonull)customer_owned_ipv4_pool(defaults tonull)enable_dns64(defaults tonull)enable_resource_name_dns_a_record_on_launch(defaults tonull)enable_resource_name_dns_aaaa_record_on_launch(defaults tonull)force_destroy(defaults tonull)id(defaults tonull)ipv6_cidr_block(defaults tonull)ipv6_native(defaults tonull)map_customer_owned_ip_on_launch(defaults tonull)map_public_ip_on_launch(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:
arnavailability_zone_idcidr_blockenable_lni_at_device_indexexisting_default_subnetipv6_cidr_block_association_idnetwork_firewall_connectivity_typeoutpost_arnowner_idvpc_id
Example
aws_default_subnet {
name = "default_subnet";
availability_zone = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.