Class EventarcTrigger.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.eventarc_trigger.EventarcTrigger.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventarcTrigger>
- Enclosing class:
- EventarcTrigger
@Stability(Stable) public static final class EventarcTrigger.Builder extends Object implements software.amazon.jsii.Builder<EventarcTrigger>
A fluent builder forEventarcTrigger.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventarcTriggerbuild()EventarcTrigger.Builderchannel(String channel)Optional.EventarcTrigger.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)EventarcTrigger.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)EventarcTrigger.Buildercount(com.hashicorp.cdktf.TerraformCount count)EventarcTrigger.Buildercount(Number count)static EventarcTrigger.Buildercreate(software.constructs.Construct scope, String id)EventarcTrigger.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)EventarcTrigger.Builderdestination(EventarcTriggerDestination destination)destination block.EventarcTrigger.BuildereventDataContentType(String eventDataContentType)Optional.EventarcTrigger.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)EventarcTrigger.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#id EventarcTrigger#id}.EventarcTrigger.Builderlabels(Map<String,String> labels)Optional.EventarcTrigger.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)EventarcTrigger.Builderlocation(String location)The location for the resource.EventarcTrigger.BuildermatchingCriteria(com.hashicorp.cdktf.IResolvable matchingCriteria)matching_criteria block.EventarcTrigger.BuildermatchingCriteria(List<? extends EventarcTriggerMatchingCriteria> matchingCriteria)matching_criteria block.EventarcTrigger.Buildername(String name)Required.EventarcTrigger.Builderproject(String project)The project for the resource.EventarcTrigger.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)EventarcTrigger.Builderprovisioners(List<? extends Object> provisioners)EventarcTrigger.BuilderserviceAccount(String serviceAccount)Optional.EventarcTrigger.Buildertimeouts(EventarcTriggerTimeouts timeouts)timeouts block.EventarcTrigger.Buildertransport(EventarcTriggerTransport transport)transport block.
-
-
-
Method Detail
-
create
@Stability(Stable) public static EventarcTrigger.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
EventarcTrigger.Builder.
-
connection
@Stability(Experimental) public EventarcTrigger.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public EventarcTrigger.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public EventarcTrigger.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public EventarcTrigger.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public EventarcTrigger.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public EventarcTrigger.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public EventarcTrigger.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public EventarcTrigger.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public EventarcTrigger.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
destination
@Stability(Stable) public EventarcTrigger.Builder destination(EventarcTriggerDestination destination)
destination block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#destination EventarcTrigger#destination}
- Parameters:
destination- destination block. This parameter is required.- Returns:
this
-
location
@Stability(Stable) public EventarcTrigger.Builder location(String location)
The location for the resource.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#location EventarcTrigger#location}
- Parameters:
location- The location for the resource. This parameter is required.- Returns:
this
-
matchingCriteria
@Stability(Stable) public EventarcTrigger.Builder matchingCriteria(com.hashicorp.cdktf.IResolvable matchingCriteria)
matching_criteria block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#matching_criteria EventarcTrigger#matching_criteria}
- Parameters:
matchingCriteria- matching_criteria block. This parameter is required.- Returns:
this
-
matchingCriteria
@Stability(Stable) public EventarcTrigger.Builder matchingCriteria(List<? extends EventarcTriggerMatchingCriteria> matchingCriteria)
matching_criteria block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#matching_criteria EventarcTrigger#matching_criteria}
- Parameters:
matchingCriteria- matching_criteria block. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public EventarcTrigger.Builder name(String name)
Required. The resource name of the trigger. Must be unique within the location on the project.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#name EventarcTrigger#name}
- Parameters:
name- Required. The resource name of the trigger. Must be unique within the location on the project. This parameter is required.- Returns:
this
-
channel
@Stability(Stable) public EventarcTrigger.Builder channel(String channel)
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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#channel EventarcTrigger#channel}
- Parameters:
channel- Optional. This parameter is required.- Returns:
this
-
eventDataContentType
@Stability(Stable) public EventarcTrigger.Builder eventDataContentType(String eventDataContentType)
Optional.EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to `application/json` if the value is not defined. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#event_data_content_type EventarcTrigger#event_data_content_type}
- Parameters:
eventDataContentType- Optional. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public EventarcTrigger.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#id EventarcTrigger#id}.Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#id EventarcTrigger#id}. This parameter is required.- Returns:
this
-
labels
@Stability(Stable) public EventarcTrigger.Builder labels(Map<String,String> labels)
Optional. User labels attached to the triggers that can be used to group resources.**Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field `effective_labels` for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#labels EventarcTrigger#labels}
- Parameters:
labels- Optional. User labels attached to the triggers that can be used to group resources. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public EventarcTrigger.Builder project(String project)
The project for the resource.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#project EventarcTrigger#project}
- Parameters:
project- The project for the resource. This parameter is required.- Returns:
this
-
serviceAccount
@Stability(Stable) public EventarcTrigger.Builder serviceAccount(String serviceAccount)
Optional.The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have `iam.serviceAccounts.actAs` permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have `roles/eventarc.eventReceiver` IAM role. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#service_account EventarcTrigger#service_account}
- Parameters:
serviceAccount- Optional. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public EventarcTrigger.Builder timeouts(EventarcTriggerTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#timeouts EventarcTrigger#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
transport
@Stability(Stable) public EventarcTrigger.Builder transport(EventarcTriggerTransport transport)
transport block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/eventarc_trigger#transport EventarcTrigger#transport}
- Parameters:
transport- transport block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public EventarcTrigger build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EventarcTrigger>- Returns:
- a newly built instance of
EventarcTrigger.
-
-