google-native.cloudfunctions/v2alpha.getFunction
Explore with Pulumi AI
Returns a function with the given name from the requested project.
Using getFunction
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFunction(args: GetFunctionArgs, opts?: InvokeOptions): Promise<GetFunctionResult>
function getFunctionOutput(args: GetFunctionOutputArgs, opts?: InvokeOptions): Output<GetFunctionResult>
def get_function(function_id: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFunctionResult
def get_function_output(function_id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFunctionResult]
func LookupFunction(ctx *Context, args *LookupFunctionArgs, opts ...InvokeOption) (*LookupFunctionResult, error)
func LookupFunctionOutput(ctx *Context, args *LookupFunctionOutputArgs, opts ...InvokeOption) LookupFunctionResultOutput
> Note: This function is named LookupFunction
in the Go SDK.
public static class GetFunction
{
public static Task<GetFunctionResult> InvokeAsync(GetFunctionArgs args, InvokeOptions? opts = null)
public static Output<GetFunctionResult> Invoke(GetFunctionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:cloudfunctions/v2alpha:getFunction
arguments:
# arguments dictionary
The following arguments are supported:
- Function
Id string - Location string
- Project string
- Function
Id string - Location string
- Project string
- function
Id String - location String
- project String
- function
Id string - location string
- project string
- function_
id str - location str
- project str
- function
Id String - location String
- project String
getFunction Result
The following output properties are available:
- Build
Config Pulumi.Google Native. Cloud Functions. V2Alpha. Outputs. Build Config Response Describes the Build step of the function that builds a container from the given source.
- Description string
User-provided description of a function.
- Environment string
Describe whether the function is 1st Gen or 2nd Gen.
- Event
Trigger Pulumi.Google Native. Cloud Functions. V2Alpha. Outputs. Event Trigger Response An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
- Kms
Key stringName [Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
.- Labels Dictionary<string, string>
Labels associated with this Cloud Function.
- Name string
A user-defined name of the function. Function names must be unique globally and match pattern
projects/*/locations/*/functions/*
- Service
Config Pulumi.Google Native. Cloud Functions. V2Alpha. Outputs. Service Config Response Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
- State string
State of the function.
- State
Messages List<Pulumi.Google Native. Cloud Functions. V2Alpha. Outputs. Google Cloud Functions V2alpha State Message Response> State Messages for this Cloud Function.
- Update
Time string The last update timestamp of a Cloud Function.
- Build
Config BuildConfig Response Describes the Build step of the function that builds a container from the given source.
- Description string
User-provided description of a function.
- Environment string
Describe whether the function is 1st Gen or 2nd Gen.
- Event
Trigger EventTrigger Response An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
- Kms
Key stringName [Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
.- Labels map[string]string
Labels associated with this Cloud Function.
- Name string
A user-defined name of the function. Function names must be unique globally and match pattern
projects/*/locations/*/functions/*
- Service
Config ServiceConfig Response Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
- State string
State of the function.
- State
Messages []GoogleCloud Functions V2alpha State Message Response State Messages for this Cloud Function.
- Update
Time string The last update timestamp of a Cloud Function.
- build
Config BuildConfig Response Describes the Build step of the function that builds a container from the given source.
- description String
User-provided description of a function.
- environment String
Describe whether the function is 1st Gen or 2nd Gen.
- event
Trigger EventTrigger Response An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
- kms
Key StringName [Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
.- labels Map<String,String>
Labels associated with this Cloud Function.
- name String
A user-defined name of the function. Function names must be unique globally and match pattern
projects/*/locations/*/functions/*
- service
Config ServiceConfig Response Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
- state String
State of the function.
- state
Messages List<GoogleCloud Functions V2alpha State Message Response> State Messages for this Cloud Function.
- update
Time String The last update timestamp of a Cloud Function.
- build
Config BuildConfig Response Describes the Build step of the function that builds a container from the given source.
- description string
User-provided description of a function.
- environment string
Describe whether the function is 1st Gen or 2nd Gen.
- event
Trigger EventTrigger Response An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
- kms
Key stringName [Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
.- labels {[key: string]: string}
Labels associated with this Cloud Function.
- name string
A user-defined name of the function. Function names must be unique globally and match pattern
projects/*/locations/*/functions/*
- service
Config ServiceConfig Response Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
- state string
State of the function.
- state
Messages GoogleCloud Functions V2alpha State Message Response[] State Messages for this Cloud Function.
- update
Time string The last update timestamp of a Cloud Function.
- build_
config BuildConfig Response Describes the Build step of the function that builds a container from the given source.
- description str
User-provided description of a function.
- environment str
Describe whether the function is 1st Gen or 2nd Gen.
- event_
trigger EventTrigger Response An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
- kms_
key_ strname [Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
.- labels Mapping[str, str]
Labels associated with this Cloud Function.
- name str
A user-defined name of the function. Function names must be unique globally and match pattern
projects/*/locations/*/functions/*
- service_
config ServiceConfig Response Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
- state str
State of the function.
- state_
messages Sequence[GoogleCloud Functions V2alpha State Message Response] State Messages for this Cloud Function.
- update_
time str The last update timestamp of a Cloud Function.
- build
Config Property Map Describes the Build step of the function that builds a container from the given source.
- description String
User-provided description of a function.
- environment String
Describe whether the function is 1st Gen or 2nd Gen.
- event
Trigger Property Map An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
- kms
Key StringName [Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
.- labels Map<String>
Labels associated with this Cloud Function.
- name String
A user-defined name of the function. Function names must be unique globally and match pattern
projects/*/locations/*/functions/*
- service
Config Property Map Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
- state String
State of the function.
- state
Messages List<Property Map> State Messages for this Cloud Function.
- update
Time String The last update timestamp of a Cloud Function.
Supporting Types
BuildConfigResponse
- Build string
The Cloud Build name of the latest successful deployment of the function.
- Buildpack
Stack string Specifies one of the Google provided buildpack stacks.
- Docker
Registry string Optional. Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If
docker_repository
field is specified, this field will be automatically set asARTIFACT_REGISTRY
. If unspecified, it currently defaults toCONTAINER_REGISTRY
. This field may be overridden by the backend for eligible deployments.- Docker
Repository string User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern
projects/{project}/locations/{location}/repositories/{repository}
. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.- Entry
Point string 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
.- Environment
Variables Dictionary<string, string> User-provided build-time environment variables for the function
- Runtime string
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the
gcloud
command reference.- Source
Pulumi.
Google Native. Cloud Functions. V2Alpha. Inputs. Source Response The location of the function source code.
- Source
Provenance Pulumi.Google Native. Cloud Functions. V2Alpha. Inputs. Source Provenance Response A permanent fixed identifier for source.
- Worker
Pool string Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is
projects/{project}/locations/{region}/workerPools/{workerPool}
where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
- Build string
The Cloud Build name of the latest successful deployment of the function.
- Buildpack
Stack string Specifies one of the Google provided buildpack stacks.
- Docker
Registry string Optional. Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If
docker_repository
field is specified, this field will be automatically set asARTIFACT_REGISTRY
. If unspecified, it currently defaults toCONTAINER_REGISTRY
. This field may be overridden by the backend for eligible deployments.- Docker
Repository string User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern
projects/{project}/locations/{location}/repositories/{repository}
. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.- Entry
Point string 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
.- Environment
Variables map[string]string User-provided build-time environment variables for the function
- Runtime string
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the
gcloud
command reference.- Source
Source
Response The location of the function source code.
- Source
Provenance SourceProvenance Response A permanent fixed identifier for source.
- Worker
Pool string Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is
projects/{project}/locations/{region}/workerPools/{workerPool}
where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
- build String
The Cloud Build name of the latest successful deployment of the function.
- buildpack
Stack String Specifies one of the Google provided buildpack stacks.
- docker
Registry String Optional. Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If
docker_repository
field is specified, this field will be automatically set asARTIFACT_REGISTRY
. If unspecified, it currently defaults toCONTAINER_REGISTRY
. This field may be overridden by the backend for eligible deployments.- docker
Repository String User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern
projects/{project}/locations/{location}/repositories/{repository}
. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.- entry
Point String 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
.- environment
Variables Map<String,String> User-provided build-time environment variables for the function
- runtime String
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the
gcloud
command reference.- source
Source
Response The location of the function source code.
- source
Provenance SourceProvenance Response A permanent fixed identifier for source.
- worker
Pool String Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is
projects/{project}/locations/{region}/workerPools/{workerPool}
where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
- build string
The Cloud Build name of the latest successful deployment of the function.
- buildpack
Stack string Specifies one of the Google provided buildpack stacks.
- docker
Registry string Optional. Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If
docker_repository
field is specified, this field will be automatically set asARTIFACT_REGISTRY
. If unspecified, it currently defaults toCONTAINER_REGISTRY
. This field may be overridden by the backend for eligible deployments.- docker
Repository string User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern
projects/{project}/locations/{location}/repositories/{repository}
. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.- entry
Point string 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
.- environment
Variables {[key: string]: string} User-provided build-time environment variables for the function
- runtime string
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the
gcloud
command reference.- source
Source
Response The location of the function source code.
- source
Provenance SourceProvenance Response A permanent fixed identifier for source.
- worker
Pool string Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is
projects/{project}/locations/{region}/workerPools/{workerPool}
where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
- build str
The Cloud Build name of the latest successful deployment of the function.
- buildpack_
stack str Specifies one of the Google provided buildpack stacks.
- docker_
registry str Optional. Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If
docker_repository
field is specified, this field will be automatically set asARTIFACT_REGISTRY
. If unspecified, it currently defaults toCONTAINER_REGISTRY
. This field may be overridden by the backend for eligible deployments.- docker_
repository str User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern
projects/{project}/locations/{location}/repositories/{repository}
. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.- entry_
point str 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
.- environment_
variables Mapping[str, str] User-provided build-time environment variables for the function
- runtime str
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the
gcloud
command reference.- source
Source
Response The location of the function source code.
- source_
provenance SourceProvenance Response A permanent fixed identifier for source.
- worker_
pool str Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is
projects/{project}/locations/{region}/workerPools/{workerPool}
where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
- build String
The Cloud Build name of the latest successful deployment of the function.
- buildpack
Stack String Specifies one of the Google provided buildpack stacks.
- docker
Registry String Optional. Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If
docker_repository
field is specified, this field will be automatically set asARTIFACT_REGISTRY
. If unspecified, it currently defaults toCONTAINER_REGISTRY
. This field may be overridden by the backend for eligible deployments.- docker
Repository String User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern
projects/{project}/locations/{location}/repositories/{repository}
. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.- entry
Point String 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
.- environment
Variables Map<String> User-provided build-time environment variables for the function
- runtime String
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the
gcloud
command reference.- source Property Map
The location of the function source code.
- source
Provenance Property Map A permanent fixed identifier for source.
- worker
Pool String Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is
projects/{project}/locations/{region}/workerPools/{workerPool}
where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
EventFilterResponse
- Attribute string
The name of a CloudEvents attribute.
- Operator string
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is
match-path-pattern
.- Value string
The value for the attribute.
- Attribute string
The name of a CloudEvents attribute.
- Operator string
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is
match-path-pattern
.- Value string
The value for the attribute.
- attribute String
The name of a CloudEvents attribute.
- operator String
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is
match-path-pattern
.- value String
The value for the attribute.
- attribute string
The name of a CloudEvents attribute.
- operator string
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is
match-path-pattern
.- value string
The value for the attribute.
- attribute str
The name of a CloudEvents attribute.
- operator str
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is
match-path-pattern
.- value str
The value for the attribute.
- attribute String
The name of a CloudEvents attribute.
- operator String
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is
match-path-pattern
.- value String
The value for the attribute.
EventTriggerResponse
- Channel string
Optional. The name of the channel associated with the trigger in
projects/{project}/locations/{location}/channels/{channel}
format. You must provide a channel to receive events from Eventarc SaaS partners.- Event
Filters List<Pulumi.Google Native. Cloud Functions. V2Alpha. Inputs. Event Filter Response> Criteria used to filter events.
- Event
Type string The type of event to observe. For example:
google.cloud.audit.log.v1.written
orgoogle.cloud.pubsub.topic.v1.messagePublished
.- Pubsub
Topic string Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format:
projects/{project}/topics/{topic}
. This is only valid for events of typegoogle.cloud.pubsub.topic.v1.messagePublished
. The topic provided here will not be deleted at function deletion.- Retry
Policy string Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
- Service
Account stringEmail Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is
run.routes.invoke
. If empty, defaults to the Compute Engine default service account:{project_number}-compute@developer.gserviceaccount.com
.- Trigger string
The resource name of the Eventarc trigger. The format of this field is
projects/{project}/locations/{region}/triggers/{trigger}
.- Trigger
Region string 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.
- Channel string
Optional. The name of the channel associated with the trigger in
projects/{project}/locations/{location}/channels/{channel}
format. You must provide a channel to receive events from Eventarc SaaS partners.- Event
Filters []EventFilter Response Criteria used to filter events.
- Event
Type string The type of event to observe. For example:
google.cloud.audit.log.v1.written
orgoogle.cloud.pubsub.topic.v1.messagePublished
.- Pubsub
Topic string Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format:
projects/{project}/topics/{topic}
. This is only valid for events of typegoogle.cloud.pubsub.topic.v1.messagePublished
. The topic provided here will not be deleted at function deletion.- Retry
Policy string Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
- Service
Account stringEmail Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is
run.routes.invoke
. If empty, defaults to the Compute Engine default service account:{project_number}-compute@developer.gserviceaccount.com
.- Trigger string
The resource name of the Eventarc trigger. The format of this field is
projects/{project}/locations/{region}/triggers/{trigger}
.- Trigger
Region string 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.
- channel String
Optional. The name of the channel associated with the trigger in
projects/{project}/locations/{location}/channels/{channel}
format. You must provide a channel to receive events from Eventarc SaaS partners.- event
Filters List<EventFilter Response> Criteria used to filter events.
- event
Type String The type of event to observe. For example:
google.cloud.audit.log.v1.written
orgoogle.cloud.pubsub.topic.v1.messagePublished
.- pubsub
Topic String Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format:
projects/{project}/topics/{topic}
. This is only valid for events of typegoogle.cloud.pubsub.topic.v1.messagePublished
. The topic provided here will not be deleted at function deletion.- retry
Policy String Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
- service
Account StringEmail Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is
run.routes.invoke
. If empty, defaults to the Compute Engine default service account:{project_number}-compute@developer.gserviceaccount.com
.- trigger String
The resource name of the Eventarc trigger. The format of this field is
projects/{project}/locations/{region}/triggers/{trigger}
.- trigger
Region String 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.
- channel string
Optional. The name of the channel associated with the trigger in
projects/{project}/locations/{location}/channels/{channel}
format. You must provide a channel to receive events from Eventarc SaaS partners.- event
Filters EventFilter Response[] Criteria used to filter events.
- event
Type string The type of event to observe. For example:
google.cloud.audit.log.v1.written
orgoogle.cloud.pubsub.topic.v1.messagePublished
.- pubsub
Topic string Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format:
projects/{project}/topics/{topic}
. This is only valid for events of typegoogle.cloud.pubsub.topic.v1.messagePublished
. The topic provided here will not be deleted at function deletion.- retry
Policy string Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
- service
Account stringEmail Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is
run.routes.invoke
. If empty, defaults to the Compute Engine default service account:{project_number}-compute@developer.gserviceaccount.com
.- trigger string
The resource name of the Eventarc trigger. The format of this field is
projects/{project}/locations/{region}/triggers/{trigger}
.- trigger
Region string 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.
- channel str
Optional. The name of the channel associated with the trigger in
projects/{project}/locations/{location}/channels/{channel}
format. You must provide a channel to receive events from Eventarc SaaS partners.- event_
filters Sequence[EventFilter Response] Criteria used to filter events.
- event_
type str The type of event to observe. For example:
google.cloud.audit.log.v1.written
orgoogle.cloud.pubsub.topic.v1.messagePublished
.- pubsub_
topic str Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format:
projects/{project}/topics/{topic}
. This is only valid for events of typegoogle.cloud.pubsub.topic.v1.messagePublished
. The topic provided here will not be deleted at function deletion.- retry_
policy str Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
- service_
account_ stremail Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is
run.routes.invoke
. If empty, defaults to the Compute Engine default service account:{project_number}-compute@developer.gserviceaccount.com
.- trigger str
The resource name of the Eventarc trigger. The format of this field is
projects/{project}/locations/{region}/triggers/{trigger}
.- trigger_
region str 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.
- channel String
Optional. The name of the channel associated with the trigger in
projects/{project}/locations/{location}/channels/{channel}
format. You must provide a channel to receive events from Eventarc SaaS partners.- event
Filters List<Property Map> Criteria used to filter events.
- event
Type String The type of event to observe. For example:
google.cloud.audit.log.v1.written
orgoogle.cloud.pubsub.topic.v1.messagePublished
.- pubsub
Topic String Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format:
projects/{project}/topics/{topic}
. This is only valid for events of typegoogle.cloud.pubsub.topic.v1.messagePublished
. The topic provided here will not be deleted at function deletion.- retry
Policy String Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
- service
Account StringEmail Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is
run.routes.invoke
. If empty, defaults to the Compute Engine default service account:{project_number}-compute@developer.gserviceaccount.com
.- trigger String
The resource name of the Eventarc trigger. The format of this field is
projects/{project}/locations/{region}/triggers/{trigger}
.- trigger
Region String 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.
GoogleCloudFunctionsV2alphaStateMessageResponse
RepoSourceResponse
- Branch
Name string Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
- Commit
Sha string Explicit commit SHA to build.
- Dir string
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's
dir
is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)- Invert
Regex bool Only trigger a build if the revision regex does NOT match the revision regex.
- Project string
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- Repo
Name string Name of the Cloud Source Repository.
- Tag
Name string Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
- Branch
Name string Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
- Commit
Sha string Explicit commit SHA to build.
- Dir string
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's
dir
is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)- Invert
Regex bool Only trigger a build if the revision regex does NOT match the revision regex.
- Project string
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- Repo
Name string Name of the Cloud Source Repository.
- Tag
Name string Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
- branch
Name String Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
- commit
Sha String Explicit commit SHA to build.
- dir String
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's
dir
is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)- invert
Regex Boolean Only trigger a build if the revision regex does NOT match the revision regex.
- project String
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- repo
Name String Name of the Cloud Source Repository.
- tag
Name String Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
- branch
Name string Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
- commit
Sha string Explicit commit SHA to build.
- dir string
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's
dir
is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)- invert
Regex boolean Only trigger a build if the revision regex does NOT match the revision regex.
- project string
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- repo
Name string Name of the Cloud Source Repository.
- tag
Name string Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
- branch_
name str Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
- commit_
sha str Explicit commit SHA to build.
- dir str
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's
dir
is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)- invert_
regex bool Only trigger a build if the revision regex does NOT match the revision regex.
- project str
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- repo_
name str Name of the Cloud Source Repository.
- tag_
name str Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
- branch
Name String Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
- commit
Sha String Explicit commit SHA to build.
- dir String
Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's
dir
is specified and is an absolute path, this value is ignored for that step's execution. eg. helloworld (no leading slash allowed)- invert
Regex Boolean Only trigger a build if the revision regex does NOT match the revision regex.
- project String
ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
- repo
Name String Name of the Cloud Source Repository.
- tag
Name String Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
SecretEnvVarResponse
- Key string
Name of the environment variable.
- Project string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
- Secret string
Name of the secret in secret manager (not the full resource name).
- Version string
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
- Key string
Name of the environment variable.
- Project string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
- Secret string
Name of the secret in secret manager (not the full resource name).
- Version string
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
- key String
Name of the environment variable.
- project String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
- secret String
Name of the secret in secret manager (not the full resource name).
- version String
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
- key string
Name of the environment variable.
- project string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
- secret string
Name of the secret in secret manager (not the full resource name).
- version string
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
- key str
Name of the environment variable.
- project str
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
- secret str
Name of the secret in secret manager (not the full resource name).
- version str
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
- key String
Name of the environment variable.
- project String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
- secret String
Name of the secret in secret manager (not the full resource name).
- version String
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
SecretVersionResponse
- Path string
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as
secret_foo
would mount the secret value file at/etc/secrets/secret_foo
.- Version string
Version of the secret (version number or the string 'latest'). It is preferable to use
latest
version with secret volumes as secret value changes are reflected immediately.
- Path string
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as
secret_foo
would mount the secret value file at/etc/secrets/secret_foo
.- Version string
Version of the secret (version number or the string 'latest'). It is preferable to use
latest
version with secret volumes as secret value changes are reflected immediately.
- path String
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as
secret_foo
would mount the secret value file at/etc/secrets/secret_foo
.- version String
Version of the secret (version number or the string 'latest'). It is preferable to use
latest
version with secret volumes as secret value changes are reflected immediately.
- path string
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as
secret_foo
would mount the secret value file at/etc/secrets/secret_foo
.- version string
Version of the secret (version number or the string 'latest'). It is preferable to use
latest
version with secret volumes as secret value changes are reflected immediately.
- path str
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as
secret_foo
would mount the secret value file at/etc/secrets/secret_foo
.- version str
Version of the secret (version number or the string 'latest'). It is preferable to use
latest
version with secret volumes as secret value changes are reflected immediately.
- path String
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as
secret_foo
would mount the secret value file at/etc/secrets/secret_foo
.- version String
Version of the secret (version number or the string 'latest'). It is preferable to use
latest
version with secret volumes as secret value changes are reflected immediately.
SecretVolumeResponse
- Mount
Path string The path within the container to mount the secret volume. For example, setting the mount_path as
/etc/secrets
would mount the secret value files under the/etc/secrets
directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets- Project string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
- Secret string
Name of the secret in secret manager (not the full resource name).
- Versions
List<Pulumi.
Google Native. Cloud Functions. V2Alpha. Inputs. Secret Version Response> List of secret versions to mount for this secret. If empty, the
latest
version of the secret will be made available in a file named after the secret under the mount point.
- Mount
Path string The path within the container to mount the secret volume. For example, setting the mount_path as
/etc/secrets
would mount the secret value files under the/etc/secrets
directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets- Project string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
- Secret string
Name of the secret in secret manager (not the full resource name).
- Versions
[]Secret
Version Response List of secret versions to mount for this secret. If empty, the
latest
version of the secret will be made available in a file named after the secret under the mount point.
- mount
Path String The path within the container to mount the secret volume. For example, setting the mount_path as
/etc/secrets
would mount the secret value files under the/etc/secrets
directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets- project String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
- secret String
Name of the secret in secret manager (not the full resource name).
- versions
List<Secret
Version Response> List of secret versions to mount for this secret. If empty, the
latest
version of the secret will be made available in a file named after the secret under the mount point.
- mount
Path string The path within the container to mount the secret volume. For example, setting the mount_path as
/etc/secrets
would mount the secret value files under the/etc/secrets
directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets- project string
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
- secret string
Name of the secret in secret manager (not the full resource name).
- versions
Secret
Version Response[] List of secret versions to mount for this secret. If empty, the
latest
version of the secret will be made available in a file named after the secret under the mount point.
- mount_
path str The path within the container to mount the secret volume. For example, setting the mount_path as
/etc/secrets
would mount the secret value files under the/etc/secrets
directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets- project str
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
- secret str
Name of the secret in secret manager (not the full resource name).
- versions
Sequence[Secret
Version Response] List of secret versions to mount for this secret. If empty, the
latest
version of the secret will be made available in a file named after the secret under the mount point.
- mount
Path String The path within the container to mount the secret volume. For example, setting the mount_path as
/etc/secrets
would mount the secret value files under the/etc/secrets
directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets- project String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
- secret String
Name of the secret in secret manager (not the full resource name).
- versions List<Property Map>
List of secret versions to mount for this secret. If empty, the
latest
version of the secret will be made available in a file named after the secret under the mount point.
ServiceConfigResponse
- All
Traffic boolOn Latest Revision Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
- Available
Cpu string The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
- Available
Memory string 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. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
- Environment
Variables Dictionary<string, string> Environment variables that shall be available during function execution.
- Ingress
Settings string The ingress settings for the function, controlling what traffic can reach it.
- Max
Instance intCount The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
- Max
Instance intRequest Concurrency Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- Min
Instance intCount The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
- Revision string
The name of service revision.
- Secret
Environment List<Pulumi.Variables Google Native. Cloud Functions. V2Alpha. Inputs. Secret Env Var Response> Secret environment variables configuration.
- Secret
Volumes List<Pulumi.Google Native. Cloud Functions. V2Alpha. Inputs. Secret Volume Response> Secret volumes configuration.
- Security
Level string Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
- Service string
Name of the service associated with a Function. The format of this field is
projects/{project}/locations/{region}/services/{service}
- Service
Account stringEmail The email of the service's service account. If empty, defaults to
{project_number}-compute@developer.gserviceaccount.com
.- Timeout
Seconds int 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.
- Uri string
URI of the Service deployed.
- Vpc
Connector string The Serverless VPC Access connector that this cloud function can connect to. 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.
- All
Traffic boolOn Latest Revision Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
- Available
Cpu string The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
- Available
Memory string 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. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
- Environment
Variables map[string]string Environment variables that shall be available during function execution.
- Ingress
Settings string The ingress settings for the function, controlling what traffic can reach it.
- Max
Instance intCount The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
- Max
Instance intRequest Concurrency Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- Min
Instance intCount The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
- Revision string
The name of service revision.
- Secret
Environment []SecretVariables Env Var Response Secret environment variables configuration.
- Secret
Volumes []SecretVolume Response Secret volumes configuration.
- Security
Level string Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
- Service string
Name of the service associated with a Function. The format of this field is
projects/{project}/locations/{region}/services/{service}
- Service
Account stringEmail The email of the service's service account. If empty, defaults to
{project_number}-compute@developer.gserviceaccount.com
.- Timeout
Seconds int 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.
- Uri string
URI of the Service deployed.
- Vpc
Connector string The Serverless VPC Access connector that this cloud function can connect to. 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.
- all
Traffic BooleanOn Latest Revision Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
- available
Cpu String The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
- available
Memory String 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. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
- environment
Variables Map<String,String> Environment variables that shall be available during function execution.
- ingress
Settings String The ingress settings for the function, controlling what traffic can reach it.
- max
Instance IntegerCount The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
- max
Instance IntegerRequest Concurrency Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- min
Instance IntegerCount The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
- revision String
The name of service revision.
- secret
Environment List<SecretVariables Env Var Response> Secret environment variables configuration.
- secret
Volumes List<SecretVolume Response> Secret volumes configuration.
- security
Level String Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
- service String
Name of the service associated with a Function. The format of this field is
projects/{project}/locations/{region}/services/{service}
- service
Account StringEmail The email of the service's service account. If empty, defaults to
{project_number}-compute@developer.gserviceaccount.com
.- timeout
Seconds Integer 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.
- uri String
URI of the Service deployed.
- vpc
Connector String The Serverless VPC Access connector that this cloud function can connect to. 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.
- all
Traffic booleanOn Latest Revision Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
- available
Cpu string The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
- available
Memory string 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. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
- environment
Variables {[key: string]: string} Environment variables that shall be available during function execution.
- ingress
Settings string The ingress settings for the function, controlling what traffic can reach it.
- max
Instance numberCount The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
- max
Instance numberRequest Concurrency Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- min
Instance numberCount The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
- revision string
The name of service revision.
- secret
Environment SecretVariables Env Var Response[] Secret environment variables configuration.
- secret
Volumes SecretVolume Response[] Secret volumes configuration.
- security
Level string Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
- service string
Name of the service associated with a Function. The format of this field is
projects/{project}/locations/{region}/services/{service}
- service
Account stringEmail The email of the service's service account. If empty, defaults to
{project_number}-compute@developer.gserviceaccount.com
.- timeout
Seconds number 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.
- uri string
URI of the Service deployed.
- vpc
Connector string The Serverless VPC Access connector that this cloud function can connect to. 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.
- all_
traffic_ boolon_ latest_ revision Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
- available_
cpu str The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
- available_
memory str 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. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
- environment_
variables Mapping[str, str] Environment variables that shall be available during function execution.
- ingress_
settings str The ingress settings for the function, controlling what traffic can reach it.
- max_
instance_ intcount The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
- max_
instance_ intrequest_ concurrency Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- min_
instance_ intcount The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
- revision str
The name of service revision.
- secret_
environment_ Sequence[Secretvariables Env Var Response] Secret environment variables configuration.
- secret_
volumes Sequence[SecretVolume Response] Secret volumes configuration.
- security_
level str Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
- service str
Name of the service associated with a Function. The format of this field is
projects/{project}/locations/{region}/services/{service}
- service_
account_ stremail The email of the service's service account. If empty, defaults to
{project_number}-compute@developer.gserviceaccount.com
.- timeout_
seconds int 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.
- uri str
URI of the Service deployed.
- vpc_
connector str The Serverless VPC Access connector that this cloud function can connect to. 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.
- all
Traffic BooleanOn Latest Revision Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
- available
Cpu String The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
- available
Memory String 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. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
- environment
Variables Map<String> Environment variables that shall be available during function execution.
- ingress
Settings String The ingress settings for the function, controlling what traffic can reach it.
- max
Instance NumberCount The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.
- max
Instance NumberRequest Concurrency Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
- min
Instance NumberCount The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
- revision String
The name of service revision.
- secret
Environment List<Property Map>Variables Secret environment variables configuration.
- secret
Volumes List<Property Map> Secret volumes configuration.
- security
Level String Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
- service String
Name of the service associated with a Function. The format of this field is
projects/{project}/locations/{region}/services/{service}
- service
Account StringEmail The email of the service's service account. If empty, defaults to
{project_number}-compute@developer.gserviceaccount.com
.- timeout
Seconds Number 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.
- uri String
URI of the Service deployed.
- vpc
Connector String The Serverless VPC Access connector that this cloud function can connect to. 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.
SourceProvenanceResponse
- Resolved
Repo Pulumi.Source Google Native. Cloud Functions. V2Alpha. Inputs. Repo Source Response A copy of the build's
source.repo_source
, if exists, with any revisions resolved.- Resolved
Storage Pulumi.Source Google Native. Cloud Functions. V2Alpha. Inputs. Storage Source Response A copy of the build's
source.storage_source
, if exists, with any generations resolved.
- Resolved
Repo RepoSource Source Response A copy of the build's
source.repo_source
, if exists, with any revisions resolved.- Resolved
Storage StorageSource Source Response A copy of the build's
source.storage_source
, if exists, with any generations resolved.
- resolved
Repo RepoSource Source Response A copy of the build's
source.repo_source
, if exists, with any revisions resolved.- resolved
Storage StorageSource Source Response A copy of the build's
source.storage_source
, if exists, with any generations resolved.
- resolved
Repo RepoSource Source Response A copy of the build's
source.repo_source
, if exists, with any revisions resolved.- resolved
Storage StorageSource Source Response A copy of the build's
source.storage_source
, if exists, with any generations resolved.
- resolved_
repo_ Reposource Source Response A copy of the build's
source.repo_source
, if exists, with any revisions resolved.- resolved_
storage_ Storagesource Source Response A copy of the build's
source.storage_source
, if exists, with any generations resolved.
- resolved
Repo Property MapSource A copy of the build's
source.repo_source
, if exists, with any revisions resolved.- resolved
Storage Property MapSource A copy of the build's
source.storage_source
, if exists, with any generations resolved.
SourceResponse
- Repo
Source Pulumi.Google Native. Cloud Functions. V2Alpha. Inputs. Repo Source Response If provided, get the source from this location in a Cloud Source Repository.
- Storage
Source Pulumi.Google Native. Cloud Functions. V2Alpha. Inputs. Storage Source Response If provided, get the source from this location in Google Cloud Storage.
- Repo
Source RepoSource Response If provided, get the source from this location in a Cloud Source Repository.
- Storage
Source StorageSource Response If provided, get the source from this location in Google Cloud Storage.
- repo
Source RepoSource Response If provided, get the source from this location in a Cloud Source Repository.
- storage
Source StorageSource Response If provided, get the source from this location in Google Cloud Storage.
- repo
Source RepoSource Response If provided, get the source from this location in a Cloud Source Repository.
- storage
Source StorageSource Response If provided, get the source from this location in Google Cloud Storage.
- repo_
source RepoSource Response If provided, get the source from this location in a Cloud Source Repository.
- storage_
source StorageSource Response If provided, get the source from this location in Google Cloud Storage.
- repo
Source Property Map If provided, get the source from this location in a Cloud Source Repository.
- storage
Source Property Map If provided, get the source from this location in Google Cloud Storage.
StorageSourceResponse
- Bucket string
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
- Generation string
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
- Object string
Google Cloud Storage object containing the source. This object must be a gzipped archive file (
.tar.gz
) containing source to build.
- Bucket string
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
- Generation string
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
- Object string
Google Cloud Storage object containing the source. This object must be a gzipped archive file (
.tar.gz
) containing source to build.
- bucket String
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
- generation String
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
- object String
Google Cloud Storage object containing the source. This object must be a gzipped archive file (
.tar.gz
) containing source to build.
- bucket string
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
- generation string
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
- object string
Google Cloud Storage object containing the source. This object must be a gzipped archive file (
.tar.gz
) containing source to build.
- bucket str
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
- generation str
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
- object str
Google Cloud Storage object containing the source. This object must be a gzipped archive file (
.tar.gz
) containing source to build.
- bucket String
Google Cloud Storage bucket containing the source (see Bucket Name Requirements).
- generation String
Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
- object String
Google Cloud Storage object containing the source. This object must be a gzipped archive file (
.tar.gz
) containing source to build.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0