Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:cloudfunctionsv2/getFunction:getFunction
arguments:
# arguments dictionary
The following arguments are supported:
getFunction Result
The following output properties are available:
- Build
Configs List<GetFunction Build Config> - Description string
- Effective
Labels Dictionary<string, string> - Environment string
- Event
Triggers List<GetFunction Event Trigger> - Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringName - Labels Dictionary<string, string>
- Location string
- Name string
- Pulumi
Labels Dictionary<string, string> - Service
Configs List<GetFunction Service Config> - State string
- Update
Time string - Url string
- Project string
- Build
Configs []GetFunction Build Config - Description string
- Effective
Labels map[string]string - Environment string
- Event
Triggers []GetFunction Event Trigger - Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringName - Labels map[string]string
- Location string
- Name string
- Pulumi
Labels map[string]string - Service
Configs []GetFunction Service Config - State string
- Update
Time string - Url string
- Project string
- build
Configs List<GetFunction Build Config> - description String
- effective
Labels Map<String,String> - environment String
- event
Triggers List<GetFunction Event Trigger> - id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringName - labels Map<String,String>
- location String
- name String
- pulumi
Labels Map<String,String> - service
Configs List<GetFunction Service Config> - state String
- update
Time String - url String
- project String
- build
Configs GetFunction Build Config[] - description string
- effective
Labels {[key: string]: string} - environment string
- event
Triggers GetFunction Event Trigger[] - id string
- The provider-assigned unique ID for this managed resource.
- kms
Key stringName - labels {[key: string]: string}
- location string
- name string
- pulumi
Labels {[key: string]: string} - service
Configs GetFunction Service Config[] - state string
- update
Time 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
- build
Configs List<Property Map> - description String
- effective
Labels Map<String> - environment String
- event
Triggers List<Property Map> - id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringName - labels Map<String>
- location String
- name String
- pulumi
Labels Map<String> - service
Configs List<Property Map> - state String
- update
Time String - url String
- project String
Supporting Types
GetFunctionBuildConfig
- Automatic
Update 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.
- Docker
Repository string - User managed repository created in Artifact Registry optionally with a customer managed encryption key.
- Entry
Point 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.
- Environment
Variables Dictionary<string, string> - User-provided build-time environment variables for the function.
- On
Deploy 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.
- Service
Account string - The fully-qualified name of the service account to be used for building the container.
- Sources
List<Get
Function Build Config Source> - The location of the function source code.
- Worker
Pool string - Name of the Cloud Build Custom Worker Pool that should be used to build the function.
- Automatic
Update []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.
- Docker
Repository string - User managed repository created in Artifact Registry optionally with a customer managed encryption key.
- Entry
Point 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.
- Environment
Variables map[string]string - User-provided build-time environment variables for the function.
- On
Deploy []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.
- Service
Account string - The fully-qualified name of the service account to be used for building the container.
- Sources
[]Get
Function Build Config Source - The location of the function source code.
- Worker
Pool string - Name of the Cloud Build Custom Worker Pool that should be used to build the function.
- automatic
Update 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.
- docker
Repository String - User managed repository created in Artifact Registry optionally with a customer managed encryption key.
- entry
Point 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.
- environment
Variables Map<String,String> - User-provided build-time environment variables for the function.
- on
Deploy 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.
- service
Account String - The fully-qualified name of the service account to be used for building the container.
- sources
List<Get
Function Build Config Source> - The location of the function source code.
- worker
Pool String - Name of the Cloud Build Custom Worker Pool that should be used to build the function.
- automatic
Update 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.
- docker
Repository string - User managed repository created in Artifact Registry optionally with a customer managed encryption key.
- entry
Point 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.
- environment
Variables {[key: string]: string} - User-provided build-time environment variables for the function.
- on
Deploy 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.
- service
Account string - The fully-qualified name of the service account to be used for building the container.
- sources
Get
Function Build Config Source[] - The location of the function source code.
- worker
Pool 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[Get
Function 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.
- automatic
Update 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.
- docker
Repository String - User managed repository created in Artifact Registry optionally with a customer managed encryption key.
- entry
Point 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.
- environment
Variables Map<String> - User-provided build-time environment variables for the function.
- on
Deploy 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.
- service
Account 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.
- worker
Pool String - Name of the Cloud Build Custom Worker Pool that should be used to build the function.
GetFunctionBuildConfigOnDeployUpdatePolicy
- Runtime
Version string - The runtime version which was used during latest function deployment.
- Runtime
Version string - The runtime version which was used during latest function deployment.
- runtime
Version String - The runtime version which was used during latest function deployment.
- runtime
Version string - The runtime version which was used during latest function deployment.
- runtime_
version str - The runtime version which was used during latest function deployment.
- runtime
Version String - The runtime version which was used during latest function deployment.
GetFunctionBuildConfigSource
- Repo
Sources List<GetFunction Build Config Source Repo Source> - If provided, get the source from this location in a Cloud Source Repository.
- Storage
Sources List<GetFunction Build Config Source Storage Source> - If provided, get the source from this location in Google Cloud Storage.
- Repo
Sources []GetFunction Build Config Source Repo Source - If provided, get the source from this location in a Cloud Source Repository.
- Storage
Sources []GetFunction Build Config Source Storage Source - If provided, get the source from this location in Google Cloud Storage.
- repo
Sources List<GetFunction Build Config Source Repo Source> - If provided, get the source from this location in a Cloud Source Repository.
- storage
Sources List<GetFunction Build Config Source Storage Source> - If provided, get the source from this location in Google Cloud Storage.
- repo
Sources GetFunction Build Config Source Repo Source[] - If provided, get the source from this location in a Cloud Source Repository.
- storage
Sources 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.
- repo
Sources List<Property Map> - If provided, get the source from this location in a Cloud Source Repository.
- storage
Sources List<Property Map> - If provided, get the source from this location in Google Cloud Storage.
GetFunctionBuildConfigSourceRepoSource
- Branch
Name string - Regex matching branches to build.
- Commit
Sha string - Regex matching tags to build.
- Dir string
- 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 string - ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- Repo
Name string - Name of the Cloud Source Repository.
- Tag
Name string - Regex matching tags to build.
- Branch
Name string - Regex matching branches to build.
- Commit
Sha string - Regex matching tags to build.
- Dir string
- 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 string - ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- Repo
Name string - Name of the Cloud Source Repository.
- Tag
Name string - Regex matching tags to build.
- branch
Name String - Regex matching branches to build.
- commit
Sha String - Regex matching tags to build.
- dir String
- Directory, relative to the source root, in which to run the build.
- invert
Regex Boolean - Only trigger a build if the revision regex does NOT match the revision regex.
- project
Id String - ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- repo
Name String - Name of the Cloud Source Repository.
- tag
Name String - Regex matching tags to build.
- branch
Name string - Regex matching branches to build.
- commit
Sha string - Regex matching tags to build.
- dir string
- Directory, relative to the source root, in which to run the build.
- invert
Regex boolean - Only trigger a build if the revision regex does NOT match the revision regex.
- project
Id string - ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- repo
Name string - Name of the Cloud Source Repository.
- tag
Name 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.
- branch
Name String - Regex matching branches to build.
- commit
Sha String - Regex matching tags to build.
- dir String
- Directory, relative to the source root, in which to run the build.
- invert
Regex Boolean - Only trigger a build if the revision regex does NOT match the revision regex.
- project
Id String - ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- repo
Name String - Name of the Cloud Source Repository.
- tag
Name 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
- Event
Filters List<GetFunction Event Trigger Event Filter> - Criteria used to filter events.
- Event
Type string - Required. The type of event to observe.
- Pubsub
Topic string - 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 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"]
- Service
Account 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.
- Trigger
Region 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 []GetFunction Event Trigger Event Filter - Criteria used to filter events.
- Event
Type string - Required. The type of event to observe.
- Pubsub
Topic string - 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 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"]
- Service
Account 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.
- Trigger
Region 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 List<GetFunction Event Trigger Event Filter> - Criteria used to filter events.
- event
Type String - Required. The type of event to observe.
- pubsub
Topic String - 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 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"]
- service
Account 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.
- trigger
Region 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 GetFunction Event Trigger Event Filter[] - Criteria used to filter events.
- event
Type string - Required. The type of event to observe.
- pubsub
Topic string - 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 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"]
- service
Account 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.
- trigger
Region 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.
- event
Filters List<Property Map> - Criteria used to filter events.
- event
Type String - Required. The type of event to observe.
- pubsub
Topic String - 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 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"]
- service
Account 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.
- trigger
Region 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
- All
Traffic boolOn Latest Revision - Whether 100% of traffic is routed to the latest revision. Defaults to true.
- Available
Cpu string - The number of CPUs used in a single container instance. Default value is calculated from available memory.
- Available
Memory 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.
- Environment
Variables Dictionary<string, string> - Environment variables that shall be available during function execution.
- Gcf
Uri string - URIs of the Service deployed
- Ingress
Settings 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"]
- 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 List<GetVariables Function Service Config Secret Environment Variable> - Secret environment variables configuration.
- Secret
Volumes List<GetFunction Service Config Secret Volume> - Secret volumes configuration.
- Service string
- Name of the service associated with a Function.
- Service
Account stringEmail - 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 string
- URI of the Service deployed.
- Vpc
Connector string - The Serverless VPC Access connector that this cloud function can connect to.
- Vpc
Connector 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 string - The number of CPUs used in a single container instance. Default value is calculated from available memory.
- Available
Memory 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.
- Environment
Variables map[string]string - Environment variables that shall be available during function execution.
- Gcf
Uri string - URIs of the Service deployed
- Ingress
Settings 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"]
- 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 []GetVariables Function Service Config Secret Environment Variable - Secret environment variables configuration.
- Secret
Volumes []GetFunction Service Config Secret Volume - Secret volumes configuration.
- Service string
- Name of the service associated with a Function.
- Service
Account stringEmail - 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 string
- URI of the Service deployed.
- Vpc
Connector string - The Serverless VPC Access connector that this cloud function can connect to.
- Vpc
Connector stringEgress Settings - Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]
- all
Traffic BooleanOn Latest Revision - Whether 100% of traffic is routed to the latest revision. Defaults to true.
- available
Cpu String - The number of CPUs used in a single container instance. Default value is calculated from available memory.
- available
Memory 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.
- environment
Variables Map<String,String> - Environment variables that shall be available during function execution.
- gcf
Uri String - URIs of the Service deployed
- ingress
Settings 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"]
- max
Instance IntegerCount - The limit on the maximum number of function instances that may coexist at a given time.
- max
Instance IntegerRequest Concurrency - Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- min
Instance IntegerCount - The limit on the minimum number of function instances that may coexist at a given time.
- secret
Environment List<GetVariables Function Service Config Secret Environment Variable> - Secret environment variables configuration.
- secret
Volumes List<GetFunction Service Config Secret Volume> - Secret volumes configuration.
- service String
- Name of the service associated with a Function.
- service
Account StringEmail - The email of the service account for this function.
- timeout
Seconds 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.
- vpc
Connector String - The Serverless VPC Access connector that this cloud function can connect to.
- vpc
Connector StringEgress Settings - Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]
- all
Traffic booleanOn Latest Revision - Whether 100% of traffic is routed to the latest revision. Defaults to true.
- available
Cpu string - The number of CPUs used in a single container instance. Default value is calculated from available memory.
- available
Memory 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.
- environment
Variables {[key: string]: string} - Environment variables that shall be available during function execution.
- gcf
Uri string - URIs of the Service deployed
- ingress
Settings 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"]
- max
Instance numberCount - The limit on the maximum number of function instances that may coexist at a given time.
- max
Instance numberRequest Concurrency - Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- min
Instance numberCount - The limit on the minimum number of function instances that may coexist at a given time.
- secret
Environment GetVariables Function Service Config Secret Environment Variable[] - Secret environment variables configuration.
- secret
Volumes GetFunction Service Config Secret Volume[] - Secret volumes configuration.
- service string
- Name of the service associated with a Function.
- service
Account stringEmail - The email of the service account for this function.
- timeout
Seconds 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.
- vpc
Connector string - The Serverless VPC Access connector that this cloud function can connect to.
- vpc
Connector 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"]
- all
Traffic BooleanOn Latest Revision - Whether 100% of traffic is routed to the latest revision. Defaults to true.
- available
Cpu String - The number of CPUs used in a single container instance. Default value is calculated from available memory.
- available
Memory 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.
- environment
Variables Map<String> - Environment variables that shall be available during function execution.
- gcf
Uri String - URIs of the Service deployed
- ingress
Settings 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"]
- max
Instance NumberCount - The limit on the maximum number of function instances that may coexist at a given time.
- max
Instance NumberRequest Concurrency - Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- min
Instance NumberCount - The limit on the minimum number of function instances that may coexist at a given time.
- secret
Environment List<Property Map>Variables - Secret environment variables configuration.
- secret
Volumes List<Property Map> - Secret volumes configuration.
- service String
- Name of the service associated with a Function.
- service
Account StringEmail - The email of the service account for this function.
- timeout
Seconds 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.
- vpc
Connector String - The Serverless VPC Access connector that this cloud function can connect to.
- vpc
Connector 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.
- Project
Id string - Project identifier (preferrably 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.
- Project
Id string - Project identifier (preferrably 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.
- project
Id String - Project identifier (preferrably 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.
- project
Id string - Project identifier (preferrably 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 (preferrably 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.
- project
Id String - Project identifier (preferrably 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
- Mount
Path 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
- Project
Id string - Project identifier (preferrably 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<Get
Function 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 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
- Project
Id string - Project identifier (preferrably 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
[]Get
Function 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 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
- project
Id String - Project identifier (preferrably 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<Get
Function 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 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
- project
Id string - Project identifier (preferrably 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
Get
Function 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 (preferrably 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[Get
Function 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 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
- project
Id String - Project identifier (preferrably 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-beta
Terraform Provider.