You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/provider/resource_tfe_team_notification_configuration.go
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -186,7 +186,7 @@ func (r *resourceTFETeamNotificationConfiguration) Schema(ctx context.Context, r
186
186
},
187
187
188
188
"url": schema.StringAttribute{
189
-
Description: "The HTTP or HTTPS URL where notification requests will be made. This value must not be provided if `destination_type` is `email`.",
189
+
Description: "The HTTP or HTTPS URL where notification requests will be made. This value must not be provided if `email_addresses` or `email_user_ids` is present, or if `destination_type` is `email`.",
190
190
Optional: true,
191
191
Validators: []validator.String{
192
192
validators.AttributeRequiredIfValueString(
@@ -269,7 +269,7 @@ func (r *resourceTFETeamNotificationConfiguration) Create(ctx context.Context, r
Copy file name to clipboardExpand all lines: website/docs/r/team_notification_configuration.html.markdown
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,8 @@ The following arguments are supported:
114
114
-`email` available in HCP Terraform or Terraform Enterprise v202005-1 or later
115
115
-`slack`
116
116
-`microsoft-teams` available in HCP Terraform or Terraform Enterprise v202206-1 or later
117
+
-`team_id` - (Required) The ID of the team that owns the notification configuration.
118
+
-`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` is `email`.
117
119
-`email_addresses` - (Optional) **TFE only** A list of email addresses. This value
118
120
_must not_ be provided if `destination_type` is `generic`, `microsoft-teams`, or `slack`.
119
121
-`email_user_ids` - (Optional) A list of user IDs. This value _must not_ be provided
@@ -126,8 +128,6 @@ The following arguments are supported:
126
128
This value _must not_ be provided if `destination_type` is `email`, `microsoft-teams`, or `slack`.
127
129
-`triggers` - (Optional) The array of triggers for which this notification configuration will
128
130
send notifications. Currently, the only valid value is `change_request:created`.
129
-
-`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` is `email`.
130
-
-`team_id` - (Required) The ID of the team that owns the notification configuration.
0 commit comments