Skip to main content
Version: Latest Version (2.9.1)

highbond_handler_trigger (Resource)

Schema

Required

handler_idString The Id of the handler
triggersBlock List, Min: 1 List of triggers associated with the handler
Nested Schema for `triggers`

Required

typeString The trigger type of the handler. Only one instance of a given triggerType is allowed in the triggers array

Optional

field_namesList of String The field names of an attribute that, when updated, will trigger the handler. Required by the fieldUpdated trigger_type
questionnaire_idsList of String The questionnaire ids that trigger the handler. Required by the questionnaireResponded trigger_type
trigger_conjunctionString The conjunction used when performing the trigger check. Required by the fieldUpdated trigger_type, which supports both anyOf and allOf. For other trigger types, anyOf is implicitly used

Optional

force_updatesBoolean Allows overriding top-level 'create_only' option.
idString The ID of this resource.

Example Usage

// The resource 'highbond_handler_trigger' has been deprecated.
// Handlers with embedded triggers are not recommended. Please create an event to hold the trigger and link your handler to this event.
resource "highbond_handler_trigger" "name" {
handler_id = highbond_handler.main.id

// One highbond_handler_trigger should be created for its respective highbond_handler resource and the resource should have all the trigger blocks in it.
triggers {
type = "questionnaireResponded"
questionnaire_ids = [highbond_questionnaire.main.id]
}
triggers {
type = "fieldUpdated"
field_names = [highbond_attribute_type.text.field_name]
trigger_conjunction = "anyOf"
}
force_updates = true // Create only with force update changes
}