FunctionArgs

data class FunctionArgs(val buildConfig: Output<BuildConfigArgs>? = null, val description: Output<String>? = null, val environment: Output<FunctionEnvironment>? = null, val eventTrigger: Output<EventTriggerArgs>? = null, val functionId: Output<String>? = null, val kmsKeyName: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val serviceConfig: Output<ServiceConfigArgs>? = null) : ConvertibleToJava<FunctionArgs>

Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return ALREADY_EXISTS error.

Constructors

Link copied to clipboard
fun FunctionArgs(buildConfig: Output<BuildConfigArgs>? = null, description: Output<String>? = null, environment: Output<FunctionEnvironment>? = null, eventTrigger: Output<EventTriggerArgs>? = null, functionId: Output<String>? = null, kmsKeyName: Output<String>? = null, labels: Output<Map<String, String>>? = null, location: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, serviceConfig: Output<ServiceConfigArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): FunctionArgs

Properties

Link copied to clipboard
val buildConfig: Output<BuildConfigArgs>? = null

Describes the Build step of the function that builds a container from the given source.

Link copied to clipboard
val description: Output<String>? = null

User-provided description of a function.

Link copied to clipboard
val environment: Output<FunctionEnvironment>? = null

Describe whether the function is 1st Gen or 2nd Gen.

Link copied to clipboard
val eventTrigger: Output<EventTriggerArgs>? = null

An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.

Link copied to clipboard
val functionId: Output<String>? = null

The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.

Link copied to clipboard
val kmsKeyName: Output<String>? = null

Preview Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Labels associated with this Cloud Function.

Link copied to clipboard
val location: Output<String>? = null
Link copied to clipboard
val name: Output<String>? = null

A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val serviceConfig: Output<ServiceConfigArgs>? = null

Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed). //*/