Documentation ¶
Index ¶
- type Function
- type FunctionArgs
- type FunctionArray
- type FunctionArrayInput
- type FunctionArrayOutput
- type FunctionBuildConfig
- type FunctionBuildConfigArgs
- func (FunctionBuildConfigArgs) ElementType() reflect.Type
- func (i FunctionBuildConfigArgs) ToFunctionBuildConfigOutput() FunctionBuildConfigOutput
- func (i FunctionBuildConfigArgs) ToFunctionBuildConfigOutputWithContext(ctx context.Context) FunctionBuildConfigOutput
- func (i FunctionBuildConfigArgs) ToFunctionBuildConfigPtrOutput() FunctionBuildConfigPtrOutput
- func (i FunctionBuildConfigArgs) ToFunctionBuildConfigPtrOutputWithContext(ctx context.Context) FunctionBuildConfigPtrOutput
- type FunctionBuildConfigInput
- type FunctionBuildConfigOutput
- func (o FunctionBuildConfigOutput) Build() pulumi.StringPtrOutput
- func (o FunctionBuildConfigOutput) DockerRepository() pulumi.StringPtrOutput
- func (FunctionBuildConfigOutput) ElementType() reflect.Type
- func (o FunctionBuildConfigOutput) EntryPoint() pulumi.StringPtrOutput
- func (o FunctionBuildConfigOutput) EnvironmentVariables() pulumi.StringMapOutput
- func (o FunctionBuildConfigOutput) Runtime() pulumi.StringPtrOutput
- func (o FunctionBuildConfigOutput) Source() FunctionBuildConfigSourcePtrOutput
- func (o FunctionBuildConfigOutput) ToFunctionBuildConfigOutput() FunctionBuildConfigOutput
- func (o FunctionBuildConfigOutput) ToFunctionBuildConfigOutputWithContext(ctx context.Context) FunctionBuildConfigOutput
- func (o FunctionBuildConfigOutput) ToFunctionBuildConfigPtrOutput() FunctionBuildConfigPtrOutput
- func (o FunctionBuildConfigOutput) ToFunctionBuildConfigPtrOutputWithContext(ctx context.Context) FunctionBuildConfigPtrOutput
- func (o FunctionBuildConfigOutput) WorkerPool() pulumi.StringPtrOutput
- type FunctionBuildConfigPtrInput
- type FunctionBuildConfigPtrOutput
- func (o FunctionBuildConfigPtrOutput) Build() pulumi.StringPtrOutput
- func (o FunctionBuildConfigPtrOutput) DockerRepository() pulumi.StringPtrOutput
- func (o FunctionBuildConfigPtrOutput) Elem() FunctionBuildConfigOutput
- func (FunctionBuildConfigPtrOutput) ElementType() reflect.Type
- func (o FunctionBuildConfigPtrOutput) EntryPoint() pulumi.StringPtrOutput
- func (o FunctionBuildConfigPtrOutput) EnvironmentVariables() pulumi.StringMapOutput
- func (o FunctionBuildConfigPtrOutput) Runtime() pulumi.StringPtrOutput
- func (o FunctionBuildConfigPtrOutput) Source() FunctionBuildConfigSourcePtrOutput
- func (o FunctionBuildConfigPtrOutput) ToFunctionBuildConfigPtrOutput() FunctionBuildConfigPtrOutput
- func (o FunctionBuildConfigPtrOutput) ToFunctionBuildConfigPtrOutputWithContext(ctx context.Context) FunctionBuildConfigPtrOutput
- func (o FunctionBuildConfigPtrOutput) WorkerPool() pulumi.StringPtrOutput
- type FunctionBuildConfigSource
- type FunctionBuildConfigSourceArgs
- func (FunctionBuildConfigSourceArgs) ElementType() reflect.Type
- func (i FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourceOutput() FunctionBuildConfigSourceOutput
- func (i FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourceOutputWithContext(ctx context.Context) FunctionBuildConfigSourceOutput
- func (i FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourcePtrOutput() FunctionBuildConfigSourcePtrOutput
- func (i FunctionBuildConfigSourceArgs) ToFunctionBuildConfigSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourcePtrOutput
- type FunctionBuildConfigSourceInput
- type FunctionBuildConfigSourceOutput
- func (FunctionBuildConfigSourceOutput) ElementType() reflect.Type
- func (o FunctionBuildConfigSourceOutput) RepoSource() FunctionBuildConfigSourceRepoSourcePtrOutput
- func (o FunctionBuildConfigSourceOutput) StorageSource() FunctionBuildConfigSourceStorageSourcePtrOutput
- func (o FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourceOutput() FunctionBuildConfigSourceOutput
- func (o FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourceOutputWithContext(ctx context.Context) FunctionBuildConfigSourceOutput
- func (o FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourcePtrOutput() FunctionBuildConfigSourcePtrOutput
- func (o FunctionBuildConfigSourceOutput) ToFunctionBuildConfigSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourcePtrOutput
- type FunctionBuildConfigSourcePtrInput
- type FunctionBuildConfigSourcePtrOutput
- func (o FunctionBuildConfigSourcePtrOutput) Elem() FunctionBuildConfigSourceOutput
- func (FunctionBuildConfigSourcePtrOutput) ElementType() reflect.Type
- func (o FunctionBuildConfigSourcePtrOutput) RepoSource() FunctionBuildConfigSourceRepoSourcePtrOutput
- func (o FunctionBuildConfigSourcePtrOutput) StorageSource() FunctionBuildConfigSourceStorageSourcePtrOutput
- func (o FunctionBuildConfigSourcePtrOutput) ToFunctionBuildConfigSourcePtrOutput() FunctionBuildConfigSourcePtrOutput
- func (o FunctionBuildConfigSourcePtrOutput) ToFunctionBuildConfigSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourcePtrOutput
- type FunctionBuildConfigSourceRepoSource
- type FunctionBuildConfigSourceRepoSourceArgs
- func (FunctionBuildConfigSourceRepoSourceArgs) ElementType() reflect.Type
- func (i FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourceOutput() FunctionBuildConfigSourceRepoSourceOutput
- func (i FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourceOutputWithContext(ctx context.Context) FunctionBuildConfigSourceRepoSourceOutput
- func (i FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourcePtrOutput() FunctionBuildConfigSourceRepoSourcePtrOutput
- func (i FunctionBuildConfigSourceRepoSourceArgs) ToFunctionBuildConfigSourceRepoSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourceRepoSourcePtrOutput
- type FunctionBuildConfigSourceRepoSourceInput
- type FunctionBuildConfigSourceRepoSourceOutput
- func (o FunctionBuildConfigSourceRepoSourceOutput) BranchName() pulumi.StringPtrOutput
- func (o FunctionBuildConfigSourceRepoSourceOutput) CommitSha() pulumi.StringPtrOutput
- func (o FunctionBuildConfigSourceRepoSourceOutput) Dir() pulumi.StringPtrOutput
- func (FunctionBuildConfigSourceRepoSourceOutput) ElementType() reflect.Type
- func (o FunctionBuildConfigSourceRepoSourceOutput) InvertRegex() pulumi.BoolPtrOutput
- func (o FunctionBuildConfigSourceRepoSourceOutput) ProjectId() pulumi.StringPtrOutput
- func (o FunctionBuildConfigSourceRepoSourceOutput) RepoName() pulumi.StringPtrOutput
- func (o FunctionBuildConfigSourceRepoSourceOutput) TagName() pulumi.StringPtrOutput
- func (o FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourceOutput() FunctionBuildConfigSourceRepoSourceOutput
- func (o FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourceOutputWithContext(ctx context.Context) FunctionBuildConfigSourceRepoSourceOutput
- func (o FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutput() FunctionBuildConfigSourceRepoSourcePtrOutput
- func (o FunctionBuildConfigSourceRepoSourceOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourceRepoSourcePtrOutput
- type FunctionBuildConfigSourceRepoSourcePtrInput
- type FunctionBuildConfigSourceRepoSourcePtrOutput
- func (o FunctionBuildConfigSourceRepoSourcePtrOutput) BranchName() pulumi.StringPtrOutput
- func (o FunctionBuildConfigSourceRepoSourcePtrOutput) CommitSha() pulumi.StringPtrOutput
- func (o FunctionBuildConfigSourceRepoSourcePtrOutput) Dir() pulumi.StringPtrOutput
- func (o FunctionBuildConfigSourceRepoSourcePtrOutput) Elem() FunctionBuildConfigSourceRepoSourceOutput
- func (FunctionBuildConfigSourceRepoSourcePtrOutput) ElementType() reflect.Type
- func (o FunctionBuildConfigSourceRepoSourcePtrOutput) InvertRegex() pulumi.BoolPtrOutput
- func (o FunctionBuildConfigSourceRepoSourcePtrOutput) ProjectId() pulumi.StringPtrOutput
- func (o FunctionBuildConfigSourceRepoSourcePtrOutput) RepoName() pulumi.StringPtrOutput
- func (o FunctionBuildConfigSourceRepoSourcePtrOutput) TagName() pulumi.StringPtrOutput
- func (o FunctionBuildConfigSourceRepoSourcePtrOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutput() FunctionBuildConfigSourceRepoSourcePtrOutput
- func (o FunctionBuildConfigSourceRepoSourcePtrOutput) ToFunctionBuildConfigSourceRepoSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourceRepoSourcePtrOutput
- type FunctionBuildConfigSourceStorageSource
- type FunctionBuildConfigSourceStorageSourceArgs
- func (FunctionBuildConfigSourceStorageSourceArgs) ElementType() reflect.Type
- func (i FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourceOutput() FunctionBuildConfigSourceStorageSourceOutput
- func (i FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourceOutputWithContext(ctx context.Context) FunctionBuildConfigSourceStorageSourceOutput
- func (i FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourcePtrOutput() FunctionBuildConfigSourceStorageSourcePtrOutput
- func (i FunctionBuildConfigSourceStorageSourceArgs) ToFunctionBuildConfigSourceStorageSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourceStorageSourcePtrOutput
- type FunctionBuildConfigSourceStorageSourceInput
- type FunctionBuildConfigSourceStorageSourceOutput
- func (o FunctionBuildConfigSourceStorageSourceOutput) Bucket() pulumi.StringPtrOutput
- func (FunctionBuildConfigSourceStorageSourceOutput) ElementType() reflect.Type
- func (o FunctionBuildConfigSourceStorageSourceOutput) Generation() pulumi.IntPtrOutput
- func (o FunctionBuildConfigSourceStorageSourceOutput) Object() pulumi.StringPtrOutput
- func (o FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourceOutput() FunctionBuildConfigSourceStorageSourceOutput
- func (o FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourceOutputWithContext(ctx context.Context) FunctionBuildConfigSourceStorageSourceOutput
- func (o FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutput() FunctionBuildConfigSourceStorageSourcePtrOutput
- func (o FunctionBuildConfigSourceStorageSourceOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourceStorageSourcePtrOutput
- type FunctionBuildConfigSourceStorageSourcePtrInput
- type FunctionBuildConfigSourceStorageSourcePtrOutput
- func (o FunctionBuildConfigSourceStorageSourcePtrOutput) Bucket() pulumi.StringPtrOutput
- func (o FunctionBuildConfigSourceStorageSourcePtrOutput) Elem() FunctionBuildConfigSourceStorageSourceOutput
- func (FunctionBuildConfigSourceStorageSourcePtrOutput) ElementType() reflect.Type
- func (o FunctionBuildConfigSourceStorageSourcePtrOutput) Generation() pulumi.IntPtrOutput
- func (o FunctionBuildConfigSourceStorageSourcePtrOutput) Object() pulumi.StringPtrOutput
- func (o FunctionBuildConfigSourceStorageSourcePtrOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutput() FunctionBuildConfigSourceStorageSourcePtrOutput
- func (o FunctionBuildConfigSourceStorageSourcePtrOutput) ToFunctionBuildConfigSourceStorageSourcePtrOutputWithContext(ctx context.Context) FunctionBuildConfigSourceStorageSourcePtrOutput
- type FunctionEventTrigger
- type FunctionEventTriggerArgs
- func (FunctionEventTriggerArgs) ElementType() reflect.Type
- func (i FunctionEventTriggerArgs) ToFunctionEventTriggerOutput() FunctionEventTriggerOutput
- func (i FunctionEventTriggerArgs) ToFunctionEventTriggerOutputWithContext(ctx context.Context) FunctionEventTriggerOutput
- func (i FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput
- func (i FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutputWithContext(ctx context.Context) FunctionEventTriggerPtrOutput
- type FunctionEventTriggerInput
- type FunctionEventTriggerOutput
- func (FunctionEventTriggerOutput) ElementType() reflect.Type
- func (o FunctionEventTriggerOutput) EventType() pulumi.StringPtrOutput
- func (o FunctionEventTriggerOutput) PubsubTopic() pulumi.StringPtrOutput
- func (o FunctionEventTriggerOutput) RetryPolicy() pulumi.StringPtrOutput
- func (o FunctionEventTriggerOutput) ServiceAccountEmail() pulumi.StringPtrOutput
- func (o FunctionEventTriggerOutput) ToFunctionEventTriggerOutput() FunctionEventTriggerOutput
- func (o FunctionEventTriggerOutput) ToFunctionEventTriggerOutputWithContext(ctx context.Context) FunctionEventTriggerOutput
- func (o FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput
- func (o FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutputWithContext(ctx context.Context) FunctionEventTriggerPtrOutput
- func (o FunctionEventTriggerOutput) Trigger() pulumi.StringPtrOutput
- func (o FunctionEventTriggerOutput) TriggerRegion() pulumi.StringPtrOutput
- type FunctionEventTriggerPtrInput
- type FunctionEventTriggerPtrOutput
- func (o FunctionEventTriggerPtrOutput) Elem() FunctionEventTriggerOutput
- func (FunctionEventTriggerPtrOutput) ElementType() reflect.Type
- func (o FunctionEventTriggerPtrOutput) EventType() pulumi.StringPtrOutput
- func (o FunctionEventTriggerPtrOutput) PubsubTopic() pulumi.StringPtrOutput
- func (o FunctionEventTriggerPtrOutput) RetryPolicy() pulumi.StringPtrOutput
- func (o FunctionEventTriggerPtrOutput) ServiceAccountEmail() pulumi.StringPtrOutput
- func (o FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput
- func (o FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutputWithContext(ctx context.Context) FunctionEventTriggerPtrOutput
- func (o FunctionEventTriggerPtrOutput) Trigger() pulumi.StringPtrOutput
- func (o FunctionEventTriggerPtrOutput) TriggerRegion() pulumi.StringPtrOutput
- type FunctionInput
- type FunctionMap
- type FunctionMapInput
- type FunctionMapOutput
- type FunctionOutput
- type FunctionServiceConfig
- type FunctionServiceConfigArgs
- func (FunctionServiceConfigArgs) ElementType() reflect.Type
- func (i FunctionServiceConfigArgs) ToFunctionServiceConfigOutput() FunctionServiceConfigOutput
- func (i FunctionServiceConfigArgs) ToFunctionServiceConfigOutputWithContext(ctx context.Context) FunctionServiceConfigOutput
- func (i FunctionServiceConfigArgs) ToFunctionServiceConfigPtrOutput() FunctionServiceConfigPtrOutput
- func (i FunctionServiceConfigArgs) ToFunctionServiceConfigPtrOutputWithContext(ctx context.Context) FunctionServiceConfigPtrOutput
- type FunctionServiceConfigInput
- type FunctionServiceConfigOutput
- func (o FunctionServiceConfigOutput) AllTrafficOnLatestRevision() pulumi.BoolPtrOutput
- func (o FunctionServiceConfigOutput) AvailableMemory() pulumi.StringPtrOutput
- func (FunctionServiceConfigOutput) ElementType() reflect.Type
- func (o FunctionServiceConfigOutput) EnvironmentVariables() pulumi.StringMapOutput
- func (o FunctionServiceConfigOutput) GcfUri() pulumi.StringPtrOutput
- func (o FunctionServiceConfigOutput) IngressSettings() pulumi.StringPtrOutput
- func (o FunctionServiceConfigOutput) MaxInstanceCount() pulumi.IntPtrOutput
- func (o FunctionServiceConfigOutput) MinInstanceCount() pulumi.IntPtrOutput
- func (o FunctionServiceConfigOutput) Service() pulumi.StringPtrOutput
- func (o FunctionServiceConfigOutput) ServiceAccountEmail() pulumi.StringPtrOutput
- func (o FunctionServiceConfigOutput) TimeoutSeconds() pulumi.IntPtrOutput
- func (o FunctionServiceConfigOutput) ToFunctionServiceConfigOutput() FunctionServiceConfigOutput
- func (o FunctionServiceConfigOutput) ToFunctionServiceConfigOutputWithContext(ctx context.Context) FunctionServiceConfigOutput
- func (o FunctionServiceConfigOutput) ToFunctionServiceConfigPtrOutput() FunctionServiceConfigPtrOutput
- func (o FunctionServiceConfigOutput) ToFunctionServiceConfigPtrOutputWithContext(ctx context.Context) FunctionServiceConfigPtrOutput
- func (o FunctionServiceConfigOutput) Uri() pulumi.StringPtrOutput
- func (o FunctionServiceConfigOutput) VpcConnector() pulumi.StringPtrOutput
- func (o FunctionServiceConfigOutput) VpcConnectorEgressSettings() pulumi.StringPtrOutput
- type FunctionServiceConfigPtrInput
- type FunctionServiceConfigPtrOutput
- func (o FunctionServiceConfigPtrOutput) AllTrafficOnLatestRevision() pulumi.BoolPtrOutput
- func (o FunctionServiceConfigPtrOutput) AvailableMemory() pulumi.StringPtrOutput
- func (o FunctionServiceConfigPtrOutput) Elem() FunctionServiceConfigOutput
- func (FunctionServiceConfigPtrOutput) ElementType() reflect.Type
- func (o FunctionServiceConfigPtrOutput) EnvironmentVariables() pulumi.StringMapOutput
- func (o FunctionServiceConfigPtrOutput) GcfUri() pulumi.StringPtrOutput
- func (o FunctionServiceConfigPtrOutput) IngressSettings() pulumi.StringPtrOutput
- func (o FunctionServiceConfigPtrOutput) MaxInstanceCount() pulumi.IntPtrOutput
- func (o FunctionServiceConfigPtrOutput) MinInstanceCount() pulumi.IntPtrOutput
- func (o FunctionServiceConfigPtrOutput) Service() pulumi.StringPtrOutput
- func (o FunctionServiceConfigPtrOutput) ServiceAccountEmail() pulumi.StringPtrOutput
- func (o FunctionServiceConfigPtrOutput) TimeoutSeconds() pulumi.IntPtrOutput
- func (o FunctionServiceConfigPtrOutput) ToFunctionServiceConfigPtrOutput() FunctionServiceConfigPtrOutput
- func (o FunctionServiceConfigPtrOutput) ToFunctionServiceConfigPtrOutputWithContext(ctx context.Context) FunctionServiceConfigPtrOutput
- func (o FunctionServiceConfigPtrOutput) Uri() pulumi.StringPtrOutput
- func (o FunctionServiceConfigPtrOutput) VpcConnector() pulumi.StringPtrOutput
- func (o FunctionServiceConfigPtrOutput) VpcConnectorEgressSettings() pulumi.StringPtrOutput
- type FunctionState
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("nodejs12"), 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/storage" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { 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("nodejs12"), 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), }, 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"), }, }, 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) 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 (o FunctionArrayOutput) Index(i pulumi.IntInput) FunctionOutput
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 ¶
func (o FunctionBuildConfigOutput) Build() pulumi.StringPtrOutput
- 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 ¶
func (o FunctionBuildConfigOutput) EntryPoint() pulumi.StringPtrOutput
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 ¶
func (o FunctionBuildConfigOutput) Runtime() pulumi.StringPtrOutput
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.
func (FunctionBuildConfigOutput) Source ¶
func (o FunctionBuildConfigOutput) Source() FunctionBuildConfigSourcePtrOutput
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 ¶
func (o FunctionBuildConfigOutput) WorkerPool() pulumi.StringPtrOutput
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
func FunctionBuildConfigPtr ¶
func FunctionBuildConfigPtr(v *FunctionBuildConfigArgs) FunctionBuildConfigPtrInput
type FunctionBuildConfigPtrOutput ¶
type FunctionBuildConfigPtrOutput struct{ *pulumi.OutputState }
func (FunctionBuildConfigPtrOutput) Build ¶
func (o FunctionBuildConfigPtrOutput) Build() pulumi.StringPtrOutput
- The Cloud Build name of the latest successful deployment of the function.
func (FunctionBuildConfigPtrOutput) DockerRepository ¶
func (o FunctionBuildConfigPtrOutput) DockerRepository() pulumi.StringPtrOutput
User managed repository created in Artifact Registry optionally with a customer managed encryption key.
func (FunctionBuildConfigPtrOutput) Elem ¶
func (o FunctionBuildConfigPtrOutput) Elem() FunctionBuildConfigOutput
func (FunctionBuildConfigPtrOutput) ElementType ¶
func (FunctionBuildConfigPtrOutput) ElementType() reflect.Type
func (FunctionBuildConfigPtrOutput) EntryPoint ¶
func (o FunctionBuildConfigPtrOutput) EntryPoint() pulumi.StringPtrOutput
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 ¶
func (o FunctionBuildConfigPtrOutput) Runtime() pulumi.StringPtrOutput
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function.
func (FunctionBuildConfigPtrOutput) Source ¶
func (o FunctionBuildConfigPtrOutput) Source() FunctionBuildConfigSourcePtrOutput
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 ¶
func (o FunctionBuildConfigPtrOutput) WorkerPool() pulumi.StringPtrOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (FunctionBuildConfigSourceOutput) RepoSource ¶
func (o FunctionBuildConfigSourceOutput) RepoSource() FunctionBuildConfigSourceRepoSourcePtrOutput
If provided, get the source from this location in a Cloud Source Repository. Structure is documented below.
func (FunctionBuildConfigSourceOutput) StorageSource ¶
func (o FunctionBuildConfigSourceOutput) StorageSource() FunctionBuildConfigSourceStorageSourcePtrOutput
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
func FunctionBuildConfigSourcePtr ¶
func FunctionBuildConfigSourcePtr(v *FunctionBuildConfigSourceArgs) FunctionBuildConfigSourcePtrInput
type FunctionBuildConfigSourcePtrOutput ¶
type FunctionBuildConfigSourcePtrOutput struct{ *pulumi.OutputState }
func (FunctionBuildConfigSourcePtrOutput) Elem ¶
func (o FunctionBuildConfigSourcePtrOutput) Elem() FunctionBuildConfigSourceOutput
func (FunctionBuildConfigSourcePtrOutput) ElementType ¶
func (FunctionBuildConfigSourcePtrOutput) ElementType() reflect.Type
func (FunctionBuildConfigSourcePtrOutput) RepoSource ¶
func (o FunctionBuildConfigSourcePtrOutput) RepoSource() FunctionBuildConfigSourceRepoSourcePtrOutput
If provided, get the source from this location in a Cloud Source Repository. Structure is documented below.
func (FunctionBuildConfigSourcePtrOutput) StorageSource ¶
func (o FunctionBuildConfigSourcePtrOutput) StorageSource() FunctionBuildConfigSourceStorageSourcePtrOutput
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) ElementType() reflect.Type
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 ¶
func (o FunctionBuildConfigSourceRepoSourceOutput) BranchName() pulumi.StringPtrOutput
Regex matching branches to build.
func (FunctionBuildConfigSourceRepoSourceOutput) CommitSha ¶
func (o FunctionBuildConfigSourceRepoSourceOutput) CommitSha() pulumi.StringPtrOutput
Regex matching tags to build.
func (FunctionBuildConfigSourceRepoSourceOutput) Dir ¶
func (o FunctionBuildConfigSourceRepoSourceOutput) Dir() pulumi.StringPtrOutput
Directory, relative to the source root, in which to run the build.
func (FunctionBuildConfigSourceRepoSourceOutput) ElementType ¶
func (FunctionBuildConfigSourceRepoSourceOutput) ElementType() reflect.Type
func (FunctionBuildConfigSourceRepoSourceOutput) InvertRegex ¶
func (o FunctionBuildConfigSourceRepoSourceOutput) InvertRegex() pulumi.BoolPtrOutput
Only trigger a build if the revision regex does NOT match the revision regex.
func (FunctionBuildConfigSourceRepoSourceOutput) ProjectId ¶
func (o FunctionBuildConfigSourceRepoSourceOutput) ProjectId() pulumi.StringPtrOutput
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
func (FunctionBuildConfigSourceRepoSourceOutput) RepoName ¶
func (o FunctionBuildConfigSourceRepoSourceOutput) RepoName() pulumi.StringPtrOutput
Name of the Cloud Source Repository.
func (FunctionBuildConfigSourceRepoSourceOutput) TagName ¶
func (o FunctionBuildConfigSourceRepoSourceOutput) TagName() pulumi.StringPtrOutput
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
func FunctionBuildConfigSourceRepoSourcePtr ¶
func FunctionBuildConfigSourceRepoSourcePtr(v *FunctionBuildConfigSourceRepoSourceArgs) FunctionBuildConfigSourceRepoSourcePtrInput
type FunctionBuildConfigSourceRepoSourcePtrOutput ¶
type FunctionBuildConfigSourceRepoSourcePtrOutput struct{ *pulumi.OutputState }
func (FunctionBuildConfigSourceRepoSourcePtrOutput) BranchName ¶
func (o FunctionBuildConfigSourceRepoSourcePtrOutput) BranchName() pulumi.StringPtrOutput
Regex matching branches to build.
func (FunctionBuildConfigSourceRepoSourcePtrOutput) CommitSha ¶
func (o FunctionBuildConfigSourceRepoSourcePtrOutput) CommitSha() pulumi.StringPtrOutput
Regex matching tags to build.
func (FunctionBuildConfigSourceRepoSourcePtrOutput) Dir ¶
func (o FunctionBuildConfigSourceRepoSourcePtrOutput) Dir() pulumi.StringPtrOutput
Directory, relative to the source root, in which to run the build.
func (FunctionBuildConfigSourceRepoSourcePtrOutput) ElementType ¶
func (FunctionBuildConfigSourceRepoSourcePtrOutput) ElementType() reflect.Type
func (FunctionBuildConfigSourceRepoSourcePtrOutput) InvertRegex ¶
func (o FunctionBuildConfigSourceRepoSourcePtrOutput) InvertRegex() pulumi.BoolPtrOutput
Only trigger a build if the revision regex does NOT match the revision regex.
func (FunctionBuildConfigSourceRepoSourcePtrOutput) ProjectId ¶
func (o FunctionBuildConfigSourceRepoSourcePtrOutput) ProjectId() pulumi.StringPtrOutput
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
func (FunctionBuildConfigSourceRepoSourcePtrOutput) RepoName ¶
func (o FunctionBuildConfigSourceRepoSourcePtrOutput) RepoName() pulumi.StringPtrOutput
Name of the Cloud Source Repository.
func (FunctionBuildConfigSourceRepoSourcePtrOutput) TagName ¶
func (o FunctionBuildConfigSourceRepoSourcePtrOutput) TagName() pulumi.StringPtrOutput
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) ElementType() reflect.Type
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 ¶
func (o FunctionBuildConfigSourceStorageSourceOutput) Bucket() pulumi.StringPtrOutput
Google Cloud Storage bucket containing the source
func (FunctionBuildConfigSourceStorageSourceOutput) ElementType ¶
func (FunctionBuildConfigSourceStorageSourceOutput) ElementType() reflect.Type
func (FunctionBuildConfigSourceStorageSourceOutput) Generation ¶
func (o FunctionBuildConfigSourceStorageSourceOutput) Generation() pulumi.IntPtrOutput
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
func (FunctionBuildConfigSourceStorageSourceOutput) Object ¶
func (o FunctionBuildConfigSourceStorageSourceOutput) Object() pulumi.StringPtrOutput
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
func FunctionBuildConfigSourceStorageSourcePtr ¶
func FunctionBuildConfigSourceStorageSourcePtr(v *FunctionBuildConfigSourceStorageSourceArgs) FunctionBuildConfigSourceStorageSourcePtrInput
type FunctionBuildConfigSourceStorageSourcePtrOutput ¶
type FunctionBuildConfigSourceStorageSourcePtrOutput struct{ *pulumi.OutputState }
func (FunctionBuildConfigSourceStorageSourcePtrOutput) Bucket ¶
func (o FunctionBuildConfigSourceStorageSourcePtrOutput) Bucket() pulumi.StringPtrOutput
Google Cloud Storage bucket containing the source
func (FunctionBuildConfigSourceStorageSourcePtrOutput) ElementType ¶
func (FunctionBuildConfigSourceStorageSourcePtrOutput) ElementType() reflect.Type
func (FunctionBuildConfigSourceStorageSourcePtrOutput) Generation ¶
func (o FunctionBuildConfigSourceStorageSourcePtrOutput) Generation() pulumi.IntPtrOutput
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
func (FunctionBuildConfigSourceStorageSourcePtrOutput) Object ¶
func (o FunctionBuildConfigSourceStorageSourcePtrOutput) Object() pulumi.StringPtrOutput
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 ¶
func (o FunctionEventTriggerOutput) EventType() pulumi.StringPtrOutput
Required. The type of event to observe.
func (FunctionEventTriggerOutput) PubsubTopic ¶
func (o FunctionEventTriggerOutput) PubsubTopic() pulumi.StringPtrOutput
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 ¶
func (o FunctionEventTriggerOutput) RetryPolicy() pulumi.StringPtrOutput
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 ¶
func (o FunctionEventTriggerOutput) Trigger() pulumi.StringPtrOutput
- The resource name of the Eventarc trigger.
func (FunctionEventTriggerOutput) TriggerRegion ¶
func (o FunctionEventTriggerOutput) TriggerRegion() pulumi.StringPtrOutput
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
func FunctionEventTriggerPtr ¶
func FunctionEventTriggerPtr(v *FunctionEventTriggerArgs) FunctionEventTriggerPtrInput
type FunctionEventTriggerPtrOutput ¶
type FunctionEventTriggerPtrOutput struct{ *pulumi.OutputState }
func (FunctionEventTriggerPtrOutput) Elem ¶
func (o FunctionEventTriggerPtrOutput) Elem() FunctionEventTriggerOutput
func (FunctionEventTriggerPtrOutput) ElementType ¶
func (FunctionEventTriggerPtrOutput) ElementType() reflect.Type
func (FunctionEventTriggerPtrOutput) EventType ¶
func (o FunctionEventTriggerPtrOutput) EventType() pulumi.StringPtrOutput
Required. The type of event to observe.
func (FunctionEventTriggerPtrOutput) PubsubTopic ¶
func (o FunctionEventTriggerPtrOutput) PubsubTopic() pulumi.StringPtrOutput
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 ¶
func (o FunctionEventTriggerPtrOutput) RetryPolicy() pulumi.StringPtrOutput
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 ¶
func (o FunctionEventTriggerPtrOutput) Trigger() pulumi.StringPtrOutput
- The resource name of the Eventarc trigger.
func (FunctionEventTriggerPtrOutput) TriggerRegion ¶
func (o FunctionEventTriggerPtrOutput) TriggerRegion() pulumi.StringPtrOutput
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 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 (o FunctionMapOutput) MapIndex(k pulumi.StringInput) FunctionOutput
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) ElementType ¶
func (FunctionOutput) ElementType() reflect.Type
func (FunctionOutput) ToFunctionOutput ¶
func (o FunctionOutput) ToFunctionOutput() FunctionOutput
func (FunctionOutput) ToFunctionOutputWithContext ¶
func (o FunctionOutput) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput
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 ¶
func (o FunctionServiceConfigOutput) AvailableMemory() pulumi.StringPtrOutput
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) ElementType() reflect.Type
func (FunctionServiceConfigOutput) EnvironmentVariables ¶
func (o FunctionServiceConfigOutput) EnvironmentVariables() pulumi.StringMapOutput
Environment variables that shall be available during function execution.
func (FunctionServiceConfigOutput) GcfUri ¶
func (o FunctionServiceConfigOutput) GcfUri() pulumi.StringPtrOutput
- URIs of the Service deployed
func (FunctionServiceConfigOutput) IngressSettings ¶
func (o FunctionServiceConfigOutput) IngressSettings() pulumi.StringPtrOutput
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 ¶
func (o FunctionServiceConfigOutput) Service() pulumi.StringPtrOutput
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 ¶
func (o FunctionServiceConfigOutput) Uri() pulumi.StringPtrOutput
- URI of the Service deployed.
func (FunctionServiceConfigOutput) VpcConnector ¶
func (o FunctionServiceConfigOutput) VpcConnector() pulumi.StringPtrOutput
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
func FunctionServiceConfigPtr ¶
func FunctionServiceConfigPtr(v *FunctionServiceConfigArgs) FunctionServiceConfigPtrInput
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 ¶
func (o FunctionServiceConfigPtrOutput) AvailableMemory() pulumi.StringPtrOutput
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 (o FunctionServiceConfigPtrOutput) Elem() FunctionServiceConfigOutput
func (FunctionServiceConfigPtrOutput) ElementType ¶
func (FunctionServiceConfigPtrOutput) ElementType() reflect.Type
func (FunctionServiceConfigPtrOutput) EnvironmentVariables ¶
func (o FunctionServiceConfigPtrOutput) EnvironmentVariables() pulumi.StringMapOutput
Environment variables that shall be available during function execution.
func (FunctionServiceConfigPtrOutput) GcfUri ¶
func (o FunctionServiceConfigPtrOutput) GcfUri() pulumi.StringPtrOutput
- URIs of the Service deployed
func (FunctionServiceConfigPtrOutput) IngressSettings ¶
func (o FunctionServiceConfigPtrOutput) IngressSettings() pulumi.StringPtrOutput
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 ¶
func (o FunctionServiceConfigPtrOutput) Service() pulumi.StringPtrOutput
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 ¶
func (o FunctionServiceConfigPtrOutput) 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 (FunctionServiceConfigPtrOutput) ToFunctionServiceConfigPtrOutput ¶
func (o FunctionServiceConfigPtrOutput) ToFunctionServiceConfigPtrOutput() FunctionServiceConfigPtrOutput
func (FunctionServiceConfigPtrOutput) ToFunctionServiceConfigPtrOutputWithContext ¶
func (o FunctionServiceConfigPtrOutput) ToFunctionServiceConfigPtrOutputWithContext(ctx context.Context) FunctionServiceConfigPtrOutput
func (FunctionServiceConfigPtrOutput) Uri ¶
func (o FunctionServiceConfigPtrOutput) Uri() pulumi.StringPtrOutput
- URI of the Service deployed.
func (FunctionServiceConfigPtrOutput) VpcConnector ¶
func (o FunctionServiceConfigPtrOutput) VpcConnector() pulumi.StringPtrOutput
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