Skip to main content

@swamp/gcp/cloudfunctions

v2026.04.23.1

Google Cloud cloudfunctions infrastructure models

Repository

https://github.com/systeminit/swamp-extensions

Labels

gcpgoogle-cloudcloudfunctionscloudinfrastructure

Contents

Quality score

Verified by Swamp

How well-documented and verifiable this extension is.

100%

Grade A

  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types1/1earned
  • Has description1/1earned
  • At least one platform tag (or universal)1/1earned
  • Two or more platform tags (or universal)1/1earned
  • License declared1/1earned
  • Verified public repository2/2earned

Install

$ swamp extension pull @swamp/gcp/cloudfunctions

@swamp/gcp/cloudfunctions/functionsv2026.04.23.1functions.ts

Global Arguments

ArgumentTypeDescription
buildConfig?objectDescribes the Build step of the function that builds a container from the given source.
description?stringUser-provided description of a function.
environment?enumDescribe whether the function is 1st Gen or 2nd Gen.
eventTrigger?objectDescribes EventTrigger, used to request events to be sent from another service.
kmsKeyName?stringResource 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}`.
labels?recordLabels associated with this Cloud Function.
name?stringA user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
serviceConfig?objectDescribes the Service being deployed. Currently Supported: Cloud Run (fully managed).
upgradeInfo?objectInformation related to: * A function's eligibility for 1st Gen to 2nd Gen migration. * Current state of migration for function undergoing migration.
functionId?stringThe 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-/.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a functions
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
getGet a functions
ArgumentTypeDescription
identifierstringThe name of the functions
updateUpdate functions attributes
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after update (default: true)
deleteDelete the functions
ArgumentTypeDescription
identifierstringThe name of the functions
syncSync functions state from GCP
abort_function_upgradeabort function upgrade
commit_function_upgradecommit function upgrade
commit_function_upgrade_as_gen2commit function upgrade as gen2
detach_functiondetach function
generate_download_urlgenerate download url
generate_upload_urlgenerate upload url
ArgumentTypeDescription
environment?any
kmsKeyName?any
redirect_function_upgrade_trafficredirect function upgrade traffic
rollback_function_upgrade_trafficrollback function upgrade traffic
setup_function_upgrade_configsetup function upgrade config
ArgumentTypeDescription
buildConfigOverrides?any
serviceConfigOverrides?any
triggerServiceAccount?any

Resources

state(infinite)— Describes a Cloud Function that contains user computation executed in respons...
@swamp/gcp/cloudfunctions/locationsv2026.04.23.1locations.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
getGet a locations
ArgumentTypeDescription
identifierstringThe name of the locations
syncSync locations state from GCP

Resources

state(infinite)— A resource that represents a Google Cloud location.
@swamp/gcp/cloudfunctions/runtimesv2026.04.23.1runtimes.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
getGet a runtimes
ArgumentTypeDescription
identifierstringThe name of the runtimes
syncSync runtimes state from GCP

Resources

state(infinite)— Describes a runtime and any special information (e.g., deprecation status) re...