cloudfunctions

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: 0

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

	// Memory (in MB), available to the function. Default value is `256`. Possible values include `128`, `256`, `512`, `1024`, etc.
	AvailableMemoryMb pulumi.IntPtrOutput `pulumi:"availableMemoryMb"`
	// A set of key/value environment variable pairs available during build time.
	BuildEnvironmentVariables pulumi.MapOutput `pulumi:"buildEnvironmentVariables"`
	// Name of the Cloud Build Custom Worker Pool that should be used to build the function.
	BuildWorkerPool pulumi.StringPtrOutput `pulumi:"buildWorkerPool"`
	// Description of the function.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Docker Registry to use for storing the function's Docker images. Allowed values are CONTAINER_REGISTRY (default) and ARTIFACT_REGISTRY.
	DockerRegistry pulumi.StringOutput `pulumi:"dockerRegistry"`
	// User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, Container Registry will be used by default, unless specified otherwise by other means.
	DockerRepository pulumi.StringPtrOutput `pulumi:"dockerRepository"`
	// Name of the function that will be executed when the Google Cloud Function is triggered.
	EntryPoint pulumi.StringPtrOutput `pulumi:"entryPoint"`
	// A set of key/value environment variable pairs to assign to the function.
	EnvironmentVariables pulumi.MapOutput `pulumi:"environmentVariables"`
	// A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with `triggerHttp`.
	EventTrigger FunctionEventTriggerOutput `pulumi:"eventTrigger"`
	// The security level for the function. The following options are available:
	HttpsTriggerSecurityLevel pulumi.StringOutput `pulumi:"httpsTriggerSecurityLevel"`
	// URL which triggers function execution. Returned only if `triggerHttp` is used.
	HttpsTriggerUrl pulumi.StringOutput `pulumi:"httpsTriggerUrl"`
	// String value that controls what traffic can reach the function. Allowed values are `ALLOW_ALL`, `ALLOW_INTERNAL_AND_GCLB` and `ALLOW_INTERNAL_ONLY`. Check [ingress documentation](https://cloud.google.com/functions/docs/networking/network-settings#ingress_settings) to see the impact of each settings value. Changes to this field will recreate the cloud function.
	IngressSettings pulumi.StringPtrOutput `pulumi:"ingressSettings"`
	// 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}`.
	// If specified, you must also provide an artifact registry repository using the `dockerRepository` field that was created with the same KMS crypto key. Before deploying, please complete all pre-requisites described in https://cloud.google.com/functions/docs/securing/cmek#granting_service_accounts_access_to_the_key
	KmsKeyName pulumi.StringPtrOutput `pulumi:"kmsKeyName"`
	// A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
	Labels pulumi.MapOutput `pulumi:"labels"`
	// The limit on the maximum number of function instances that may coexist at a given time.
	MaxInstances pulumi.IntOutput `pulumi:"maxInstances"`
	// The limit on the minimum number of function instances that may coexist at a given time.
	MinInstances pulumi.IntPtrOutput `pulumi:"minInstances"`
	// A user-defined name of the function. Function names must be unique globally.
	Name pulumi.StringOutput `pulumi:"name"`
	// Project of the function. If it is not provided, the provider project is used.
	Project pulumi.StringOutput `pulumi:"project"`
	// Region of function. If it is not provided, the provider region is used.
	Region pulumi.StringOutput `pulumi:"region"`
	// The runtime in which the function is going to run.
	// Eg. `"nodejs16"`, `"python39"`, `"dotnet3"`, `"go116"`, `"java11"`, `"ruby30"`, `"php74"`, etc. Check the [official doc](https://cloud.google.com/functions/docs/concepts/exec#runtimes) for the up-to-date list.
	//
	// ***
	Runtime pulumi.StringOutput `pulumi:"runtime"`
	// Secret environment variables configuration. Structure is documented below.
	SecretEnvironmentVariables FunctionSecretEnvironmentVariableArrayOutput `pulumi:"secretEnvironmentVariables"`
	// Secret volumes configuration. Structure is documented below.
	SecretVolumes FunctionSecretVolumeArrayOutput `pulumi:"secretVolumes"`
	// If provided, the self-provided service account to run the function with.
	ServiceAccountEmail pulumi.StringOutput `pulumi:"serviceAccountEmail"`
	// The GCS bucket containing the zip archive which contains the function.
	SourceArchiveBucket pulumi.StringPtrOutput `pulumi:"sourceArchiveBucket"`
	// The source archive object (file) in archive bucket.
	SourceArchiveObject pulumi.StringPtrOutput `pulumi:"sourceArchiveObject"`
	// Represents parameters related to source repository where a function is hosted.
	// Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`.*
	SourceRepository FunctionSourceRepositoryPtrOutput `pulumi:"sourceRepository"`
	// Describes the current stage of a deployment.
	Status pulumi.StringOutput `pulumi:"status"`
	// Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.
	Timeout pulumi.IntPtrOutput `pulumi:"timeout"`
	// Boolean variable. Any HTTP request (of a supported type) to the endpoint will trigger function execution. Supported HTTP request types are: POST, PUT, GET, DELETE, and OPTIONS. Endpoint is returned as `httpsTriggerUrl`. Cannot be used with `eventTrigger`.
	TriggerHttp pulumi.BoolPtrOutput `pulumi:"triggerHttp"`
	// The VPC Network Connector that this cloud function can connect to. It should be set up as fully-qualified URI. The format of this field is `projects/*/locations/*/connectors/*`.
	VpcConnector pulumi.StringPtrOutput `pulumi:"vpcConnector"`
	// The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are `ALL_TRAFFIC` and `PRIVATE_RANGES_ONLY`. Defaults to `PRIVATE_RANGES_ONLY`. If unset, this field preserves the previously set value.
	VpcConnectorEgressSettings pulumi.StringOutput `pulumi:"vpcConnectorEgressSettings"`
}

Creates a new Cloud Function. For more information see:

* [API documentation](https://cloud.google.com/functions/docs/reference/rest/v1/projects.locations.functions) * How-to Guides

> **Warning:** As of November 1, 2019, newly created Functions are private-by-default and will require [appropriate IAM permissions](https://cloud.google.com/functions/docs/reference/iam/roles) to be invoked. See below examples for how to set up the appropriate permissions, or view the [Cloud Functions IAM resources](https://www.terraform.io/docs/providers/google/r/cloudfunctions_cloud_function_iam.html) for Cloud Functions.

## Example Usage ### Public Function

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions"
"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 {
		bucket, err := storage.NewBucket(ctx, "bucket", &storage.BucketArgs{
			Location: pulumi.String("US"),
		})
		if err != nil {
			return err
		}
		archive, err := storage.NewBucketObject(ctx, "archive", &storage.BucketObjectArgs{
			Bucket: bucket.Name,
			Source: pulumi.NewFileAsset("./path/to/zip/file/which/contains/code"),
		})
		if err != nil {
			return err
		}
		function, err := cloudfunctions.NewFunction(ctx, "function", &cloudfunctions.FunctionArgs{
			Description:         pulumi.String("My function"),
			Runtime:             pulumi.String("nodejs16"),
			AvailableMemoryMb:   pulumi.Int(128),
			SourceArchiveBucket: bucket.Name,
			SourceArchiveObject: archive.Name,
			TriggerHttp:         pulumi.Bool(true),
			EntryPoint:          pulumi.String("helloGET"),
		})
		if err != nil {
			return err
		}
		_, err = cloudfunctions.NewFunctionIamMember(ctx, "invoker", &cloudfunctions.FunctionIamMemberArgs{
			Project:       function.Project,
			Region:        function.Region,
			CloudFunction: function.Name,
			Role:          pulumi.String("roles/cloudfunctions.invoker"),
			Member:        pulumi.String("allUsers"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Single User

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions"
"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 {
		bucket, err := storage.NewBucket(ctx, "bucket", &storage.BucketArgs{
			Location: pulumi.String("US"),
		})
		if err != nil {
			return err
		}
		archive, err := storage.NewBucketObject(ctx, "archive", &storage.BucketObjectArgs{
			Bucket: bucket.Name,
			Source: pulumi.NewFileAsset("./path/to/zip/file/which/contains/code"),
		})
		if err != nil {
			return err
		}
		function, err := cloudfunctions.NewFunction(ctx, "function", &cloudfunctions.FunctionArgs{
			Description:               pulumi.String("My function"),
			Runtime:                   pulumi.String("nodejs16"),
			AvailableMemoryMb:         pulumi.Int(128),
			SourceArchiveBucket:       bucket.Name,
			SourceArchiveObject:       archive.Name,
			TriggerHttp:               pulumi.Bool(true),
			HttpsTriggerSecurityLevel: pulumi.String("SECURE_ALWAYS"),
			Timeout:                   pulumi.Int(60),
			EntryPoint:                pulumi.String("helloGET"),
			Labels: pulumi.Map{
				"my-label": pulumi.Any("my-label-value"),
			},
			EnvironmentVariables: pulumi.Map{
				"MY_ENV_VAR": pulumi.Any("my-env-var-value"),
			},
		})
		if err != nil {
			return err
		}
		_, err = cloudfunctions.NewFunctionIamMember(ctx, "invoker", &cloudfunctions.FunctionIamMemberArgs{
			Project:       function.Project,
			Region:        function.Region,
			CloudFunction: function.Name,
			Role:          pulumi.String("roles/cloudfunctions.invoker"),
			Member:        pulumi.String("user:myFunctionInvoker@example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Functions can be imported using the `name` or `{{project}}/{{region}}/name`, e.g.

```sh

$ pulumi import gcp:cloudfunctions/function:Function default function-test

```

```sh

$ pulumi import gcp:cloudfunctions/function:Function default {{project}}/{{region}}/function-test

```

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 {
	// Memory (in MB), available to the function. Default value is `256`. Possible values include `128`, `256`, `512`, `1024`, etc.
	AvailableMemoryMb pulumi.IntPtrInput
	// A set of key/value environment variable pairs available during build time.
	BuildEnvironmentVariables pulumi.MapInput
	// Name of the Cloud Build Custom Worker Pool that should be used to build the function.
	BuildWorkerPool pulumi.StringPtrInput
	// Description of the function.
	Description pulumi.StringPtrInput
	// Docker Registry to use for storing the function's Docker images. Allowed values are CONTAINER_REGISTRY (default) and ARTIFACT_REGISTRY.
	DockerRegistry pulumi.StringPtrInput
	// User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, Container Registry will be used by default, unless specified otherwise by other means.
	DockerRepository pulumi.StringPtrInput
	// Name of the function that will be executed when the Google Cloud Function is triggered.
	EntryPoint pulumi.StringPtrInput
	// A set of key/value environment variable pairs to assign to the function.
	EnvironmentVariables pulumi.MapInput
	// A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with `triggerHttp`.
	EventTrigger FunctionEventTriggerPtrInput
	// The security level for the function. The following options are available:
	HttpsTriggerSecurityLevel pulumi.StringPtrInput
	// URL which triggers function execution. Returned only if `triggerHttp` is used.
	HttpsTriggerUrl pulumi.StringPtrInput
	// String value that controls what traffic can reach the function. Allowed values are `ALLOW_ALL`, `ALLOW_INTERNAL_AND_GCLB` and `ALLOW_INTERNAL_ONLY`. Check [ingress documentation](https://cloud.google.com/functions/docs/networking/network-settings#ingress_settings) to see the impact of each settings value. Changes to this field will recreate the cloud function.
	IngressSettings pulumi.StringPtrInput
	// 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}`.
	// If specified, you must also provide an artifact registry repository using the `dockerRepository` field that was created with the same KMS crypto key. Before deploying, please complete all pre-requisites described in https://cloud.google.com/functions/docs/securing/cmek#granting_service_accounts_access_to_the_key
	KmsKeyName pulumi.StringPtrInput
	// A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
	Labels pulumi.MapInput
	// The limit on the maximum number of function instances that may coexist at a given time.
	MaxInstances pulumi.IntPtrInput
	// The limit on the minimum number of function instances that may coexist at a given time.
	MinInstances pulumi.IntPtrInput
	// A user-defined name of the function. Function names must be unique globally.
	Name pulumi.StringPtrInput
	// Project of the function. If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// Region of function. If it is not provided, the provider region is used.
	Region pulumi.StringPtrInput
	// The runtime in which the function is going to run.
	// Eg. `"nodejs16"`, `"python39"`, `"dotnet3"`, `"go116"`, `"java11"`, `"ruby30"`, `"php74"`, etc. Check the [official doc](https://cloud.google.com/functions/docs/concepts/exec#runtimes) for the up-to-date list.
	//
	// ***
	Runtime pulumi.StringInput
	// Secret environment variables configuration. Structure is documented below.
	SecretEnvironmentVariables FunctionSecretEnvironmentVariableArrayInput
	// Secret volumes configuration. Structure is documented below.
	SecretVolumes FunctionSecretVolumeArrayInput
	// If provided, the self-provided service account to run the function with.
	ServiceAccountEmail pulumi.StringPtrInput
	// The GCS bucket containing the zip archive which contains the function.
	SourceArchiveBucket pulumi.StringPtrInput
	// The source archive object (file) in archive bucket.
	SourceArchiveObject pulumi.StringPtrInput
	// Represents parameters related to source repository where a function is hosted.
	// Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`.*
	SourceRepository FunctionSourceRepositoryPtrInput
	// Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.
	Timeout pulumi.IntPtrInput
	// Boolean variable. Any HTTP request (of a supported type) to the endpoint will trigger function execution. Supported HTTP request types are: POST, PUT, GET, DELETE, and OPTIONS. Endpoint is returned as `httpsTriggerUrl`. Cannot be used with `eventTrigger`.
	TriggerHttp pulumi.BoolPtrInput
	// The VPC Network Connector that this cloud function can connect to. It should be set up as fully-qualified URI. The format of this field is `projects/*/locations/*/connectors/*`.
	VpcConnector pulumi.StringPtrInput
	// The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are `ALL_TRAFFIC` and `PRIVATE_RANGES_ONLY`. Defaults to `PRIVATE_RANGES_ONLY`. If unset, this field preserves the previously set value.
	VpcConnectorEgressSettings pulumi.StringPtrInput
}

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 FunctionEventTrigger

type FunctionEventTrigger struct {
	// The type of event to observe. For example: `"google.storage.object.finalize"`.
	// See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/) for a
	// full reference of accepted triggers.
	EventType string `pulumi:"eventType"`
	// Specifies policy for failed executions. Structure is documented below.
	FailurePolicy *FunctionEventTriggerFailurePolicy `pulumi:"failurePolicy"`
	// Required. The name or partial URI of the resource from
	// which to observe events. For example, `"myBucket"` or `"projects/my-project/topics/my-topic"`
	Resource string `pulumi:"resource"`
}

type FunctionEventTriggerArgs

type FunctionEventTriggerArgs struct {
	// The type of event to observe. For example: `"google.storage.object.finalize"`.
	// See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/) for a
	// full reference of accepted triggers.
	EventType pulumi.StringInput `pulumi:"eventType"`
	// Specifies policy for failed executions. Structure is documented below.
	FailurePolicy FunctionEventTriggerFailurePolicyPtrInput `pulumi:"failurePolicy"`
	// Required. The name or partial URI of the resource from
	// which to observe events. For example, `"myBucket"` or `"projects/my-project/topics/my-topic"`
	Resource pulumi.StringInput `pulumi:"resource"`
}

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 FunctionEventTriggerFailurePolicy

type FunctionEventTriggerFailurePolicy struct {
	// Whether the function should be retried on failure. Defaults to `false`.
	Retry bool `pulumi:"retry"`
}

type FunctionEventTriggerFailurePolicyArgs

type FunctionEventTriggerFailurePolicyArgs struct {
	// Whether the function should be retried on failure. Defaults to `false`.
	Retry pulumi.BoolInput `pulumi:"retry"`
}

func (FunctionEventTriggerFailurePolicyArgs) ElementType

func (FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyOutput

func (i FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyOutput() FunctionEventTriggerFailurePolicyOutput

func (FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyOutputWithContext

func (i FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyOutput

func (FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyPtrOutput

func (i FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyPtrOutput() FunctionEventTriggerFailurePolicyPtrOutput

func (FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext

func (i FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyPtrOutput

func (FunctionEventTriggerFailurePolicyArgs) ToOutput added in v6.65.1

type FunctionEventTriggerFailurePolicyInput

type FunctionEventTriggerFailurePolicyInput interface {
	pulumi.Input

	ToFunctionEventTriggerFailurePolicyOutput() FunctionEventTriggerFailurePolicyOutput
	ToFunctionEventTriggerFailurePolicyOutputWithContext(context.Context) FunctionEventTriggerFailurePolicyOutput
}

FunctionEventTriggerFailurePolicyInput is an input type that accepts FunctionEventTriggerFailurePolicyArgs and FunctionEventTriggerFailurePolicyOutput values. You can construct a concrete instance of `FunctionEventTriggerFailurePolicyInput` via:

FunctionEventTriggerFailurePolicyArgs{...}

type FunctionEventTriggerFailurePolicyOutput

type FunctionEventTriggerFailurePolicyOutput struct{ *pulumi.OutputState }

func (FunctionEventTriggerFailurePolicyOutput) ElementType

func (FunctionEventTriggerFailurePolicyOutput) Retry

Whether the function should be retried on failure. Defaults to `false`.

func (FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyOutput

func (o FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyOutput() FunctionEventTriggerFailurePolicyOutput

func (FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyOutputWithContext

func (o FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyOutput

func (FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyPtrOutput

func (o FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyPtrOutput() FunctionEventTriggerFailurePolicyPtrOutput

func (FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext

func (o FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyPtrOutput

func (FunctionEventTriggerFailurePolicyOutput) ToOutput added in v6.65.1

type FunctionEventTriggerFailurePolicyPtrInput

type FunctionEventTriggerFailurePolicyPtrInput interface {
	pulumi.Input

	ToFunctionEventTriggerFailurePolicyPtrOutput() FunctionEventTriggerFailurePolicyPtrOutput
	ToFunctionEventTriggerFailurePolicyPtrOutputWithContext(context.Context) FunctionEventTriggerFailurePolicyPtrOutput
}

FunctionEventTriggerFailurePolicyPtrInput is an input type that accepts FunctionEventTriggerFailurePolicyArgs, FunctionEventTriggerFailurePolicyPtr and FunctionEventTriggerFailurePolicyPtrOutput values. You can construct a concrete instance of `FunctionEventTriggerFailurePolicyPtrInput` via:

        FunctionEventTriggerFailurePolicyArgs{...}

or:

        nil

type FunctionEventTriggerFailurePolicyPtrOutput

type FunctionEventTriggerFailurePolicyPtrOutput struct{ *pulumi.OutputState }

func (FunctionEventTriggerFailurePolicyPtrOutput) Elem

func (FunctionEventTriggerFailurePolicyPtrOutput) ElementType

func (FunctionEventTriggerFailurePolicyPtrOutput) Retry

Whether the function should be retried on failure. Defaults to `false`.

func (FunctionEventTriggerFailurePolicyPtrOutput) ToFunctionEventTriggerFailurePolicyPtrOutput

func (o FunctionEventTriggerFailurePolicyPtrOutput) ToFunctionEventTriggerFailurePolicyPtrOutput() FunctionEventTriggerFailurePolicyPtrOutput

func (FunctionEventTriggerFailurePolicyPtrOutput) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext

func (o FunctionEventTriggerFailurePolicyPtrOutput) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyPtrOutput

func (FunctionEventTriggerFailurePolicyPtrOutput) ToOutput added in v6.65.1

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) EventType

The type of event to observe. For example: `"google.storage.object.finalize"`. See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/) for a full reference of accepted triggers.

func (FunctionEventTriggerOutput) FailurePolicy

Specifies policy for failed executions. Structure is documented below.

func (FunctionEventTriggerOutput) Resource

Required. The name or partial URI of the resource from which to observe events. For example, `"myBucket"` or `"projects/my-project/topics/my-topic"`

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

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) EventType

The type of event to observe. For example: `"google.storage.object.finalize"`. See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/) for a full reference of accepted triggers.

func (FunctionEventTriggerPtrOutput) FailurePolicy

Specifies policy for failed executions. Structure is documented below.

func (FunctionEventTriggerPtrOutput) Resource

Required. The name or partial URI of the resource from which to observe events. For example, `"myBucket"` or `"projects/my-project/topics/my-topic"`

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

type FunctionIamBinding

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"`
	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 location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified,
	// the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
	// region is specified, it is taken from the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// The role that should be applied. Only one
	// `cloudfunctions.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 CloudFunction. Each of these resources serves a different use case:

* `cloudfunctions.FunctionIamPolicy`: Authoritative. Sets the IAM policy for the cloudfunction and replaces any existing policy already attached. * `cloudfunctions.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 cloudfunction are preserved. * `cloudfunctions.FunctionIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the cloudfunction are preserved.

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

* `cloudfunctions.FunctionIamPolicy`: Retrieves the IAM policy for the cloudfunction

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

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

## google\_cloudfunctions\_function\_iam\_policy

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions"
"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 = cloudfunctions.NewFunctionIamPolicy(ctx, "policy", &cloudfunctions.FunctionIamPolicyArgs{
			Project:       pulumi.Any(google_cloudfunctions_function.Function.Project),
			Region:        pulumi.Any(google_cloudfunctions_function.Function.Region),
			CloudFunction: pulumi.Any(google_cloudfunctions_function.Function.Name),
			PolicyData:    *pulumi.String(admin.PolicyData),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudfunctions\_function\_iam\_binding

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctions.NewFunctionIamBinding(ctx, "binding", &cloudfunctions.FunctionIamBindingArgs{
			Project:       pulumi.Any(google_cloudfunctions_function.Function.Project),
			Region:        pulumi.Any(google_cloudfunctions_function.Function.Region),
			CloudFunction: pulumi.Any(google_cloudfunctions_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\_cloudfunctions\_function\_iam\_member

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctions.NewFunctionIamMember(ctx, "member", &cloudfunctions.FunctionIamMemberArgs{
			Project:       pulumi.Any(google_cloudfunctions_function.Function.Project),
			Region:        pulumi.Any(google_cloudfunctions_function.Function.Region),
			CloudFunction: pulumi.Any(google_cloudfunctions_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/{{region}}/functions/{{cloud_function}} * {{project}}/{{region}}/{{cloud_function}} * {{region}}/{{cloud_function}} * {{cloud_function}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Functions cloudfunction 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:cloudfunctions/functionIamBinding:FunctionIamBinding editor "projects/{{project}}/locations/{{region}}/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:cloudfunctions/functionIamBinding:FunctionIamBinding editor "projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} roles/viewer"

```

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

```sh

$ pulumi import gcp:cloudfunctions/functionIamBinding:FunctionIamBinding editor projects/{{project}}/locations/{{region}}/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

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

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

func (*FunctionIamBinding) ElementType() reflect.Type

func (*FunctionIamBinding) ToFunctionIamBindingOutput

func (i *FunctionIamBinding) ToFunctionIamBindingOutput() FunctionIamBindingOutput

func (*FunctionIamBinding) ToFunctionIamBindingOutputWithContext

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

func (*FunctionIamBinding) ToOutput added in v6.65.1

type FunctionIamBindingArgs

type FunctionIamBindingArgs struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringInput
	Condition     FunctionIamBindingConditionPtrInput
	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 location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified,
	// the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
	// region is specified, it is taken from the provider configuration.
	Region pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudfunctions.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

func (FunctionIamBindingArgs) ElementType() reflect.Type

type FunctionIamBindingArray

type FunctionIamBindingArray []FunctionIamBindingInput

func (FunctionIamBindingArray) ElementType

func (FunctionIamBindingArray) ElementType() reflect.Type

func (FunctionIamBindingArray) ToFunctionIamBindingArrayOutput

func (i FunctionIamBindingArray) ToFunctionIamBindingArrayOutput() FunctionIamBindingArrayOutput

func (FunctionIamBindingArray) ToFunctionIamBindingArrayOutputWithContext

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

func (FunctionIamBindingArray) ToOutput added in v6.65.1

type FunctionIamBindingArrayInput

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

type FunctionIamBindingArrayOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingArrayOutput) ElementType

func (FunctionIamBindingArrayOutput) Index

func (FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutput

func (o FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutput() FunctionIamBindingArrayOutput

func (FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutputWithContext

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

func (FunctionIamBindingArrayOutput) ToOutput added in v6.65.1

type FunctionIamBindingCondition

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

type FunctionIamBindingConditionArgs

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

func (FunctionIamBindingConditionArgs) ElementType

func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutput

func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutput() FunctionIamBindingConditionOutput

func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutputWithContext

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

func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutput

func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput

func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutputWithContext

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

func (FunctionIamBindingConditionArgs) ToOutput added in v6.65.1

type FunctionIamBindingConditionInput

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

type FunctionIamBindingConditionOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingConditionOutput) Description

func (FunctionIamBindingConditionOutput) ElementType

func (FunctionIamBindingConditionOutput) Expression

func (FunctionIamBindingConditionOutput) Title

func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutput

func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutput() FunctionIamBindingConditionOutput

func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutputWithContext

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

func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutput

func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput

func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutputWithContext

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

func (FunctionIamBindingConditionOutput) ToOutput added in v6.65.1

type FunctionIamBindingConditionPtrInput

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

type FunctionIamBindingConditionPtrOutput

type FunctionIamBindingConditionPtrOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingConditionPtrOutput) Description

func (FunctionIamBindingConditionPtrOutput) Elem

func (FunctionIamBindingConditionPtrOutput) ElementType

func (FunctionIamBindingConditionPtrOutput) Expression

func (FunctionIamBindingConditionPtrOutput) Title

func (FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutput

func (o FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput

func (FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutputWithContext

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

func (FunctionIamBindingConditionPtrOutput) ToOutput added in v6.65.1

type FunctionIamBindingInput

type FunctionIamBindingInput interface {
	pulumi.Input

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

type FunctionIamBindingMap

type FunctionIamBindingMap map[string]FunctionIamBindingInput

func (FunctionIamBindingMap) ElementType

func (FunctionIamBindingMap) ElementType() reflect.Type

func (FunctionIamBindingMap) ToFunctionIamBindingMapOutput

func (i FunctionIamBindingMap) ToFunctionIamBindingMapOutput() FunctionIamBindingMapOutput

func (FunctionIamBindingMap) ToFunctionIamBindingMapOutputWithContext

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

func (FunctionIamBindingMap) ToOutput added in v6.65.1

type FunctionIamBindingMapInput

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

type FunctionIamBindingMapOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingMapOutput) ElementType

func (FunctionIamBindingMapOutput) MapIndex

func (FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutput

func (o FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutput() FunctionIamBindingMapOutput

func (FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutputWithContext

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

func (FunctionIamBindingMapOutput) ToOutput added in v6.65.1

type FunctionIamBindingOutput

type FunctionIamBindingOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingOutput) CloudFunction added in v6.23.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.23.0

func (FunctionIamBindingOutput) ElementType

func (FunctionIamBindingOutput) ElementType() reflect.Type

func (FunctionIamBindingOutput) Etag added in v6.23.0

(Computed) The etag of the IAM policy.

func (FunctionIamBindingOutput) Members added in v6.23.0

func (FunctionIamBindingOutput) Project added in v6.23.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) Region added in v6.23.0

The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified, the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no region is specified, it is taken from the provider configuration.

func (FunctionIamBindingOutput) Role added in v6.23.0

The role that should be applied. Only one `cloudfunctions.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

func (o FunctionIamBindingOutput) ToFunctionIamBindingOutput() FunctionIamBindingOutput

func (FunctionIamBindingOutput) ToFunctionIamBindingOutputWithContext

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

func (FunctionIamBindingOutput) ToOutput added in v6.65.1

type FunctionIamBindingState

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
	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 location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified,
	// the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
	// region is specified, it is taken from the provider configuration.
	Region pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudfunctions.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

func (FunctionIamBindingState) ElementType() reflect.Type

type FunctionIamMember

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"`
	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 location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified,
	// the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
	// region is specified, it is taken from the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// The role that should be applied. Only one
	// `cloudfunctions.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 CloudFunction. Each of these resources serves a different use case:

* `cloudfunctions.FunctionIamPolicy`: Authoritative. Sets the IAM policy for the cloudfunction and replaces any existing policy already attached. * `cloudfunctions.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 cloudfunction are preserved. * `cloudfunctions.FunctionIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the cloudfunction are preserved.

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

* `cloudfunctions.FunctionIamPolicy`: Retrieves the IAM policy for the cloudfunction

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

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

## google\_cloudfunctions\_function\_iam\_policy

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions"
"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 = cloudfunctions.NewFunctionIamPolicy(ctx, "policy", &cloudfunctions.FunctionIamPolicyArgs{
			Project:       pulumi.Any(google_cloudfunctions_function.Function.Project),
			Region:        pulumi.Any(google_cloudfunctions_function.Function.Region),
			CloudFunction: pulumi.Any(google_cloudfunctions_function.Function.Name),
			PolicyData:    *pulumi.String(admin.PolicyData),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudfunctions\_function\_iam\_binding

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctions.NewFunctionIamBinding(ctx, "binding", &cloudfunctions.FunctionIamBindingArgs{
			Project:       pulumi.Any(google_cloudfunctions_function.Function.Project),
			Region:        pulumi.Any(google_cloudfunctions_function.Function.Region),
			CloudFunction: pulumi.Any(google_cloudfunctions_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\_cloudfunctions\_function\_iam\_member

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctions.NewFunctionIamMember(ctx, "member", &cloudfunctions.FunctionIamMemberArgs{
			Project:       pulumi.Any(google_cloudfunctions_function.Function.Project),
			Region:        pulumi.Any(google_cloudfunctions_function.Function.Region),
			CloudFunction: pulumi.Any(google_cloudfunctions_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/{{region}}/functions/{{cloud_function}} * {{project}}/{{region}}/{{cloud_function}} * {{region}}/{{cloud_function}} * {{cloud_function}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Functions cloudfunction 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:cloudfunctions/functionIamMember:FunctionIamMember editor "projects/{{project}}/locations/{{region}}/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:cloudfunctions/functionIamMember:FunctionIamMember editor "projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} roles/viewer"

```

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

```sh

$ pulumi import gcp:cloudfunctions/functionIamMember:FunctionIamMember editor projects/{{project}}/locations/{{region}}/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

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

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

func (*FunctionIamMember) ElementType() reflect.Type

func (*FunctionIamMember) ToFunctionIamMemberOutput

func (i *FunctionIamMember) ToFunctionIamMemberOutput() FunctionIamMemberOutput

func (*FunctionIamMember) ToFunctionIamMemberOutputWithContext

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

func (*FunctionIamMember) ToOutput added in v6.65.1

type FunctionIamMemberArgs

type FunctionIamMemberArgs struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringInput
	Condition     FunctionIamMemberConditionPtrInput
	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 location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified,
	// the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
	// region is specified, it is taken from the provider configuration.
	Region pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudfunctions.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

func (FunctionIamMemberArgs) ElementType() reflect.Type

type FunctionIamMemberArray

type FunctionIamMemberArray []FunctionIamMemberInput

func (FunctionIamMemberArray) ElementType

func (FunctionIamMemberArray) ElementType() reflect.Type

func (FunctionIamMemberArray) ToFunctionIamMemberArrayOutput

func (i FunctionIamMemberArray) ToFunctionIamMemberArrayOutput() FunctionIamMemberArrayOutput

func (FunctionIamMemberArray) ToFunctionIamMemberArrayOutputWithContext

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

func (FunctionIamMemberArray) ToOutput added in v6.65.1

type FunctionIamMemberArrayInput

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

type FunctionIamMemberArrayOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberArrayOutput) ElementType

func (FunctionIamMemberArrayOutput) Index

func (FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutput

func (o FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutput() FunctionIamMemberArrayOutput

func (FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutputWithContext

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

func (FunctionIamMemberArrayOutput) ToOutput added in v6.65.1

type FunctionIamMemberCondition

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

type FunctionIamMemberConditionArgs

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

func (FunctionIamMemberConditionArgs) ElementType

func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutput

func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutput() FunctionIamMemberConditionOutput

func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutputWithContext

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

func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutput

func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput

func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutputWithContext

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

func (FunctionIamMemberConditionArgs) ToOutput added in v6.65.1

type FunctionIamMemberConditionInput

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

type FunctionIamMemberConditionOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberConditionOutput) Description

func (FunctionIamMemberConditionOutput) ElementType

func (FunctionIamMemberConditionOutput) Expression

func (FunctionIamMemberConditionOutput) Title

func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutput

func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutput() FunctionIamMemberConditionOutput

func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutputWithContext

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

func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutput

func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput

func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutputWithContext

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

func (FunctionIamMemberConditionOutput) ToOutput added in v6.65.1

type FunctionIamMemberConditionPtrInput

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

type FunctionIamMemberConditionPtrOutput

type FunctionIamMemberConditionPtrOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberConditionPtrOutput) Description

func (FunctionIamMemberConditionPtrOutput) Elem

func (FunctionIamMemberConditionPtrOutput) ElementType

func (FunctionIamMemberConditionPtrOutput) Expression

func (FunctionIamMemberConditionPtrOutput) Title

func (FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutput

func (o FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput

func (FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutputWithContext

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

func (FunctionIamMemberConditionPtrOutput) ToOutput added in v6.65.1

type FunctionIamMemberInput

type FunctionIamMemberInput interface {
	pulumi.Input

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

type FunctionIamMemberMap

type FunctionIamMemberMap map[string]FunctionIamMemberInput

func (FunctionIamMemberMap) ElementType

func (FunctionIamMemberMap) ElementType() reflect.Type

func (FunctionIamMemberMap) ToFunctionIamMemberMapOutput

func (i FunctionIamMemberMap) ToFunctionIamMemberMapOutput() FunctionIamMemberMapOutput

func (FunctionIamMemberMap) ToFunctionIamMemberMapOutputWithContext

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

func (FunctionIamMemberMap) ToOutput added in v6.65.1

type FunctionIamMemberMapInput

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

type FunctionIamMemberMapOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberMapOutput) ElementType

func (FunctionIamMemberMapOutput) ElementType() reflect.Type

func (FunctionIamMemberMapOutput) MapIndex

func (FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutput

func (o FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutput() FunctionIamMemberMapOutput

func (FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutputWithContext

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

func (FunctionIamMemberMapOutput) ToOutput added in v6.65.1

type FunctionIamMemberOutput

type FunctionIamMemberOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberOutput) CloudFunction added in v6.23.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.23.0

func (FunctionIamMemberOutput) ElementType

func (FunctionIamMemberOutput) ElementType() reflect.Type

func (FunctionIamMemberOutput) Etag added in v6.23.0

(Computed) The etag of the IAM policy.

func (FunctionIamMemberOutput) Member added in v6.23.0

func (FunctionIamMemberOutput) Project added in v6.23.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) Region added in v6.23.0

The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified, the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no region is specified, it is taken from the provider configuration.

func (FunctionIamMemberOutput) Role added in v6.23.0

The role that should be applied. Only one `cloudfunctions.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

func (o FunctionIamMemberOutput) ToFunctionIamMemberOutput() FunctionIamMemberOutput

func (FunctionIamMemberOutput) ToFunctionIamMemberOutputWithContext

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

func (FunctionIamMemberOutput) ToOutput added in v6.65.1

type FunctionIamMemberState

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
	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 location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified,
	// the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
	// region is specified, it is taken from the provider configuration.
	Region pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudfunctions.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

func (FunctionIamMemberState) ElementType() reflect.Type

type FunctionIamPolicy

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 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"`
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified,
	// the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
	// region is specified, it is taken from the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
}

Three different resources help you manage your IAM policy for Cloud Functions CloudFunction. Each of these resources serves a different use case:

* `cloudfunctions.FunctionIamPolicy`: Authoritative. Sets the IAM policy for the cloudfunction and replaces any existing policy already attached. * `cloudfunctions.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 cloudfunction are preserved. * `cloudfunctions.FunctionIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the cloudfunction are preserved.

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

* `cloudfunctions.FunctionIamPolicy`: Retrieves the IAM policy for the cloudfunction

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

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

## google\_cloudfunctions\_function\_iam\_policy

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions"
"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 = cloudfunctions.NewFunctionIamPolicy(ctx, "policy", &cloudfunctions.FunctionIamPolicyArgs{
			Project:       pulumi.Any(google_cloudfunctions_function.Function.Project),
			Region:        pulumi.Any(google_cloudfunctions_function.Function.Region),
			CloudFunction: pulumi.Any(google_cloudfunctions_function.Function.Name),
			PolicyData:    *pulumi.String(admin.PolicyData),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudfunctions\_function\_iam\_binding

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctions.NewFunctionIamBinding(ctx, "binding", &cloudfunctions.FunctionIamBindingArgs{
			Project:       pulumi.Any(google_cloudfunctions_function.Function.Project),
			Region:        pulumi.Any(google_cloudfunctions_function.Function.Region),
			CloudFunction: pulumi.Any(google_cloudfunctions_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\_cloudfunctions\_function\_iam\_member

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctions.NewFunctionIamMember(ctx, "member", &cloudfunctions.FunctionIamMemberArgs{
			Project:       pulumi.Any(google_cloudfunctions_function.Function.Project),
			Region:        pulumi.Any(google_cloudfunctions_function.Function.Region),
			CloudFunction: pulumi.Any(google_cloudfunctions_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/{{region}}/functions/{{cloud_function}} * {{project}}/{{region}}/{{cloud_function}} * {{region}}/{{cloud_function}} * {{cloud_function}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Functions cloudfunction 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:cloudfunctions/functionIamPolicy:FunctionIamPolicy editor "projects/{{project}}/locations/{{region}}/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:cloudfunctions/functionIamPolicy:FunctionIamPolicy editor "projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} roles/viewer"

```

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

```sh

$ pulumi import gcp:cloudfunctions/functionIamPolicy:FunctionIamPolicy editor projects/{{project}}/locations/{{region}}/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

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

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

func (*FunctionIamPolicy) ElementType() reflect.Type

func (*FunctionIamPolicy) ToFunctionIamPolicyOutput

func (i *FunctionIamPolicy) ToFunctionIamPolicyOutput() FunctionIamPolicyOutput

func (*FunctionIamPolicy) ToFunctionIamPolicyOutputWithContext

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

func (*FunctionIamPolicy) ToOutput added in v6.65.1

type FunctionIamPolicyArgs

type FunctionIamPolicyArgs struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringInput
	// 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 location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified,
	// the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
	// region is specified, it is taken from the provider configuration.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a FunctionIamPolicy resource.

func (FunctionIamPolicyArgs) ElementType

func (FunctionIamPolicyArgs) ElementType() reflect.Type

type FunctionIamPolicyArray

type FunctionIamPolicyArray []FunctionIamPolicyInput

func (FunctionIamPolicyArray) ElementType

func (FunctionIamPolicyArray) ElementType() reflect.Type

func (FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutput

func (i FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutput() FunctionIamPolicyArrayOutput

func (FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutputWithContext

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

func (FunctionIamPolicyArray) ToOutput added in v6.65.1

type FunctionIamPolicyArrayInput

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

type FunctionIamPolicyArrayOutput struct{ *pulumi.OutputState }

func (FunctionIamPolicyArrayOutput) ElementType

func (FunctionIamPolicyArrayOutput) Index

func (FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutput

func (o FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutput() FunctionIamPolicyArrayOutput

func (FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutputWithContext

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

func (FunctionIamPolicyArrayOutput) ToOutput added in v6.65.1

type FunctionIamPolicyInput

type FunctionIamPolicyInput interface {
	pulumi.Input

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

type FunctionIamPolicyMap

type FunctionIamPolicyMap map[string]FunctionIamPolicyInput

func (FunctionIamPolicyMap) ElementType

func (FunctionIamPolicyMap) ElementType() reflect.Type

func (FunctionIamPolicyMap) ToFunctionIamPolicyMapOutput

func (i FunctionIamPolicyMap) ToFunctionIamPolicyMapOutput() FunctionIamPolicyMapOutput

func (FunctionIamPolicyMap) ToFunctionIamPolicyMapOutputWithContext

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

func (FunctionIamPolicyMap) ToOutput added in v6.65.1

type FunctionIamPolicyMapInput

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

type FunctionIamPolicyMapOutput struct{ *pulumi.OutputState }

func (FunctionIamPolicyMapOutput) ElementType

func (FunctionIamPolicyMapOutput) ElementType() reflect.Type

func (FunctionIamPolicyMapOutput) MapIndex

func (FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutput

func (o FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutput() FunctionIamPolicyMapOutput

func (FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutputWithContext

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

func (FunctionIamPolicyMapOutput) ToOutput added in v6.65.1

type FunctionIamPolicyOutput

type FunctionIamPolicyOutput struct{ *pulumi.OutputState }

func (FunctionIamPolicyOutput) CloudFunction added in v6.23.0

func (o FunctionIamPolicyOutput) CloudFunction() pulumi.StringOutput

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

func (FunctionIamPolicyOutput) ElementType

func (FunctionIamPolicyOutput) ElementType() reflect.Type

func (FunctionIamPolicyOutput) Etag added in v6.23.0

(Computed) The etag of the IAM policy.

func (FunctionIamPolicyOutput) PolicyData added in v6.23.0

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

func (FunctionIamPolicyOutput) Project added in v6.23.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) Region added in v6.23.0

The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified, the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no region is specified, it is taken from the provider configuration.

func (FunctionIamPolicyOutput) ToFunctionIamPolicyOutput

func (o FunctionIamPolicyOutput) ToFunctionIamPolicyOutput() FunctionIamPolicyOutput

func (FunctionIamPolicyOutput) ToFunctionIamPolicyOutputWithContext

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

func (FunctionIamPolicyOutput) ToOutput added in v6.65.1

type FunctionIamPolicyState

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 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
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified,
	// the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
	// region is specified, it is taken from the provider configuration.
	Region pulumi.StringPtrInput
}

func (FunctionIamPolicyState) ElementType

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) AvailableMemoryMb added in v6.23.0

func (o FunctionOutput) AvailableMemoryMb() pulumi.IntPtrOutput

Memory (in MB), available to the function. Default value is `256`. Possible values include `128`, `256`, `512`, `1024`, etc.

func (FunctionOutput) BuildEnvironmentVariables added in v6.23.0

func (o FunctionOutput) BuildEnvironmentVariables() pulumi.MapOutput

A set of key/value environment variable pairs available during build time.

func (FunctionOutput) BuildWorkerPool added in v6.39.0

func (o FunctionOutput) BuildWorkerPool() pulumi.StringPtrOutput

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

func (FunctionOutput) Description added in v6.23.0

func (o FunctionOutput) Description() pulumi.StringPtrOutput

Description of the function.

func (FunctionOutput) DockerRegistry added in v6.26.0

func (o FunctionOutput) DockerRegistry() pulumi.StringOutput

Docker Registry to use for storing the function's Docker images. Allowed values are CONTAINER_REGISTRY (default) and ARTIFACT_REGISTRY.

func (FunctionOutput) DockerRepository added in v6.24.0

func (o FunctionOutput) DockerRepository() pulumi.StringPtrOutput

User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, Container Registry will be used by default, unless specified otherwise by other means.

func (FunctionOutput) ElementType

func (FunctionOutput) ElementType() reflect.Type

func (FunctionOutput) EntryPoint added in v6.23.0

func (o FunctionOutput) EntryPoint() pulumi.StringPtrOutput

Name of the function that will be executed when the Google Cloud Function is triggered.

func (FunctionOutput) EnvironmentVariables added in v6.23.0

func (o FunctionOutput) EnvironmentVariables() pulumi.MapOutput

A set of key/value environment variable pairs to assign to the function.

func (FunctionOutput) EventTrigger added in v6.23.0

func (o FunctionOutput) EventTrigger() FunctionEventTriggerOutput

A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with `triggerHttp`.

func (FunctionOutput) HttpsTriggerSecurityLevel added in v6.25.0

func (o FunctionOutput) HttpsTriggerSecurityLevel() pulumi.StringOutput

The security level for the function. The following options are available:

func (FunctionOutput) HttpsTriggerUrl added in v6.23.0

func (o FunctionOutput) HttpsTriggerUrl() pulumi.StringOutput

URL which triggers function execution. Returned only if `triggerHttp` is used.

func (FunctionOutput) IngressSettings added in v6.23.0

func (o FunctionOutput) IngressSettings() pulumi.StringPtrOutput

String value that controls what traffic can reach the function. Allowed values are `ALLOW_ALL`, `ALLOW_INTERNAL_AND_GCLB` and `ALLOW_INTERNAL_ONLY`. Check [ingress documentation](https://cloud.google.com/functions/docs/networking/network-settings#ingress_settings) to see the impact of each settings value. Changes to this field will recreate the cloud function.

func (FunctionOutput) KmsKeyName added in v6.24.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}`. If specified, you must also provide an artifact registry repository using the `dockerRepository` field that was created with the same KMS crypto key. Before deploying, please complete all pre-requisites described in https://cloud.google.com/functions/docs/securing/cmek#granting_service_accounts_access_to_the_key

func (FunctionOutput) Labels added in v6.23.0

func (o FunctionOutput) Labels() pulumi.MapOutput

A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.

func (FunctionOutput) MaxInstances added in v6.23.0

func (o FunctionOutput) MaxInstances() pulumi.IntOutput

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

func (FunctionOutput) MinInstances added in v6.23.0

func (o FunctionOutput) MinInstances() pulumi.IntPtrOutput

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

func (FunctionOutput) Name added in v6.23.0

A user-defined name of the function. Function names must be unique globally.

func (FunctionOutput) Project added in v6.23.0

func (o FunctionOutput) Project() pulumi.StringOutput

Project of the function. If it is not provided, the provider project is used.

func (FunctionOutput) Region added in v6.23.0

func (o FunctionOutput) Region() pulumi.StringOutput

Region of function. If it is not provided, the provider region is used.

func (FunctionOutput) Runtime added in v6.23.0

func (o FunctionOutput) Runtime() pulumi.StringOutput

The runtime in which the function is going to run. Eg. `"nodejs16"`, `"python39"`, `"dotnet3"`, `"go116"`, `"java11"`, `"ruby30"`, `"php74"`, etc. Check the [official doc](https://cloud.google.com/functions/docs/concepts/exec#runtimes) for the up-to-date list.

***

func (FunctionOutput) SecretEnvironmentVariables added in v6.23.0

func (o FunctionOutput) SecretEnvironmentVariables() FunctionSecretEnvironmentVariableArrayOutput

Secret environment variables configuration. Structure is documented below.

func (FunctionOutput) SecretVolumes added in v6.23.0

Secret volumes configuration. Structure is documented below.

func (FunctionOutput) ServiceAccountEmail added in v6.23.0

func (o FunctionOutput) ServiceAccountEmail() pulumi.StringOutput

If provided, the self-provided service account to run the function with.

func (FunctionOutput) SourceArchiveBucket added in v6.23.0

func (o FunctionOutput) SourceArchiveBucket() pulumi.StringPtrOutput

The GCS bucket containing the zip archive which contains the function.

func (FunctionOutput) SourceArchiveObject added in v6.23.0

func (o FunctionOutput) SourceArchiveObject() pulumi.StringPtrOutput

The source archive object (file) in archive bucket.

func (FunctionOutput) SourceRepository added in v6.23.0

Represents parameters related to source repository where a function is hosted. Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`.*

func (FunctionOutput) Status added in v6.57.0

func (o FunctionOutput) Status() pulumi.StringOutput

Describes the current stage of a deployment.

func (FunctionOutput) Timeout added in v6.23.0

func (o FunctionOutput) Timeout() pulumi.IntPtrOutput

Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.

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) TriggerHttp added in v6.23.0

func (o FunctionOutput) TriggerHttp() pulumi.BoolPtrOutput

Boolean variable. Any HTTP request (of a supported type) to the endpoint will trigger function execution. Supported HTTP request types are: POST, PUT, GET, DELETE, and OPTIONS. Endpoint is returned as `httpsTriggerUrl`. Cannot be used with `eventTrigger`.

func (FunctionOutput) VpcConnector added in v6.23.0

func (o FunctionOutput) VpcConnector() pulumi.StringPtrOutput

The VPC Network Connector that this cloud function can connect to. It should be set up as fully-qualified URI. The format of this field is `projects/*/locations/*/connectors/*`.

func (FunctionOutput) VpcConnectorEgressSettings added in v6.23.0

func (o FunctionOutput) VpcConnectorEgressSettings() pulumi.StringOutput

The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are `ALL_TRAFFIC` and `PRIVATE_RANGES_ONLY`. Defaults to `PRIVATE_RANGES_ONLY`. If unset, this field preserves the previously set value.

type FunctionSecretEnvironmentVariable added in v6.12.0

type FunctionSecretEnvironmentVariable struct {
	// Name of the environment variable.
	Key string `pulumi:"key"`
	// Project identifier (due to a known limitation, only project number is supported by this field) 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"`
	// ID 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 clones start.
	Version string `pulumi:"version"`
}

type FunctionSecretEnvironmentVariableArgs added in v6.12.0

type FunctionSecretEnvironmentVariableArgs struct {
	// Name of the environment variable.
	Key pulumi.StringInput `pulumi:"key"`
	// Project identifier (due to a known limitation, only project number is supported by this field) 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.StringPtrInput `pulumi:"projectId"`
	// ID 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 clones start.
	Version pulumi.StringInput `pulumi:"version"`
}

func (FunctionSecretEnvironmentVariableArgs) ElementType added in v6.12.0

func (FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutput added in v6.12.0

func (i FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutput() FunctionSecretEnvironmentVariableOutput

func (FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutputWithContext added in v6.12.0

func (i FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutputWithContext(ctx context.Context) FunctionSecretEnvironmentVariableOutput

func (FunctionSecretEnvironmentVariableArgs) ToOutput added in v6.65.1

type FunctionSecretEnvironmentVariableArray added in v6.12.0

type FunctionSecretEnvironmentVariableArray []FunctionSecretEnvironmentVariableInput

func (FunctionSecretEnvironmentVariableArray) ElementType added in v6.12.0

func (FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutput added in v6.12.0

func (i FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutput() FunctionSecretEnvironmentVariableArrayOutput

func (FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutputWithContext added in v6.12.0

func (i FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) FunctionSecretEnvironmentVariableArrayOutput

func (FunctionSecretEnvironmentVariableArray) ToOutput added in v6.65.1

type FunctionSecretEnvironmentVariableArrayInput added in v6.12.0

type FunctionSecretEnvironmentVariableArrayInput interface {
	pulumi.Input

	ToFunctionSecretEnvironmentVariableArrayOutput() FunctionSecretEnvironmentVariableArrayOutput
	ToFunctionSecretEnvironmentVariableArrayOutputWithContext(context.Context) FunctionSecretEnvironmentVariableArrayOutput
}

FunctionSecretEnvironmentVariableArrayInput is an input type that accepts FunctionSecretEnvironmentVariableArray and FunctionSecretEnvironmentVariableArrayOutput values. You can construct a concrete instance of `FunctionSecretEnvironmentVariableArrayInput` via:

FunctionSecretEnvironmentVariableArray{ FunctionSecretEnvironmentVariableArgs{...} }

type FunctionSecretEnvironmentVariableArrayOutput added in v6.12.0

type FunctionSecretEnvironmentVariableArrayOutput struct{ *pulumi.OutputState }

func (FunctionSecretEnvironmentVariableArrayOutput) ElementType added in v6.12.0

func (FunctionSecretEnvironmentVariableArrayOutput) Index added in v6.12.0

func (FunctionSecretEnvironmentVariableArrayOutput) ToFunctionSecretEnvironmentVariableArrayOutput added in v6.12.0

func (o FunctionSecretEnvironmentVariableArrayOutput) ToFunctionSecretEnvironmentVariableArrayOutput() FunctionSecretEnvironmentVariableArrayOutput

func (FunctionSecretEnvironmentVariableArrayOutput) ToFunctionSecretEnvironmentVariableArrayOutputWithContext added in v6.12.0

func (o FunctionSecretEnvironmentVariableArrayOutput) ToFunctionSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) FunctionSecretEnvironmentVariableArrayOutput

func (FunctionSecretEnvironmentVariableArrayOutput) ToOutput added in v6.65.1

type FunctionSecretEnvironmentVariableInput added in v6.12.0

type FunctionSecretEnvironmentVariableInput interface {
	pulumi.Input

	ToFunctionSecretEnvironmentVariableOutput() FunctionSecretEnvironmentVariableOutput
	ToFunctionSecretEnvironmentVariableOutputWithContext(context.Context) FunctionSecretEnvironmentVariableOutput
}

FunctionSecretEnvironmentVariableInput is an input type that accepts FunctionSecretEnvironmentVariableArgs and FunctionSecretEnvironmentVariableOutput values. You can construct a concrete instance of `FunctionSecretEnvironmentVariableInput` via:

FunctionSecretEnvironmentVariableArgs{...}

type FunctionSecretEnvironmentVariableOutput added in v6.12.0

type FunctionSecretEnvironmentVariableOutput struct{ *pulumi.OutputState }

func (FunctionSecretEnvironmentVariableOutput) ElementType added in v6.12.0

func (FunctionSecretEnvironmentVariableOutput) Key added in v6.12.0

Name of the environment variable.

func (FunctionSecretEnvironmentVariableOutput) ProjectId added in v6.12.0

Project identifier (due to a known limitation, only project number is supported by this field) 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 (FunctionSecretEnvironmentVariableOutput) Secret added in v6.12.0

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

func (FunctionSecretEnvironmentVariableOutput) ToFunctionSecretEnvironmentVariableOutput added in v6.12.0

func (o FunctionSecretEnvironmentVariableOutput) ToFunctionSecretEnvironmentVariableOutput() FunctionSecretEnvironmentVariableOutput

func (FunctionSecretEnvironmentVariableOutput) ToFunctionSecretEnvironmentVariableOutputWithContext added in v6.12.0

func (o FunctionSecretEnvironmentVariableOutput) ToFunctionSecretEnvironmentVariableOutputWithContext(ctx context.Context) FunctionSecretEnvironmentVariableOutput

func (FunctionSecretEnvironmentVariableOutput) ToOutput added in v6.65.1

func (FunctionSecretEnvironmentVariableOutput) Version added in v6.12.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 clones start.

type FunctionSecretVolume added in v6.12.0

type FunctionSecretVolume 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 paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log".
	MountPath string `pulumi:"mountPath"`
	// Project identifier (due to a known limitation, only project number is supported by this field) 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"`
	// ID 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 []FunctionSecretVolumeVersion `pulumi:"versions"`
}

type FunctionSecretVolumeArgs added in v6.12.0

type FunctionSecretVolumeArgs 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 paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log".
	MountPath pulumi.StringInput `pulumi:"mountPath"`
	// Project identifier (due to a known limitation, only project number is supported by this field) 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.StringPtrInput `pulumi:"projectId"`
	// ID 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 FunctionSecretVolumeVersionArrayInput `pulumi:"versions"`
}

func (FunctionSecretVolumeArgs) ElementType added in v6.12.0

func (FunctionSecretVolumeArgs) ElementType() reflect.Type

func (FunctionSecretVolumeArgs) ToFunctionSecretVolumeOutput added in v6.12.0

func (i FunctionSecretVolumeArgs) ToFunctionSecretVolumeOutput() FunctionSecretVolumeOutput

func (FunctionSecretVolumeArgs) ToFunctionSecretVolumeOutputWithContext added in v6.12.0

func (i FunctionSecretVolumeArgs) ToFunctionSecretVolumeOutputWithContext(ctx context.Context) FunctionSecretVolumeOutput

func (FunctionSecretVolumeArgs) ToOutput added in v6.65.1

type FunctionSecretVolumeArray added in v6.12.0

type FunctionSecretVolumeArray []FunctionSecretVolumeInput

func (FunctionSecretVolumeArray) ElementType added in v6.12.0

func (FunctionSecretVolumeArray) ElementType() reflect.Type

func (FunctionSecretVolumeArray) ToFunctionSecretVolumeArrayOutput added in v6.12.0

func (i FunctionSecretVolumeArray) ToFunctionSecretVolumeArrayOutput() FunctionSecretVolumeArrayOutput

func (FunctionSecretVolumeArray) ToFunctionSecretVolumeArrayOutputWithContext added in v6.12.0

func (i FunctionSecretVolumeArray) ToFunctionSecretVolumeArrayOutputWithContext(ctx context.Context) FunctionSecretVolumeArrayOutput

func (FunctionSecretVolumeArray) ToOutput added in v6.65.1

type FunctionSecretVolumeArrayInput added in v6.12.0

type FunctionSecretVolumeArrayInput interface {
	pulumi.Input

	ToFunctionSecretVolumeArrayOutput() FunctionSecretVolumeArrayOutput
	ToFunctionSecretVolumeArrayOutputWithContext(context.Context) FunctionSecretVolumeArrayOutput
}

FunctionSecretVolumeArrayInput is an input type that accepts FunctionSecretVolumeArray and FunctionSecretVolumeArrayOutput values. You can construct a concrete instance of `FunctionSecretVolumeArrayInput` via:

FunctionSecretVolumeArray{ FunctionSecretVolumeArgs{...} }

type FunctionSecretVolumeArrayOutput added in v6.12.0

type FunctionSecretVolumeArrayOutput struct{ *pulumi.OutputState }

func (FunctionSecretVolumeArrayOutput) ElementType added in v6.12.0

func (FunctionSecretVolumeArrayOutput) Index added in v6.12.0

func (FunctionSecretVolumeArrayOutput) ToFunctionSecretVolumeArrayOutput added in v6.12.0

func (o FunctionSecretVolumeArrayOutput) ToFunctionSecretVolumeArrayOutput() FunctionSecretVolumeArrayOutput

func (FunctionSecretVolumeArrayOutput) ToFunctionSecretVolumeArrayOutputWithContext added in v6.12.0

func (o FunctionSecretVolumeArrayOutput) ToFunctionSecretVolumeArrayOutputWithContext(ctx context.Context) FunctionSecretVolumeArrayOutput

func (FunctionSecretVolumeArrayOutput) ToOutput added in v6.65.1

type FunctionSecretVolumeInput added in v6.12.0

type FunctionSecretVolumeInput interface {
	pulumi.Input

	ToFunctionSecretVolumeOutput() FunctionSecretVolumeOutput
	ToFunctionSecretVolumeOutputWithContext(context.Context) FunctionSecretVolumeOutput
}

FunctionSecretVolumeInput is an input type that accepts FunctionSecretVolumeArgs and FunctionSecretVolumeOutput values. You can construct a concrete instance of `FunctionSecretVolumeInput` via:

FunctionSecretVolumeArgs{...}

type FunctionSecretVolumeOutput added in v6.12.0

type FunctionSecretVolumeOutput struct{ *pulumi.OutputState }

func (FunctionSecretVolumeOutput) ElementType added in v6.12.0

func (FunctionSecretVolumeOutput) ElementType() reflect.Type

func (FunctionSecretVolumeOutput) MountPath added in v6.12.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 paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log".

func (FunctionSecretVolumeOutput) ProjectId added in v6.12.0

Project identifier (due to a known limitation, only project number is supported by this field) 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 (FunctionSecretVolumeOutput) Secret added in v6.12.0

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

func (FunctionSecretVolumeOutput) ToFunctionSecretVolumeOutput added in v6.12.0

func (o FunctionSecretVolumeOutput) ToFunctionSecretVolumeOutput() FunctionSecretVolumeOutput

func (FunctionSecretVolumeOutput) ToFunctionSecretVolumeOutputWithContext added in v6.12.0

func (o FunctionSecretVolumeOutput) ToFunctionSecretVolumeOutputWithContext(ctx context.Context) FunctionSecretVolumeOutput

func (FunctionSecretVolumeOutput) ToOutput added in v6.65.1

func (FunctionSecretVolumeOutput) Versions added in v6.12.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 FunctionSecretVolumeVersion added in v6.12.0

type FunctionSecretVolumeVersion 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 "/secret_foo" 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 FunctionSecretVolumeVersionArgs added in v6.12.0

type FunctionSecretVolumeVersionArgs 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 "/secret_foo" 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 (FunctionSecretVolumeVersionArgs) ElementType added in v6.12.0

func (FunctionSecretVolumeVersionArgs) ToFunctionSecretVolumeVersionOutput added in v6.12.0

func (i FunctionSecretVolumeVersionArgs) ToFunctionSecretVolumeVersionOutput() FunctionSecretVolumeVersionOutput

func (FunctionSecretVolumeVersionArgs) ToFunctionSecretVolumeVersionOutputWithContext added in v6.12.0

func (i FunctionSecretVolumeVersionArgs) ToFunctionSecretVolumeVersionOutputWithContext(ctx context.Context) FunctionSecretVolumeVersionOutput

func (FunctionSecretVolumeVersionArgs) ToOutput added in v6.65.1

type FunctionSecretVolumeVersionArray added in v6.12.0

type FunctionSecretVolumeVersionArray []FunctionSecretVolumeVersionInput

func (FunctionSecretVolumeVersionArray) ElementType added in v6.12.0

func (FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutput added in v6.12.0

func (i FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutput() FunctionSecretVolumeVersionArrayOutput

func (FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutputWithContext added in v6.12.0

func (i FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutputWithContext(ctx context.Context) FunctionSecretVolumeVersionArrayOutput

func (FunctionSecretVolumeVersionArray) ToOutput added in v6.65.1

type FunctionSecretVolumeVersionArrayInput added in v6.12.0

type FunctionSecretVolumeVersionArrayInput interface {
	pulumi.Input

	ToFunctionSecretVolumeVersionArrayOutput() FunctionSecretVolumeVersionArrayOutput
	ToFunctionSecretVolumeVersionArrayOutputWithContext(context.Context) FunctionSecretVolumeVersionArrayOutput
}

FunctionSecretVolumeVersionArrayInput is an input type that accepts FunctionSecretVolumeVersionArray and FunctionSecretVolumeVersionArrayOutput values. You can construct a concrete instance of `FunctionSecretVolumeVersionArrayInput` via:

FunctionSecretVolumeVersionArray{ FunctionSecretVolumeVersionArgs{...} }

type FunctionSecretVolumeVersionArrayOutput added in v6.12.0

type FunctionSecretVolumeVersionArrayOutput struct{ *pulumi.OutputState }

func (FunctionSecretVolumeVersionArrayOutput) ElementType added in v6.12.0

func (FunctionSecretVolumeVersionArrayOutput) Index added in v6.12.0

func (FunctionSecretVolumeVersionArrayOutput) ToFunctionSecretVolumeVersionArrayOutput added in v6.12.0

func (o FunctionSecretVolumeVersionArrayOutput) ToFunctionSecretVolumeVersionArrayOutput() FunctionSecretVolumeVersionArrayOutput

func (FunctionSecretVolumeVersionArrayOutput) ToFunctionSecretVolumeVersionArrayOutputWithContext added in v6.12.0

func (o FunctionSecretVolumeVersionArrayOutput) ToFunctionSecretVolumeVersionArrayOutputWithContext(ctx context.Context) FunctionSecretVolumeVersionArrayOutput

func (FunctionSecretVolumeVersionArrayOutput) ToOutput added in v6.65.1

type FunctionSecretVolumeVersionInput added in v6.12.0

type FunctionSecretVolumeVersionInput interface {
	pulumi.Input

	ToFunctionSecretVolumeVersionOutput() FunctionSecretVolumeVersionOutput
	ToFunctionSecretVolumeVersionOutputWithContext(context.Context) FunctionSecretVolumeVersionOutput
}

FunctionSecretVolumeVersionInput is an input type that accepts FunctionSecretVolumeVersionArgs and FunctionSecretVolumeVersionOutput values. You can construct a concrete instance of `FunctionSecretVolumeVersionInput` via:

FunctionSecretVolumeVersionArgs{...}

type FunctionSecretVolumeVersionOutput added in v6.12.0

type FunctionSecretVolumeVersionOutput struct{ *pulumi.OutputState }

func (FunctionSecretVolumeVersionOutput) ElementType added in v6.12.0

func (FunctionSecretVolumeVersionOutput) Path added in v6.12.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 "/secret_foo" would mount the secret value file at "/etc/secrets/secret_foo".

func (FunctionSecretVolumeVersionOutput) ToFunctionSecretVolumeVersionOutput added in v6.12.0

func (o FunctionSecretVolumeVersionOutput) ToFunctionSecretVolumeVersionOutput() FunctionSecretVolumeVersionOutput

func (FunctionSecretVolumeVersionOutput) ToFunctionSecretVolumeVersionOutputWithContext added in v6.12.0

func (o FunctionSecretVolumeVersionOutput) ToFunctionSecretVolumeVersionOutputWithContext(ctx context.Context) FunctionSecretVolumeVersionOutput

func (FunctionSecretVolumeVersionOutput) ToOutput added in v6.65.1

func (FunctionSecretVolumeVersionOutput) Version added in v6.12.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 FunctionSourceRepository

type FunctionSourceRepository struct {
	DeployedUrl *string `pulumi:"deployedUrl"`
	// The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:
	//
	// * To refer to a specific commit: `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
	// * To refer to a moveable alias (branch): `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`. To refer to HEAD, use the `master` moveable alias.
	// * To refer to a specific fixed alias (tag): `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
	Url string `pulumi:"url"`
}

type FunctionSourceRepositoryArgs

type FunctionSourceRepositoryArgs struct {
	DeployedUrl pulumi.StringPtrInput `pulumi:"deployedUrl"`
	// The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:
	//
	// * To refer to a specific commit: `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
	// * To refer to a moveable alias (branch): `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`. To refer to HEAD, use the `master` moveable alias.
	// * To refer to a specific fixed alias (tag): `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
	Url pulumi.StringInput `pulumi:"url"`
}

func (FunctionSourceRepositoryArgs) ElementType

func (FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryOutput

func (i FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryOutput() FunctionSourceRepositoryOutput

func (FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryOutputWithContext

func (i FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryOutputWithContext(ctx context.Context) FunctionSourceRepositoryOutput

func (FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryPtrOutput

func (i FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryPtrOutput() FunctionSourceRepositoryPtrOutput

func (FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryPtrOutputWithContext

func (i FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryPtrOutputWithContext(ctx context.Context) FunctionSourceRepositoryPtrOutput

func (FunctionSourceRepositoryArgs) ToOutput added in v6.65.1

type FunctionSourceRepositoryInput

type FunctionSourceRepositoryInput interface {
	pulumi.Input

	ToFunctionSourceRepositoryOutput() FunctionSourceRepositoryOutput
	ToFunctionSourceRepositoryOutputWithContext(context.Context) FunctionSourceRepositoryOutput
}

FunctionSourceRepositoryInput is an input type that accepts FunctionSourceRepositoryArgs and FunctionSourceRepositoryOutput values. You can construct a concrete instance of `FunctionSourceRepositoryInput` via:

FunctionSourceRepositoryArgs{...}

type FunctionSourceRepositoryOutput

type FunctionSourceRepositoryOutput struct{ *pulumi.OutputState }

func (FunctionSourceRepositoryOutput) DeployedUrl

func (FunctionSourceRepositoryOutput) ElementType

func (FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryOutput

func (o FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryOutput() FunctionSourceRepositoryOutput

func (FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryOutputWithContext

func (o FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryOutputWithContext(ctx context.Context) FunctionSourceRepositoryOutput

func (FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryPtrOutput

func (o FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryPtrOutput() FunctionSourceRepositoryPtrOutput

func (FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryPtrOutputWithContext

func (o FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryPtrOutputWithContext(ctx context.Context) FunctionSourceRepositoryPtrOutput

func (FunctionSourceRepositoryOutput) ToOutput added in v6.65.1

func (FunctionSourceRepositoryOutput) Url

The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:

* To refer to a specific commit: `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` * To refer to a moveable alias (branch): `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`. To refer to HEAD, use the `master` moveable alias. * To refer to a specific fixed alias (tag): `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`

type FunctionSourceRepositoryPtrInput

type FunctionSourceRepositoryPtrInput interface {
	pulumi.Input

	ToFunctionSourceRepositoryPtrOutput() FunctionSourceRepositoryPtrOutput
	ToFunctionSourceRepositoryPtrOutputWithContext(context.Context) FunctionSourceRepositoryPtrOutput
}

FunctionSourceRepositoryPtrInput is an input type that accepts FunctionSourceRepositoryArgs, FunctionSourceRepositoryPtr and FunctionSourceRepositoryPtrOutput values. You can construct a concrete instance of `FunctionSourceRepositoryPtrInput` via:

        FunctionSourceRepositoryArgs{...}

or:

        nil

type FunctionSourceRepositoryPtrOutput

type FunctionSourceRepositoryPtrOutput struct{ *pulumi.OutputState }

func (FunctionSourceRepositoryPtrOutput) DeployedUrl

func (FunctionSourceRepositoryPtrOutput) Elem

func (FunctionSourceRepositoryPtrOutput) ElementType

func (FunctionSourceRepositoryPtrOutput) ToFunctionSourceRepositoryPtrOutput

func (o FunctionSourceRepositoryPtrOutput) ToFunctionSourceRepositoryPtrOutput() FunctionSourceRepositoryPtrOutput

func (FunctionSourceRepositoryPtrOutput) ToFunctionSourceRepositoryPtrOutputWithContext

func (o FunctionSourceRepositoryPtrOutput) ToFunctionSourceRepositoryPtrOutputWithContext(ctx context.Context) FunctionSourceRepositoryPtrOutput

func (FunctionSourceRepositoryPtrOutput) ToOutput added in v6.65.1

func (FunctionSourceRepositoryPtrOutput) Url

The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:

* To refer to a specific commit: `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` * To refer to a moveable alias (branch): `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`. To refer to HEAD, use the `master` moveable alias. * To refer to a specific fixed alias (tag): `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`

type FunctionState

type FunctionState struct {
	// Memory (in MB), available to the function. Default value is `256`. Possible values include `128`, `256`, `512`, `1024`, etc.
	AvailableMemoryMb pulumi.IntPtrInput
	// A set of key/value environment variable pairs available during build time.
	BuildEnvironmentVariables pulumi.MapInput
	// Name of the Cloud Build Custom Worker Pool that should be used to build the function.
	BuildWorkerPool pulumi.StringPtrInput
	// Description of the function.
	Description pulumi.StringPtrInput
	// Docker Registry to use for storing the function's Docker images. Allowed values are CONTAINER_REGISTRY (default) and ARTIFACT_REGISTRY.
	DockerRegistry pulumi.StringPtrInput
	// User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, Container Registry will be used by default, unless specified otherwise by other means.
	DockerRepository pulumi.StringPtrInput
	// Name of the function that will be executed when the Google Cloud Function is triggered.
	EntryPoint pulumi.StringPtrInput
	// A set of key/value environment variable pairs to assign to the function.
	EnvironmentVariables pulumi.MapInput
	// A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with `triggerHttp`.
	EventTrigger FunctionEventTriggerPtrInput
	// The security level for the function. The following options are available:
	HttpsTriggerSecurityLevel pulumi.StringPtrInput
	// URL which triggers function execution. Returned only if `triggerHttp` is used.
	HttpsTriggerUrl pulumi.StringPtrInput
	// String value that controls what traffic can reach the function. Allowed values are `ALLOW_ALL`, `ALLOW_INTERNAL_AND_GCLB` and `ALLOW_INTERNAL_ONLY`. Check [ingress documentation](https://cloud.google.com/functions/docs/networking/network-settings#ingress_settings) to see the impact of each settings value. Changes to this field will recreate the cloud function.
	IngressSettings pulumi.StringPtrInput
	// 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}`.
	// If specified, you must also provide an artifact registry repository using the `dockerRepository` field that was created with the same KMS crypto key. Before deploying, please complete all pre-requisites described in https://cloud.google.com/functions/docs/securing/cmek#granting_service_accounts_access_to_the_key
	KmsKeyName pulumi.StringPtrInput
	// A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
	Labels pulumi.MapInput
	// The limit on the maximum number of function instances that may coexist at a given time.
	MaxInstances pulumi.IntPtrInput
	// The limit on the minimum number of function instances that may coexist at a given time.
	MinInstances pulumi.IntPtrInput
	// A user-defined name of the function. Function names must be unique globally.
	Name pulumi.StringPtrInput
	// Project of the function. If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// Region of function. If it is not provided, the provider region is used.
	Region pulumi.StringPtrInput
	// The runtime in which the function is going to run.
	// Eg. `"nodejs16"`, `"python39"`, `"dotnet3"`, `"go116"`, `"java11"`, `"ruby30"`, `"php74"`, etc. Check the [official doc](https://cloud.google.com/functions/docs/concepts/exec#runtimes) for the up-to-date list.
	//
	// ***
	Runtime pulumi.StringPtrInput
	// Secret environment variables configuration. Structure is documented below.
	SecretEnvironmentVariables FunctionSecretEnvironmentVariableArrayInput
	// Secret volumes configuration. Structure is documented below.
	SecretVolumes FunctionSecretVolumeArrayInput
	// If provided, the self-provided service account to run the function with.
	ServiceAccountEmail pulumi.StringPtrInput
	// The GCS bucket containing the zip archive which contains the function.
	SourceArchiveBucket pulumi.StringPtrInput
	// The source archive object (file) in archive bucket.
	SourceArchiveObject pulumi.StringPtrInput
	// Represents parameters related to source repository where a function is hosted.
	// Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`.*
	SourceRepository FunctionSourceRepositoryPtrInput
	// Describes the current stage of a deployment.
	Status pulumi.StringPtrInput
	// Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.
	Timeout pulumi.IntPtrInput
	// Boolean variable. Any HTTP request (of a supported type) to the endpoint will trigger function execution. Supported HTTP request types are: POST, PUT, GET, DELETE, and OPTIONS. Endpoint is returned as `httpsTriggerUrl`. Cannot be used with `eventTrigger`.
	TriggerHttp pulumi.BoolPtrInput
	// The VPC Network Connector that this cloud function can connect to. It should be set up as fully-qualified URI. The format of this field is `projects/*/locations/*/connectors/*`.
	VpcConnector pulumi.StringPtrInput
	// The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are `ALL_TRAFFIC` and `PRIVATE_RANGES_ONLY`. Defaults to `PRIVATE_RANGES_ONLY`. If unset, this field preserves the previously set value.
	VpcConnectorEgressSettings pulumi.StringPtrInput
}

func (FunctionState) ElementType

func (FunctionState) ElementType() reflect.Type

type GetFunctionEventTrigger

type GetFunctionEventTrigger struct {
	// The type of event to observe. For example: `"google.storage.object.finalize"`.
	// See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/)
	// for a full reference of accepted triggers.
	EventType string `pulumi:"eventType"`
	// Policy for failed executions. Structure is documented below.
	FailurePolicies []GetFunctionEventTriggerFailurePolicy `pulumi:"failurePolicies"`
	// The name of the resource whose events are being observed, for example, `"myBucket"`
	Resource string `pulumi:"resource"`
}

type GetFunctionEventTriggerArgs

type GetFunctionEventTriggerArgs struct {
	// The type of event to observe. For example: `"google.storage.object.finalize"`.
	// See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/)
	// for a full reference of accepted triggers.
	EventType pulumi.StringInput `pulumi:"eventType"`
	// Policy for failed executions. Structure is documented below.
	FailurePolicies GetFunctionEventTriggerFailurePolicyArrayInput `pulumi:"failurePolicies"`
	// The name of the resource whose events are being observed, for example, `"myBucket"`
	Resource pulumi.StringInput `pulumi:"resource"`
}

func (GetFunctionEventTriggerArgs) ElementType

func (GetFunctionEventTriggerArgs) ToGetFunctionEventTriggerOutput

func (i GetFunctionEventTriggerArgs) ToGetFunctionEventTriggerOutput() GetFunctionEventTriggerOutput

func (GetFunctionEventTriggerArgs) ToGetFunctionEventTriggerOutputWithContext

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

func (GetFunctionEventTriggerArgs) ToOutput added in v6.65.1

type GetFunctionEventTriggerArray

type GetFunctionEventTriggerArray []GetFunctionEventTriggerInput

func (GetFunctionEventTriggerArray) ElementType

func (GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutput

func (i GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutput() GetFunctionEventTriggerArrayOutput

func (GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutputWithContext

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

func (GetFunctionEventTriggerArray) ToOutput added in v6.65.1

type GetFunctionEventTriggerArrayInput

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

type GetFunctionEventTriggerArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionEventTriggerArrayOutput) ElementType

func (GetFunctionEventTriggerArrayOutput) Index

func (GetFunctionEventTriggerArrayOutput) ToGetFunctionEventTriggerArrayOutput

func (o GetFunctionEventTriggerArrayOutput) ToGetFunctionEventTriggerArrayOutput() GetFunctionEventTriggerArrayOutput

func (GetFunctionEventTriggerArrayOutput) ToGetFunctionEventTriggerArrayOutputWithContext

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

func (GetFunctionEventTriggerArrayOutput) ToOutput added in v6.65.1

type GetFunctionEventTriggerFailurePolicy

type GetFunctionEventTriggerFailurePolicy struct {
	// Whether the function should be retried on failure.
	Retry bool `pulumi:"retry"`
}

type GetFunctionEventTriggerFailurePolicyArgs

type GetFunctionEventTriggerFailurePolicyArgs struct {
	// Whether the function should be retried on failure.
	Retry pulumi.BoolInput `pulumi:"retry"`
}

func (GetFunctionEventTriggerFailurePolicyArgs) ElementType

func (GetFunctionEventTriggerFailurePolicyArgs) ToGetFunctionEventTriggerFailurePolicyOutput

func (i GetFunctionEventTriggerFailurePolicyArgs) ToGetFunctionEventTriggerFailurePolicyOutput() GetFunctionEventTriggerFailurePolicyOutput

func (GetFunctionEventTriggerFailurePolicyArgs) ToGetFunctionEventTriggerFailurePolicyOutputWithContext

func (i GetFunctionEventTriggerFailurePolicyArgs) ToGetFunctionEventTriggerFailurePolicyOutputWithContext(ctx context.Context) GetFunctionEventTriggerFailurePolicyOutput

func (GetFunctionEventTriggerFailurePolicyArgs) ToOutput added in v6.65.1

type GetFunctionEventTriggerFailurePolicyArray

type GetFunctionEventTriggerFailurePolicyArray []GetFunctionEventTriggerFailurePolicyInput

func (GetFunctionEventTriggerFailurePolicyArray) ElementType

func (GetFunctionEventTriggerFailurePolicyArray) ToGetFunctionEventTriggerFailurePolicyArrayOutput

func (i GetFunctionEventTriggerFailurePolicyArray) ToGetFunctionEventTriggerFailurePolicyArrayOutput() GetFunctionEventTriggerFailurePolicyArrayOutput

func (GetFunctionEventTriggerFailurePolicyArray) ToGetFunctionEventTriggerFailurePolicyArrayOutputWithContext

func (i GetFunctionEventTriggerFailurePolicyArray) ToGetFunctionEventTriggerFailurePolicyArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerFailurePolicyArrayOutput

func (GetFunctionEventTriggerFailurePolicyArray) ToOutput added in v6.65.1

type GetFunctionEventTriggerFailurePolicyArrayInput

type GetFunctionEventTriggerFailurePolicyArrayInput interface {
	pulumi.Input

	ToGetFunctionEventTriggerFailurePolicyArrayOutput() GetFunctionEventTriggerFailurePolicyArrayOutput
	ToGetFunctionEventTriggerFailurePolicyArrayOutputWithContext(context.Context) GetFunctionEventTriggerFailurePolicyArrayOutput
}

GetFunctionEventTriggerFailurePolicyArrayInput is an input type that accepts GetFunctionEventTriggerFailurePolicyArray and GetFunctionEventTriggerFailurePolicyArrayOutput values. You can construct a concrete instance of `GetFunctionEventTriggerFailurePolicyArrayInput` via:

GetFunctionEventTriggerFailurePolicyArray{ GetFunctionEventTriggerFailurePolicyArgs{...} }

type GetFunctionEventTriggerFailurePolicyArrayOutput

type GetFunctionEventTriggerFailurePolicyArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionEventTriggerFailurePolicyArrayOutput) ElementType

func (GetFunctionEventTriggerFailurePolicyArrayOutput) Index

func (GetFunctionEventTriggerFailurePolicyArrayOutput) ToGetFunctionEventTriggerFailurePolicyArrayOutput

func (o GetFunctionEventTriggerFailurePolicyArrayOutput) ToGetFunctionEventTriggerFailurePolicyArrayOutput() GetFunctionEventTriggerFailurePolicyArrayOutput

func (GetFunctionEventTriggerFailurePolicyArrayOutput) ToGetFunctionEventTriggerFailurePolicyArrayOutputWithContext

func (o GetFunctionEventTriggerFailurePolicyArrayOutput) ToGetFunctionEventTriggerFailurePolicyArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerFailurePolicyArrayOutput

func (GetFunctionEventTriggerFailurePolicyArrayOutput) ToOutput added in v6.65.1

type GetFunctionEventTriggerFailurePolicyInput

type GetFunctionEventTriggerFailurePolicyInput interface {
	pulumi.Input

	ToGetFunctionEventTriggerFailurePolicyOutput() GetFunctionEventTriggerFailurePolicyOutput
	ToGetFunctionEventTriggerFailurePolicyOutputWithContext(context.Context) GetFunctionEventTriggerFailurePolicyOutput
}

GetFunctionEventTriggerFailurePolicyInput is an input type that accepts GetFunctionEventTriggerFailurePolicyArgs and GetFunctionEventTriggerFailurePolicyOutput values. You can construct a concrete instance of `GetFunctionEventTriggerFailurePolicyInput` via:

GetFunctionEventTriggerFailurePolicyArgs{...}

type GetFunctionEventTriggerFailurePolicyOutput

type GetFunctionEventTriggerFailurePolicyOutput struct{ *pulumi.OutputState }

func (GetFunctionEventTriggerFailurePolicyOutput) ElementType

func (GetFunctionEventTriggerFailurePolicyOutput) Retry

Whether the function should be retried on failure.

func (GetFunctionEventTriggerFailurePolicyOutput) ToGetFunctionEventTriggerFailurePolicyOutput

func (o GetFunctionEventTriggerFailurePolicyOutput) ToGetFunctionEventTriggerFailurePolicyOutput() GetFunctionEventTriggerFailurePolicyOutput

func (GetFunctionEventTriggerFailurePolicyOutput) ToGetFunctionEventTriggerFailurePolicyOutputWithContext

func (o GetFunctionEventTriggerFailurePolicyOutput) ToGetFunctionEventTriggerFailurePolicyOutputWithContext(ctx context.Context) GetFunctionEventTriggerFailurePolicyOutput

func (GetFunctionEventTriggerFailurePolicyOutput) ToOutput added in v6.65.1

type GetFunctionEventTriggerInput

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

type GetFunctionEventTriggerOutput struct{ *pulumi.OutputState }

func (GetFunctionEventTriggerOutput) ElementType

func (GetFunctionEventTriggerOutput) EventType

The type of event to observe. For example: `"google.storage.object.finalize"`. See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/) for a full reference of accepted triggers.

func (GetFunctionEventTriggerOutput) FailurePolicies

Policy for failed executions. Structure is documented below.

func (GetFunctionEventTriggerOutput) Resource

The name of the resource whose events are being observed, for example, `"myBucket"`

func (GetFunctionEventTriggerOutput) ToGetFunctionEventTriggerOutput

func (o GetFunctionEventTriggerOutput) ToGetFunctionEventTriggerOutput() GetFunctionEventTriggerOutput

func (GetFunctionEventTriggerOutput) ToGetFunctionEventTriggerOutputWithContext

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

func (GetFunctionEventTriggerOutput) ToOutput added in v6.65.1

type GetFunctionSecretEnvironmentVariable added in v6.12.0

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

type GetFunctionSecretEnvironmentVariableArgs added in v6.12.0

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

func (GetFunctionSecretEnvironmentVariableArgs) ElementType added in v6.12.0

func (GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutput added in v6.12.0

func (i GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutput() GetFunctionSecretEnvironmentVariableOutput

func (GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutputWithContext added in v6.12.0

func (i GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutputWithContext(ctx context.Context) GetFunctionSecretEnvironmentVariableOutput

func (GetFunctionSecretEnvironmentVariableArgs) ToOutput added in v6.65.1

type GetFunctionSecretEnvironmentVariableArray added in v6.12.0

type GetFunctionSecretEnvironmentVariableArray []GetFunctionSecretEnvironmentVariableInput

func (GetFunctionSecretEnvironmentVariableArray) ElementType added in v6.12.0

func (GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutput added in v6.12.0

func (i GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutput() GetFunctionSecretEnvironmentVariableArrayOutput

func (GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext added in v6.12.0

func (i GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) GetFunctionSecretEnvironmentVariableArrayOutput

func (GetFunctionSecretEnvironmentVariableArray) ToOutput added in v6.65.1

type GetFunctionSecretEnvironmentVariableArrayInput added in v6.12.0

type GetFunctionSecretEnvironmentVariableArrayInput interface {
	pulumi.Input

	ToGetFunctionSecretEnvironmentVariableArrayOutput() GetFunctionSecretEnvironmentVariableArrayOutput
	ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext(context.Context) GetFunctionSecretEnvironmentVariableArrayOutput
}

GetFunctionSecretEnvironmentVariableArrayInput is an input type that accepts GetFunctionSecretEnvironmentVariableArray and GetFunctionSecretEnvironmentVariableArrayOutput values. You can construct a concrete instance of `GetFunctionSecretEnvironmentVariableArrayInput` via:

GetFunctionSecretEnvironmentVariableArray{ GetFunctionSecretEnvironmentVariableArgs{...} }

type GetFunctionSecretEnvironmentVariableArrayOutput added in v6.12.0

type GetFunctionSecretEnvironmentVariableArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionSecretEnvironmentVariableArrayOutput) ElementType added in v6.12.0

func (GetFunctionSecretEnvironmentVariableArrayOutput) Index added in v6.12.0

func (GetFunctionSecretEnvironmentVariableArrayOutput) ToGetFunctionSecretEnvironmentVariableArrayOutput added in v6.12.0

func (o GetFunctionSecretEnvironmentVariableArrayOutput) ToGetFunctionSecretEnvironmentVariableArrayOutput() GetFunctionSecretEnvironmentVariableArrayOutput

func (GetFunctionSecretEnvironmentVariableArrayOutput) ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext added in v6.12.0

func (o GetFunctionSecretEnvironmentVariableArrayOutput) ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) GetFunctionSecretEnvironmentVariableArrayOutput

func (GetFunctionSecretEnvironmentVariableArrayOutput) ToOutput added in v6.65.1

type GetFunctionSecretEnvironmentVariableInput added in v6.12.0

type GetFunctionSecretEnvironmentVariableInput interface {
	pulumi.Input

	ToGetFunctionSecretEnvironmentVariableOutput() GetFunctionSecretEnvironmentVariableOutput
	ToGetFunctionSecretEnvironmentVariableOutputWithContext(context.Context) GetFunctionSecretEnvironmentVariableOutput
}

GetFunctionSecretEnvironmentVariableInput is an input type that accepts GetFunctionSecretEnvironmentVariableArgs and GetFunctionSecretEnvironmentVariableOutput values. You can construct a concrete instance of `GetFunctionSecretEnvironmentVariableInput` via:

GetFunctionSecretEnvironmentVariableArgs{...}

type GetFunctionSecretEnvironmentVariableOutput added in v6.12.0

type GetFunctionSecretEnvironmentVariableOutput struct{ *pulumi.OutputState }

func (GetFunctionSecretEnvironmentVariableOutput) ElementType added in v6.12.0

func (GetFunctionSecretEnvironmentVariableOutput) Key added in v6.12.0

func (GetFunctionSecretEnvironmentVariableOutput) ProjectId added in v6.12.0

func (GetFunctionSecretEnvironmentVariableOutput) Secret added in v6.12.0

func (GetFunctionSecretEnvironmentVariableOutput) ToGetFunctionSecretEnvironmentVariableOutput added in v6.12.0

func (o GetFunctionSecretEnvironmentVariableOutput) ToGetFunctionSecretEnvironmentVariableOutput() GetFunctionSecretEnvironmentVariableOutput

func (GetFunctionSecretEnvironmentVariableOutput) ToGetFunctionSecretEnvironmentVariableOutputWithContext added in v6.12.0

func (o GetFunctionSecretEnvironmentVariableOutput) ToGetFunctionSecretEnvironmentVariableOutputWithContext(ctx context.Context) GetFunctionSecretEnvironmentVariableOutput

func (GetFunctionSecretEnvironmentVariableOutput) ToOutput added in v6.65.1

func (GetFunctionSecretEnvironmentVariableOutput) Version added in v6.12.0

type GetFunctionSecretVolume added in v6.12.0

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

type GetFunctionSecretVolumeArgs added in v6.12.0

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

func (GetFunctionSecretVolumeArgs) ElementType added in v6.12.0

func (GetFunctionSecretVolumeArgs) ToGetFunctionSecretVolumeOutput added in v6.12.0

func (i GetFunctionSecretVolumeArgs) ToGetFunctionSecretVolumeOutput() GetFunctionSecretVolumeOutput

func (GetFunctionSecretVolumeArgs) ToGetFunctionSecretVolumeOutputWithContext added in v6.12.0

func (i GetFunctionSecretVolumeArgs) ToGetFunctionSecretVolumeOutputWithContext(ctx context.Context) GetFunctionSecretVolumeOutput

func (GetFunctionSecretVolumeArgs) ToOutput added in v6.65.1

type GetFunctionSecretVolumeArray added in v6.12.0

type GetFunctionSecretVolumeArray []GetFunctionSecretVolumeInput

func (GetFunctionSecretVolumeArray) ElementType added in v6.12.0

func (GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutput added in v6.12.0

func (i GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutput() GetFunctionSecretVolumeArrayOutput

func (GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutputWithContext added in v6.12.0

func (i GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutputWithContext(ctx context.Context) GetFunctionSecretVolumeArrayOutput

func (GetFunctionSecretVolumeArray) ToOutput added in v6.65.1

type GetFunctionSecretVolumeArrayInput added in v6.12.0

type GetFunctionSecretVolumeArrayInput interface {
	pulumi.Input

	ToGetFunctionSecretVolumeArrayOutput() GetFunctionSecretVolumeArrayOutput
	ToGetFunctionSecretVolumeArrayOutputWithContext(context.Context) GetFunctionSecretVolumeArrayOutput
}

GetFunctionSecretVolumeArrayInput is an input type that accepts GetFunctionSecretVolumeArray and GetFunctionSecretVolumeArrayOutput values. You can construct a concrete instance of `GetFunctionSecretVolumeArrayInput` via:

GetFunctionSecretVolumeArray{ GetFunctionSecretVolumeArgs{...} }

type GetFunctionSecretVolumeArrayOutput added in v6.12.0

type GetFunctionSecretVolumeArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionSecretVolumeArrayOutput) ElementType added in v6.12.0

func (GetFunctionSecretVolumeArrayOutput) Index added in v6.12.0

func (GetFunctionSecretVolumeArrayOutput) ToGetFunctionSecretVolumeArrayOutput added in v6.12.0

func (o GetFunctionSecretVolumeArrayOutput) ToGetFunctionSecretVolumeArrayOutput() GetFunctionSecretVolumeArrayOutput

func (GetFunctionSecretVolumeArrayOutput) ToGetFunctionSecretVolumeArrayOutputWithContext added in v6.12.0

func (o GetFunctionSecretVolumeArrayOutput) ToGetFunctionSecretVolumeArrayOutputWithContext(ctx context.Context) GetFunctionSecretVolumeArrayOutput

func (GetFunctionSecretVolumeArrayOutput) ToOutput added in v6.65.1

type GetFunctionSecretVolumeInput added in v6.12.0

type GetFunctionSecretVolumeInput interface {
	pulumi.Input

	ToGetFunctionSecretVolumeOutput() GetFunctionSecretVolumeOutput
	ToGetFunctionSecretVolumeOutputWithContext(context.Context) GetFunctionSecretVolumeOutput
}

GetFunctionSecretVolumeInput is an input type that accepts GetFunctionSecretVolumeArgs and GetFunctionSecretVolumeOutput values. You can construct a concrete instance of `GetFunctionSecretVolumeInput` via:

GetFunctionSecretVolumeArgs{...}

type GetFunctionSecretVolumeOutput added in v6.12.0

type GetFunctionSecretVolumeOutput struct{ *pulumi.OutputState }

func (GetFunctionSecretVolumeOutput) ElementType added in v6.12.0

func (GetFunctionSecretVolumeOutput) MountPath added in v6.12.0

func (GetFunctionSecretVolumeOutput) ProjectId added in v6.12.0

func (GetFunctionSecretVolumeOutput) Secret added in v6.12.0

func (GetFunctionSecretVolumeOutput) ToGetFunctionSecretVolumeOutput added in v6.12.0

func (o GetFunctionSecretVolumeOutput) ToGetFunctionSecretVolumeOutput() GetFunctionSecretVolumeOutput

func (GetFunctionSecretVolumeOutput) ToGetFunctionSecretVolumeOutputWithContext added in v6.12.0

func (o GetFunctionSecretVolumeOutput) ToGetFunctionSecretVolumeOutputWithContext(ctx context.Context) GetFunctionSecretVolumeOutput

func (GetFunctionSecretVolumeOutput) ToOutput added in v6.65.1

func (GetFunctionSecretVolumeOutput) Versions added in v6.12.0

type GetFunctionSecretVolumeVersion added in v6.12.0

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

type GetFunctionSecretVolumeVersionArgs added in v6.12.0

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

func (GetFunctionSecretVolumeVersionArgs) ElementType added in v6.12.0

func (GetFunctionSecretVolumeVersionArgs) ToGetFunctionSecretVolumeVersionOutput added in v6.12.0

func (i GetFunctionSecretVolumeVersionArgs) ToGetFunctionSecretVolumeVersionOutput() GetFunctionSecretVolumeVersionOutput

func (GetFunctionSecretVolumeVersionArgs) ToGetFunctionSecretVolumeVersionOutputWithContext added in v6.12.0

func (i GetFunctionSecretVolumeVersionArgs) ToGetFunctionSecretVolumeVersionOutputWithContext(ctx context.Context) GetFunctionSecretVolumeVersionOutput

func (GetFunctionSecretVolumeVersionArgs) ToOutput added in v6.65.1

type GetFunctionSecretVolumeVersionArray added in v6.12.0

type GetFunctionSecretVolumeVersionArray []GetFunctionSecretVolumeVersionInput

func (GetFunctionSecretVolumeVersionArray) ElementType added in v6.12.0

func (GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutput added in v6.12.0

func (i GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutput() GetFunctionSecretVolumeVersionArrayOutput

func (GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutputWithContext added in v6.12.0

func (i GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutputWithContext(ctx context.Context) GetFunctionSecretVolumeVersionArrayOutput

func (GetFunctionSecretVolumeVersionArray) ToOutput added in v6.65.1

type GetFunctionSecretVolumeVersionArrayInput added in v6.12.0

type GetFunctionSecretVolumeVersionArrayInput interface {
	pulumi.Input

	ToGetFunctionSecretVolumeVersionArrayOutput() GetFunctionSecretVolumeVersionArrayOutput
	ToGetFunctionSecretVolumeVersionArrayOutputWithContext(context.Context) GetFunctionSecretVolumeVersionArrayOutput
}

GetFunctionSecretVolumeVersionArrayInput is an input type that accepts GetFunctionSecretVolumeVersionArray and GetFunctionSecretVolumeVersionArrayOutput values. You can construct a concrete instance of `GetFunctionSecretVolumeVersionArrayInput` via:

GetFunctionSecretVolumeVersionArray{ GetFunctionSecretVolumeVersionArgs{...} }

type GetFunctionSecretVolumeVersionArrayOutput added in v6.12.0

type GetFunctionSecretVolumeVersionArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionSecretVolumeVersionArrayOutput) ElementType added in v6.12.0

func (GetFunctionSecretVolumeVersionArrayOutput) Index added in v6.12.0

func (GetFunctionSecretVolumeVersionArrayOutput) ToGetFunctionSecretVolumeVersionArrayOutput added in v6.12.0

func (o GetFunctionSecretVolumeVersionArrayOutput) ToGetFunctionSecretVolumeVersionArrayOutput() GetFunctionSecretVolumeVersionArrayOutput

func (GetFunctionSecretVolumeVersionArrayOutput) ToGetFunctionSecretVolumeVersionArrayOutputWithContext added in v6.12.0

func (o GetFunctionSecretVolumeVersionArrayOutput) ToGetFunctionSecretVolumeVersionArrayOutputWithContext(ctx context.Context) GetFunctionSecretVolumeVersionArrayOutput

func (GetFunctionSecretVolumeVersionArrayOutput) ToOutput added in v6.65.1

type GetFunctionSecretVolumeVersionInput added in v6.12.0

type GetFunctionSecretVolumeVersionInput interface {
	pulumi.Input

	ToGetFunctionSecretVolumeVersionOutput() GetFunctionSecretVolumeVersionOutput
	ToGetFunctionSecretVolumeVersionOutputWithContext(context.Context) GetFunctionSecretVolumeVersionOutput
}

GetFunctionSecretVolumeVersionInput is an input type that accepts GetFunctionSecretVolumeVersionArgs and GetFunctionSecretVolumeVersionOutput values. You can construct a concrete instance of `GetFunctionSecretVolumeVersionInput` via:

GetFunctionSecretVolumeVersionArgs{...}

type GetFunctionSecretVolumeVersionOutput added in v6.12.0

type GetFunctionSecretVolumeVersionOutput struct{ *pulumi.OutputState }

func (GetFunctionSecretVolumeVersionOutput) ElementType added in v6.12.0

func (GetFunctionSecretVolumeVersionOutput) Path added in v6.12.0

func (GetFunctionSecretVolumeVersionOutput) ToGetFunctionSecretVolumeVersionOutput added in v6.12.0

func (o GetFunctionSecretVolumeVersionOutput) ToGetFunctionSecretVolumeVersionOutput() GetFunctionSecretVolumeVersionOutput

func (GetFunctionSecretVolumeVersionOutput) ToGetFunctionSecretVolumeVersionOutputWithContext added in v6.12.0

func (o GetFunctionSecretVolumeVersionOutput) ToGetFunctionSecretVolumeVersionOutputWithContext(ctx context.Context) GetFunctionSecretVolumeVersionOutput

func (GetFunctionSecretVolumeVersionOutput) ToOutput added in v6.65.1

func (GetFunctionSecretVolumeVersionOutput) Version added in v6.12.0

type GetFunctionSourceRepository

type GetFunctionSourceRepository struct {
	DeployedUrl string `pulumi:"deployedUrl"`
	// The URL pointing to the hosted repository where the function is defined.
	Url string `pulumi:"url"`
}

type GetFunctionSourceRepositoryArgs

type GetFunctionSourceRepositoryArgs struct {
	DeployedUrl pulumi.StringInput `pulumi:"deployedUrl"`
	// The URL pointing to the hosted repository where the function is defined.
	Url pulumi.StringInput `pulumi:"url"`
}

func (GetFunctionSourceRepositoryArgs) ElementType

func (GetFunctionSourceRepositoryArgs) ToGetFunctionSourceRepositoryOutput

func (i GetFunctionSourceRepositoryArgs) ToGetFunctionSourceRepositoryOutput() GetFunctionSourceRepositoryOutput

func (GetFunctionSourceRepositoryArgs) ToGetFunctionSourceRepositoryOutputWithContext

func (i GetFunctionSourceRepositoryArgs) ToGetFunctionSourceRepositoryOutputWithContext(ctx context.Context) GetFunctionSourceRepositoryOutput

func (GetFunctionSourceRepositoryArgs) ToOutput added in v6.65.1

type GetFunctionSourceRepositoryArray

type GetFunctionSourceRepositoryArray []GetFunctionSourceRepositoryInput

func (GetFunctionSourceRepositoryArray) ElementType

func (GetFunctionSourceRepositoryArray) ToGetFunctionSourceRepositoryArrayOutput

func (i GetFunctionSourceRepositoryArray) ToGetFunctionSourceRepositoryArrayOutput() GetFunctionSourceRepositoryArrayOutput

func (GetFunctionSourceRepositoryArray) ToGetFunctionSourceRepositoryArrayOutputWithContext

func (i GetFunctionSourceRepositoryArray) ToGetFunctionSourceRepositoryArrayOutputWithContext(ctx context.Context) GetFunctionSourceRepositoryArrayOutput

func (GetFunctionSourceRepositoryArray) ToOutput added in v6.65.1

type GetFunctionSourceRepositoryArrayInput

type GetFunctionSourceRepositoryArrayInput interface {
	pulumi.Input

	ToGetFunctionSourceRepositoryArrayOutput() GetFunctionSourceRepositoryArrayOutput
	ToGetFunctionSourceRepositoryArrayOutputWithContext(context.Context) GetFunctionSourceRepositoryArrayOutput
}

GetFunctionSourceRepositoryArrayInput is an input type that accepts GetFunctionSourceRepositoryArray and GetFunctionSourceRepositoryArrayOutput values. You can construct a concrete instance of `GetFunctionSourceRepositoryArrayInput` via:

GetFunctionSourceRepositoryArray{ GetFunctionSourceRepositoryArgs{...} }

type GetFunctionSourceRepositoryArrayOutput

type GetFunctionSourceRepositoryArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionSourceRepositoryArrayOutput) ElementType

func (GetFunctionSourceRepositoryArrayOutput) Index

func (GetFunctionSourceRepositoryArrayOutput) ToGetFunctionSourceRepositoryArrayOutput

func (o GetFunctionSourceRepositoryArrayOutput) ToGetFunctionSourceRepositoryArrayOutput() GetFunctionSourceRepositoryArrayOutput

func (GetFunctionSourceRepositoryArrayOutput) ToGetFunctionSourceRepositoryArrayOutputWithContext

func (o GetFunctionSourceRepositoryArrayOutput) ToGetFunctionSourceRepositoryArrayOutputWithContext(ctx context.Context) GetFunctionSourceRepositoryArrayOutput

func (GetFunctionSourceRepositoryArrayOutput) ToOutput added in v6.65.1

type GetFunctionSourceRepositoryInput

type GetFunctionSourceRepositoryInput interface {
	pulumi.Input

	ToGetFunctionSourceRepositoryOutput() GetFunctionSourceRepositoryOutput
	ToGetFunctionSourceRepositoryOutputWithContext(context.Context) GetFunctionSourceRepositoryOutput
}

GetFunctionSourceRepositoryInput is an input type that accepts GetFunctionSourceRepositoryArgs and GetFunctionSourceRepositoryOutput values. You can construct a concrete instance of `GetFunctionSourceRepositoryInput` via:

GetFunctionSourceRepositoryArgs{...}

type GetFunctionSourceRepositoryOutput

type GetFunctionSourceRepositoryOutput struct{ *pulumi.OutputState }

func (GetFunctionSourceRepositoryOutput) DeployedUrl

func (GetFunctionSourceRepositoryOutput) ElementType

func (GetFunctionSourceRepositoryOutput) ToGetFunctionSourceRepositoryOutput

func (o GetFunctionSourceRepositoryOutput) ToGetFunctionSourceRepositoryOutput() GetFunctionSourceRepositoryOutput

func (GetFunctionSourceRepositoryOutput) ToGetFunctionSourceRepositoryOutputWithContext

func (o GetFunctionSourceRepositoryOutput) ToGetFunctionSourceRepositoryOutputWithContext(ctx context.Context) GetFunctionSourceRepositoryOutput

func (GetFunctionSourceRepositoryOutput) ToOutput added in v6.65.1

func (GetFunctionSourceRepositoryOutput) Url

The URL pointing to the hosted repository where the function is defined.

type LookupFunctionArgs

type LookupFunctionArgs struct {
	// The name of a Cloud Function.
	//
	// ***
	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"`
	// The region in which the resource belongs. If it
	// is not provided, the provider region is used.
	Region *string `pulumi:"region"`
}

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 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"`
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified,
	// the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
	// region is specified, it is taken from the provider configuration.
	Region *string `pulumi:"region"`
}

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 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"`
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified,
	// the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
	// region is specified, it is taken from the provider configuration.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

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"`
	// (Required only by `cloudfunctions.FunctionIamPolicy`) The policy data generated by
	// a `organizations.getIAMPolicy` data source.
	PolicyData string `pulumi:"policyData"`
	Project    string `pulumi:"project"`
	Region     string `pulumi:"region"`
}

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 cloudfunction

## example

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfunctions.LookupFunctionIamPolicy(ctx, &cloudfunctions.LookupFunctionIamPolicyArgs{
			Project:       pulumi.StringRef(google_cloudfunctions_function.Function.Project),
			Region:        pulumi.StringRef(google_cloudfunctions_function.Function.Region),
			CloudFunction: google_cloudfunctions_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) PolicyData added in v6.59.0

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

func (LookupFunctionIamPolicyResultOutput) Project added in v6.59.0

func (LookupFunctionIamPolicyResultOutput) Region 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

type LookupFunctionOutputArgs struct {
	// The name of a Cloud Function.
	//
	// ***
	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"`
	// The region in which the resource belongs. If it
	// is not provided, the provider region is used.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

A collection of arguments for invoking getFunction.

func (LookupFunctionOutputArgs) ElementType

func (LookupFunctionOutputArgs) ElementType() reflect.Type

type LookupFunctionResult

type LookupFunctionResult struct {
	// Available memory (in MB) to the function.
	AvailableMemoryMb         int                    `pulumi:"availableMemoryMb"`
	BuildEnvironmentVariables map[string]interface{} `pulumi:"buildEnvironmentVariables"`
	BuildWorkerPool           string                 `pulumi:"buildWorkerPool"`
	// Description of the function.
	Description      string `pulumi:"description"`
	DockerRegistry   string `pulumi:"dockerRegistry"`
	DockerRepository string `pulumi:"dockerRepository"`
	// Name of a JavaScript function that will be executed when the Google Cloud Function is triggered.
	EntryPoint           string                 `pulumi:"entryPoint"`
	EnvironmentVariables map[string]interface{} `pulumi:"environmentVariables"`
	// A source that fires events in response to a condition in another service. Structure is documented below.
	EventTriggers             []GetFunctionEventTrigger `pulumi:"eventTriggers"`
	HttpsTriggerSecurityLevel string                    `pulumi:"httpsTriggerSecurityLevel"`
	// If function is triggered by HTTP, trigger URL is set here.
	HttpsTriggerUrl string `pulumi:"httpsTriggerUrl"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Controls what traffic can reach the function.
	IngressSettings string `pulumi:"ingressSettings"`
	KmsKeyName      string `pulumi:"kmsKeyName"`
	// A map of labels applied to this function.
	Labels map[string]interface{} `pulumi:"labels"`
	// The limit on the maximum number of function instances that may coexist at a given time. If unset or set to `0`, the API default will be used.
	MaxInstances int `pulumi:"maxInstances"`
	MinInstances int `pulumi:"minInstances"`
	// The name of the Cloud Function.
	Name    string  `pulumi:"name"`
	Project *string `pulumi:"project"`
	Region  *string `pulumi:"region"`
	// The runtime in which the function is running.
	Runtime                    string                                 `pulumi:"runtime"`
	SecretEnvironmentVariables []GetFunctionSecretEnvironmentVariable `pulumi:"secretEnvironmentVariables"`
	SecretVolumes              []GetFunctionSecretVolume              `pulumi:"secretVolumes"`
	// The service account email to be assumed by the cloud function.
	ServiceAccountEmail string `pulumi:"serviceAccountEmail"`
	// The GCS bucket containing the zip archive which contains the function.
	SourceArchiveBucket string `pulumi:"sourceArchiveBucket"`
	// The source archive object (file) in archive bucket.
	SourceArchiveObject string `pulumi:"sourceArchiveObject"`
	// The URL of the Cloud Source Repository that the function is deployed from. Structure is documented below.
	SourceRepositories []GetFunctionSourceRepository `pulumi:"sourceRepositories"`
	Status             string                        `pulumi:"status"`
	// Function execution timeout (in seconds).
	Timeout int `pulumi:"timeout"`
	// If function is triggered by HTTP, this boolean is set.
	TriggerHttp bool `pulumi:"triggerHttp"`
	// The VPC Network Connector that this cloud function can connect to.
	VpcConnector string `pulumi:"vpcConnector"`
	// The egress settings for the connector, controlling what traffic is diverted through it.
	VpcConnectorEgressSettings string `pulumi:"vpcConnectorEgressSettings"`
}

A collection of values returned by getFunction.

func LookupFunction

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

Get information about a Google Cloud Function. For more information see the [official documentation](https://cloud.google.com/functions/docs/) and [API](https://cloud.google.com/functions/docs/apis).

## Example Usage

```go package main

import (

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

)

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

```

type LookupFunctionResultOutput

type LookupFunctionResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFunction.

func (LookupFunctionResultOutput) AvailableMemoryMb

func (o LookupFunctionResultOutput) AvailableMemoryMb() pulumi.IntOutput

Available memory (in MB) to the function.

func (LookupFunctionResultOutput) BuildEnvironmentVariables

func (o LookupFunctionResultOutput) BuildEnvironmentVariables() pulumi.MapOutput

func (LookupFunctionResultOutput) BuildWorkerPool added in v6.39.0

func (o LookupFunctionResultOutput) BuildWorkerPool() pulumi.StringOutput

func (LookupFunctionResultOutput) Description

Description of the function.

func (LookupFunctionResultOutput) DockerRegistry added in v6.26.0

func (o LookupFunctionResultOutput) DockerRegistry() pulumi.StringOutput

func (LookupFunctionResultOutput) DockerRepository added in v6.24.0

func (o LookupFunctionResultOutput) DockerRepository() pulumi.StringOutput

func (LookupFunctionResultOutput) ElementType

func (LookupFunctionResultOutput) ElementType() reflect.Type

func (LookupFunctionResultOutput) EntryPoint

Name of a JavaScript function that will be executed when the Google Cloud Function is triggered.

func (LookupFunctionResultOutput) EnvironmentVariables

func (o LookupFunctionResultOutput) EnvironmentVariables() pulumi.MapOutput

func (LookupFunctionResultOutput) EventTriggers

A source that fires events in response to a condition in another service. Structure is documented below.

func (LookupFunctionResultOutput) HttpsTriggerSecurityLevel added in v6.25.0

func (o LookupFunctionResultOutput) HttpsTriggerSecurityLevel() pulumi.StringOutput

func (LookupFunctionResultOutput) HttpsTriggerUrl

func (o LookupFunctionResultOutput) HttpsTriggerUrl() pulumi.StringOutput

If function is triggered by HTTP, trigger URL is set here.

func (LookupFunctionResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupFunctionResultOutput) IngressSettings

func (o LookupFunctionResultOutput) IngressSettings() pulumi.StringOutput

Controls what traffic can reach the function.

func (LookupFunctionResultOutput) KmsKeyName added in v6.24.0

func (LookupFunctionResultOutput) Labels

A map of labels applied to this function.

func (LookupFunctionResultOutput) MaxInstances

func (o LookupFunctionResultOutput) MaxInstances() pulumi.IntOutput

The limit on the maximum number of function instances that may coexist at a given time. If unset or set to `0`, the API default will be used.

func (LookupFunctionResultOutput) MinInstances added in v6.6.0

func (o LookupFunctionResultOutput) MinInstances() pulumi.IntOutput

func (LookupFunctionResultOutput) Name

The name of the Cloud Function.

func (LookupFunctionResultOutput) Project

func (LookupFunctionResultOutput) Region

func (LookupFunctionResultOutput) Runtime

The runtime in which the function is running.

func (LookupFunctionResultOutput) SecretEnvironmentVariables added in v6.12.0

func (LookupFunctionResultOutput) SecretVolumes added in v6.12.0

func (LookupFunctionResultOutput) ServiceAccountEmail

func (o LookupFunctionResultOutput) ServiceAccountEmail() pulumi.StringOutput

The service account email to be assumed by the cloud function.

func (LookupFunctionResultOutput) SourceArchiveBucket

func (o LookupFunctionResultOutput) SourceArchiveBucket() pulumi.StringOutput

The GCS bucket containing the zip archive which contains the function.

func (LookupFunctionResultOutput) SourceArchiveObject

func (o LookupFunctionResultOutput) SourceArchiveObject() pulumi.StringOutput

The source archive object (file) in archive bucket.

func (LookupFunctionResultOutput) SourceRepositories

The URL of the Cloud Source Repository that the function is deployed from. Structure is documented below.

func (LookupFunctionResultOutput) Status added in v6.57.0

func (LookupFunctionResultOutput) Timeout

Function execution timeout (in seconds).

func (LookupFunctionResultOutput) ToLookupFunctionResultOutput

func (o LookupFunctionResultOutput) ToLookupFunctionResultOutput() LookupFunctionResultOutput

func (LookupFunctionResultOutput) ToLookupFunctionResultOutputWithContext

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

func (LookupFunctionResultOutput) ToOutput added in v6.65.1

func (LookupFunctionResultOutput) TriggerHttp

If function is triggered by HTTP, this boolean is set.

func (LookupFunctionResultOutput) VpcConnector

The VPC Network Connector that this cloud function can connect to.

func (LookupFunctionResultOutput) VpcConnectorEgressSettings

func (o LookupFunctionResultOutput) VpcConnectorEgressSettings() pulumi.StringOutput

The egress settings for the connector, controlling what traffic is diverted through it.

Jump to

Keyboard shortcuts

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