Skip to content

Commit

Permalink
add triggers arguement to allow re-triggering use cases
Browse files Browse the repository at this point in the history
  • Loading branch information
iwarapter committed May 9, 2024
1 parent 559acda commit d5333cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/resources/synchronization_job_provision_on_demand.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ The following arguments are supported:
- `synchronization_job_id` (Required) Identifier of the synchronization template this job is based on.
- `parameter` (Required) One or more `parameter` blocks as documented below.
- `service_principal_id` (Required) The object ID of the service principal for the synchronization job.
- `triggers` (Optional) Map of arbitrary keys and values that, when changed, will trigger a re-invocation. To force a re-invocation without changing these keys/values, use the [`terraform taint` command](https://www.terraform.io/docs/commands/taint.html).

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ func synchronizationJobProvisionOnDemandResource() *schema.Resource {
},
},
},
"triggers": {
Type: schema.TypeMap,
Optional: true,
ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
},
}
}
Expand Down

0 comments on commit d5333cb

Please sign in to comment.