cloudfunctionsv2

package
v6.29.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function struct {
	pulumi.CustomResourceState

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

## Example Usage ### Cloudfunctions2 Basic

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		bucket, err := storage.NewBucket(ctx, "bucket", &storage.BucketArgs{
			Location:                 pulumi.String("US"),
			UniformBucketLevelAccess: pulumi.Bool(true),
		}, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		object, err := storage.NewBucketObject(ctx, "object", &storage.BucketObjectArgs{
			Bucket: bucket.Name,
			Source: pulumi.NewFileAsset("path/to/index.zip"),
		}, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		_, err = cloudfunctionsv2.NewFunction(ctx, "terraform-test2", &cloudfunctionsv2.FunctionArgs{
			Location:    pulumi.String("us-central1"),
			Description: pulumi.String("a new function"),
			BuildConfig: &cloudfunctionsv2.FunctionBuildConfigArgs{
				Runtime:    pulumi.String("nodejs16"),
				EntryPoint: pulumi.String("helloHttp"),
				Source: &cloudfunctionsv2.FunctionBuildConfigSourceArgs{
					StorageSource: &cloudfunctionsv2.FunctionBuildConfigSourceStorageSourceArgs{
						Bucket: bucket.Name,
						Object: object.Name,
					},
				},
			},
			ServiceConfig: &cloudfunctionsv2.FunctionServiceConfigArgs{
				MaxInstanceCount: pulumi.Int(1),
				AvailableMemory:  pulumi.String("256M"),
				TimeoutSeconds:   pulumi.Int(60),
			},
		}, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Cloudfunctions2 Full

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		account, err := serviceAccount.NewAccount(ctx, "account", &serviceAccount.AccountArgs{
			AccountId:   pulumi.String("test-service-account"),
			DisplayName: pulumi.String("Test Service Account"),
		}, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		sub, err := pubsub.NewTopic(ctx, "sub", nil, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		bucket, err := storage.NewBucket(ctx, "bucket", &storage.BucketArgs{
			Location:                 pulumi.String("US"),
			UniformBucketLevelAccess: pulumi.Bool(true),
		}, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		object, err := storage.NewBucketObject(ctx, "object", &storage.BucketObjectArgs{
			Bucket: bucket.Name,
			Source: pulumi.NewFileAsset("path/to/index.zip"),
		}, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		_, err = cloudfunctionsv2.NewFunction(ctx, "terraform-test", &cloudfunctionsv2.FunctionArgs{
			Location:    pulumi.String("us-central1"),
			Description: pulumi.String("a new function"),
			BuildConfig: &cloudfunctionsv2.FunctionBuildConfigArgs{
				Runtime:    pulumi.String("nodejs16"),
				EntryPoint: pulumi.String("helloHttp"),
				EnvironmentVariables: pulumi.StringMap{
					"BUILD_CONFIG_TEST": pulumi.String("build_test"),
				},
				Source: &cloudfunctionsv2.FunctionBuildConfigSourceArgs{
					StorageSource: &cloudfunctionsv2.FunctionBuildConfigSourceStorageSourceArgs{
						Bucket: bucket.Name,
						Object: object.Name,
					},
				},
			},
			ServiceConfig: &cloudfunctionsv2.FunctionServiceConfigArgs{
				MaxInstanceCount: pulumi.Int(3),
				MinInstanceCount: pulumi.Int(1),
				AvailableMemory:  pulumi.String("256M"),
				TimeoutSeconds:   pulumi.Int(60),
				EnvironmentVariables: pulumi.StringMap{
					"SERVICE_CONFIG_TEST": pulumi.String("config_test"),
				},
				IngressSettings:            pulumi.String("ALLOW_INTERNAL_ONLY"),
				AllTrafficOnLatestRevision: pulumi.Bool(true),
				ServiceAccountEmail:        account.Email,
			},
			EventTrigger: &cloudfunctionsv2.FunctionEventTriggerArgs{
				TriggerRegion:       pulumi.String("us-central1"),
				EventType:           pulumi.String("google.cloud.pubsub.topic.v1.messagePublished"),
				PubsubTopic:         sub.ID(),
				RetryPolicy:         pulumi.String("RETRY_POLICY_RETRY"),
				ServiceAccountEmail: account.Email,
			},
		}, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

function can be imported using any of these accepted formats

```sh

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

```

```sh

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

```

```sh

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

```

func GetFunction

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

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

func NewFunction

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

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

func (*Function) ElementType

func (*Function) ElementType() reflect.Type

func (*Function) ToFunctionOutput

func (i *Function) ToFunctionOutput() FunctionOutput

func (*Function) ToFunctionOutputWithContext

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

type FunctionArgs

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

The set of arguments for constructing a Function resource.

func (FunctionArgs) ElementType

func (FunctionArgs) ElementType() reflect.Type

type FunctionArray

type FunctionArray []FunctionInput

func (FunctionArray) ElementType

func (FunctionArray) ElementType() reflect.Type

func (FunctionArray) ToFunctionArrayOutput

func (i FunctionArray) ToFunctionArrayOutput() FunctionArrayOutput

func (FunctionArray) ToFunctionArrayOutputWithContext

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

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 FunctionBuildConfig

type FunctionBuildConfig struct {
	// -
	// The Cloud Build name of the latest successful
	// deployment of the function.
	Build *string `pulumi:"build"`
	// User managed repository created in Artifact Registry optionally with a customer managed encryption key.
	DockerRepository *string `pulumi:"dockerRepository"`
	// The name of the function (as defined in source code) that will be executed.
	// Defaults to the resource name suffix, if not specified. For backward
	// compatibility, if function with given name is not found, then the system
	// will try to use function named "function". For Node.js this is name of a
	// function exported by the module specified in source_location.
	EntryPoint *string `pulumi:"entryPoint"`
	// Environment variables that shall be available during function execution.
	EnvironmentVariables map[string]string `pulumi:"environmentVariables"`
	// The runtime in which to run the function. Required when deploying a new
	// function, optional when updating an existing function.
	Runtime *string `pulumi:"runtime"`
	// The location of the function source code.
	// Structure is documented below.
	Source *FunctionBuildConfigSource `pulumi:"source"`
	// Name of the Cloud Build Custom Worker Pool that should be used to build the function.
	WorkerPool *string `pulumi:"workerPool"`
}

type FunctionBuildConfigArgs

type FunctionBuildConfigArgs struct {
	// -
	// The Cloud Build name of the latest successful
	// deployment of the function.
	Build pulumi.StringPtrInput `pulumi:"build"`
	// User managed repository created in Artifact Registry optionally with a customer managed encryption key.
	DockerRepository pulumi.StringPtrInput `pulumi:"dockerRepository"`
	// The name of the function (as defined in source code) that will be executed.
	// Defaults to the resource name suffix, if not specified. For backward
	// compatibility, if function with given name is not found, then the system
	// will try to use function named "function". For Node.js this is name of a
	// function exported by the module specified in source_location.
	EntryPoint pulumi.StringPtrInput `pulumi:"entryPoint"`
	// Environment variables that shall be available during function execution.
	EnvironmentVariables pulumi.StringMapInput `pulumi:"environmentVariables"`
	// The runtime in which to run the function. Required when deploying a new
	// function, optional when updating an existing function.
	Runtime pulumi.StringPtrInput `pulumi:"runtime"`
	// The location of the function source code.
	// Structure is documented below.
	Source FunctionBuildConfigSourcePtrInput `pulumi:"source"`
	// Name of the Cloud Build Custom Worker Pool that should be used to build the function.
	WorkerPool pulumi.StringPtrInput `pulumi:"workerPool"`
}

func (FunctionBuildConfigArgs) ElementType

func (FunctionBuildConfigArgs) ElementType() reflect.Type

func (FunctionBuildConfigArgs) ToFunctionBuildConfigOutput

func (i FunctionBuildConfigArgs) ToFunctionBuildConfigOutput() FunctionBuildConfigOutput

func (FunctionBuildConfigArgs) ToFunctionBuildConfigOutputWithContext

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

func (FunctionBuildConfigArgs) ToFunctionBuildConfigPtrOutput

func (i FunctionBuildConfigArgs) ToFunctionBuildConfigPtrOutput() FunctionBuildConfigPtrOutput

func (FunctionBuildConfigArgs) ToFunctionBuildConfigPtrOutputWithContext

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

type FunctionBuildConfigInput

type FunctionBuildConfigInput interface {
	pulumi.Input

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

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

FunctionBuildConfigArgs{...}

type FunctionBuildConfigOutput

type FunctionBuildConfigOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigOutput) Build

- The Cloud Build name of the latest successful deployment of the function.

func (FunctionBuildConfigOutput) DockerRepository

func (o FunctionBuildConfigOutput) DockerRepository() pulumi.StringPtrOutput

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

func (FunctionBuildConfigOutput) ElementType

func (FunctionBuildConfigOutput) ElementType() reflect.Type

func (FunctionBuildConfigOutput) EntryPoint

The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.

func (FunctionBuildConfigOutput) EnvironmentVariables

func (o FunctionBuildConfigOutput) EnvironmentVariables() pulumi.StringMapOutput

Environment variables that shall be available during function execution.

func (FunctionBuildConfigOutput) Runtime

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

func (FunctionBuildConfigOutput) Source

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

func (FunctionBuildConfigOutput) ToFunctionBuildConfigOutput

func (o FunctionBuildConfigOutput) ToFunctionBuildConfigOutput() FunctionBuildConfigOutput

func (FunctionBuildConfigOutput) ToFunctionBuildConfigOutputWithContext

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

func (FunctionBuildConfigOutput) ToFunctionBuildConfigPtrOutput

func (o FunctionBuildConfigOutput) ToFunctionBuildConfigPtrOutput() FunctionBuildConfigPtrOutput

func (FunctionBuildConfigOutput) ToFunctionBuildConfigPtrOutputWithContext

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

func (FunctionBuildConfigOutput) WorkerPool

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

type FunctionBuildConfigPtrInput

type FunctionBuildConfigPtrInput interface {
	pulumi.Input

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

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

        FunctionBuildConfigArgs{...}

or:

        nil

type FunctionBuildConfigPtrOutput

type FunctionBuildConfigPtrOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigPtrOutput) Build

- The Cloud Build name of the latest successful deployment of the function.

func (FunctionBuildConfigPtrOutput) DockerRepository

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

func (FunctionBuildConfigPtrOutput) Elem

func (FunctionBuildConfigPtrOutput) ElementType

func (FunctionBuildConfigPtrOutput) EntryPoint

The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in source_location.

func (FunctionBuildConfigPtrOutput) EnvironmentVariables

func (o FunctionBuildConfigPtrOutput) EnvironmentVariables() pulumi.StringMapOutput

Environment variables that shall be available during function execution.

func (FunctionBuildConfigPtrOutput) Runtime

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

func (FunctionBuildConfigPtrOutput) Source

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

func (FunctionBuildConfigPtrOutput) ToFunctionBuildConfigPtrOutput

func (o FunctionBuildConfigPtrOutput) ToFunctionBuildConfigPtrOutput() FunctionBuildConfigPtrOutput

func (FunctionBuildConfigPtrOutput) ToFunctionBuildConfigPtrOutputWithContext

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

func (FunctionBuildConfigPtrOutput) WorkerPool

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

type FunctionBuildConfigSource

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

type FunctionBuildConfigSourceArgs

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

func (FunctionBuildConfigSourceArgs) ElementType

func (FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourceOutput

func (i FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourceOutput() FunctionBuildConfigSourceOutput

func (FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourceOutputWithContext

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

func (FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourcePtrOutput

func (i FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourcePtrOutput() FunctionBuildConfigSourcePtrOutput

func (FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourcePtrOutputWithContext

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

type FunctionBuildConfigSourceInput

type FunctionBuildConfigSourceInput interface {
	pulumi.Input

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

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

FunctionBuildConfigSourceArgs{...}

type FunctionBuildConfigSourceOutput

type FunctionBuildConfigSourceOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigSourceOutput) ElementType

func (FunctionBuildConfigSourceOutput) RepoSource

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

func (FunctionBuildConfigSourceOutput) StorageSource

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

func (FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourceOutput

func (o FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourceOutput() FunctionBuildConfigSourceOutput

func (FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourceOutputWithContext

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

func (FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourcePtrOutput

func (o FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourcePtrOutput() FunctionBuildConfigSourcePtrOutput

func (FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourcePtrOutputWithContext

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

type FunctionBuildConfigSourcePtrInput

type FunctionBuildConfigSourcePtrInput interface {
	pulumi.Input

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

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

        FunctionBuildConfigSourceArgs{...}

or:

        nil

type FunctionBuildConfigSourcePtrOutput

type FunctionBuildConfigSourcePtrOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigSourcePtrOutput) Elem

func (FunctionBuildConfigSourcePtrOutput) ElementType

func (FunctionBuildConfigSourcePtrOutput) RepoSource

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

func (FunctionBuildConfigSourcePtrOutput) StorageSource

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

func (FunctionBuildConfigSourcePtrOutput) ToFunctionBuildConfigSourcePtrOutput

func (o FunctionBuildConfigSourcePtrOutput) ToFunctionBuildConfigSourcePtrOutput() FunctionBuildConfigSourcePtrOutput

func (FunctionBuildConfigSourcePtrOutput) ToFunctionBuildConfigSourcePtrOutputWithContext

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

type FunctionBuildConfigSourceRepoSource

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

type FunctionBuildConfigSourceRepoSourceArgs

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

func (FunctionBuildConfigSourceRepoSourceArgs) ElementType

func (FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourceOutput

func (i FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourceOutput() FunctionBuildConfigSourceRepoSourceOutput

func (FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourceOutputWithContext

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

func (FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourcePtrOutput

func (i FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourcePtrOutput() FunctionBuildConfigSourceRepoSourcePtrOutput

func (FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourcePtrOutputWithContext

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

type FunctionBuildConfigSourceRepoSourceInput

type FunctionBuildConfigSourceRepoSourceInput interface {
	pulumi.Input

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

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

FunctionBuildConfigSourceRepoSourceArgs{...}

type FunctionBuildConfigSourceRepoSourceOutput

type FunctionBuildConfigSourceRepoSourceOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigSourceRepoSourceOutput) BranchName

Regex matching branches to build.

func (FunctionBuildConfigSourceRepoSourceOutput) CommitSha

Regex matching tags to build.

func (FunctionBuildConfigSourceRepoSourceOutput) Dir

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

func (FunctionBuildConfigSourceRepoSourceOutput) ElementType

func (FunctionBuildConfigSourceRepoSourceOutput) InvertRegex

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

func (FunctionBuildConfigSourceRepoSourceOutput) ProjectId

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

func (FunctionBuildConfigSourceRepoSourceOutput) RepoName

Name of the Cloud Source Repository.

func (FunctionBuildConfigSourceRepoSourceOutput) TagName

Regex matching tags to build.

func (FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourceOutput

func (o FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourceOutput() FunctionBuildConfigSourceRepoSourceOutput

func (FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourceOutputWithContext

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

func (FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutput

func (o FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutput() FunctionBuildConfigSourceRepoSourcePtrOutput

func (FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutputWithContext

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

type FunctionBuildConfigSourceRepoSourcePtrInput

type FunctionBuildConfigSourceRepoSourcePtrInput interface {
	pulumi.Input

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

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

        FunctionBuildConfigSourceRepoSourceArgs{...}

or:

        nil

type FunctionBuildConfigSourceRepoSourcePtrOutput

type FunctionBuildConfigSourceRepoSourcePtrOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigSourceRepoSourcePtrOutput) BranchName

Regex matching branches to build.

func (FunctionBuildConfigSourceRepoSourcePtrOutput) CommitSha

Regex matching tags to build.

func (FunctionBuildConfigSourceRepoSourcePtrOutput) Dir

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

func (FunctionBuildConfigSourceRepoSourcePtrOutput) Elem

func (FunctionBuildConfigSourceRepoSourcePtrOutput) ElementType

func (FunctionBuildConfigSourceRepoSourcePtrOutput) InvertRegex

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

func (FunctionBuildConfigSourceRepoSourcePtrOutput) ProjectId

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

func (FunctionBuildConfigSourceRepoSourcePtrOutput) RepoName

Name of the Cloud Source Repository.

func (FunctionBuildConfigSourceRepoSourcePtrOutput) TagName

Regex matching tags to build.

func (FunctionBuildConfigSourceRepoSourcePtrOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutput

func (o FunctionBuildConfigSourceRepoSourcePtrOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutput() FunctionBuildConfigSourceRepoSourcePtrOutput

func (FunctionBuildConfigSourceRepoSourcePtrOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutputWithContext

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

type FunctionBuildConfigSourceStorageSource

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

type FunctionBuildConfigSourceStorageSourceArgs

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

func (FunctionBuildConfigSourceStorageSourceArgs) ElementType

func (FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourceOutput

func (i FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourceOutput() FunctionBuildConfigSourceStorageSourceOutput

func (FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourceOutputWithContext

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

func (FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourcePtrOutput

func (i FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourcePtrOutput() FunctionBuildConfigSourceStorageSourcePtrOutput

func (FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourcePtrOutputWithContext

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

type FunctionBuildConfigSourceStorageSourceInput

type FunctionBuildConfigSourceStorageSourceInput interface {
	pulumi.Input

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

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

FunctionBuildConfigSourceStorageSourceArgs{...}

type FunctionBuildConfigSourceStorageSourceOutput

type FunctionBuildConfigSourceStorageSourceOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigSourceStorageSourceOutput) Bucket

Google Cloud Storage bucket containing the source

func (FunctionBuildConfigSourceStorageSourceOutput) ElementType

func (FunctionBuildConfigSourceStorageSourceOutput) Generation

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

func (FunctionBuildConfigSourceStorageSourceOutput) Object

Google Cloud Storage object containing the source.

func (FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourceOutput

func (o FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourceOutput() FunctionBuildConfigSourceStorageSourceOutput

func (FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourceOutputWithContext

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

func (FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutput

func (o FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutput() FunctionBuildConfigSourceStorageSourcePtrOutput

func (FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutputWithContext

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

type FunctionBuildConfigSourceStorageSourcePtrInput

type FunctionBuildConfigSourceStorageSourcePtrInput interface {
	pulumi.Input

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

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

        FunctionBuildConfigSourceStorageSourceArgs{...}

or:

        nil

type FunctionBuildConfigSourceStorageSourcePtrOutput

type FunctionBuildConfigSourceStorageSourcePtrOutput struct{ *pulumi.OutputState }

func (FunctionBuildConfigSourceStorageSourcePtrOutput) Bucket

Google Cloud Storage bucket containing the source

func (FunctionBuildConfigSourceStorageSourcePtrOutput) Elem

func (FunctionBuildConfigSourceStorageSourcePtrOutput) ElementType

func (FunctionBuildConfigSourceStorageSourcePtrOutput) Generation

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

func (FunctionBuildConfigSourceStorageSourcePtrOutput) Object

Google Cloud Storage object containing the source.

func (FunctionBuildConfigSourceStorageSourcePtrOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutput

func (o FunctionBuildConfigSourceStorageSourcePtrOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutput() FunctionBuildConfigSourceStorageSourcePtrOutput

func (FunctionBuildConfigSourceStorageSourcePtrOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutputWithContext

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

type FunctionEventTrigger

type FunctionEventTrigger struct {
	// Required. The type of event to observe.
	EventType *string `pulumi:"eventType"`
	// The name of a Pub/Sub topic in the same project that will be used
	// as the transport topic for the event delivery.
	PubsubTopic *string `pulumi:"pubsubTopic"`
	// Describes the retry policy in case of function's execution failure.
	// Retried execution is charged as any other execution.
	// Possible values are `RETRY_POLICY_UNSPECIFIED`, `RETRY_POLICY_DO_NOT_RETRY`, and `RETRY_POLICY_RETRY`.
	RetryPolicy *string `pulumi:"retryPolicy"`
	// The email of the service account for this function.
	ServiceAccountEmail *string `pulumi:"serviceAccountEmail"`
	// -
	// The resource name of the Eventarc trigger.
	Trigger *string `pulumi:"trigger"`
	// The region that the trigger will be in. The trigger will only receive
	// events originating in this region. It can be the same
	// region as the function, a different region or multi-region, or the global
	// region. If not provided, defaults to the same region as the function.
	TriggerRegion *string `pulumi:"triggerRegion"`
}

type FunctionEventTriggerArgs

type FunctionEventTriggerArgs struct {
	// Required. The type of event to observe.
	EventType pulumi.StringPtrInput `pulumi:"eventType"`
	// The name of a Pub/Sub topic in the same project that will be used
	// as the transport topic for the event delivery.
	PubsubTopic pulumi.StringPtrInput `pulumi:"pubsubTopic"`
	// Describes the retry policy in case of function's execution failure.
	// Retried execution is charged as any other execution.
	// Possible values are `RETRY_POLICY_UNSPECIFIED`, `RETRY_POLICY_DO_NOT_RETRY`, and `RETRY_POLICY_RETRY`.
	RetryPolicy pulumi.StringPtrInput `pulumi:"retryPolicy"`
	// The email of the service account for this function.
	ServiceAccountEmail pulumi.StringPtrInput `pulumi:"serviceAccountEmail"`
	// -
	// The resource name of the Eventarc trigger.
	Trigger pulumi.StringPtrInput `pulumi:"trigger"`
	// The region that the trigger will be in. The trigger will only receive
	// events originating in this region. It can be the same
	// region as the function, a different region or multi-region, or the global
	// region. If not provided, defaults to the same region as the function.
	TriggerRegion pulumi.StringPtrInput `pulumi:"triggerRegion"`
}

func (FunctionEventTriggerArgs) ElementType

func (FunctionEventTriggerArgs) ElementType() reflect.Type

func (FunctionEventTriggerArgs) ToFunctionEventTriggerOutput

func (i FunctionEventTriggerArgs) ToFunctionEventTriggerOutput() FunctionEventTriggerOutput

func (FunctionEventTriggerArgs) ToFunctionEventTriggerOutputWithContext

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

func (FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutput

func (i FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput

func (FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutputWithContext

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

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

Required. The type of event to observe.

func (FunctionEventTriggerOutput) PubsubTopic

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

func (FunctionEventTriggerOutput) RetryPolicy

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

func (FunctionEventTriggerOutput) ServiceAccountEmail

func (o FunctionEventTriggerOutput) ServiceAccountEmail() pulumi.StringPtrOutput

The email of the service account for this function.

func (FunctionEventTriggerOutput) ToFunctionEventTriggerOutput

func (o FunctionEventTriggerOutput) ToFunctionEventTriggerOutput() FunctionEventTriggerOutput

func (FunctionEventTriggerOutput) ToFunctionEventTriggerOutputWithContext

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

func (FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutput

func (o FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput

func (FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutputWithContext

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

func (FunctionEventTriggerOutput) Trigger

- The resource name of the Eventarc trigger.

func (FunctionEventTriggerOutput) TriggerRegion

The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.

type FunctionEventTriggerPtrInput

type FunctionEventTriggerPtrInput interface {
	pulumi.Input

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

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

        FunctionEventTriggerArgs{...}

or:

        nil

type FunctionEventTriggerPtrOutput

type FunctionEventTriggerPtrOutput struct{ *pulumi.OutputState }

func (FunctionEventTriggerPtrOutput) Elem

func (FunctionEventTriggerPtrOutput) ElementType

func (FunctionEventTriggerPtrOutput) EventType

Required. The type of event to observe.

func (FunctionEventTriggerPtrOutput) PubsubTopic

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

func (FunctionEventTriggerPtrOutput) RetryPolicy

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

func (FunctionEventTriggerPtrOutput) ServiceAccountEmail

func (o FunctionEventTriggerPtrOutput) ServiceAccountEmail() pulumi.StringPtrOutput

The email of the service account for this function.

func (FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutput

func (o FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput

func (FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutputWithContext

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

func (FunctionEventTriggerPtrOutput) Trigger

- The resource name of the Eventarc trigger.

func (FunctionEventTriggerPtrOutput) TriggerRegion

The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.

type FunctionIamBinding added in v6.29.0

type FunctionIamBinding struct {
	pulumi.CustomResourceState

	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringOutput                  `pulumi:"cloudFunction"`
	Condition     FunctionIamBindingConditionPtrOutput `pulumi:"condition"`
	// (Computed) The etag of the IAM policy.
	Etag pulumi.StringOutput `pulumi:"etag"`
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringOutput      `pulumi:"location"`
	Members  pulumi.StringArrayOutput `pulumi:"members"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	Project pulumi.StringOutput `pulumi:"project"`
	// The role that should be applied. Only one
	// `cloudfunctionsv2.FunctionIamBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringOutput `pulumi:"role"`
}

## Import

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

```sh

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

```

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

```sh

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

```

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

```sh

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

```

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

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

func GetFunctionIamBinding added in v6.29.0

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

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

func NewFunctionIamBinding added in v6.29.0

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

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

func (*FunctionIamBinding) ElementType added in v6.29.0

func (*FunctionIamBinding) ElementType() reflect.Type

func (*FunctionIamBinding) ToFunctionIamBindingOutput added in v6.29.0

func (i *FunctionIamBinding) ToFunctionIamBindingOutput() FunctionIamBindingOutput

func (*FunctionIamBinding) ToFunctionIamBindingOutputWithContext added in v6.29.0

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

type FunctionIamBindingArgs added in v6.29.0

type FunctionIamBindingArgs struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringInput
	Condition     FunctionIamBindingConditionPtrInput
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringPtrInput
	Members  pulumi.StringArrayInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	Project pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudfunctionsv2.FunctionIamBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringInput
}

The set of arguments for constructing a FunctionIamBinding resource.

func (FunctionIamBindingArgs) ElementType added in v6.29.0

func (FunctionIamBindingArgs) ElementType() reflect.Type

type FunctionIamBindingArray added in v6.29.0

type FunctionIamBindingArray []FunctionIamBindingInput

func (FunctionIamBindingArray) ElementType added in v6.29.0

func (FunctionIamBindingArray) ElementType() reflect.Type

func (FunctionIamBindingArray) ToFunctionIamBindingArrayOutput added in v6.29.0

func (i FunctionIamBindingArray) ToFunctionIamBindingArrayOutput() FunctionIamBindingArrayOutput

func (FunctionIamBindingArray) ToFunctionIamBindingArrayOutputWithContext added in v6.29.0

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

type FunctionIamBindingArrayInput added in v6.29.0

type FunctionIamBindingArrayInput interface {
	pulumi.Input

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

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

FunctionIamBindingArray{ FunctionIamBindingArgs{...} }

type FunctionIamBindingArrayOutput added in v6.29.0

type FunctionIamBindingArrayOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingArrayOutput) ElementType added in v6.29.0

func (FunctionIamBindingArrayOutput) Index added in v6.29.0

func (FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutput added in v6.29.0

func (o FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutput() FunctionIamBindingArrayOutput

func (FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutputWithContext added in v6.29.0

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

type FunctionIamBindingCondition added in v6.29.0

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

type FunctionIamBindingConditionArgs added in v6.29.0

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

func (FunctionIamBindingConditionArgs) ElementType added in v6.29.0

func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutput added in v6.29.0

func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutput() FunctionIamBindingConditionOutput

func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutputWithContext added in v6.29.0

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

func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutput added in v6.29.0

func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput

func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutputWithContext added in v6.29.0

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

type FunctionIamBindingConditionInput added in v6.29.0

type FunctionIamBindingConditionInput interface {
	pulumi.Input

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

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

FunctionIamBindingConditionArgs{...}

type FunctionIamBindingConditionOutput added in v6.29.0

type FunctionIamBindingConditionOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingConditionOutput) Description added in v6.29.0

func (FunctionIamBindingConditionOutput) ElementType added in v6.29.0

func (FunctionIamBindingConditionOutput) Expression added in v6.29.0

func (FunctionIamBindingConditionOutput) Title added in v6.29.0

func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutput added in v6.29.0

func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutput() FunctionIamBindingConditionOutput

func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutputWithContext added in v6.29.0

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

func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutput added in v6.29.0

func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput

func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutputWithContext added in v6.29.0

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

type FunctionIamBindingConditionPtrInput added in v6.29.0

type FunctionIamBindingConditionPtrInput interface {
	pulumi.Input

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

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

        FunctionIamBindingConditionArgs{...}

or:

        nil

func FunctionIamBindingConditionPtr added in v6.29.0

type FunctionIamBindingConditionPtrOutput added in v6.29.0

type FunctionIamBindingConditionPtrOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingConditionPtrOutput) Description added in v6.29.0

func (FunctionIamBindingConditionPtrOutput) Elem added in v6.29.0

func (FunctionIamBindingConditionPtrOutput) ElementType added in v6.29.0

func (FunctionIamBindingConditionPtrOutput) Expression added in v6.29.0

func (FunctionIamBindingConditionPtrOutput) Title added in v6.29.0

func (FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutput added in v6.29.0

func (o FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput

func (FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutputWithContext added in v6.29.0

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

type FunctionIamBindingInput added in v6.29.0

type FunctionIamBindingInput interface {
	pulumi.Input

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

type FunctionIamBindingMap added in v6.29.0

type FunctionIamBindingMap map[string]FunctionIamBindingInput

func (FunctionIamBindingMap) ElementType added in v6.29.0

func (FunctionIamBindingMap) ElementType() reflect.Type

func (FunctionIamBindingMap) ToFunctionIamBindingMapOutput added in v6.29.0

func (i FunctionIamBindingMap) ToFunctionIamBindingMapOutput() FunctionIamBindingMapOutput

func (FunctionIamBindingMap) ToFunctionIamBindingMapOutputWithContext added in v6.29.0

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

type FunctionIamBindingMapInput added in v6.29.0

type FunctionIamBindingMapInput interface {
	pulumi.Input

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

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

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

type FunctionIamBindingMapOutput added in v6.29.0

type FunctionIamBindingMapOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingMapOutput) ElementType added in v6.29.0

func (FunctionIamBindingMapOutput) MapIndex added in v6.29.0

func (FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutput added in v6.29.0

func (o FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutput() FunctionIamBindingMapOutput

func (FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutputWithContext added in v6.29.0

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

type FunctionIamBindingOutput added in v6.29.0

type FunctionIamBindingOutput struct{ *pulumi.OutputState }

func (FunctionIamBindingOutput) CloudFunction added in v6.29.0

func (o FunctionIamBindingOutput) CloudFunction() pulumi.StringOutput

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

func (FunctionIamBindingOutput) Condition added in v6.29.0

func (FunctionIamBindingOutput) ElementType added in v6.29.0

func (FunctionIamBindingOutput) ElementType() reflect.Type

func (FunctionIamBindingOutput) Etag added in v6.29.0

(Computed) The etag of the IAM policy.

func (FunctionIamBindingOutput) Location added in v6.29.0

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

func (FunctionIamBindingOutput) Members added in v6.29.0

func (FunctionIamBindingOutput) Project added in v6.29.0

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

func (FunctionIamBindingOutput) Role added in v6.29.0

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

func (FunctionIamBindingOutput) ToFunctionIamBindingOutput added in v6.29.0

func (o FunctionIamBindingOutput) ToFunctionIamBindingOutput() FunctionIamBindingOutput

func (FunctionIamBindingOutput) ToFunctionIamBindingOutputWithContext added in v6.29.0

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

type FunctionIamBindingState added in v6.29.0

type FunctionIamBindingState struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringPtrInput
	Condition     FunctionIamBindingConditionPtrInput
	// (Computed) The etag of the IAM policy.
	Etag pulumi.StringPtrInput
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringPtrInput
	Members  pulumi.StringArrayInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	Project pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudfunctionsv2.FunctionIamBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringPtrInput
}

func (FunctionIamBindingState) ElementType added in v6.29.0

func (FunctionIamBindingState) ElementType() reflect.Type

type FunctionIamMember added in v6.29.0

type FunctionIamMember struct {
	pulumi.CustomResourceState

	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringOutput                 `pulumi:"cloudFunction"`
	Condition     FunctionIamMemberConditionPtrOutput `pulumi:"condition"`
	// (Computed) The etag of the IAM policy.
	Etag pulumi.StringOutput `pulumi:"etag"`
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringOutput `pulumi:"location"`
	Member   pulumi.StringOutput `pulumi:"member"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	Project pulumi.StringOutput `pulumi:"project"`
	// The role that should be applied. Only one
	// `cloudfunctionsv2.FunctionIamBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringOutput `pulumi:"role"`
}

## Import

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

```sh

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

```

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

```sh

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

```

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

```sh

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

```

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

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

func GetFunctionIamMember added in v6.29.0

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

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

func NewFunctionIamMember added in v6.29.0

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

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

func (*FunctionIamMember) ElementType added in v6.29.0

func (*FunctionIamMember) ElementType() reflect.Type

func (*FunctionIamMember) ToFunctionIamMemberOutput added in v6.29.0

func (i *FunctionIamMember) ToFunctionIamMemberOutput() FunctionIamMemberOutput

func (*FunctionIamMember) ToFunctionIamMemberOutputWithContext added in v6.29.0

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

type FunctionIamMemberArgs added in v6.29.0

type FunctionIamMemberArgs struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringInput
	Condition     FunctionIamMemberConditionPtrInput
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringPtrInput
	Member   pulumi.StringInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	Project pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudfunctionsv2.FunctionIamBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringInput
}

The set of arguments for constructing a FunctionIamMember resource.

func (FunctionIamMemberArgs) ElementType added in v6.29.0

func (FunctionIamMemberArgs) ElementType() reflect.Type

type FunctionIamMemberArray added in v6.29.0

type FunctionIamMemberArray []FunctionIamMemberInput

func (FunctionIamMemberArray) ElementType added in v6.29.0

func (FunctionIamMemberArray) ElementType() reflect.Type

func (FunctionIamMemberArray) ToFunctionIamMemberArrayOutput added in v6.29.0

func (i FunctionIamMemberArray) ToFunctionIamMemberArrayOutput() FunctionIamMemberArrayOutput

func (FunctionIamMemberArray) ToFunctionIamMemberArrayOutputWithContext added in v6.29.0

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

type FunctionIamMemberArrayInput added in v6.29.0

type FunctionIamMemberArrayInput interface {
	pulumi.Input

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

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

FunctionIamMemberArray{ FunctionIamMemberArgs{...} }

type FunctionIamMemberArrayOutput added in v6.29.0

type FunctionIamMemberArrayOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberArrayOutput) ElementType added in v6.29.0

func (FunctionIamMemberArrayOutput) Index added in v6.29.0

func (FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutput added in v6.29.0

func (o FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutput() FunctionIamMemberArrayOutput

func (FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutputWithContext added in v6.29.0

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

type FunctionIamMemberCondition added in v6.29.0

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

type FunctionIamMemberConditionArgs added in v6.29.0

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

func (FunctionIamMemberConditionArgs) ElementType added in v6.29.0

func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutput added in v6.29.0

func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutput() FunctionIamMemberConditionOutput

func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutputWithContext added in v6.29.0

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

func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutput added in v6.29.0

func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput

func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutputWithContext added in v6.29.0

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

type FunctionIamMemberConditionInput added in v6.29.0

type FunctionIamMemberConditionInput interface {
	pulumi.Input

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

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

FunctionIamMemberConditionArgs{...}

type FunctionIamMemberConditionOutput added in v6.29.0

type FunctionIamMemberConditionOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberConditionOutput) Description added in v6.29.0

func (FunctionIamMemberConditionOutput) ElementType added in v6.29.0

func (FunctionIamMemberConditionOutput) Expression added in v6.29.0

func (FunctionIamMemberConditionOutput) Title added in v6.29.0

func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutput added in v6.29.0

func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutput() FunctionIamMemberConditionOutput

func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutputWithContext added in v6.29.0

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

func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutput added in v6.29.0

func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput

func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutputWithContext added in v6.29.0

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

type FunctionIamMemberConditionPtrInput added in v6.29.0

type FunctionIamMemberConditionPtrInput interface {
	pulumi.Input

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

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

        FunctionIamMemberConditionArgs{...}

or:

        nil

func FunctionIamMemberConditionPtr added in v6.29.0

type FunctionIamMemberConditionPtrOutput added in v6.29.0

type FunctionIamMemberConditionPtrOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberConditionPtrOutput) Description added in v6.29.0

func (FunctionIamMemberConditionPtrOutput) Elem added in v6.29.0

func (FunctionIamMemberConditionPtrOutput) ElementType added in v6.29.0

func (FunctionIamMemberConditionPtrOutput) Expression added in v6.29.0

func (FunctionIamMemberConditionPtrOutput) Title added in v6.29.0

func (FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutput added in v6.29.0

func (o FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput

func (FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutputWithContext added in v6.29.0

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

type FunctionIamMemberInput added in v6.29.0

type FunctionIamMemberInput interface {
	pulumi.Input

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

type FunctionIamMemberMap added in v6.29.0

type FunctionIamMemberMap map[string]FunctionIamMemberInput

func (FunctionIamMemberMap) ElementType added in v6.29.0

func (FunctionIamMemberMap) ElementType() reflect.Type

func (FunctionIamMemberMap) ToFunctionIamMemberMapOutput added in v6.29.0

func (i FunctionIamMemberMap) ToFunctionIamMemberMapOutput() FunctionIamMemberMapOutput

func (FunctionIamMemberMap) ToFunctionIamMemberMapOutputWithContext added in v6.29.0

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

type FunctionIamMemberMapInput added in v6.29.0

type FunctionIamMemberMapInput interface {
	pulumi.Input

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

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

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

type FunctionIamMemberMapOutput added in v6.29.0

type FunctionIamMemberMapOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberMapOutput) ElementType added in v6.29.0

func (FunctionIamMemberMapOutput) ElementType() reflect.Type

func (FunctionIamMemberMapOutput) MapIndex added in v6.29.0

func (FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutput added in v6.29.0

func (o FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutput() FunctionIamMemberMapOutput

func (FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutputWithContext added in v6.29.0

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

type FunctionIamMemberOutput added in v6.29.0

type FunctionIamMemberOutput struct{ *pulumi.OutputState }

func (FunctionIamMemberOutput) CloudFunction added in v6.29.0

func (o FunctionIamMemberOutput) CloudFunction() pulumi.StringOutput

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

func (FunctionIamMemberOutput) Condition added in v6.29.0

func (FunctionIamMemberOutput) ElementType added in v6.29.0

func (FunctionIamMemberOutput) ElementType() reflect.Type

func (FunctionIamMemberOutput) Etag added in v6.29.0

(Computed) The etag of the IAM policy.

func (FunctionIamMemberOutput) Location added in v6.29.0

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

func (FunctionIamMemberOutput) Member added in v6.29.0

func (FunctionIamMemberOutput) Project added in v6.29.0

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

func (FunctionIamMemberOutput) Role added in v6.29.0

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

func (FunctionIamMemberOutput) ToFunctionIamMemberOutput added in v6.29.0

func (o FunctionIamMemberOutput) ToFunctionIamMemberOutput() FunctionIamMemberOutput

func (FunctionIamMemberOutput) ToFunctionIamMemberOutputWithContext added in v6.29.0

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

type FunctionIamMemberState added in v6.29.0

type FunctionIamMemberState struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringPtrInput
	Condition     FunctionIamMemberConditionPtrInput
	// (Computed) The etag of the IAM policy.
	Etag pulumi.StringPtrInput
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringPtrInput
	Member   pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	Project pulumi.StringPtrInput
	// The role that should be applied. Only one
	// `cloudfunctionsv2.FunctionIamBinding` can be used per role. Note that custom roles must be of the format
	// `[projects|organizations]/{parent-name}/roles/{role-name}`.
	Role pulumi.StringPtrInput
}

func (FunctionIamMemberState) ElementType added in v6.29.0

func (FunctionIamMemberState) ElementType() reflect.Type

type FunctionIamPolicy added in v6.29.0

type FunctionIamPolicy struct {
	pulumi.CustomResourceState

	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringOutput `pulumi:"cloudFunction"`
	// (Computed) The etag of the IAM policy.
	Etag pulumi.StringOutput `pulumi:"etag"`
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringOutput `pulumi:"location"`
	// The policy data generated by
	// a `organizations.getIAMPolicy` data source.
	PolicyData pulumi.StringOutput `pulumi:"policyData"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	Project pulumi.StringOutput `pulumi:"project"`
}

## Import

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

```sh

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

```

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

```sh

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

```

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

```sh

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

```

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

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

func GetFunctionIamPolicy added in v6.29.0

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

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

func NewFunctionIamPolicy added in v6.29.0

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

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

func (*FunctionIamPolicy) ElementType added in v6.29.0

func (*FunctionIamPolicy) ElementType() reflect.Type

func (*FunctionIamPolicy) ToFunctionIamPolicyOutput added in v6.29.0

func (i *FunctionIamPolicy) ToFunctionIamPolicyOutput() FunctionIamPolicyOutput

func (*FunctionIamPolicy) ToFunctionIamPolicyOutputWithContext added in v6.29.0

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

type FunctionIamPolicyArgs added in v6.29.0

type FunctionIamPolicyArgs struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringInput
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringPtrInput
	// The policy data generated by
	// a `organizations.getIAMPolicy` data source.
	PolicyData pulumi.StringInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	Project pulumi.StringPtrInput
}

The set of arguments for constructing a FunctionIamPolicy resource.

func (FunctionIamPolicyArgs) ElementType added in v6.29.0

func (FunctionIamPolicyArgs) ElementType() reflect.Type

type FunctionIamPolicyArray added in v6.29.0

type FunctionIamPolicyArray []FunctionIamPolicyInput

func (FunctionIamPolicyArray) ElementType added in v6.29.0

func (FunctionIamPolicyArray) ElementType() reflect.Type

func (FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutput added in v6.29.0

func (i FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutput() FunctionIamPolicyArrayOutput

func (FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutputWithContext added in v6.29.0

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

type FunctionIamPolicyArrayInput added in v6.29.0

type FunctionIamPolicyArrayInput interface {
	pulumi.Input

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

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

FunctionIamPolicyArray{ FunctionIamPolicyArgs{...} }

type FunctionIamPolicyArrayOutput added in v6.29.0

type FunctionIamPolicyArrayOutput struct{ *pulumi.OutputState }

func (FunctionIamPolicyArrayOutput) ElementType added in v6.29.0

func (FunctionIamPolicyArrayOutput) Index added in v6.29.0

func (FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutput added in v6.29.0

func (o FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutput() FunctionIamPolicyArrayOutput

func (FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutputWithContext added in v6.29.0

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

type FunctionIamPolicyInput added in v6.29.0

type FunctionIamPolicyInput interface {
	pulumi.Input

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

type FunctionIamPolicyMap added in v6.29.0

type FunctionIamPolicyMap map[string]FunctionIamPolicyInput

func (FunctionIamPolicyMap) ElementType added in v6.29.0

func (FunctionIamPolicyMap) ElementType() reflect.Type

func (FunctionIamPolicyMap) ToFunctionIamPolicyMapOutput added in v6.29.0

func (i FunctionIamPolicyMap) ToFunctionIamPolicyMapOutput() FunctionIamPolicyMapOutput

func (FunctionIamPolicyMap) ToFunctionIamPolicyMapOutputWithContext added in v6.29.0

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

type FunctionIamPolicyMapInput added in v6.29.0

type FunctionIamPolicyMapInput interface {
	pulumi.Input

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

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

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

type FunctionIamPolicyMapOutput added in v6.29.0

type FunctionIamPolicyMapOutput struct{ *pulumi.OutputState }

func (FunctionIamPolicyMapOutput) ElementType added in v6.29.0

func (FunctionIamPolicyMapOutput) ElementType() reflect.Type

func (FunctionIamPolicyMapOutput) MapIndex added in v6.29.0

func (FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutput added in v6.29.0

func (o FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutput() FunctionIamPolicyMapOutput

func (FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutputWithContext added in v6.29.0

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

type FunctionIamPolicyOutput added in v6.29.0

type FunctionIamPolicyOutput struct{ *pulumi.OutputState }

func (FunctionIamPolicyOutput) CloudFunction added in v6.29.0

func (o FunctionIamPolicyOutput) CloudFunction() pulumi.StringOutput

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

func (FunctionIamPolicyOutput) ElementType added in v6.29.0

func (FunctionIamPolicyOutput) ElementType() reflect.Type

func (FunctionIamPolicyOutput) Etag added in v6.29.0

(Computed) The etag of the IAM policy.

func (FunctionIamPolicyOutput) Location added in v6.29.0

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

func (FunctionIamPolicyOutput) PolicyData added in v6.29.0

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

func (FunctionIamPolicyOutput) Project added in v6.29.0

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

func (FunctionIamPolicyOutput) ToFunctionIamPolicyOutput added in v6.29.0

func (o FunctionIamPolicyOutput) ToFunctionIamPolicyOutput() FunctionIamPolicyOutput

func (FunctionIamPolicyOutput) ToFunctionIamPolicyOutputWithContext added in v6.29.0

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

type FunctionIamPolicyState added in v6.29.0

type FunctionIamPolicyState struct {
	// Used to find the parent resource to bind the IAM policy to
	CloudFunction pulumi.StringPtrInput
	// (Computed) The etag of the IAM policy.
	Etag pulumi.StringPtrInput
	// The location of this cloud function. Used to find the parent resource to bind the IAM policy to
	Location pulumi.StringPtrInput
	// The policy data generated by
	// a `organizations.getIAMPolicy` data source.
	PolicyData pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
	Project pulumi.StringPtrInput
}

func (FunctionIamPolicyState) ElementType added in v6.29.0

func (FunctionIamPolicyState) ElementType() reflect.Type

type FunctionInput

type FunctionInput interface {
	pulumi.Input

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

type FunctionMap

type FunctionMap map[string]FunctionInput

func (FunctionMap) ElementType

func (FunctionMap) ElementType() reflect.Type

func (FunctionMap) ToFunctionMapOutput

func (i FunctionMap) ToFunctionMapOutput() FunctionMapOutput

func (FunctionMap) ToFunctionMapOutputWithContext

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

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

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

func (FunctionOutput) Description added in v6.23.0

func (o FunctionOutput) Description() pulumi.StringPtrOutput

User-provided description of a function.

func (FunctionOutput) ElementType

func (FunctionOutput) ElementType() reflect.Type

func (FunctionOutput) Environment added in v6.23.0

func (o FunctionOutput) Environment() pulumi.StringOutput

The environment the function is hosted on.

func (FunctionOutput) EventTrigger added in v6.23.0

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

func (FunctionOutput) Labels added in v6.23.0

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

func (FunctionOutput) Location added in v6.23.0

func (o FunctionOutput) Location() pulumi.StringPtrOutput

The location of this cloud function.

func (FunctionOutput) Name added in v6.23.0

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

func (FunctionOutput) Project added in v6.23.0

func (o FunctionOutput) Project() pulumi.StringOutput

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

func (FunctionOutput) ServiceConfig added in v6.23.0

Describes the Service being deployed. Structure is documented below.

func (FunctionOutput) State added in v6.23.0

Describes the current state of the function.

func (FunctionOutput) ToFunctionOutput

func (o FunctionOutput) ToFunctionOutput() FunctionOutput

func (FunctionOutput) ToFunctionOutputWithContext

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

func (FunctionOutput) UpdateTime added in v6.23.0

func (o FunctionOutput) UpdateTime() pulumi.StringOutput

The last update timestamp of a Cloud Function.

type FunctionServiceConfig

type FunctionServiceConfig struct {
	// Whether 100% of traffic is routed to the latest revision. Defaults to true.
	AllTrafficOnLatestRevision *bool `pulumi:"allTrafficOnLatestRevision"`
	// The amount of memory available for a function.
	// Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
	// supplied the value is interpreted as bytes.
	AvailableMemory *string `pulumi:"availableMemory"`
	// Environment variables that shall be available during function execution.
	EnvironmentVariables map[string]string `pulumi:"environmentVariables"`
	// -
	// URIs of the Service deployed
	GcfUri *string `pulumi:"gcfUri"`
	// Available ingress settings. Defaults to "ALLOW_ALL" if unspecified.
	// Default value is `ALLOW_ALL`.
	// Possible values are `ALLOW_ALL`, `ALLOW_INTERNAL_ONLY`, and `ALLOW_INTERNAL_AND_GCLB`.
	IngressSettings *string `pulumi:"ingressSettings"`
	// The limit on the maximum number of function instances that may coexist at a
	// given time.
	MaxInstanceCount *int `pulumi:"maxInstanceCount"`
	// The limit on the minimum number of function instances that may coexist at a
	// given time.
	MinInstanceCount *int `pulumi:"minInstanceCount"`
	// Name of the service associated with a Function.
	Service *string `pulumi:"service"`
	// The email of the service account for this function.
	ServiceAccountEmail *string `pulumi:"serviceAccountEmail"`
	// The function execution timeout. Execution is considered failed and
	// can be terminated if the function is not completed at the end of the
	// timeout period. Defaults to 60 seconds.
	TimeoutSeconds *int `pulumi:"timeoutSeconds"`
	// -
	// URI of the Service deployed.
	Uri *string `pulumi:"uri"`
	// The Serverless VPC Access connector that this cloud function can connect to.
	VpcConnector *string `pulumi:"vpcConnector"`
	// Available egress settings.
	// Possible values are `VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED`, `PRIVATE_RANGES_ONLY`, and `ALL_TRAFFIC`.
	VpcConnectorEgressSettings *string `pulumi:"vpcConnectorEgressSettings"`
}

type FunctionServiceConfigArgs

type FunctionServiceConfigArgs struct {
	// Whether 100% of traffic is routed to the latest revision. Defaults to true.
	AllTrafficOnLatestRevision pulumi.BoolPtrInput `pulumi:"allTrafficOnLatestRevision"`
	// The amount of memory available for a function.
	// Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
	// supplied the value is interpreted as bytes.
	AvailableMemory pulumi.StringPtrInput `pulumi:"availableMemory"`
	// Environment variables that shall be available during function execution.
	EnvironmentVariables pulumi.StringMapInput `pulumi:"environmentVariables"`
	// -
	// URIs of the Service deployed
	GcfUri pulumi.StringPtrInput `pulumi:"gcfUri"`
	// Available ingress settings. Defaults to "ALLOW_ALL" if unspecified.
	// Default value is `ALLOW_ALL`.
	// Possible values are `ALLOW_ALL`, `ALLOW_INTERNAL_ONLY`, and `ALLOW_INTERNAL_AND_GCLB`.
	IngressSettings pulumi.StringPtrInput `pulumi:"ingressSettings"`
	// The limit on the maximum number of function instances that may coexist at a
	// given time.
	MaxInstanceCount pulumi.IntPtrInput `pulumi:"maxInstanceCount"`
	// The limit on the minimum number of function instances that may coexist at a
	// given time.
	MinInstanceCount pulumi.IntPtrInput `pulumi:"minInstanceCount"`
	// Name of the service associated with a Function.
	Service pulumi.StringPtrInput `pulumi:"service"`
	// The email of the service account for this function.
	ServiceAccountEmail pulumi.StringPtrInput `pulumi:"serviceAccountEmail"`
	// The function execution timeout. Execution is considered failed and
	// can be terminated if the function is not completed at the end of the
	// timeout period. Defaults to 60 seconds.
	TimeoutSeconds pulumi.IntPtrInput `pulumi:"timeoutSeconds"`
	// -
	// URI of the Service deployed.
	Uri pulumi.StringPtrInput `pulumi:"uri"`
	// The Serverless VPC Access connector that this cloud function can connect to.
	VpcConnector pulumi.StringPtrInput `pulumi:"vpcConnector"`
	// Available egress settings.
	// Possible values are `VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED`, `PRIVATE_RANGES_ONLY`, and `ALL_TRAFFIC`.
	VpcConnectorEgressSettings pulumi.StringPtrInput `pulumi:"vpcConnectorEgressSettings"`
}

func (FunctionServiceConfigArgs) ElementType

func (FunctionServiceConfigArgs) ElementType() reflect.Type

func (FunctionServiceConfigArgs) ToFunctionServiceConfigOutput

func (i FunctionServiceConfigArgs) ToFunctionServiceConfigOutput() FunctionServiceConfigOutput

func (FunctionServiceConfigArgs) ToFunctionServiceConfigOutputWithContext

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

func (FunctionServiceConfigArgs) ToFunctionServiceConfigPtrOutput

func (i FunctionServiceConfigArgs) ToFunctionServiceConfigPtrOutput() FunctionServiceConfigPtrOutput

func (FunctionServiceConfigArgs) ToFunctionServiceConfigPtrOutputWithContext

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

type FunctionServiceConfigInput

type FunctionServiceConfigInput interface {
	pulumi.Input

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

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

FunctionServiceConfigArgs{...}

type FunctionServiceConfigOutput

type FunctionServiceConfigOutput struct{ *pulumi.OutputState }

func (FunctionServiceConfigOutput) AllTrafficOnLatestRevision

func (o FunctionServiceConfigOutput) AllTrafficOnLatestRevision() pulumi.BoolPtrOutput

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

func (FunctionServiceConfigOutput) AvailableMemory

The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes.

func (FunctionServiceConfigOutput) ElementType

func (FunctionServiceConfigOutput) EnvironmentVariables

func (o FunctionServiceConfigOutput) EnvironmentVariables() pulumi.StringMapOutput

Environment variables that shall be available during function execution.

func (FunctionServiceConfigOutput) GcfUri

- URIs of the Service deployed

func (FunctionServiceConfigOutput) IngressSettings

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

func (FunctionServiceConfigOutput) MaxInstanceCount

func (o FunctionServiceConfigOutput) MaxInstanceCount() pulumi.IntPtrOutput

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

func (FunctionServiceConfigOutput) MinInstanceCount

func (o FunctionServiceConfigOutput) MinInstanceCount() pulumi.IntPtrOutput

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

func (FunctionServiceConfigOutput) Service

Name of the service associated with a Function.

func (FunctionServiceConfigOutput) ServiceAccountEmail

func (o FunctionServiceConfigOutput) ServiceAccountEmail() pulumi.StringPtrOutput

The email of the service account for this function.

func (FunctionServiceConfigOutput) TimeoutSeconds

func (o FunctionServiceConfigOutput) TimeoutSeconds() pulumi.IntPtrOutput

The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.

func (FunctionServiceConfigOutput) ToFunctionServiceConfigOutput

func (o FunctionServiceConfigOutput) ToFunctionServiceConfigOutput() FunctionServiceConfigOutput

func (FunctionServiceConfigOutput) ToFunctionServiceConfigOutputWithContext

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

func (FunctionServiceConfigOutput) ToFunctionServiceConfigPtrOutput

func (o FunctionServiceConfigOutput) ToFunctionServiceConfigPtrOutput() FunctionServiceConfigPtrOutput

func (FunctionServiceConfigOutput) ToFunctionServiceConfigPtrOutputWithContext

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

func (FunctionServiceConfigOutput) Uri

- URI of the Service deployed.

func (FunctionServiceConfigOutput) VpcConnector

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

func (FunctionServiceConfigOutput) VpcConnectorEgressSettings

func (o FunctionServiceConfigOutput) VpcConnectorEgressSettings() pulumi.StringPtrOutput

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

type FunctionServiceConfigPtrInput

type FunctionServiceConfigPtrInput interface {
	pulumi.Input

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

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

        FunctionServiceConfigArgs{...}

or:

        nil

type FunctionServiceConfigPtrOutput

type FunctionServiceConfigPtrOutput struct{ *pulumi.OutputState }

func (FunctionServiceConfigPtrOutput) AllTrafficOnLatestRevision

func (o FunctionServiceConfigPtrOutput) AllTrafficOnLatestRevision() pulumi.BoolPtrOutput

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

func (FunctionServiceConfigPtrOutput) AvailableMemory

The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes.

func (FunctionServiceConfigPtrOutput) Elem

func (FunctionServiceConfigPtrOutput) ElementType

func (FunctionServiceConfigPtrOutput) EnvironmentVariables

func (o FunctionServiceConfigPtrOutput) EnvironmentVariables() pulumi.StringMapOutput

Environment variables that shall be available during function execution.

func (FunctionServiceConfigPtrOutput) GcfUri

- URIs of the Service deployed

func (FunctionServiceConfigPtrOutput) IngressSettings

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

func (FunctionServiceConfigPtrOutput) MaxInstanceCount

func (o FunctionServiceConfigPtrOutput) MaxInstanceCount() pulumi.IntPtrOutput

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

func (FunctionServiceConfigPtrOutput) MinInstanceCount

func (o FunctionServiceConfigPtrOutput) MinInstanceCount() pulumi.IntPtrOutput

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

func (FunctionServiceConfigPtrOutput) Service

Name of the service associated with a Function.

func (FunctionServiceConfigPtrOutput) ServiceAccountEmail

func (o FunctionServiceConfigPtrOutput) ServiceAccountEmail() pulumi.StringPtrOutput

The email of the service account for this function.

func (FunctionServiceConfigPtrOutput) TimeoutSeconds

The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.

func (FunctionServiceConfigPtrOutput) ToFunctionServiceConfigPtrOutput

func (o FunctionServiceConfigPtrOutput) ToFunctionServiceConfigPtrOutput() FunctionServiceConfigPtrOutput

func (FunctionServiceConfigPtrOutput) ToFunctionServiceConfigPtrOutputWithContext

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

func (FunctionServiceConfigPtrOutput) Uri

- URI of the Service deployed.

func (FunctionServiceConfigPtrOutput) VpcConnector

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

func (FunctionServiceConfigPtrOutput) VpcConnectorEgressSettings

func (o FunctionServiceConfigPtrOutput) VpcConnectorEgressSettings() pulumi.StringPtrOutput

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

type FunctionState

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

func (FunctionState) ElementType

func (FunctionState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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