google_compute_network_attachmentNivis Nix constructor for the google_compute_network_attachment resource (provider google). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
connection_preference,
subnetworks,
deletion_policy ? null,
description ? null,
cfg_name ? null,
producer_accept_lists ? null,
producer_reject_lists ? null,
project ? null,
region ? null,
timeouts ? null,
overrides ? {}
}Required arguments
connection_preferencesubnetworks
Optional arguments
deletion_policy(defaults tonull)description(defaults tonull)cfg_name(defaults tonull)producer_accept_lists(defaults tonull)producer_reject_lists(defaults tonull)project(defaults tonull)region(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
connection_endpointscreation_timestampfingerprintidkindnetworkself_linkself_link_with_id
Example
google_compute_network_attachment {
name = "compute_network_attachment";
connection_preference = …; # required
subnetworks = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.