Documentation
¶
Overview ¶
nolint: lll Package cloudfunctions exports types, functions, subpackages for provisioning cloudfunctions resources.
> This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-google) > distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature, > first check the [`pulumi/pulumi-gcp` repo](https://github.com/pulumi/pulumi-gcp/issues); however, if that doesn't turn up anything, > please consult the source [`terraform-providers/terraform-provider-google` repo](https://github.com/terraform-providers/terraform-provider-google/issues).
Index ¶
- type Function
- func (r *Function) AvailableMemoryMb() *pulumi.IntOutput
- func (r *Function) Description() *pulumi.StringOutput
- func (r *Function) EntryPoint() *pulumi.StringOutput
- func (r *Function) EnvironmentVariables() *pulumi.MapOutput
- func (r *Function) EventTrigger() *pulumi.Output
- func (r *Function) HttpsTriggerUrl() *pulumi.StringOutput
- func (r *Function) ID() *pulumi.IDOutput
- func (r *Function) Labels() *pulumi.MapOutput
- func (r *Function) MaxInstances() *pulumi.IntOutput
- func (r *Function) Name() *pulumi.StringOutput
- func (r *Function) Project() *pulumi.StringOutput
- func (r *Function) Region() *pulumi.StringOutput
- func (r *Function) Runtime() *pulumi.StringOutput
- func (r *Function) ServiceAccountEmail() *pulumi.StringOutput
- func (r *Function) SourceArchiveBucket() *pulumi.StringOutput
- func (r *Function) SourceArchiveObject() *pulumi.StringOutput
- func (r *Function) SourceRepository() *pulumi.Output
- func (r *Function) Timeout() *pulumi.IntOutput
- func (r *Function) TriggerHttp() *pulumi.BoolOutput
- func (r *Function) URN() *pulumi.URNOutput
- func (r *Function) VpcConnector() *pulumi.StringOutput
- type FunctionArgs
- type FunctionIamBinding
- func (r *FunctionIamBinding) CloudFunction() *pulumi.StringOutput
- func (r *FunctionIamBinding) Etag() *pulumi.StringOutput
- func (r *FunctionIamBinding) ID() *pulumi.IDOutput
- func (r *FunctionIamBinding) Members() *pulumi.ArrayOutput
- func (r *FunctionIamBinding) Project() *pulumi.StringOutput
- func (r *FunctionIamBinding) Region() *pulumi.StringOutput
- func (r *FunctionIamBinding) Role() *pulumi.StringOutput
- func (r *FunctionIamBinding) URN() *pulumi.URNOutput
- type FunctionIamBindingArgs
- type FunctionIamBindingState
- type FunctionIamMember
- func (r *FunctionIamMember) CloudFunction() *pulumi.StringOutput
- func (r *FunctionIamMember) Etag() *pulumi.StringOutput
- func (r *FunctionIamMember) ID() *pulumi.IDOutput
- func (r *FunctionIamMember) Member() *pulumi.StringOutput
- func (r *FunctionIamMember) Project() *pulumi.StringOutput
- func (r *FunctionIamMember) Region() *pulumi.StringOutput
- func (r *FunctionIamMember) Role() *pulumi.StringOutput
- func (r *FunctionIamMember) URN() *pulumi.URNOutput
- type FunctionIamMemberArgs
- type FunctionIamMemberState
- type FunctionIamPolicy
- func (r *FunctionIamPolicy) CloudFunction() *pulumi.StringOutput
- func (r *FunctionIamPolicy) Etag() *pulumi.StringOutput
- func (r *FunctionIamPolicy) ID() *pulumi.IDOutput
- func (r *FunctionIamPolicy) PolicyData() *pulumi.StringOutput
- func (r *FunctionIamPolicy) Project() *pulumi.StringOutput
- func (r *FunctionIamPolicy) Region() *pulumi.StringOutput
- func (r *FunctionIamPolicy) URN() *pulumi.URNOutput
- type FunctionIamPolicyArgs
- type FunctionIamPolicyState
- type FunctionState
- type GetFunctionArgs
- type GetFunctionResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
Creates a new Cloud Function. For more information see [the official documentation](https://cloud.google.com/functions/docs/) and [API](https://cloud.google.com/functions/docs/apis).
> **Warning:** As of November 1, 2019, newly created Functions are private-by-default and will require [appropriate IAM permissions](https://cloud.google.com/functions/docs/reference/iam/roles) to be invoked. See below examples for how to set up the appropriate permissions, or view the [Cloud Functions IAM resources](https://www.terraform.io/docs/providers/google/r/cloudfunctions_cloud_function_iam.html) for Cloud Functions.
> This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/cloudfunctions_function.html.markdown.
func GetFunction ¶
func GetFunction(ctx *pulumi.Context, name string, id pulumi.ID, state *FunctionState, opts ...pulumi.ResourceOpt) (*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.ResourceOpt) (*Function, error)
NewFunction registers a new resource with the given unique name, arguments, and options.
func (*Function) AvailableMemoryMb ¶
Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.
func (*Function) Description ¶
func (r *Function) Description() *pulumi.StringOutput
Description of the function.
func (*Function) EntryPoint ¶
func (r *Function) EntryPoint() *pulumi.StringOutput
Name of the function that will be executed when the Google Cloud Function is triggered.
func (*Function) EnvironmentVariables ¶ added in v0.16.0
A set of key/value environment variable pairs to assign to the function.
func (*Function) EventTrigger ¶ added in v0.16.1
A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with `triggerHttp`.
func (*Function) HttpsTriggerUrl ¶
func (r *Function) HttpsTriggerUrl() *pulumi.StringOutput
URL which triggers function execution. Returned only if `triggerHttp` is used.
func (*Function) MaxInstances ¶ added in v0.18.6
The limit on the maximum number of function instances that may coexist at a given time.
func (*Function) Name ¶
func (r *Function) Name() *pulumi.StringOutput
A user-defined name of the function. Function names must be unique globally.
func (*Function) Project ¶
func (r *Function) Project() *pulumi.StringOutput
Project of the function. If it is not provided, the provider project is used.
func (*Function) Region ¶
func (r *Function) Region() *pulumi.StringOutput
Region of function. Currently can be only "us-central1". If it is not provided, the provider region is used.
func (*Function) Runtime ¶ added in v0.16.4
func (r *Function) Runtime() *pulumi.StringOutput
The runtime in which the function is going to run. One of `"nodejs6"`, `"nodejs8"`, `"nodejs10"`, `"python37"`, `"go111"`. If empty, defaults to `"nodejs6"`. It's recommended that you override the default, as `"nodejs6"` is deprecated.
func (*Function) ServiceAccountEmail ¶ added in v0.18.0
func (r *Function) ServiceAccountEmail() *pulumi.StringOutput
If provided, the self-provided service account to run the function with.
func (*Function) SourceArchiveBucket ¶
func (r *Function) SourceArchiveBucket() *pulumi.StringOutput
The GCS bucket containing the zip archive which contains the function.
func (*Function) SourceArchiveObject ¶
func (r *Function) SourceArchiveObject() *pulumi.StringOutput
The source archive object (file) in archive bucket.
func (*Function) SourceRepository ¶ added in v0.18.0
Represents parameters related to source repository where a function is hosted. Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below.
func (*Function) Timeout ¶
Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.
func (*Function) TriggerHttp ¶
func (r *Function) TriggerHttp() *pulumi.BoolOutput
Boolean variable. Any HTTP request (of a supported type) to the endpoint will trigger function execution. Supported HTTP request types are: POST, PUT, GET, DELETE, and OPTIONS. Endpoint is returned as `httpsTriggerUrl`. Cannot be used with `triggerBucket` and `triggerTopic`.
func (*Function) VpcConnector ¶ added in v1.1.0
func (r *Function) VpcConnector() *pulumi.StringOutput
The VPC Network Connector that this cloud function can connect to. It can be either the fully-qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*`.
type FunctionArgs ¶
type FunctionArgs struct { // Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB. AvailableMemoryMb interface{} // Description of the function. Description interface{} // Name of the function that will be executed when the Google Cloud Function is triggered. EntryPoint interface{} // A set of key/value environment variable pairs to assign to the function. EnvironmentVariables interface{} // A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with `triggerHttp`. EventTrigger interface{} // URL which triggers function execution. Returned only if `triggerHttp` is used. HttpsTriggerUrl interface{} // A set of key/value label pairs to assign to the function. Labels interface{} // The limit on the maximum number of function instances that may coexist at a given time. MaxInstances interface{} // A user-defined name of the function. Function names must be unique globally. Name interface{} // Project of the function. If it is not provided, the provider project is used. Project interface{} // Region of function. Currently can be only "us-central1". If it is not provided, the provider region is used. Region interface{} // The runtime in which the function is going to run. One // of `"nodejs6"`, `"nodejs8"`, `"nodejs10"`, `"python37"`, `"go111"`. If empty, // defaults to `"nodejs6"`. It's recommended that you override the default, as // `"nodejs6"` is deprecated. Runtime interface{} // If provided, the self-provided service account to run the function with. ServiceAccountEmail interface{} // The GCS bucket containing the zip archive which contains the function. SourceArchiveBucket interface{} // The source archive object (file) in archive bucket. SourceArchiveObject interface{} // Represents parameters related to source repository where a function is hosted. // Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below. SourceRepository interface{} // Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds. Timeout interface{} // Boolean variable. Any HTTP request (of a supported type) to the endpoint will trigger function execution. Supported HTTP request types are: POST, PUT, GET, DELETE, and OPTIONS. Endpoint is returned as `httpsTriggerUrl`. Cannot be used with `triggerBucket` and `triggerTopic`. TriggerHttp interface{} // The VPC Network Connector that this cloud function can connect to. It can be either the fully-qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*`. VpcConnector interface{} }
The set of arguments for constructing a Function resource.
type FunctionIamBinding ¶ added in v1.2.0
type FunctionIamBinding struct {
// contains filtered or unexported fields
}
> This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/cloudfunctions_function_iam_binding.html.markdown.
func GetFunctionIamBinding ¶ added in v1.2.0
func GetFunctionIamBinding(ctx *pulumi.Context, name string, id pulumi.ID, state *FunctionIamBindingState, opts ...pulumi.ResourceOpt) (*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 v1.2.0
func NewFunctionIamBinding(ctx *pulumi.Context, name string, args *FunctionIamBindingArgs, opts ...pulumi.ResourceOpt) (*FunctionIamBinding, error)
NewFunctionIamBinding registers a new resource with the given unique name, arguments, and options.
func (*FunctionIamBinding) CloudFunction ¶ added in v1.2.0
func (r *FunctionIamBinding) CloudFunction() *pulumi.StringOutput
Used to find the parent resource to bind the IAM policy to
func (*FunctionIamBinding) Etag ¶ added in v1.2.0
func (r *FunctionIamBinding) Etag() *pulumi.StringOutput
(Computed) The etag of the IAM policy.
func (*FunctionIamBinding) ID ¶ added in v1.2.0
func (r *FunctionIamBinding) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*FunctionIamBinding) Members ¶ added in v1.2.0
func (r *FunctionIamBinding) Members() *pulumi.ArrayOutput
func (*FunctionIamBinding) Project ¶ added in v1.2.0
func (r *FunctionIamBinding) Project() *pulumi.StringOutput
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 (*FunctionIamBinding) Region ¶ added in v1.2.0
func (r *FunctionIamBinding) Region() *pulumi.StringOutput
The location of this cloud function. Used to find the parent resource to bind the IAM policy to
func (*FunctionIamBinding) Role ¶ added in v1.2.0
func (r *FunctionIamBinding) Role() *pulumi.StringOutput
The role that should be applied. Only one `cloudfunctions.FunctionIamBinding` can be used per role. Note that custom roles must be of the format `[projects|organizations]/{parent-name}/roles/{role-name}`.
func (*FunctionIamBinding) URN ¶ added in v1.2.0
func (r *FunctionIamBinding) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
type FunctionIamBindingArgs ¶ added in v1.2.0
type FunctionIamBindingArgs struct { // Used to find the parent resource to bind the IAM policy to CloudFunction interface{} Members interface{} // 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 interface{} // The location of this cloud function. Used to find the parent resource to bind the IAM policy to Region interface{} // The role that should be applied. Only one // `cloudfunctions.FunctionIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role interface{} }
The set of arguments for constructing a FunctionIamBinding resource.
type FunctionIamBindingState ¶ added in v1.2.0
type FunctionIamBindingState struct { // Used to find the parent resource to bind the IAM policy to CloudFunction interface{} // (Computed) The etag of the IAM policy. Etag interface{} Members interface{} // 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 interface{} // The location of this cloud function. Used to find the parent resource to bind the IAM policy to Region interface{} // The role that should be applied. Only one // `cloudfunctions.FunctionIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role interface{} }
Input properties used for looking up and filtering FunctionIamBinding resources.
type FunctionIamMember ¶ added in v1.2.0
type FunctionIamMember struct {
// contains filtered or unexported fields
}
> This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/cloudfunctions_function_iam_member.html.markdown.
func GetFunctionIamMember ¶ added in v1.2.0
func GetFunctionIamMember(ctx *pulumi.Context, name string, id pulumi.ID, state *FunctionIamMemberState, opts ...pulumi.ResourceOpt) (*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 v1.2.0
func NewFunctionIamMember(ctx *pulumi.Context, name string, args *FunctionIamMemberArgs, opts ...pulumi.ResourceOpt) (*FunctionIamMember, error)
NewFunctionIamMember registers a new resource with the given unique name, arguments, and options.
func (*FunctionIamMember) CloudFunction ¶ added in v1.2.0
func (r *FunctionIamMember) CloudFunction() *pulumi.StringOutput
Used to find the parent resource to bind the IAM policy to
func (*FunctionIamMember) Etag ¶ added in v1.2.0
func (r *FunctionIamMember) Etag() *pulumi.StringOutput
(Computed) The etag of the IAM policy.
func (*FunctionIamMember) ID ¶ added in v1.2.0
func (r *FunctionIamMember) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*FunctionIamMember) Member ¶ added in v1.2.0
func (r *FunctionIamMember) Member() *pulumi.StringOutput
func (*FunctionIamMember) Project ¶ added in v1.2.0
func (r *FunctionIamMember) Project() *pulumi.StringOutput
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 (*FunctionIamMember) Region ¶ added in v1.2.0
func (r *FunctionIamMember) Region() *pulumi.StringOutput
The location of this cloud function. Used to find the parent resource to bind the IAM policy to
func (*FunctionIamMember) Role ¶ added in v1.2.0
func (r *FunctionIamMember) Role() *pulumi.StringOutput
The role that should be applied. Only one `cloudfunctions.FunctionIamBinding` can be used per role. Note that custom roles must be of the format `[projects|organizations]/{parent-name}/roles/{role-name}`.
func (*FunctionIamMember) URN ¶ added in v1.2.0
func (r *FunctionIamMember) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
type FunctionIamMemberArgs ¶ added in v1.2.0
type FunctionIamMemberArgs struct { // Used to find the parent resource to bind the IAM policy to CloudFunction interface{} Member interface{} // 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 interface{} // The location of this cloud function. Used to find the parent resource to bind the IAM policy to Region interface{} // The role that should be applied. Only one // `cloudfunctions.FunctionIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role interface{} }
The set of arguments for constructing a FunctionIamMember resource.
type FunctionIamMemberState ¶ added in v1.2.0
type FunctionIamMemberState struct { // Used to find the parent resource to bind the IAM policy to CloudFunction interface{} // (Computed) The etag of the IAM policy. Etag interface{} Member interface{} // 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 interface{} // The location of this cloud function. Used to find the parent resource to bind the IAM policy to Region interface{} // The role that should be applied. Only one // `cloudfunctions.FunctionIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role interface{} }
Input properties used for looking up and filtering FunctionIamMember resources.
type FunctionIamPolicy ¶ added in v1.2.0
type FunctionIamPolicy struct {
// contains filtered or unexported fields
}
> This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/cloudfunctions_function_iam_policy.html.markdown.
func GetFunctionIamPolicy ¶ added in v1.2.0
func GetFunctionIamPolicy(ctx *pulumi.Context, name string, id pulumi.ID, state *FunctionIamPolicyState, opts ...pulumi.ResourceOpt) (*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 v1.2.0
func NewFunctionIamPolicy(ctx *pulumi.Context, name string, args *FunctionIamPolicyArgs, opts ...pulumi.ResourceOpt) (*FunctionIamPolicy, error)
NewFunctionIamPolicy registers a new resource with the given unique name, arguments, and options.
func (*FunctionIamPolicy) CloudFunction ¶ added in v1.2.0
func (r *FunctionIamPolicy) CloudFunction() *pulumi.StringOutput
Used to find the parent resource to bind the IAM policy to
func (*FunctionIamPolicy) Etag ¶ added in v1.2.0
func (r *FunctionIamPolicy) Etag() *pulumi.StringOutput
(Computed) The etag of the IAM policy.
func (*FunctionIamPolicy) ID ¶ added in v1.2.0
func (r *FunctionIamPolicy) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*FunctionIamPolicy) PolicyData ¶ added in v1.2.0
func (r *FunctionIamPolicy) PolicyData() *pulumi.StringOutput
The policy data generated by a `organizations.getIAMPolicy` data source.
func (*FunctionIamPolicy) Project ¶ added in v1.2.0
func (r *FunctionIamPolicy) Project() *pulumi.StringOutput
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 (*FunctionIamPolicy) Region ¶ added in v1.2.0
func (r *FunctionIamPolicy) Region() *pulumi.StringOutput
The location of this cloud function. Used to find the parent resource to bind the IAM policy to
func (*FunctionIamPolicy) URN ¶ added in v1.2.0
func (r *FunctionIamPolicy) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
type FunctionIamPolicyArgs ¶ added in v1.2.0
type FunctionIamPolicyArgs struct { // Used to find the parent resource to bind the IAM policy to CloudFunction interface{} // The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData interface{} // 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 interface{} // The location of this cloud function. Used to find the parent resource to bind the IAM policy to Region interface{} }
The set of arguments for constructing a FunctionIamPolicy resource.
type FunctionIamPolicyState ¶ added in v1.2.0
type FunctionIamPolicyState struct { // Used to find the parent resource to bind the IAM policy to CloudFunction interface{} // (Computed) The etag of the IAM policy. Etag interface{} // The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData interface{} // 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 interface{} // The location of this cloud function. Used to find the parent resource to bind the IAM policy to Region interface{} }
Input properties used for looking up and filtering FunctionIamPolicy resources.
type FunctionState ¶
type FunctionState struct { // Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB. AvailableMemoryMb interface{} // Description of the function. Description interface{} // Name of the function that will be executed when the Google Cloud Function is triggered. EntryPoint interface{} // A set of key/value environment variable pairs to assign to the function. EnvironmentVariables interface{} // A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with `triggerHttp`. EventTrigger interface{} // URL which triggers function execution. Returned only if `triggerHttp` is used. HttpsTriggerUrl interface{} // A set of key/value label pairs to assign to the function. Labels interface{} // The limit on the maximum number of function instances that may coexist at a given time. MaxInstances interface{} // A user-defined name of the function. Function names must be unique globally. Name interface{} // Project of the function. If it is not provided, the provider project is used. Project interface{} // Region of function. Currently can be only "us-central1". If it is not provided, the provider region is used. Region interface{} // The runtime in which the function is going to run. One // of `"nodejs6"`, `"nodejs8"`, `"nodejs10"`, `"python37"`, `"go111"`. If empty, // defaults to `"nodejs6"`. It's recommended that you override the default, as // `"nodejs6"` is deprecated. Runtime interface{} // If provided, the self-provided service account to run the function with. ServiceAccountEmail interface{} // The GCS bucket containing the zip archive which contains the function. SourceArchiveBucket interface{} // The source archive object (file) in archive bucket. SourceArchiveObject interface{} // Represents parameters related to source repository where a function is hosted. // Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below. SourceRepository interface{} // Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds. Timeout interface{} // Boolean variable. Any HTTP request (of a supported type) to the endpoint will trigger function execution. Supported HTTP request types are: POST, PUT, GET, DELETE, and OPTIONS. Endpoint is returned as `httpsTriggerUrl`. Cannot be used with `triggerBucket` and `triggerTopic`. TriggerHttp interface{} // The VPC Network Connector that this cloud function can connect to. It can be either the fully-qualified URI, or the short name of the network connector resource. The format of this field is `projects/*/locations/*/connectors/*`. VpcConnector interface{} }
Input properties used for looking up and filtering Function resources.
type GetFunctionArgs ¶
type GetFunctionArgs struct { // The name of a Cloud Function. Name interface{} // The project in which the resource belongs. If it // is not provided, the provider project is used. Project interface{} // The region in which the resource belongs. If it // is not provided, the provider region is used. Region interface{} }
A collection of arguments for invoking getFunction.
type GetFunctionResult ¶
type GetFunctionResult struct { // Available memory (in MB) to the function. AvailableMemoryMb interface{} // Description of the function. Description interface{} // Name of a JavaScript function that will be executed when the Google Cloud Function is triggered. EntryPoint interface{} EnvironmentVariables interface{} // A source that fires events in response to a condition in another service. Structure is documented below. EventTriggers interface{} // If function is triggered by HTTP, trigger URL is set here. HttpsTriggerUrl interface{} // A map of labels applied to this function. Labels interface{} MaxInstances interface{} // The name of the Cloud Function. Name interface{} Project interface{} Region interface{} // The runtime in which the function is running. Runtime interface{} // The service account email to be assumed by the cloud function. ServiceAccountEmail interface{} // The GCS bucket containing the zip archive which contains the function. SourceArchiveBucket interface{} // The source archive object (file) in archive bucket. SourceArchiveObject interface{} SourceRepositories interface{} // Function execution timeout (in seconds). Timeout interface{} TriggerBucket interface{} // If function is triggered by HTTP, this boolean is set. TriggerHttp interface{} TriggerTopic interface{} VpcConnector interface{} // id is the provider-assigned unique ID for this managed resource. Id interface{} }
A collection of values returned by getFunction.
func LookupFunction ¶
func LookupFunction(ctx *pulumi.Context, args *GetFunctionArgs) (*GetFunctionResult, error)
Get information about a Google Cloud Function. For more information see the [official documentation](https://cloud.google.com/functions/docs/) and [API](https://cloud.google.com/functions/docs/apis).
> This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/d/cloudfunctions_function.html.markdown.