1. Packages
  2. Google Cloud Native
  3. API Docs
  4. cloudfunctions
  5. cloudfunctions/v2beta
  6. Function

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.cloudfunctions/v2beta.Function

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

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

Create Function Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Function(name: string, args?: FunctionArgs, opts?: CustomResourceOptions);
@overload
def Function(resource_name: str,
             args: Optional[FunctionArgs] = None,
             opts: Optional[ResourceOptions] = None)

@overload
def Function(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             build_config: Optional[BuildConfigArgs] = None,
             description: Optional[str] = None,
             environment: Optional[FunctionEnvironment] = None,
             event_trigger: Optional[EventTriggerArgs] = None,
             function_id: Optional[str] = None,
             kms_key_name: Optional[str] = None,
             labels: Optional[Mapping[str, str]] = None,
             location: Optional[str] = None,
             name: Optional[str] = None,
             project: Optional[str] = None,
             service_config: Optional[ServiceConfigArgs] = None)
func NewFunction(ctx *Context, name string, args *FunctionArgs, opts ...ResourceOption) (*Function, error)
public Function(string name, FunctionArgs? args = null, CustomResourceOptions? opts = null)
public Function(String name, FunctionArgs args)
public Function(String name, FunctionArgs args, CustomResourceOptions options)
type: google-native:cloudfunctions/v2beta:Function
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args FunctionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args FunctionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args FunctionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args FunctionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. FunctionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var examplefunctionResourceResourceFromCloudfunctionsv2beta = new GoogleNative.CloudFunctions.V2Beta.Function("examplefunctionResourceResourceFromCloudfunctionsv2beta", new()
{
    BuildConfig = new GoogleNative.CloudFunctions.V2Beta.Inputs.BuildConfigArgs
    {
        DockerRegistry = GoogleNative.CloudFunctions.V2Beta.BuildConfigDockerRegistry.DockerRegistryUnspecified,
        DockerRepository = "string",
        EntryPoint = "string",
        EnvironmentVariables = 
        {
            { "string", "string" },
        },
        Runtime = "string",
        Source = new GoogleNative.CloudFunctions.V2Beta.Inputs.SourceArgs
        {
            GitUri = "string",
            RepoSource = new GoogleNative.CloudFunctions.V2Beta.Inputs.RepoSourceArgs
            {
                BranchName = "string",
                CommitSha = "string",
                Dir = "string",
                Project = "string",
                RepoName = "string",
                TagName = "string",
            },
            StorageSource = new GoogleNative.CloudFunctions.V2Beta.Inputs.StorageSourceArgs
            {
                Bucket = "string",
                Generation = "string",
                Object = "string",
            },
        },
        SourceToken = "string",
        WorkerPool = "string",
    },
    Description = "string",
    Environment = GoogleNative.CloudFunctions.V2Beta.FunctionEnvironment.EnvironmentUnspecified,
    EventTrigger = new GoogleNative.CloudFunctions.V2Beta.Inputs.EventTriggerArgs
    {
        EventType = "string",
        Channel = "string",
        EventFilters = new[]
        {
            new GoogleNative.CloudFunctions.V2Beta.Inputs.EventFilterArgs
            {
                Attribute = "string",
                Value = "string",
                Operator = "string",
            },
        },
        PubsubTopic = "string",
        RetryPolicy = GoogleNative.CloudFunctions.V2Beta.EventTriggerRetryPolicy.RetryPolicyUnspecified,
        ServiceAccountEmail = "string",
        TriggerRegion = "string",
    },
    FunctionId = "string",
    KmsKeyName = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Location = "string",
    Name = "string",
    Project = "string",
    ServiceConfig = new GoogleNative.CloudFunctions.V2Beta.Inputs.ServiceConfigArgs
    {
        AllTrafficOnLatestRevision = false,
        AvailableCpu = "string",
        AvailableMemory = "string",
        EnvironmentVariables = 
        {
            { "string", "string" },
        },
        IngressSettings = GoogleNative.CloudFunctions.V2Beta.ServiceConfigIngressSettings.IngressSettingsUnspecified,
        MaxInstanceCount = 0,
        MaxInstanceRequestConcurrency = 0,
        MinInstanceCount = 0,
        SecretEnvironmentVariables = new[]
        {
            new GoogleNative.CloudFunctions.V2Beta.Inputs.SecretEnvVarArgs
            {
                Key = "string",
                Project = "string",
                Secret = "string",
                Version = "string",
            },
        },
        SecretVolumes = new[]
        {
            new GoogleNative.CloudFunctions.V2Beta.Inputs.SecretVolumeArgs
            {
                MountPath = "string",
                Project = "string",
                Secret = "string",
                Versions = new[]
                {
                    new GoogleNative.CloudFunctions.V2Beta.Inputs.SecretVersionArgs
                    {
                        Path = "string",
                        Version = "string",
                    },
                },
            },
        },
        SecurityLevel = GoogleNative.CloudFunctions.V2Beta.ServiceConfigSecurityLevel.SecurityLevelUnspecified,
        ServiceAccountEmail = "string",
        TimeoutSeconds = 0,
        VpcConnector = "string",
        VpcConnectorEgressSettings = GoogleNative.CloudFunctions.V2Beta.ServiceConfigVpcConnectorEgressSettings.VpcConnectorEgressSettingsUnspecified,
    },
});
Copy
example, err := cloudfunctionsv2beta.NewFunction(ctx, "examplefunctionResourceResourceFromCloudfunctionsv2beta", &cloudfunctionsv2beta.FunctionArgs{
	BuildConfig: &cloudfunctions.BuildConfigArgs{
		DockerRegistry:   cloudfunctionsv2beta.BuildConfigDockerRegistryDockerRegistryUnspecified,
		DockerRepository: pulumi.String("string"),
		EntryPoint:       pulumi.String("string"),
		EnvironmentVariables: pulumi.StringMap{
			"string": pulumi.String("string"),
		},
		Runtime: pulumi.String("string"),
		Source: &cloudfunctions.SourceArgs{
			GitUri: pulumi.String("string"),
			RepoSource: &cloudfunctions.RepoSourceArgs{
				BranchName: pulumi.String("string"),
				CommitSha:  pulumi.String("string"),
				Dir:        pulumi.String("string"),
				Project:    pulumi.String("string"),
				RepoName:   pulumi.String("string"),
				TagName:    pulumi.String("string"),
			},
			StorageSource: &cloudfunctions.StorageSourceArgs{
				Bucket:     pulumi.String("string"),
				Generation: pulumi.String("string"),
				Object:     pulumi.String("string"),
			},
		},
		SourceToken: pulumi.String("string"),
		WorkerPool:  pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	Environment: cloudfunctionsv2beta.FunctionEnvironmentEnvironmentUnspecified,
	EventTrigger: &cloudfunctions.EventTriggerArgs{
		EventType: pulumi.String("string"),
		Channel:   pulumi.String("string"),
		EventFilters: cloudfunctions.EventFilterArray{
			&cloudfunctions.EventFilterArgs{
				Attribute: pulumi.String("string"),
				Value:     pulumi.String("string"),
				Operator:  pulumi.String("string"),
			},
		},
		PubsubTopic:         pulumi.String("string"),
		RetryPolicy:         cloudfunctionsv2beta.EventTriggerRetryPolicyRetryPolicyUnspecified,
		ServiceAccountEmail: pulumi.String("string"),
		TriggerRegion:       pulumi.String("string"),
	},
	FunctionId: pulumi.String("string"),
	KmsKeyName: pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Location: pulumi.String("string"),
	Name:     pulumi.String("string"),
	Project:  pulumi.String("string"),
	ServiceConfig: &cloudfunctions.ServiceConfigArgs{
		AllTrafficOnLatestRevision: pulumi.Bool(false),
		AvailableCpu:               pulumi.String("string"),
		AvailableMemory:            pulumi.String("string"),
		EnvironmentVariables: pulumi.StringMap{
			"string": pulumi.String("string"),
		},
		IngressSettings:               cloudfunctionsv2beta.ServiceConfigIngressSettingsIngressSettingsUnspecified,
		MaxInstanceCount:              pulumi.Int(0),
		MaxInstanceRequestConcurrency: pulumi.Int(0),
		MinInstanceCount:              pulumi.Int(0),
		SecretEnvironmentVariables: cloudfunctions.SecretEnvVarArray{
			&cloudfunctions.SecretEnvVarArgs{
				Key:     pulumi.String("string"),
				Project: pulumi.String("string"),
				Secret:  pulumi.String("string"),
				Version: pulumi.String("string"),
			},
		},
		SecretVolumes: cloudfunctions.SecretVolumeArray{
			&cloudfunctions.SecretVolumeArgs{
				MountPath: pulumi.String("string"),
				Project:   pulumi.String("string"),
				Secret:    pulumi.String("string"),
				Versions: cloudfunctions.SecretVersionArray{
					&cloudfunctions.SecretVersionArgs{
						Path:    pulumi.String("string"),
						Version: pulumi.String("string"),
					},
				},
			},
		},
		SecurityLevel:              cloudfunctionsv2beta.ServiceConfigSecurityLevelSecurityLevelUnspecified,
		ServiceAccountEmail:        pulumi.String("string"),
		TimeoutSeconds:             pulumi.Int(0),
		VpcConnector:               pulumi.String("string"),
		VpcConnectorEgressSettings: cloudfunctionsv2beta.ServiceConfigVpcConnectorEgressSettingsVpcConnectorEgressSettingsUnspecified,
	},
})
Copy
var examplefunctionResourceResourceFromCloudfunctionsv2beta = new Function("examplefunctionResourceResourceFromCloudfunctionsv2beta", FunctionArgs.builder()
    .buildConfig(BuildConfigArgs.builder()
        .dockerRegistry("DOCKER_REGISTRY_UNSPECIFIED")
        .dockerRepository("string")
        .entryPoint("string")
        .environmentVariables(Map.of("string", "string"))
        .runtime("string")
        .source(SourceArgs.builder()
            .gitUri("string")
            .repoSource(RepoSourceArgs.builder()
                .branchName("string")
                .commitSha("string")
                .dir("string")
                .project("string")
                .repoName("string")
                .tagName("string")
                .build())
            .storageSource(StorageSourceArgs.builder()
                .bucket("string")
                .generation("string")
                .object("string")
                .build())
            .build())
        .sourceToken("string")
        .workerPool("string")
        .build())
    .description("string")
    .environment("ENVIRONMENT_UNSPECIFIED")
    .eventTrigger(EventTriggerArgs.builder()
        .eventType("string")
        .channel("string")
        .eventFilters(EventFilterArgs.builder()
            .attribute("string")
            .value("string")
            .operator("string")
            .build())
        .pubsubTopic("string")
        .retryPolicy("RETRY_POLICY_UNSPECIFIED")
        .serviceAccountEmail("string")
        .triggerRegion("string")
        .build())
    .functionId("string")
    .kmsKeyName("string")
    .labels(Map.of("string", "string"))
    .location("string")
    .name("string")
    .project("string")
    .serviceConfig(ServiceConfigArgs.builder()
        .allTrafficOnLatestRevision(false)
        .availableCpu("string")
        .availableMemory("string")
        .environmentVariables(Map.of("string", "string"))
        .ingressSettings("INGRESS_SETTINGS_UNSPECIFIED")
        .maxInstanceCount(0)
        .maxInstanceRequestConcurrency(0)
        .minInstanceCount(0)
        .secretEnvironmentVariables(SecretEnvVarArgs.builder()
            .key("string")
            .project("string")
            .secret("string")
            .version("string")
            .build())
        .secretVolumes(SecretVolumeArgs.builder()
            .mountPath("string")
            .project("string")
            .secret("string")
            .versions(SecretVersionArgs.builder()
                .path("string")
                .version("string")
                .build())
            .build())
        .securityLevel("SECURITY_LEVEL_UNSPECIFIED")
        .serviceAccountEmail("string")
        .timeoutSeconds(0)
        .vpcConnector("string")
        .vpcConnectorEgressSettings("VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED")
        .build())
    .build());
Copy
examplefunction_resource_resource_from_cloudfunctionsv2beta = google_native.cloudfunctions.v2beta.Function("examplefunctionResourceResourceFromCloudfunctionsv2beta",
    build_config={
        "docker_registry": google_native.cloudfunctions.v2beta.BuildConfigDockerRegistry.DOCKER_REGISTRY_UNSPECIFIED,
        "docker_repository": "string",
        "entry_point": "string",
        "environment_variables": {
            "string": "string",
        },
        "runtime": "string",
        "source": {
            "git_uri": "string",
            "repo_source": {
                "branch_name": "string",
                "commit_sha": "string",
                "dir": "string",
                "project": "string",
                "repo_name": "string",
                "tag_name": "string",
            },
            "storage_source": {
                "bucket": "string",
                "generation": "string",
                "object": "string",
            },
        },
        "source_token": "string",
        "worker_pool": "string",
    },
    description="string",
    environment=google_native.cloudfunctions.v2beta.FunctionEnvironment.ENVIRONMENT_UNSPECIFIED,
    event_trigger={
        "event_type": "string",
        "channel": "string",
        "event_filters": [{
            "attribute": "string",
            "value": "string",
            "operator": "string",
        }],
        "pubsub_topic": "string",
        "retry_policy": google_native.cloudfunctions.v2beta.EventTriggerRetryPolicy.RETRY_POLICY_UNSPECIFIED,
        "service_account_email": "string",
        "trigger_region": "string",
    },
    function_id="string",
    kms_key_name="string",
    labels={
        "string": "string",
    },
    location="string",
    name="string",
    project="string",
    service_config={
        "all_traffic_on_latest_revision": False,
        "available_cpu": "string",
        "available_memory": "string",
        "environment_variables": {
            "string": "string",
        },
        "ingress_settings": google_native.cloudfunctions.v2beta.ServiceConfigIngressSettings.INGRESS_SETTINGS_UNSPECIFIED,
        "max_instance_count": 0,
        "max_instance_request_concurrency": 0,
        "min_instance_count": 0,
        "secret_environment_variables": [{
            "key": "string",
            "project": "string",
            "secret": "string",
            "version": "string",
        }],
        "secret_volumes": [{
            "mount_path": "string",
            "project": "string",
            "secret": "string",
            "versions": [{
                "path": "string",
                "version": "string",
            }],
        }],
        "security_level": google_native.cloudfunctions.v2beta.ServiceConfigSecurityLevel.SECURITY_LEVEL_UNSPECIFIED,
        "service_account_email": "string",
        "timeout_seconds": 0,
        "vpc_connector": "string",
        "vpc_connector_egress_settings": google_native.cloudfunctions.v2beta.ServiceConfigVpcConnectorEgressSettings.VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED,
    })
Copy
const examplefunctionResourceResourceFromCloudfunctionsv2beta = new google_native.cloudfunctions.v2beta.Function("examplefunctionResourceResourceFromCloudfunctionsv2beta", {
    buildConfig: {
        dockerRegistry: google_native.cloudfunctions.v2beta.BuildConfigDockerRegistry.DockerRegistryUnspecified,
        dockerRepository: "string",
        entryPoint: "string",
        environmentVariables: {
            string: "string",
        },
        runtime: "string",
        source: {
            gitUri: "string",
            repoSource: {
                branchName: "string",
                commitSha: "string",
                dir: "string",
                project: "string",
                repoName: "string",
                tagName: "string",
            },
            storageSource: {
                bucket: "string",
                generation: "string",
                object: "string",
            },
        },
        sourceToken: "string",
        workerPool: "string",
    },
    description: "string",
    environment: google_native.cloudfunctions.v2beta.FunctionEnvironment.EnvironmentUnspecified,
    eventTrigger: {
        eventType: "string",
        channel: "string",
        eventFilters: [{
            attribute: "string",
            value: "string",
            operator: "string",
        }],
        pubsubTopic: "string",
        retryPolicy: google_native.cloudfunctions.v2beta.EventTriggerRetryPolicy.RetryPolicyUnspecified,
        serviceAccountEmail: "string",
        triggerRegion: "string",
    },
    functionId: "string",
    kmsKeyName: "string",
    labels: {
        string: "string",
    },
    location: "string",
    name: "string",
    project: "string",
    serviceConfig: {
        allTrafficOnLatestRevision: false,
        availableCpu: "string",
        availableMemory: "string",
        environmentVariables: {
            string: "string",
        },
        ingressSettings: google_native.cloudfunctions.v2beta.ServiceConfigIngressSettings.IngressSettingsUnspecified,
        maxInstanceCount: 0,
        maxInstanceRequestConcurrency: 0,
        minInstanceCount: 0,
        secretEnvironmentVariables: [{
            key: "string",
            project: "string",
            secret: "string",
            version: "string",
        }],
        secretVolumes: [{
            mountPath: "string",
            project: "string",
            secret: "string",
            versions: [{
                path: "string",
                version: "string",
            }],
        }],
        securityLevel: google_native.cloudfunctions.v2beta.ServiceConfigSecurityLevel.SecurityLevelUnspecified,
        serviceAccountEmail: "string",
        timeoutSeconds: 0,
        vpcConnector: "string",
        vpcConnectorEgressSettings: google_native.cloudfunctions.v2beta.ServiceConfigVpcConnectorEgressSettings.VpcConnectorEgressSettingsUnspecified,
    },
});
Copy
type: google-native:cloudfunctions/v2beta:Function
properties:
    buildConfig:
        dockerRegistry: DOCKER_REGISTRY_UNSPECIFIED
        dockerRepository: string
        entryPoint: string
        environmentVariables:
            string: string
        runtime: string
        source:
            gitUri: string
            repoSource:
                branchName: string
                commitSha: string
                dir: string
                project: string
                repoName: string
                tagName: string
            storageSource:
                bucket: string
                generation: string
                object: string
        sourceToken: string
        workerPool: string
    description: string
    environment: ENVIRONMENT_UNSPECIFIED
    eventTrigger:
        channel: string
        eventFilters:
            - attribute: string
              operator: string
              value: string
        eventType: string
        pubsubTopic: string
        retryPolicy: RETRY_POLICY_UNSPECIFIED
        serviceAccountEmail: string
        triggerRegion: string
    functionId: string
    kmsKeyName: string
    labels:
        string: string
    location: string
    name: string
    project: string
    serviceConfig:
        allTrafficOnLatestRevision: false
        availableCpu: string
        availableMemory: string
        environmentVariables:
            string: string
        ingressSettings: INGRESS_SETTINGS_UNSPECIFIED
        maxInstanceCount: 0
        maxInstanceRequestConcurrency: 0
        minInstanceCount: 0
        secretEnvironmentVariables:
            - key: string
              project: string
              secret: string
              version: string
        secretVolumes:
            - mountPath: string
              project: string
              secret: string
              versions:
                - path: string
                  version: string
        securityLevel: SECURITY_LEVEL_UNSPECIFIED
        serviceAccountEmail: string
        timeoutSeconds: 0
        vpcConnector: string
        vpcConnectorEgressSettings: VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED
Copy

Function Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Function resource accepts the following input properties:

BuildConfig Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.BuildConfig
Describes the Build step of the function that builds a container from the given source.
Description string
User-provided description of a function.
Environment Pulumi.GoogleNative.CloudFunctions.V2Beta.FunctionEnvironment
Describe whether the function is 1st Gen or 2nd Gen.
EventTrigger Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.EventTrigger
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
FunctionId string
The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
KmsKeyName string
[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
Labels Dictionary<string, string>
Labels associated with this Cloud Function.
Location Changes to this property will trigger replacement. string
Name string
A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*
Project Changes to this property will trigger replacement. string
ServiceConfig Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.ServiceConfig
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
BuildConfig BuildConfigArgs
Describes the Build step of the function that builds a container from the given source.
Description string
User-provided description of a function.
Environment FunctionEnvironment
Describe whether the function is 1st Gen or 2nd Gen.
EventTrigger EventTriggerArgs
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
FunctionId string
The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
KmsKeyName string
[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
Labels map[string]string
Labels associated with this Cloud Function.
Location Changes to this property will trigger replacement. string
Name string
A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*
Project Changes to this property will trigger replacement. string
ServiceConfig ServiceConfigArgs
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
buildConfig BuildConfig
Describes the Build step of the function that builds a container from the given source.
description String
User-provided description of a function.
environment FunctionEnvironment
Describe whether the function is 1st Gen or 2nd Gen.
eventTrigger EventTrigger
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
functionId String
The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
kmsKeyName String
[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
labels Map<String,String>
Labels associated with this Cloud Function.
location Changes to this property will trigger replacement. String
name String
A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*
project Changes to this property will trigger replacement. String
serviceConfig ServiceConfig
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
buildConfig BuildConfig
Describes the Build step of the function that builds a container from the given source.
description string
User-provided description of a function.
environment FunctionEnvironment
Describe whether the function is 1st Gen or 2nd Gen.
eventTrigger EventTrigger
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
functionId string
The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
kmsKeyName string
[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
labels {[key: string]: string}
Labels associated with this Cloud Function.
location Changes to this property will trigger replacement. string
name string
A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*
project Changes to this property will trigger replacement. string
serviceConfig ServiceConfig
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
build_config BuildConfigArgs
Describes the Build step of the function that builds a container from the given source.
description str
User-provided description of a function.
environment FunctionEnvironment
Describe whether the function is 1st Gen or 2nd Gen.
event_trigger EventTriggerArgs
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
function_id str
The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
kms_key_name str
[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
labels Mapping[str, str]
Labels associated with this Cloud Function.
location Changes to this property will trigger replacement. str
name str
A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*
project Changes to this property will trigger replacement. str
service_config ServiceConfigArgs
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
buildConfig Property Map
Describes the Build step of the function that builds a container from the given source.
description String
User-provided description of a function.
environment "ENVIRONMENT_UNSPECIFIED" | "GEN_1" | "GEN_2"
Describe whether the function is 1st Gen or 2nd Gen.
eventTrigger Property Map
An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
functionId String
The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
kmsKeyName String
[Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
labels Map<String>
Labels associated with this Cloud Function.
location Changes to this property will trigger replacement. String
name String
A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/*
project Changes to this property will trigger replacement. String
serviceConfig Property Map
Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).

Outputs

All input properties are implicitly available as output properties. Additionally, the Function resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
SatisfiesPzs bool
Reserved for future use.
State string
State of the function.
StateMessages List<Pulumi.GoogleNative.CloudFunctions.V2Beta.Outputs.GoogleCloudFunctionsV2betaStateMessageResponse>
State Messages for this Cloud Function.
UpdateTime string
The last update timestamp of a Cloud Function.
Url string
The deployed url for the function.
Id string
The provider-assigned unique ID for this managed resource.
SatisfiesPzs bool
Reserved for future use.
State string
State of the function.
StateMessages []GoogleCloudFunctionsV2betaStateMessageResponse
State Messages for this Cloud Function.
UpdateTime string
The last update timestamp of a Cloud Function.
Url string
The deployed url for the function.
id String
The provider-assigned unique ID for this managed resource.
satisfiesPzs Boolean
Reserved for future use.
state String
State of the function.
stateMessages List<GoogleCloudFunctionsV2betaStateMessageResponse>
State Messages for this Cloud Function.
updateTime String
The last update timestamp of a Cloud Function.
url String
The deployed url for the function.
id string
The provider-assigned unique ID for this managed resource.
satisfiesPzs boolean
Reserved for future use.
state string
State of the function.
stateMessages GoogleCloudFunctionsV2betaStateMessageResponse[]
State Messages for this Cloud Function.
updateTime string
The last update timestamp of a Cloud Function.
url string
The deployed url for the function.
id str
The provider-assigned unique ID for this managed resource.
satisfies_pzs bool
Reserved for future use.
state str
State of the function.
state_messages Sequence[GoogleCloudFunctionsV2betaStateMessageResponse]
State Messages for this Cloud Function.
update_time str
The last update timestamp of a Cloud Function.
url str
The deployed url for the function.
id String
The provider-assigned unique ID for this managed resource.
satisfiesPzs Boolean
Reserved for future use.
state String
State of the function.
stateMessages List<Property Map>
State Messages for this Cloud Function.
updateTime String
The last update timestamp of a Cloud Function.
url String
The deployed url for the function.

Supporting Types

BuildConfig
, BuildConfigArgs

DockerRegistry Pulumi.GoogleNative.CloudFunctions.V2Beta.BuildConfigDockerRegistry
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If docker_repository field is specified, this field will be automatically set as ARTIFACT_REGISTRY. If unspecified, it currently defaults to CONTAINER_REGISTRY. This field may be overridden by the backend for eligible deployments.
DockerRepository string
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern projects/{project}/locations/{location}/repositories/{repository}. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
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
Runtime string
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the gcloud command reference.
Source Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.Source
The location of the function source code.
SourceToken string
An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
WorkerPool string
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
DockerRegistry BuildConfigDockerRegistry
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If docker_repository field is specified, this field will be automatically set as ARTIFACT_REGISTRY. If unspecified, it currently defaults to CONTAINER_REGISTRY. This field may be overridden by the backend for eligible deployments.
DockerRepository string
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern projects/{project}/locations/{location}/repositories/{repository}. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
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
Runtime string
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the gcloud command reference.
Source Source
The location of the function source code.
SourceToken string
An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
WorkerPool string
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
dockerRegistry BuildConfigDockerRegistry
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If docker_repository field is specified, this field will be automatically set as ARTIFACT_REGISTRY. If unspecified, it currently defaults to CONTAINER_REGISTRY. This field may be overridden by the backend for eligible deployments.
dockerRepository String
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern projects/{project}/locations/{location}/repositories/{repository}. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
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
runtime String
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the gcloud command reference.
source Source
The location of the function source code.
sourceToken String
An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
workerPool String
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
dockerRegistry BuildConfigDockerRegistry
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If docker_repository field is specified, this field will be automatically set as ARTIFACT_REGISTRY. If unspecified, it currently defaults to CONTAINER_REGISTRY. This field may be overridden by the backend for eligible deployments.
dockerRepository string
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern projects/{project}/locations/{location}/repositories/{repository}. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
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
runtime string
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the gcloud command reference.
source Source
The location of the function source code.
sourceToken string
An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
workerPool string
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
docker_registry BuildConfigDockerRegistry
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If docker_repository field is specified, this field will be automatically set as ARTIFACT_REGISTRY. If unspecified, it currently defaults to CONTAINER_REGISTRY. This field may be overridden by the backend for eligible deployments.
docker_repository str
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern projects/{project}/locations/{location}/repositories/{repository}. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
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
runtime str
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the gcloud command reference.
source Source
The location of the function source code.
source_token str
An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
worker_pool str
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
dockerRegistry "DOCKER_REGISTRY_UNSPECIFIED" | "CONTAINER_REGISTRY" | "ARTIFACT_REGISTRY"
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If docker_repository field is specified, this field will be automatically set as ARTIFACT_REGISTRY. If unspecified, it currently defaults to CONTAINER_REGISTRY. This field may be overridden by the backend for eligible deployments.
dockerRepository String
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern projects/{project}/locations/{location}/repositories/{repository}. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
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
runtime String
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the gcloud command reference.
source Property Map
The location of the function source code.
sourceToken String
An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
workerPool String
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.

BuildConfigDockerRegistry
, BuildConfigDockerRegistryArgs

DockerRegistryUnspecified
DOCKER_REGISTRY_UNSPECIFIEDUnspecified.
ContainerRegistry
CONTAINER_REGISTRYDocker images will be stored in multi-regional Container Registry repositories named gcf.
ArtifactRegistry
ARTIFACT_REGISTRYDocker images will be stored in regional Artifact Registry repositories. By default, GCF will create and use repositories named gcf-artifacts in every region in which a function is deployed. But the repository to use can also be specified by the user using the docker_repository field.
BuildConfigDockerRegistryDockerRegistryUnspecified
DOCKER_REGISTRY_UNSPECIFIEDUnspecified.
BuildConfigDockerRegistryContainerRegistry
CONTAINER_REGISTRYDocker images will be stored in multi-regional Container Registry repositories named gcf.
BuildConfigDockerRegistryArtifactRegistry
ARTIFACT_REGISTRYDocker images will be stored in regional Artifact Registry repositories. By default, GCF will create and use repositories named gcf-artifacts in every region in which a function is deployed. But the repository to use can also be specified by the user using the docker_repository field.
DockerRegistryUnspecified
DOCKER_REGISTRY_UNSPECIFIEDUnspecified.
ContainerRegistry
CONTAINER_REGISTRYDocker images will be stored in multi-regional Container Registry repositories named gcf.
ArtifactRegistry
ARTIFACT_REGISTRYDocker images will be stored in regional Artifact Registry repositories. By default, GCF will create and use repositories named gcf-artifacts in every region in which a function is deployed. But the repository to use can also be specified by the user using the docker_repository field.
DockerRegistryUnspecified
DOCKER_REGISTRY_UNSPECIFIEDUnspecified.
ContainerRegistry
CONTAINER_REGISTRYDocker images will be stored in multi-regional Container Registry repositories named gcf.
ArtifactRegistry
ARTIFACT_REGISTRYDocker images will be stored in regional Artifact Registry repositories. By default, GCF will create and use repositories named gcf-artifacts in every region in which a function is deployed. But the repository to use can also be specified by the user using the docker_repository field.
DOCKER_REGISTRY_UNSPECIFIED
DOCKER_REGISTRY_UNSPECIFIEDUnspecified.
CONTAINER_REGISTRY
CONTAINER_REGISTRYDocker images will be stored in multi-regional Container Registry repositories named gcf.
ARTIFACT_REGISTRY
ARTIFACT_REGISTRYDocker images will be stored in regional Artifact Registry repositories. By default, GCF will create and use repositories named gcf-artifacts in every region in which a function is deployed. But the repository to use can also be specified by the user using the docker_repository field.
"DOCKER_REGISTRY_UNSPECIFIED"
DOCKER_REGISTRY_UNSPECIFIEDUnspecified.
"CONTAINER_REGISTRY"
CONTAINER_REGISTRYDocker images will be stored in multi-regional Container Registry repositories named gcf.
"ARTIFACT_REGISTRY"
ARTIFACT_REGISTRYDocker images will be stored in regional Artifact Registry repositories. By default, GCF will create and use repositories named gcf-artifacts in every region in which a function is deployed. But the repository to use can also be specified by the user using the docker_repository field.

BuildConfigResponse
, BuildConfigResponseArgs

Build This property is required. string
The Cloud Build name of the latest successful deployment of the function.
DockerRegistry This property is required. string
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If docker_repository field is specified, this field will be automatically set as ARTIFACT_REGISTRY. If unspecified, it currently defaults to CONTAINER_REGISTRY. This field may be overridden by the backend for eligible deployments.
DockerRepository This property is required. string
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern projects/{project}/locations/{location}/repositories/{repository}. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
EntryPoint This property is required. string
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.
EnvironmentVariables This property is required. Dictionary<string, string>
User-provided build-time environment variables for the function
Runtime This property is required. string
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the gcloud command reference.
Source This property is required. Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.SourceResponse
The location of the function source code.
SourceProvenance This property is required. Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.SourceProvenanceResponse
A permanent fixed identifier for source.
SourceToken This property is required. string
An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
WorkerPool This property is required. string
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
Build This property is required. string
The Cloud Build name of the latest successful deployment of the function.
DockerRegistry This property is required. string
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If docker_repository field is specified, this field will be automatically set as ARTIFACT_REGISTRY. If unspecified, it currently defaults to CONTAINER_REGISTRY. This field may be overridden by the backend for eligible deployments.
DockerRepository This property is required. string
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern projects/{project}/locations/{location}/repositories/{repository}. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
EntryPoint This property is required. string
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.
EnvironmentVariables This property is required. map[string]string
User-provided build-time environment variables for the function
Runtime This property is required. string
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the gcloud command reference.
Source This property is required. SourceResponse
The location of the function source code.
SourceProvenance This property is required. SourceProvenanceResponse
A permanent fixed identifier for source.
SourceToken This property is required. string
An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
WorkerPool This property is required. string
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
build This property is required. String
The Cloud Build name of the latest successful deployment of the function.
dockerRegistry This property is required. String
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If docker_repository field is specified, this field will be automatically set as ARTIFACT_REGISTRY. If unspecified, it currently defaults to CONTAINER_REGISTRY. This field may be overridden by the backend for eligible deployments.
dockerRepository This property is required. String
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern projects/{project}/locations/{location}/repositories/{repository}. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
entryPoint This property is required. String
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.
environmentVariables This property is required. Map<String,String>
User-provided build-time environment variables for the function
runtime This property is required. String
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the gcloud command reference.
source This property is required. SourceResponse
The location of the function source code.
sourceProvenance This property is required. SourceProvenanceResponse
A permanent fixed identifier for source.
sourceToken This property is required. String
An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
workerPool This property is required. String
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
build This property is required. string
The Cloud Build name of the latest successful deployment of the function.
dockerRegistry This property is required. string
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If docker_repository field is specified, this field will be automatically set as ARTIFACT_REGISTRY. If unspecified, it currently defaults to CONTAINER_REGISTRY. This field may be overridden by the backend for eligible deployments.
dockerRepository This property is required. string
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern projects/{project}/locations/{location}/repositories/{repository}. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
entryPoint This property is required. string
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.
environmentVariables This property is required. {[key: string]: string}
User-provided build-time environment variables for the function
runtime This property is required. string
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the gcloud command reference.
source This property is required. SourceResponse
The location of the function source code.
sourceProvenance This property is required. SourceProvenanceResponse
A permanent fixed identifier for source.
sourceToken This property is required. string
An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
workerPool This property is required. string
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
build This property is required. str
The Cloud Build name of the latest successful deployment of the function.
docker_registry This property is required. str
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If docker_repository field is specified, this field will be automatically set as ARTIFACT_REGISTRY. If unspecified, it currently defaults to CONTAINER_REGISTRY. This field may be overridden by the backend for eligible deployments.
docker_repository This property is required. str
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern projects/{project}/locations/{location}/repositories/{repository}. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
entry_point This property is required. str
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.
environment_variables This property is required. Mapping[str, str]
User-provided build-time environment variables for the function
runtime This property is required. str
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the gcloud command reference.
source This property is required. SourceResponse
The location of the function source code.
source_provenance This property is required. SourceProvenanceResponse
A permanent fixed identifier for source.
source_token This property is required. str
An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
worker_pool This property is required. str
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
build This property is required. String
The Cloud Build name of the latest successful deployment of the function.
dockerRegistry This property is required. String
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If docker_repository field is specified, this field will be automatically set as ARTIFACT_REGISTRY. If unspecified, it currently defaults to CONTAINER_REGISTRY. This field may be overridden by the backend for eligible deployments.
dockerRepository This property is required. String
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern projects/{project}/locations/{location}/repositories/{repository}. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.
entryPoint This property is required. String
The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.
environmentVariables This property is required. Map<String>
User-provided build-time environment variables for the function
runtime This property is required. String
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the gcloud command reference.
source This property is required. Property Map
The location of the function source code.
sourceProvenance This property is required. Property Map
A permanent fixed identifier for source.
sourceToken This property is required. String
An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
workerPool This property is required. String
Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.

EventFilter
, EventFilterArgs

Attribute This property is required. string
The name of a CloudEvents attribute.
Value This property is required. string
The value for the 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.
Attribute This property is required. string
The name of a CloudEvents attribute.
Value This property is required. string
The value for the 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.
attribute This property is required. String
The name of a CloudEvents attribute.
value This property is required. String
The value for the 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.
attribute This property is required. string
The name of a CloudEvents attribute.
value This property is required. string
The value for the 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.
attribute This property is required. str
The name of a CloudEvents attribute.
value This property is required. str
The value for the 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.
attribute This property is required. String
The name of a CloudEvents attribute.
value This property is required. String
The value for the 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.

EventFilterResponse
, EventFilterResponseArgs

Attribute This property is required. string
The name of a CloudEvents attribute.
Operator This property is required. string
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is match-path-pattern.
Value This property is required. string
The value for the attribute.
Attribute This property is required. string
The name of a CloudEvents attribute.
Operator This property is required. string
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is match-path-pattern.
Value This property is required. string
The value for the attribute.
attribute This property is required. String
The name of a CloudEvents attribute.
operator This property is required. String
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is match-path-pattern.
value This property is required. String
The value for the attribute.
attribute This property is required. string
The name of a CloudEvents attribute.
operator This property is required. string
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is match-path-pattern.
value This property is required. string
The value for the attribute.
attribute This property is required. str
The name of a CloudEvents attribute.
operator This property is required. str
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is match-path-pattern.
value This property is required. str
The value for the attribute.
attribute This property is required. String
The name of a CloudEvents attribute.
operator This property is required. String
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is match-path-pattern.
value This property is required. String
The value for the attribute.

EventTrigger
, EventTriggerArgs

EventType This property is required. string
The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.
Channel string
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.
EventFilters List<Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.EventFilter>
Criteria used to filter events.
PubsubTopic string
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.
RetryPolicy Pulumi.GoogleNative.CloudFunctions.V2Beta.EventTriggerRetryPolicy
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
ServiceAccountEmail string
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
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.
EventType This property is required. string
The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.
Channel string
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.
EventFilters []EventFilter
Criteria used to filter events.
PubsubTopic string
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.
RetryPolicy EventTriggerRetryPolicy
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
ServiceAccountEmail string
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
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.
eventType This property is required. String
The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.
channel String
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.
eventFilters List<EventFilter>
Criteria used to filter events.
pubsubTopic String
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.
retryPolicy EventTriggerRetryPolicy
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
serviceAccountEmail String
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
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.
eventType This property is required. string
The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.
channel string
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.
eventFilters EventFilter[]
Criteria used to filter events.
pubsubTopic string
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.
retryPolicy EventTriggerRetryPolicy
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
serviceAccountEmail string
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
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_type This property is required. str
The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.
channel str
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.
event_filters Sequence[EventFilter]
Criteria used to filter events.
pubsub_topic str
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.
retry_policy EventTriggerRetryPolicy
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
service_account_email str
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
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.
eventType This property is required. String
The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.
channel String
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.
eventFilters List<Property Map>
Criteria used to filter events.
pubsubTopic String
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.
retryPolicy "RETRY_POLICY_UNSPECIFIED" | "RETRY_POLICY_DO_NOT_RETRY" | "RETRY_POLICY_RETRY"
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
serviceAccountEmail String
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
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.

EventTriggerResponse
, EventTriggerResponseArgs

Channel This property is required. string
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.
EventFilters This property is required. List<Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.EventFilterResponse>
Criteria used to filter events.
EventType This property is required. string
The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.
PubsubTopic This property is required. string
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.
RetryPolicy This property is required. string
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
ServiceAccountEmail This property is required. string
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
Trigger This property is required. string
The resource name of the Eventarc trigger. The format of this field is projects/{project}/locations/{region}/triggers/{trigger}.
TriggerRegion This property is required. string
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
Channel This property is required. string
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.
EventFilters This property is required. []EventFilterResponse
Criteria used to filter events.
EventType This property is required. string
The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.
PubsubTopic This property is required. string
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.
RetryPolicy This property is required. string
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
ServiceAccountEmail This property is required. string
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
Trigger This property is required. string
The resource name of the Eventarc trigger. The format of this field is projects/{project}/locations/{region}/triggers/{trigger}.
TriggerRegion This property is required. string
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
channel This property is required. String
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.
eventFilters This property is required. List<EventFilterResponse>
Criteria used to filter events.
eventType This property is required. String
The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.
pubsubTopic This property is required. String
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.
retryPolicy This property is required. String
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
serviceAccountEmail This property is required. String
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
trigger This property is required. String
The resource name of the Eventarc trigger. The format of this field is projects/{project}/locations/{region}/triggers/{trigger}.
triggerRegion This property is required. String
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
channel This property is required. string
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.
eventFilters This property is required. EventFilterResponse[]
Criteria used to filter events.
eventType This property is required. string
The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.
pubsubTopic This property is required. string
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.
retryPolicy This property is required. string
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
serviceAccountEmail This property is required. string
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
trigger This property is required. string
The resource name of the Eventarc trigger. The format of this field is projects/{project}/locations/{region}/triggers/{trigger}.
triggerRegion This property is required. string
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
channel This property is required. str
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.
event_filters This property is required. Sequence[EventFilterResponse]
Criteria used to filter events.
event_type This property is required. str
The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.
pubsub_topic This property is required. str
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.
retry_policy This property is required. str
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
service_account_email This property is required. str
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
trigger This property is required. str
The resource name of the Eventarc trigger. The format of this field is projects/{project}/locations/{region}/triggers/{trigger}.
trigger_region This property is required. str
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
channel This property is required. String
Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.
eventFilters This property is required. List<Property Map>
Criteria used to filter events.
eventType This property is required. String
The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.
pubsubTopic This property is required. String
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.
retryPolicy This property is required. String
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
serviceAccountEmail This property is required. String
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
trigger This property is required. String
The resource name of the Eventarc trigger. The format of this field is projects/{project}/locations/{region}/triggers/{trigger}.
triggerRegion This property is required. String
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.

EventTriggerRetryPolicy
, EventTriggerRetryPolicyArgs

RetryPolicyUnspecified
RETRY_POLICY_UNSPECIFIEDNot specified.
RetryPolicyDoNotRetry
RETRY_POLICY_DO_NOT_RETRYDo not retry.
RetryPolicyRetry
RETRY_POLICY_RETRYRetry on any failure, retry up to 7 days with an exponential backoff (capped at 10 seconds).
EventTriggerRetryPolicyRetryPolicyUnspecified
RETRY_POLICY_UNSPECIFIEDNot specified.
EventTriggerRetryPolicyRetryPolicyDoNotRetry
RETRY_POLICY_DO_NOT_RETRYDo not retry.
EventTriggerRetryPolicyRetryPolicyRetry
RETRY_POLICY_RETRYRetry on any failure, retry up to 7 days with an exponential backoff (capped at 10 seconds).
RetryPolicyUnspecified
RETRY_POLICY_UNSPECIFIEDNot specified.
RetryPolicyDoNotRetry
RETRY_POLICY_DO_NOT_RETRYDo not retry.
RetryPolicyRetry
RETRY_POLICY_RETRYRetry on any failure, retry up to 7 days with an exponential backoff (capped at 10 seconds).
RetryPolicyUnspecified
RETRY_POLICY_UNSPECIFIEDNot specified.
RetryPolicyDoNotRetry
RETRY_POLICY_DO_NOT_RETRYDo not retry.
RetryPolicyRetry
RETRY_POLICY_RETRYRetry on any failure, retry up to 7 days with an exponential backoff (capped at 10 seconds).
RETRY_POLICY_UNSPECIFIED
RETRY_POLICY_UNSPECIFIEDNot specified.
RETRY_POLICY_DO_NOT_RETRY
RETRY_POLICY_DO_NOT_RETRYDo not retry.
RETRY_POLICY_RETRY
RETRY_POLICY_RETRYRetry on any failure, retry up to 7 days with an exponential backoff (capped at 10 seconds).
"RETRY_POLICY_UNSPECIFIED"
RETRY_POLICY_UNSPECIFIEDNot specified.
"RETRY_POLICY_DO_NOT_RETRY"
RETRY_POLICY_DO_NOT_RETRYDo not retry.
"RETRY_POLICY_RETRY"
RETRY_POLICY_RETRYRetry on any failure, retry up to 7 days with an exponential backoff (capped at 10 seconds).

FunctionEnvironment
, FunctionEnvironmentArgs

EnvironmentUnspecified
ENVIRONMENT_UNSPECIFIEDUnspecified
Gen1
GEN_1Gen 1
Gen2
GEN_2Gen 2
FunctionEnvironmentEnvironmentUnspecified
ENVIRONMENT_UNSPECIFIEDUnspecified
FunctionEnvironmentGen1
GEN_1Gen 1
FunctionEnvironmentGen2
GEN_2Gen 2
EnvironmentUnspecified
ENVIRONMENT_UNSPECIFIEDUnspecified
Gen1
GEN_1Gen 1
Gen2
GEN_2Gen 2
EnvironmentUnspecified
ENVIRONMENT_UNSPECIFIEDUnspecified
Gen1
GEN_1Gen 1
Gen2
GEN_2Gen 2
ENVIRONMENT_UNSPECIFIED
ENVIRONMENT_UNSPECIFIEDUnspecified
GEN1
GEN_1Gen 1
GEN2
GEN_2Gen 2
"ENVIRONMENT_UNSPECIFIED"
ENVIRONMENT_UNSPECIFIEDUnspecified
"GEN_1"
GEN_1Gen 1
"GEN_2"
GEN_2Gen 2

GoogleCloudFunctionsV2betaStateMessageResponse
, GoogleCloudFunctionsV2betaStateMessageResponseArgs

Message This property is required. string
The message.
Severity This property is required. string
Severity of the state message.
Type This property is required. string
One-word CamelCase type of the state message.
Message This property is required. string
The message.
Severity This property is required. string
Severity of the state message.
Type This property is required. string
One-word CamelCase type of the state message.
message This property is required. String
The message.
severity This property is required. String
Severity of the state message.
type This property is required. String
One-word CamelCase type of the state message.
message This property is required. string
The message.
severity This property is required. string
Severity of the state message.
type This property is required. string
One-word CamelCase type of the state message.
message This property is required. str
The message.
severity This property is required. str
Severity of the state message.
type This property is required. str
One-word CamelCase type of the state message.
message This property is required. String
The message.
severity This property is required. String
Severity of the state message.
type This property is required. String
One-word CamelCase type of the state message.

RepoSource
, RepoSourceArgs

BranchName string
Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
CommitSha string
Explicit commit SHA to build.
Dir string
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
Project 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. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
BranchName string
Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
CommitSha string
Explicit commit SHA to build.
Dir string
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
Project 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. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
branchName String
Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
commitSha String
Explicit commit SHA to build.
dir String
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
project 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. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
branchName string
Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
commitSha string
Explicit commit SHA to build.
dir string
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
project 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. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
branch_name str
Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
commit_sha str
Explicit commit SHA to build.
dir str
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
project 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. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
branchName String
Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
commitSha String
Explicit commit SHA to build.
dir String
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
project 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. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

RepoSourceResponse
, RepoSourceResponseArgs

BranchName This property is required. string
Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
CommitSha This property is required. string
Explicit commit SHA to build.
Dir This property is required. string
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
Project This property is required. string
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
RepoName This property is required. string
Name of the Cloud Source Repository.
TagName This property is required. string
Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
BranchName This property is required. string
Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
CommitSha This property is required. string
Explicit commit SHA to build.
Dir This property is required. string
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
Project This property is required. string
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
RepoName This property is required. string
Name of the Cloud Source Repository.
TagName This property is required. string
Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
branchName This property is required. String
Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
commitSha This property is required. String
Explicit commit SHA to build.
dir This property is required. String
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
project This property is required. String
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
repoName This property is required. String
Name of the Cloud Source Repository.
tagName This property is required. String
Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
branchName This property is required. string
Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
commitSha This property is required. string
Explicit commit SHA to build.
dir This property is required. string
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
project This property is required. string
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
repoName This property is required. string
Name of the Cloud Source Repository.
tagName This property is required. string
Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
branch_name This property is required. str
Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
commit_sha This property is required. str
Explicit commit SHA to build.
dir This property is required. str
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
project This property is required. str
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
repo_name This property is required. str
Name of the Cloud Source Repository.
tag_name This property is required. str
Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
branchName This property is required. String
Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
commitSha This property is required. String
Explicit commit SHA to build.
dir This property is required. String
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)
project This property is required. String
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
repoName This property is required. String
Name of the Cloud Source Repository.
tagName This property is required. String
Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

SecretEnvVar
, SecretEnvVarArgs

Key string
Name of the environment variable.
Project string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as 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 string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as 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 String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as 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 string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as 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 str
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as 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 String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as 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.

SecretEnvVarResponse
, SecretEnvVarResponseArgs

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

SecretVersion
, SecretVersionArgs

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 mount_path 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 mount_path 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 mount_path 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 mount_path 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 mount_path 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 mount_path 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.

SecretVersionResponse
, SecretVersionResponseArgs

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

SecretVolume
, SecretVolumeArgs

MountPath string
The path within the container to mount the secret volume. For example, setting the mount_path 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 string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
Secret string
Name of the secret in secret manager (not the full resource name).
Versions List<Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.SecretVersion>
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 mount_path 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 string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
Secret string
Name of the secret in secret manager (not the full resource name).
Versions []SecretVersion
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 mount_path 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 String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
secret String
Name of the secret in secret manager (not the full resource name).
versions List<SecretVersion>
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 mount_path 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 string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
secret string
Name of the secret in secret manager (not the full resource name).
versions SecretVersion[]
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 mount_path 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 str
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
secret str
Name of the secret in secret manager (not the full resource name).
versions Sequence[SecretVersion]
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 mount_path 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 String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as 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.

SecretVolumeResponse
, SecretVolumeResponseArgs

MountPath This property is required. string
The path within the container to mount the secret volume. For example, setting the mount_path 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 This property is required. string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
Secret This property is required. string
Name of the secret in secret manager (not the full resource name).
Versions This property is required. List<Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.SecretVersionResponse>
List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.
MountPath This property is required. string
The path within the container to mount the secret volume. For example, setting the mount_path 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 This property is required. string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
Secret This property is required. string
Name of the secret in secret manager (not the full resource name).
Versions This property is required. []SecretVersionResponse
List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.
mountPath This property is required. String
The path within the container to mount the secret volume. For example, setting the mount_path 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 This property is required. String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
secret This property is required. String
Name of the secret in secret manager (not the full resource name).
versions This property is required. List<SecretVersionResponse>
List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.
mountPath This property is required. string
The path within the container to mount the secret volume. For example, setting the mount_path 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 This property is required. string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
secret This property is required. string
Name of the secret in secret manager (not the full resource name).
versions This property is required. SecretVersionResponse[]
List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.
mount_path This property is required. str
The path within the container to mount the secret volume. For example, setting the mount_path 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 This property is required. str
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
secret This property is required. str
Name of the secret in secret manager (not the full resource name).
versions This property is required. Sequence[SecretVersionResponse]
List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.
mountPath This property is required. String
The path within the container to mount the secret volume. For example, setting the mount_path 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 This property is required. String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
secret This property is required. String
Name of the secret in secret manager (not the full resource name).
versions This property is required. List<Property Map>
List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.

ServiceConfig
, ServiceConfigArgs

AllTrafficOnLatestRevision bool
Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
AvailableCpu string
[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
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. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
EnvironmentVariables Dictionary<string, string>
Environment variables that shall be available during function execution.
IngressSettings Pulumi.GoogleNative.CloudFunctions.V2Beta.ServiceConfigIngressSettings
The ingress settings for the function, controlling what traffic can reach it.
MaxInstanceCount int
The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
MaxInstanceRequestConcurrency int
[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
MinInstanceCount int
The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
SecretEnvironmentVariables List<Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.SecretEnvVar>
Secret environment variables configuration.
SecretVolumes List<Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.SecretVolume>
Secret volumes configuration.
SecurityLevel Pulumi.GoogleNative.CloudFunctions.V2Beta.ServiceConfigSecurityLevel
Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
ServiceAccountEmail string
The email of the service's service account. If empty, defaults to {project_number}-compute@developer.gserviceaccount.com.
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.
VpcConnector string
The Serverless VPC Access connector that this cloud function can connect to. The format of this field is projects/*/locations/*/connectors/*.
VpcConnectorEgressSettings Pulumi.GoogleNative.CloudFunctions.V2Beta.ServiceConfigVpcConnectorEgressSettings
The egress settings for the connector, controlling what traffic is diverted through it.
AllTrafficOnLatestRevision bool
Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
AvailableCpu string
[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
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. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
EnvironmentVariables map[string]string
Environment variables that shall be available during function execution.
IngressSettings ServiceConfigIngressSettings
The ingress settings for the function, controlling what traffic can reach it.
MaxInstanceCount int
The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
MaxInstanceRequestConcurrency int
[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
MinInstanceCount int
The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
SecretEnvironmentVariables []SecretEnvVar
Secret environment variables configuration.
SecretVolumes []SecretVolume
Secret volumes configuration.
SecurityLevel ServiceConfigSecurityLevel
Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
ServiceAccountEmail string
The email of the service's service account. If empty, defaults to {project_number}-compute@developer.gserviceaccount.com.
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.
VpcConnector string
The Serverless VPC Access connector that this cloud function can connect to. The format of this field is projects/*/locations/*/connectors/*.
VpcConnectorEgressSettings ServiceConfigVpcConnectorEgressSettings
The egress settings for the connector, controlling what traffic is diverted through it.
allTrafficOnLatestRevision Boolean
Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
availableCpu String
[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
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. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
environmentVariables Map<String,String>
Environment variables that shall be available during function execution.
ingressSettings ServiceConfigIngressSettings
The ingress settings for the function, controlling what traffic can reach it.
maxInstanceCount Integer
The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
maxInstanceRequestConcurrency Integer
[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
minInstanceCount Integer
The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
secretEnvironmentVariables List<SecretEnvVar>
Secret environment variables configuration.
secretVolumes List<SecretVolume>
Secret volumes configuration.
securityLevel ServiceConfigSecurityLevel
Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
serviceAccountEmail String
The email of the service's service account. If empty, defaults to {project_number}-compute@developer.gserviceaccount.com.
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.
vpcConnector String
The Serverless VPC Access connector that this cloud function can connect to. The format of this field is projects/*/locations/*/connectors/*.
vpcConnectorEgressSettings ServiceConfigVpcConnectorEgressSettings
The egress settings for the connector, controlling what traffic is diverted through it.
allTrafficOnLatestRevision boolean
Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
availableCpu string
[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
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. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
environmentVariables {[key: string]: string}
Environment variables that shall be available during function execution.
ingressSettings ServiceConfigIngressSettings
The ingress settings for the function, controlling what traffic can reach it.
maxInstanceCount number
The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
maxInstanceRequestConcurrency number
[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
minInstanceCount number
The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
secretEnvironmentVariables SecretEnvVar[]
Secret environment variables configuration.
secretVolumes SecretVolume[]
Secret volumes configuration.
securityLevel ServiceConfigSecurityLevel
Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
serviceAccountEmail string
The email of the service's service account. If empty, defaults to {project_number}-compute@developer.gserviceaccount.com.
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.
vpcConnector string
The Serverless VPC Access connector that this cloud function can connect to. The format of this field is projects/*/locations/*/connectors/*.
vpcConnectorEgressSettings ServiceConfigVpcConnectorEgressSettings
The egress settings for the connector, controlling what traffic is diverted through it.
all_traffic_on_latest_revision bool
Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
available_cpu str
[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
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. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
environment_variables Mapping[str, str]
Environment variables that shall be available during function execution.
ingress_settings ServiceConfigIngressSettings
The ingress settings for the function, controlling what traffic can reach it.
max_instance_count int
The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
max_instance_request_concurrency int
[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
min_instance_count int
The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
secret_environment_variables Sequence[SecretEnvVar]
Secret environment variables configuration.
secret_volumes Sequence[SecretVolume]
Secret volumes configuration.
security_level ServiceConfigSecurityLevel
Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
service_account_email str
The email of the service's service account. If empty, defaults to {project_number}-compute@developer.gserviceaccount.com.
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.
vpc_connector str
The Serverless VPC Access connector that this cloud function can connect to. The format of this field is projects/*/locations/*/connectors/*.
vpc_connector_egress_settings ServiceConfigVpcConnectorEgressSettings
The egress settings for the connector, controlling what traffic is diverted through it.
allTrafficOnLatestRevision Boolean
Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
availableCpu String
[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
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. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
environmentVariables Map<String>
Environment variables that shall be available during function execution.
ingressSettings "INGRESS_SETTINGS_UNSPECIFIED" | "ALLOW_ALL" | "ALLOW_INTERNAL_ONLY" | "ALLOW_INTERNAL_AND_GCLB"
The ingress settings for the function, controlling what traffic can reach it.
maxInstanceCount Number
The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
maxInstanceRequestConcurrency Number
[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
minInstanceCount Number
The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
secretEnvironmentVariables List<Property Map>
Secret environment variables configuration.
secretVolumes List<Property Map>
Secret volumes configuration.
securityLevel "SECURITY_LEVEL_UNSPECIFIED" | "SECURE_ALWAYS" | "SECURE_OPTIONAL"
Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
serviceAccountEmail String
The email of the service's service account. If empty, defaults to {project_number}-compute@developer.gserviceaccount.com.
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.
vpcConnector String
The Serverless VPC Access connector that this cloud function can connect to. The format of this field is projects/*/locations/*/connectors/*.
vpcConnectorEgressSettings "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED" | "PRIVATE_RANGES_ONLY" | "ALL_TRAFFIC"
The egress settings for the connector, controlling what traffic is diverted through it.

ServiceConfigIngressSettings
, ServiceConfigIngressSettingsArgs

IngressSettingsUnspecified
INGRESS_SETTINGS_UNSPECIFIEDUnspecified.
AllowAll
ALLOW_ALLAllow HTTP traffic from public and private sources.
AllowInternalOnly
ALLOW_INTERNAL_ONLYAllow HTTP traffic from only private VPC sources.
AllowInternalAndGclb
ALLOW_INTERNAL_AND_GCLBAllow HTTP traffic from private VPC sources and through GCLB.
ServiceConfigIngressSettingsIngressSettingsUnspecified
INGRESS_SETTINGS_UNSPECIFIEDUnspecified.
ServiceConfigIngressSettingsAllowAll
ALLOW_ALLAllow HTTP traffic from public and private sources.
ServiceConfigIngressSettingsAllowInternalOnly
ALLOW_INTERNAL_ONLYAllow HTTP traffic from only private VPC sources.
ServiceConfigIngressSettingsAllowInternalAndGclb
ALLOW_INTERNAL_AND_GCLBAllow HTTP traffic from private VPC sources and through GCLB.
IngressSettingsUnspecified
INGRESS_SETTINGS_UNSPECIFIEDUnspecified.
AllowAll
ALLOW_ALLAllow HTTP traffic from public and private sources.
AllowInternalOnly
ALLOW_INTERNAL_ONLYAllow HTTP traffic from only private VPC sources.
AllowInternalAndGclb
ALLOW_INTERNAL_AND_GCLBAllow HTTP traffic from private VPC sources and through GCLB.
IngressSettingsUnspecified
INGRESS_SETTINGS_UNSPECIFIEDUnspecified.
AllowAll
ALLOW_ALLAllow HTTP traffic from public and private sources.
AllowInternalOnly
ALLOW_INTERNAL_ONLYAllow HTTP traffic from only private VPC sources.
AllowInternalAndGclb
ALLOW_INTERNAL_AND_GCLBAllow HTTP traffic from private VPC sources and through GCLB.
INGRESS_SETTINGS_UNSPECIFIED
INGRESS_SETTINGS_UNSPECIFIEDUnspecified.
ALLOW_ALL
ALLOW_ALLAllow HTTP traffic from public and private sources.
ALLOW_INTERNAL_ONLY
ALLOW_INTERNAL_ONLYAllow HTTP traffic from only private VPC sources.
ALLOW_INTERNAL_AND_GCLB
ALLOW_INTERNAL_AND_GCLBAllow HTTP traffic from private VPC sources and through GCLB.
"INGRESS_SETTINGS_UNSPECIFIED"
INGRESS_SETTINGS_UNSPECIFIEDUnspecified.
"ALLOW_ALL"
ALLOW_ALLAllow HTTP traffic from public and private sources.
"ALLOW_INTERNAL_ONLY"
ALLOW_INTERNAL_ONLYAllow HTTP traffic from only private VPC sources.
"ALLOW_INTERNAL_AND_GCLB"
ALLOW_INTERNAL_AND_GCLBAllow HTTP traffic from private VPC sources and through GCLB.

ServiceConfigResponse
, ServiceConfigResponseArgs

AllTrafficOnLatestRevision This property is required. bool
Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
AvailableCpu This property is required. string
[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
AvailableMemory This property is required. string
The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
EnvironmentVariables This property is required. Dictionary<string, string>
Environment variables that shall be available during function execution.
IngressSettings This property is required. string
The ingress settings for the function, controlling what traffic can reach it.
MaxInstanceCount This property is required. int
The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
MaxInstanceRequestConcurrency This property is required. int
[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
MinInstanceCount This property is required. int
The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
Revision This property is required. string
The name of service revision.
SecretEnvironmentVariables This property is required. List<Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.SecretEnvVarResponse>
Secret environment variables configuration.
SecretVolumes This property is required. List<Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.SecretVolumeResponse>
Secret volumes configuration.
SecurityLevel This property is required. string
Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
Service This property is required. string
Name of the service associated with a Function. The format of this field is projects/{project}/locations/{region}/services/{service}
ServiceAccountEmail This property is required. string
The email of the service's service account. If empty, defaults to {project_number}-compute@developer.gserviceaccount.com.
TimeoutSeconds This property is required. int
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
Uri This property is required. string
URI of the Service deployed.
VpcConnector This property is required. string
The Serverless VPC Access connector that this cloud function can connect to. The format of this field is projects/*/locations/*/connectors/*.
VpcConnectorEgressSettings This property is required. string
The egress settings for the connector, controlling what traffic is diverted through it.
AllTrafficOnLatestRevision This property is required. bool
Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
AvailableCpu This property is required. string
[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
AvailableMemory This property is required. string
The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
EnvironmentVariables This property is required. map[string]string
Environment variables that shall be available during function execution.
IngressSettings This property is required. string
The ingress settings for the function, controlling what traffic can reach it.
MaxInstanceCount This property is required. int
The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
MaxInstanceRequestConcurrency This property is required. int
[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
MinInstanceCount This property is required. int
The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
Revision This property is required. string
The name of service revision.
SecretEnvironmentVariables This property is required. []SecretEnvVarResponse
Secret environment variables configuration.
SecretVolumes This property is required. []SecretVolumeResponse
Secret volumes configuration.
SecurityLevel This property is required. string
Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
Service This property is required. string
Name of the service associated with a Function. The format of this field is projects/{project}/locations/{region}/services/{service}
ServiceAccountEmail This property is required. string
The email of the service's service account. If empty, defaults to {project_number}-compute@developer.gserviceaccount.com.
TimeoutSeconds This property is required. int
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
Uri This property is required. string
URI of the Service deployed.
VpcConnector This property is required. string
The Serverless VPC Access connector that this cloud function can connect to. The format of this field is projects/*/locations/*/connectors/*.
VpcConnectorEgressSettings This property is required. string
The egress settings for the connector, controlling what traffic is diverted through it.
allTrafficOnLatestRevision This property is required. Boolean
Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
availableCpu This property is required. String
[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
availableMemory This property is required. String
The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
environmentVariables This property is required. Map<String,String>
Environment variables that shall be available during function execution.
ingressSettings This property is required. String
The ingress settings for the function, controlling what traffic can reach it.
maxInstanceCount This property is required. Integer
The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
maxInstanceRequestConcurrency This property is required. Integer
[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
minInstanceCount This property is required. Integer
The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
revision This property is required. String
The name of service revision.
secretEnvironmentVariables This property is required. List<SecretEnvVarResponse>
Secret environment variables configuration.
secretVolumes This property is required. List<SecretVolumeResponse>
Secret volumes configuration.
securityLevel This property is required. String
Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
service This property is required. String
Name of the service associated with a Function. The format of this field is projects/{project}/locations/{region}/services/{service}
serviceAccountEmail This property is required. String
The email of the service's service account. If empty, defaults to {project_number}-compute@developer.gserviceaccount.com.
timeoutSeconds This property is required. Integer
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
uri This property is required. String
URI of the Service deployed.
vpcConnector This property is required. String
The Serverless VPC Access connector that this cloud function can connect to. The format of this field is projects/*/locations/*/connectors/*.
vpcConnectorEgressSettings This property is required. String
The egress settings for the connector, controlling what traffic is diverted through it.
allTrafficOnLatestRevision This property is required. boolean
Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
availableCpu This property is required. string
[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
availableMemory This property is required. string
The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
environmentVariables This property is required. {[key: string]: string}
Environment variables that shall be available during function execution.
ingressSettings This property is required. string
The ingress settings for the function, controlling what traffic can reach it.
maxInstanceCount This property is required. number
The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
maxInstanceRequestConcurrency This property is required. number
[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
minInstanceCount This property is required. number
The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
revision This property is required. string
The name of service revision.
secretEnvironmentVariables This property is required. SecretEnvVarResponse[]
Secret environment variables configuration.
secretVolumes This property is required. SecretVolumeResponse[]
Secret volumes configuration.
securityLevel This property is required. string
Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
service This property is required. string
Name of the service associated with a Function. The format of this field is projects/{project}/locations/{region}/services/{service}
serviceAccountEmail This property is required. string
The email of the service's service account. If empty, defaults to {project_number}-compute@developer.gserviceaccount.com.
timeoutSeconds This property is required. number
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
uri This property is required. string
URI of the Service deployed.
vpcConnector This property is required. string
The Serverless VPC Access connector that this cloud function can connect to. The format of this field is projects/*/locations/*/connectors/*.
vpcConnectorEgressSettings This property is required. string
The egress settings for the connector, controlling what traffic is diverted through it.
all_traffic_on_latest_revision This property is required. bool
Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
available_cpu This property is required. str
[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
available_memory This property is required. str
The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
environment_variables This property is required. Mapping[str, str]
Environment variables that shall be available during function execution.
ingress_settings This property is required. str
The ingress settings for the function, controlling what traffic can reach it.
max_instance_count This property is required. int
The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
max_instance_request_concurrency This property is required. int
[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
min_instance_count This property is required. int
The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
revision This property is required. str
The name of service revision.
secret_environment_variables This property is required. Sequence[SecretEnvVarResponse]
Secret environment variables configuration.
secret_volumes This property is required. Sequence[SecretVolumeResponse]
Secret volumes configuration.
security_level This property is required. str
Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
service This property is required. str
Name of the service associated with a Function. The format of this field is projects/{project}/locations/{region}/services/{service}
service_account_email This property is required. str
The email of the service's service account. If empty, defaults to {project_number}-compute@developer.gserviceaccount.com.
timeout_seconds This property is required. int
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
uri This property is required. str
URI of the Service deployed.
vpc_connector This property is required. str
The Serverless VPC Access connector that this cloud function can connect to. The format of this field is projects/*/locations/*/connectors/*.
vpc_connector_egress_settings This property is required. str
The egress settings for the connector, controlling what traffic is diverted through it.
allTrafficOnLatestRevision This property is required. Boolean
Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
availableCpu This property is required. String
[Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
availableMemory This property is required. String
The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
environmentVariables This property is required. Map<String>
Environment variables that shall be available during function execution.
ingressSettings This property is required. String
The ingress settings for the function, controlling what traffic can reach it.
maxInstanceCount This property is required. Number
The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
maxInstanceRequestConcurrency This property is required. Number
[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
minInstanceCount This property is required. Number
The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
revision This property is required. String
The name of service revision.
secretEnvironmentVariables This property is required. List<Property Map>
Secret environment variables configuration.
secretVolumes This property is required. List<Property Map>
Secret volumes configuration.
securityLevel This property is required. String
Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
service This property is required. String
Name of the service associated with a Function. The format of this field is projects/{project}/locations/{region}/services/{service}
serviceAccountEmail This property is required. String
The email of the service's service account. If empty, defaults to {project_number}-compute@developer.gserviceaccount.com.
timeoutSeconds This property is required. Number
The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
uri This property is required. String
URI of the Service deployed.
vpcConnector This property is required. String
The Serverless VPC Access connector that this cloud function can connect to. The format of this field is projects/*/locations/*/connectors/*.
vpcConnectorEgressSettings This property is required. String
The egress settings for the connector, controlling what traffic is diverted through it.

ServiceConfigSecurityLevel
, ServiceConfigSecurityLevelArgs

SecurityLevelUnspecified
SECURITY_LEVEL_UNSPECIFIEDUnspecified.
SecureAlways
SECURE_ALWAYSRequests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path. Query parameters are reserved for the redirect.
SecureOptional
SECURE_OPTIONALBoth HTTP and HTTPS requests with URLs that match the handler succeed without redirects. The application can examine the request to determine which protocol was used and respond accordingly.
ServiceConfigSecurityLevelSecurityLevelUnspecified
SECURITY_LEVEL_UNSPECIFIEDUnspecified.
ServiceConfigSecurityLevelSecureAlways
SECURE_ALWAYSRequests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path. Query parameters are reserved for the redirect.
ServiceConfigSecurityLevelSecureOptional
SECURE_OPTIONALBoth HTTP and HTTPS requests with URLs that match the handler succeed without redirects. The application can examine the request to determine which protocol was used and respond accordingly.
SecurityLevelUnspecified
SECURITY_LEVEL_UNSPECIFIEDUnspecified.
SecureAlways
SECURE_ALWAYSRequests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path. Query parameters are reserved for the redirect.
SecureOptional
SECURE_OPTIONALBoth HTTP and HTTPS requests with URLs that match the handler succeed without redirects. The application can examine the request to determine which protocol was used and respond accordingly.
SecurityLevelUnspecified
SECURITY_LEVEL_UNSPECIFIEDUnspecified.
SecureAlways
SECURE_ALWAYSRequests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path. Query parameters are reserved for the redirect.
SecureOptional
SECURE_OPTIONALBoth HTTP and HTTPS requests with URLs that match the handler succeed without redirects. The application can examine the request to determine which protocol was used and respond accordingly.
SECURITY_LEVEL_UNSPECIFIED
SECURITY_LEVEL_UNSPECIFIEDUnspecified.
SECURE_ALWAYS
SECURE_ALWAYSRequests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path. Query parameters are reserved for the redirect.
SECURE_OPTIONAL
SECURE_OPTIONALBoth HTTP and HTTPS requests with URLs that match the handler succeed without redirects. The application can examine the request to determine which protocol was used and respond accordingly.
"SECURITY_LEVEL_UNSPECIFIED"
SECURITY_LEVEL_UNSPECIFIEDUnspecified.
"SECURE_ALWAYS"
SECURE_ALWAYSRequests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path. Query parameters are reserved for the redirect.
"SECURE_OPTIONAL"
SECURE_OPTIONALBoth HTTP and HTTPS requests with URLs that match the handler succeed without redirects. The application can examine the request to determine which protocol was used and respond accordingly.

ServiceConfigVpcConnectorEgressSettings
, ServiceConfigVpcConnectorEgressSettingsArgs

VpcConnectorEgressSettingsUnspecified
VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIEDUnspecified.
PrivateRangesOnly
PRIVATE_RANGES_ONLYUse the VPC Access Connector only for private IP space from RFC1918.
AllTraffic
ALL_TRAFFICForce the use of VPC Access Connector for all egress traffic from the function.
ServiceConfigVpcConnectorEgressSettingsVpcConnectorEgressSettingsUnspecified
VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIEDUnspecified.
ServiceConfigVpcConnectorEgressSettingsPrivateRangesOnly
PRIVATE_RANGES_ONLYUse the VPC Access Connector only for private IP space from RFC1918.
ServiceConfigVpcConnectorEgressSettingsAllTraffic
ALL_TRAFFICForce the use of VPC Access Connector for all egress traffic from the function.
VpcConnectorEgressSettingsUnspecified
VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIEDUnspecified.
PrivateRangesOnly
PRIVATE_RANGES_ONLYUse the VPC Access Connector only for private IP space from RFC1918.
AllTraffic
ALL_TRAFFICForce the use of VPC Access Connector for all egress traffic from the function.
VpcConnectorEgressSettingsUnspecified
VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIEDUnspecified.
PrivateRangesOnly
PRIVATE_RANGES_ONLYUse the VPC Access Connector only for private IP space from RFC1918.
AllTraffic
ALL_TRAFFICForce the use of VPC Access Connector for all egress traffic from the function.
VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED
VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIEDUnspecified.
PRIVATE_RANGES_ONLY
PRIVATE_RANGES_ONLYUse the VPC Access Connector only for private IP space from RFC1918.
ALL_TRAFFIC
ALL_TRAFFICForce the use of VPC Access Connector for all egress traffic from the function.
"VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED"
VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIEDUnspecified.
"PRIVATE_RANGES_ONLY"
PRIVATE_RANGES_ONLYUse the VPC Access Connector only for private IP space from RFC1918.
"ALL_TRAFFIC"
ALL_TRAFFICForce the use of VPC Access Connector for all egress traffic from the function.

Source
, SourceArgs

GitUri string
If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
RepoSource Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.RepoSource
If provided, get the source from this location in a Cloud Source Repository.
StorageSource Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.StorageSource
If provided, get the source from this location in Google Cloud Storage.
GitUri string
If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
RepoSource RepoSource
If provided, get the source from this location in a Cloud Source Repository.
StorageSource StorageSource
If provided, get the source from this location in Google Cloud Storage.
gitUri String
If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
repoSource RepoSource
If provided, get the source from this location in a Cloud Source Repository.
storageSource StorageSource
If provided, get the source from this location in Google Cloud Storage.
gitUri string
If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
repoSource RepoSource
If provided, get the source from this location in a Cloud Source Repository.
storageSource StorageSource
If provided, get the source from this location in Google Cloud Storage.
git_uri str
If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
repo_source RepoSource
If provided, get the source from this location in a Cloud Source Repository.
storage_source StorageSource
If provided, get the source from this location in Google Cloud Storage.
gitUri String
If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
repoSource Property Map
If provided, get the source from this location in a Cloud Source Repository.
storageSource Property Map
If provided, get the source from this location in Google Cloud Storage.

SourceProvenanceResponse
, SourceProvenanceResponseArgs

GitUri This property is required. string
A copy of the build's source.git_uri, if exists, with any commits resolved.
ResolvedRepoSource This property is required. Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.RepoSourceResponse
A copy of the build's source.repo_source, if exists, with any revisions resolved.
ResolvedStorageSource This property is required. Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.StorageSourceResponse
A copy of the build's source.storage_source, if exists, with any generations resolved.
GitUri This property is required. string
A copy of the build's source.git_uri, if exists, with any commits resolved.
ResolvedRepoSource This property is required. RepoSourceResponse
A copy of the build's source.repo_source, if exists, with any revisions resolved.
ResolvedStorageSource This property is required. StorageSourceResponse
A copy of the build's source.storage_source, if exists, with any generations resolved.
gitUri This property is required. String
A copy of the build's source.git_uri, if exists, with any commits resolved.
resolvedRepoSource This property is required. RepoSourceResponse
A copy of the build's source.repo_source, if exists, with any revisions resolved.
resolvedStorageSource This property is required. StorageSourceResponse
A copy of the build's source.storage_source, if exists, with any generations resolved.
gitUri This property is required. string
A copy of the build's source.git_uri, if exists, with any commits resolved.
resolvedRepoSource This property is required. RepoSourceResponse
A copy of the build's source.repo_source, if exists, with any revisions resolved.
resolvedStorageSource This property is required. StorageSourceResponse
A copy of the build's source.storage_source, if exists, with any generations resolved.
git_uri This property is required. str
A copy of the build's source.git_uri, if exists, with any commits resolved.
resolved_repo_source This property is required. RepoSourceResponse
A copy of the build's source.repo_source, if exists, with any revisions resolved.
resolved_storage_source This property is required. StorageSourceResponse
A copy of the build's source.storage_source, if exists, with any generations resolved.
gitUri This property is required. String
A copy of the build's source.git_uri, if exists, with any commits resolved.
resolvedRepoSource This property is required. Property Map
A copy of the build's source.repo_source, if exists, with any revisions resolved.
resolvedStorageSource This property is required. Property Map
A copy of the build's source.storage_source, if exists, with any generations resolved.

SourceResponse
, SourceResponseArgs

GitUri This property is required. string
If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
RepoSource This property is required. Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.RepoSourceResponse
If provided, get the source from this location in a Cloud Source Repository.
StorageSource This property is required. Pulumi.GoogleNative.CloudFunctions.V2Beta.Inputs.StorageSourceResponse
If provided, get the source from this location in Google Cloud Storage.
GitUri This property is required. string
If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
RepoSource This property is required. RepoSourceResponse
If provided, get the source from this location in a Cloud Source Repository.
StorageSource This property is required. StorageSourceResponse
If provided, get the source from this location in Google Cloud Storage.
gitUri This property is required. String
If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
repoSource This property is required. RepoSourceResponse
If provided, get the source from this location in a Cloud Source Repository.
storageSource This property is required. StorageSourceResponse
If provided, get the source from this location in Google Cloud Storage.
gitUri This property is required. string
If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
repoSource This property is required. RepoSourceResponse
If provided, get the source from this location in a Cloud Source Repository.
storageSource This property is required. StorageSourceResponse
If provided, get the source from this location in Google Cloud Storage.
git_uri This property is required. str
If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
repo_source This property is required. RepoSourceResponse
If provided, get the source from this location in a Cloud Source Repository.
storage_source This property is required. StorageSourceResponse
If provided, get the source from this location in Google Cloud Storage.
gitUri This property is required. String
If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
repoSource This property is required. Property Map
If provided, get the source from this location in a Cloud Source Repository.
storageSource This property is required. Property Map
If provided, get the source from this location in Google Cloud Storage.

StorageSource
, StorageSourceArgs

Bucket string
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
Generation string
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. This object must be a gzipped archive file (.tar.gz) containing source to build.
Bucket string
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
Generation string
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. This object must be a gzipped archive file (.tar.gz) containing source to build.
bucket String
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
generation String
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. This object must be a gzipped archive file (.tar.gz) containing source to build.
bucket string
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
generation string
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. This object must be a gzipped archive file (.tar.gz) containing source to build.
bucket str
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
generation str
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. This object must be a gzipped archive file (.tar.gz) containing source to build.
bucket String
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
generation String
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. This object must be a gzipped archive file (.tar.gz) containing source to build.

StorageSourceResponse
, StorageSourceResponseArgs

Bucket This property is required. string
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
Generation This property is required. string
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
Object This property is required. string
Google Cloud Storage object containing the source. This object must be a gzipped archive file (.tar.gz) containing source to build.
Bucket This property is required. string
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
Generation This property is required. string
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
Object This property is required. string
Google Cloud Storage object containing the source. This object must be a gzipped archive file (.tar.gz) containing source to build.
bucket This property is required. String
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
generation This property is required. String
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
object This property is required. String
Google Cloud Storage object containing the source. This object must be a gzipped archive file (.tar.gz) containing source to build.
bucket This property is required. string
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
generation This property is required. string
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
object This property is required. string
Google Cloud Storage object containing the source. This object must be a gzipped archive file (.tar.gz) containing source to build.
bucket This property is required. str
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
generation This property is required. str
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
object This property is required. str
Google Cloud Storage object containing the source. This object must be a gzipped archive file (.tar.gz) containing source to build.
bucket This property is required. String
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
generation This property is required. String
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
object This property is required. String
Google Cloud Storage object containing the source. This object must be a gzipped archive file (.tar.gz) containing source to build.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi