Google Cloud v8.22.0 published on Thursday, Mar 13, 2025 by Pulumi
gcp.cloudfunctionsv2.getFunction
Explore with Pulumi AI
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",
});
import pulumi
import pulumi_gcp as gcp
my_function = gcp.cloudfunctionsv2.get_function(name="function",
    location="us-central1")
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
	})
}
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",
    });
});
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());
    }
}
variables:
  my-function:
    fn::invoke:
      function: gcp:cloudfunctionsv2:getFunction
      arguments:
        name: function
        location: us-central1
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>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]func LookupFunction(ctx *Context, args *LookupFunctionArgs, opts ...InvokeOption) (*LookupFunctionResult, error)
func LookupFunctionOutput(ctx *Context, args *LookupFunctionOutputArgs, opts ...InvokeOption) LookupFunctionResultOutput> 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)
}public static CompletableFuture<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
public static Output<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:cloudfunctionsv2/getFunction:getFunction
  arguments:
    # arguments dictionaryThe following arguments are supported:
getFunction Result
The following output properties are available:
- BuildConfigs List<GetFunction Build Config> 
- Description string
- EffectiveLabels Dictionary<string, string>
- Environment string
- EventTriggers List<GetFunction Event Trigger> 
- Id string
- The provider-assigned unique ID for this managed resource.
- KmsKey stringName 
- Labels Dictionary<string, string>
- Location string
- Name string
- PulumiLabels Dictionary<string, string>
- ServiceConfigs List<GetFunction Service Config> 
- State string
- UpdateTime string
- Url string
- Project string
- BuildConfigs []GetFunction Build Config 
- Description string
- EffectiveLabels map[string]string
- Environment string
- EventTriggers []GetFunction Event Trigger 
- Id string
- The provider-assigned unique ID for this managed resource.
- KmsKey stringName 
- Labels map[string]string
- Location string
- Name string
- PulumiLabels map[string]string
- ServiceConfigs []GetFunction Service Config 
- State string
- UpdateTime string
- Url string
- Project string
- buildConfigs List<GetFunction Build Config> 
- description String
- effectiveLabels Map<String,String>
- environment String
- eventTriggers List<GetFunction Event Trigger> 
- id String
- The provider-assigned unique ID for this managed resource.
- kmsKey StringName 
- labels Map<String,String>
- location String
- name String
- pulumiLabels Map<String,String>
- serviceConfigs List<GetFunction Service Config> 
- state String
- updateTime String
- url String
- project String
- buildConfigs GetFunction Build Config[] 
- description string
- effectiveLabels {[key: string]: string}
- environment string
- eventTriggers GetFunction Event Trigger[] 
- id string
- The provider-assigned unique ID for this managed resource.
- kmsKey stringName 
- labels {[key: string]: string}
- location string
- name string
- pulumiLabels {[key: string]: string}
- serviceConfigs GetFunction Service Config[] 
- state string
- updateTime string
- url string
- project string
- build_configs Sequence[GetFunction Build Config] 
- description str
- effective_labels Mapping[str, str]
- environment str
- event_triggers Sequence[GetFunction Event Trigger] 
- id str
- The provider-assigned unique ID for this managed resource.
- kms_key_ strname 
- labels Mapping[str, str]
- location str
- name str
- pulumi_labels Mapping[str, str]
- service_configs Sequence[GetFunction Service Config] 
- state str
- update_time str
- url str
- project str
- 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.
- kmsKey StringName 
- 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   
- AutomaticUpdate List<GetPolicies Function Build Config Automatic Update Policy> 
- Security patches are applied automatically to the runtime without requiring the function to be redeployed.
- Build string
- The Cloud Build name of the latest successful deployment of the function.
- DockerRepository string
- User managed repository created in Artifact Registry optionally with a customer managed encryption key.
- EntryPoint 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 Dictionary<string, string>
- User-provided build-time environment variables for the function.
- OnDeploy List<GetUpdate Policies Function Build Config On Deploy Update Policy> 
- Security patches are only applied when a function is redeployed.
- Runtime string
- The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.
- ServiceAccount string
- The fully-qualified name of the service account to be used for building the container.
- Sources
List<GetFunction Build Config Source> 
- The location of the function source code.
- WorkerPool string
- Name of the Cloud Build Custom Worker Pool that should be used to build the function.
- AutomaticUpdate []GetPolicies Function Build Config Automatic Update Policy 
- Security patches are applied automatically to the runtime without requiring the function to be redeployed.
- Build string
- The Cloud Build name of the latest successful deployment of the function.
- DockerRepository string
- User managed repository created in Artifact Registry optionally with a customer managed encryption key.
- EntryPoint 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 map[string]string
- User-provided build-time environment variables for the function.
- OnDeploy []GetUpdate Policies Function Build Config On Deploy Update Policy 
- Security patches are only applied when a function is redeployed.
- Runtime string
- The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.
- ServiceAccount string
- The fully-qualified name of the service account to be used for building the container.
- Sources
[]GetFunction Build Config Source 
- The location of the function source code.
- WorkerPool string
- Name of the Cloud Build Custom Worker Pool that should be used to build the function.
- automaticUpdate List<GetPolicies Function Build Config Automatic Update Policy> 
- Security patches are applied automatically to the runtime without requiring the function to be redeployed.
- build String
- The Cloud Build name of the latest successful deployment of the function.
- dockerRepository String
- User managed repository created in Artifact Registry optionally with a customer managed encryption key.
- entryPoint 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 Map<String,String>
- User-provided build-time environment variables for the function.
- onDeploy List<GetUpdate Policies Function Build Config On Deploy Update Policy> 
- Security patches are only applied when a function is redeployed.
- runtime String
- The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.
- serviceAccount String
- The fully-qualified name of the service account to be used for building the container.
- sources
List<GetFunction Build Config Source> 
- The location of the function source code.
- workerPool String
- Name of the Cloud Build Custom Worker Pool that should be used to build the function.
- automaticUpdate GetPolicies Function Build Config Automatic Update Policy[] 
- Security patches are applied automatically to the runtime without requiring the function to be redeployed.
- build string
- The Cloud Build name of the latest successful deployment of the function.
- dockerRepository string
- User managed repository created in Artifact Registry optionally with a customer managed encryption key.
- entryPoint 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 {[key: string]: string}
- User-provided build-time environment variables for the function.
- onDeploy GetUpdate Policies Function Build Config On Deploy Update Policy[] 
- Security patches are only applied when a function is redeployed.
- runtime string
- The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.
- serviceAccount string
- The fully-qualified name of the service account to be used for building the container.
- sources
GetFunction Build Config Source[] 
- The location of the function source code.
- workerPool string
- Name of the Cloud Build Custom Worker Pool that should be used to build the function.
- automatic_update_ Sequence[Getpolicies Function Build Config Automatic Update Policy] 
- Security patches are applied automatically to the runtime without requiring the function to be redeployed.
- build str
- The Cloud Build name of the latest successful deployment of the function.
- docker_repository str
- User managed repository created in Artifact Registry optionally with a customer managed encryption key.
- entry_point 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 Mapping[str, str]
- User-provided build-time environment variables for the function.
- on_deploy_ Sequence[Getupdate_ policies Function Build Config On Deploy Update Policy] 
- Security patches are only applied when a function is redeployed.
- runtime str
- The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.
- service_account str
- The fully-qualified name of the service account to be used for building the container.
- sources
Sequence[GetFunction Build Config Source] 
- The location of the function source code.
- worker_pool str
- Name of the Cloud Build Custom Worker Pool that should be used to build the function.
- automaticUpdate List<Property Map>Policies 
- Security patches are applied automatically to the runtime without requiring the function to be redeployed.
- build String
- The Cloud Build name of the latest successful deployment of the function.
- dockerRepository String
- User managed repository created in Artifact Registry optionally with a customer managed encryption key.
- entryPoint 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 Map<String>
- User-provided build-time environment variables for the function.
- onDeploy List<Property Map>Update Policies 
- Security patches are only applied when a function is redeployed.
- runtime String
- The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.
- serviceAccount String
- The fully-qualified name of the service account to be used for building the container.
- sources List<Property Map>
- The location of the function source code.
- workerPool String
- Name of the Cloud Build Custom Worker Pool that should be used to build the function.
GetFunctionBuildConfigOnDeployUpdatePolicy       
- RuntimeVersion string
- The runtime version which was used during latest function deployment.
- RuntimeVersion string
- The runtime version which was used during latest function deployment.
- runtimeVersion String
- The runtime version which was used during latest function deployment.
- runtimeVersion string
- The runtime version which was used during latest function deployment.
- runtime_version str
- The runtime version which was used during latest function deployment.
- runtimeVersion String
- The runtime version which was used during latest function deployment.
GetFunctionBuildConfigSource    
- RepoSources List<GetFunction Build Config Source Repo Source> 
- If provided, get the source from this location in a Cloud Source Repository.
- StorageSources List<GetFunction Build Config Source Storage Source> 
- If provided, get the source from this location in Google Cloud Storage.
- RepoSources []GetFunction Build Config Source Repo Source 
- If provided, get the source from this location in a Cloud Source Repository.
- StorageSources []GetFunction Build Config Source Storage Source 
- If provided, get the source from this location in Google Cloud Storage.
- repoSources List<GetFunction Build Config Source Repo Source> 
- If provided, get the source from this location in a Cloud Source Repository.
- storageSources List<GetFunction Build Config Source Storage Source> 
- If provided, get the source from this location in Google Cloud Storage.
- repoSources GetFunction Build Config Source Repo Source[] 
- If provided, get the source from this location in a Cloud Source Repository.
- storageSources GetFunction Build Config Source Storage Source[] 
- If provided, get the source from this location in Google Cloud Storage.
- repo_sources Sequence[GetFunction Build Config Source Repo Source] 
- If provided, get the source from this location in a Cloud Source Repository.
- storage_sources Sequence[GetFunction Build Config Source Storage Source] 
- If provided, get the source from this location in Google Cloud Storage.
- repoSources List<Property Map>
- If provided, get the source from this location in a Cloud Source Repository.
- storageSources List<Property Map>
- If provided, get the source from this location in Google Cloud Storage.
GetFunctionBuildConfigSourceRepoSource      
- BranchName string
- Regex matching branches to build.
- CommitSha string
- Regex matching tags to build.
- Dir string
- Directory, relative to the source root, in which to run the build.
- InvertRegex bool
- Only trigger a build if the revision regex does NOT match the revision regex.
- ProjectId string
- ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- RepoName string
- Name of the Cloud Source Repository.
- TagName string
- Regex matching tags to build.
- BranchName string
- Regex matching branches to build.
- CommitSha string
- Regex matching tags to build.
- Dir string
- Directory, relative to the source root, in which to run the build.
- InvertRegex bool
- Only trigger a build if the revision regex does NOT match the revision regex.
- ProjectId string
- ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- RepoName string
- Name of the Cloud Source Repository.
- TagName string
- Regex matching tags to build.
- branchName String
- Regex matching branches to build.
- commitSha String
- Regex matching tags to build.
- dir String
- Directory, relative to the source root, in which to run the build.
- invertRegex Boolean
- Only trigger a build if the revision regex does NOT match the revision regex.
- projectId String
- ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- repoName String
- Name of the Cloud Source Repository.
- tagName String
- Regex matching tags to build.
- branchName string
- Regex matching branches to build.
- commitSha string
- Regex matching tags to build.
- dir string
- Directory, relative to the source root, in which to run the build.
- invertRegex boolean
- Only trigger a build if the revision regex does NOT match the revision regex.
- projectId string
- ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- repoName string
- Name of the Cloud Source Repository.
- tagName string
- Regex matching tags to build.
- branch_name str
- Regex matching branches to build.
- commit_sha str
- Regex matching tags to build.
- dir str
- Directory, relative to the source root, in which to run the build.
- invert_regex bool
- Only trigger a build if the revision regex does NOT match the revision regex.
- project_id str
- ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- repo_name str
- Name of the Cloud Source Repository.
- tag_name str
- Regex matching tags to build.
- branchName String
- Regex matching branches to build.
- commitSha String
- Regex matching tags to build.
- dir String
- Directory, relative to the source root, in which to run the build.
- invertRegex Boolean
- Only trigger a build if the revision regex does NOT match the revision regex.
- projectId String
- ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- repoName String
- Name of the Cloud Source Repository.
- tagName String
- Regex matching tags to build.
GetFunctionBuildConfigSourceStorageSource      
- Bucket string
- Google Cloud Storage bucket containing the source
- Generation int
- Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
- Object string
- Google Cloud Storage object containing the source.
- Bucket string
- Google Cloud Storage bucket containing the source
- Generation int
- Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
- Object string
- Google Cloud Storage object containing the source.
- bucket String
- Google Cloud Storage bucket containing the source
- generation Integer
- Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
- object String
- Google Cloud Storage object containing the source.
- bucket string
- Google Cloud Storage bucket containing the source
- generation number
- Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
- object string
- Google Cloud Storage object containing the source.
- bucket str
- Google Cloud Storage bucket containing the source
- generation int
- Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
- object str
- Google Cloud Storage object containing the source.
- bucket String
- Google Cloud Storage bucket containing the source
- generation Number
- Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
- object String
- Google Cloud Storage object containing the source.
GetFunctionEventTrigger   
- EventFilters List<GetFunction Event Trigger Event Filter> 
- Criteria used to filter events.
- EventType string
- Required. The type of event to observe.
- PubsubTopic 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 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"]
- ServiceAccount stringEmail 
- 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 string
- Output only. The resource name of the Eventarc trigger.
- TriggerRegion 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 []GetFunction Event Trigger Event Filter 
- Criteria used to filter events.
- EventType string
- Required. The type of event to observe.
- PubsubTopic 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 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"]
- ServiceAccount stringEmail 
- 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 string
- Output only. The resource name of the Eventarc trigger.
- TriggerRegion 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 List<GetFunction Event Trigger Event Filter> 
- Criteria used to filter events.
- eventType String
- Required. The type of event to observe.
- pubsubTopic 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 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"]
- serviceAccount StringEmail 
- 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 String
- Output only. The resource name of the Eventarc trigger.
- triggerRegion 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 GetFunction Event Trigger Event Filter[] 
- Criteria used to filter events.
- eventType string
- Required. The type of event to observe.
- pubsubTopic 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 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"]
- serviceAccount stringEmail 
- 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 string
- Output only. The resource name of the Eventarc trigger.
- triggerRegion 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 Sequence[GetFunction Event Trigger Event Filter] 
- Criteria used to filter events.
- event_type str
- Required. The type of event to observe.
- pubsub_topic 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 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_ stremail 
- 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 str
- Output only. The resource name of the Eventarc trigger.
- trigger_region 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 List<Property Map>
- Criteria used to filter events.
- eventType String
- Required. The type of event to observe.
- pubsubTopic 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 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"]
- serviceAccount StringEmail 
- 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 String
- Output only. The resource name of the Eventarc trigger.
- triggerRegion 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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   
- AllTraffic boolOn Latest Revision 
- Whether 100% of traffic is routed to the latest revision. Defaults to true.
- AvailableCpu string
- The number of CPUs used in a single container instance. Default value is calculated from available memory.
- AvailableMemory 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.
- EnvironmentVariables Dictionary<string, string>
- Environment variables that shall be available during function execution.
- GcfUri string
- URIs of the Service deployed
- IngressSettings 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"]
- MaxInstance intCount 
- The limit on the maximum number of function instances that may coexist at a given time.
- MaxInstance intRequest Concurrency 
- Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- MinInstance intCount 
- The limit on the minimum number of function instances that may coexist at a given time.
- SecretEnvironment List<GetVariables Function Service Config Secret Environment Variable> 
- Secret environment variables configuration.
- SecretVolumes List<GetFunction Service Config Secret Volume> 
- Secret volumes configuration.
- Service string
- Name of the service associated with a Function.
- ServiceAccount stringEmail 
- The email of the service account for this function.
- TimeoutSeconds 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 string
- URI of the Service deployed.
- VpcConnector string
- The Serverless VPC Access connector that this cloud function can connect to.
- VpcConnector stringEgress Settings 
- Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]
- AllTraffic boolOn Latest Revision 
- Whether 100% of traffic is routed to the latest revision. Defaults to true.
- AvailableCpu string
- The number of CPUs used in a single container instance. Default value is calculated from available memory.
- AvailableMemory 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.
- EnvironmentVariables map[string]string
- Environment variables that shall be available during function execution.
- GcfUri string
- URIs of the Service deployed
- IngressSettings 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"]
- MaxInstance intCount 
- The limit on the maximum number of function instances that may coexist at a given time.
- MaxInstance intRequest Concurrency 
- Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- MinInstance intCount 
- The limit on the minimum number of function instances that may coexist at a given time.
- SecretEnvironment []GetVariables Function Service Config Secret Environment Variable 
- Secret environment variables configuration.
- SecretVolumes []GetFunction Service Config Secret Volume 
- Secret volumes configuration.
- Service string
- Name of the service associated with a Function.
- ServiceAccount stringEmail 
- The email of the service account for this function.
- TimeoutSeconds 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 string
- URI of the Service deployed.
- VpcConnector string
- The Serverless VPC Access connector that this cloud function can connect to.
- VpcConnector stringEgress Settings 
- Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]
- allTraffic BooleanOn Latest Revision 
- Whether 100% of traffic is routed to the latest revision. Defaults to true.
- availableCpu String
- The number of CPUs used in a single container instance. Default value is calculated from available memory.
- availableMemory 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.
- environmentVariables Map<String,String>
- Environment variables that shall be available during function execution.
- gcfUri String
- URIs of the Service deployed
- ingressSettings 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"]
- maxInstance IntegerCount 
- The limit on the maximum number of function instances that may coexist at a given time.
- maxInstance IntegerRequest Concurrency 
- Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- minInstance IntegerCount 
- The limit on the minimum number of function instances that may coexist at a given time.
- secretEnvironment List<GetVariables Function Service Config Secret Environment Variable> 
- Secret environment variables configuration.
- secretVolumes List<GetFunction Service Config Secret Volume> 
- Secret volumes configuration.
- service String
- Name of the service associated with a Function.
- serviceAccount StringEmail 
- The email of the service account for this function.
- timeoutSeconds 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 String
- URI of the Service deployed.
- vpcConnector String
- The Serverless VPC Access connector that this cloud function can connect to.
- vpcConnector StringEgress Settings 
- Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]
- allTraffic booleanOn Latest Revision 
- Whether 100% of traffic is routed to the latest revision. Defaults to true.
- availableCpu string
- The number of CPUs used in a single container instance. Default value is calculated from available memory.
- availableMemory 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.
- environmentVariables {[key: string]: string}
- Environment variables that shall be available during function execution.
- gcfUri string
- URIs of the Service deployed
- ingressSettings 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"]
- maxInstance numberCount 
- The limit on the maximum number of function instances that may coexist at a given time.
- maxInstance numberRequest Concurrency 
- Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- minInstance numberCount 
- The limit on the minimum number of function instances that may coexist at a given time.
- secretEnvironment GetVariables Function Service Config Secret Environment Variable[] 
- Secret environment variables configuration.
- secretVolumes GetFunction Service Config Secret Volume[] 
- Secret volumes configuration.
- service string
- Name of the service associated with a Function.
- serviceAccount stringEmail 
- The email of the service account for this function.
- timeoutSeconds 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 string
- URI of the Service deployed.
- vpcConnector string
- The Serverless VPC Access connector that this cloud function can connect to.
- vpcConnector stringEgress Settings 
- Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]
- all_traffic_ boolon_ latest_ revision 
- Whether 100% of traffic is routed to the latest revision. Defaults to true.
- available_cpu str
- The number of CPUs used in a single container instance. Default value is calculated from available memory.
- available_memory 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.
- environment_variables Mapping[str, str]
- Environment variables that shall be available during function execution.
- gcf_uri str
- URIs of the Service deployed
- ingress_settings 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_ intcount 
- The limit on the maximum number of function instances that may coexist at a given time.
- max_instance_ intrequest_ concurrency 
- Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- min_instance_ intcount 
- The limit on the minimum number of function instances that may coexist at a given time.
- secret_environment_ Sequence[Getvariables Function Service Config Secret Environment Variable] 
- Secret environment variables configuration.
- secret_volumes Sequence[GetFunction Service Config Secret Volume] 
- Secret volumes configuration.
- service str
- Name of the service associated with a Function.
- service_account_ stremail 
- The email of the service account for this function.
- timeout_seconds 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 str
- URI of the Service deployed.
- vpc_connector str
- The Serverless VPC Access connector that this cloud function can connect to.
- vpc_connector_ stregress_ settings 
- Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]
- allTraffic BooleanOn Latest Revision 
- Whether 100% of traffic is routed to the latest revision. Defaults to true.
- availableCpu String
- The number of CPUs used in a single container instance. Default value is calculated from available memory.
- availableMemory 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.
- environmentVariables Map<String>
- Environment variables that shall be available during function execution.
- gcfUri String
- URIs of the Service deployed
- ingressSettings 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"]
- maxInstance NumberCount 
- The limit on the maximum number of function instances that may coexist at a given time.
- maxInstance NumberRequest Concurrency 
- Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- minInstance NumberCount 
- The limit on the minimum number of function instances that may coexist at a given time.
- secretEnvironment List<Property Map>Variables 
- Secret environment variables configuration.
- secretVolumes List<Property Map>
- Secret volumes configuration.
- service String
- Name of the service associated with a Function.
- serviceAccount StringEmail 
- The email of the service account for this function.
- timeoutSeconds 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 String
- URI of the Service deployed.
- vpcConnector String
- The Serverless VPC Access connector that this cloud function can connect to.
- vpcConnector StringEgress Settings 
- Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]
GetFunctionServiceConfigSecretEnvironmentVariable      
- Key string
- Name of the environment variable.
- ProjectId 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 string
- Name of the secret in secret manager (not the full resource name).
- Version 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 string
- Name of the environment variable.
- ProjectId 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 string
- Name of the secret in secret manager (not the full resource name).
- Version 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 String
- Name of the environment variable.
- projectId 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 String
- Name of the secret in secret manager (not the full resource name).
- version 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 string
- Name of the environment variable.
- projectId 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 string
- Name of the secret in secret manager (not the full resource name).
- version 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 str
- Name of the environment variable.
- project_id 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 str
- Name of the secret in secret manager (not the full resource name).
- version 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 String
- Name of the environment variable.
- projectId 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 String
- Name of the secret in secret manager (not the full resource name).
- version 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 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 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 string
- Name of the secret in secret manager (not the full resource name).
- Versions
List<GetFunction Service Config Secret Volume Version> 
- 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 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 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 string
- Name of the secret in secret manager (not the full resource name).
- Versions
[]GetFunction Service Config Secret Volume Version 
- 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 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 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 String
- Name of the secret in secret manager (not the full resource name).
- versions
List<GetFunction Service Config Secret Volume Version> 
- 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 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 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 string
- Name of the secret in secret manager (not the full resource name).
- versions
GetFunction Service Config Secret Volume Version[] 
- 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 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 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 str
- Name of the secret in secret manager (not the full resource name).
- versions
Sequence[GetFunction Service Config Secret Volume Version] 
- 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 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 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 String
- Name of the secret in secret manager (not the full resource name).
- versions 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 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 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 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 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 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 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 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 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 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 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 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 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-betaTerraform Provider.