github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/ns1/r/notifylist.html.markdown (about)

     1  ---
     2  layout: "ns1"
     3  page_title: "NS1: ns1_notifylist"
     4  sidebar_current: "docs-ns1-resource-notifylist"
     5  description: |-
     6    Provides a NS1 Notify List resource.
     7  ---
     8  
     9  # ns1\_notifylist
    10  
    11  Provides a NS1 Notify List resource. This can be used to create, modify, and delete notify lists.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "ns1_notifylist" "nl" {
    17    name = "my notify list"
    18    notifications = {
    19      type = "webhook"
    20      config = {
    21        url = "http://www.mywebhook.com"
    22      }
    23    }
    24  
    25    notifications = {
    26      type = "email"
    27      config = {
    28        email = "test@test.com"
    29      }
    30    }
    31  }
    32  ```
    33  
    34  ## Argument Reference
    35  
    36  The following arguments are supported:
    37  
    38  * `name` - (Required) The free-form display name for the notify list.
    39  * `notifications` - (Optional) A list of notifiers. All notifiers in a notification list will receive notifications whenever an event is send to the list (e.g., when a monitoring job fails). Notifiers are documented below.
    40  
    41  Notify List Notifiers (`notifications`) support the following:
    42  
    43  * `type` - (Required) The type of notifier. Available notifiers are indicated in /notifytypes endpoint. 
    44  * `config` - (Required) Configuration details for the given notifier type.
    45