google_cloudfunctions2_functionNivis Nix constructor for the google_cloudfunctions2_function 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,
location,
deletion_policy ? null,
description ? null,
id ? null,
kms_key_name ? null,
labels ? null,
cfg_name ? null,
project ? null,
build_config ? null,
event_trigger ? null,
service_config ? null,
timeouts ? null,
overrides ? {}
}Required arguments
location
Optional arguments
deletion_policy(defaults tonull)description(defaults tonull)id(defaults tonull)kms_key_name(defaults tonull)labels(defaults tonull)cfg_name(defaults tonull)project(defaults tonull)build_config(defaults tonull)event_trigger(defaults tonull)service_config(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
effective_labelsenvironmentstateterraform_labelsupdate_timeurl
Example
google_cloudfunctions2_function {
name = "cloudfunctions2_function";
location = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.