cloudfunctions

package
v7.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

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 ARTIFACT_REGISTRY (default) and CONTAINER_REGISTRY.
	DockerRegistry pulumi.StringOutput `pulumi:"dockerRegistry"`
	// User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build. May optionally be encrypted with a customer-managed encryption key (CMEK). If unspecified and `dockerRegistry` is not explicitly set to `CONTAINER_REGISTRY`, GCF will create and use a default Artifact Registry repository named 'gcf-artifacts' in the region.
	DockerRepository pulumi.StringPtrOutput `pulumi:"dockerRepository"`
	// All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
	EffectiveLabels pulumi.StringMapOutput `pulumi:"effectiveLabels"`
	// 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.
	//
	// **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
	// Please refer to the field 'effective_labels' for all of the labels present on the resource.
	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"`
	// The combination of labels configured directly on the resource and default labels configured on the provider.
	PulumiLabels pulumi.StringMapOutput `pulumi:"pulumiLabels"`
	// 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 version identifier of the Cloud Function. Each deployment attempt results in a new version of a function being
	// created.
	VersionId pulumi.StringOutput `pulumi:"versionId"`
	// 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/v7/go/gcp/cloudfunctions"
"github.com/pulumi/pulumi-gcp/sdk/v7/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{
			Name:     pulumi.String("test-bucket"),
			Location: pulumi.String("US"),
		})
		if err != nil {
			return err
		}
		archive, err := storage.NewBucketObject(ctx, "archive", &storage.BucketObjectArgs{
			Name:   pulumi.String("index.zip"),
			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{
			Name:                pulumi.String("function-test"),
			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
		}
		// IAM entry for all users to invoke the function
		_, 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/v7/go/gcp/cloudfunctions"
"github.com/pulumi/pulumi-gcp/sdk/v7/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{
			Name:     pulumi.String("test-bucket"),
			Location: pulumi.String("US"),
		})
		if err != nil {
			return err
		}
		archive, err := storage.NewBucketObject(ctx, "archive", &storage.BucketObjectArgs{
			Name:   pulumi.String("index.zip"),
			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{
			Name:                      pulumi.String("function-test"),
			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
		}
		// IAM entry for a single user to invoke the function
		_, 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.

* `{{project}}/{{region}}/{{name}}`

* `{{name}}`

When using the `pulumi import` command, Functions can be imported using one of the formats above. For example:

```sh $ pulumi import gcp:cloudfunctions/function:Function default {{project}}/{{region}}/{{name}} ```

```sh $ pulumi import gcp:cloudfunctions/function:Function default {{name}} ```

func GetFunction

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

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

func NewFunction

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

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

func (*Function) ElementType

func (*Function) ElementType() reflect.Type

func (*Function) ToFunctionOutput

func (i *Function) ToFunctionOutput() FunctionOutput

func (*Function) ToFunctionOutputWithContext

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

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 ARTIFACT_REGISTRY (default) and CONTAINER_REGISTRY.
	DockerRegistry pulumi.StringPtrInput
	// User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build. May optionally be encrypted with a customer-managed encryption key (CMEK). If unspecified and `dockerRegistry` is not explicitly set to `CONTAINER_REGISTRY`, GCF will create and use a default Artifact Registry repository named 'gcf-artifacts' in the region.
	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.
	//
	// **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
	// Please refer to the field 'effective_labels' for all of the labels present on the resource.
	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

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

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

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

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

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

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

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

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"`
	// 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"
	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.
	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/v7/go/gcp/cloudfunctions"
"github.com/pulumi/pulumi-gcp/sdk/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(function.Name),
			Role:          pulumi.String("roles/viewer"),
			Member:        pulumi.String("user:jane@example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudfunctions\_function\_iam\_policy

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudfunctions"
"github.com/pulumi/pulumi-gcp/sdk/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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 identifiers: the 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 identifiers: the 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

type FunctionIamBindingArgs

type FunctionIamBindingArgs struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringInput
	Condition     FunctionIamBindingConditionPtrInput
	// 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"
	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.
	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

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

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

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

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

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

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

type FunctionIamBindingOutput

type FunctionIamBindingOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingOutput) CloudFunction

func (o FunctionIamBindingOutput) CloudFunction() pulumi.StringOutput

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

func (FunctionIamBindingOutput) Condition

func (FunctionIamBindingOutput) ElementType

func (FunctionIamBindingOutput) ElementType() reflect.Type

func (FunctionIamBindingOutput) Etag

(Computed) The etag of the IAM policy.

func (FunctionIamBindingOutput) Members

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

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.

func (FunctionIamBindingOutput) Region

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

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

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
	// 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"
	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.
	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"`
	// 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"
	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.
	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/v7/go/gcp/cloudfunctions"
"github.com/pulumi/pulumi-gcp/sdk/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(function.Name),
			Role:          pulumi.String("roles/viewer"),
			Member:        pulumi.String("user:jane@example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudfunctions\_function\_iam\_policy

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudfunctions"
"github.com/pulumi/pulumi-gcp/sdk/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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 identifiers: the 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 identifiers: the 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

type FunctionIamMemberArgs

type FunctionIamMemberArgs struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringInput
	Condition     FunctionIamMemberConditionPtrInput
	// 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"
	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.
	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

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

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

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

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

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

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

type FunctionIamMemberOutput

type FunctionIamMemberOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberOutput) CloudFunction

func (o FunctionIamMemberOutput) CloudFunction() pulumi.StringOutput

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

func (FunctionIamMemberOutput) Condition

func (FunctionIamMemberOutput) ElementType

func (FunctionIamMemberOutput) ElementType() reflect.Type

func (FunctionIamMemberOutput) Etag

(Computed) The etag of the IAM policy.

func (FunctionIamMemberOutput) Member

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

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.

func (FunctionIamMemberOutput) Region

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

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

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
	// 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"
	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.
	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.
	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/v7/go/gcp/cloudfunctions"
"github.com/pulumi/pulumi-gcp/sdk/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(function.Name),
			Role:          pulumi.String("roles/viewer"),
			Member:        pulumi.String("user:jane@example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## google\_cloudfunctions\_function\_iam\_policy

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudfunctions"
"github.com/pulumi/pulumi-gcp/sdk/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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/v7/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(function.Project),
			Region:        pulumi.Any(function.Region),
			CloudFunction: pulumi.Any(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 identifiers: the 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 identifiers: the 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

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

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

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

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

type FunctionIamPolicyOutput

type FunctionIamPolicyOutput struct{ *pulumi.OutputState }

func (FunctionIamPolicyOutput) CloudFunction

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

(Computed) The etag of the IAM policy.

func (FunctionIamPolicyOutput) PolicyData

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

func (FunctionIamPolicyOutput) Project

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.

func (FunctionIamPolicyOutput) Region

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

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

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

type FunctionOutput

type FunctionOutput struct{ *pulumi.OutputState }

func (FunctionOutput) AvailableMemoryMb

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

func (o FunctionOutput) BuildEnvironmentVariables() pulumi.MapOutput

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

func (FunctionOutput) BuildWorkerPool

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

func (o FunctionOutput) Description() pulumi.StringPtrOutput

Description of the function.

func (FunctionOutput) DockerRegistry

func (o FunctionOutput) DockerRegistry() pulumi.StringOutput

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

func (FunctionOutput) DockerRepository

func (o FunctionOutput) DockerRepository() pulumi.StringPtrOutput

User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build. May optionally be encrypted with a customer-managed encryption key (CMEK). If unspecified and `dockerRegistry` is not explicitly set to `CONTAINER_REGISTRY`, GCF will create and use a default Artifact Registry repository named 'gcf-artifacts' in the region.

func (FunctionOutput) EffectiveLabels

func (o FunctionOutput) EffectiveLabels() pulumi.StringMapOutput

All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

func (FunctionOutput) ElementType

func (FunctionOutput) ElementType() reflect.Type

func (FunctionOutput) EntryPoint

func (o FunctionOutput) EntryPoint() pulumi.StringPtrOutput

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

func (FunctionOutput) EnvironmentVariables

func (o FunctionOutput) EnvironmentVariables() pulumi.MapOutput

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

func (FunctionOutput) EventTrigger

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

func (o FunctionOutput) HttpsTriggerSecurityLevel() pulumi.StringOutput

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

func (FunctionOutput) HttpsTriggerUrl

func (o FunctionOutput) HttpsTriggerUrl() pulumi.StringOutput

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

func (FunctionOutput) IngressSettings

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

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

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.

**Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.

func (FunctionOutput) MaxInstances

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

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

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

func (FunctionOutput) Project

func (o FunctionOutput) Project() pulumi.StringOutput

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

func (FunctionOutput) PulumiLabels

func (o FunctionOutput) PulumiLabels() pulumi.StringMapOutput

The combination of labels configured directly on the resource and default labels configured on the provider.

func (FunctionOutput) Region

func (o FunctionOutput) Region() pulumi.StringOutput

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

func (FunctionOutput) Runtime

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

func (o FunctionOutput) SecretEnvironmentVariables() FunctionSecretEnvironmentVariableArrayOutput

Secret environment variables configuration. Structure is documented below.

func (FunctionOutput) SecretVolumes

Secret volumes configuration. Structure is documented below.

func (FunctionOutput) ServiceAccountEmail

func (o FunctionOutput) ServiceAccountEmail() pulumi.StringOutput

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

func (FunctionOutput) SourceArchiveBucket

func (o FunctionOutput) SourceArchiveBucket() pulumi.StringPtrOutput

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

func (FunctionOutput) SourceArchiveObject

func (o FunctionOutput) SourceArchiveObject() pulumi.StringPtrOutput

The source archive object (file) in archive bucket.

func (FunctionOutput) SourceRepository

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

func (o FunctionOutput) Status() pulumi.StringOutput

Describes the current stage of a deployment.

func (FunctionOutput) Timeout

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

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) VersionId added in v7.11.0

func (o FunctionOutput) VersionId() pulumi.StringOutput

The version identifier of the Cloud Function. Each deployment attempt results in a new version of a function being created.

func (FunctionOutput) VpcConnector

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

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

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

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

func (FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutput

func (i FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutput() FunctionSecretEnvironmentVariableOutput

func (FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutputWithContext

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

type FunctionSecretEnvironmentVariableArray

type FunctionSecretEnvironmentVariableArray []FunctionSecretEnvironmentVariableInput

func (FunctionSecretEnvironmentVariableArray) ElementType

func (FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutput

func (i FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutput() FunctionSecretEnvironmentVariableArrayOutput

func (FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutputWithContext

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

type FunctionSecretEnvironmentVariableArrayInput

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

type FunctionSecretEnvironmentVariableArrayOutput struct{ *pulumi.OutputState }

func (FunctionSecretEnvironmentVariableArrayOutput) ElementType

func (FunctionSecretEnvironmentVariableArrayOutput) Index

func (FunctionSecretEnvironmentVariableArrayOutput) ToFunctionSecretEnvironmentVariableArrayOutput

func (o FunctionSecretEnvironmentVariableArrayOutput) ToFunctionSecretEnvironmentVariableArrayOutput() FunctionSecretEnvironmentVariableArrayOutput

func (FunctionSecretEnvironmentVariableArrayOutput) ToFunctionSecretEnvironmentVariableArrayOutputWithContext

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

type FunctionSecretEnvironmentVariableInput

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

type FunctionSecretEnvironmentVariableOutput struct{ *pulumi.OutputState }

func (FunctionSecretEnvironmentVariableOutput) ElementType

func (FunctionSecretEnvironmentVariableOutput) Key

Name of the environment variable.

func (FunctionSecretEnvironmentVariableOutput) ProjectId

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

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

func (FunctionSecretEnvironmentVariableOutput) ToFunctionSecretEnvironmentVariableOutput

func (o FunctionSecretEnvironmentVariableOutput) ToFunctionSecretEnvironmentVariableOutput() FunctionSecretEnvironmentVariableOutput

func (FunctionSecretEnvironmentVariableOutput) ToFunctionSecretEnvironmentVariableOutputWithContext

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

func (FunctionSecretEnvironmentVariableOutput) Version

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

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

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

func (FunctionSecretVolumeArgs) ElementType() reflect.Type

func (FunctionSecretVolumeArgs) ToFunctionSecretVolumeOutput

func (i FunctionSecretVolumeArgs) ToFunctionSecretVolumeOutput() FunctionSecretVolumeOutput

func (FunctionSecretVolumeArgs) ToFunctionSecretVolumeOutputWithContext

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

type FunctionSecretVolumeArray

type FunctionSecretVolumeArray []FunctionSecretVolumeInput

func (FunctionSecretVolumeArray) ElementType

func (FunctionSecretVolumeArray) ElementType() reflect.Type

func (FunctionSecretVolumeArray) ToFunctionSecretVolumeArrayOutput

func (i FunctionSecretVolumeArray) ToFunctionSecretVolumeArrayOutput() FunctionSecretVolumeArrayOutput

func (FunctionSecretVolumeArray) ToFunctionSecretVolumeArrayOutputWithContext

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

type FunctionSecretVolumeArrayInput

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

type FunctionSecretVolumeArrayOutput struct{ *pulumi.OutputState }

func (FunctionSecretVolumeArrayOutput) ElementType

func (FunctionSecretVolumeArrayOutput) Index

func (FunctionSecretVolumeArrayOutput) ToFunctionSecretVolumeArrayOutput

func (o FunctionSecretVolumeArrayOutput) ToFunctionSecretVolumeArrayOutput() FunctionSecretVolumeArrayOutput

func (FunctionSecretVolumeArrayOutput) ToFunctionSecretVolumeArrayOutputWithContext

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

type FunctionSecretVolumeInput

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

type FunctionSecretVolumeOutput struct{ *pulumi.OutputState }

func (FunctionSecretVolumeOutput) ElementType

func (FunctionSecretVolumeOutput) ElementType() reflect.Type

func (FunctionSecretVolumeOutput) MountPath

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

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

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

func (FunctionSecretVolumeOutput) ToFunctionSecretVolumeOutput

func (o FunctionSecretVolumeOutput) ToFunctionSecretVolumeOutput() FunctionSecretVolumeOutput

func (FunctionSecretVolumeOutput) ToFunctionSecretVolumeOutputWithContext

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

func (FunctionSecretVolumeOutput) Versions

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

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

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

func (FunctionSecretVolumeVersionArgs) ToFunctionSecretVolumeVersionOutput

func (i FunctionSecretVolumeVersionArgs) ToFunctionSecretVolumeVersionOutput() FunctionSecretVolumeVersionOutput

func (FunctionSecretVolumeVersionArgs) ToFunctionSecretVolumeVersionOutputWithContext

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

type FunctionSecretVolumeVersionArray

type FunctionSecretVolumeVersionArray []FunctionSecretVolumeVersionInput

func (FunctionSecretVolumeVersionArray) ElementType

func (FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutput

func (i FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutput() FunctionSecretVolumeVersionArrayOutput

func (FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutputWithContext

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

type FunctionSecretVolumeVersionArrayInput

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

type FunctionSecretVolumeVersionArrayOutput struct{ *pulumi.OutputState }

func (FunctionSecretVolumeVersionArrayOutput) ElementType

func (FunctionSecretVolumeVersionArrayOutput) Index

func (FunctionSecretVolumeVersionArrayOutput) ToFunctionSecretVolumeVersionArrayOutput

func (o FunctionSecretVolumeVersionArrayOutput) ToFunctionSecretVolumeVersionArrayOutput() FunctionSecretVolumeVersionArrayOutput

func (FunctionSecretVolumeVersionArrayOutput) ToFunctionSecretVolumeVersionArrayOutputWithContext

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

type FunctionSecretVolumeVersionInput

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

type FunctionSecretVolumeVersionOutput struct{ *pulumi.OutputState }

func (FunctionSecretVolumeVersionOutput) ElementType

func (FunctionSecretVolumeVersionOutput) Path

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

func (o FunctionSecretVolumeVersionOutput) ToFunctionSecretVolumeVersionOutput() FunctionSecretVolumeVersionOutput

func (FunctionSecretVolumeVersionOutput) ToFunctionSecretVolumeVersionOutputWithContext

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

func (FunctionSecretVolumeVersionOutput) Version

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 {
	// The URL pointing to the hosted repository where the function was defined at the time of deployment.
	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 {
	// The URL pointing to the hosted repository where the function was defined at the time of deployment.
	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

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

The URL pointing to the hosted repository where the function was defined at the time of deployment.

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

The URL pointing to the hosted repository where the function was defined at the time of deployment.

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) 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 ARTIFACT_REGISTRY (default) and CONTAINER_REGISTRY.
	DockerRegistry pulumi.StringPtrInput
	// User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build. May optionally be encrypted with a customer-managed encryption key (CMEK). If unspecified and `dockerRegistry` is not explicitly set to `CONTAINER_REGISTRY`, GCF will create and use a default Artifact Registry repository named 'gcf-artifacts' in the region.
	DockerRepository pulumi.StringPtrInput
	// All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
	EffectiveLabels pulumi.StringMapInput
	// 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.
	//
	// **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
	// Please refer to the field 'effective_labels' for all of the labels present on the resource.
	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
	// The combination of labels configured directly on the resource and default labels configured on the provider.
	PulumiLabels pulumi.StringMapInput
	// 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 version identifier of the Cloud Function. Each deployment attempt results in a new version of a function being
	// created.
	VersionId pulumi.StringPtrInput
	// 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

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

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

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

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

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

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

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

type GetFunctionSecretEnvironmentVariable

type GetFunctionSecretEnvironmentVariable 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 GetFunctionSecretEnvironmentVariableArgs

type GetFunctionSecretEnvironmentVariableArgs 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.StringInput `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 (GetFunctionSecretEnvironmentVariableArgs) ElementType

func (GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutput

func (i GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutput() GetFunctionSecretEnvironmentVariableOutput

func (GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutputWithContext

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

type GetFunctionSecretEnvironmentVariableArray

type GetFunctionSecretEnvironmentVariableArray []GetFunctionSecretEnvironmentVariableInput

func (GetFunctionSecretEnvironmentVariableArray) ElementType

func (GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutput

func (i GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutput() GetFunctionSecretEnvironmentVariableArrayOutput

func (GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext

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

type GetFunctionSecretEnvironmentVariableArrayInput

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

type GetFunctionSecretEnvironmentVariableArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionSecretEnvironmentVariableArrayOutput) ElementType

func (GetFunctionSecretEnvironmentVariableArrayOutput) Index

func (GetFunctionSecretEnvironmentVariableArrayOutput) ToGetFunctionSecretEnvironmentVariableArrayOutput

func (o GetFunctionSecretEnvironmentVariableArrayOutput) ToGetFunctionSecretEnvironmentVariableArrayOutput() GetFunctionSecretEnvironmentVariableArrayOutput

func (GetFunctionSecretEnvironmentVariableArrayOutput) ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext

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

type GetFunctionSecretEnvironmentVariableInput

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

type GetFunctionSecretEnvironmentVariableOutput struct{ *pulumi.OutputState }

func (GetFunctionSecretEnvironmentVariableOutput) ElementType

func (GetFunctionSecretEnvironmentVariableOutput) Key

Name of the environment variable.

func (GetFunctionSecretEnvironmentVariableOutput) ProjectId

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 (GetFunctionSecretEnvironmentVariableOutput) Secret

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

func (GetFunctionSecretEnvironmentVariableOutput) ToGetFunctionSecretEnvironmentVariableOutput

func (o GetFunctionSecretEnvironmentVariableOutput) ToGetFunctionSecretEnvironmentVariableOutput() GetFunctionSecretEnvironmentVariableOutput

func (GetFunctionSecretEnvironmentVariableOutput) ToGetFunctionSecretEnvironmentVariableOutputWithContext

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

func (GetFunctionSecretEnvironmentVariableOutput) Version

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 GetFunctionSecretVolume

type GetFunctionSecretVolume 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.
	Versions []GetFunctionSecretVolumeVersion `pulumi:"versions"`
}

type GetFunctionSecretVolumeArgs

type GetFunctionSecretVolumeArgs 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.StringInput `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.
	Versions GetFunctionSecretVolumeVersionArrayInput `pulumi:"versions"`
}

func (GetFunctionSecretVolumeArgs) ElementType

func (GetFunctionSecretVolumeArgs) ToGetFunctionSecretVolumeOutput

func (i GetFunctionSecretVolumeArgs) ToGetFunctionSecretVolumeOutput() GetFunctionSecretVolumeOutput

func (GetFunctionSecretVolumeArgs) ToGetFunctionSecretVolumeOutputWithContext

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

type GetFunctionSecretVolumeArray

type GetFunctionSecretVolumeArray []GetFunctionSecretVolumeInput

func (GetFunctionSecretVolumeArray) ElementType

func (GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutput

func (i GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutput() GetFunctionSecretVolumeArrayOutput

func (GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutputWithContext

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

type GetFunctionSecretVolumeArrayInput

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

type GetFunctionSecretVolumeArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionSecretVolumeArrayOutput) ElementType

func (GetFunctionSecretVolumeArrayOutput) Index

func (GetFunctionSecretVolumeArrayOutput) ToGetFunctionSecretVolumeArrayOutput

func (o GetFunctionSecretVolumeArrayOutput) ToGetFunctionSecretVolumeArrayOutput() GetFunctionSecretVolumeArrayOutput

func (GetFunctionSecretVolumeArrayOutput) ToGetFunctionSecretVolumeArrayOutputWithContext

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

type GetFunctionSecretVolumeInput

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

type GetFunctionSecretVolumeOutput struct{ *pulumi.OutputState }

func (GetFunctionSecretVolumeOutput) ElementType

func (GetFunctionSecretVolumeOutput) MountPath

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 (GetFunctionSecretVolumeOutput) ProjectId

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 (GetFunctionSecretVolumeOutput) Secret

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

func (GetFunctionSecretVolumeOutput) ToGetFunctionSecretVolumeOutput

func (o GetFunctionSecretVolumeOutput) ToGetFunctionSecretVolumeOutput() GetFunctionSecretVolumeOutput

func (GetFunctionSecretVolumeOutput) ToGetFunctionSecretVolumeOutputWithContext

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

func (GetFunctionSecretVolumeOutput) Versions

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.

type GetFunctionSecretVolumeVersion

type GetFunctionSecretVolumeVersion 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 GetFunctionSecretVolumeVersionArgs

type GetFunctionSecretVolumeVersionArgs 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 (GetFunctionSecretVolumeVersionArgs) ElementType

func (GetFunctionSecretVolumeVersionArgs) ToGetFunctionSecretVolumeVersionOutput

func (i GetFunctionSecretVolumeVersionArgs) ToGetFunctionSecretVolumeVersionOutput() GetFunctionSecretVolumeVersionOutput

func (GetFunctionSecretVolumeVersionArgs) ToGetFunctionSecretVolumeVersionOutputWithContext

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

type GetFunctionSecretVolumeVersionArray

type GetFunctionSecretVolumeVersionArray []GetFunctionSecretVolumeVersionInput

func (GetFunctionSecretVolumeVersionArray) ElementType

func (GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutput

func (i GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutput() GetFunctionSecretVolumeVersionArrayOutput

func (GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutputWithContext

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

type GetFunctionSecretVolumeVersionArrayInput

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

type GetFunctionSecretVolumeVersionArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionSecretVolumeVersionArrayOutput) ElementType

func (GetFunctionSecretVolumeVersionArrayOutput) Index

func (GetFunctionSecretVolumeVersionArrayOutput) ToGetFunctionSecretVolumeVersionArrayOutput

func (o GetFunctionSecretVolumeVersionArrayOutput) ToGetFunctionSecretVolumeVersionArrayOutput() GetFunctionSecretVolumeVersionArrayOutput

func (GetFunctionSecretVolumeVersionArrayOutput) ToGetFunctionSecretVolumeVersionArrayOutputWithContext

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

type GetFunctionSecretVolumeVersionInput

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

type GetFunctionSecretVolumeVersionOutput struct{ *pulumi.OutputState }

func (GetFunctionSecretVolumeVersionOutput) ElementType

func (GetFunctionSecretVolumeVersionOutput) Path

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 (GetFunctionSecretVolumeVersionOutput) ToGetFunctionSecretVolumeVersionOutput

func (o GetFunctionSecretVolumeVersionOutput) ToGetFunctionSecretVolumeVersionOutput() GetFunctionSecretVolumeVersionOutput

func (GetFunctionSecretVolumeVersionOutput) ToGetFunctionSecretVolumeVersionOutputWithContext

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

func (GetFunctionSecretVolumeVersionOutput) Version

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 GetFunctionSourceRepository

type GetFunctionSourceRepository struct {
	// The URL pointing to the hosted repository where the function was defined at the time of deployment.
	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 {
	// The URL pointing to the hosted repository where the function was defined at the time of deployment.
	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

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

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

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

The URL pointing to the hosted repository where the function was defined at the time of deployment.

func (GetFunctionSourceRepositoryOutput) ElementType

func (GetFunctionSourceRepositoryOutput) ToGetFunctionSourceRepositoryOutput

func (o GetFunctionSourceRepositoryOutput) ToGetFunctionSourceRepositoryOutput() GetFunctionSourceRepositoryOutput

func (GetFunctionSourceRepositoryOutput) ToGetFunctionSourceRepositoryOutputWithContext

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

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

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

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

type LookupFunctionIamPolicyResult

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

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/v7/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(function.Project),
			Region:        pulumi.StringRef(function.Region),
			CloudFunction: function.Name,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupFunctionIamPolicyResultOutput

type LookupFunctionIamPolicyResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFunctionIamPolicy.

func (LookupFunctionIamPolicyResultOutput) CloudFunction

func (LookupFunctionIamPolicyResultOutput) ElementType

func (LookupFunctionIamPolicyResultOutput) Etag

(Computed) The etag of the IAM policy.

func (LookupFunctionIamPolicyResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupFunctionIamPolicyResultOutput) PolicyData

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

func (LookupFunctionIamPolicyResultOutput) Project

func (LookupFunctionIamPolicyResultOutput) Region

func (LookupFunctionIamPolicyResultOutput) ToLookupFunctionIamPolicyResultOutput

func (o LookupFunctionIamPolicyResultOutput) ToLookupFunctionIamPolicyResultOutput() LookupFunctionIamPolicyResultOutput

func (LookupFunctionIamPolicyResultOutput) ToLookupFunctionIamPolicyResultOutputWithContext

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

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"`
	EffectiveLabels  map[string]string `pulumi:"effectiveLabels"`
	// 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"`
	// All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
	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"`
	PulumiLabels map[string]string `pulumi:"pulumiLabels"`
	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"`
	VersionId   string `pulumi:"versionId"`
	// 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/v7/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

func (o LookupFunctionResultOutput) BuildWorkerPool() pulumi.StringOutput

func (LookupFunctionResultOutput) Description

Description of the function.

func (LookupFunctionResultOutput) DockerRegistry

func (o LookupFunctionResultOutput) DockerRegistry() pulumi.StringOutput

func (LookupFunctionResultOutput) DockerRepository

func (o LookupFunctionResultOutput) DockerRepository() pulumi.StringOutput

func (LookupFunctionResultOutput) EffectiveLabels

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

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

func (LookupFunctionResultOutput) Labels

All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

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

func (o LookupFunctionResultOutput) MinInstances() pulumi.IntOutput

func (LookupFunctionResultOutput) Name

The name of the Cloud Function.

func (LookupFunctionResultOutput) Project

func (LookupFunctionResultOutput) PulumiLabels

func (LookupFunctionResultOutput) Region

func (LookupFunctionResultOutput) Runtime

The runtime in which the function is running.

func (LookupFunctionResultOutput) SecretEnvironmentVariables

func (LookupFunctionResultOutput) SecretVolumes

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

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

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

func (LookupFunctionResultOutput) VersionId added in v7.11.0

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