cloudfunctionsv2

package
v6.67.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function struct {
	pulumi.CustomResourceState

	// Describes the Build step of the function that builds a container
	// from the given source.
	// Structure is documented below.
	BuildConfig FunctionBuildConfigPtrOutput `pulumi:"buildConfig"`
	// User-provided description of a function.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The environment the function is hosted on.
	Environment pulumi.StringOutput `pulumi:"environment"`
	// An Eventarc trigger managed by Google Cloud Functions that fires events in
	// response to a condition in another service.
	// Structure is documented below.
	EventTrigger FunctionEventTriggerPtrOutput `pulumi:"eventTrigger"`
	// 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}.
	KmsKeyName pulumi.StringPtrOutput `pulumi:"kmsKeyName"`
	// A set of key/value label pairs associated with this Cloud Function.
	Labels pulumi.StringMapOutput `pulumi:"labels"`
	// The location of this cloud function.
	Location pulumi.StringPtrOutput `pulumi:"location"`
	// A user-defined name of the function. Function names must
	// be unique globally and match pattern `projects/*/locations/*/functions/*`.
	//
	// ***
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringOutput `pulumi:"project"`
	// Describes the Service being deployed.
	// Structure is documented below.
	ServiceConfig FunctionServiceConfigPtrOutput `pulumi:"serviceConfig"`
	// Describes the current state of the function.
	State pulumi.StringOutput `pulumi:"state"`
	// The last update timestamp of a Cloud Function.
	UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
	// Output only. The deployed url for the function.
	Url pulumi.StringOutput `pulumi:"url"`
}

A Cloud Function that contains user computation executed in response to an event.

To get more information about function, see:

* [API documentation](https://cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions)

## Example Usage ### Cloudfunctions2 Basic Gcs

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctionsv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/projects"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/serviceAccount"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewBucket(ctx, "source-bucket", &storage.BucketArgs{
			Location:                 pulumi.String("US"),
			UniformBucketLevelAccess: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		object, err := storage.NewBucketObject(ctx, "object", &storage.BucketObjectArgs{
			Bucket: source_bucket.Name,
			Source: pulumi.NewFileAsset("function-source.zip"),
		})
		if err != nil {
			return err
		}
		_, err = storage.NewBucket(ctx, "trigger-bucket", &storage.BucketArgs{
			Location:                 pulumi.String("us-central1"),
			UniformBucketLevelAccess: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		gcsAccount, err := storage.GetProjectServiceAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = projects.NewIAMMember(ctx, "gcs-pubsub-publishing", &projects.IAMMemberArgs{
			Project: pulumi.String("my-project-name"),
			Role:    pulumi.String("roles/pubsub.publisher"),
			Member:  pulumi.String(fmt.Sprintf("serviceAccount:%v", gcsAccount.EmailAddress)),
		})
		if err != nil {
			return err
		}
		account, err := serviceAccount.NewAccount(ctx, "account", &serviceAccount.AccountArgs{
			AccountId:   pulumi.String("gcf-sa"),
			DisplayName: pulumi.String("Test Service Account - used for both the cloud function and eventarc trigger in the test"),
		})
		if err != nil {
			return err
		}
		invoking, err := projects.NewIAMMember(ctx, "invoking", &projects.IAMMemberArgs{
			Project: pulumi.String("my-project-name"),
			Role:    pulumi.String("roles/run.invoker"),
			Member: account.Email.ApplyT(func(email string) (string, error) {
				return fmt.Sprintf("serviceAccount:%v", email), nil
			}).(pulumi.StringOutput),
		}, pulumi.DependsOn([]pulumi.Resource{
			gcs_pubsub_publishing,
		}))
		if err != nil {
			return err
		}
		_, err = projects.NewIAMMember(ctx, "event-receiving", &projects.IAMMemberArgs{
			Project: pulumi.String("my-project-name"),
			Role:    pulumi.String("roles/eventarc.eventReceiver"),
			Member: account.Email.ApplyT(func(email string) (string, error) {
				return fmt.Sprintf("serviceAccount:%v", email), nil
			}).(pulumi.StringOutput),
		}, pulumi.DependsOn([]pulumi.Resource{
			invoking,
		}))
		if err != nil {
			return err
		}
		_, err = projects.NewIAMMember(ctx, "artifactregistry-reader", &projects.IAMMemberArgs{
			Project: pulumi.String("my-project-name"),
			Role:    pulumi.String("roles/artifactregistry.reader"),
			Member: account.Email.ApplyT(func(email string) (string, error) {
				return fmt.Sprintf("serviceAccount:%v", email), nil
			}).(pulumi.StringOutput),
		}, pulumi.DependsOn([]pulumi.Resource{
			event_receiving,
		}))
		if err != nil {
			return err
		}
		_, err = cloudfunctionsv2.NewFunction(ctx, "function", &cloudfunctionsv2.FunctionArgs{
			Location:    pulumi.String("us-central1"),
			Description: pulumi.String("a new function"),
			BuildConfig: &cloudfunctionsv2.FunctionBuildConfigArgs{
				Runtime:    pulumi.String("nodejs12"),
				EntryPoint: pulumi.String("entryPoint"),
				EnvironmentVariables: pulumi.StringMap{
					"BUILD_CONFIG_TEST": pulumi.String("build_test"),
				},
				Source: &cloudfunctionsv2.FunctionBuildConfigSourceArgs{
					StorageSource: &cloudfunctionsv2.FunctionBuildConfigSourceStorageSourceArgs{
						Bucket: source_bucket.Name,
						Object: object.Name,
					},
				},
			},
			ServiceConfig: &cloudfunctionsv2.FunctionServiceConfigArgs{
				MaxInstanceCount: pulumi.Int(3),
				MinInstanceCount: pulumi.Int(1),
				AvailableMemory:  pulumi.String("256M"),
				TimeoutSeconds:   pulumi.Int(60),
				EnvironmentVariables: pulumi.StringMap{
					"SERVICE_CONFIG_TEST": pulumi.String("config_test"),
				},
				IngressSettings:            pulumi.String("ALLOW_INTERNAL_ONLY"),
				AllTrafficOnLatestRevision: pulumi.Bool(true),
				ServiceAccountEmail:        account.Email,
			},
			EventTrigger: &cloudfunctionsv2.FunctionEventTriggerArgs{
				TriggerRegion:       pulumi.String("us-central1"),
				EventType:           pulumi.String("google.cloud.storage.object.v1.finalized"),
				RetryPolicy:         pulumi.String("RETRY_POLICY_RETRY"),
				ServiceAccountEmail: account.Email,
				EventFilters: cloudfunctionsv2.FunctionEventTriggerEventFilterArray{
					&cloudfunctionsv2.FunctionEventTriggerEventFilterArgs{
						Attribute: pulumi.String("bucket"),
						Value:     trigger_bucket.Name,
					},
				},
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			event_receiving,
			artifactregistry_reader,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Cloudfunctions2 Basic Auditlogs

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctionsv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/projects"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/serviceAccount"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewBucket(ctx, "source-bucket", &storage.BucketArgs{
			Location:                 pulumi.String("US"),
			UniformBucketLevelAccess: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		object, err := storage.NewBucketObject(ctx, "object", &storage.BucketObjectArgs{
			Bucket: source_bucket.Name,
			Source: pulumi.NewFileAsset("function-source.zip"),
		})
		if err != nil {
			return err
		}
		account, err := serviceAccount.NewAccount(ctx, "account", &serviceAccount.AccountArgs{
			AccountId:   pulumi.String("gcf-sa"),
			DisplayName: pulumi.String("Test Service Account - used for both the cloud function and eventarc trigger in the test"),
		})
		if err != nil {
			return err
		}
		_, err = storage.NewBucket(ctx, "audit-log-bucket", &storage.BucketArgs{
			Location:                 pulumi.String("us-central1"),
			UniformBucketLevelAccess: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		invoking, err := projects.NewIAMMember(ctx, "invoking", &projects.IAMMemberArgs{
			Project: pulumi.String("my-project-name"),
			Role:    pulumi.String("roles/run.invoker"),
			Member: account.Email.ApplyT(func(email string) (string, error) {
				return fmt.Sprintf("serviceAccount:%v", email), nil
			}).(pulumi.StringOutput),
		})
		if err != nil {
			return err
		}
		_, err = projects.NewIAMMember(ctx, "event-receiving", &projects.IAMMemberArgs{
			Project: pulumi.String("my-project-name"),
			Role:    pulumi.String("roles/eventarc.eventReceiver"),
			Member: account.Email.ApplyT(func(email string) (string, error) {
				return fmt.Sprintf("serviceAccount:%v", email), nil
			}).(pulumi.StringOutput),
		}, pulumi.DependsOn([]pulumi.Resource{
			invoking,
		}))
		if err != nil {
			return err
		}
		_, err = projects.NewIAMMember(ctx, "artifactregistry-reader", &projects.IAMMemberArgs{
			Project: pulumi.String("my-project-name"),
			Role:    pulumi.String("roles/artifactregistry.reader"),
			Member: account.Email.ApplyT(func(email string) (string, error) {
				return fmt.Sprintf("serviceAccount:%v", email), nil
			}).(pulumi.StringOutput),
		}, pulumi.DependsOn([]pulumi.Resource{
			event_receiving,
		}))
		if err != nil {
			return err
		}
		_, err = cloudfunctionsv2.NewFunction(ctx, "function", &cloudfunctionsv2.FunctionArgs{
			Location:    pulumi.String("us-central1"),
			Description: pulumi.String("a new function"),
			BuildConfig: &cloudfunctionsv2.FunctionBuildConfigArgs{
				Runtime:    pulumi.String("nodejs12"),
				EntryPoint: pulumi.String("entryPoint"),
				EnvironmentVariables: pulumi.StringMap{
					"BUILD_CONFIG_TEST": pulumi.String("build_test"),
				},
				Source: &cloudfunctionsv2.FunctionBuildConfigSourceArgs{
					StorageSource: &cloudfunctionsv2.FunctionBuildConfigSourceStorageSourceArgs{
						Bucket: source_bucket.Name,
						Object: object.Name,
					},
				},
			},
			ServiceConfig: &cloudfunctionsv2.FunctionServiceConfigArgs{
				MaxInstanceCount: pulumi.Int(3),
				MinInstanceCount: pulumi.Int(1),
				AvailableMemory:  pulumi.String("256M"),
				TimeoutSeconds:   pulumi.Int(60),
				EnvironmentVariables: pulumi.StringMap{
					"SERVICE_CONFIG_TEST": pulumi.String("config_test"),
				},
				IngressSettings:            pulumi.String("ALLOW_INTERNAL_ONLY"),
				AllTrafficOnLatestRevision: pulumi.Bool(true),
				ServiceAccountEmail:        account.Email,
			},
			EventTrigger: &cloudfunctionsv2.FunctionEventTriggerArgs{
				TriggerRegion:       pulumi.String("us-central1"),
				EventType:           pulumi.String("google.cloud.audit.log.v1.written"),
				RetryPolicy:         pulumi.String("RETRY_POLICY_RETRY"),
				ServiceAccountEmail: account.Email,
				EventFilters: cloudfunctionsv2.FunctionEventTriggerEventFilterArray{
					&cloudfunctionsv2.FunctionEventTriggerEventFilterArgs{
						Attribute: pulumi.String("serviceName"),
						Value:     pulumi.String("storage.googleapis.com"),
					},
					&cloudfunctionsv2.FunctionEventTriggerEventFilterArgs{
						Attribute: pulumi.String("methodName"),
						Value:     pulumi.String("storage.objects.create"),
					},
					&cloudfunctionsv2.FunctionEventTriggerEventFilterArgs{
						Attribute: pulumi.String("resourceName"),
						Value: audit_log_bucket.Name.ApplyT(func(name string) (string, error) {
							return fmt.Sprintf("/projects/_/buckets/%v/objects/*.txt", name), nil
						}).(pulumi.StringOutput),
						Operator: pulumi.String("match-path-pattern"),
					},
				},
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			event_receiving,
			artifactregistry_reader,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

function can be imported using any of these accepted formats

```sh

$ pulumi import gcp:cloudfunctionsv2/function:Function default projects/{{project}}/locations/{{location}}/functions/{{name}}

```

```sh

$ pulumi import gcp:cloudfunctionsv2/function:Function default {{project}}/{{location}}/{{name}}

```

```sh

$ pulumi import gcp:cloudfunctionsv2/function:Function default {{location}}/{{name}}

```

func GetFunction

func GetFunction(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FunctionState, opts ...pulumi.ResourceOption) (*Function, error)

GetFunction gets an existing Function resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFunction

func NewFunction(ctx *pulumi.Context,
	name string, args *FunctionArgs, opts ...pulumi.ResourceOption) (*Function, error)

NewFunction registers a new resource with the given unique name, arguments, and options.

func (*Function) ElementType

func (*Function) ElementType() reflect.Type

func (*Function) ToFunctionOutput

func (i *Function) ToFunctionOutput() FunctionOutput

func (*Function) ToFunctionOutputWithContext

func (i *Function) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput

func (*Function) ToOutput added in v6.65.1

func (i *Function) ToOutput(ctx context.Context) pulumix.Output[*Function]

type FunctionArgs

type FunctionArgs struct {
	// Describes the Build step of the function that builds a container
	// from the given source.
	// Structure is documented below.
	BuildConfig FunctionBuildConfigPtrInput
	// User-provided description of a function.
	Description pulumi.StringPtrInput
	// An Eventarc trigger managed by Google Cloud Functions that fires events in
	// response to a condition in another service.
	// Structure is documented below.
	EventTrigger FunctionEventTriggerPtrInput
	// 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}.
	KmsKeyName pulumi.StringPtrInput
	// A set of key/value label pairs associated with this Cloud Function.
	Labels pulumi.StringMapInput
	// The location of this cloud function.
	Location pulumi.StringPtrInput
	// A user-defined name of the function. Function names must
	// be unique globally and match pattern `projects/*/locations/*/functions/*`.
	//
	// ***
	Name pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// Describes the Service being deployed.
	// Structure is documented below.
	ServiceConfig FunctionServiceConfigPtrInput
}

The set of arguments for constructing a Function resource.

func (FunctionArgs) ElementType

func (FunctionArgs) ElementType() reflect.Type

type FunctionArray

type FunctionArray []FunctionInput

func (FunctionArray) ElementType

func (FunctionArray) ElementType() reflect.Type

func (FunctionArray) ToFunctionArrayOutput

func (i FunctionArray) ToFunctionArrayOutput() FunctionArrayOutput

func (FunctionArray) ToFunctionArrayOutputWithContext

func (i FunctionArray) ToFunctionArrayOutputWithContext(ctx context.Context) FunctionArrayOutput

func (FunctionArray) ToOutput added in v6.65.1

func (i FunctionArray) ToOutput(ctx context.Context) pulumix.Output[[]*Function]

type FunctionArrayInput

type FunctionArrayInput interface {
	pulumi.Input

	ToFunctionArrayOutput() FunctionArrayOutput
	ToFunctionArrayOutputWithContext(context.Context) FunctionArrayOutput
}

FunctionArrayInput is an input type that accepts FunctionArray and FunctionArrayOutput values. You can construct a concrete instance of `FunctionArrayInput` via:

FunctionArray{ FunctionArgs{...} }

type FunctionArrayOutput

type FunctionArrayOutput struct{ *pulumi.OutputState }

func (FunctionArrayOutput) ElementType

func (FunctionArrayOutput) ElementType() reflect.Type

func (FunctionArrayOutput) Index

func (FunctionArrayOutput) ToFunctionArrayOutput

func (o FunctionArrayOutput) ToFunctionArrayOutput() FunctionArrayOutput

func (FunctionArrayOutput) ToFunctionArrayOutputWithContext

func (o FunctionArrayOutput) ToFunctionArrayOutputWithContext(ctx context.Context) FunctionArrayOutput

func (FunctionArrayOutput) ToOutput added in v6.65.1

type FunctionBuildConfig

type FunctionBuildConfig struct {
	// (Output)
	// The Cloud Build name of the latest successful
	// deployment of the function.
	Build *string `pulumi:"build"`
	// User managed repository created in Artifact Registry optionally with a customer managed encryption key.
	DockerRepository *string `pulumi:"dockerRepository"`
	// 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.
	EntryPoint *string `pulumi:"entryPoint"`
	// User-provided build-time environment variables for the function.
	EnvironmentVariables map[string]string `pulumi:"environmentVariables"`
	// The runtime in which to run the function. Required when deploying a new
	// function, optional when updating an existing function.
	Runtime *string `pulumi:"runtime"`
	// The location of the function source code.
	// Structure is documented below.
	Source *FunctionBuildConfigSource `pulumi:"source"`
	// Name of the Cloud Build Custom Worker Pool that should be used to build the function.
	WorkerPool *string `pulumi:"workerPool"`
}

type FunctionBuildConfigArgs

type FunctionBuildConfigArgs struct {
	// (Output)
	// The Cloud Build name of the latest successful
	// deployment of the function.
	Build pulumi.StringPtrInput `pulumi:"build"`
	// User managed repository created in Artifact Registry optionally with a customer managed encryption key.
	DockerRepository pulumi.StringPtrInput `pulumi:"dockerRepository"`
	// 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.
	EntryPoint pulumi.StringPtrInput `pulumi:"entryPoint"`
	// User-provided build-time environment variables for the function.
	EnvironmentVariables pulumi.StringMapInput `pulumi:"environmentVariables"`
	// The runtime in which to run the function. Required when deploying a new
	// function, optional when updating an existing function.
	Runtime pulumi.StringPtrInput `pulumi:"runtime"`
	// The location of the function source code.
	// Structure is documented below.
	Source FunctionBuildConfigSourcePtrInput `pulumi:"source"`
	// Name of the Cloud Build Custom Worker Pool that should be used to build the function.
	WorkerPool pulumi.StringPtrInput `pulumi:"workerPool"`
}

func (FunctionBuildConfigArgs) ElementType

func (FunctionBuildConfigArgs) ElementType() reflect.Type

func (FunctionBuildConfigArgs) ToFunctionBuildConfigOutput

func (i FunctionBuildConfigArgs) ToFunctionBuildConfigOutput() FunctionBuildConfigOutput

func (FunctionBuildConfigArgs) ToFunctionBuildConfigOutputWithContext

func (i FunctionBuildConfigArgs) ToFunctionBuildConfigOutputWithContext(ctx context.Context) FunctionBuildConfigOutput

func (FunctionBuildConfigArgs) ToFunctionBuildConfigPtrOutput

func (i FunctionBuildConfigArgs) ToFunctionBuildConfigPtrOutput() FunctionBuildConfigPtrOutput

func (FunctionBuildConfigArgs) ToFunctionBuildConfigPtrOutputWithContext

func (i FunctionBuildConfigArgs) ToFunctionBuildConfigPtrOutputWithContext(ctx context.Context) FunctionBuildConfigPtrOutput

func (FunctionBuildConfigArgs) ToOutput added in v6.65.1

type FunctionBuildConfigInput

type FunctionBuildConfigInput interface {
	pulumi.Input

	ToFunctionBuildConfigOutput() FunctionBuildConfigOutput
	ToFunctionBuildConfigOutputWithContext(context.Context) FunctionBuildConfigOutput
}

FunctionBuildConfigInput is an input type that accepts FunctionBuildConfigArgs and FunctionBuildConfigOutput values. You can construct a concrete instance of `FunctionBuildConfigInput` via:

FunctionBuildConfigArgs{...}

type FunctionBuildConfigOutput

type FunctionBuildConfigOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigOutput) Build

(Output) The Cloud Build name of the latest successful deployment of the function.

func (FunctionBuildConfigOutput) DockerRepository

func (o FunctionBuildConfigOutput) DockerRepository() pulumi.StringPtrOutput

User managed repository created in Artifact Registry optionally with a customer managed encryption key.

func (FunctionBuildConfigOutput) ElementType

func (FunctionBuildConfigOutput) ElementType() reflect.Type

func (FunctionBuildConfigOutput) EntryPoint

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.

func (FunctionBuildConfigOutput) EnvironmentVariables

func (o FunctionBuildConfigOutput) EnvironmentVariables() pulumi.StringMapOutput

User-provided build-time environment variables for the function.

func (FunctionBuildConfigOutput) Runtime

The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.

func (FunctionBuildConfigOutput) Source

The location of the function source code. Structure is documented below.

func (FunctionBuildConfigOutput) ToFunctionBuildConfigOutput

func (o FunctionBuildConfigOutput) ToFunctionBuildConfigOutput() FunctionBuildConfigOutput

func (FunctionBuildConfigOutput) ToFunctionBuildConfigOutputWithContext

func (o FunctionBuildConfigOutput) ToFunctionBuildConfigOutputWithContext(ctx context.Context) FunctionBuildConfigOutput

func (FunctionBuildConfigOutput) ToFunctionBuildConfigPtrOutput

func (o FunctionBuildConfigOutput) ToFunctionBuildConfigPtrOutput() FunctionBuildConfigPtrOutput

func (FunctionBuildConfigOutput) ToFunctionBuildConfigPtrOutputWithContext

func (o FunctionBuildConfigOutput) ToFunctionBuildConfigPtrOutputWithContext(ctx context.Context) FunctionBuildConfigPtrOutput

func (FunctionBuildConfigOutput) ToOutput added in v6.65.1

func (FunctionBuildConfigOutput) WorkerPool

Name of the Cloud Build Custom Worker Pool that should be used to build the function.

type FunctionBuildConfigPtrInput

type FunctionBuildConfigPtrInput interface {
	pulumi.Input

	ToFunctionBuildConfigPtrOutput() FunctionBuildConfigPtrOutput
	ToFunctionBuildConfigPtrOutputWithContext(context.Context) FunctionBuildConfigPtrOutput
}

FunctionBuildConfigPtrInput is an input type that accepts FunctionBuildConfigArgs, FunctionBuildConfigPtr and FunctionBuildConfigPtrOutput values. You can construct a concrete instance of `FunctionBuildConfigPtrInput` via:

        FunctionBuildConfigArgs{...}

or:

        nil

type FunctionBuildConfigPtrOutput

type FunctionBuildConfigPtrOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigPtrOutput) Build

(Output) The Cloud Build name of the latest successful deployment of the function.

func (FunctionBuildConfigPtrOutput) DockerRepository

User managed repository created in Artifact Registry optionally with a customer managed encryption key.

func (FunctionBuildConfigPtrOutput) Elem

func (FunctionBuildConfigPtrOutput) ElementType

func (FunctionBuildConfigPtrOutput) EntryPoint

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.

func (FunctionBuildConfigPtrOutput) EnvironmentVariables

func (o FunctionBuildConfigPtrOutput) EnvironmentVariables() pulumi.StringMapOutput

User-provided build-time environment variables for the function.

func (FunctionBuildConfigPtrOutput) Runtime

The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.

func (FunctionBuildConfigPtrOutput) Source

The location of the function source code. Structure is documented below.

func (FunctionBuildConfigPtrOutput) ToFunctionBuildConfigPtrOutput

func (o FunctionBuildConfigPtrOutput) ToFunctionBuildConfigPtrOutput() FunctionBuildConfigPtrOutput

func (FunctionBuildConfigPtrOutput) ToFunctionBuildConfigPtrOutputWithContext

func (o FunctionBuildConfigPtrOutput) ToFunctionBuildConfigPtrOutputWithContext(ctx context.Context) FunctionBuildConfigPtrOutput

func (FunctionBuildConfigPtrOutput) ToOutput added in v6.65.1

func (FunctionBuildConfigPtrOutput) WorkerPool

Name of the Cloud Build Custom Worker Pool that should be used to build the function.

type FunctionBuildConfigSource

type FunctionBuildConfigSource struct {
	// If provided, get the source from this location in a Cloud Source Repository.
	// Structure is documented below.
	RepoSource *FunctionBuildConfigSourceRepoSource `pulumi:"repoSource"`
	// If provided, get the source from this location in Google Cloud Storage.
	// Structure is documented below.
	StorageSource *FunctionBuildConfigSourceStorageSource `pulumi:"storageSource"`
}

type FunctionBuildConfigSourceArgs

type FunctionBuildConfigSourceArgs struct {
	// If provided, get the source from this location in a Cloud Source Repository.
	// Structure is documented below.
	RepoSource FunctionBuildConfigSourceRepoSourcePtrInput `pulumi:"repoSource"`
	// If provided, get the source from this location in Google Cloud Storage.
	// Structure is documented below.
	StorageSource FunctionBuildConfigSourceStorageSourcePtrInput `pulumi:"storageSource"`
}

func (FunctionBuildConfigSourceArgs) ElementType

func (FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourceOutput

func (i FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourceOutput() FunctionBuildConfigSourceOutput

func (FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourceOutputWithContext

func (i FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourceOutputWithContext(ctx context.Context) FunctionBuildConfigSourceOutput

func (FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourcePtrOutput

func (i FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourcePtrOutput() FunctionBuildConfigSourcePtrOutput

func (FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourcePtrOutputWithContext

func (i FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourcePtrOutput

func (FunctionBuildConfigSourceArgs) ToOutput added in v6.65.1

type FunctionBuildConfigSourceInput

type FunctionBuildConfigSourceInput interface {
	pulumi.Input

	ToFunctionBuildConfigSourceOutput() FunctionBuildConfigSourceOutput
	ToFunctionBuildConfigSourceOutputWithContext(context.Context) FunctionBuildConfigSourceOutput
}

FunctionBuildConfigSourceInput is an input type that accepts FunctionBuildConfigSourceArgs and FunctionBuildConfigSourceOutput values. You can construct a concrete instance of `FunctionBuildConfigSourceInput` via:

FunctionBuildConfigSourceArgs{...}

type FunctionBuildConfigSourceOutput

type FunctionBuildConfigSourceOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigSourceOutput) ElementType

func (FunctionBuildConfigSourceOutput) RepoSource

If provided, get the source from this location in a Cloud Source Repository. Structure is documented below.

func (FunctionBuildConfigSourceOutput) StorageSource

If provided, get the source from this location in Google Cloud Storage. Structure is documented below.

func (FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourceOutput

func (o FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourceOutput() FunctionBuildConfigSourceOutput

func (FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourceOutputWithContext

func (o FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourceOutputWithContext(ctx context.Context) FunctionBuildConfigSourceOutput

func (FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourcePtrOutput

func (o FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourcePtrOutput() FunctionBuildConfigSourcePtrOutput

func (FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourcePtrOutputWithContext

func (o FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourcePtrOutput

func (FunctionBuildConfigSourceOutput) ToOutput added in v6.65.1

type FunctionBuildConfigSourcePtrInput

type FunctionBuildConfigSourcePtrInput interface {
	pulumi.Input

	ToFunctionBuildConfigSourcePtrOutput() FunctionBuildConfigSourcePtrOutput
	ToFunctionBuildConfigSourcePtrOutputWithContext(context.Context) FunctionBuildConfigSourcePtrOutput
}

FunctionBuildConfigSourcePtrInput is an input type that accepts FunctionBuildConfigSourceArgs, FunctionBuildConfigSourcePtr and FunctionBuildConfigSourcePtrOutput values. You can construct a concrete instance of `FunctionBuildConfigSourcePtrInput` via:

        FunctionBuildConfigSourceArgs{...}

or:

        nil

type FunctionBuildConfigSourcePtrOutput

type FunctionBuildConfigSourcePtrOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigSourcePtrOutput) Elem

func (FunctionBuildConfigSourcePtrOutput) ElementType

func (FunctionBuildConfigSourcePtrOutput) RepoSource

If provided, get the source from this location in a Cloud Source Repository. Structure is documented below.

func (FunctionBuildConfigSourcePtrOutput) StorageSource

If provided, get the source from this location in Google Cloud Storage. Structure is documented below.

func (FunctionBuildConfigSourcePtrOutput) ToFunctionBuildConfigSourcePtrOutput

func (o FunctionBuildConfigSourcePtrOutput) ToFunctionBuildConfigSourcePtrOutput() FunctionBuildConfigSourcePtrOutput

func (FunctionBuildConfigSourcePtrOutput) ToFunctionBuildConfigSourcePtrOutputWithContext

func (o FunctionBuildConfigSourcePtrOutput) ToFunctionBuildConfigSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourcePtrOutput

func (FunctionBuildConfigSourcePtrOutput) ToOutput added in v6.65.1

type FunctionBuildConfigSourceRepoSource

type FunctionBuildConfigSourceRepoSource struct {
	// Regex matching branches to build.
	BranchName *string `pulumi:"branchName"`
	// Regex matching tags to build.
	CommitSha *string `pulumi:"commitSha"`
	// Directory, relative to the source root, in which to run the build.
	Dir *string `pulumi:"dir"`
	// Only trigger a build if the revision regex does
	// NOT match the revision regex.
	InvertRegex *bool `pulumi:"invertRegex"`
	// ID of the project that owns the Cloud Source Repository. If omitted, the
	// project ID requesting the build is assumed.
	ProjectId *string `pulumi:"projectId"`
	// Name of the Cloud Source Repository.
	RepoName *string `pulumi:"repoName"`
	// Regex matching tags to build.
	TagName *string `pulumi:"tagName"`
}

type FunctionBuildConfigSourceRepoSourceArgs

type FunctionBuildConfigSourceRepoSourceArgs struct {
	// Regex matching branches to build.
	BranchName pulumi.StringPtrInput `pulumi:"branchName"`
	// Regex matching tags to build.
	CommitSha pulumi.StringPtrInput `pulumi:"commitSha"`
	// Directory, relative to the source root, in which to run the build.
	Dir pulumi.StringPtrInput `pulumi:"dir"`
	// Only trigger a build if the revision regex does
	// NOT match the revision regex.
	InvertRegex pulumi.BoolPtrInput `pulumi:"invertRegex"`
	// ID of the project that owns the Cloud Source Repository. If omitted, the
	// project ID requesting the build is assumed.
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
	// Name of the Cloud Source Repository.
	RepoName pulumi.StringPtrInput `pulumi:"repoName"`
	// Regex matching tags to build.
	TagName pulumi.StringPtrInput `pulumi:"tagName"`
}

func (FunctionBuildConfigSourceRepoSourceArgs) ElementType

func (FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourceOutput

func (i FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourceOutput() FunctionBuildConfigSourceRepoSourceOutput

func (FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourceOutputWithContext

func (i FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourceOutputWithContext(ctx context.Context) FunctionBuildConfigSourceRepoSourceOutput

func (FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourcePtrOutput

func (i FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourcePtrOutput() FunctionBuildConfigSourceRepoSourcePtrOutput

func (FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourcePtrOutputWithContext

func (i FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourceRepoSourcePtrOutput

func (FunctionBuildConfigSourceRepoSourceArgs) ToOutput added in v6.65.1

type FunctionBuildConfigSourceRepoSourceInput

type FunctionBuildConfigSourceRepoSourceInput interface {
	pulumi.Input

	ToFunctionBuildConfigSourceRepoSourceOutput() FunctionBuildConfigSourceRepoSourceOutput
	ToFunctionBuildConfigSourceRepoSourceOutputWithContext(context.Context) FunctionBuildConfigSourceRepoSourceOutput
}

FunctionBuildConfigSourceRepoSourceInput is an input type that accepts FunctionBuildConfigSourceRepoSourceArgs and FunctionBuildConfigSourceRepoSourceOutput values. You can construct a concrete instance of `FunctionBuildConfigSourceRepoSourceInput` via:

FunctionBuildConfigSourceRepoSourceArgs{...}

type FunctionBuildConfigSourceRepoSourceOutput

type FunctionBuildConfigSourceRepoSourceOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigSourceRepoSourceOutput) BranchName

Regex matching branches to build.

func (FunctionBuildConfigSourceRepoSourceOutput) CommitSha

Regex matching tags to build.

func (FunctionBuildConfigSourceRepoSourceOutput) Dir

Directory, relative to the source root, in which to run the build.

func (FunctionBuildConfigSourceRepoSourceOutput) ElementType

func (FunctionBuildConfigSourceRepoSourceOutput) InvertRegex

Only trigger a build if the revision regex does NOT match the revision regex.

func (FunctionBuildConfigSourceRepoSourceOutput) ProjectId

ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

func (FunctionBuildConfigSourceRepoSourceOutput) RepoName

Name of the Cloud Source Repository.

func (FunctionBuildConfigSourceRepoSourceOutput) TagName

Regex matching tags to build.

func (FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourceOutput

func (o FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourceOutput() FunctionBuildConfigSourceRepoSourceOutput

func (FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourceOutputWithContext

func (o FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourceOutputWithContext(ctx context.Context) FunctionBuildConfigSourceRepoSourceOutput

func (FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutput

func (o FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutput() FunctionBuildConfigSourceRepoSourcePtrOutput

func (FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutputWithContext

func (o FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourceRepoSourcePtrOutput

func (FunctionBuildConfigSourceRepoSourceOutput) ToOutput added in v6.65.1

type FunctionBuildConfigSourceRepoSourcePtrInput

type FunctionBuildConfigSourceRepoSourcePtrInput interface {
	pulumi.Input

	ToFunctionBuildConfigSourceRepoSourcePtrOutput() FunctionBuildConfigSourceRepoSourcePtrOutput
	ToFunctionBuildConfigSourceRepoSourcePtrOutputWithContext(context.Context) FunctionBuildConfigSourceRepoSourcePtrOutput
}

FunctionBuildConfigSourceRepoSourcePtrInput is an input type that accepts FunctionBuildConfigSourceRepoSourceArgs, FunctionBuildConfigSourceRepoSourcePtr and FunctionBuildConfigSourceRepoSourcePtrOutput values. You can construct a concrete instance of `FunctionBuildConfigSourceRepoSourcePtrInput` via:

        FunctionBuildConfigSourceRepoSourceArgs{...}

or:

        nil

type FunctionBuildConfigSourceRepoSourcePtrOutput

type FunctionBuildConfigSourceRepoSourcePtrOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigSourceRepoSourcePtrOutput) BranchName

Regex matching branches to build.

func (FunctionBuildConfigSourceRepoSourcePtrOutput) CommitSha

Regex matching tags to build.

func (FunctionBuildConfigSourceRepoSourcePtrOutput) Dir

Directory, relative to the source root, in which to run the build.

func (FunctionBuildConfigSourceRepoSourcePtrOutput) Elem

func (FunctionBuildConfigSourceRepoSourcePtrOutput) ElementType

func (FunctionBuildConfigSourceRepoSourcePtrOutput) InvertRegex

Only trigger a build if the revision regex does NOT match the revision regex.

func (FunctionBuildConfigSourceRepoSourcePtrOutput) ProjectId

ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

func (FunctionBuildConfigSourceRepoSourcePtrOutput) RepoName

Name of the Cloud Source Repository.

func (FunctionBuildConfigSourceRepoSourcePtrOutput) TagName

Regex matching tags to build.

func (FunctionBuildConfigSourceRepoSourcePtrOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutput

func (o FunctionBuildConfigSourceRepoSourcePtrOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutput() FunctionBuildConfigSourceRepoSourcePtrOutput

func (FunctionBuildConfigSourceRepoSourcePtrOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutputWithContext

func (o FunctionBuildConfigSourceRepoSourcePtrOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourceRepoSourcePtrOutput

func (FunctionBuildConfigSourceRepoSourcePtrOutput) ToOutput added in v6.65.1

type FunctionBuildConfigSourceStorageSource

type FunctionBuildConfigSourceStorageSource struct {
	// Google Cloud Storage bucket containing the source
	Bucket *string `pulumi:"bucket"`
	// Google Cloud Storage generation for the object. If the generation
	// is omitted, the latest generation will be used.
	Generation *int `pulumi:"generation"`
	// Google Cloud Storage object containing the source.
	Object *string `pulumi:"object"`
}

type FunctionBuildConfigSourceStorageSourceArgs

type FunctionBuildConfigSourceStorageSourceArgs struct {
	// Google Cloud Storage bucket containing the source
	Bucket pulumi.StringPtrInput `pulumi:"bucket"`
	// Google Cloud Storage generation for the object. If the generation
	// is omitted, the latest generation will be used.
	Generation pulumi.IntPtrInput `pulumi:"generation"`
	// Google Cloud Storage object containing the source.
	Object pulumi.StringPtrInput `pulumi:"object"`
}

func (FunctionBuildConfigSourceStorageSourceArgs) ElementType

func (FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourceOutput

func (i FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourceOutput() FunctionBuildConfigSourceStorageSourceOutput

func (FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourceOutputWithContext

func (i FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourceOutputWithContext(ctx context.Context) FunctionBuildConfigSourceStorageSourceOutput

func (FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourcePtrOutput

func (i FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourcePtrOutput() FunctionBuildConfigSourceStorageSourcePtrOutput

func (FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourcePtrOutputWithContext

func (i FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourceStorageSourcePtrOutput

func (FunctionBuildConfigSourceStorageSourceArgs) ToOutput added in v6.65.1

type FunctionBuildConfigSourceStorageSourceInput

type FunctionBuildConfigSourceStorageSourceInput interface {
	pulumi.Input

	ToFunctionBuildConfigSourceStorageSourceOutput() FunctionBuildConfigSourceStorageSourceOutput
	ToFunctionBuildConfigSourceStorageSourceOutputWithContext(context.Context) FunctionBuildConfigSourceStorageSourceOutput
}

FunctionBuildConfigSourceStorageSourceInput is an input type that accepts FunctionBuildConfigSourceStorageSourceArgs and FunctionBuildConfigSourceStorageSourceOutput values. You can construct a concrete instance of `FunctionBuildConfigSourceStorageSourceInput` via:

FunctionBuildConfigSourceStorageSourceArgs{...}

type FunctionBuildConfigSourceStorageSourceOutput

type FunctionBuildConfigSourceStorageSourceOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigSourceStorageSourceOutput) Bucket

Google Cloud Storage bucket containing the source

func (FunctionBuildConfigSourceStorageSourceOutput) ElementType

func (FunctionBuildConfigSourceStorageSourceOutput) Generation

Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

func (FunctionBuildConfigSourceStorageSourceOutput) Object

Google Cloud Storage object containing the source.

func (FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourceOutput

func (o FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourceOutput() FunctionBuildConfigSourceStorageSourceOutput

func (FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourceOutputWithContext

func (o FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourceOutputWithContext(ctx context.Context) FunctionBuildConfigSourceStorageSourceOutput

func (FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutput

func (o FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutput() FunctionBuildConfigSourceStorageSourcePtrOutput

func (FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutputWithContext

func (o FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourceStorageSourcePtrOutput

func (FunctionBuildConfigSourceStorageSourceOutput) ToOutput added in v6.65.1

type FunctionBuildConfigSourceStorageSourcePtrInput

type FunctionBuildConfigSourceStorageSourcePtrInput interface {
	pulumi.Input

	ToFunctionBuildConfigSourceStorageSourcePtrOutput() FunctionBuildConfigSourceStorageSourcePtrOutput
	ToFunctionBuildConfigSourceStorageSourcePtrOutputWithContext(context.Context) FunctionBuildConfigSourceStorageSourcePtrOutput
}

FunctionBuildConfigSourceStorageSourcePtrInput is an input type that accepts FunctionBuildConfigSourceStorageSourceArgs, FunctionBuildConfigSourceStorageSourcePtr and FunctionBuildConfigSourceStorageSourcePtrOutput values. You can construct a concrete instance of `FunctionBuildConfigSourceStorageSourcePtrInput` via:

        FunctionBuildConfigSourceStorageSourceArgs{...}

or:

        nil

type FunctionBuildConfigSourceStorageSourcePtrOutput

type FunctionBuildConfigSourceStorageSourcePtrOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigSourceStorageSourcePtrOutput) Bucket

Google Cloud Storage bucket containing the source

func (FunctionBuildConfigSourceStorageSourcePtrOutput) Elem

func (FunctionBuildConfigSourceStorageSourcePtrOutput) ElementType

func (FunctionBuildConfigSourceStorageSourcePtrOutput) Generation

Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

func (FunctionBuildConfigSourceStorageSourcePtrOutput) Object

Google Cloud Storage object containing the source.

func (FunctionBuildConfigSourceStorageSourcePtrOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutput

func (o FunctionBuildConfigSourceStorageSourcePtrOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutput() FunctionBuildConfigSourceStorageSourcePtrOutput

func (FunctionBuildConfigSourceStorageSourcePtrOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutputWithContext

func (o FunctionBuildConfigSourceStorageSourcePtrOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourceStorageSourcePtrOutput

func (FunctionBuildConfigSourceStorageSourcePtrOutput) ToOutput added in v6.65.1

type FunctionEventTrigger

type FunctionEventTrigger struct {
	// Criteria used to filter events.
	// Structure is documented below.
	EventFilters []FunctionEventTriggerEventFilter `pulumi:"eventFilters"`
	// Required. The type of event to observe.
	EventType *string `pulumi:"eventType"`
	// The name of a Pub/Sub topic in the same project that will be used
	// as the transport topic for the event delivery.
	PubsubTopic *string `pulumi:"pubsubTopic"`
	// Describes the retry policy in case of function's execution failure.
	// Retried execution is charged as any other execution.
	// Possible values are: `RETRY_POLICY_UNSPECIFIED`, `RETRY_POLICY_DO_NOT_RETRY`, `RETRY_POLICY_RETRY`.
	RetryPolicy *string `pulumi:"retryPolicy"`
	// The email of the service account for this function.
	ServiceAccountEmail *string `pulumi:"serviceAccountEmail"`
	// (Output)
	// Output only. The resource name of the Eventarc trigger.
	Trigger *string `pulumi:"trigger"`
	// 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.
	TriggerRegion *string `pulumi:"triggerRegion"`
}

type FunctionEventTriggerArgs

type FunctionEventTriggerArgs struct {
	// Criteria used to filter events.
	// Structure is documented below.
	EventFilters FunctionEventTriggerEventFilterArrayInput `pulumi:"eventFilters"`
	// Required. The type of event to observe.
	EventType pulumi.StringPtrInput `pulumi:"eventType"`
	// The name of a Pub/Sub topic in the same project that will be used
	// as the transport topic for the event delivery.
	PubsubTopic pulumi.StringPtrInput `pulumi:"pubsubTopic"`
	// Describes the retry policy in case of function's execution failure.
	// Retried execution is charged as any other execution.
	// Possible values are: `RETRY_POLICY_UNSPECIFIED`, `RETRY_POLICY_DO_NOT_RETRY`, `RETRY_POLICY_RETRY`.
	RetryPolicy pulumi.StringPtrInput `pulumi:"retryPolicy"`
	// The email of the service account for this function.
	ServiceAccountEmail pulumi.StringPtrInput `pulumi:"serviceAccountEmail"`
	// (Output)
	// Output only. The resource name of the Eventarc trigger.
	Trigger pulumi.StringPtrInput `pulumi:"trigger"`
	// 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.
	TriggerRegion pulumi.StringPtrInput `pulumi:"triggerRegion"`
}

func (FunctionEventTriggerArgs) ElementType

func (FunctionEventTriggerArgs) ElementType() reflect.Type

func (FunctionEventTriggerArgs) ToFunctionEventTriggerOutput

func (i FunctionEventTriggerArgs) ToFunctionEventTriggerOutput() FunctionEventTriggerOutput

func (FunctionEventTriggerArgs) ToFunctionEventTriggerOutputWithContext

func (i FunctionEventTriggerArgs) ToFunctionEventTriggerOutputWithContext(ctx context.Context) FunctionEventTriggerOutput

func (FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutput

func (i FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput

func (FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutputWithContext

func (i FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutputWithContext(ctx context.Context) FunctionEventTriggerPtrOutput

func (FunctionEventTriggerArgs) ToOutput added in v6.65.1

type FunctionEventTriggerEventFilter added in v6.34.0

type FunctionEventTriggerEventFilter struct {
	// 'Required. The name of a CloudEvents attribute.
	// Currently, only a subset of attributes are supported for filtering. Use the `gcloud eventarc providers describe` command to learn more about events and their attributes.
	// Do not filter for the 'type' attribute here, as this is already achieved by the resource's `eventType` attribute.
	Attribute string `pulumi:"attribute"`
	// Optional. The operator used for matching the events with the value of
	// the filter. If not specified, only events that have an exact key-value
	// pair specified in the filter are matched.
	// The only allowed value is `match-path-pattern`.
	// [See documentation on path patterns here](https://cloud.google.com/eventarc/docs/path-patterns)'
	Operator *string `pulumi:"operator"`
	// Required. The value for the attribute.
	// If the operator field is set as `match-path-pattern`, this value can be a path pattern instead of an exact value.
	Value string `pulumi:"value"`
}

type FunctionEventTriggerEventFilterArgs added in v6.34.0

type FunctionEventTriggerEventFilterArgs struct {
	// 'Required. The name of a CloudEvents attribute.
	// Currently, only a subset of attributes are supported for filtering. Use the `gcloud eventarc providers describe` command to learn more about events and their attributes.
	// Do not filter for the 'type' attribute here, as this is already achieved by the resource's `eventType` attribute.
	Attribute pulumi.StringInput `pulumi:"attribute"`
	// Optional. The operator used for matching the events with the value of
	// the filter. If not specified, only events that have an exact key-value
	// pair specified in the filter are matched.
	// The only allowed value is `match-path-pattern`.
	// [See documentation on path patterns here](https://cloud.google.com/eventarc/docs/path-patterns)'
	Operator pulumi.StringPtrInput `pulumi:"operator"`
	// Required. The value for the attribute.
	// If the operator field is set as `match-path-pattern`, this value can be a path pattern instead of an exact value.
	Value pulumi.StringInput `pulumi:"value"`
}

func (FunctionEventTriggerEventFilterArgs) ElementType added in v6.34.0

func (FunctionEventTriggerEventFilterArgs) ToFunctionEventTriggerEventFilterOutput added in v6.34.0

func (i FunctionEventTriggerEventFilterArgs) ToFunctionEventTriggerEventFilterOutput() FunctionEventTriggerEventFilterOutput

func (FunctionEventTriggerEventFilterArgs) ToFunctionEventTriggerEventFilterOutputWithContext added in v6.34.0

func (i FunctionEventTriggerEventFilterArgs) ToFunctionEventTriggerEventFilterOutputWithContext(ctx context.Context) FunctionEventTriggerEventFilterOutput

func (FunctionEventTriggerEventFilterArgs) ToOutput added in v6.65.1

type FunctionEventTriggerEventFilterArray added in v6.34.0

type FunctionEventTriggerEventFilterArray []FunctionEventTriggerEventFilterInput

func (FunctionEventTriggerEventFilterArray) ElementType added in v6.34.0

func (FunctionEventTriggerEventFilterArray) ToFunctionEventTriggerEventFilterArrayOutput added in v6.34.0

func (i FunctionEventTriggerEventFilterArray) ToFunctionEventTriggerEventFilterArrayOutput() FunctionEventTriggerEventFilterArrayOutput

func (FunctionEventTriggerEventFilterArray) ToFunctionEventTriggerEventFilterArrayOutputWithContext added in v6.34.0

func (i FunctionEventTriggerEventFilterArray) ToFunctionEventTriggerEventFilterArrayOutputWithContext(ctx context.Context) FunctionEventTriggerEventFilterArrayOutput

func (FunctionEventTriggerEventFilterArray) ToOutput added in v6.65.1

type FunctionEventTriggerEventFilterArrayInput added in v6.34.0

type FunctionEventTriggerEventFilterArrayInput interface {
	pulumi.Input

	ToFunctionEventTriggerEventFilterArrayOutput() FunctionEventTriggerEventFilterArrayOutput
	ToFunctionEventTriggerEventFilterArrayOutputWithContext(context.Context) FunctionEventTriggerEventFilterArrayOutput
}

FunctionEventTriggerEventFilterArrayInput is an input type that accepts FunctionEventTriggerEventFilterArray and FunctionEventTriggerEventFilterArrayOutput values. You can construct a concrete instance of `FunctionEventTriggerEventFilterArrayInput` via:

FunctionEventTriggerEventFilterArray{ FunctionEventTriggerEventFilterArgs{...} }

type FunctionEventTriggerEventFilterArrayOutput added in v6.34.0

type FunctionEventTriggerEventFilterArrayOutput struct{ *pulumi.OutputState }

func (FunctionEventTriggerEventFilterArrayOutput) ElementType added in v6.34.0

func (FunctionEventTriggerEventFilterArrayOutput) Index added in v6.34.0

func (FunctionEventTriggerEventFilterArrayOutput) ToFunctionEventTriggerEventFilterArrayOutput added in v6.34.0

func (o FunctionEventTriggerEventFilterArrayOutput) ToFunctionEventTriggerEventFilterArrayOutput() FunctionEventTriggerEventFilterArrayOutput

func (FunctionEventTriggerEventFilterArrayOutput) ToFunctionEventTriggerEventFilterArrayOutputWithContext added in v6.34.0

func (o FunctionEventTriggerEventFilterArrayOutput) ToFunctionEventTriggerEventFilterArrayOutputWithContext(ctx context.Context) FunctionEventTriggerEventFilterArrayOutput

func (FunctionEventTriggerEventFilterArrayOutput) ToOutput added in v6.65.1

type FunctionEventTriggerEventFilterInput added in v6.34.0

type FunctionEventTriggerEventFilterInput interface {
	pulumi.Input

	ToFunctionEventTriggerEventFilterOutput() FunctionEventTriggerEventFilterOutput
	ToFunctionEventTriggerEventFilterOutputWithContext(context.Context) FunctionEventTriggerEventFilterOutput
}

FunctionEventTriggerEventFilterInput is an input type that accepts FunctionEventTriggerEventFilterArgs and FunctionEventTriggerEventFilterOutput values. You can construct a concrete instance of `FunctionEventTriggerEventFilterInput` via:

FunctionEventTriggerEventFilterArgs{...}

type FunctionEventTriggerEventFilterOutput added in v6.34.0

type FunctionEventTriggerEventFilterOutput struct{ *pulumi.OutputState }

func (FunctionEventTriggerEventFilterOutput) Attribute added in v6.34.0

'Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. Use the `gcloud eventarc providers describe` command to learn more about events and their attributes. Do not filter for the 'type' attribute here, as this is already achieved by the resource's `eventType` attribute.

func (FunctionEventTriggerEventFilterOutput) ElementType added in v6.34.0

func (FunctionEventTriggerEventFilterOutput) Operator added in v6.34.0

Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`. [See documentation on path patterns here](https://cloud.google.com/eventarc/docs/path-patterns)'

func (FunctionEventTriggerEventFilterOutput) ToFunctionEventTriggerEventFilterOutput added in v6.34.0

func (o FunctionEventTriggerEventFilterOutput) ToFunctionEventTriggerEventFilterOutput() FunctionEventTriggerEventFilterOutput

func (FunctionEventTriggerEventFilterOutput) ToFunctionEventTriggerEventFilterOutputWithContext added in v6.34.0

func (o FunctionEventTriggerEventFilterOutput) ToFunctionEventTriggerEventFilterOutputWithContext(ctx context.Context) FunctionEventTriggerEventFilterOutput

func (FunctionEventTriggerEventFilterOutput) ToOutput added in v6.65.1

func (FunctionEventTriggerEventFilterOutput) Value added in v6.34.0

Required. The value for the attribute. If the operator field is set as `match-path-pattern`, this value can be a path pattern instead of an exact value.

type FunctionEventTriggerInput

type FunctionEventTriggerInput interface {
	pulumi.Input

	ToFunctionEventTriggerOutput() FunctionEventTriggerOutput
	ToFunctionEventTriggerOutputWithContext(context.Context) FunctionEventTriggerOutput
}

FunctionEventTriggerInput is an input type that accepts FunctionEventTriggerArgs and FunctionEventTriggerOutput values. You can construct a concrete instance of `FunctionEventTriggerInput` via:

FunctionEventTriggerArgs{...}

type FunctionEventTriggerOutput

type FunctionEventTriggerOutput struct{ *pulumi.OutputState }

func (FunctionEventTriggerOutput) ElementType

func (FunctionEventTriggerOutput) ElementType() reflect.Type

func (FunctionEventTriggerOutput) EventFilters added in v6.34.0

Criteria used to filter events. Structure is documented below.

func (FunctionEventTriggerOutput) EventType

Required. The type of event to observe.

func (FunctionEventTriggerOutput) PubsubTopic

The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery.

func (FunctionEventTriggerOutput) RetryPolicy

Describes the retry policy in case of function's execution failure. Retried execution is charged as any other execution. Possible values are: `RETRY_POLICY_UNSPECIFIED`, `RETRY_POLICY_DO_NOT_RETRY`, `RETRY_POLICY_RETRY`.

func (FunctionEventTriggerOutput) ServiceAccountEmail

func (o FunctionEventTriggerOutput) ServiceAccountEmail() pulumi.StringPtrOutput

The email of the service account for this function.

func (FunctionEventTriggerOutput) ToFunctionEventTriggerOutput

func (o FunctionEventTriggerOutput) ToFunctionEventTriggerOutput() FunctionEventTriggerOutput

func (FunctionEventTriggerOutput) ToFunctionEventTriggerOutputWithContext

func (o FunctionEventTriggerOutput) ToFunctionEventTriggerOutputWithContext(ctx context.Context) FunctionEventTriggerOutput

func (FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutput

func (o FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput

func (FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutputWithContext

func (o FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutputWithContext(ctx context.Context) FunctionEventTriggerPtrOutput

func (FunctionEventTriggerOutput) ToOutput added in v6.65.1

func (FunctionEventTriggerOutput) Trigger

(Output) Output only. The resource name of the Eventarc trigger.

func (FunctionEventTriggerOutput) TriggerRegion

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.

type FunctionEventTriggerPtrInput

type FunctionEventTriggerPtrInput interface {
	pulumi.Input

	ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput
	ToFunctionEventTriggerPtrOutputWithContext(context.Context) FunctionEventTriggerPtrOutput
}

FunctionEventTriggerPtrInput is an input type that accepts FunctionEventTriggerArgs, FunctionEventTriggerPtr and FunctionEventTriggerPtrOutput values. You can construct a concrete instance of `FunctionEventTriggerPtrInput` via:

        FunctionEventTriggerArgs{...}

or:

        nil

type FunctionEventTriggerPtrOutput

type FunctionEventTriggerPtrOutput struct{ *pulumi.OutputState }

func (FunctionEventTriggerPtrOutput) Elem

func (FunctionEventTriggerPtrOutput) ElementType

func (FunctionEventTriggerPtrOutput) EventFilters added in v6.34.0

Criteria used to filter events. Structure is documented below.

func (FunctionEventTriggerPtrOutput) EventType

Required. The type of event to observe.

func (FunctionEventTriggerPtrOutput) PubsubTopic

The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery.

func (FunctionEventTriggerPtrOutput) RetryPolicy

Describes the retry policy in case of function's execution failure. Retried execution is charged as any other execution. Possible values are: `RETRY_POLICY_UNSPECIFIED`, `RETRY_POLICY_DO_NOT_RETRY`, `RETRY_POLICY_RETRY`.

func (FunctionEventTriggerPtrOutput) ServiceAccountEmail

func (o FunctionEventTriggerPtrOutput) ServiceAccountEmail() pulumi.StringPtrOutput

The email of the service account for this function.

func (FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutput

func (o FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput

func (FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutputWithContext

func (o FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutputWithContext(ctx context.Context) FunctionEventTriggerPtrOutput

func (FunctionEventTriggerPtrOutput) ToOutput added in v6.65.1

func (FunctionEventTriggerPtrOutput) Trigger

(Output) Output only. The resource name of the Eventarc trigger.

func (FunctionEventTriggerPtrOutput) TriggerRegion

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.

type FunctionIamBinding added in v6.29.0

type FunctionIamBinding struct {
	pulumi.CustomResourceState

	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringOutput                  `pulumi:"cloudFunction"`
	Condition     FunctionIamBindingConditionPtrOutput `pulumi:"condition"`
	// (Computed) The etag of the IAM policy.
	Etag pulumi.StringOutput `pulumi:"etag"`
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringOutput      `pulumi:"location"`
	Members  pulumi.StringArrayOutput `pulumi:"members"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringOutput `pulumi:"project"`
	// The role that should be applied. Only one
	// `cloudfunctionsv2.FunctionIamBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringOutput `pulumi:"role"`
}

Three different resources help you manage your IAM policy for Cloud Functions (2nd gen) function. Each of these resources serves a different use case:

* `cloudfunctionsv2.FunctionIamPolicy`: Authoritative. Sets the IAM policy for the function and replaces any existing policy already attached. * `cloudfunctionsv2.FunctionIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the function are preserved. * `cloudfunctionsv2.FunctionIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the function are preserved.

A data source can be used to retrieve policy data in advent you do not need creation

* `cloudfunctionsv2.FunctionIamPolicy`: Retrieves the IAM policy for the function

> **Note:** `cloudfunctionsv2.FunctionIamPolicy` **cannot** be used in conjunction with `cloudfunctionsv2.FunctionIamBinding` and `cloudfunctionsv2.FunctionIamMember` or they will fight over what your policy should be.

> **Note:** `cloudfunctionsv2.FunctionIamBinding` resources **can be** used in conjunction with `cloudfunctionsv2.FunctionIamMember` resources **only if** they do not grant privilege to the same role.

## google\_cloudfunctions2\_function\_iam\_policy

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctionsv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
			Bindings: []organizations.GetIAMPolicyBinding{
				{
					Role: "roles/viewer",
					Members: []string{
						"user:jane@example.com",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = cloudfunctionsv2.NewFunctionIamPolicy(ctx, "policy", &cloudfunctionsv2.FunctionIamPolicyArgs{
			Project:       pulumi.Any(google_cloudfunctions2_function.Function.Project),
			Location:      pulumi.Any(google_cloudfunctions2_function.Function.Location),
			CloudFunction: pulumi.Any(google_cloudfunctions2_function.Function.Name),
			PolicyData:    *pulumi.String(admin.PolicyData),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudfunctions2\_function\_iam\_binding

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctionsv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctionsv2.NewFunctionIamBinding(ctx, "binding", &cloudfunctionsv2.FunctionIamBindingArgs{
			Project:       pulumi.Any(google_cloudfunctions2_function.Function.Project),
			Location:      pulumi.Any(google_cloudfunctions2_function.Function.Location),
			CloudFunction: pulumi.Any(google_cloudfunctions2_function.Function.Name),
			Role:          pulumi.String("roles/viewer"),
			Members: pulumi.StringArray{
				pulumi.String("user:jane@example.com"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudfunctions2\_function\_iam\_member

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctionsv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctionsv2.NewFunctionIamMember(ctx, "member", &cloudfunctionsv2.FunctionIamMemberArgs{
			Project:       pulumi.Any(google_cloudfunctions2_function.Function.Project),
			Location:      pulumi.Any(google_cloudfunctions2_function.Function.Location),
			CloudFunction: pulumi.Any(google_cloudfunctions2_function.Function.Name),
			Role:          pulumi.String("roles/viewer"),
			Member:        pulumi.String("user:jane@example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{location}}/functions/{{cloud_function}} * {{project}}/{{location}}/{{cloud_function}} * {{location}}/{{cloud_function}} * {{cloud_function}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Functions (2nd gen) function IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.

```sh

$ pulumi import gcp:cloudfunctionsv2/functionIamBinding:FunctionIamBinding editor "projects/{{project}}/locations/{{location}}/functions/{{cloud_function}} roles/viewer user:jane@example.com"

```

IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.

```sh

$ pulumi import gcp:cloudfunctionsv2/functionIamBinding:FunctionIamBinding editor "projects/{{project}}/locations/{{location}}/functions/{{cloud_function}} roles/viewer"

```

IAM policy imports use the identifier of the resource in question, e.g.

```sh

$ pulumi import gcp:cloudfunctionsv2/functionIamBinding:FunctionIamBinding editor projects/{{project}}/locations/{{location}}/functions/{{cloud_function}}

```

-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the

full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.

func GetFunctionIamBinding added in v6.29.0

func GetFunctionIamBinding(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FunctionIamBindingState, opts ...pulumi.ResourceOption) (*FunctionIamBinding, error)

GetFunctionIamBinding gets an existing FunctionIamBinding resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFunctionIamBinding added in v6.29.0

func NewFunctionIamBinding(ctx *pulumi.Context,
	name string, args *FunctionIamBindingArgs, opts ...pulumi.ResourceOption) (*FunctionIamBinding, error)

NewFunctionIamBinding registers a new resource with the given unique name, arguments, and options.

func (*FunctionIamBinding) ElementType added in v6.29.0

func (*FunctionIamBinding) ElementType() reflect.Type

func (*FunctionIamBinding) ToFunctionIamBindingOutput added in v6.29.0

func (i *FunctionIamBinding) ToFunctionIamBindingOutput() FunctionIamBindingOutput

func (*FunctionIamBinding) ToFunctionIamBindingOutputWithContext added in v6.29.0

func (i *FunctionIamBinding) ToFunctionIamBindingOutputWithContext(ctx context.Context) FunctionIamBindingOutput

func (*FunctionIamBinding) ToOutput added in v6.65.1

type FunctionIamBindingArgs added in v6.29.0

type FunctionIamBindingArgs struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringInput
	Condition     FunctionIamBindingConditionPtrInput
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringPtrInput
	Members  pulumi.StringArrayInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudfunctionsv2.FunctionIamBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringInput
}

The set of arguments for constructing a FunctionIamBinding resource.

func (FunctionIamBindingArgs) ElementType added in v6.29.0

func (FunctionIamBindingArgs) ElementType() reflect.Type

type FunctionIamBindingArray added in v6.29.0

type FunctionIamBindingArray []FunctionIamBindingInput

func (FunctionIamBindingArray) ElementType added in v6.29.0

func (FunctionIamBindingArray) ElementType() reflect.Type

func (FunctionIamBindingArray) ToFunctionIamBindingArrayOutput added in v6.29.0

func (i FunctionIamBindingArray) ToFunctionIamBindingArrayOutput() FunctionIamBindingArrayOutput

func (FunctionIamBindingArray) ToFunctionIamBindingArrayOutputWithContext added in v6.29.0

func (i FunctionIamBindingArray) ToFunctionIamBindingArrayOutputWithContext(ctx context.Context) FunctionIamBindingArrayOutput

func (FunctionIamBindingArray) ToOutput added in v6.65.1

type FunctionIamBindingArrayInput added in v6.29.0

type FunctionIamBindingArrayInput interface {
	pulumi.Input

	ToFunctionIamBindingArrayOutput() FunctionIamBindingArrayOutput
	ToFunctionIamBindingArrayOutputWithContext(context.Context) FunctionIamBindingArrayOutput
}

FunctionIamBindingArrayInput is an input type that accepts FunctionIamBindingArray and FunctionIamBindingArrayOutput values. You can construct a concrete instance of `FunctionIamBindingArrayInput` via:

FunctionIamBindingArray{ FunctionIamBindingArgs{...} }

type FunctionIamBindingArrayOutput added in v6.29.0

type FunctionIamBindingArrayOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingArrayOutput) ElementType added in v6.29.0

func (FunctionIamBindingArrayOutput) Index added in v6.29.0

func (FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutput added in v6.29.0

func (o FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutput() FunctionIamBindingArrayOutput

func (FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutputWithContext added in v6.29.0

func (o FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutputWithContext(ctx context.Context) FunctionIamBindingArrayOutput

func (FunctionIamBindingArrayOutput) ToOutput added in v6.65.1

type FunctionIamBindingCondition added in v6.29.0

type FunctionIamBindingCondition struct {
	Description *string `pulumi:"description"`
	Expression  string  `pulumi:"expression"`
	Title       string  `pulumi:"title"`
}

type FunctionIamBindingConditionArgs added in v6.29.0

type FunctionIamBindingConditionArgs struct {
	Description pulumi.StringPtrInput `pulumi:"description"`
	Expression  pulumi.StringInput    `pulumi:"expression"`
	Title       pulumi.StringInput    `pulumi:"title"`
}

func (FunctionIamBindingConditionArgs) ElementType added in v6.29.0

func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutput added in v6.29.0

func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutput() FunctionIamBindingConditionOutput

func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutputWithContext added in v6.29.0

func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutputWithContext(ctx context.Context) FunctionIamBindingConditionOutput

func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutput added in v6.29.0

func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput

func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutputWithContext added in v6.29.0

func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutputWithContext(ctx context.Context) FunctionIamBindingConditionPtrOutput

func (FunctionIamBindingConditionArgs) ToOutput added in v6.65.1

type FunctionIamBindingConditionInput added in v6.29.0

type FunctionIamBindingConditionInput interface {
	pulumi.Input

	ToFunctionIamBindingConditionOutput() FunctionIamBindingConditionOutput
	ToFunctionIamBindingConditionOutputWithContext(context.Context) FunctionIamBindingConditionOutput
}

FunctionIamBindingConditionInput is an input type that accepts FunctionIamBindingConditionArgs and FunctionIamBindingConditionOutput values. You can construct a concrete instance of `FunctionIamBindingConditionInput` via:

FunctionIamBindingConditionArgs{...}

type FunctionIamBindingConditionOutput added in v6.29.0

type FunctionIamBindingConditionOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingConditionOutput) Description added in v6.29.0

func (FunctionIamBindingConditionOutput) ElementType added in v6.29.0

func (FunctionIamBindingConditionOutput) Expression added in v6.29.0

func (FunctionIamBindingConditionOutput) Title added in v6.29.0

func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutput added in v6.29.0

func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutput() FunctionIamBindingConditionOutput

func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutputWithContext added in v6.29.0

func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutputWithContext(ctx context.Context) FunctionIamBindingConditionOutput

func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutput added in v6.29.0

func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput

func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutputWithContext added in v6.29.0

func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutputWithContext(ctx context.Context) FunctionIamBindingConditionPtrOutput

func (FunctionIamBindingConditionOutput) ToOutput added in v6.65.1

type FunctionIamBindingConditionPtrInput added in v6.29.0

type FunctionIamBindingConditionPtrInput interface {
	pulumi.Input

	ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput
	ToFunctionIamBindingConditionPtrOutputWithContext(context.Context) FunctionIamBindingConditionPtrOutput
}

FunctionIamBindingConditionPtrInput is an input type that accepts FunctionIamBindingConditionArgs, FunctionIamBindingConditionPtr and FunctionIamBindingConditionPtrOutput values. You can construct a concrete instance of `FunctionIamBindingConditionPtrInput` via:

        FunctionIamBindingConditionArgs{...}

or:

        nil

func FunctionIamBindingConditionPtr added in v6.29.0

type FunctionIamBindingConditionPtrOutput added in v6.29.0

type FunctionIamBindingConditionPtrOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingConditionPtrOutput) Description added in v6.29.0

func (FunctionIamBindingConditionPtrOutput) Elem added in v6.29.0

func (FunctionIamBindingConditionPtrOutput) ElementType added in v6.29.0

func (FunctionIamBindingConditionPtrOutput) Expression added in v6.29.0

func (FunctionIamBindingConditionPtrOutput) Title added in v6.29.0

func (FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutput added in v6.29.0

func (o FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput

func (FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutputWithContext added in v6.29.0

func (o FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutputWithContext(ctx context.Context) FunctionIamBindingConditionPtrOutput

func (FunctionIamBindingConditionPtrOutput) ToOutput added in v6.65.1

type FunctionIamBindingInput added in v6.29.0

type FunctionIamBindingInput interface {
	pulumi.Input

	ToFunctionIamBindingOutput() FunctionIamBindingOutput
	ToFunctionIamBindingOutputWithContext(ctx context.Context) FunctionIamBindingOutput
}

type FunctionIamBindingMap added in v6.29.0

type FunctionIamBindingMap map[string]FunctionIamBindingInput

func (FunctionIamBindingMap) ElementType added in v6.29.0

func (FunctionIamBindingMap) ElementType() reflect.Type

func (FunctionIamBindingMap) ToFunctionIamBindingMapOutput added in v6.29.0

func (i FunctionIamBindingMap) ToFunctionIamBindingMapOutput() FunctionIamBindingMapOutput

func (FunctionIamBindingMap) ToFunctionIamBindingMapOutputWithContext added in v6.29.0

func (i FunctionIamBindingMap) ToFunctionIamBindingMapOutputWithContext(ctx context.Context) FunctionIamBindingMapOutput

func (FunctionIamBindingMap) ToOutput added in v6.65.1

type FunctionIamBindingMapInput added in v6.29.0

type FunctionIamBindingMapInput interface {
	pulumi.Input

	ToFunctionIamBindingMapOutput() FunctionIamBindingMapOutput
	ToFunctionIamBindingMapOutputWithContext(context.Context) FunctionIamBindingMapOutput
}

FunctionIamBindingMapInput is an input type that accepts FunctionIamBindingMap and FunctionIamBindingMapOutput values. You can construct a concrete instance of `FunctionIamBindingMapInput` via:

FunctionIamBindingMap{ "key": FunctionIamBindingArgs{...} }

type FunctionIamBindingMapOutput added in v6.29.0

type FunctionIamBindingMapOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingMapOutput) ElementType added in v6.29.0

func (FunctionIamBindingMapOutput) MapIndex added in v6.29.0

func (FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutput added in v6.29.0

func (o FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutput() FunctionIamBindingMapOutput

func (FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutputWithContext added in v6.29.0

func (o FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutputWithContext(ctx context.Context) FunctionIamBindingMapOutput

func (FunctionIamBindingMapOutput) ToOutput added in v6.65.1

type FunctionIamBindingOutput added in v6.29.0

type FunctionIamBindingOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingOutput) CloudFunction added in v6.29.0

func (o FunctionIamBindingOutput) CloudFunction() pulumi.StringOutput

Used to find the parent resource to bind the IAM policy to

func (FunctionIamBindingOutput) Condition added in v6.29.0

func (FunctionIamBindingOutput) ElementType added in v6.29.0

func (FunctionIamBindingOutput) ElementType() reflect.Type

func (FunctionIamBindingOutput) Etag added in v6.29.0

(Computed) The etag of the IAM policy.

func (FunctionIamBindingOutput) Location added in v6.29.0

The location of this cloud function. Used to find the parent resource to bind the IAM policy to

func (FunctionIamBindingOutput) Members added in v6.29.0

func (FunctionIamBindingOutput) Project added in v6.29.0

The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.

  • `member/members` - (Required) Identities that will be granted the privilege in `role`. Each entry can have one of the following values:
  • **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
  • **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
  • **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
  • **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
  • **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
  • **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
  • **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
  • **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
  • **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"

func (FunctionIamBindingOutput) Role added in v6.29.0

The role that should be applied. Only one `cloudfunctionsv2.FunctionIamBinding` can be used per role. Note that custom roles must be of the format `[projects|organizations]/{parent-name}/roles/{role-name}`.

func (FunctionIamBindingOutput) ToFunctionIamBindingOutput added in v6.29.0

func (o FunctionIamBindingOutput) ToFunctionIamBindingOutput() FunctionIamBindingOutput

func (FunctionIamBindingOutput) ToFunctionIamBindingOutputWithContext added in v6.29.0

func (o FunctionIamBindingOutput) ToFunctionIamBindingOutputWithContext(ctx context.Context) FunctionIamBindingOutput

func (FunctionIamBindingOutput) ToOutput added in v6.65.1

type FunctionIamBindingState added in v6.29.0

type FunctionIamBindingState struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringPtrInput
	Condition     FunctionIamBindingConditionPtrInput
	// (Computed) The etag of the IAM policy.
	Etag pulumi.StringPtrInput
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringPtrInput
	Members  pulumi.StringArrayInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudfunctionsv2.FunctionIamBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringPtrInput
}

func (FunctionIamBindingState) ElementType added in v6.29.0

func (FunctionIamBindingState) ElementType() reflect.Type

type FunctionIamMember added in v6.29.0

type FunctionIamMember struct {
	pulumi.CustomResourceState

	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringOutput                 `pulumi:"cloudFunction"`
	Condition     FunctionIamMemberConditionPtrOutput `pulumi:"condition"`
	// (Computed) The etag of the IAM policy.
	Etag pulumi.StringOutput `pulumi:"etag"`
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringOutput `pulumi:"location"`
	Member   pulumi.StringOutput `pulumi:"member"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringOutput `pulumi:"project"`
	// The role that should be applied. Only one
	// `cloudfunctionsv2.FunctionIamBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringOutput `pulumi:"role"`
}

Three different resources help you manage your IAM policy for Cloud Functions (2nd gen) function. Each of these resources serves a different use case:

* `cloudfunctionsv2.FunctionIamPolicy`: Authoritative. Sets the IAM policy for the function and replaces any existing policy already attached. * `cloudfunctionsv2.FunctionIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the function are preserved. * `cloudfunctionsv2.FunctionIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the function are preserved.

A data source can be used to retrieve policy data in advent you do not need creation

* `cloudfunctionsv2.FunctionIamPolicy`: Retrieves the IAM policy for the function

> **Note:** `cloudfunctionsv2.FunctionIamPolicy` **cannot** be used in conjunction with `cloudfunctionsv2.FunctionIamBinding` and `cloudfunctionsv2.FunctionIamMember` or they will fight over what your policy should be.

> **Note:** `cloudfunctionsv2.FunctionIamBinding` resources **can be** used in conjunction with `cloudfunctionsv2.FunctionIamMember` resources **only if** they do not grant privilege to the same role.

## google\_cloudfunctions2\_function\_iam\_policy

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctionsv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
			Bindings: []organizations.GetIAMPolicyBinding{
				{
					Role: "roles/viewer",
					Members: []string{
						"user:jane@example.com",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = cloudfunctionsv2.NewFunctionIamPolicy(ctx, "policy", &cloudfunctionsv2.FunctionIamPolicyArgs{
			Project:       pulumi.Any(google_cloudfunctions2_function.Function.Project),
			Location:      pulumi.Any(google_cloudfunctions2_function.Function.Location),
			CloudFunction: pulumi.Any(google_cloudfunctions2_function.Function.Name),
			PolicyData:    *pulumi.String(admin.PolicyData),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudfunctions2\_function\_iam\_binding

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctionsv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctionsv2.NewFunctionIamBinding(ctx, "binding", &cloudfunctionsv2.FunctionIamBindingArgs{
			Project:       pulumi.Any(google_cloudfunctions2_function.Function.Project),
			Location:      pulumi.Any(google_cloudfunctions2_function.Function.Location),
			CloudFunction: pulumi.Any(google_cloudfunctions2_function.Function.Name),
			Role:          pulumi.String("roles/viewer"),
			Members: pulumi.StringArray{
				pulumi.String("user:jane@example.com"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudfunctions2\_function\_iam\_member

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctionsv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctionsv2.NewFunctionIamMember(ctx, "member", &cloudfunctionsv2.FunctionIamMemberArgs{
			Project:       pulumi.Any(google_cloudfunctions2_function.Function.Project),
			Location:      pulumi.Any(google_cloudfunctions2_function.Function.Location),
			CloudFunction: pulumi.Any(google_cloudfunctions2_function.Function.Name),
			Role:          pulumi.String("roles/viewer"),
			Member:        pulumi.String("user:jane@example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{location}}/functions/{{cloud_function}} * {{project}}/{{location}}/{{cloud_function}} * {{location}}/{{cloud_function}} * {{cloud_function}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Functions (2nd gen) function IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.

```sh

$ pulumi import gcp:cloudfunctionsv2/functionIamMember:FunctionIamMember editor "projects/{{project}}/locations/{{location}}/functions/{{cloud_function}} roles/viewer user:jane@example.com"

```

IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.

```sh

$ pulumi import gcp:cloudfunctionsv2/functionIamMember:FunctionIamMember editor "projects/{{project}}/locations/{{location}}/functions/{{cloud_function}} roles/viewer"

```

IAM policy imports use the identifier of the resource in question, e.g.

```sh

$ pulumi import gcp:cloudfunctionsv2/functionIamMember:FunctionIamMember editor projects/{{project}}/locations/{{location}}/functions/{{cloud_function}}

```

-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the

full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.

func GetFunctionIamMember added in v6.29.0

func GetFunctionIamMember(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FunctionIamMemberState, opts ...pulumi.ResourceOption) (*FunctionIamMember, error)

GetFunctionIamMember gets an existing FunctionIamMember resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFunctionIamMember added in v6.29.0

func NewFunctionIamMember(ctx *pulumi.Context,
	name string, args *FunctionIamMemberArgs, opts ...pulumi.ResourceOption) (*FunctionIamMember, error)

NewFunctionIamMember registers a new resource with the given unique name, arguments, and options.

func (*FunctionIamMember) ElementType added in v6.29.0

func (*FunctionIamMember) ElementType() reflect.Type

func (*FunctionIamMember) ToFunctionIamMemberOutput added in v6.29.0

func (i *FunctionIamMember) ToFunctionIamMemberOutput() FunctionIamMemberOutput

func (*FunctionIamMember) ToFunctionIamMemberOutputWithContext added in v6.29.0

func (i *FunctionIamMember) ToFunctionIamMemberOutputWithContext(ctx context.Context) FunctionIamMemberOutput

func (*FunctionIamMember) ToOutput added in v6.65.1

type FunctionIamMemberArgs added in v6.29.0

type FunctionIamMemberArgs struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringInput
	Condition     FunctionIamMemberConditionPtrInput
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringPtrInput
	Member   pulumi.StringInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudfunctionsv2.FunctionIamBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringInput
}

The set of arguments for constructing a FunctionIamMember resource.

func (FunctionIamMemberArgs) ElementType added in v6.29.0

func (FunctionIamMemberArgs) ElementType() reflect.Type

type FunctionIamMemberArray added in v6.29.0

type FunctionIamMemberArray []FunctionIamMemberInput

func (FunctionIamMemberArray) ElementType added in v6.29.0

func (FunctionIamMemberArray) ElementType() reflect.Type

func (FunctionIamMemberArray) ToFunctionIamMemberArrayOutput added in v6.29.0

func (i FunctionIamMemberArray) ToFunctionIamMemberArrayOutput() FunctionIamMemberArrayOutput

func (FunctionIamMemberArray) ToFunctionIamMemberArrayOutputWithContext added in v6.29.0

func (i FunctionIamMemberArray) ToFunctionIamMemberArrayOutputWithContext(ctx context.Context) FunctionIamMemberArrayOutput

func (FunctionIamMemberArray) ToOutput added in v6.65.1

type FunctionIamMemberArrayInput added in v6.29.0

type FunctionIamMemberArrayInput interface {
	pulumi.Input

	ToFunctionIamMemberArrayOutput() FunctionIamMemberArrayOutput
	ToFunctionIamMemberArrayOutputWithContext(context.Context) FunctionIamMemberArrayOutput
}

FunctionIamMemberArrayInput is an input type that accepts FunctionIamMemberArray and FunctionIamMemberArrayOutput values. You can construct a concrete instance of `FunctionIamMemberArrayInput` via:

FunctionIamMemberArray{ FunctionIamMemberArgs{...} }

type FunctionIamMemberArrayOutput added in v6.29.0

type FunctionIamMemberArrayOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberArrayOutput) ElementType added in v6.29.0

func (FunctionIamMemberArrayOutput) Index added in v6.29.0

func (FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutput added in v6.29.0

func (o FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutput() FunctionIamMemberArrayOutput

func (FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutputWithContext added in v6.29.0

func (o FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutputWithContext(ctx context.Context) FunctionIamMemberArrayOutput

func (FunctionIamMemberArrayOutput) ToOutput added in v6.65.1

type FunctionIamMemberCondition added in v6.29.0

type FunctionIamMemberCondition struct {
	Description *string `pulumi:"description"`
	Expression  string  `pulumi:"expression"`
	Title       string  `pulumi:"title"`
}

type FunctionIamMemberConditionArgs added in v6.29.0

type FunctionIamMemberConditionArgs struct {
	Description pulumi.StringPtrInput `pulumi:"description"`
	Expression  pulumi.StringInput    `pulumi:"expression"`
	Title       pulumi.StringInput    `pulumi:"title"`
}

func (FunctionIamMemberConditionArgs) ElementType added in v6.29.0

func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutput added in v6.29.0

func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutput() FunctionIamMemberConditionOutput

func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutputWithContext added in v6.29.0

func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutputWithContext(ctx context.Context) FunctionIamMemberConditionOutput

func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutput added in v6.29.0

func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput

func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutputWithContext added in v6.29.0

func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutputWithContext(ctx context.Context) FunctionIamMemberConditionPtrOutput

func (FunctionIamMemberConditionArgs) ToOutput added in v6.65.1

type FunctionIamMemberConditionInput added in v6.29.0

type FunctionIamMemberConditionInput interface {
	pulumi.Input

	ToFunctionIamMemberConditionOutput() FunctionIamMemberConditionOutput
	ToFunctionIamMemberConditionOutputWithContext(context.Context) FunctionIamMemberConditionOutput
}

FunctionIamMemberConditionInput is an input type that accepts FunctionIamMemberConditionArgs and FunctionIamMemberConditionOutput values. You can construct a concrete instance of `FunctionIamMemberConditionInput` via:

FunctionIamMemberConditionArgs{...}

type FunctionIamMemberConditionOutput added in v6.29.0

type FunctionIamMemberConditionOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberConditionOutput) Description added in v6.29.0

func (FunctionIamMemberConditionOutput) ElementType added in v6.29.0

func (FunctionIamMemberConditionOutput) Expression added in v6.29.0

func (FunctionIamMemberConditionOutput) Title added in v6.29.0

func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutput added in v6.29.0

func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutput() FunctionIamMemberConditionOutput

func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutputWithContext added in v6.29.0

func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutputWithContext(ctx context.Context) FunctionIamMemberConditionOutput

func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutput added in v6.29.0

func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput

func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutputWithContext added in v6.29.0

func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutputWithContext(ctx context.Context) FunctionIamMemberConditionPtrOutput

func (FunctionIamMemberConditionOutput) ToOutput added in v6.65.1

type FunctionIamMemberConditionPtrInput added in v6.29.0

type FunctionIamMemberConditionPtrInput interface {
	pulumi.Input

	ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput
	ToFunctionIamMemberConditionPtrOutputWithContext(context.Context) FunctionIamMemberConditionPtrOutput
}

FunctionIamMemberConditionPtrInput is an input type that accepts FunctionIamMemberConditionArgs, FunctionIamMemberConditionPtr and FunctionIamMemberConditionPtrOutput values. You can construct a concrete instance of `FunctionIamMemberConditionPtrInput` via:

        FunctionIamMemberConditionArgs{...}

or:

        nil

func FunctionIamMemberConditionPtr added in v6.29.0

type FunctionIamMemberConditionPtrOutput added in v6.29.0

type FunctionIamMemberConditionPtrOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberConditionPtrOutput) Description added in v6.29.0

func (FunctionIamMemberConditionPtrOutput) Elem added in v6.29.0

func (FunctionIamMemberConditionPtrOutput) ElementType added in v6.29.0

func (FunctionIamMemberConditionPtrOutput) Expression added in v6.29.0

func (FunctionIamMemberConditionPtrOutput) Title added in v6.29.0

func (FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutput added in v6.29.0

func (o FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput

func (FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutputWithContext added in v6.29.0

func (o FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutputWithContext(ctx context.Context) FunctionIamMemberConditionPtrOutput

func (FunctionIamMemberConditionPtrOutput) ToOutput added in v6.65.1

type FunctionIamMemberInput added in v6.29.0

type FunctionIamMemberInput interface {
	pulumi.Input

	ToFunctionIamMemberOutput() FunctionIamMemberOutput
	ToFunctionIamMemberOutputWithContext(ctx context.Context) FunctionIamMemberOutput
}

type FunctionIamMemberMap added in v6.29.0

type FunctionIamMemberMap map[string]FunctionIamMemberInput

func (FunctionIamMemberMap) ElementType added in v6.29.0

func (FunctionIamMemberMap) ElementType() reflect.Type

func (FunctionIamMemberMap) ToFunctionIamMemberMapOutput added in v6.29.0

func (i FunctionIamMemberMap) ToFunctionIamMemberMapOutput() FunctionIamMemberMapOutput

func (FunctionIamMemberMap) ToFunctionIamMemberMapOutputWithContext added in v6.29.0

func (i FunctionIamMemberMap) ToFunctionIamMemberMapOutputWithContext(ctx context.Context) FunctionIamMemberMapOutput

func (FunctionIamMemberMap) ToOutput added in v6.65.1

type FunctionIamMemberMapInput added in v6.29.0

type FunctionIamMemberMapInput interface {
	pulumi.Input

	ToFunctionIamMemberMapOutput() FunctionIamMemberMapOutput
	ToFunctionIamMemberMapOutputWithContext(context.Context) FunctionIamMemberMapOutput
}

FunctionIamMemberMapInput is an input type that accepts FunctionIamMemberMap and FunctionIamMemberMapOutput values. You can construct a concrete instance of `FunctionIamMemberMapInput` via:

FunctionIamMemberMap{ "key": FunctionIamMemberArgs{...} }

type FunctionIamMemberMapOutput added in v6.29.0

type FunctionIamMemberMapOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberMapOutput) ElementType added in v6.29.0

func (FunctionIamMemberMapOutput) ElementType() reflect.Type

func (FunctionIamMemberMapOutput) MapIndex added in v6.29.0

func (FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutput added in v6.29.0

func (o FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutput() FunctionIamMemberMapOutput

func (FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutputWithContext added in v6.29.0

func (o FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutputWithContext(ctx context.Context) FunctionIamMemberMapOutput

func (FunctionIamMemberMapOutput) ToOutput added in v6.65.1

type FunctionIamMemberOutput added in v6.29.0

type FunctionIamMemberOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberOutput) CloudFunction added in v6.29.0

func (o FunctionIamMemberOutput) CloudFunction() pulumi.StringOutput

Used to find the parent resource to bind the IAM policy to

func (FunctionIamMemberOutput) Condition added in v6.29.0

func (FunctionIamMemberOutput) ElementType added in v6.29.0

func (FunctionIamMemberOutput) ElementType() reflect.Type

func (FunctionIamMemberOutput) Etag added in v6.29.0

(Computed) The etag of the IAM policy.

func (FunctionIamMemberOutput) Location added in v6.29.0

The location of this cloud function. Used to find the parent resource to bind the IAM policy to

func (FunctionIamMemberOutput) Member added in v6.29.0

func (FunctionIamMemberOutput) Project added in v6.29.0

The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.

  • `member/members` - (Required) Identities that will be granted the privilege in `role`. Each entry can have one of the following values:
  • **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
  • **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
  • **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
  • **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
  • **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
  • **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
  • **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
  • **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
  • **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"

func (FunctionIamMemberOutput) Role added in v6.29.0

The role that should be applied. Only one `cloudfunctionsv2.FunctionIamBinding` can be used per role. Note that custom roles must be of the format `[projects|organizations]/{parent-name}/roles/{role-name}`.

func (FunctionIamMemberOutput) ToFunctionIamMemberOutput added in v6.29.0

func (o FunctionIamMemberOutput) ToFunctionIamMemberOutput() FunctionIamMemberOutput

func (FunctionIamMemberOutput) ToFunctionIamMemberOutputWithContext added in v6.29.0

func (o FunctionIamMemberOutput) ToFunctionIamMemberOutputWithContext(ctx context.Context) FunctionIamMemberOutput

func (FunctionIamMemberOutput) ToOutput added in v6.65.1

type FunctionIamMemberState added in v6.29.0

type FunctionIamMemberState struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringPtrInput
	Condition     FunctionIamMemberConditionPtrInput
	// (Computed) The etag of the IAM policy.
	Etag pulumi.StringPtrInput
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringPtrInput
	Member   pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudfunctionsv2.FunctionIamBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringPtrInput
}

func (FunctionIamMemberState) ElementType added in v6.29.0

func (FunctionIamMemberState) ElementType() reflect.Type

type FunctionIamPolicy added in v6.29.0

type FunctionIamPolicy struct {
	pulumi.CustomResourceState

	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringOutput `pulumi:"cloudFunction"`
	// (Computed) The etag of the IAM policy.
	Etag pulumi.StringOutput `pulumi:"etag"`
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringOutput `pulumi:"location"`
	// The policy data generated by
	// a `organizations.getIAMPolicy` data source.
	PolicyData pulumi.StringOutput `pulumi:"policyData"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringOutput `pulumi:"project"`
}

Three different resources help you manage your IAM policy for Cloud Functions (2nd gen) function. Each of these resources serves a different use case:

* `cloudfunctionsv2.FunctionIamPolicy`: Authoritative. Sets the IAM policy for the function and replaces any existing policy already attached. * `cloudfunctionsv2.FunctionIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the function are preserved. * `cloudfunctionsv2.FunctionIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the function are preserved.

A data source can be used to retrieve policy data in advent you do not need creation

* `cloudfunctionsv2.FunctionIamPolicy`: Retrieves the IAM policy for the function

> **Note:** `cloudfunctionsv2.FunctionIamPolicy` **cannot** be used in conjunction with `cloudfunctionsv2.FunctionIamBinding` and `cloudfunctionsv2.FunctionIamMember` or they will fight over what your policy should be.

> **Note:** `cloudfunctionsv2.FunctionIamBinding` resources **can be** used in conjunction with `cloudfunctionsv2.FunctionIamMember` resources **only if** they do not grant privilege to the same role.

## google\_cloudfunctions2\_function\_iam\_policy

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctionsv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
			Bindings: []organizations.GetIAMPolicyBinding{
				{
					Role: "roles/viewer",
					Members: []string{
						"user:jane@example.com",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = cloudfunctionsv2.NewFunctionIamPolicy(ctx, "policy", &cloudfunctionsv2.FunctionIamPolicyArgs{
			Project:       pulumi.Any(google_cloudfunctions2_function.Function.Project),
			Location:      pulumi.Any(google_cloudfunctions2_function.Function.Location),
			CloudFunction: pulumi.Any(google_cloudfunctions2_function.Function.Name),
			PolicyData:    *pulumi.String(admin.PolicyData),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudfunctions2\_function\_iam\_binding

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctionsv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctionsv2.NewFunctionIamBinding(ctx, "binding", &cloudfunctionsv2.FunctionIamBindingArgs{
			Project:       pulumi.Any(google_cloudfunctions2_function.Function.Project),
			Location:      pulumi.Any(google_cloudfunctions2_function.Function.Location),
			CloudFunction: pulumi.Any(google_cloudfunctions2_function.Function.Name),
			Role:          pulumi.String("roles/viewer"),
			Members: pulumi.StringArray{
				pulumi.String("user:jane@example.com"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudfunctions2\_function\_iam\_member

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctionsv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctionsv2.NewFunctionIamMember(ctx, "member", &cloudfunctionsv2.FunctionIamMemberArgs{
			Project:       pulumi.Any(google_cloudfunctions2_function.Function.Project),
			Location:      pulumi.Any(google_cloudfunctions2_function.Function.Location),
			CloudFunction: pulumi.Any(google_cloudfunctions2_function.Function.Name),
			Role:          pulumi.String("roles/viewer"),
			Member:        pulumi.String("user:jane@example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{location}}/functions/{{cloud_function}} * {{project}}/{{location}}/{{cloud_function}} * {{location}}/{{cloud_function}} * {{cloud_function}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Functions (2nd gen) function IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.

```sh

$ pulumi import gcp:cloudfunctionsv2/functionIamPolicy:FunctionIamPolicy editor "projects/{{project}}/locations/{{location}}/functions/{{cloud_function}} roles/viewer user:jane@example.com"

```

IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.

```sh

$ pulumi import gcp:cloudfunctionsv2/functionIamPolicy:FunctionIamPolicy editor "projects/{{project}}/locations/{{location}}/functions/{{cloud_function}} roles/viewer"

```

IAM policy imports use the identifier of the resource in question, e.g.

```sh

$ pulumi import gcp:cloudfunctionsv2/functionIamPolicy:FunctionIamPolicy editor projects/{{project}}/locations/{{location}}/functions/{{cloud_function}}

```

-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the

full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.

func GetFunctionIamPolicy added in v6.29.0

func GetFunctionIamPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FunctionIamPolicyState, opts ...pulumi.ResourceOption) (*FunctionIamPolicy, error)

GetFunctionIamPolicy gets an existing FunctionIamPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFunctionIamPolicy added in v6.29.0

func NewFunctionIamPolicy(ctx *pulumi.Context,
	name string, args *FunctionIamPolicyArgs, opts ...pulumi.ResourceOption) (*FunctionIamPolicy, error)

NewFunctionIamPolicy registers a new resource with the given unique name, arguments, and options.

func (*FunctionIamPolicy) ElementType added in v6.29.0

func (*FunctionIamPolicy) ElementType() reflect.Type

func (*FunctionIamPolicy) ToFunctionIamPolicyOutput added in v6.29.0

func (i *FunctionIamPolicy) ToFunctionIamPolicyOutput() FunctionIamPolicyOutput

func (*FunctionIamPolicy) ToFunctionIamPolicyOutputWithContext added in v6.29.0

func (i *FunctionIamPolicy) ToFunctionIamPolicyOutputWithContext(ctx context.Context) FunctionIamPolicyOutput

func (*FunctionIamPolicy) ToOutput added in v6.65.1

type FunctionIamPolicyArgs added in v6.29.0

type FunctionIamPolicyArgs struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringInput
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringPtrInput
	// The policy data generated by
	// a `organizations.getIAMPolicy` data source.
	PolicyData pulumi.StringInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringPtrInput
}

The set of arguments for constructing a FunctionIamPolicy resource.

func (FunctionIamPolicyArgs) ElementType added in v6.29.0

func (FunctionIamPolicyArgs) ElementType() reflect.Type

type FunctionIamPolicyArray added in v6.29.0

type FunctionIamPolicyArray []FunctionIamPolicyInput

func (FunctionIamPolicyArray) ElementType added in v6.29.0

func (FunctionIamPolicyArray) ElementType() reflect.Type

func (FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutput added in v6.29.0

func (i FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutput() FunctionIamPolicyArrayOutput

func (FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutputWithContext added in v6.29.0

func (i FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutputWithContext(ctx context.Context) FunctionIamPolicyArrayOutput

func (FunctionIamPolicyArray) ToOutput added in v6.65.1

type FunctionIamPolicyArrayInput added in v6.29.0

type FunctionIamPolicyArrayInput interface {
	pulumi.Input

	ToFunctionIamPolicyArrayOutput() FunctionIamPolicyArrayOutput
	ToFunctionIamPolicyArrayOutputWithContext(context.Context) FunctionIamPolicyArrayOutput
}

FunctionIamPolicyArrayInput is an input type that accepts FunctionIamPolicyArray and FunctionIamPolicyArrayOutput values. You can construct a concrete instance of `FunctionIamPolicyArrayInput` via:

FunctionIamPolicyArray{ FunctionIamPolicyArgs{...} }

type FunctionIamPolicyArrayOutput added in v6.29.0

type FunctionIamPolicyArrayOutput struct{ *pulumi.OutputState }

func (FunctionIamPolicyArrayOutput) ElementType added in v6.29.0

func (FunctionIamPolicyArrayOutput) Index added in v6.29.0

func (FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutput added in v6.29.0

func (o FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutput() FunctionIamPolicyArrayOutput

func (FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutputWithContext added in v6.29.0

func (o FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutputWithContext(ctx context.Context) FunctionIamPolicyArrayOutput

func (FunctionIamPolicyArrayOutput) ToOutput added in v6.65.1

type FunctionIamPolicyInput added in v6.29.0

type FunctionIamPolicyInput interface {
	pulumi.Input

	ToFunctionIamPolicyOutput() FunctionIamPolicyOutput
	ToFunctionIamPolicyOutputWithContext(ctx context.Context) FunctionIamPolicyOutput
}

type FunctionIamPolicyMap added in v6.29.0

type FunctionIamPolicyMap map[string]FunctionIamPolicyInput

func (FunctionIamPolicyMap) ElementType added in v6.29.0

func (FunctionIamPolicyMap) ElementType() reflect.Type

func (FunctionIamPolicyMap) ToFunctionIamPolicyMapOutput added in v6.29.0

func (i FunctionIamPolicyMap) ToFunctionIamPolicyMapOutput() FunctionIamPolicyMapOutput

func (FunctionIamPolicyMap) ToFunctionIamPolicyMapOutputWithContext added in v6.29.0

func (i FunctionIamPolicyMap) ToFunctionIamPolicyMapOutputWithContext(ctx context.Context) FunctionIamPolicyMapOutput

func (FunctionIamPolicyMap) ToOutput added in v6.65.1

type FunctionIamPolicyMapInput added in v6.29.0

type FunctionIamPolicyMapInput interface {
	pulumi.Input

	ToFunctionIamPolicyMapOutput() FunctionIamPolicyMapOutput
	ToFunctionIamPolicyMapOutputWithContext(context.Context) FunctionIamPolicyMapOutput
}

FunctionIamPolicyMapInput is an input type that accepts FunctionIamPolicyMap and FunctionIamPolicyMapOutput values. You can construct a concrete instance of `FunctionIamPolicyMapInput` via:

FunctionIamPolicyMap{ "key": FunctionIamPolicyArgs{...} }

type FunctionIamPolicyMapOutput added in v6.29.0

type FunctionIamPolicyMapOutput struct{ *pulumi.OutputState }

func (FunctionIamPolicyMapOutput) ElementType added in v6.29.0

func (FunctionIamPolicyMapOutput) ElementType() reflect.Type

func (FunctionIamPolicyMapOutput) MapIndex added in v6.29.0

func (FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutput added in v6.29.0

func (o FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutput() FunctionIamPolicyMapOutput

func (FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutputWithContext added in v6.29.0

func (o FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutputWithContext(ctx context.Context) FunctionIamPolicyMapOutput

func (FunctionIamPolicyMapOutput) ToOutput added in v6.65.1

type FunctionIamPolicyOutput added in v6.29.0

type FunctionIamPolicyOutput struct{ *pulumi.OutputState }

func (FunctionIamPolicyOutput) CloudFunction added in v6.29.0

func (o FunctionIamPolicyOutput) CloudFunction() pulumi.StringOutput

Used to find the parent resource to bind the IAM policy to

func (FunctionIamPolicyOutput) ElementType added in v6.29.0

func (FunctionIamPolicyOutput) ElementType() reflect.Type

func (FunctionIamPolicyOutput) Etag added in v6.29.0

(Computed) The etag of the IAM policy.

func (FunctionIamPolicyOutput) Location added in v6.29.0

The location of this cloud function. Used to find the parent resource to bind the IAM policy to

func (FunctionIamPolicyOutput) PolicyData added in v6.29.0

The policy data generated by a `organizations.getIAMPolicy` data source.

func (FunctionIamPolicyOutput) Project added in v6.29.0

The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.

  • `member/members` - (Required) Identities that will be granted the privilege in `role`. Each entry can have one of the following values:
  • **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
  • **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
  • **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
  • **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
  • **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
  • **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
  • **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
  • **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
  • **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"

func (FunctionIamPolicyOutput) ToFunctionIamPolicyOutput added in v6.29.0

func (o FunctionIamPolicyOutput) ToFunctionIamPolicyOutput() FunctionIamPolicyOutput

func (FunctionIamPolicyOutput) ToFunctionIamPolicyOutputWithContext added in v6.29.0

func (o FunctionIamPolicyOutput) ToFunctionIamPolicyOutputWithContext(ctx context.Context) FunctionIamPolicyOutput

func (FunctionIamPolicyOutput) ToOutput added in v6.65.1

type FunctionIamPolicyState added in v6.29.0

type FunctionIamPolicyState struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringPtrInput
	// (Computed) The etag of the IAM policy.
	Etag pulumi.StringPtrInput
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringPtrInput
	// The policy data generated by
	// a `organizations.getIAMPolicy` data source.
	PolicyData pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	//
	// * `member/members` - (Required) Identities that will be granted the privilege in `role`.
	//   Each entry can have one of the following values:
	// * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
	// * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
	// * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
	// * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
	// * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
	// * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
	// * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
	// * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
	// * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
	Project pulumi.StringPtrInput
}

func (FunctionIamPolicyState) ElementType added in v6.29.0

func (FunctionIamPolicyState) ElementType() reflect.Type

type FunctionInput

type FunctionInput interface {
	pulumi.Input

	ToFunctionOutput() FunctionOutput
	ToFunctionOutputWithContext(ctx context.Context) FunctionOutput
}

type FunctionMap

type FunctionMap map[string]FunctionInput

func (FunctionMap) ElementType

func (FunctionMap) ElementType() reflect.Type

func (FunctionMap) ToFunctionMapOutput

func (i FunctionMap) ToFunctionMapOutput() FunctionMapOutput

func (FunctionMap) ToFunctionMapOutputWithContext

func (i FunctionMap) ToFunctionMapOutputWithContext(ctx context.Context) FunctionMapOutput

func (FunctionMap) ToOutput added in v6.65.1

func (i FunctionMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Function]

type FunctionMapInput

type FunctionMapInput interface {
	pulumi.Input

	ToFunctionMapOutput() FunctionMapOutput
	ToFunctionMapOutputWithContext(context.Context) FunctionMapOutput
}

FunctionMapInput is an input type that accepts FunctionMap and FunctionMapOutput values. You can construct a concrete instance of `FunctionMapInput` via:

FunctionMap{ "key": FunctionArgs{...} }

type FunctionMapOutput

type FunctionMapOutput struct{ *pulumi.OutputState }

func (FunctionMapOutput) ElementType

func (FunctionMapOutput) ElementType() reflect.Type

func (FunctionMapOutput) MapIndex

func (FunctionMapOutput) ToFunctionMapOutput

func (o FunctionMapOutput) ToFunctionMapOutput() FunctionMapOutput

func (FunctionMapOutput) ToFunctionMapOutputWithContext

func (o FunctionMapOutput) ToFunctionMapOutputWithContext(ctx context.Context) FunctionMapOutput

func (FunctionMapOutput) ToOutput added in v6.65.1

type FunctionOutput

type FunctionOutput struct{ *pulumi.OutputState }

func (FunctionOutput) BuildConfig added in v6.23.0

Describes the Build step of the function that builds a container from the given source. Structure is documented below.

func (FunctionOutput) Description added in v6.23.0

func (o FunctionOutput) Description() pulumi.StringPtrOutput

User-provided description of a function.

func (FunctionOutput) ElementType

func (FunctionOutput) ElementType() reflect.Type

func (FunctionOutput) Environment added in v6.23.0

func (o FunctionOutput) Environment() pulumi.StringOutput

The environment the function is hosted on.

func (FunctionOutput) EventTrigger added in v6.23.0

An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service. Structure is documented below.

func (FunctionOutput) KmsKeyName added in v6.64.0

func (o FunctionOutput) KmsKeyName() pulumi.StringPtrOutput

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

func (FunctionOutput) Labels added in v6.23.0

A set of key/value label pairs associated with this Cloud Function.

func (FunctionOutput) Location added in v6.23.0

func (o FunctionOutput) Location() pulumi.StringPtrOutput

The location of this cloud function.

func (FunctionOutput) Name added in v6.23.0

A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`.

***

func (FunctionOutput) Project added in v6.23.0

func (o FunctionOutput) Project() pulumi.StringOutput

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

func (FunctionOutput) ServiceConfig added in v6.23.0

Describes the Service being deployed. Structure is documented below.

func (FunctionOutput) State added in v6.23.0

Describes the current state of the function.

func (FunctionOutput) ToFunctionOutput

func (o FunctionOutput) ToFunctionOutput() FunctionOutput

func (FunctionOutput) ToFunctionOutputWithContext

func (o FunctionOutput) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput

func (FunctionOutput) ToOutput added in v6.65.1

func (FunctionOutput) UpdateTime added in v6.23.0

func (o FunctionOutput) UpdateTime() pulumi.StringOutput

The last update timestamp of a Cloud Function.

func (FunctionOutput) Url added in v6.59.0

Output only. The deployed url for the function.

type FunctionServiceConfig

type FunctionServiceConfig struct {
	// Whether 100% of traffic is routed to the latest revision. Defaults to true.
	AllTrafficOnLatestRevision *bool `pulumi:"allTrafficOnLatestRevision"`
	// The number of CPUs used in a single container instance. Default value is calculated from available memory.
	AvailableCpu *string `pulumi:"availableCpu"`
	// 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.
	AvailableMemory *string `pulumi:"availableMemory"`
	// Environment variables that shall be available during function execution.
	EnvironmentVariables map[string]string `pulumi:"environmentVariables"`
	// (Output)
	// URIs of the Service deployed
	GcfUri *string `pulumi:"gcfUri"`
	// Available ingress settings. Defaults to "ALLOW_ALL" if unspecified.
	// Default value is `ALLOW_ALL`.
	// Possible values are: `ALLOW_ALL`, `ALLOW_INTERNAL_ONLY`, `ALLOW_INTERNAL_AND_GCLB`.
	IngressSettings *string `pulumi:"ingressSettings"`
	// The limit on the maximum number of function instances that may coexist at a
	// given time.
	MaxInstanceCount *int `pulumi:"maxInstanceCount"`
	// Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
	MaxInstanceRequestConcurrency *int `pulumi:"maxInstanceRequestConcurrency"`
	// The limit on the minimum number of function instances that may coexist at a
	// given time.
	MinInstanceCount *int `pulumi:"minInstanceCount"`
	// Secret environment variables configuration.
	// Structure is documented below.
	SecretEnvironmentVariables []FunctionServiceConfigSecretEnvironmentVariable `pulumi:"secretEnvironmentVariables"`
	// Secret volumes configuration.
	// Structure is documented below.
	SecretVolumes []FunctionServiceConfigSecretVolume `pulumi:"secretVolumes"`
	// Name of the service associated with a Function.
	Service *string `pulumi:"service"`
	// The email of the service account for this function.
	ServiceAccountEmail *string `pulumi:"serviceAccountEmail"`
	// 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.
	TimeoutSeconds *int `pulumi:"timeoutSeconds"`
	// (Output)
	// URI of the Service deployed.
	Uri *string `pulumi:"uri"`
	// The Serverless VPC Access connector that this cloud function can connect to.
	VpcConnector *string `pulumi:"vpcConnector"`
	// Available egress settings.
	// Possible values are: `VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED`, `PRIVATE_RANGES_ONLY`, `ALL_TRAFFIC`.
	VpcConnectorEgressSettings *string `pulumi:"vpcConnectorEgressSettings"`
}

type FunctionServiceConfigArgs

type FunctionServiceConfigArgs struct {
	// Whether 100% of traffic is routed to the latest revision. Defaults to true.
	AllTrafficOnLatestRevision pulumi.BoolPtrInput `pulumi:"allTrafficOnLatestRevision"`
	// The number of CPUs used in a single container instance. Default value is calculated from available memory.
	AvailableCpu pulumi.StringPtrInput `pulumi:"availableCpu"`
	// 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.
	AvailableMemory pulumi.StringPtrInput `pulumi:"availableMemory"`
	// Environment variables that shall be available during function execution.
	EnvironmentVariables pulumi.StringMapInput `pulumi:"environmentVariables"`
	// (Output)
	// URIs of the Service deployed
	GcfUri pulumi.StringPtrInput `pulumi:"gcfUri"`
	// Available ingress settings. Defaults to "ALLOW_ALL" if unspecified.
	// Default value is `ALLOW_ALL`.
	// Possible values are: `ALLOW_ALL`, `ALLOW_INTERNAL_ONLY`, `ALLOW_INTERNAL_AND_GCLB`.
	IngressSettings pulumi.StringPtrInput `pulumi:"ingressSettings"`
	// The limit on the maximum number of function instances that may coexist at a
	// given time.
	MaxInstanceCount pulumi.IntPtrInput `pulumi:"maxInstanceCount"`
	// Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
	MaxInstanceRequestConcurrency pulumi.IntPtrInput `pulumi:"maxInstanceRequestConcurrency"`
	// The limit on the minimum number of function instances that may coexist at a
	// given time.
	MinInstanceCount pulumi.IntPtrInput `pulumi:"minInstanceCount"`
	// Secret environment variables configuration.
	// Structure is documented below.
	SecretEnvironmentVariables FunctionServiceConfigSecretEnvironmentVariableArrayInput `pulumi:"secretEnvironmentVariables"`
	// Secret volumes configuration.
	// Structure is documented below.
	SecretVolumes FunctionServiceConfigSecretVolumeArrayInput `pulumi:"secretVolumes"`
	// Name of the service associated with a Function.
	Service pulumi.StringPtrInput `pulumi:"service"`
	// The email of the service account for this function.
	ServiceAccountEmail pulumi.StringPtrInput `pulumi:"serviceAccountEmail"`
	// 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.
	TimeoutSeconds pulumi.IntPtrInput `pulumi:"timeoutSeconds"`
	// (Output)
	// URI of the Service deployed.
	Uri pulumi.StringPtrInput `pulumi:"uri"`
	// The Serverless VPC Access connector that this cloud function can connect to.
	VpcConnector pulumi.StringPtrInput `pulumi:"vpcConnector"`
	// Available egress settings.
	// Possible values are: `VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED`, `PRIVATE_RANGES_ONLY`, `ALL_TRAFFIC`.
	VpcConnectorEgressSettings pulumi.StringPtrInput `pulumi:"vpcConnectorEgressSettings"`
}

func (FunctionServiceConfigArgs) ElementType

func (FunctionServiceConfigArgs) ElementType() reflect.Type

func (FunctionServiceConfigArgs) ToFunctionServiceConfigOutput

func (i FunctionServiceConfigArgs) ToFunctionServiceConfigOutput() FunctionServiceConfigOutput

func (FunctionServiceConfigArgs) ToFunctionServiceConfigOutputWithContext

func (i FunctionServiceConfigArgs) ToFunctionServiceConfigOutputWithContext(ctx context.Context) FunctionServiceConfigOutput

func (FunctionServiceConfigArgs) ToFunctionServiceConfigPtrOutput

func (i FunctionServiceConfigArgs) ToFunctionServiceConfigPtrOutput() FunctionServiceConfigPtrOutput

func (FunctionServiceConfigArgs) ToFunctionServiceConfigPtrOutputWithContext

func (i FunctionServiceConfigArgs) ToFunctionServiceConfigPtrOutputWithContext(ctx context.Context) FunctionServiceConfigPtrOutput

func (FunctionServiceConfigArgs) ToOutput added in v6.65.1

type FunctionServiceConfigInput

type FunctionServiceConfigInput interface {
	pulumi.Input

	ToFunctionServiceConfigOutput() FunctionServiceConfigOutput
	ToFunctionServiceConfigOutputWithContext(context.Context) FunctionServiceConfigOutput
}

FunctionServiceConfigInput is an input type that accepts FunctionServiceConfigArgs and FunctionServiceConfigOutput values. You can construct a concrete instance of `FunctionServiceConfigInput` via:

FunctionServiceConfigArgs{...}

type FunctionServiceConfigOutput

type FunctionServiceConfigOutput struct{ *pulumi.OutputState }

func (FunctionServiceConfigOutput) AllTrafficOnLatestRevision

func (o FunctionServiceConfigOutput) AllTrafficOnLatestRevision() pulumi.BoolPtrOutput

Whether 100% of traffic is routed to the latest revision. Defaults to true.

func (FunctionServiceConfigOutput) AvailableCpu added in v6.47.0

The number of CPUs used in a single container instance. Default value is calculated from available memory.

func (FunctionServiceConfigOutput) AvailableMemory

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.

func (FunctionServiceConfigOutput) ElementType

func (FunctionServiceConfigOutput) EnvironmentVariables

func (o FunctionServiceConfigOutput) EnvironmentVariables() pulumi.StringMapOutput

Environment variables that shall be available during function execution.

func (FunctionServiceConfigOutput) GcfUri

(Output) URIs of the Service deployed

func (FunctionServiceConfigOutput) IngressSettings

Available ingress settings. Defaults to "ALLOW_ALL" if unspecified. Default value is `ALLOW_ALL`. Possible values are: `ALLOW_ALL`, `ALLOW_INTERNAL_ONLY`, `ALLOW_INTERNAL_AND_GCLB`.

func (FunctionServiceConfigOutput) MaxInstanceCount

func (o FunctionServiceConfigOutput) MaxInstanceCount() pulumi.IntPtrOutput

The limit on the maximum number of function instances that may coexist at a given time.

func (FunctionServiceConfigOutput) MaxInstanceRequestConcurrency added in v6.47.0

func (o FunctionServiceConfigOutput) MaxInstanceRequestConcurrency() pulumi.IntPtrOutput

Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.

func (FunctionServiceConfigOutput) MinInstanceCount

func (o FunctionServiceConfigOutput) MinInstanceCount() pulumi.IntPtrOutput

The limit on the minimum number of function instances that may coexist at a given time.

func (FunctionServiceConfigOutput) SecretEnvironmentVariables added in v6.38.0

Secret environment variables configuration. Structure is documented below.

func (FunctionServiceConfigOutput) SecretVolumes added in v6.38.0

Secret volumes configuration. Structure is documented below.

func (FunctionServiceConfigOutput) Service

Name of the service associated with a Function.

func (FunctionServiceConfigOutput) ServiceAccountEmail

func (o FunctionServiceConfigOutput) ServiceAccountEmail() pulumi.StringPtrOutput

The email of the service account for this function.

func (FunctionServiceConfigOutput) TimeoutSeconds

func (o FunctionServiceConfigOutput) TimeoutSeconds() pulumi.IntPtrOutput

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.

func (FunctionServiceConfigOutput) ToFunctionServiceConfigOutput

func (o FunctionServiceConfigOutput) ToFunctionServiceConfigOutput() FunctionServiceConfigOutput

func (FunctionServiceConfigOutput) ToFunctionServiceConfigOutputWithContext

func (o FunctionServiceConfigOutput) ToFunctionServiceConfigOutputWithContext(ctx context.Context) FunctionServiceConfigOutput

func (FunctionServiceConfigOutput) ToFunctionServiceConfigPtrOutput

func (o FunctionServiceConfigOutput) ToFunctionServiceConfigPtrOutput() FunctionServiceConfigPtrOutput

func (FunctionServiceConfigOutput) ToFunctionServiceConfigPtrOutputWithContext

func (o FunctionServiceConfigOutput) ToFunctionServiceConfigPtrOutputWithContext(ctx context.Context) FunctionServiceConfigPtrOutput

func (FunctionServiceConfigOutput) ToOutput added in v6.65.1

func (FunctionServiceConfigOutput) Uri

(Output) URI of the Service deployed.

func (FunctionServiceConfigOutput) VpcConnector

The Serverless VPC Access connector that this cloud function can connect to.

func (FunctionServiceConfigOutput) VpcConnectorEgressSettings

func (o FunctionServiceConfigOutput) VpcConnectorEgressSettings() pulumi.StringPtrOutput

Available egress settings. Possible values are: `VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED`, `PRIVATE_RANGES_ONLY`, `ALL_TRAFFIC`.

type FunctionServiceConfigPtrInput

type FunctionServiceConfigPtrInput interface {
	pulumi.Input

	ToFunctionServiceConfigPtrOutput() FunctionServiceConfigPtrOutput
	ToFunctionServiceConfigPtrOutputWithContext(context.Context) FunctionServiceConfigPtrOutput
}

FunctionServiceConfigPtrInput is an input type that accepts FunctionServiceConfigArgs, FunctionServiceConfigPtr and FunctionServiceConfigPtrOutput values. You can construct a concrete instance of `FunctionServiceConfigPtrInput` via:

        FunctionServiceConfigArgs{...}

or:

        nil

type FunctionServiceConfigPtrOutput

type FunctionServiceConfigPtrOutput struct{ *pulumi.OutputState }

func (FunctionServiceConfigPtrOutput) AllTrafficOnLatestRevision

func (o FunctionServiceConfigPtrOutput) AllTrafficOnLatestRevision() pulumi.BoolPtrOutput

Whether 100% of traffic is routed to the latest revision. Defaults to true.

func (FunctionServiceConfigPtrOutput) AvailableCpu added in v6.47.0

The number of CPUs used in a single container instance. Default value is calculated from available memory.

func (FunctionServiceConfigPtrOutput) AvailableMemory

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.

func (FunctionServiceConfigPtrOutput) Elem

func (FunctionServiceConfigPtrOutput) ElementType

func (FunctionServiceConfigPtrOutput) EnvironmentVariables

func (o FunctionServiceConfigPtrOutput) EnvironmentVariables() pulumi.StringMapOutput

Environment variables that shall be available during function execution.

func (FunctionServiceConfigPtrOutput) GcfUri

(Output) URIs of the Service deployed

func (FunctionServiceConfigPtrOutput) IngressSettings

Available ingress settings. Defaults to "ALLOW_ALL" if unspecified. Default value is `ALLOW_ALL`. Possible values are: `ALLOW_ALL`, `ALLOW_INTERNAL_ONLY`, `ALLOW_INTERNAL_AND_GCLB`.

func (FunctionServiceConfigPtrOutput) MaxInstanceCount

func (o FunctionServiceConfigPtrOutput) MaxInstanceCount() pulumi.IntPtrOutput

The limit on the maximum number of function instances that may coexist at a given time.

func (FunctionServiceConfigPtrOutput) MaxInstanceRequestConcurrency added in v6.47.0

func (o FunctionServiceConfigPtrOutput) MaxInstanceRequestConcurrency() pulumi.IntPtrOutput

Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.

func (FunctionServiceConfigPtrOutput) MinInstanceCount

func (o FunctionServiceConfigPtrOutput) MinInstanceCount() pulumi.IntPtrOutput

The limit on the minimum number of function instances that may coexist at a given time.

func (FunctionServiceConfigPtrOutput) SecretEnvironmentVariables added in v6.38.0

Secret environment variables configuration. Structure is documented below.

func (FunctionServiceConfigPtrOutput) SecretVolumes added in v6.38.0

Secret volumes configuration. Structure is documented below.

func (FunctionServiceConfigPtrOutput) Service

Name of the service associated with a Function.

func (FunctionServiceConfigPtrOutput) ServiceAccountEmail

func (o FunctionServiceConfigPtrOutput) ServiceAccountEmail() pulumi.StringPtrOutput

The email of the service account for this function.

func (FunctionServiceConfigPtrOutput) TimeoutSeconds

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.

func (FunctionServiceConfigPtrOutput) ToFunctionServiceConfigPtrOutput

func (o FunctionServiceConfigPtrOutput) ToFunctionServiceConfigPtrOutput() FunctionServiceConfigPtrOutput

func (FunctionServiceConfigPtrOutput) ToFunctionServiceConfigPtrOutputWithContext

func (o FunctionServiceConfigPtrOutput) ToFunctionServiceConfigPtrOutputWithContext(ctx context.Context) FunctionServiceConfigPtrOutput

func (FunctionServiceConfigPtrOutput) ToOutput added in v6.65.1

func (FunctionServiceConfigPtrOutput) Uri

(Output) URI of the Service deployed.

func (FunctionServiceConfigPtrOutput) VpcConnector

The Serverless VPC Access connector that this cloud function can connect to.

func (FunctionServiceConfigPtrOutput) VpcConnectorEgressSettings

func (o FunctionServiceConfigPtrOutput) VpcConnectorEgressSettings() pulumi.StringPtrOutput

Available egress settings. Possible values are: `VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED`, `PRIVATE_RANGES_ONLY`, `ALL_TRAFFIC`.

type FunctionServiceConfigSecretEnvironmentVariable added in v6.38.0

type FunctionServiceConfigSecretEnvironmentVariable struct {
	// Name of the environment variable.
	Key string `pulumi:"key"`
	// Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
	ProjectId string `pulumi:"projectId"`
	// Name of the secret in secret manager (not the full resource name).
	Secret string `pulumi:"secret"`
	// 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.
	Version string `pulumi:"version"`
}

type FunctionServiceConfigSecretEnvironmentVariableArgs added in v6.38.0

type FunctionServiceConfigSecretEnvironmentVariableArgs struct {
	// Name of the environment variable.
	Key pulumi.StringInput `pulumi:"key"`
	// Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
	ProjectId pulumi.StringInput `pulumi:"projectId"`
	// Name of the secret in secret manager (not the full resource name).
	Secret pulumi.StringInput `pulumi:"secret"`
	// 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.
	Version pulumi.StringInput `pulumi:"version"`
}

func (FunctionServiceConfigSecretEnvironmentVariableArgs) ElementType added in v6.38.0

func (FunctionServiceConfigSecretEnvironmentVariableArgs) ToFunctionServiceConfigSecretEnvironmentVariableOutput added in v6.38.0

func (i FunctionServiceConfigSecretEnvironmentVariableArgs) ToFunctionServiceConfigSecretEnvironmentVariableOutput() FunctionServiceConfigSecretEnvironmentVariableOutput

func (FunctionServiceConfigSecretEnvironmentVariableArgs) ToFunctionServiceConfigSecretEnvironmentVariableOutputWithContext added in v6.38.0

func (i FunctionServiceConfigSecretEnvironmentVariableArgs) ToFunctionServiceConfigSecretEnvironmentVariableOutputWithContext(ctx context.Context) FunctionServiceConfigSecretEnvironmentVariableOutput

func (FunctionServiceConfigSecretEnvironmentVariableArgs) ToOutput added in v6.65.1

type FunctionServiceConfigSecretEnvironmentVariableArray added in v6.38.0

type FunctionServiceConfigSecretEnvironmentVariableArray []FunctionServiceConfigSecretEnvironmentVariableInput

func (FunctionServiceConfigSecretEnvironmentVariableArray) ElementType added in v6.38.0

func (FunctionServiceConfigSecretEnvironmentVariableArray) ToFunctionServiceConfigSecretEnvironmentVariableArrayOutput added in v6.38.0

func (i FunctionServiceConfigSecretEnvironmentVariableArray) ToFunctionServiceConfigSecretEnvironmentVariableArrayOutput() FunctionServiceConfigSecretEnvironmentVariableArrayOutput

func (FunctionServiceConfigSecretEnvironmentVariableArray) ToFunctionServiceConfigSecretEnvironmentVariableArrayOutputWithContext added in v6.38.0

func (i FunctionServiceConfigSecretEnvironmentVariableArray) ToFunctionServiceConfigSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) FunctionServiceConfigSecretEnvironmentVariableArrayOutput

func (FunctionServiceConfigSecretEnvironmentVariableArray) ToOutput added in v6.65.1

type FunctionServiceConfigSecretEnvironmentVariableArrayInput added in v6.38.0

type FunctionServiceConfigSecretEnvironmentVariableArrayInput interface {
	pulumi.Input

	ToFunctionServiceConfigSecretEnvironmentVariableArrayOutput() FunctionServiceConfigSecretEnvironmentVariableArrayOutput
	ToFunctionServiceConfigSecretEnvironmentVariableArrayOutputWithContext(context.Context) FunctionServiceConfigSecretEnvironmentVariableArrayOutput
}

FunctionServiceConfigSecretEnvironmentVariableArrayInput is an input type that accepts FunctionServiceConfigSecretEnvironmentVariableArray and FunctionServiceConfigSecretEnvironmentVariableArrayOutput values. You can construct a concrete instance of `FunctionServiceConfigSecretEnvironmentVariableArrayInput` via:

FunctionServiceConfigSecretEnvironmentVariableArray{ FunctionServiceConfigSecretEnvironmentVariableArgs{...} }

type FunctionServiceConfigSecretEnvironmentVariableArrayOutput added in v6.38.0

type FunctionServiceConfigSecretEnvironmentVariableArrayOutput struct{ *pulumi.OutputState }

func (FunctionServiceConfigSecretEnvironmentVariableArrayOutput) ElementType added in v6.38.0

func (FunctionServiceConfigSecretEnvironmentVariableArrayOutput) Index added in v6.38.0

func (FunctionServiceConfigSecretEnvironmentVariableArrayOutput) ToFunctionServiceConfigSecretEnvironmentVariableArrayOutput added in v6.38.0

func (FunctionServiceConfigSecretEnvironmentVariableArrayOutput) ToFunctionServiceConfigSecretEnvironmentVariableArrayOutputWithContext added in v6.38.0

func (o FunctionServiceConfigSecretEnvironmentVariableArrayOutput) ToFunctionServiceConfigSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) FunctionServiceConfigSecretEnvironmentVariableArrayOutput

func (FunctionServiceConfigSecretEnvironmentVariableArrayOutput) ToOutput added in v6.65.1

type FunctionServiceConfigSecretEnvironmentVariableInput added in v6.38.0

type FunctionServiceConfigSecretEnvironmentVariableInput interface {
	pulumi.Input

	ToFunctionServiceConfigSecretEnvironmentVariableOutput() FunctionServiceConfigSecretEnvironmentVariableOutput
	ToFunctionServiceConfigSecretEnvironmentVariableOutputWithContext(context.Context) FunctionServiceConfigSecretEnvironmentVariableOutput
}

FunctionServiceConfigSecretEnvironmentVariableInput is an input type that accepts FunctionServiceConfigSecretEnvironmentVariableArgs and FunctionServiceConfigSecretEnvironmentVariableOutput values. You can construct a concrete instance of `FunctionServiceConfigSecretEnvironmentVariableInput` via:

FunctionServiceConfigSecretEnvironmentVariableArgs{...}

type FunctionServiceConfigSecretEnvironmentVariableOutput added in v6.38.0

type FunctionServiceConfigSecretEnvironmentVariableOutput struct{ *pulumi.OutputState }

func (FunctionServiceConfigSecretEnvironmentVariableOutput) ElementType added in v6.38.0

func (FunctionServiceConfigSecretEnvironmentVariableOutput) Key added in v6.38.0

Name of the environment variable.

func (FunctionServiceConfigSecretEnvironmentVariableOutput) ProjectId added in v6.38.0

Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.

func (FunctionServiceConfigSecretEnvironmentVariableOutput) Secret added in v6.38.0

Name of the secret in secret manager (not the full resource name).

func (FunctionServiceConfigSecretEnvironmentVariableOutput) ToFunctionServiceConfigSecretEnvironmentVariableOutput added in v6.38.0

func (FunctionServiceConfigSecretEnvironmentVariableOutput) ToFunctionServiceConfigSecretEnvironmentVariableOutputWithContext added in v6.38.0

func (o FunctionServiceConfigSecretEnvironmentVariableOutput) ToFunctionServiceConfigSecretEnvironmentVariableOutputWithContext(ctx context.Context) FunctionServiceConfigSecretEnvironmentVariableOutput

func (FunctionServiceConfigSecretEnvironmentVariableOutput) ToOutput added in v6.65.1

func (FunctionServiceConfigSecretEnvironmentVariableOutput) Version added in v6.38.0

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.

type FunctionServiceConfigSecretVolume added in v6.38.0

type FunctionServiceConfigSecretVolume struct {
	// The path within the container to mount the secret volume. For example, setting the mountPath as /etc/secrets would mount the secret value files under the /etc/secrets directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
	MountPath string `pulumi:"mountPath"`
	// Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
	ProjectId string `pulumi:"projectId"`
	// Name of the secret in secret manager (not the full resource name).
	Secret string `pulumi:"secret"`
	// 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.'
	// Structure is documented below.
	Versions []FunctionServiceConfigSecretVolumeVersion `pulumi:"versions"`
}

type FunctionServiceConfigSecretVolumeArgs added in v6.38.0

type FunctionServiceConfigSecretVolumeArgs struct {
	// The path within the container to mount the secret volume. For example, setting the mountPath as /etc/secrets would mount the secret value files under the /etc/secrets directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
	MountPath pulumi.StringInput `pulumi:"mountPath"`
	// Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
	ProjectId pulumi.StringInput `pulumi:"projectId"`
	// Name of the secret in secret manager (not the full resource name).
	Secret pulumi.StringInput `pulumi:"secret"`
	// 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.'
	// Structure is documented below.
	Versions FunctionServiceConfigSecretVolumeVersionArrayInput `pulumi:"versions"`
}

func (FunctionServiceConfigSecretVolumeArgs) ElementType added in v6.38.0

func (FunctionServiceConfigSecretVolumeArgs) ToFunctionServiceConfigSecretVolumeOutput added in v6.38.0

func (i FunctionServiceConfigSecretVolumeArgs) ToFunctionServiceConfigSecretVolumeOutput() FunctionServiceConfigSecretVolumeOutput

func (FunctionServiceConfigSecretVolumeArgs) ToFunctionServiceConfigSecretVolumeOutputWithContext added in v6.38.0

func (i FunctionServiceConfigSecretVolumeArgs) ToFunctionServiceConfigSecretVolumeOutputWithContext(ctx context.Context) FunctionServiceConfigSecretVolumeOutput

func (FunctionServiceConfigSecretVolumeArgs) ToOutput added in v6.65.1

type FunctionServiceConfigSecretVolumeArray added in v6.38.0

type FunctionServiceConfigSecretVolumeArray []FunctionServiceConfigSecretVolumeInput

func (FunctionServiceConfigSecretVolumeArray) ElementType added in v6.38.0

func (FunctionServiceConfigSecretVolumeArray) ToFunctionServiceConfigSecretVolumeArrayOutput added in v6.38.0

func (i FunctionServiceConfigSecretVolumeArray) ToFunctionServiceConfigSecretVolumeArrayOutput() FunctionServiceConfigSecretVolumeArrayOutput

func (FunctionServiceConfigSecretVolumeArray) ToFunctionServiceConfigSecretVolumeArrayOutputWithContext added in v6.38.0

func (i FunctionServiceConfigSecretVolumeArray) ToFunctionServiceConfigSecretVolumeArrayOutputWithContext(ctx context.Context) FunctionServiceConfigSecretVolumeArrayOutput

func (FunctionServiceConfigSecretVolumeArray) ToOutput added in v6.65.1

type FunctionServiceConfigSecretVolumeArrayInput added in v6.38.0

type FunctionServiceConfigSecretVolumeArrayInput interface {
	pulumi.Input

	ToFunctionServiceConfigSecretVolumeArrayOutput() FunctionServiceConfigSecretVolumeArrayOutput
	ToFunctionServiceConfigSecretVolumeArrayOutputWithContext(context.Context) FunctionServiceConfigSecretVolumeArrayOutput
}

FunctionServiceConfigSecretVolumeArrayInput is an input type that accepts FunctionServiceConfigSecretVolumeArray and FunctionServiceConfigSecretVolumeArrayOutput values. You can construct a concrete instance of `FunctionServiceConfigSecretVolumeArrayInput` via:

FunctionServiceConfigSecretVolumeArray{ FunctionServiceConfigSecretVolumeArgs{...} }

type FunctionServiceConfigSecretVolumeArrayOutput added in v6.38.0

type FunctionServiceConfigSecretVolumeArrayOutput struct{ *pulumi.OutputState }

func (FunctionServiceConfigSecretVolumeArrayOutput) ElementType added in v6.38.0

func (FunctionServiceConfigSecretVolumeArrayOutput) Index added in v6.38.0

func (FunctionServiceConfigSecretVolumeArrayOutput) ToFunctionServiceConfigSecretVolumeArrayOutput added in v6.38.0

func (o FunctionServiceConfigSecretVolumeArrayOutput) ToFunctionServiceConfigSecretVolumeArrayOutput() FunctionServiceConfigSecretVolumeArrayOutput

func (FunctionServiceConfigSecretVolumeArrayOutput) ToFunctionServiceConfigSecretVolumeArrayOutputWithContext added in v6.38.0

func (o FunctionServiceConfigSecretVolumeArrayOutput) ToFunctionServiceConfigSecretVolumeArrayOutputWithContext(ctx context.Context) FunctionServiceConfigSecretVolumeArrayOutput

func (FunctionServiceConfigSecretVolumeArrayOutput) ToOutput added in v6.65.1

type FunctionServiceConfigSecretVolumeInput added in v6.38.0

type FunctionServiceConfigSecretVolumeInput interface {
	pulumi.Input

	ToFunctionServiceConfigSecretVolumeOutput() FunctionServiceConfigSecretVolumeOutput
	ToFunctionServiceConfigSecretVolumeOutputWithContext(context.Context) FunctionServiceConfigSecretVolumeOutput
}

FunctionServiceConfigSecretVolumeInput is an input type that accepts FunctionServiceConfigSecretVolumeArgs and FunctionServiceConfigSecretVolumeOutput values. You can construct a concrete instance of `FunctionServiceConfigSecretVolumeInput` via:

FunctionServiceConfigSecretVolumeArgs{...}

type FunctionServiceConfigSecretVolumeOutput added in v6.38.0

type FunctionServiceConfigSecretVolumeOutput struct{ *pulumi.OutputState }

func (FunctionServiceConfigSecretVolumeOutput) ElementType added in v6.38.0

func (FunctionServiceConfigSecretVolumeOutput) MountPath added in v6.38.0

The path within the container to mount the secret volume. For example, setting the mountPath as /etc/secrets would mount the secret value files under the /etc/secrets directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets

func (FunctionServiceConfigSecretVolumeOutput) ProjectId added in v6.38.0

Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.

func (FunctionServiceConfigSecretVolumeOutput) Secret added in v6.38.0

Name of the secret in secret manager (not the full resource name).

func (FunctionServiceConfigSecretVolumeOutput) ToFunctionServiceConfigSecretVolumeOutput added in v6.38.0

func (o FunctionServiceConfigSecretVolumeOutput) ToFunctionServiceConfigSecretVolumeOutput() FunctionServiceConfigSecretVolumeOutput

func (FunctionServiceConfigSecretVolumeOutput) ToFunctionServiceConfigSecretVolumeOutputWithContext added in v6.38.0

func (o FunctionServiceConfigSecretVolumeOutput) ToFunctionServiceConfigSecretVolumeOutputWithContext(ctx context.Context) FunctionServiceConfigSecretVolumeOutput

func (FunctionServiceConfigSecretVolumeOutput) ToOutput added in v6.65.1

func (FunctionServiceConfigSecretVolumeOutput) Versions added in v6.38.0

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.' Structure is documented below.

type FunctionServiceConfigSecretVolumeVersion added in v6.38.0

type FunctionServiceConfigSecretVolumeVersion struct {
	// Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as '/etc/secrets' and path as secretFoo would mount the secret value file at /etc/secrets/secret_foo.
	Path string `pulumi:"path"`
	// 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.
	Version string `pulumi:"version"`
}

type FunctionServiceConfigSecretVolumeVersionArgs added in v6.38.0

type FunctionServiceConfigSecretVolumeVersionArgs struct {
	// Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as '/etc/secrets' and path as secretFoo would mount the secret value file at /etc/secrets/secret_foo.
	Path pulumi.StringInput `pulumi:"path"`
	// 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.
	Version pulumi.StringInput `pulumi:"version"`
}

func (FunctionServiceConfigSecretVolumeVersionArgs) ElementType added in v6.38.0

func (FunctionServiceConfigSecretVolumeVersionArgs) ToFunctionServiceConfigSecretVolumeVersionOutput added in v6.38.0

func (i FunctionServiceConfigSecretVolumeVersionArgs) ToFunctionServiceConfigSecretVolumeVersionOutput() FunctionServiceConfigSecretVolumeVersionOutput

func (FunctionServiceConfigSecretVolumeVersionArgs) ToFunctionServiceConfigSecretVolumeVersionOutputWithContext added in v6.38.0

func (i FunctionServiceConfigSecretVolumeVersionArgs) ToFunctionServiceConfigSecretVolumeVersionOutputWithContext(ctx context.Context) FunctionServiceConfigSecretVolumeVersionOutput

func (FunctionServiceConfigSecretVolumeVersionArgs) ToOutput added in v6.65.1

type FunctionServiceConfigSecretVolumeVersionArray added in v6.38.0

type FunctionServiceConfigSecretVolumeVersionArray []FunctionServiceConfigSecretVolumeVersionInput

func (FunctionServiceConfigSecretVolumeVersionArray) ElementType added in v6.38.0

func (FunctionServiceConfigSecretVolumeVersionArray) ToFunctionServiceConfigSecretVolumeVersionArrayOutput added in v6.38.0

func (i FunctionServiceConfigSecretVolumeVersionArray) ToFunctionServiceConfigSecretVolumeVersionArrayOutput() FunctionServiceConfigSecretVolumeVersionArrayOutput

func (FunctionServiceConfigSecretVolumeVersionArray) ToFunctionServiceConfigSecretVolumeVersionArrayOutputWithContext added in v6.38.0

func (i FunctionServiceConfigSecretVolumeVersionArray) ToFunctionServiceConfigSecretVolumeVersionArrayOutputWithContext(ctx context.Context) FunctionServiceConfigSecretVolumeVersionArrayOutput

func (FunctionServiceConfigSecretVolumeVersionArray) ToOutput added in v6.65.1

type FunctionServiceConfigSecretVolumeVersionArrayInput added in v6.38.0

type FunctionServiceConfigSecretVolumeVersionArrayInput interface {
	pulumi.Input

	ToFunctionServiceConfigSecretVolumeVersionArrayOutput() FunctionServiceConfigSecretVolumeVersionArrayOutput
	ToFunctionServiceConfigSecretVolumeVersionArrayOutputWithContext(context.Context) FunctionServiceConfigSecretVolumeVersionArrayOutput
}

FunctionServiceConfigSecretVolumeVersionArrayInput is an input type that accepts FunctionServiceConfigSecretVolumeVersionArray and FunctionServiceConfigSecretVolumeVersionArrayOutput values. You can construct a concrete instance of `FunctionServiceConfigSecretVolumeVersionArrayInput` via:

FunctionServiceConfigSecretVolumeVersionArray{ FunctionServiceConfigSecretVolumeVersionArgs{...} }

type FunctionServiceConfigSecretVolumeVersionArrayOutput added in v6.38.0

type FunctionServiceConfigSecretVolumeVersionArrayOutput struct{ *pulumi.OutputState }

func (FunctionServiceConfigSecretVolumeVersionArrayOutput) ElementType added in v6.38.0

func (FunctionServiceConfigSecretVolumeVersionArrayOutput) Index added in v6.38.0

func (FunctionServiceConfigSecretVolumeVersionArrayOutput) ToFunctionServiceConfigSecretVolumeVersionArrayOutput added in v6.38.0

func (o FunctionServiceConfigSecretVolumeVersionArrayOutput) ToFunctionServiceConfigSecretVolumeVersionArrayOutput() FunctionServiceConfigSecretVolumeVersionArrayOutput

func (FunctionServiceConfigSecretVolumeVersionArrayOutput) ToFunctionServiceConfigSecretVolumeVersionArrayOutputWithContext added in v6.38.0

func (o FunctionServiceConfigSecretVolumeVersionArrayOutput) ToFunctionServiceConfigSecretVolumeVersionArrayOutputWithContext(ctx context.Context) FunctionServiceConfigSecretVolumeVersionArrayOutput

func (FunctionServiceConfigSecretVolumeVersionArrayOutput) ToOutput added in v6.65.1

type FunctionServiceConfigSecretVolumeVersionInput added in v6.38.0

type FunctionServiceConfigSecretVolumeVersionInput interface {
	pulumi.Input

	ToFunctionServiceConfigSecretVolumeVersionOutput() FunctionServiceConfigSecretVolumeVersionOutput
	ToFunctionServiceConfigSecretVolumeVersionOutputWithContext(context.Context) FunctionServiceConfigSecretVolumeVersionOutput
}

FunctionServiceConfigSecretVolumeVersionInput is an input type that accepts FunctionServiceConfigSecretVolumeVersionArgs and FunctionServiceConfigSecretVolumeVersionOutput values. You can construct a concrete instance of `FunctionServiceConfigSecretVolumeVersionInput` via:

FunctionServiceConfigSecretVolumeVersionArgs{...}

type FunctionServiceConfigSecretVolumeVersionOutput added in v6.38.0

type FunctionServiceConfigSecretVolumeVersionOutput struct{ *pulumi.OutputState }

func (FunctionServiceConfigSecretVolumeVersionOutput) ElementType added in v6.38.0

func (FunctionServiceConfigSecretVolumeVersionOutput) Path added in v6.38.0

Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as '/etc/secrets' and path as secretFoo would mount the secret value file at /etc/secrets/secret_foo.

func (FunctionServiceConfigSecretVolumeVersionOutput) ToFunctionServiceConfigSecretVolumeVersionOutput added in v6.38.0

func (o FunctionServiceConfigSecretVolumeVersionOutput) ToFunctionServiceConfigSecretVolumeVersionOutput() FunctionServiceConfigSecretVolumeVersionOutput

func (FunctionServiceConfigSecretVolumeVersionOutput) ToFunctionServiceConfigSecretVolumeVersionOutputWithContext added in v6.38.0

func (o FunctionServiceConfigSecretVolumeVersionOutput) ToFunctionServiceConfigSecretVolumeVersionOutputWithContext(ctx context.Context) FunctionServiceConfigSecretVolumeVersionOutput

func (FunctionServiceConfigSecretVolumeVersionOutput) ToOutput added in v6.65.1

func (FunctionServiceConfigSecretVolumeVersionOutput) Version added in v6.38.0

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.

type FunctionState

type FunctionState struct {
	// Describes the Build step of the function that builds a container
	// from the given source.
	// Structure is documented below.
	BuildConfig FunctionBuildConfigPtrInput
	// User-provided description of a function.
	Description pulumi.StringPtrInput
	// The environment the function is hosted on.
	Environment pulumi.StringPtrInput
	// An Eventarc trigger managed by Google Cloud Functions that fires events in
	// response to a condition in another service.
	// Structure is documented below.
	EventTrigger FunctionEventTriggerPtrInput
	// 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}.
	KmsKeyName pulumi.StringPtrInput
	// A set of key/value label pairs associated with this Cloud Function.
	Labels pulumi.StringMapInput
	// The location of this cloud function.
	Location pulumi.StringPtrInput
	// A user-defined name of the function. Function names must
	// be unique globally and match pattern `projects/*/locations/*/functions/*`.
	//
	// ***
	Name pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// Describes the Service being deployed.
	// Structure is documented below.
	ServiceConfig FunctionServiceConfigPtrInput
	// Describes the current state of the function.
	State pulumi.StringPtrInput
	// The last update timestamp of a Cloud Function.
	UpdateTime pulumi.StringPtrInput
	// Output only. The deployed url for the function.
	Url pulumi.StringPtrInput
}

func (FunctionState) ElementType

func (FunctionState) ElementType() reflect.Type

type GetFunctionBuildConfig added in v6.41.0

type GetFunctionBuildConfig struct {
	Build                string                         `pulumi:"build"`
	DockerRepository     string                         `pulumi:"dockerRepository"`
	EntryPoint           string                         `pulumi:"entryPoint"`
	EnvironmentVariables map[string]string              `pulumi:"environmentVariables"`
	Runtime              string                         `pulumi:"runtime"`
	Sources              []GetFunctionBuildConfigSource `pulumi:"sources"`
	WorkerPool           string                         `pulumi:"workerPool"`
}

type GetFunctionBuildConfigArgs added in v6.41.0

type GetFunctionBuildConfigArgs struct {
	Build                pulumi.StringInput                     `pulumi:"build"`
	DockerRepository     pulumi.StringInput                     `pulumi:"dockerRepository"`
	EntryPoint           pulumi.StringInput                     `pulumi:"entryPoint"`
	EnvironmentVariables pulumi.StringMapInput                  `pulumi:"environmentVariables"`
	Runtime              pulumi.StringInput                     `pulumi:"runtime"`
	Sources              GetFunctionBuildConfigSourceArrayInput `pulumi:"sources"`
	WorkerPool           pulumi.StringInput                     `pulumi:"workerPool"`
}

func (GetFunctionBuildConfigArgs) ElementType added in v6.41.0

func (GetFunctionBuildConfigArgs) ElementType() reflect.Type

func (GetFunctionBuildConfigArgs) ToGetFunctionBuildConfigOutput added in v6.41.0

func (i GetFunctionBuildConfigArgs) ToGetFunctionBuildConfigOutput() GetFunctionBuildConfigOutput

func (GetFunctionBuildConfigArgs) ToGetFunctionBuildConfigOutputWithContext added in v6.41.0

func (i GetFunctionBuildConfigArgs) ToGetFunctionBuildConfigOutputWithContext(ctx context.Context) GetFunctionBuildConfigOutput

func (GetFunctionBuildConfigArgs) ToOutput added in v6.65.1

type GetFunctionBuildConfigArray added in v6.41.0

type GetFunctionBuildConfigArray []GetFunctionBuildConfigInput

func (GetFunctionBuildConfigArray) ElementType added in v6.41.0

func (GetFunctionBuildConfigArray) ToGetFunctionBuildConfigArrayOutput added in v6.41.0

func (i GetFunctionBuildConfigArray) ToGetFunctionBuildConfigArrayOutput() GetFunctionBuildConfigArrayOutput

func (GetFunctionBuildConfigArray) ToGetFunctionBuildConfigArrayOutputWithContext added in v6.41.0

func (i GetFunctionBuildConfigArray) ToGetFunctionBuildConfigArrayOutputWithContext(ctx context.Context) GetFunctionBuildConfigArrayOutput

func (GetFunctionBuildConfigArray) ToOutput added in v6.65.1

type GetFunctionBuildConfigArrayInput added in v6.41.0

type GetFunctionBuildConfigArrayInput interface {
	pulumi.Input

	ToGetFunctionBuildConfigArrayOutput() GetFunctionBuildConfigArrayOutput
	ToGetFunctionBuildConfigArrayOutputWithContext(context.Context) GetFunctionBuildConfigArrayOutput
}

GetFunctionBuildConfigArrayInput is an input type that accepts GetFunctionBuildConfigArray and GetFunctionBuildConfigArrayOutput values. You can construct a concrete instance of `GetFunctionBuildConfigArrayInput` via:

GetFunctionBuildConfigArray{ GetFunctionBuildConfigArgs{...} }

type GetFunctionBuildConfigArrayOutput added in v6.41.0

type GetFunctionBuildConfigArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionBuildConfigArrayOutput) ElementType added in v6.41.0

func (GetFunctionBuildConfigArrayOutput) Index added in v6.41.0

func (GetFunctionBuildConfigArrayOutput) ToGetFunctionBuildConfigArrayOutput added in v6.41.0

func (o GetFunctionBuildConfigArrayOutput) ToGetFunctionBuildConfigArrayOutput() GetFunctionBuildConfigArrayOutput

func (GetFunctionBuildConfigArrayOutput) ToGetFunctionBuildConfigArrayOutputWithContext added in v6.41.0

func (o GetFunctionBuildConfigArrayOutput) ToGetFunctionBuildConfigArrayOutputWithContext(ctx context.Context) GetFunctionBuildConfigArrayOutput

func (GetFunctionBuildConfigArrayOutput) ToOutput added in v6.65.1

type GetFunctionBuildConfigInput added in v6.41.0

type GetFunctionBuildConfigInput interface {
	pulumi.Input

	ToGetFunctionBuildConfigOutput() GetFunctionBuildConfigOutput
	ToGetFunctionBuildConfigOutputWithContext(context.Context) GetFunctionBuildConfigOutput
}

GetFunctionBuildConfigInput is an input type that accepts GetFunctionBuildConfigArgs and GetFunctionBuildConfigOutput values. You can construct a concrete instance of `GetFunctionBuildConfigInput` via:

GetFunctionBuildConfigArgs{...}

type GetFunctionBuildConfigOutput added in v6.41.0

type GetFunctionBuildConfigOutput struct{ *pulumi.OutputState }

func (GetFunctionBuildConfigOutput) Build added in v6.41.0

func (GetFunctionBuildConfigOutput) DockerRepository added in v6.41.0

func (o GetFunctionBuildConfigOutput) DockerRepository() pulumi.StringOutput

func (GetFunctionBuildConfigOutput) ElementType added in v6.41.0

func (GetFunctionBuildConfigOutput) EntryPoint added in v6.41.0

func (GetFunctionBuildConfigOutput) EnvironmentVariables added in v6.41.0

func (o GetFunctionBuildConfigOutput) EnvironmentVariables() pulumi.StringMapOutput

func (GetFunctionBuildConfigOutput) Runtime added in v6.41.0

func (GetFunctionBuildConfigOutput) Sources added in v6.41.0

func (GetFunctionBuildConfigOutput) ToGetFunctionBuildConfigOutput added in v6.41.0

func (o GetFunctionBuildConfigOutput) ToGetFunctionBuildConfigOutput() GetFunctionBuildConfigOutput

func (GetFunctionBuildConfigOutput) ToGetFunctionBuildConfigOutputWithContext added in v6.41.0

func (o GetFunctionBuildConfigOutput) ToGetFunctionBuildConfigOutputWithContext(ctx context.Context) GetFunctionBuildConfigOutput

func (GetFunctionBuildConfigOutput) ToOutput added in v6.65.1

func (GetFunctionBuildConfigOutput) WorkerPool added in v6.41.0

type GetFunctionBuildConfigSource added in v6.41.0

type GetFunctionBuildConfigSource struct {
	RepoSources    []GetFunctionBuildConfigSourceRepoSource    `pulumi:"repoSources"`
	StorageSources []GetFunctionBuildConfigSourceStorageSource `pulumi:"storageSources"`
}

type GetFunctionBuildConfigSourceArgs added in v6.41.0

type GetFunctionBuildConfigSourceArgs struct {
	RepoSources    GetFunctionBuildConfigSourceRepoSourceArrayInput    `pulumi:"repoSources"`
	StorageSources GetFunctionBuildConfigSourceStorageSourceArrayInput `pulumi:"storageSources"`
}

func (GetFunctionBuildConfigSourceArgs) ElementType added in v6.41.0

func (GetFunctionBuildConfigSourceArgs) ToGetFunctionBuildConfigSourceOutput added in v6.41.0

func (i GetFunctionBuildConfigSourceArgs) ToGetFunctionBuildConfigSourceOutput() GetFunctionBuildConfigSourceOutput

func (GetFunctionBuildConfigSourceArgs) ToGetFunctionBuildConfigSourceOutputWithContext added in v6.41.0

func (i GetFunctionBuildConfigSourceArgs) ToGetFunctionBuildConfigSourceOutputWithContext(ctx context.Context) GetFunctionBuildConfigSourceOutput

func (GetFunctionBuildConfigSourceArgs) ToOutput added in v6.65.1

type GetFunctionBuildConfigSourceArray added in v6.41.0

type GetFunctionBuildConfigSourceArray []GetFunctionBuildConfigSourceInput

func (GetFunctionBuildConfigSourceArray) ElementType added in v6.41.0

func (GetFunctionBuildConfigSourceArray) ToGetFunctionBuildConfigSourceArrayOutput added in v6.41.0

func (i GetFunctionBuildConfigSourceArray) ToGetFunctionBuildConfigSourceArrayOutput() GetFunctionBuildConfigSourceArrayOutput

func (GetFunctionBuildConfigSourceArray) ToGetFunctionBuildConfigSourceArrayOutputWithContext added in v6.41.0

func (i GetFunctionBuildConfigSourceArray) ToGetFunctionBuildConfigSourceArrayOutputWithContext(ctx context.Context) GetFunctionBuildConfigSourceArrayOutput

func (GetFunctionBuildConfigSourceArray) ToOutput added in v6.65.1

type GetFunctionBuildConfigSourceArrayInput added in v6.41.0

type GetFunctionBuildConfigSourceArrayInput interface {
	pulumi.Input

	ToGetFunctionBuildConfigSourceArrayOutput() GetFunctionBuildConfigSourceArrayOutput
	ToGetFunctionBuildConfigSourceArrayOutputWithContext(context.Context) GetFunctionBuildConfigSourceArrayOutput
}

GetFunctionBuildConfigSourceArrayInput is an input type that accepts GetFunctionBuildConfigSourceArray and GetFunctionBuildConfigSourceArrayOutput values. You can construct a concrete instance of `GetFunctionBuildConfigSourceArrayInput` via:

GetFunctionBuildConfigSourceArray{ GetFunctionBuildConfigSourceArgs{...} }

type GetFunctionBuildConfigSourceArrayOutput added in v6.41.0

type GetFunctionBuildConfigSourceArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionBuildConfigSourceArrayOutput) ElementType added in v6.41.0

func (GetFunctionBuildConfigSourceArrayOutput) Index added in v6.41.0

func (GetFunctionBuildConfigSourceArrayOutput) ToGetFunctionBuildConfigSourceArrayOutput added in v6.41.0

func (o GetFunctionBuildConfigSourceArrayOutput) ToGetFunctionBuildConfigSourceArrayOutput() GetFunctionBuildConfigSourceArrayOutput

func (GetFunctionBuildConfigSourceArrayOutput) ToGetFunctionBuildConfigSourceArrayOutputWithContext added in v6.41.0

func (o GetFunctionBuildConfigSourceArrayOutput) ToGetFunctionBuildConfigSourceArrayOutputWithContext(ctx context.Context) GetFunctionBuildConfigSourceArrayOutput

func (GetFunctionBuildConfigSourceArrayOutput) ToOutput added in v6.65.1

type GetFunctionBuildConfigSourceInput added in v6.41.0

type GetFunctionBuildConfigSourceInput interface {
	pulumi.Input

	ToGetFunctionBuildConfigSourceOutput() GetFunctionBuildConfigSourceOutput
	ToGetFunctionBuildConfigSourceOutputWithContext(context.Context) GetFunctionBuildConfigSourceOutput
}

GetFunctionBuildConfigSourceInput is an input type that accepts GetFunctionBuildConfigSourceArgs and GetFunctionBuildConfigSourceOutput values. You can construct a concrete instance of `GetFunctionBuildConfigSourceInput` via:

GetFunctionBuildConfigSourceArgs{...}

type GetFunctionBuildConfigSourceOutput added in v6.41.0

type GetFunctionBuildConfigSourceOutput struct{ *pulumi.OutputState }

func (GetFunctionBuildConfigSourceOutput) ElementType added in v6.41.0

func (GetFunctionBuildConfigSourceOutput) RepoSources added in v6.41.0

func (GetFunctionBuildConfigSourceOutput) StorageSources added in v6.41.0

func (GetFunctionBuildConfigSourceOutput) ToGetFunctionBuildConfigSourceOutput added in v6.41.0

func (o GetFunctionBuildConfigSourceOutput) ToGetFunctionBuildConfigSourceOutput() GetFunctionBuildConfigSourceOutput

func (GetFunctionBuildConfigSourceOutput) ToGetFunctionBuildConfigSourceOutputWithContext added in v6.41.0

func (o GetFunctionBuildConfigSourceOutput) ToGetFunctionBuildConfigSourceOutputWithContext(ctx context.Context) GetFunctionBuildConfigSourceOutput

func (GetFunctionBuildConfigSourceOutput) ToOutput added in v6.65.1

type GetFunctionBuildConfigSourceRepoSource added in v6.41.0

type GetFunctionBuildConfigSourceRepoSource struct {
	BranchName  string `pulumi:"branchName"`
	CommitSha   string `pulumi:"commitSha"`
	Dir         string `pulumi:"dir"`
	InvertRegex bool   `pulumi:"invertRegex"`
	ProjectId   string `pulumi:"projectId"`
	RepoName    string `pulumi:"repoName"`
	TagName     string `pulumi:"tagName"`
}

type GetFunctionBuildConfigSourceRepoSourceArgs added in v6.41.0

type GetFunctionBuildConfigSourceRepoSourceArgs struct {
	BranchName  pulumi.StringInput `pulumi:"branchName"`
	CommitSha   pulumi.StringInput `pulumi:"commitSha"`
	Dir         pulumi.StringInput `pulumi:"dir"`
	InvertRegex pulumi.BoolInput   `pulumi:"invertRegex"`
	ProjectId   pulumi.StringInput `pulumi:"projectId"`
	RepoName    pulumi.StringInput `pulumi:"repoName"`
	TagName     pulumi.StringInput `pulumi:"tagName"`
}

func (GetFunctionBuildConfigSourceRepoSourceArgs) ElementType added in v6.41.0

func (GetFunctionBuildConfigSourceRepoSourceArgs) ToGetFunctionBuildConfigSourceRepoSourceOutput added in v6.41.0

func (i GetFunctionBuildConfigSourceRepoSourceArgs) ToGetFunctionBuildConfigSourceRepoSourceOutput() GetFunctionBuildConfigSourceRepoSourceOutput

func (GetFunctionBuildConfigSourceRepoSourceArgs) ToGetFunctionBuildConfigSourceRepoSourceOutputWithContext added in v6.41.0

func (i GetFunctionBuildConfigSourceRepoSourceArgs) ToGetFunctionBuildConfigSourceRepoSourceOutputWithContext(ctx context.Context) GetFunctionBuildConfigSourceRepoSourceOutput

func (GetFunctionBuildConfigSourceRepoSourceArgs) ToOutput added in v6.65.1

type GetFunctionBuildConfigSourceRepoSourceArray added in v6.41.0

type GetFunctionBuildConfigSourceRepoSourceArray []GetFunctionBuildConfigSourceRepoSourceInput

func (GetFunctionBuildConfigSourceRepoSourceArray) ElementType added in v6.41.0

func (GetFunctionBuildConfigSourceRepoSourceArray) ToGetFunctionBuildConfigSourceRepoSourceArrayOutput added in v6.41.0

func (i GetFunctionBuildConfigSourceRepoSourceArray) ToGetFunctionBuildConfigSourceRepoSourceArrayOutput() GetFunctionBuildConfigSourceRepoSourceArrayOutput

func (GetFunctionBuildConfigSourceRepoSourceArray) ToGetFunctionBuildConfigSourceRepoSourceArrayOutputWithContext added in v6.41.0

func (i GetFunctionBuildConfigSourceRepoSourceArray) ToGetFunctionBuildConfigSourceRepoSourceArrayOutputWithContext(ctx context.Context) GetFunctionBuildConfigSourceRepoSourceArrayOutput

func (GetFunctionBuildConfigSourceRepoSourceArray) ToOutput added in v6.65.1

type GetFunctionBuildConfigSourceRepoSourceArrayInput added in v6.41.0

type GetFunctionBuildConfigSourceRepoSourceArrayInput interface {
	pulumi.Input

	ToGetFunctionBuildConfigSourceRepoSourceArrayOutput() GetFunctionBuildConfigSourceRepoSourceArrayOutput
	ToGetFunctionBuildConfigSourceRepoSourceArrayOutputWithContext(context.Context) GetFunctionBuildConfigSourceRepoSourceArrayOutput
}

GetFunctionBuildConfigSourceRepoSourceArrayInput is an input type that accepts GetFunctionBuildConfigSourceRepoSourceArray and GetFunctionBuildConfigSourceRepoSourceArrayOutput values. You can construct a concrete instance of `GetFunctionBuildConfigSourceRepoSourceArrayInput` via:

GetFunctionBuildConfigSourceRepoSourceArray{ GetFunctionBuildConfigSourceRepoSourceArgs{...} }

type GetFunctionBuildConfigSourceRepoSourceArrayOutput added in v6.41.0

type GetFunctionBuildConfigSourceRepoSourceArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionBuildConfigSourceRepoSourceArrayOutput) ElementType added in v6.41.0

func (GetFunctionBuildConfigSourceRepoSourceArrayOutput) Index added in v6.41.0

func (GetFunctionBuildConfigSourceRepoSourceArrayOutput) ToGetFunctionBuildConfigSourceRepoSourceArrayOutput added in v6.41.0

func (o GetFunctionBuildConfigSourceRepoSourceArrayOutput) ToGetFunctionBuildConfigSourceRepoSourceArrayOutput() GetFunctionBuildConfigSourceRepoSourceArrayOutput

func (GetFunctionBuildConfigSourceRepoSourceArrayOutput) ToGetFunctionBuildConfigSourceRepoSourceArrayOutputWithContext added in v6.41.0

func (o GetFunctionBuildConfigSourceRepoSourceArrayOutput) ToGetFunctionBuildConfigSourceRepoSourceArrayOutputWithContext(ctx context.Context) GetFunctionBuildConfigSourceRepoSourceArrayOutput

func (GetFunctionBuildConfigSourceRepoSourceArrayOutput) ToOutput added in v6.65.1

type GetFunctionBuildConfigSourceRepoSourceInput added in v6.41.0

type GetFunctionBuildConfigSourceRepoSourceInput interface {
	pulumi.Input

	ToGetFunctionBuildConfigSourceRepoSourceOutput() GetFunctionBuildConfigSourceRepoSourceOutput
	ToGetFunctionBuildConfigSourceRepoSourceOutputWithContext(context.Context) GetFunctionBuildConfigSourceRepoSourceOutput
}

GetFunctionBuildConfigSourceRepoSourceInput is an input type that accepts GetFunctionBuildConfigSourceRepoSourceArgs and GetFunctionBuildConfigSourceRepoSourceOutput values. You can construct a concrete instance of `GetFunctionBuildConfigSourceRepoSourceInput` via:

GetFunctionBuildConfigSourceRepoSourceArgs{...}

type GetFunctionBuildConfigSourceRepoSourceOutput added in v6.41.0

type GetFunctionBuildConfigSourceRepoSourceOutput struct{ *pulumi.OutputState }

func (GetFunctionBuildConfigSourceRepoSourceOutput) BranchName added in v6.41.0

func (GetFunctionBuildConfigSourceRepoSourceOutput) CommitSha added in v6.41.0

func (GetFunctionBuildConfigSourceRepoSourceOutput) Dir added in v6.41.0

func (GetFunctionBuildConfigSourceRepoSourceOutput) ElementType added in v6.41.0

func (GetFunctionBuildConfigSourceRepoSourceOutput) InvertRegex added in v6.41.0

func (GetFunctionBuildConfigSourceRepoSourceOutput) ProjectId added in v6.41.0

func (GetFunctionBuildConfigSourceRepoSourceOutput) RepoName added in v6.41.0

func (GetFunctionBuildConfigSourceRepoSourceOutput) TagName added in v6.41.0

func (GetFunctionBuildConfigSourceRepoSourceOutput) ToGetFunctionBuildConfigSourceRepoSourceOutput added in v6.41.0

func (o GetFunctionBuildConfigSourceRepoSourceOutput) ToGetFunctionBuildConfigSourceRepoSourceOutput() GetFunctionBuildConfigSourceRepoSourceOutput

func (GetFunctionBuildConfigSourceRepoSourceOutput) ToGetFunctionBuildConfigSourceRepoSourceOutputWithContext added in v6.41.0

func (o GetFunctionBuildConfigSourceRepoSourceOutput) ToGetFunctionBuildConfigSourceRepoSourceOutputWithContext(ctx context.Context) GetFunctionBuildConfigSourceRepoSourceOutput

func (GetFunctionBuildConfigSourceRepoSourceOutput) ToOutput added in v6.65.1

type GetFunctionBuildConfigSourceStorageSource added in v6.41.0

type GetFunctionBuildConfigSourceStorageSource struct {
	Bucket     string `pulumi:"bucket"`
	Generation int    `pulumi:"generation"`
	Object     string `pulumi:"object"`
}

type GetFunctionBuildConfigSourceStorageSourceArgs added in v6.41.0

type GetFunctionBuildConfigSourceStorageSourceArgs struct {
	Bucket     pulumi.StringInput `pulumi:"bucket"`
	Generation pulumi.IntInput    `pulumi:"generation"`
	Object     pulumi.StringInput `pulumi:"object"`
}

func (GetFunctionBuildConfigSourceStorageSourceArgs) ElementType added in v6.41.0

func (GetFunctionBuildConfigSourceStorageSourceArgs) ToGetFunctionBuildConfigSourceStorageSourceOutput added in v6.41.0

func (i GetFunctionBuildConfigSourceStorageSourceArgs) ToGetFunctionBuildConfigSourceStorageSourceOutput() GetFunctionBuildConfigSourceStorageSourceOutput

func (GetFunctionBuildConfigSourceStorageSourceArgs) ToGetFunctionBuildConfigSourceStorageSourceOutputWithContext added in v6.41.0

func (i GetFunctionBuildConfigSourceStorageSourceArgs) ToGetFunctionBuildConfigSourceStorageSourceOutputWithContext(ctx context.Context) GetFunctionBuildConfigSourceStorageSourceOutput

func (GetFunctionBuildConfigSourceStorageSourceArgs) ToOutput added in v6.65.1

type GetFunctionBuildConfigSourceStorageSourceArray added in v6.41.0

type GetFunctionBuildConfigSourceStorageSourceArray []GetFunctionBuildConfigSourceStorageSourceInput

func (GetFunctionBuildConfigSourceStorageSourceArray) ElementType added in v6.41.0

func (GetFunctionBuildConfigSourceStorageSourceArray) ToGetFunctionBuildConfigSourceStorageSourceArrayOutput added in v6.41.0

func (i GetFunctionBuildConfigSourceStorageSourceArray) ToGetFunctionBuildConfigSourceStorageSourceArrayOutput() GetFunctionBuildConfigSourceStorageSourceArrayOutput

func (GetFunctionBuildConfigSourceStorageSourceArray) ToGetFunctionBuildConfigSourceStorageSourceArrayOutputWithContext added in v6.41.0

func (i GetFunctionBuildConfigSourceStorageSourceArray) ToGetFunctionBuildConfigSourceStorageSourceArrayOutputWithContext(ctx context.Context) GetFunctionBuildConfigSourceStorageSourceArrayOutput

func (GetFunctionBuildConfigSourceStorageSourceArray) ToOutput added in v6.65.1

type GetFunctionBuildConfigSourceStorageSourceArrayInput added in v6.41.0

type GetFunctionBuildConfigSourceStorageSourceArrayInput interface {
	pulumi.Input

	ToGetFunctionBuildConfigSourceStorageSourceArrayOutput() GetFunctionBuildConfigSourceStorageSourceArrayOutput
	ToGetFunctionBuildConfigSourceStorageSourceArrayOutputWithContext(context.Context) GetFunctionBuildConfigSourceStorageSourceArrayOutput
}

GetFunctionBuildConfigSourceStorageSourceArrayInput is an input type that accepts GetFunctionBuildConfigSourceStorageSourceArray and GetFunctionBuildConfigSourceStorageSourceArrayOutput values. You can construct a concrete instance of `GetFunctionBuildConfigSourceStorageSourceArrayInput` via:

GetFunctionBuildConfigSourceStorageSourceArray{ GetFunctionBuildConfigSourceStorageSourceArgs{...} }

type GetFunctionBuildConfigSourceStorageSourceArrayOutput added in v6.41.0

type GetFunctionBuildConfigSourceStorageSourceArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionBuildConfigSourceStorageSourceArrayOutput) ElementType added in v6.41.0

func (GetFunctionBuildConfigSourceStorageSourceArrayOutput) Index added in v6.41.0

func (GetFunctionBuildConfigSourceStorageSourceArrayOutput) ToGetFunctionBuildConfigSourceStorageSourceArrayOutput added in v6.41.0

func (GetFunctionBuildConfigSourceStorageSourceArrayOutput) ToGetFunctionBuildConfigSourceStorageSourceArrayOutputWithContext added in v6.41.0

func (o GetFunctionBuildConfigSourceStorageSourceArrayOutput) ToGetFunctionBuildConfigSourceStorageSourceArrayOutputWithContext(ctx context.Context) GetFunctionBuildConfigSourceStorageSourceArrayOutput

func (GetFunctionBuildConfigSourceStorageSourceArrayOutput) ToOutput added in v6.65.1

type GetFunctionBuildConfigSourceStorageSourceInput added in v6.41.0

type GetFunctionBuildConfigSourceStorageSourceInput interface {
	pulumi.Input

	ToGetFunctionBuildConfigSourceStorageSourceOutput() GetFunctionBuildConfigSourceStorageSourceOutput
	ToGetFunctionBuildConfigSourceStorageSourceOutputWithContext(context.Context) GetFunctionBuildConfigSourceStorageSourceOutput
}

GetFunctionBuildConfigSourceStorageSourceInput is an input type that accepts GetFunctionBuildConfigSourceStorageSourceArgs and GetFunctionBuildConfigSourceStorageSourceOutput values. You can construct a concrete instance of `GetFunctionBuildConfigSourceStorageSourceInput` via:

GetFunctionBuildConfigSourceStorageSourceArgs{...}

type GetFunctionBuildConfigSourceStorageSourceOutput added in v6.41.0

type GetFunctionBuildConfigSourceStorageSourceOutput struct{ *pulumi.OutputState }

func (GetFunctionBuildConfigSourceStorageSourceOutput) Bucket added in v6.41.0

func (GetFunctionBuildConfigSourceStorageSourceOutput) ElementType added in v6.41.0

func (GetFunctionBuildConfigSourceStorageSourceOutput) Generation added in v6.41.0

func (GetFunctionBuildConfigSourceStorageSourceOutput) Object added in v6.41.0

func (GetFunctionBuildConfigSourceStorageSourceOutput) ToGetFunctionBuildConfigSourceStorageSourceOutput added in v6.41.0

func (o GetFunctionBuildConfigSourceStorageSourceOutput) ToGetFunctionBuildConfigSourceStorageSourceOutput() GetFunctionBuildConfigSourceStorageSourceOutput

func (GetFunctionBuildConfigSourceStorageSourceOutput) ToGetFunctionBuildConfigSourceStorageSourceOutputWithContext added in v6.41.0

func (o GetFunctionBuildConfigSourceStorageSourceOutput) ToGetFunctionBuildConfigSourceStorageSourceOutputWithContext(ctx context.Context) GetFunctionBuildConfigSourceStorageSourceOutput

func (GetFunctionBuildConfigSourceStorageSourceOutput) ToOutput added in v6.65.1

type GetFunctionEventTrigger added in v6.41.0

type GetFunctionEventTrigger struct {
	EventFilters        []GetFunctionEventTriggerEventFilter `pulumi:"eventFilters"`
	EventType           string                               `pulumi:"eventType"`
	PubsubTopic         string                               `pulumi:"pubsubTopic"`
	RetryPolicy         string                               `pulumi:"retryPolicy"`
	ServiceAccountEmail string                               `pulumi:"serviceAccountEmail"`
	Trigger             string                               `pulumi:"trigger"`
	TriggerRegion       string                               `pulumi:"triggerRegion"`
}

type GetFunctionEventTriggerArgs added in v6.41.0

type GetFunctionEventTriggerArgs struct {
	EventFilters        GetFunctionEventTriggerEventFilterArrayInput `pulumi:"eventFilters"`
	EventType           pulumi.StringInput                           `pulumi:"eventType"`
	PubsubTopic         pulumi.StringInput                           `pulumi:"pubsubTopic"`
	RetryPolicy         pulumi.StringInput                           `pulumi:"retryPolicy"`
	ServiceAccountEmail pulumi.StringInput                           `pulumi:"serviceAccountEmail"`
	Trigger             pulumi.StringInput                           `pulumi:"trigger"`
	TriggerRegion       pulumi.StringInput                           `pulumi:"triggerRegion"`
}

func (GetFunctionEventTriggerArgs) ElementType added in v6.41.0

func (GetFunctionEventTriggerArgs) ToGetFunctionEventTriggerOutput added in v6.41.0

func (i GetFunctionEventTriggerArgs) ToGetFunctionEventTriggerOutput() GetFunctionEventTriggerOutput

func (GetFunctionEventTriggerArgs) ToGetFunctionEventTriggerOutputWithContext added in v6.41.0

func (i GetFunctionEventTriggerArgs) ToGetFunctionEventTriggerOutputWithContext(ctx context.Context) GetFunctionEventTriggerOutput

func (GetFunctionEventTriggerArgs) ToOutput added in v6.65.1

type GetFunctionEventTriggerArray added in v6.41.0

type GetFunctionEventTriggerArray []GetFunctionEventTriggerInput

func (GetFunctionEventTriggerArray) ElementType added in v6.41.0

func (GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutput added in v6.41.0

func (i GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutput() GetFunctionEventTriggerArrayOutput

func (GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutputWithContext added in v6.41.0

func (i GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerArrayOutput

func (GetFunctionEventTriggerArray) ToOutput added in v6.65.1

type GetFunctionEventTriggerArrayInput added in v6.41.0

type GetFunctionEventTriggerArrayInput interface {
	pulumi.Input

	ToGetFunctionEventTriggerArrayOutput() GetFunctionEventTriggerArrayOutput
	ToGetFunctionEventTriggerArrayOutputWithContext(context.Context) GetFunctionEventTriggerArrayOutput
}

GetFunctionEventTriggerArrayInput is an input type that accepts GetFunctionEventTriggerArray and GetFunctionEventTriggerArrayOutput values. You can construct a concrete instance of `GetFunctionEventTriggerArrayInput` via:

GetFunctionEventTriggerArray{ GetFunctionEventTriggerArgs{...} }

type GetFunctionEventTriggerArrayOutput added in v6.41.0

type GetFunctionEventTriggerArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionEventTriggerArrayOutput) ElementType added in v6.41.0

func (GetFunctionEventTriggerArrayOutput) Index added in v6.41.0

func (GetFunctionEventTriggerArrayOutput) ToGetFunctionEventTriggerArrayOutput added in v6.41.0

func (o GetFunctionEventTriggerArrayOutput) ToGetFunctionEventTriggerArrayOutput() GetFunctionEventTriggerArrayOutput

func (GetFunctionEventTriggerArrayOutput) ToGetFunctionEventTriggerArrayOutputWithContext added in v6.41.0

func (o GetFunctionEventTriggerArrayOutput) ToGetFunctionEventTriggerArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerArrayOutput

func (GetFunctionEventTriggerArrayOutput) ToOutput added in v6.65.1

type GetFunctionEventTriggerEventFilter added in v6.41.0

type GetFunctionEventTriggerEventFilter struct {
	Attribute string `pulumi:"attribute"`
	Operator  string `pulumi:"operator"`
	Value     string `pulumi:"value"`
}

type GetFunctionEventTriggerEventFilterArgs added in v6.41.0

type GetFunctionEventTriggerEventFilterArgs struct {
	Attribute pulumi.StringInput `pulumi:"attribute"`
	Operator  pulumi.StringInput `pulumi:"operator"`
	Value     pulumi.StringInput `pulumi:"value"`
}

func (GetFunctionEventTriggerEventFilterArgs) ElementType added in v6.41.0

func (GetFunctionEventTriggerEventFilterArgs) ToGetFunctionEventTriggerEventFilterOutput added in v6.41.0

func (i GetFunctionEventTriggerEventFilterArgs) ToGetFunctionEventTriggerEventFilterOutput() GetFunctionEventTriggerEventFilterOutput

func (GetFunctionEventTriggerEventFilterArgs) ToGetFunctionEventTriggerEventFilterOutputWithContext added in v6.41.0

func (i GetFunctionEventTriggerEventFilterArgs) ToGetFunctionEventTriggerEventFilterOutputWithContext(ctx context.Context) GetFunctionEventTriggerEventFilterOutput

func (GetFunctionEventTriggerEventFilterArgs) ToOutput added in v6.65.1

type GetFunctionEventTriggerEventFilterArray added in v6.41.0

type GetFunctionEventTriggerEventFilterArray []GetFunctionEventTriggerEventFilterInput

func (GetFunctionEventTriggerEventFilterArray) ElementType added in v6.41.0

func (GetFunctionEventTriggerEventFilterArray) ToGetFunctionEventTriggerEventFilterArrayOutput added in v6.41.0

func (i GetFunctionEventTriggerEventFilterArray) ToGetFunctionEventTriggerEventFilterArrayOutput() GetFunctionEventTriggerEventFilterArrayOutput

func (GetFunctionEventTriggerEventFilterArray) ToGetFunctionEventTriggerEventFilterArrayOutputWithContext added in v6.41.0

func (i GetFunctionEventTriggerEventFilterArray) ToGetFunctionEventTriggerEventFilterArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerEventFilterArrayOutput

func (GetFunctionEventTriggerEventFilterArray) ToOutput added in v6.65.1

type GetFunctionEventTriggerEventFilterArrayInput added in v6.41.0

type GetFunctionEventTriggerEventFilterArrayInput interface {
	pulumi.Input

	ToGetFunctionEventTriggerEventFilterArrayOutput() GetFunctionEventTriggerEventFilterArrayOutput
	ToGetFunctionEventTriggerEventFilterArrayOutputWithContext(context.Context) GetFunctionEventTriggerEventFilterArrayOutput
}

GetFunctionEventTriggerEventFilterArrayInput is an input type that accepts GetFunctionEventTriggerEventFilterArray and GetFunctionEventTriggerEventFilterArrayOutput values. You can construct a concrete instance of `GetFunctionEventTriggerEventFilterArrayInput` via:

GetFunctionEventTriggerEventFilterArray{ GetFunctionEventTriggerEventFilterArgs{...} }

type GetFunctionEventTriggerEventFilterArrayOutput added in v6.41.0

type GetFunctionEventTriggerEventFilterArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionEventTriggerEventFilterArrayOutput) ElementType added in v6.41.0

func (GetFunctionEventTriggerEventFilterArrayOutput) Index added in v6.41.0

func (GetFunctionEventTriggerEventFilterArrayOutput) ToGetFunctionEventTriggerEventFilterArrayOutput added in v6.41.0

func (o GetFunctionEventTriggerEventFilterArrayOutput) ToGetFunctionEventTriggerEventFilterArrayOutput() GetFunctionEventTriggerEventFilterArrayOutput

func (GetFunctionEventTriggerEventFilterArrayOutput) ToGetFunctionEventTriggerEventFilterArrayOutputWithContext added in v6.41.0

func (o GetFunctionEventTriggerEventFilterArrayOutput) ToGetFunctionEventTriggerEventFilterArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerEventFilterArrayOutput

func (GetFunctionEventTriggerEventFilterArrayOutput) ToOutput added in v6.65.1

type GetFunctionEventTriggerEventFilterInput added in v6.41.0

type GetFunctionEventTriggerEventFilterInput interface {
	pulumi.Input

	ToGetFunctionEventTriggerEventFilterOutput() GetFunctionEventTriggerEventFilterOutput
	ToGetFunctionEventTriggerEventFilterOutputWithContext(context.Context) GetFunctionEventTriggerEventFilterOutput
}

GetFunctionEventTriggerEventFilterInput is an input type that accepts GetFunctionEventTriggerEventFilterArgs and GetFunctionEventTriggerEventFilterOutput values. You can construct a concrete instance of `GetFunctionEventTriggerEventFilterInput` via:

GetFunctionEventTriggerEventFilterArgs{...}

type GetFunctionEventTriggerEventFilterOutput added in v6.41.0

type GetFunctionEventTriggerEventFilterOutput struct{ *pulumi.OutputState }

func (GetFunctionEventTriggerEventFilterOutput) Attribute added in v6.41.0

func (GetFunctionEventTriggerEventFilterOutput) ElementType added in v6.41.0

func (GetFunctionEventTriggerEventFilterOutput) Operator added in v6.41.0

func (GetFunctionEventTriggerEventFilterOutput) ToGetFunctionEventTriggerEventFilterOutput added in v6.41.0

func (o GetFunctionEventTriggerEventFilterOutput) ToGetFunctionEventTriggerEventFilterOutput() GetFunctionEventTriggerEventFilterOutput

func (GetFunctionEventTriggerEventFilterOutput) ToGetFunctionEventTriggerEventFilterOutputWithContext added in v6.41.0

func (o GetFunctionEventTriggerEventFilterOutput) ToGetFunctionEventTriggerEventFilterOutputWithContext(ctx context.Context) GetFunctionEventTriggerEventFilterOutput

func (GetFunctionEventTriggerEventFilterOutput) ToOutput added in v6.65.1

func (GetFunctionEventTriggerEventFilterOutput) Value added in v6.41.0

type GetFunctionEventTriggerInput added in v6.41.0

type GetFunctionEventTriggerInput interface {
	pulumi.Input

	ToGetFunctionEventTriggerOutput() GetFunctionEventTriggerOutput
	ToGetFunctionEventTriggerOutputWithContext(context.Context) GetFunctionEventTriggerOutput
}

GetFunctionEventTriggerInput is an input type that accepts GetFunctionEventTriggerArgs and GetFunctionEventTriggerOutput values. You can construct a concrete instance of `GetFunctionEventTriggerInput` via:

GetFunctionEventTriggerArgs{...}

type GetFunctionEventTriggerOutput added in v6.41.0

type GetFunctionEventTriggerOutput struct{ *pulumi.OutputState }

func (GetFunctionEventTriggerOutput) ElementType added in v6.41.0

func (GetFunctionEventTriggerOutput) EventFilters added in v6.41.0

func (GetFunctionEventTriggerOutput) EventType added in v6.41.0

func (GetFunctionEventTriggerOutput) PubsubTopic added in v6.41.0

func (GetFunctionEventTriggerOutput) RetryPolicy added in v6.41.0

func (GetFunctionEventTriggerOutput) ServiceAccountEmail added in v6.41.0

func (o GetFunctionEventTriggerOutput) ServiceAccountEmail() pulumi.StringOutput

func (GetFunctionEventTriggerOutput) ToGetFunctionEventTriggerOutput added in v6.41.0

func (o GetFunctionEventTriggerOutput) ToGetFunctionEventTriggerOutput() GetFunctionEventTriggerOutput

func (GetFunctionEventTriggerOutput) ToGetFunctionEventTriggerOutputWithContext added in v6.41.0

func (o GetFunctionEventTriggerOutput) ToGetFunctionEventTriggerOutputWithContext(ctx context.Context) GetFunctionEventTriggerOutput

func (GetFunctionEventTriggerOutput) ToOutput added in v6.65.1

func (GetFunctionEventTriggerOutput) Trigger added in v6.41.0

func (GetFunctionEventTriggerOutput) TriggerRegion added in v6.41.0

type GetFunctionServiceConfig added in v6.41.0

type GetFunctionServiceConfig struct {
	AllTrafficOnLatestRevision    bool                                                `pulumi:"allTrafficOnLatestRevision"`
	AvailableCpu                  string                                              `pulumi:"availableCpu"`
	AvailableMemory               string                                              `pulumi:"availableMemory"`
	EnvironmentVariables          map[string]string                                   `pulumi:"environmentVariables"`
	GcfUri                        string                                              `pulumi:"gcfUri"`
	IngressSettings               string                                              `pulumi:"ingressSettings"`
	MaxInstanceCount              int                                                 `pulumi:"maxInstanceCount"`
	MaxInstanceRequestConcurrency int                                                 `pulumi:"maxInstanceRequestConcurrency"`
	MinInstanceCount              int                                                 `pulumi:"minInstanceCount"`
	SecretEnvironmentVariables    []GetFunctionServiceConfigSecretEnvironmentVariable `pulumi:"secretEnvironmentVariables"`
	SecretVolumes                 []GetFunctionServiceConfigSecretVolume              `pulumi:"secretVolumes"`
	Service                       string                                              `pulumi:"service"`
	ServiceAccountEmail           string                                              `pulumi:"serviceAccountEmail"`
	TimeoutSeconds                int                                                 `pulumi:"timeoutSeconds"`
	Uri                           string                                              `pulumi:"uri"`
	VpcConnector                  string                                              `pulumi:"vpcConnector"`
	VpcConnectorEgressSettings    string                                              `pulumi:"vpcConnectorEgressSettings"`
}

type GetFunctionServiceConfigArgs added in v6.41.0

type GetFunctionServiceConfigArgs struct {
	AllTrafficOnLatestRevision    pulumi.BoolInput                                            `pulumi:"allTrafficOnLatestRevision"`
	AvailableCpu                  pulumi.StringInput                                          `pulumi:"availableCpu"`
	AvailableMemory               pulumi.StringInput                                          `pulumi:"availableMemory"`
	EnvironmentVariables          pulumi.StringMapInput                                       `pulumi:"environmentVariables"`
	GcfUri                        pulumi.StringInput                                          `pulumi:"gcfUri"`
	IngressSettings               pulumi.StringInput                                          `pulumi:"ingressSettings"`
	MaxInstanceCount              pulumi.IntInput                                             `pulumi:"maxInstanceCount"`
	MaxInstanceRequestConcurrency pulumi.IntInput                                             `pulumi:"maxInstanceRequestConcurrency"`
	MinInstanceCount              pulumi.IntInput                                             `pulumi:"minInstanceCount"`
	SecretEnvironmentVariables    GetFunctionServiceConfigSecretEnvironmentVariableArrayInput `pulumi:"secretEnvironmentVariables"`
	SecretVolumes                 GetFunctionServiceConfigSecretVolumeArrayInput              `pulumi:"secretVolumes"`
	Service                       pulumi.StringInput                                          `pulumi:"service"`
	ServiceAccountEmail           pulumi.StringInput                                          `pulumi:"serviceAccountEmail"`
	TimeoutSeconds                pulumi.IntInput                                             `pulumi:"timeoutSeconds"`
	Uri                           pulumi.StringInput                                          `pulumi:"uri"`
	VpcConnector                  pulumi.StringInput                                          `pulumi:"vpcConnector"`
	VpcConnectorEgressSettings    pulumi.StringInput                                          `pulumi:"vpcConnectorEgressSettings"`
}

func (GetFunctionServiceConfigArgs) ElementType added in v6.41.0

func (GetFunctionServiceConfigArgs) ToGetFunctionServiceConfigOutput added in v6.41.0

func (i GetFunctionServiceConfigArgs) ToGetFunctionServiceConfigOutput() GetFunctionServiceConfigOutput

func (GetFunctionServiceConfigArgs) ToGetFunctionServiceConfigOutputWithContext added in v6.41.0

func (i GetFunctionServiceConfigArgs) ToGetFunctionServiceConfigOutputWithContext(ctx context.Context) GetFunctionServiceConfigOutput

func (GetFunctionServiceConfigArgs) ToOutput added in v6.65.1

type GetFunctionServiceConfigArray added in v6.41.0

type GetFunctionServiceConfigArray []GetFunctionServiceConfigInput

func (GetFunctionServiceConfigArray) ElementType added in v6.41.0

func (GetFunctionServiceConfigArray) ToGetFunctionServiceConfigArrayOutput added in v6.41.0

func (i GetFunctionServiceConfigArray) ToGetFunctionServiceConfigArrayOutput() GetFunctionServiceConfigArrayOutput

func (GetFunctionServiceConfigArray) ToGetFunctionServiceConfigArrayOutputWithContext added in v6.41.0

func (i GetFunctionServiceConfigArray) ToGetFunctionServiceConfigArrayOutputWithContext(ctx context.Context) GetFunctionServiceConfigArrayOutput

func (GetFunctionServiceConfigArray) ToOutput added in v6.65.1

type GetFunctionServiceConfigArrayInput added in v6.41.0

type GetFunctionServiceConfigArrayInput interface {
	pulumi.Input

	ToGetFunctionServiceConfigArrayOutput() GetFunctionServiceConfigArrayOutput
	ToGetFunctionServiceConfigArrayOutputWithContext(context.Context) GetFunctionServiceConfigArrayOutput
}

GetFunctionServiceConfigArrayInput is an input type that accepts GetFunctionServiceConfigArray and GetFunctionServiceConfigArrayOutput values. You can construct a concrete instance of `GetFunctionServiceConfigArrayInput` via:

GetFunctionServiceConfigArray{ GetFunctionServiceConfigArgs{...} }

type GetFunctionServiceConfigArrayOutput added in v6.41.0

type GetFunctionServiceConfigArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionServiceConfigArrayOutput) ElementType added in v6.41.0

func (GetFunctionServiceConfigArrayOutput) Index added in v6.41.0

func (GetFunctionServiceConfigArrayOutput) ToGetFunctionServiceConfigArrayOutput added in v6.41.0

func (o GetFunctionServiceConfigArrayOutput) ToGetFunctionServiceConfigArrayOutput() GetFunctionServiceConfigArrayOutput

func (GetFunctionServiceConfigArrayOutput) ToGetFunctionServiceConfigArrayOutputWithContext added in v6.41.0

func (o GetFunctionServiceConfigArrayOutput) ToGetFunctionServiceConfigArrayOutputWithContext(ctx context.Context) GetFunctionServiceConfigArrayOutput

func (GetFunctionServiceConfigArrayOutput) ToOutput added in v6.65.1

type GetFunctionServiceConfigInput added in v6.41.0

type GetFunctionServiceConfigInput interface {
	pulumi.Input

	ToGetFunctionServiceConfigOutput() GetFunctionServiceConfigOutput
	ToGetFunctionServiceConfigOutputWithContext(context.Context) GetFunctionServiceConfigOutput
}

GetFunctionServiceConfigInput is an input type that accepts GetFunctionServiceConfigArgs and GetFunctionServiceConfigOutput values. You can construct a concrete instance of `GetFunctionServiceConfigInput` via:

GetFunctionServiceConfigArgs{...}

type GetFunctionServiceConfigOutput added in v6.41.0

type GetFunctionServiceConfigOutput struct{ *pulumi.OutputState }

func (GetFunctionServiceConfigOutput) AllTrafficOnLatestRevision added in v6.41.0

func (o GetFunctionServiceConfigOutput) AllTrafficOnLatestRevision() pulumi.BoolOutput

func (GetFunctionServiceConfigOutput) AvailableCpu added in v6.47.0

func (GetFunctionServiceConfigOutput) AvailableMemory added in v6.41.0

func (GetFunctionServiceConfigOutput) ElementType added in v6.41.0

func (GetFunctionServiceConfigOutput) EnvironmentVariables added in v6.41.0

func (o GetFunctionServiceConfigOutput) EnvironmentVariables() pulumi.StringMapOutput

func (GetFunctionServiceConfigOutput) GcfUri added in v6.41.0

func (GetFunctionServiceConfigOutput) IngressSettings added in v6.41.0

func (GetFunctionServiceConfigOutput) MaxInstanceCount added in v6.41.0

func (o GetFunctionServiceConfigOutput) MaxInstanceCount() pulumi.IntOutput

func (GetFunctionServiceConfigOutput) MaxInstanceRequestConcurrency added in v6.47.0

func (o GetFunctionServiceConfigOutput) MaxInstanceRequestConcurrency() pulumi.IntOutput

func (GetFunctionServiceConfigOutput) MinInstanceCount added in v6.41.0

func (o GetFunctionServiceConfigOutput) MinInstanceCount() pulumi.IntOutput

func (GetFunctionServiceConfigOutput) SecretEnvironmentVariables added in v6.41.0

func (GetFunctionServiceConfigOutput) SecretVolumes added in v6.41.0

func (GetFunctionServiceConfigOutput) Service added in v6.41.0

func (GetFunctionServiceConfigOutput) ServiceAccountEmail added in v6.41.0

func (o GetFunctionServiceConfigOutput) ServiceAccountEmail() pulumi.StringOutput

func (GetFunctionServiceConfigOutput) TimeoutSeconds added in v6.41.0

func (o GetFunctionServiceConfigOutput) TimeoutSeconds() pulumi.IntOutput

func (GetFunctionServiceConfigOutput) ToGetFunctionServiceConfigOutput added in v6.41.0

func (o GetFunctionServiceConfigOutput) ToGetFunctionServiceConfigOutput() GetFunctionServiceConfigOutput

func (GetFunctionServiceConfigOutput) ToGetFunctionServiceConfigOutputWithContext added in v6.41.0

func (o GetFunctionServiceConfigOutput) ToGetFunctionServiceConfigOutputWithContext(ctx context.Context) GetFunctionServiceConfigOutput

func (GetFunctionServiceConfigOutput) ToOutput added in v6.65.1

func (GetFunctionServiceConfigOutput) Uri added in v6.41.0

func (GetFunctionServiceConfigOutput) VpcConnector added in v6.41.0

func (GetFunctionServiceConfigOutput) VpcConnectorEgressSettings added in v6.41.0

func (o GetFunctionServiceConfigOutput) VpcConnectorEgressSettings() pulumi.StringOutput

type GetFunctionServiceConfigSecretEnvironmentVariable added in v6.41.0

type GetFunctionServiceConfigSecretEnvironmentVariable struct {
	Key       string `pulumi:"key"`
	ProjectId string `pulumi:"projectId"`
	Secret    string `pulumi:"secret"`
	Version   string `pulumi:"version"`
}

type GetFunctionServiceConfigSecretEnvironmentVariableArgs added in v6.41.0

type GetFunctionServiceConfigSecretEnvironmentVariableArgs struct {
	Key       pulumi.StringInput `pulumi:"key"`
	ProjectId pulumi.StringInput `pulumi:"projectId"`
	Secret    pulumi.StringInput `pulumi:"secret"`
	Version   pulumi.StringInput `pulumi:"version"`
}

func (GetFunctionServiceConfigSecretEnvironmentVariableArgs) ElementType added in v6.41.0

func (GetFunctionServiceConfigSecretEnvironmentVariableArgs) ToGetFunctionServiceConfigSecretEnvironmentVariableOutput added in v6.41.0

func (i GetFunctionServiceConfigSecretEnvironmentVariableArgs) ToGetFunctionServiceConfigSecretEnvironmentVariableOutput() GetFunctionServiceConfigSecretEnvironmentVariableOutput

func (GetFunctionServiceConfigSecretEnvironmentVariableArgs) ToGetFunctionServiceConfigSecretEnvironmentVariableOutputWithContext added in v6.41.0

func (i GetFunctionServiceConfigSecretEnvironmentVariableArgs) ToGetFunctionServiceConfigSecretEnvironmentVariableOutputWithContext(ctx context.Context) GetFunctionServiceConfigSecretEnvironmentVariableOutput

func (GetFunctionServiceConfigSecretEnvironmentVariableArgs) ToOutput added in v6.65.1

type GetFunctionServiceConfigSecretEnvironmentVariableArray added in v6.41.0

type GetFunctionServiceConfigSecretEnvironmentVariableArray []GetFunctionServiceConfigSecretEnvironmentVariableInput

func (GetFunctionServiceConfigSecretEnvironmentVariableArray) ElementType added in v6.41.0

func (GetFunctionServiceConfigSecretEnvironmentVariableArray) ToGetFunctionServiceConfigSecretEnvironmentVariableArrayOutput added in v6.41.0

func (i GetFunctionServiceConfigSecretEnvironmentVariableArray) ToGetFunctionServiceConfigSecretEnvironmentVariableArrayOutput() GetFunctionServiceConfigSecretEnvironmentVariableArrayOutput

func (GetFunctionServiceConfigSecretEnvironmentVariableArray) ToGetFunctionServiceConfigSecretEnvironmentVariableArrayOutputWithContext added in v6.41.0

func (i GetFunctionServiceConfigSecretEnvironmentVariableArray) ToGetFunctionServiceConfigSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) GetFunctionServiceConfigSecretEnvironmentVariableArrayOutput

func (GetFunctionServiceConfigSecretEnvironmentVariableArray) ToOutput added in v6.65.1

type GetFunctionServiceConfigSecretEnvironmentVariableArrayInput added in v6.41.0

type GetFunctionServiceConfigSecretEnvironmentVariableArrayInput interface {
	pulumi.Input

	ToGetFunctionServiceConfigSecretEnvironmentVariableArrayOutput() GetFunctionServiceConfigSecretEnvironmentVariableArrayOutput
	ToGetFunctionServiceConfigSecretEnvironmentVariableArrayOutputWithContext(context.Context) GetFunctionServiceConfigSecretEnvironmentVariableArrayOutput
}

GetFunctionServiceConfigSecretEnvironmentVariableArrayInput is an input type that accepts GetFunctionServiceConfigSecretEnvironmentVariableArray and GetFunctionServiceConfigSecretEnvironmentVariableArrayOutput values. You can construct a concrete instance of `GetFunctionServiceConfigSecretEnvironmentVariableArrayInput` via:

GetFunctionServiceConfigSecretEnvironmentVariableArray{ GetFunctionServiceConfigSecretEnvironmentVariableArgs{...} }

type GetFunctionServiceConfigSecretEnvironmentVariableArrayOutput added in v6.41.0

type GetFunctionServiceConfigSecretEnvironmentVariableArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionServiceConfigSecretEnvironmentVariableArrayOutput) ElementType added in v6.41.0

func (GetFunctionServiceConfigSecretEnvironmentVariableArrayOutput) Index added in v6.41.0

func (GetFunctionServiceConfigSecretEnvironmentVariableArrayOutput) ToGetFunctionServiceConfigSecretEnvironmentVariableArrayOutput added in v6.41.0

func (GetFunctionServiceConfigSecretEnvironmentVariableArrayOutput) ToGetFunctionServiceConfigSecretEnvironmentVariableArrayOutputWithContext added in v6.41.0

func (o GetFunctionServiceConfigSecretEnvironmentVariableArrayOutput) ToGetFunctionServiceConfigSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) GetFunctionServiceConfigSecretEnvironmentVariableArrayOutput

func (GetFunctionServiceConfigSecretEnvironmentVariableArrayOutput) ToOutput added in v6.65.1

type GetFunctionServiceConfigSecretEnvironmentVariableInput added in v6.41.0

type GetFunctionServiceConfigSecretEnvironmentVariableInput interface {
	pulumi.Input

	ToGetFunctionServiceConfigSecretEnvironmentVariableOutput() GetFunctionServiceConfigSecretEnvironmentVariableOutput
	ToGetFunctionServiceConfigSecretEnvironmentVariableOutputWithContext(context.Context) GetFunctionServiceConfigSecretEnvironmentVariableOutput
}

GetFunctionServiceConfigSecretEnvironmentVariableInput is an input type that accepts GetFunctionServiceConfigSecretEnvironmentVariableArgs and GetFunctionServiceConfigSecretEnvironmentVariableOutput values. You can construct a concrete instance of `GetFunctionServiceConfigSecretEnvironmentVariableInput` via:

GetFunctionServiceConfigSecretEnvironmentVariableArgs{...}

type GetFunctionServiceConfigSecretEnvironmentVariableOutput added in v6.41.0

type GetFunctionServiceConfigSecretEnvironmentVariableOutput struct{ *pulumi.OutputState }

func (GetFunctionServiceConfigSecretEnvironmentVariableOutput) ElementType added in v6.41.0

func (GetFunctionServiceConfigSecretEnvironmentVariableOutput) Key added in v6.41.0

func (GetFunctionServiceConfigSecretEnvironmentVariableOutput) ProjectId added in v6.41.0

func (GetFunctionServiceConfigSecretEnvironmentVariableOutput) Secret added in v6.41.0

func (GetFunctionServiceConfigSecretEnvironmentVariableOutput) ToGetFunctionServiceConfigSecretEnvironmentVariableOutput added in v6.41.0

func (GetFunctionServiceConfigSecretEnvironmentVariableOutput) ToGetFunctionServiceConfigSecretEnvironmentVariableOutputWithContext added in v6.41.0

func (o GetFunctionServiceConfigSecretEnvironmentVariableOutput) ToGetFunctionServiceConfigSecretEnvironmentVariableOutputWithContext(ctx context.Context) GetFunctionServiceConfigSecretEnvironmentVariableOutput

func (GetFunctionServiceConfigSecretEnvironmentVariableOutput) ToOutput added in v6.65.1

func (GetFunctionServiceConfigSecretEnvironmentVariableOutput) Version added in v6.41.0

type GetFunctionServiceConfigSecretVolume added in v6.41.0

type GetFunctionServiceConfigSecretVolume struct {
	MountPath string                                        `pulumi:"mountPath"`
	ProjectId string                                        `pulumi:"projectId"`
	Secret    string                                        `pulumi:"secret"`
	Versions  []GetFunctionServiceConfigSecretVolumeVersion `pulumi:"versions"`
}

type GetFunctionServiceConfigSecretVolumeArgs added in v6.41.0

type GetFunctionServiceConfigSecretVolumeArgs struct {
	MountPath pulumi.StringInput                                    `pulumi:"mountPath"`
	ProjectId pulumi.StringInput                                    `pulumi:"projectId"`
	Secret    pulumi.StringInput                                    `pulumi:"secret"`
	Versions  GetFunctionServiceConfigSecretVolumeVersionArrayInput `pulumi:"versions"`
}

func (GetFunctionServiceConfigSecretVolumeArgs) ElementType added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeArgs) ToGetFunctionServiceConfigSecretVolumeOutput added in v6.41.0

func (i GetFunctionServiceConfigSecretVolumeArgs) ToGetFunctionServiceConfigSecretVolumeOutput() GetFunctionServiceConfigSecretVolumeOutput

func (GetFunctionServiceConfigSecretVolumeArgs) ToGetFunctionServiceConfigSecretVolumeOutputWithContext added in v6.41.0

func (i GetFunctionServiceConfigSecretVolumeArgs) ToGetFunctionServiceConfigSecretVolumeOutputWithContext(ctx context.Context) GetFunctionServiceConfigSecretVolumeOutput

func (GetFunctionServiceConfigSecretVolumeArgs) ToOutput added in v6.65.1

type GetFunctionServiceConfigSecretVolumeArray added in v6.41.0

type GetFunctionServiceConfigSecretVolumeArray []GetFunctionServiceConfigSecretVolumeInput

func (GetFunctionServiceConfigSecretVolumeArray) ElementType added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeArray) ToGetFunctionServiceConfigSecretVolumeArrayOutput added in v6.41.0

func (i GetFunctionServiceConfigSecretVolumeArray) ToGetFunctionServiceConfigSecretVolumeArrayOutput() GetFunctionServiceConfigSecretVolumeArrayOutput

func (GetFunctionServiceConfigSecretVolumeArray) ToGetFunctionServiceConfigSecretVolumeArrayOutputWithContext added in v6.41.0

func (i GetFunctionServiceConfigSecretVolumeArray) ToGetFunctionServiceConfigSecretVolumeArrayOutputWithContext(ctx context.Context) GetFunctionServiceConfigSecretVolumeArrayOutput

func (GetFunctionServiceConfigSecretVolumeArray) ToOutput added in v6.65.1

type GetFunctionServiceConfigSecretVolumeArrayInput added in v6.41.0

type GetFunctionServiceConfigSecretVolumeArrayInput interface {
	pulumi.Input

	ToGetFunctionServiceConfigSecretVolumeArrayOutput() GetFunctionServiceConfigSecretVolumeArrayOutput
	ToGetFunctionServiceConfigSecretVolumeArrayOutputWithContext(context.Context) GetFunctionServiceConfigSecretVolumeArrayOutput
}

GetFunctionServiceConfigSecretVolumeArrayInput is an input type that accepts GetFunctionServiceConfigSecretVolumeArray and GetFunctionServiceConfigSecretVolumeArrayOutput values. You can construct a concrete instance of `GetFunctionServiceConfigSecretVolumeArrayInput` via:

GetFunctionServiceConfigSecretVolumeArray{ GetFunctionServiceConfigSecretVolumeArgs{...} }

type GetFunctionServiceConfigSecretVolumeArrayOutput added in v6.41.0

type GetFunctionServiceConfigSecretVolumeArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionServiceConfigSecretVolumeArrayOutput) ElementType added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeArrayOutput) Index added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeArrayOutput) ToGetFunctionServiceConfigSecretVolumeArrayOutput added in v6.41.0

func (o GetFunctionServiceConfigSecretVolumeArrayOutput) ToGetFunctionServiceConfigSecretVolumeArrayOutput() GetFunctionServiceConfigSecretVolumeArrayOutput

func (GetFunctionServiceConfigSecretVolumeArrayOutput) ToGetFunctionServiceConfigSecretVolumeArrayOutputWithContext added in v6.41.0

func (o GetFunctionServiceConfigSecretVolumeArrayOutput) ToGetFunctionServiceConfigSecretVolumeArrayOutputWithContext(ctx context.Context) GetFunctionServiceConfigSecretVolumeArrayOutput

func (GetFunctionServiceConfigSecretVolumeArrayOutput) ToOutput added in v6.65.1

type GetFunctionServiceConfigSecretVolumeInput added in v6.41.0

type GetFunctionServiceConfigSecretVolumeInput interface {
	pulumi.Input

	ToGetFunctionServiceConfigSecretVolumeOutput() GetFunctionServiceConfigSecretVolumeOutput
	ToGetFunctionServiceConfigSecretVolumeOutputWithContext(context.Context) GetFunctionServiceConfigSecretVolumeOutput
}

GetFunctionServiceConfigSecretVolumeInput is an input type that accepts GetFunctionServiceConfigSecretVolumeArgs and GetFunctionServiceConfigSecretVolumeOutput values. You can construct a concrete instance of `GetFunctionServiceConfigSecretVolumeInput` via:

GetFunctionServiceConfigSecretVolumeArgs{...}

type GetFunctionServiceConfigSecretVolumeOutput added in v6.41.0

type GetFunctionServiceConfigSecretVolumeOutput struct{ *pulumi.OutputState }

func (GetFunctionServiceConfigSecretVolumeOutput) ElementType added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeOutput) MountPath added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeOutput) ProjectId added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeOutput) Secret added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeOutput) ToGetFunctionServiceConfigSecretVolumeOutput added in v6.41.0

func (o GetFunctionServiceConfigSecretVolumeOutput) ToGetFunctionServiceConfigSecretVolumeOutput() GetFunctionServiceConfigSecretVolumeOutput

func (GetFunctionServiceConfigSecretVolumeOutput) ToGetFunctionServiceConfigSecretVolumeOutputWithContext added in v6.41.0

func (o GetFunctionServiceConfigSecretVolumeOutput) ToGetFunctionServiceConfigSecretVolumeOutputWithContext(ctx context.Context) GetFunctionServiceConfigSecretVolumeOutput

func (GetFunctionServiceConfigSecretVolumeOutput) ToOutput added in v6.65.1

func (GetFunctionServiceConfigSecretVolumeOutput) Versions added in v6.41.0

type GetFunctionServiceConfigSecretVolumeVersion added in v6.41.0

type GetFunctionServiceConfigSecretVolumeVersion struct {
	Path    string `pulumi:"path"`
	Version string `pulumi:"version"`
}

type GetFunctionServiceConfigSecretVolumeVersionArgs added in v6.41.0

type GetFunctionServiceConfigSecretVolumeVersionArgs struct {
	Path    pulumi.StringInput `pulumi:"path"`
	Version pulumi.StringInput `pulumi:"version"`
}

func (GetFunctionServiceConfigSecretVolumeVersionArgs) ElementType added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeVersionArgs) ToGetFunctionServiceConfigSecretVolumeVersionOutput added in v6.41.0

func (i GetFunctionServiceConfigSecretVolumeVersionArgs) ToGetFunctionServiceConfigSecretVolumeVersionOutput() GetFunctionServiceConfigSecretVolumeVersionOutput

func (GetFunctionServiceConfigSecretVolumeVersionArgs) ToGetFunctionServiceConfigSecretVolumeVersionOutputWithContext added in v6.41.0

func (i GetFunctionServiceConfigSecretVolumeVersionArgs) ToGetFunctionServiceConfigSecretVolumeVersionOutputWithContext(ctx context.Context) GetFunctionServiceConfigSecretVolumeVersionOutput

func (GetFunctionServiceConfigSecretVolumeVersionArgs) ToOutput added in v6.65.1

type GetFunctionServiceConfigSecretVolumeVersionArray added in v6.41.0

type GetFunctionServiceConfigSecretVolumeVersionArray []GetFunctionServiceConfigSecretVolumeVersionInput

func (GetFunctionServiceConfigSecretVolumeVersionArray) ElementType added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeVersionArray) ToGetFunctionServiceConfigSecretVolumeVersionArrayOutput added in v6.41.0

func (i GetFunctionServiceConfigSecretVolumeVersionArray) ToGetFunctionServiceConfigSecretVolumeVersionArrayOutput() GetFunctionServiceConfigSecretVolumeVersionArrayOutput

func (GetFunctionServiceConfigSecretVolumeVersionArray) ToGetFunctionServiceConfigSecretVolumeVersionArrayOutputWithContext added in v6.41.0

func (i GetFunctionServiceConfigSecretVolumeVersionArray) ToGetFunctionServiceConfigSecretVolumeVersionArrayOutputWithContext(ctx context.Context) GetFunctionServiceConfigSecretVolumeVersionArrayOutput

func (GetFunctionServiceConfigSecretVolumeVersionArray) ToOutput added in v6.65.1

type GetFunctionServiceConfigSecretVolumeVersionArrayInput added in v6.41.0

type GetFunctionServiceConfigSecretVolumeVersionArrayInput interface {
	pulumi.Input

	ToGetFunctionServiceConfigSecretVolumeVersionArrayOutput() GetFunctionServiceConfigSecretVolumeVersionArrayOutput
	ToGetFunctionServiceConfigSecretVolumeVersionArrayOutputWithContext(context.Context) GetFunctionServiceConfigSecretVolumeVersionArrayOutput
}

GetFunctionServiceConfigSecretVolumeVersionArrayInput is an input type that accepts GetFunctionServiceConfigSecretVolumeVersionArray and GetFunctionServiceConfigSecretVolumeVersionArrayOutput values. You can construct a concrete instance of `GetFunctionServiceConfigSecretVolumeVersionArrayInput` via:

GetFunctionServiceConfigSecretVolumeVersionArray{ GetFunctionServiceConfigSecretVolumeVersionArgs{...} }

type GetFunctionServiceConfigSecretVolumeVersionArrayOutput added in v6.41.0

type GetFunctionServiceConfigSecretVolumeVersionArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionServiceConfigSecretVolumeVersionArrayOutput) ElementType added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeVersionArrayOutput) Index added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeVersionArrayOutput) ToGetFunctionServiceConfigSecretVolumeVersionArrayOutput added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeVersionArrayOutput) ToGetFunctionServiceConfigSecretVolumeVersionArrayOutputWithContext added in v6.41.0

func (o GetFunctionServiceConfigSecretVolumeVersionArrayOutput) ToGetFunctionServiceConfigSecretVolumeVersionArrayOutputWithContext(ctx context.Context) GetFunctionServiceConfigSecretVolumeVersionArrayOutput

func (GetFunctionServiceConfigSecretVolumeVersionArrayOutput) ToOutput added in v6.65.1

type GetFunctionServiceConfigSecretVolumeVersionInput added in v6.41.0

type GetFunctionServiceConfigSecretVolumeVersionInput interface {
	pulumi.Input

	ToGetFunctionServiceConfigSecretVolumeVersionOutput() GetFunctionServiceConfigSecretVolumeVersionOutput
	ToGetFunctionServiceConfigSecretVolumeVersionOutputWithContext(context.Context) GetFunctionServiceConfigSecretVolumeVersionOutput
}

GetFunctionServiceConfigSecretVolumeVersionInput is an input type that accepts GetFunctionServiceConfigSecretVolumeVersionArgs and GetFunctionServiceConfigSecretVolumeVersionOutput values. You can construct a concrete instance of `GetFunctionServiceConfigSecretVolumeVersionInput` via:

GetFunctionServiceConfigSecretVolumeVersionArgs{...}

type GetFunctionServiceConfigSecretVolumeVersionOutput added in v6.41.0

type GetFunctionServiceConfigSecretVolumeVersionOutput struct{ *pulumi.OutputState }

func (GetFunctionServiceConfigSecretVolumeVersionOutput) ElementType added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeVersionOutput) Path added in v6.41.0

func (GetFunctionServiceConfigSecretVolumeVersionOutput) ToGetFunctionServiceConfigSecretVolumeVersionOutput added in v6.41.0

func (o GetFunctionServiceConfigSecretVolumeVersionOutput) ToGetFunctionServiceConfigSecretVolumeVersionOutput() GetFunctionServiceConfigSecretVolumeVersionOutput

func (GetFunctionServiceConfigSecretVolumeVersionOutput) ToGetFunctionServiceConfigSecretVolumeVersionOutputWithContext added in v6.41.0

func (o GetFunctionServiceConfigSecretVolumeVersionOutput) ToGetFunctionServiceConfigSecretVolumeVersionOutputWithContext(ctx context.Context) GetFunctionServiceConfigSecretVolumeVersionOutput

func (GetFunctionServiceConfigSecretVolumeVersionOutput) ToOutput added in v6.65.1

func (GetFunctionServiceConfigSecretVolumeVersionOutput) Version added in v6.41.0

type LookupFunctionArgs added in v6.41.0

type LookupFunctionArgs struct {
	// The location in which the resource belongs.
	//
	// ***
	Location string `pulumi:"location"`
	// The name of a Cloud Function (2nd gen).
	Name string `pulumi:"name"`
	// The project in which the resource belongs. If it
	// is not provided, the provider project is used.
	Project *string `pulumi:"project"`
}

A collection of arguments for invoking getFunction.

type LookupFunctionIamPolicyArgs added in v6.59.0

type LookupFunctionIamPolicyArgs struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction string `pulumi:"cloudFunction"`
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location *string `pulumi:"location"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	Project *string `pulumi:"project"`
}

A collection of arguments for invoking getFunctionIamPolicy.

type LookupFunctionIamPolicyOutputArgs added in v6.59.0

type LookupFunctionIamPolicyOutputArgs struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringInput `pulumi:"cloudFunction"`
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringPtrInput `pulumi:"location"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	Project pulumi.StringPtrInput `pulumi:"project"`
}

A collection of arguments for invoking getFunctionIamPolicy.

func (LookupFunctionIamPolicyOutputArgs) ElementType added in v6.59.0

type LookupFunctionIamPolicyResult added in v6.59.0

type LookupFunctionIamPolicyResult struct {
	CloudFunction string `pulumi:"cloudFunction"`
	// (Computed) The etag of the IAM policy.
	Etag string `pulumi:"etag"`
	// The provider-assigned unique ID for this managed resource.
	Id       string `pulumi:"id"`
	Location string `pulumi:"location"`
	// (Required only by `cloudfunctionsv2.FunctionIamPolicy`) The policy data generated by
	// a `organizations.getIAMPolicy` data source.
	PolicyData string `pulumi:"policyData"`
	Project    string `pulumi:"project"`
}

A collection of values returned by getFunctionIamPolicy.

func LookupFunctionIamPolicy added in v6.59.0

func LookupFunctionIamPolicy(ctx *pulumi.Context, args *LookupFunctionIamPolicyArgs, opts ...pulumi.InvokeOption) (*LookupFunctionIamPolicyResult, error)

Retrieves the current IAM policy data for function

## example

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctionsv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctionsv2.LookupFunctionIamPolicy(ctx, &cloudfunctionsv2.LookupFunctionIamPolicyArgs{
			Project:       pulumi.StringRef(google_cloudfunctions2_function.Function.Project),
			Location:      pulumi.StringRef(google_cloudfunctions2_function.Function.Location),
			CloudFunction: google_cloudfunctions2_function.Function.Name,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupFunctionIamPolicyResultOutput added in v6.59.0

type LookupFunctionIamPolicyResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFunctionIamPolicy.

func LookupFunctionIamPolicyOutput added in v6.59.0

func (LookupFunctionIamPolicyResultOutput) CloudFunction added in v6.59.0

func (LookupFunctionIamPolicyResultOutput) ElementType added in v6.59.0

func (LookupFunctionIamPolicyResultOutput) Etag added in v6.59.0

(Computed) The etag of the IAM policy.

func (LookupFunctionIamPolicyResultOutput) Id added in v6.59.0

The provider-assigned unique ID for this managed resource.

func (LookupFunctionIamPolicyResultOutput) Location added in v6.59.0

func (LookupFunctionIamPolicyResultOutput) PolicyData added in v6.59.0

(Required only by `cloudfunctionsv2.FunctionIamPolicy`) The policy data generated by a `organizations.getIAMPolicy` data source.

func (LookupFunctionIamPolicyResultOutput) Project added in v6.59.0

func (LookupFunctionIamPolicyResultOutput) ToLookupFunctionIamPolicyResultOutput added in v6.59.0

func (o LookupFunctionIamPolicyResultOutput) ToLookupFunctionIamPolicyResultOutput() LookupFunctionIamPolicyResultOutput

func (LookupFunctionIamPolicyResultOutput) ToLookupFunctionIamPolicyResultOutputWithContext added in v6.59.0

func (o LookupFunctionIamPolicyResultOutput) ToLookupFunctionIamPolicyResultOutputWithContext(ctx context.Context) LookupFunctionIamPolicyResultOutput

func (LookupFunctionIamPolicyResultOutput) ToOutput added in v6.65.1

type LookupFunctionOutputArgs added in v6.41.0

type LookupFunctionOutputArgs struct {
	// The location in which the resource belongs.
	//
	// ***
	Location pulumi.StringInput `pulumi:"location"`
	// The name of a Cloud Function (2nd gen).
	Name pulumi.StringInput `pulumi:"name"`
	// The project in which the resource belongs. If it
	// is not provided, the provider project is used.
	Project pulumi.StringPtrInput `pulumi:"project"`
}

A collection of arguments for invoking getFunction.

func (LookupFunctionOutputArgs) ElementType added in v6.41.0

func (LookupFunctionOutputArgs) ElementType() reflect.Type

type LookupFunctionResult added in v6.41.0

type LookupFunctionResult struct {
	BuildConfigs  []GetFunctionBuildConfig  `pulumi:"buildConfigs"`
	Description   string                    `pulumi:"description"`
	Environment   string                    `pulumi:"environment"`
	EventTriggers []GetFunctionEventTrigger `pulumi:"eventTriggers"`
	// The provider-assigned unique ID for this managed resource.
	Id             string                     `pulumi:"id"`
	KmsKeyName     string                     `pulumi:"kmsKeyName"`
	Labels         map[string]string          `pulumi:"labels"`
	Location       string                     `pulumi:"location"`
	Name           string                     `pulumi:"name"`
	Project        *string                    `pulumi:"project"`
	ServiceConfigs []GetFunctionServiceConfig `pulumi:"serviceConfigs"`
	State          string                     `pulumi:"state"`
	UpdateTime     string                     `pulumi:"updateTime"`
	Url            string                     `pulumi:"url"`
}

A collection of values returned by getFunction.

func LookupFunction added in v6.41.0

func LookupFunction(ctx *pulumi.Context, args *LookupFunctionArgs, opts ...pulumi.InvokeOption) (*LookupFunctionResult, error)

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

* [API documentation](https://cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctionsv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctionsv2.LookupFunction(ctx, &cloudfunctionsv2.LookupFunctionArgs{
			Location: "us-central1",
			Name:     "function",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupFunctionResultOutput added in v6.41.0

type LookupFunctionResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFunction.

func LookupFunctionOutput added in v6.41.0

func LookupFunctionOutput(ctx *pulumi.Context, args LookupFunctionOutputArgs, opts ...pulumi.InvokeOption) LookupFunctionResultOutput

func (LookupFunctionResultOutput) BuildConfigs added in v6.41.0

func (LookupFunctionResultOutput) Description added in v6.41.0

func (LookupFunctionResultOutput) ElementType added in v6.41.0

func (LookupFunctionResultOutput) ElementType() reflect.Type

func (LookupFunctionResultOutput) Environment added in v6.41.0

func (LookupFunctionResultOutput) EventTriggers added in v6.41.0

func (LookupFunctionResultOutput) Id added in v6.41.0

The provider-assigned unique ID for this managed resource.

func (LookupFunctionResultOutput) KmsKeyName added in v6.64.0

func (LookupFunctionResultOutput) Labels added in v6.41.0

func (LookupFunctionResultOutput) Location added in v6.41.0

func (LookupFunctionResultOutput) Name added in v6.41.0

func (LookupFunctionResultOutput) Project added in v6.41.0

func (LookupFunctionResultOutput) ServiceConfigs added in v6.41.0

func (LookupFunctionResultOutput) State added in v6.41.0

func (LookupFunctionResultOutput) ToLookupFunctionResultOutput added in v6.41.0

func (o LookupFunctionResultOutput) ToLookupFunctionResultOutput() LookupFunctionResultOutput

func (LookupFunctionResultOutput) ToLookupFunctionResultOutputWithContext added in v6.41.0

func (o LookupFunctionResultOutput) ToLookupFunctionResultOutputWithContext(ctx context.Context) LookupFunctionResultOutput

func (LookupFunctionResultOutput) ToOutput added in v6.65.1

func (LookupFunctionResultOutput) UpdateTime added in v6.41.0

func (LookupFunctionResultOutput) Url added in v6.59.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL