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

     1  ---
     2  layout: "newrelic"
     3  page_title: "New Relic: newrelic_alert_channel"
     4  sidebar_current: "docs-newrelic-resource-alert-channel"
     5  description: |-
     6    Create and manage a notification channel for alerts in New Relic.
     7  ---
     8  
     9  # newrelic\_alert\_channel
    10  
    11  ## Example Usage
    12  
    13  ```hcl
    14  resource "newrelic_alert_channel" "foo" {
    15    name = "foo"
    16    type = "email"
    17  
    18    configuration = {
    19      recipients              = "foo@example.com"
    20      include_json_attachment = "1"
    21    }
    22  }
    23  ```
    24  
    25  ## Argument Reference
    26  
    27  The following arguments are supported:
    28  
    29    * `name` - (Required) The name of the channel.
    30    * `type` - (Required) The type of channel.  One of: `campfire`, `email`, `hipchat`, `opsgenie`, `pagerduty`, `slack`, `victorops`, or `webhook`.
    31    * `configuration` - (Required) A map of key / value pairs with channel type specific values.
    32  
    33  ## Attributes Reference
    34  
    35  The following attributes are exported:
    36  
    37    * `id` - The ID of the channel.
    38  
    39  ## Import
    40  
    41  Alert channels can be imported using the `id`, e.g.
    42  
    43  ```
    44  $ terraform import newrelic_alert_channel.main 12345
    45  ```