1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. cloudfunctionsv2
  5. getFunction
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.cloudfunctionsv2.getFunction

Explore with Pulumi AI

Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

Get information about a Google Cloud Function (2nd gen). For more information see:

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const my_function = gcp.cloudfunctionsv2.getFunction({
    name: "function",
    location: "us-central1",
});
Copy
import pulumi
import pulumi_gcp as gcp

my_function = gcp.cloudfunctionsv2.get_function(name="function",
    location="us-central1")
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/cloudfunctionsv2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctionsv2.LookupFunction(ctx, &cloudfunctionsv2.LookupFunctionArgs{
			Name:     "function",
			Location: "us-central1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var my_function = Gcp.CloudFunctionsV2.GetFunction.Invoke(new()
    {
        Name = "function",
        Location = "us-central1",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudfunctionsv2.Cloudfunctionsv2Functions;
import com.pulumi.gcp.cloudfunctionsv2.inputs.GetFunctionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var my-function = Cloudfunctionsv2Functions.getFunction(GetFunctionArgs.builder()
            .name("function")
            .location("us-central1")
            .build());

    }
}
Copy
variables:
  my-function:
    fn::invoke:
      function: gcp:cloudfunctionsv2:getFunction
      arguments:
        name: function
        location: us-central1
Copy

Using getFunction

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getFunction(args: GetFunctionArgs, opts?: InvokeOptions): Promise<GetFunctionResult>
function getFunctionOutput(args: GetFunctionOutputArgs, opts?: InvokeOptions): Output<GetFunctionResult>
Copy
def get_function(location: Optional[str] = None,
                 name: Optional[str] = None,
                 project: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetFunctionResult
def get_function_output(location: Optional[pulumi.Input[str]] = None,
                 name: Optional[pulumi.Input[str]] = None,
                 project: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetFunctionResult]
Copy
func LookupFunction(ctx *Context, args *LookupFunctionArgs, opts ...InvokeOption) (*LookupFunctionResult, error)
func LookupFunctionOutput(ctx *Context, args *LookupFunctionOutputArgs, opts ...InvokeOption) LookupFunctionResultOutput
Copy

> Note: This function is named LookupFunction in the Go SDK.

public static class GetFunction 
{
    public static Task<GetFunctionResult> InvokeAsync(GetFunctionArgs args, InvokeOptions? opts = null)
    public static Output<GetFunctionResult> Invoke(GetFunctionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
public static Output<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gcp:cloudfunctionsv2/getFunction:getFunction
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Location This property is required. string
The location in which the resource belongs.


Name This property is required. string
The name of a Cloud Function (2nd gen).
Project string
The project in which the resource belongs. If it is not provided, the provider project is used.
Location This property is required. string
The location in which the resource belongs.


Name This property is required. string
The name of a Cloud Function (2nd gen).
Project string
The project in which the resource belongs. If it is not provided, the provider project is used.
location This property is required. String
The location in which the resource belongs.


name This property is required. String
The name of a Cloud Function (2nd gen).
project String
The project in which the resource belongs. If it is not provided, the provider project is used.
location This property is required. string
The location in which the resource belongs.


name This property is required. string
The name of a Cloud Function (2nd gen).
project string
The project in which the resource belongs. If it is not provided, the provider project is used.
location This property is required. str
The location in which the resource belongs.


name This property is required. str
The name of a Cloud Function (2nd gen).
project str
The project in which the resource belongs. If it is not provided, the provider project is used.
location This property is required. String
The location in which the resource belongs.


name This property is required. String
The name of a Cloud Function (2nd gen).
project String
The project in which the resource belongs. If it is not provided, the provider project is used.

getFunction Result

The following output properties are available:

BuildConfigs List<GetFunctionBuildConfig>
Description string
EffectiveLabels Dictionary<string, string>
Environment string
EventTriggers List<GetFunctionEventTrigger>
Id string
The provider-assigned unique ID for this managed resource.
KmsKeyName string
Labels Dictionary<string, string>
Location string
Name string
PulumiLabels Dictionary<string, string>
ServiceConfigs List<GetFunctionServiceConfig>
State string
UpdateTime string
Url string
Project string
BuildConfigs []GetFunctionBuildConfig
Description string
EffectiveLabels map[string]string
Environment string
EventTriggers []GetFunctionEventTrigger
Id string
The provider-assigned unique ID for this managed resource.
KmsKeyName string
Labels map[string]string
Location string
Name string
PulumiLabels map[string]string
ServiceConfigs []GetFunctionServiceConfig
State string
UpdateTime string
Url string
Project string
buildConfigs List<GetFunctionBuildConfig>
description String
effectiveLabels Map<String,String>
environment String
eventTriggers List<GetFunctionEventTrigger>
id String
The provider-assigned unique ID for this managed resource.
kmsKeyName String
labels Map<String,String>
location String
name String
pulumiLabels Map<String,String>
serviceConfigs List<GetFunctionServiceConfig>
state String
updateTime String
url String
project String
buildConfigs GetFunctionBuildConfig[]
description string
effectiveLabels {[key: string]: string}
environment string
eventTriggers GetFunctionEventTrigger[]
id string
The provider-assigned unique ID for this managed resource.
kmsKeyName string
labels {[key: string]: string}
location string
name string
pulumiLabels {[key: string]: string}
serviceConfigs GetFunctionServiceConfig[]
state string
updateTime string
url string
project string
buildConfigs List<Property Map>
description String
effectiveLabels Map<String>
environment String
eventTriggers List<Property Map>
id String
The provider-assigned unique ID for this managed resource.
kmsKeyName String
labels Map<String>
location String
name String
pulumiLabels Map<String>
serviceConfigs List<Property Map>
state String
updateTime String
url String
project String

Supporting Types

GetFunctionBuildConfig

AutomaticUpdatePolicies This property is required. List<GetFunctionBuildConfigAutomaticUpdatePolicy>
Security patches are applied automatically to the runtime without requiring the function to be redeployed.
Build This property is required. string
The Cloud Build name of the latest successful deployment of the function.
DockerRepository This property is required. string
User managed repository created in Artifact Registry optionally with a customer managed encryption key.
EntryPoint This property is required. string
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.
EnvironmentVariables This property is required. Dictionary<string, string>
User-provided build-time environment variables for the function.
OnDeployUpdatePolicies This property is required. List<GetFunctionBuildConfigOnDeployUpdatePolicy>
Security patches are only applied when a function is redeployed.
Runtime This property is required. string
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.
ServiceAccount This property is required. string
The fully-qualified name of the service account to be used for building the container.
Sources This property is required. List<GetFunctionBuildConfigSource>
The location of the function source code.
WorkerPool This property is required. string
Name of the Cloud Build Custom Worker Pool that should be used to build the function.
AutomaticUpdatePolicies This property is required. []GetFunctionBuildConfigAutomaticUpdatePolicy
Security patches are applied automatically to the runtime without requiring the function to be redeployed.
Build This property is required. string
The Cloud Build name of the latest successful deployment of the function.
DockerRepository This property is required. string
User managed repository created in Artifact Registry optionally with a customer managed encryption key.
EntryPoint This property is required. string
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.
EnvironmentVariables This property is required. map[string]string
User-provided build-time environment variables for the function.
OnDeployUpdatePolicies This property is required. []GetFunctionBuildConfigOnDeployUpdatePolicy
Security patches are only applied when a function is redeployed.
Runtime This property is required. string
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.
ServiceAccount This property is required. string
The fully-qualified name of the service account to be used for building the container.
Sources This property is required. []GetFunctionBuildConfigSource
The location of the function source code.
WorkerPool This property is required. string
Name of the Cloud Build Custom Worker Pool that should be used to build the function.
automaticUpdatePolicies This property is required. List<GetFunctionBuildConfigAutomaticUpdatePolicy>
Security patches are applied automatically to the runtime without requiring the function to be redeployed.
build This property is required. String
The Cloud Build name of the latest successful deployment of the function.
dockerRepository This property is required. String
User managed repository created in Artifact Registry optionally with a customer managed encryption key.
entryPoint This property is required. String
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.
environmentVariables This property is required. Map<String,String>
User-provided build-time environment variables for the function.
onDeployUpdatePolicies This property is required. List<GetFunctionBuildConfigOnDeployUpdatePolicy>
Security patches are only applied when a function is redeployed.
runtime This property is required. String
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.
serviceAccount This property is required. String
The fully-qualified name of the service account to be used for building the container.
sources This property is required. List<GetFunctionBuildConfigSource>
The location of the function source code.
workerPool This property is required. String
Name of the Cloud Build Custom Worker Pool that should be used to build the function.
automaticUpdatePolicies This property is required. GetFunctionBuildConfigAutomaticUpdatePolicy[]
Security patches are applied automatically to the runtime without requiring the function to be redeployed.
build This property is required. string
The Cloud Build name of the latest successful deployment of the function.
dockerRepository This property is required. string
User managed repository created in Artifact Registry optionally with a customer managed encryption key.
entryPoint This property is required. string
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.
environmentVariables This property is required. {[key: string]: string}
User-provided build-time environment variables for the function.
onDeployUpdatePolicies This property is required. GetFunctionBuildConfigOnDeployUpdatePolicy[]
Security patches are only applied when a function is redeployed.
runtime This property is required. string
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.
serviceAccount This property is required. string
The fully-qualified name of the service account to be used for building the container.
sources This property is required. GetFunctionBuildConfigSource[]
The location of the function source code.
workerPool This property is required. string
Name of the Cloud Build Custom Worker Pool that should be used to build the function.
automatic_update_policies This property is required. Sequence[GetFunctionBuildConfigAutomaticUpdatePolicy]
Security patches are applied automatically to the runtime without requiring the function to be redeployed.
build This property is required. str
The Cloud Build name of the latest successful deployment of the function.
docker_repository This property is required. str
User managed repository created in Artifact Registry optionally with a customer managed encryption key.
entry_point This property is required. str
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.
environment_variables This property is required. Mapping[str, str]
User-provided build-time environment variables for the function.
on_deploy_update_policies This property is required. Sequence[GetFunctionBuildConfigOnDeployUpdatePolicy]
Security patches are only applied when a function is redeployed.
runtime This property is required. str
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.
service_account This property is required. str
The fully-qualified name of the service account to be used for building the container.
sources This property is required. Sequence[GetFunctionBuildConfigSource]
The location of the function source code.
worker_pool This property is required. str
Name of the Cloud Build Custom Worker Pool that should be used to build the function.
automaticUpdatePolicies This property is required. List<Property Map>
Security patches are applied automatically to the runtime without requiring the function to be redeployed.
build This property is required. String
The Cloud Build name of the latest successful deployment of the function.
dockerRepository This property is required. String
User managed repository created in Artifact Registry optionally with a customer managed encryption key.
entryPoint This property is required. String
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.
environmentVariables This property is required. Map<String>
User-provided build-time environment variables for the function.
onDeployUpdatePolicies This property is required. List<Property Map>
Security patches are only applied when a function is redeployed.
runtime This property is required. String
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.
serviceAccount This property is required. String
The fully-qualified name of the service account to be used for building the container.
sources This property is required. List<Property Map>
The location of the function source code.
workerPool This property is required. String
Name of the Cloud Build Custom Worker Pool that should be used to build the function.

GetFunctionBuildConfigOnDeployUpdatePolicy

RuntimeVersion This property is required. string
The runtime version which was used during latest function deployment.
RuntimeVersion This property is required. string
The runtime version which was used during latest function deployment.
runtimeVersion This property is required. String
The runtime version which was used during latest function deployment.
runtimeVersion This property is required. string
The runtime version which was used during latest function deployment.
runtime_version This property is required. str
The runtime version which was used during latest function deployment.
runtimeVersion This property is required. String
The runtime version which was used during latest function deployment.

GetFunctionBuildConfigSource

RepoSources This property is required. List<GetFunctionBuildConfigSourceRepoSource>
If provided, get the source from this location in a Cloud Source Repository.
StorageSources This property is required. List<GetFunctionBuildConfigSourceStorageSource>
If provided, get the source from this location in Google Cloud Storage.
RepoSources This property is required. []GetFunctionBuildConfigSourceRepoSource
If provided, get the source from this location in a Cloud Source Repository.
StorageSources This property is required. []GetFunctionBuildConfigSourceStorageSource
If provided, get the source from this location in Google Cloud Storage.
repoSources This property is required. List<GetFunctionBuildConfigSourceRepoSource>
If provided, get the source from this location in a Cloud Source Repository.
storageSources This property is required. List<GetFunctionBuildConfigSourceStorageSource>
If provided, get the source from this location in Google Cloud Storage.
repoSources This property is required. GetFunctionBuildConfigSourceRepoSource[]
If provided, get the source from this location in a Cloud Source Repository.
storageSources This property is required. GetFunctionBuildConfigSourceStorageSource[]
If provided, get the source from this location in Google Cloud Storage.
repo_sources This property is required. Sequence[GetFunctionBuildConfigSourceRepoSource]
If provided, get the source from this location in a Cloud Source Repository.
storage_sources This property is required. Sequence[GetFunctionBuildConfigSourceStorageSource]
If provided, get the source from this location in Google Cloud Storage.
repoSources This property is required. List<Property Map>
If provided, get the source from this location in a Cloud Source Repository.
storageSources This property is required. List<Property Map>
If provided, get the source from this location in Google Cloud Storage.

GetFunctionBuildConfigSourceRepoSource

BranchName This property is required. string
Regex matching branches to build.
CommitSha This property is required. string
Regex matching tags to build.
Dir This property is required. string
Directory, relative to the source root, in which to run the build.
InvertRegex This property is required. bool
Only trigger a build if the revision regex does NOT match the revision regex.
ProjectId This property is required. string
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
RepoName This property is required. string
Name of the Cloud Source Repository.
TagName This property is required. string
Regex matching tags to build.
BranchName This property is required. string
Regex matching branches to build.
CommitSha This property is required. string
Regex matching tags to build.
Dir This property is required. string
Directory, relative to the source root, in which to run the build.
InvertRegex This property is required. bool
Only trigger a build if the revision regex does NOT match the revision regex.
ProjectId This property is required. string
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
RepoName This property is required. string
Name of the Cloud Source Repository.
TagName This property is required. string
Regex matching tags to build.
branchName This property is required. String
Regex matching branches to build.
commitSha This property is required. String
Regex matching tags to build.
dir This property is required. String
Directory, relative to the source root, in which to run the build.
invertRegex This property is required. Boolean
Only trigger a build if the revision regex does NOT match the revision regex.
projectId This property is required. String
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
repoName This property is required. String
Name of the Cloud Source Repository.
tagName This property is required. String
Regex matching tags to build.
branchName This property is required. string
Regex matching branches to build.
commitSha This property is required. string
Regex matching tags to build.
dir This property is required. string
Directory, relative to the source root, in which to run the build.
invertRegex This property is required. boolean
Only trigger a build if the revision regex does NOT match the revision regex.
projectId This property is required. string
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
repoName This property is required. string
Name of the Cloud Source Repository.
tagName This property is required. string
Regex matching tags to build.
branch_name This property is required. str
Regex matching branches to build.
commit_sha This property is required. str
Regex matching tags to build.
dir This property is required. str
Directory, relative to the source root, in which to run the build.
invert_regex This property is required. bool
Only trigger a build if the revision regex does NOT match the revision regex.
project_id This property is required. str
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
repo_name This property is required. str
Name of the Cloud Source Repository.
tag_name This property is required. str
Regex matching tags to build.
branchName This property is required. String
Regex matching branches to build.
commitSha This property is required. String
Regex matching tags to build.
dir This property is required. String
Directory, relative to the source root, in which to run the build.
invertRegex This property is required. Boolean
Only trigger a build if the revision regex does NOT match the revision regex.
projectId This property is required. String
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
repoName This property is required. String
Name of the Cloud Source Repository.
tagName This property is required. String
Regex matching tags to build.

GetFunctionBuildConfigSourceStorageSource

Bucket This property is required. string
Google Cloud Storage bucket containing the source
Generation This property is required. int
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
Object This property is required. string
Google Cloud Storage object containing the source.
Bucket This property is required. string
Google Cloud Storage bucket containing the source
Generation This property is required. int
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
Object This property is required. string
Google Cloud Storage object containing the source.
bucket This property is required. String
Google Cloud Storage bucket containing the source
generation This property is required. Integer
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
object This property is required. String
Google Cloud Storage object containing the source.
bucket This property is required. string
Google Cloud Storage bucket containing the source
generation This property is required. number
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
object This property is required. string
Google Cloud Storage object containing the source.
bucket This property is required. str
Google Cloud Storage bucket containing the source
generation This property is required. int
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
object This property is required. str
Google Cloud Storage object containing the source.
bucket This property is required. String
Google Cloud Storage bucket containing the source
generation This property is required. Number
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
object This property is required. String
Google Cloud Storage object containing the source.

GetFunctionEventTrigger

EventFilters This property is required. List<GetFunctionEventTriggerEventFilter>
Criteria used to filter events.
EventType This property is required. string
Required. The type of event to observe.
PubsubTopic This property is required. string
The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery.
RetryPolicy This property is required. string
Describes the retry policy in case of function's execution failure. Retried execution is charged as any other execution. Possible values: ["RETRY_POLICY_UNSPECIFIED", "RETRY_POLICY_DO_NOT_RETRY", "RETRY_POLICY_RETRY"]
ServiceAccountEmail This property is required. string
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
Trigger This property is required. string
Output only. The resource name of the Eventarc trigger.
TriggerRegion This property is required. string
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
EventFilters This property is required. []GetFunctionEventTriggerEventFilter
Criteria used to filter events.
EventType This property is required. string
Required. The type of event to observe.
PubsubTopic This property is required. string
The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery.
RetryPolicy This property is required. string
Describes the retry policy in case of function's execution failure. Retried execution is charged as any other execution. Possible values: ["RETRY_POLICY_UNSPECIFIED", "RETRY_POLICY_DO_NOT_RETRY", "RETRY_POLICY_RETRY"]
ServiceAccountEmail This property is required. string
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
Trigger This property is required. string
Output only. The resource name of the Eventarc trigger.
TriggerRegion This property is required. string
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
eventFilters This property is required. List<GetFunctionEventTriggerEventFilter>
Criteria used to filter events.
eventType This property is required. String
Required. The type of event to observe.
pubsubTopic This property is required. String
The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery.
retryPolicy This property is required. String
Describes the retry policy in case of function's execution failure. Retried execution is charged as any other execution. Possible values: ["RETRY_POLICY_UNSPECIFIED", "RETRY_POLICY_DO_NOT_RETRY", "RETRY_POLICY_RETRY"]
serviceAccountEmail This property is required. String
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
trigger This property is required. String
Output only. The resource name of the Eventarc trigger.
triggerRegion This property is required. String
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
eventFilters This property is required. GetFunctionEventTriggerEventFilter[]
Criteria used to filter events.
eventType This property is required. string
Required. The type of event to observe.
pubsubTopic This property is required. string
The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery.
retryPolicy This property is required. string
Describes the retry policy in case of function's execution failure. Retried execution is charged as any other execution. Possible values: ["RETRY_POLICY_UNSPECIFIED", "RETRY_POLICY_DO_NOT_RETRY", "RETRY_POLICY_RETRY"]
serviceAccountEmail This property is required. string
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
trigger This property is required. string
Output only. The resource name of the Eventarc trigger.
triggerRegion This property is required. string
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
event_filters This property is required. Sequence[GetFunctionEventTriggerEventFilter]
Criteria used to filter events.
event_type This property is required. str
Required. The type of event to observe.
pubsub_topic This property is required. str
The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery.
retry_policy This property is required. str
Describes the retry policy in case of function's execution failure. Retried execution is charged as any other execution. Possible values: ["RETRY_POLICY_UNSPECIFIED", "RETRY_POLICY_DO_NOT_RETRY", "RETRY_POLICY_RETRY"]
service_account_email This property is required. str
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
trigger This property is required. str
Output only. The resource name of the Eventarc trigger.
trigger_region This property is required. str
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
eventFilters This property is required. List<Property Map>
Criteria used to filter events.
eventType This property is required. String
Required. The type of event to observe.
pubsubTopic This property is required. String
The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery.
retryPolicy This property is required. String
Describes the retry policy in case of function's execution failure. Retried execution is charged as any other execution. Possible values: ["RETRY_POLICY_UNSPECIFIED", "RETRY_POLICY_DO_NOT_RETRY", "RETRY_POLICY_RETRY"]
serviceAccountEmail This property is required. String
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
trigger This property is required. String
Output only. The resource name of the Eventarc trigger.
triggerRegion This property is required. String
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.

GetFunctionEventTriggerEventFilter

Attribute This property is required. string
'Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. Use the 'gcloud eventarc providers describe' command to learn more about events and their attributes. Do not filter for the 'type' attribute here, as this is already achieved by the resource's 'event_type' attribute.
Operator This property is required. string
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is 'match-path-pattern'. See documentation on path patterns here'
Value This property is required. string
Required. The value for the attribute. If the operator field is set as 'match-path-pattern', this value can be a path pattern instead of an exact value.
Attribute This property is required. string
'Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. Use the 'gcloud eventarc providers describe' command to learn more about events and their attributes. Do not filter for the 'type' attribute here, as this is already achieved by the resource's 'event_type' attribute.
Operator This property is required. string
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is 'match-path-pattern'. See documentation on path patterns here'
Value This property is required. string
Required. The value for the attribute. If the operator field is set as 'match-path-pattern', this value can be a path pattern instead of an exact value.
attribute This property is required. String
'Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. Use the 'gcloud eventarc providers describe' command to learn more about events and their attributes. Do not filter for the 'type' attribute here, as this is already achieved by the resource's 'event_type' attribute.
operator This property is required. String
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is 'match-path-pattern'. See documentation on path patterns here'
value This property is required. String
Required. The value for the attribute. If the operator field is set as 'match-path-pattern', this value can be a path pattern instead of an exact value.
attribute This property is required. string
'Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. Use the 'gcloud eventarc providers describe' command to learn more about events and their attributes. Do not filter for the 'type' attribute here, as this is already achieved by the resource's 'event_type' attribute.
operator This property is required. string
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is 'match-path-pattern'. See documentation on path patterns here'
value This property is required. string
Required. The value for the attribute. If the operator field is set as 'match-path-pattern', this value can be a path pattern instead of an exact value.
attribute This property is required. str
'Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. Use the 'gcloud eventarc providers describe' command to learn more about events and their attributes. Do not filter for the 'type' attribute here, as this is already achieved by the resource's 'event_type' attribute.
operator This property is required. str
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is 'match-path-pattern'. See documentation on path patterns here'
value This property is required. str
Required. The value for the attribute. If the operator field is set as 'match-path-pattern', this value can be a path pattern instead of an exact value.
attribute This property is required. String
'Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. Use the 'gcloud eventarc providers describe' command to learn more about events and their attributes. Do not filter for the 'type' attribute here, as this is already achieved by the resource's 'event_type' attribute.
operator This property is required. String
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is 'match-path-pattern'. See documentation on path patterns here'
value This property is required. String
Required. The value for the attribute. If the operator field is set as 'match-path-pattern', this value can be a path pattern instead of an exact value.

GetFunctionServiceConfig

AllTrafficOnLatestRevision This property is required. bool
Whether 100% of traffic is routed to the latest revision. Defaults to true.
AvailableCpu This property is required. string
The number of CPUs used in a single container instance. Default value is calculated from available memory.
AvailableMemory This property is required. string
The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes.
BinaryAuthorizationPolicy This property is required. string
The binary authorization policy to be checked when deploying the Cloud Run service.
EnvironmentVariables This property is required. Dictionary<string, string>
Environment variables that shall be available during function execution.
GcfUri This property is required. string
URIs of the Service deployed
IngressSettings This property is required. string
Available ingress settings. Defaults to "ALLOW_ALL" if unspecified. Default value: "ALLOW_ALL" Possible values: ["ALLOW_ALL", "ALLOW_INTERNAL_ONLY", "ALLOW_INTERNAL_AND_GCLB"]
MaxInstanceCount This property is required. int
The limit on the maximum number of function instances that may coexist at a given time.
MaxInstanceRequestConcurrency This property is required. int
Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
MinInstanceCount This property is required. int
The limit on the minimum number of function instances that may coexist at a given time.
SecretEnvironmentVariables This property is required. List<GetFunctionServiceConfigSecretEnvironmentVariable>
Secret environment variables configuration.
SecretVolumes This property is required. List<GetFunctionServiceConfigSecretVolume>
Secret volumes configuration.
Service This property is required. string
Name of the service associated with a Function.
ServiceAccountEmail This property is required. string
The email of the service account for this function.
TimeoutSeconds This property is required. int
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
Uri This property is required. string
URI of the Service deployed.
VpcConnector This property is required. string
The Serverless VPC Access connector that this cloud function can connect to.
VpcConnectorEgressSettings This property is required. string
Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]
AllTrafficOnLatestRevision This property is required. bool
Whether 100% of traffic is routed to the latest revision. Defaults to true.
AvailableCpu This property is required. string
The number of CPUs used in a single container instance. Default value is calculated from available memory.
AvailableMemory This property is required. string
The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes.
BinaryAuthorizationPolicy This property is required. string
The binary authorization policy to be checked when deploying the Cloud Run service.
EnvironmentVariables This property is required. map[string]string
Environment variables that shall be available during function execution.
GcfUri This property is required. string
URIs of the Service deployed
IngressSettings This property is required. string
Available ingress settings. Defaults to "ALLOW_ALL" if unspecified. Default value: "ALLOW_ALL" Possible values: ["ALLOW_ALL", "ALLOW_INTERNAL_ONLY", "ALLOW_INTERNAL_AND_GCLB"]
MaxInstanceCount This property is required. int
The limit on the maximum number of function instances that may coexist at a given time.
MaxInstanceRequestConcurrency This property is required. int
Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
MinInstanceCount This property is required. int
The limit on the minimum number of function instances that may coexist at a given time.
SecretEnvironmentVariables This property is required. []GetFunctionServiceConfigSecretEnvironmentVariable
Secret environment variables configuration.
SecretVolumes This property is required. []GetFunctionServiceConfigSecretVolume
Secret volumes configuration.
Service This property is required. string
Name of the service associated with a Function.
ServiceAccountEmail This property is required. string
The email of the service account for this function.
TimeoutSeconds This property is required. int
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
Uri This property is required. string
URI of the Service deployed.
VpcConnector This property is required. string
The Serverless VPC Access connector that this cloud function can connect to.
VpcConnectorEgressSettings This property is required. string
Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]
allTrafficOnLatestRevision This property is required. Boolean
Whether 100% of traffic is routed to the latest revision. Defaults to true.
availableCpu This property is required. String
The number of CPUs used in a single container instance. Default value is calculated from available memory.
availableMemory This property is required. String
The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes.
binaryAuthorizationPolicy This property is required. String
The binary authorization policy to be checked when deploying the Cloud Run service.
environmentVariables This property is required. Map<String,String>
Environment variables that shall be available during function execution.
gcfUri This property is required. String
URIs of the Service deployed
ingressSettings This property is required. String
Available ingress settings. Defaults to "ALLOW_ALL" if unspecified. Default value: "ALLOW_ALL" Possible values: ["ALLOW_ALL", "ALLOW_INTERNAL_ONLY", "ALLOW_INTERNAL_AND_GCLB"]
maxInstanceCount This property is required. Integer
The limit on the maximum number of function instances that may coexist at a given time.
maxInstanceRequestConcurrency This property is required. Integer
Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
minInstanceCount This property is required. Integer
The limit on the minimum number of function instances that may coexist at a given time.
secretEnvironmentVariables This property is required. List<GetFunctionServiceConfigSecretEnvironmentVariable>
Secret environment variables configuration.
secretVolumes This property is required. List<GetFunctionServiceConfigSecretVolume>
Secret volumes configuration.
service This property is required. String
Name of the service associated with a Function.
serviceAccountEmail This property is required. String
The email of the service account for this function.
timeoutSeconds This property is required. Integer
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
uri This property is required. String
URI of the Service deployed.
vpcConnector This property is required. String
The Serverless VPC Access connector that this cloud function can connect to.
vpcConnectorEgressSettings This property is required. String
Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]
allTrafficOnLatestRevision This property is required. boolean
Whether 100% of traffic is routed to the latest revision. Defaults to true.
availableCpu This property is required. string
The number of CPUs used in a single container instance. Default value is calculated from available memory.
availableMemory This property is required. string
The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes.
binaryAuthorizationPolicy This property is required. string
The binary authorization policy to be checked when deploying the Cloud Run service.
environmentVariables This property is required. {[key: string]: string}
Environment variables that shall be available during function execution.
gcfUri This property is required. string
URIs of the Service deployed
ingressSettings This property is required. string
Available ingress settings. Defaults to "ALLOW_ALL" if unspecified. Default value: "ALLOW_ALL" Possible values: ["ALLOW_ALL", "ALLOW_INTERNAL_ONLY", "ALLOW_INTERNAL_AND_GCLB"]
maxInstanceCount This property is required. number
The limit on the maximum number of function instances that may coexist at a given time.
maxInstanceRequestConcurrency This property is required. number
Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
minInstanceCount This property is required. number
The limit on the minimum number of function instances that may coexist at a given time.
secretEnvironmentVariables This property is required. GetFunctionServiceConfigSecretEnvironmentVariable[]
Secret environment variables configuration.
secretVolumes This property is required. GetFunctionServiceConfigSecretVolume[]
Secret volumes configuration.
service This property is required. string
Name of the service associated with a Function.
serviceAccountEmail This property is required. string
The email of the service account for this function.
timeoutSeconds This property is required. number
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
uri This property is required. string
URI of the Service deployed.
vpcConnector This property is required. string
The Serverless VPC Access connector that this cloud function can connect to.
vpcConnectorEgressSettings This property is required. string
Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]
all_traffic_on_latest_revision This property is required. bool
Whether 100% of traffic is routed to the latest revision. Defaults to true.
available_cpu This property is required. str
The number of CPUs used in a single container instance. Default value is calculated from available memory.
available_memory This property is required. str
The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes.
binary_authorization_policy This property is required. str
The binary authorization policy to be checked when deploying the Cloud Run service.
environment_variables This property is required. Mapping[str, str]
Environment variables that shall be available during function execution.
gcf_uri This property is required. str
URIs of the Service deployed
ingress_settings This property is required. str
Available ingress settings. Defaults to "ALLOW_ALL" if unspecified. Default value: "ALLOW_ALL" Possible values: ["ALLOW_ALL", "ALLOW_INTERNAL_ONLY", "ALLOW_INTERNAL_AND_GCLB"]
max_instance_count This property is required. int
The limit on the maximum number of function instances that may coexist at a given time.
max_instance_request_concurrency This property is required. int
Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
min_instance_count This property is required. int
The limit on the minimum number of function instances that may coexist at a given time.
secret_environment_variables This property is required. Sequence[GetFunctionServiceConfigSecretEnvironmentVariable]
Secret environment variables configuration.
secret_volumes This property is required. Sequence[GetFunctionServiceConfigSecretVolume]
Secret volumes configuration.
service This property is required. str
Name of the service associated with a Function.
service_account_email This property is required. str
The email of the service account for this function.
timeout_seconds This property is required. int
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
uri This property is required. str
URI of the Service deployed.
vpc_connector This property is required. str
The Serverless VPC Access connector that this cloud function can connect to.
vpc_connector_egress_settings This property is required. str
Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]
allTrafficOnLatestRevision This property is required. Boolean
Whether 100% of traffic is routed to the latest revision. Defaults to true.
availableCpu This property is required. String
The number of CPUs used in a single container instance. Default value is calculated from available memory.
availableMemory This property is required. String
The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes.
binaryAuthorizationPolicy This property is required. String
The binary authorization policy to be checked when deploying the Cloud Run service.
environmentVariables This property is required. Map<String>
Environment variables that shall be available during function execution.
gcfUri This property is required. String
URIs of the Service deployed
ingressSettings This property is required. String
Available ingress settings. Defaults to "ALLOW_ALL" if unspecified. Default value: "ALLOW_ALL" Possible values: ["ALLOW_ALL", "ALLOW_INTERNAL_ONLY", "ALLOW_INTERNAL_AND_GCLB"]
maxInstanceCount This property is required. Number
The limit on the maximum number of function instances that may coexist at a given time.
maxInstanceRequestConcurrency This property is required. Number
Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
minInstanceCount This property is required. Number
The limit on the minimum number of function instances that may coexist at a given time.
secretEnvironmentVariables This property is required. List<Property Map>
Secret environment variables configuration.
secretVolumes This property is required. List<Property Map>
Secret volumes configuration.
service This property is required. String
Name of the service associated with a Function.
serviceAccountEmail This property is required. String
The email of the service account for this function.
timeoutSeconds This property is required. Number
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
uri This property is required. String
URI of the Service deployed.
vpcConnector This property is required. String
The Serverless VPC Access connector that this cloud function can connect to.
vpcConnectorEgressSettings This property is required. String
Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]

GetFunctionServiceConfigSecretEnvironmentVariable

Key This property is required. string
Name of the environment variable.
ProjectId This property is required. string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
Secret This property is required. string
Name of the secret in secret manager (not the full resource name).
Version This property is required. string
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
Key This property is required. string
Name of the environment variable.
ProjectId This property is required. string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
Secret This property is required. string
Name of the secret in secret manager (not the full resource name).
Version This property is required. string
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
key This property is required. String
Name of the environment variable.
projectId This property is required. String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
secret This property is required. String
Name of the secret in secret manager (not the full resource name).
version This property is required. String
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
key This property is required. string
Name of the environment variable.
projectId This property is required. string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
secret This property is required. string
Name of the secret in secret manager (not the full resource name).
version This property is required. string
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
key This property is required. str
Name of the environment variable.
project_id This property is required. str
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
secret This property is required. str
Name of the secret in secret manager (not the full resource name).
version This property is required. str
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
key This property is required. String
Name of the environment variable.
projectId This property is required. String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
secret This property is required. String
Name of the secret in secret manager (not the full resource name).
version This property is required. String
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.

GetFunctionServiceConfigSecretVolume

MountPath This property is required. string
The path within the container to mount the secret volume. For example, setting the mountPath as /etc/secrets would mount the secret value files under the /etc/secrets directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
ProjectId This property is required. string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
Secret This property is required. string
Name of the secret in secret manager (not the full resource name).
Versions This property is required. List<GetFunctionServiceConfigSecretVolumeVersion>
List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.'
MountPath This property is required. string
The path within the container to mount the secret volume. For example, setting the mountPath as /etc/secrets would mount the secret value files under the /etc/secrets directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
ProjectId This property is required. string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
Secret This property is required. string
Name of the secret in secret manager (not the full resource name).
Versions This property is required. []GetFunctionServiceConfigSecretVolumeVersion
List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.'
mountPath This property is required. String
The path within the container to mount the secret volume. For example, setting the mountPath as /etc/secrets would mount the secret value files under the /etc/secrets directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
projectId This property is required. String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
secret This property is required. String
Name of the secret in secret manager (not the full resource name).
versions This property is required. List<GetFunctionServiceConfigSecretVolumeVersion>
List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.'
mountPath This property is required. string
The path within the container to mount the secret volume. For example, setting the mountPath as /etc/secrets would mount the secret value files under the /etc/secrets directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
projectId This property is required. string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
secret This property is required. string
Name of the secret in secret manager (not the full resource name).
versions This property is required. GetFunctionServiceConfigSecretVolumeVersion[]
List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.'
mount_path This property is required. str
The path within the container to mount the secret volume. For example, setting the mountPath as /etc/secrets would mount the secret value files under the /etc/secrets directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
project_id This property is required. str
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
secret This property is required. str
Name of the secret in secret manager (not the full resource name).
versions This property is required. Sequence[GetFunctionServiceConfigSecretVolumeVersion]
List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.'
mountPath This property is required. String
The path within the container to mount the secret volume. For example, setting the mountPath as /etc/secrets would mount the secret value files under the /etc/secrets directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
projectId This property is required. String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
secret This property is required. String
Name of the secret in secret manager (not the full resource name).
versions This property is required. List<Property Map>
List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.'

GetFunctionServiceConfigSecretVolumeVersion

Path This property is required. string
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.
Version This property is required. string
Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.
Path This property is required. string
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.
Version This property is required. string
Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.
path This property is required. String
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.
version This property is required. String
Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.
path This property is required. string
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.
version This property is required. string
Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.
path This property is required. str
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.
version This property is required. str
Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.
path This property is required. String
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.
version This property is required. String
Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi