generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add notification sendgrid resource
- Loading branch information
Showing
6 changed files
with
516 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "radarr_notification_sendgrid Resource - terraform-provider-radarr" | ||
subcategory: "Notifications" | ||
description: |- | ||
Notification Sendgrid resource. | ||
For more information refer to Notification https://wiki.servarr.com/radarr/settings#connect and Sendgrid https://wiki.servarr.com/radarr/supported#sendgrid. | ||
--- | ||
|
||
# radarr_notification_sendgrid (Resource) | ||
|
||
<!-- subcategory:Notifications -->Notification Sendgrid resource. | ||
For more information refer to [Notification](https://wiki.servarr.com/radarr/settings#connect) and [Sendgrid](https://wiki.servarr.com/radarr/supported#sendgrid). | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "radarr_notification_sendgrid" "example" { | ||
on_grab = false | ||
on_download = true | ||
on_upgrade = true | ||
on_movie_added = false | ||
on_movie_delete = false | ||
on_movie_file_delete = false | ||
on_movie_file_delete_for_upgrade = true | ||
on_health_issue = false | ||
on_application_update = false | ||
include_health_warnings = false | ||
name = "Example" | ||
api_key = "APIkey" | ||
from = "[email protected]" | ||
recipients = ["[email protected]", "[email protected]"] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `from` (String) From. | ||
- `include_health_warnings` (Boolean) Include health warnings. | ||
- `name` (String) NotificationSendgrid name. | ||
- `on_application_update` (Boolean) On application update flag. | ||
- `on_download` (Boolean) On download flag. | ||
- `on_grab` (Boolean) On grab flag. | ||
- `on_health_issue` (Boolean) On health issue flag. | ||
- `on_movie_added` (Boolean) On movie added flag. | ||
- `on_movie_delete` (Boolean) On movie delete flag. | ||
- `on_movie_file_delete` (Boolean) On movie file delete flag. | ||
- `on_movie_file_delete_for_upgrade` (Boolean) On movie file delete for upgrade flag. | ||
- `on_upgrade` (Boolean) On upgrade flag. | ||
- `recipients` (Set of String) Recipients. | ||
|
||
### Optional | ||
|
||
- `api_key` (String, Sensitive) API key. | ||
- `tags` (Set of Number) List of associated tags. | ||
|
||
### Read-Only | ||
|
||
- `id` (Number) Notification ID. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# import using the API/UI ID | ||
terraform import radarr_notification_sendgrid.example 1 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# import using the API/UI ID | ||
terraform import radarr_notification_sendgrid.example 1 |
18 changes: 18 additions & 0 deletions
18
examples/resources/radarr_notification_sendgrid/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
resource "radarr_notification_sendgrid" "example" { | ||
on_grab = false | ||
on_download = true | ||
on_upgrade = true | ||
on_movie_added = false | ||
on_movie_delete = false | ||
on_movie_file_delete = false | ||
on_movie_file_delete_for_upgrade = true | ||
on_health_issue = false | ||
on_application_update = false | ||
|
||
include_health_warnings = false | ||
name = "Example" | ||
|
||
api_key = "APIkey" | ||
from = "[email protected]" | ||
recipients = ["[email protected]", "[email protected]"] | ||
} |
Oops, something went wrong.