Skip to content

Commit

Permalink
feat(notification): add auto destroy configuration triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
notchairmk committed Jun 28, 2024
1 parent ef5d5b4 commit 95a57b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions internal/provider/resource_tfe_notification_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ func resourceTFENotificationConfiguration() *schema.Resource {
string(tfe.NotificationTriggerAssessmentCheckFailed),
string(tfe.NotificationTriggerAssessmentDrifted),
string(tfe.NotificationTriggerAssessmentFailed),
string(tfe.NotificationTriggerWorkspaceAutoDestroyReminder),
string(tfe.NotificationTriggerWorkspaceAutoDestroyRunResults),
},
false,
),
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/notification_configuration.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ The following arguments are supported:
This value _must not_ be provided if `destination_type` is `email`, `microsoft-teams`, or `slack`.
* `triggers` - (Optional) The array of triggers for which this notification configuration will
send notifications. Valid values are `run:created`, `run:planning`, `run:needs_attention`, `run:applying`
`run:completed`, `run:errored`, `assessment:check_failure`, `assessment:drifted`, or `assessment:failed`.
`run:completed`, `run:errored`, `assessment:check_failure`, `assessment:drifted`, `assessment:failed`, `workspace:auto_destroy_reminder`, or `workspace:auto_destroy_run_results`.
If omitted, no notification triggers are configured.
* `url` - (Required if `destination_type` is `generic`, `microsoft-teams`, or `slack`) The HTTP or HTTPS URL of the notification
configuration where notification requests will be made. This value _must not_ be provided if `destination_type`
Expand Down

0 comments on commit 95a57b7

Please sign in to comment.