aws_ec2_secondary_subnetNivis Nix constructor for the aws_ec2_secondary_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,
ipv4_cidr_block,
secondary_network_id,
availability_zone ? null,
availability_zone_id ? null,
region ? null,
tags ? null,
timeouts ? null,
overrides ? {}
}Required arguments
ipv4_cidr_blocksecondary_network_id
Optional arguments
availability_zone(defaults tonull)availability_zone_id(defaults tonull)region(defaults tonull)tags(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
arnidipv4_cidr_block_associationsowner_idsecondary_network_typesecondary_subnet_idstatetags_all
Example
aws_ec2_secondary_subnet {
name = "ec2_secondary_subnet";
ipv4_cidr_block = …; # required
secondary_network_id = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.