Function
Creates a new Cloud Function. For more information see the official documentation and API.
Warning: As of November 1, 2019, newly created Functions are private-by-default and will require appropriate IAM permissions to be invoked. See below examples for how to set up the appropriate permissions, or view the Cloud Functions IAM resources for Cloud Functions.
Create a Function Resource
new Function(name: string, args: FunctionArgs, opts?: CustomResourceOptions);def Function(resource_name, opts=None, available_memory_mb=None, description=None, entry_point=None, environment_variables=None, event_trigger=None, https_trigger_url=None, ingress_settings=None, labels=None, max_instances=None, name=None, project=None, region=None, runtime=None, service_account_email=None, source_archive_bucket=None, source_archive_object=None, source_repository=None, timeout=None, trigger_http=None, vpc_connector=None, vpc_connector_egress_settings=None, __props__=None);func NewFunction(ctx *Context, name string, args FunctionArgs, opts ...ResourceOption) (*Function, error)public Function(string name, FunctionArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Function Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Function resource accepts the following input properties:
- Runtime string
The runtime in which the function is going to run. Eg.
"nodejs8","nodejs10","python37","go111".- Available
Memory intMb Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.
- Description string
Description of the function.
- Entry
Point string Name of the function that will be executed when the Google Cloud Function is triggered.
- Environment
Variables Dictionary<string, object> A set of key/value environment variable pairs to assign to the function.
- Event
Trigger FunctionEvent Trigger Args A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with
trigger_http.- Https
Trigger stringUrl URL which triggers function execution. Returned only if
trigger_httpis used.- Ingress
Settings string String value that controls what traffic can reach the function. Allowed values are ALLOW_ALL and ALLOW_INTERNAL_ONLY. Changes to this field will recreate the cloud function.
- Labels Dictionary<string, object>
A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
- Max
Instances int The limit on the maximum number of function instances that may coexist at a given time.
- Name string
A user-defined name of the function. Function names must be unique globally.
- Project string
Project of the function. If it is not provided, the provider project is used.
- Region string
Region of function. Currently can be only “us-central1”. If it is not provided, the provider region is used.
- Service
Account stringEmail If provided, the self-provided service account to run the function with.
- Source
Archive stringBucket The GCS bucket containing the zip archive which contains the function.
- Source
Archive stringObject The source archive object (file) in archive bucket.
- Source
Repository FunctionSource Repository Args Represents parameters related to source repository where a function is hosted. Cannot be set alongside
source_archive_bucketorsource_archive_object. Structure is documented below.- Timeout int
Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.
- Trigger
Http bool 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
https_trigger_url. Cannot be used withtrigger_bucketandtrigger_topic.- Vpc
Connector string 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/*.- Vpc
Connector stringEgress Settings The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are
ALL_TRAFFICandPRIVATE_RANGES_ONLY. Defaults toPRIVATE_RANGES_ONLY. If unset, this field preserves the previously set value.
- Runtime string
The runtime in which the function is going to run. Eg.
"nodejs8","nodejs10","python37","go111".- Available
Memory intMb Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.
- Description string
Description of the function.
- Entry
Point string Name of the function that will be executed when the Google Cloud Function is triggered.
- Environment
Variables map[string]interface{} A set of key/value environment variable pairs to assign to the function.
- Event
Trigger FunctionEvent Trigger A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with
trigger_http.- Https
Trigger stringUrl URL which triggers function execution. Returned only if
trigger_httpis used.- Ingress
Settings string String value that controls what traffic can reach the function. Allowed values are ALLOW_ALL and ALLOW_INTERNAL_ONLY. Changes to this field will recreate the cloud function.
- Labels map[string]interface{}
A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
- Max
Instances int The limit on the maximum number of function instances that may coexist at a given time.
- Name string
A user-defined name of the function. Function names must be unique globally.
- Project string
Project of the function. If it is not provided, the provider project is used.
- Region string
Region of function. Currently can be only “us-central1”. If it is not provided, the provider region is used.
- Service
Account stringEmail If provided, the self-provided service account to run the function with.
- Source
Archive stringBucket The GCS bucket containing the zip archive which contains the function.
- Source
Archive stringObject The source archive object (file) in archive bucket.
- Source
Repository FunctionSource Repository Represents parameters related to source repository where a function is hosted. Cannot be set alongside
source_archive_bucketorsource_archive_object. Structure is documented below.- Timeout int
Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.
- Trigger
Http bool 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
https_trigger_url. Cannot be used withtrigger_bucketandtrigger_topic.- Vpc
Connector string 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/*.- Vpc
Connector stringEgress Settings The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are
ALL_TRAFFICandPRIVATE_RANGES_ONLY. Defaults toPRIVATE_RANGES_ONLY. If unset, this field preserves the previously set value.
- runtime string
The runtime in which the function is going to run. Eg.
"nodejs8","nodejs10","python37","go111".- available
Memory numberMb Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.
- description string
Description of the function.
- entry
Point string Name of the function that will be executed when the Google Cloud Function is triggered.
- environment
Variables {[key: string]: any} A set of key/value environment variable pairs to assign to the function.
- event
Trigger FunctionEvent Trigger A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with
trigger_http.- https
Trigger stringUrl URL which triggers function execution. Returned only if
trigger_httpis used.- ingress
Settings string String value that controls what traffic can reach the function. Allowed values are ALLOW_ALL and ALLOW_INTERNAL_ONLY. Changes to this field will recreate the cloud function.
- labels {[key: string]: any}
A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
- max
Instances number The limit on the maximum number of function instances that may coexist at a given time.
- name string
A user-defined name of the function. Function names must be unique globally.
- project string
Project of the function. If it is not provided, the provider project is used.
- region string
Region of function. Currently can be only “us-central1”. If it is not provided, the provider region is used.
- service
Account stringEmail If provided, the self-provided service account to run the function with.
- source
Archive stringBucket The GCS bucket containing the zip archive which contains the function.
- source
Archive stringObject The source archive object (file) in archive bucket.
- source
Repository FunctionSource Repository Represents parameters related to source repository where a function is hosted. Cannot be set alongside
source_archive_bucketorsource_archive_object. Structure is documented below.- timeout number
Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.
- trigger
Http boolean 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
https_trigger_url. Cannot be used withtrigger_bucketandtrigger_topic.- vpc
Connector string 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/*.- vpc
Connector stringEgress Settings The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are
ALL_TRAFFICandPRIVATE_RANGES_ONLY. Defaults toPRIVATE_RANGES_ONLY. If unset, this field preserves the previously set value.
- runtime str
The runtime in which the function is going to run. Eg.
"nodejs8","nodejs10","python37","go111".- available_
memory_ floatmb Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.
- description str
Description of the function.
- entry_
point str Name of the function that will be executed when the Google Cloud Function is triggered.
- environment_
variables Dict[str, Any] A set of key/value environment variable pairs to assign to the function.
- event_
trigger Dict[FunctionEvent Trigger] A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with
trigger_http.- https_
trigger_ strurl URL which triggers function execution. Returned only if
trigger_httpis used.- ingress_
settings str String value that controls what traffic can reach the function. Allowed values are ALLOW_ALL and ALLOW_INTERNAL_ONLY. Changes to this field will recreate the cloud function.
- labels Dict[str, Any]
A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
- max_
instances float The limit on the maximum number of function instances that may coexist at a given time.
- name str
A user-defined name of the function. Function names must be unique globally.
- project str
Project of the function. If it is not provided, the provider project is used.
- region str
Region of function. Currently can be only “us-central1”. If it is not provided, the provider region is used.
- service_
account_ stremail If provided, the self-provided service account to run the function with.
- source_
archive_ strbucket The GCS bucket containing the zip archive which contains the function.
- source_
archive_ strobject The source archive object (file) in archive bucket.
- source_
repository Dict[FunctionSource Repository] Represents parameters related to source repository where a function is hosted. Cannot be set alongside
source_archive_bucketorsource_archive_object. Structure is documented below.- timeout float
Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.
- trigger_
http bool 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
https_trigger_url. Cannot be used withtrigger_bucketandtrigger_topic.- vpc_
connector str 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/*.- vpc_
connector_ stregress_ settings The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are
ALL_TRAFFICandPRIVATE_RANGES_ONLY. Defaults toPRIVATE_RANGES_ONLY. If unset, this field preserves the previously set value.
Outputs
All input properties are implicitly available as output properties. Additionally, the Function resource produces the following output properties:
Look up an Existing Function Resource
Get an existing Function resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FunctionState, opts?: CustomResourceOptions): Functionstatic get(resource_name, id, opts=None, available_memory_mb=None, description=None, entry_point=None, environment_variables=None, event_trigger=None, https_trigger_url=None, ingress_settings=None, labels=None, max_instances=None, name=None, project=None, region=None, runtime=None, service_account_email=None, source_archive_bucket=None, source_archive_object=None, source_repository=None, timeout=None, trigger_http=None, vpc_connector=None, vpc_connector_egress_settings=None, __props__=None);func GetFunction(ctx *Context, name string, id IDInput, state *FunctionState, opts ...ResourceOption) (*Function, error)public static Function Get(string name, Input<string> id, FunctionState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Available
Memory intMb Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.
- Description string
Description of the function.
- Entry
Point string Name of the function that will be executed when the Google Cloud Function is triggered.
- Environment
Variables Dictionary<string, object> A set of key/value environment variable pairs to assign to the function.
- Event
Trigger FunctionEvent Trigger Args A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with
trigger_http.- Https
Trigger stringUrl URL which triggers function execution. Returned only if
trigger_httpis used.- Ingress
Settings string String value that controls what traffic can reach the function. Allowed values are ALLOW_ALL and ALLOW_INTERNAL_ONLY. Changes to this field will recreate the cloud function.
- Labels Dictionary<string, object>
A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
- Max
Instances int The limit on the maximum number of function instances that may coexist at a given time.
- Name string
A user-defined name of the function. Function names must be unique globally.
- Project string
Project of the function. If it is not provided, the provider project is used.
- Region string
Region of function. Currently can be only “us-central1”. If it is not provided, the provider region is used.
- Runtime string
The runtime in which the function is going to run. Eg.
"nodejs8","nodejs10","python37","go111".- Service
Account stringEmail If provided, the self-provided service account to run the function with.
- Source
Archive stringBucket The GCS bucket containing the zip archive which contains the function.
- Source
Archive stringObject The source archive object (file) in archive bucket.
- Source
Repository FunctionSource Repository Args Represents parameters related to source repository where a function is hosted. Cannot be set alongside
source_archive_bucketorsource_archive_object. Structure is documented below.- Timeout int
Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.
- Trigger
Http bool 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
https_trigger_url. Cannot be used withtrigger_bucketandtrigger_topic.- Vpc
Connector string 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/*.- Vpc
Connector stringEgress Settings The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are
ALL_TRAFFICandPRIVATE_RANGES_ONLY. Defaults toPRIVATE_RANGES_ONLY. If unset, this field preserves the previously set value.
- Available
Memory intMb Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.
- Description string
Description of the function.
- Entry
Point string Name of the function that will be executed when the Google Cloud Function is triggered.
- Environment
Variables map[string]interface{} A set of key/value environment variable pairs to assign to the function.
- Event
Trigger FunctionEvent Trigger A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with
trigger_http.- Https
Trigger stringUrl URL which triggers function execution. Returned only if
trigger_httpis used.- Ingress
Settings string String value that controls what traffic can reach the function. Allowed values are ALLOW_ALL and ALLOW_INTERNAL_ONLY. Changes to this field will recreate the cloud function.
- Labels map[string]interface{}
A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
- Max
Instances int The limit on the maximum number of function instances that may coexist at a given time.
- Name string
A user-defined name of the function. Function names must be unique globally.
- Project string
Project of the function. If it is not provided, the provider project is used.
- Region string
Region of function. Currently can be only “us-central1”. If it is not provided, the provider region is used.
- Runtime string
The runtime in which the function is going to run. Eg.
"nodejs8","nodejs10","python37","go111".- Service
Account stringEmail If provided, the self-provided service account to run the function with.
- Source
Archive stringBucket The GCS bucket containing the zip archive which contains the function.
- Source
Archive stringObject The source archive object (file) in archive bucket.
- Source
Repository FunctionSource Repository Represents parameters related to source repository where a function is hosted. Cannot be set alongside
source_archive_bucketorsource_archive_object. Structure is documented below.- Timeout int
Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.
- Trigger
Http bool 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
https_trigger_url. Cannot be used withtrigger_bucketandtrigger_topic.- Vpc
Connector string 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/*.- Vpc
Connector stringEgress Settings The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are
ALL_TRAFFICandPRIVATE_RANGES_ONLY. Defaults toPRIVATE_RANGES_ONLY. If unset, this field preserves the previously set value.
- available
Memory numberMb Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.
- description string
Description of the function.
- entry
Point string Name of the function that will be executed when the Google Cloud Function is triggered.
- environment
Variables {[key: string]: any} A set of key/value environment variable pairs to assign to the function.
- event
Trigger FunctionEvent Trigger A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with
trigger_http.- https
Trigger stringUrl URL which triggers function execution. Returned only if
trigger_httpis used.- ingress
Settings string String value that controls what traffic can reach the function. Allowed values are ALLOW_ALL and ALLOW_INTERNAL_ONLY. Changes to this field will recreate the cloud function.
- labels {[key: string]: any}
A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
- max
Instances number The limit on the maximum number of function instances that may coexist at a given time.
- name string
A user-defined name of the function. Function names must be unique globally.
- project string
Project of the function. If it is not provided, the provider project is used.
- region string
Region of function. Currently can be only “us-central1”. If it is not provided, the provider region is used.
- runtime string
The runtime in which the function is going to run. Eg.
"nodejs8","nodejs10","python37","go111".- service
Account stringEmail If provided, the self-provided service account to run the function with.
- source
Archive stringBucket The GCS bucket containing the zip archive which contains the function.
- source
Archive stringObject The source archive object (file) in archive bucket.
- source
Repository FunctionSource Repository Represents parameters related to source repository where a function is hosted. Cannot be set alongside
source_archive_bucketorsource_archive_object. Structure is documented below.- timeout number
Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.
- trigger
Http boolean 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
https_trigger_url. Cannot be used withtrigger_bucketandtrigger_topic.- vpc
Connector string 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/*.- vpc
Connector stringEgress Settings The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are
ALL_TRAFFICandPRIVATE_RANGES_ONLY. Defaults toPRIVATE_RANGES_ONLY. If unset, this field preserves the previously set value.
- available_
memory_ floatmb Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.
- description str
Description of the function.
- entry_
point str Name of the function that will be executed when the Google Cloud Function is triggered.
- environment_
variables Dict[str, Any] A set of key/value environment variable pairs to assign to the function.
- event_
trigger Dict[FunctionEvent Trigger] A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with
trigger_http.- https_
trigger_ strurl URL which triggers function execution. Returned only if
trigger_httpis used.- ingress_
settings str String value that controls what traffic can reach the function. Allowed values are ALLOW_ALL and ALLOW_INTERNAL_ONLY. Changes to this field will recreate the cloud function.
- labels Dict[str, Any]
A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
- max_
instances float The limit on the maximum number of function instances that may coexist at a given time.
- name str
A user-defined name of the function. Function names must be unique globally.
- project str
Project of the function. If it is not provided, the provider project is used.
- region str
Region of function. Currently can be only “us-central1”. If it is not provided, the provider region is used.
- runtime str
The runtime in which the function is going to run. Eg.
"nodejs8","nodejs10","python37","go111".- service_
account_ stremail If provided, the self-provided service account to run the function with.
- source_
archive_ strbucket The GCS bucket containing the zip archive which contains the function.
- source_
archive_ strobject The source archive object (file) in archive bucket.
- source_
repository Dict[FunctionSource Repository] Represents parameters related to source repository where a function is hosted. Cannot be set alongside
source_archive_bucketorsource_archive_object. Structure is documented below.- timeout float
Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.
- trigger_
http bool 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
https_trigger_url. Cannot be used withtrigger_bucketandtrigger_topic.- vpc_
connector str 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/*.- vpc_
connector_ stregress_ settings The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are
ALL_TRAFFICandPRIVATE_RANGES_ONLY. Defaults toPRIVATE_RANGES_ONLY. If unset, this field preserves the previously set value.
Supporting Types
FunctionEventTrigger
- Event
Type string The type of event to observe. For example:
"google.storage.object.finalize". See the documentation on calling Cloud Functions for a full reference of accepted triggers.- Resource string
Required. The name or partial URI of the resource from which to observe events. For example,
"myBucket"or"projects/my-project/topics/my-topic"- Failure
Policy FunctionEvent Trigger Failure Policy Args Specifies policy for failed executions. Structure is documented below.
- Event
Type string The type of event to observe. For example:
"google.storage.object.finalize". See the documentation on calling Cloud Functions for a full reference of accepted triggers.- Resource string
Required. The name or partial URI of the resource from which to observe events. For example,
"myBucket"or"projects/my-project/topics/my-topic"- Failure
Policy FunctionEvent Trigger Failure Policy Specifies policy for failed executions. Structure is documented below.
- event
Type string The type of event to observe. For example:
"google.storage.object.finalize". See the documentation on calling Cloud Functions for a full reference of accepted triggers.- resource string
Required. The name or partial URI of the resource from which to observe events. For example,
"myBucket"or"projects/my-project/topics/my-topic"- failure
Policy FunctionEvent Trigger Failure Policy Specifies policy for failed executions. Structure is documented below.
- event
Type str The type of event to observe. For example:
"google.storage.object.finalize". See the documentation on calling Cloud Functions for a full reference of accepted triggers.- resource str
Required. The name or partial URI of the resource from which to observe events. For example,
"myBucket"or"projects/my-project/topics/my-topic"- failure
Policy Dict[FunctionEvent Trigger Failure Policy] Specifies policy for failed executions. Structure is documented below.
FunctionEventTriggerFailurePolicy
FunctionSourceRepository
- Url string
The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:
- Deployed
Url string
- Url string
The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:
- Deployed
Url string
- url string
The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:
- deployed
Url string
- url str
The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:
- deployed
Url str
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.