Class Cloudfunctions2FunctionEventTrigger.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudfunctions2_function.Cloudfunctions2FunctionEventTrigger.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<Cloudfunctions2FunctionEventTrigger>
- Enclosing interface:
- Cloudfunctions2FunctionEventTrigger
@Stability(Stable) public static final class Cloudfunctions2FunctionEventTrigger.Builder extends Object implements software.amazon.jsii.Builder<Cloudfunctions2FunctionEventTrigger>
A builder forCloudfunctions2FunctionEventTrigger
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
eventFilters
@Stability(Stable) public Cloudfunctions2FunctionEventTrigger.Builder eventFilters(com.hashicorp.cdktf.IResolvable eventFilters)
Sets the value ofCloudfunctions2FunctionEventTrigger.getEventFilters()- Parameters:
eventFilters- event_filters block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#event_filters Cloudfunctions2Function#event_filters}- Returns:
this
-
eventFilters
@Stability(Stable) public Cloudfunctions2FunctionEventTrigger.Builder eventFilters(List<? extends Cloudfunctions2FunctionEventTriggerEventFilters> eventFilters)
Sets the value ofCloudfunctions2FunctionEventTrigger.getEventFilters()- Parameters:
eventFilters- event_filters block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#event_filters Cloudfunctions2Function#event_filters}- Returns:
this
-
eventType
@Stability(Stable) public Cloudfunctions2FunctionEventTrigger.Builder eventType(String eventType)
Sets the value ofCloudfunctions2FunctionEventTrigger.getEventType()- Parameters:
eventType- Required. The type of event to observe. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#event_type Cloudfunctions2Function#event_type}- Returns:
this
-
pubsubTopic
@Stability(Stable) public Cloudfunctions2FunctionEventTrigger.Builder pubsubTopic(String pubsubTopic)
Sets the value ofCloudfunctions2FunctionEventTrigger.getPubsubTopic()- Parameters:
pubsubTopic- The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#pubsub_topic Cloudfunctions2Function#pubsub_topic}- Returns:
this
-
retryPolicy
@Stability(Stable) public Cloudfunctions2FunctionEventTrigger.Builder retryPolicy(String retryPolicy)
Sets the value ofCloudfunctions2FunctionEventTrigger.getRetryPolicy()- Parameters:
retryPolicy- Describes the retry policy in case of function's execution failure. Retried execution is charged as any other execution. Possible values: ["RETRY_POLICY_UNSPECIFIED", "RETRY_POLICY_DO_NOT_RETRY", "RETRY_POLICY_RETRY"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#retry_policy Cloudfunctions2Function#retry_policy}- Returns:
this
-
serviceAccountEmail
@Stability(Stable) public Cloudfunctions2FunctionEventTrigger.Builder serviceAccountEmail(String serviceAccountEmail)
Sets the value ofCloudfunctions2FunctionEventTrigger.getServiceAccountEmail()- Parameters:
serviceAccountEmail- Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#service_account_email Cloudfunctions2Function#service_account_email}- Returns:
this
-
triggerRegion
@Stability(Stable) public Cloudfunctions2FunctionEventTrigger.Builder triggerRegion(String triggerRegion)
Sets the value ofCloudfunctions2FunctionEventTrigger.getTriggerRegion()- Parameters:
triggerRegion- The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#trigger_region Cloudfunctions2Function#trigger_region}- Returns:
this
-
build
@Stability(Stable) public Cloudfunctions2FunctionEventTrigger build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Cloudfunctions2FunctionEventTrigger>- Returns:
- a new instance of
Cloudfunctions2FunctionEventTrigger - Throws:
NullPointerException- if any required attribute was not provided
-
-