highbond_handler_trigger (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
}

Schema

Required

  • handler_id (String) The Id of the handler
  • triggers (Block List, Min: 1) List of triggers associated with the handler (see below for nested schema)

Optional

  • force_updates (Boolean) Allows overriding top-level 'create_only' option.

Read-Only

  • id (String) The ID of this resource.

Nested Schema for triggers

Required:

  • type (String) The trigger type of the handler. Only one instance of a given triggerType is allowed in the triggers array

Optional:

  • field_names (List of String) The field names of an attribute that, when updated, will trigger the handler. Required by the fieldUpdated trigger_type
  • questionnaire_ids (List of String) The questionnaire ids that trigger the handler. Required by the questionnaireResponded trigger_type
  • trigger_conjunction (String) 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