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

     1  ---
     2  layout: "newrelic"
     3  page_title: "New Relic: newrelic_alert_policy_channel"
     4  sidebar_current: "docs-newrelic-resource-alert-policy-channel"
     5  description: |-
     6    Map alert policies to alert channels in New Relic.
     7  ---
     8  
     9  # newrelic\_alert\_policy\_channel
    10  
    11  ## Example Usage
    12  
    13  ```hcl
    14  resource "newrelic_alert_policy" "foo" {
    15    name = "foo"
    16  }
    17  
    18  resource "newrelic_alert_channel" "foo" {
    19    name = "foo"
    20    type = "email"
    21  
    22    configuration = {
    23      recipients              = "foo@example.com"
    24      include_json_attachment = "1"
    25    }
    26  }
    27  
    28  resource "newrelic_alert_policy_channel" "foo" {
    29    policy_id  = "${newrelic_alert_policy.foo.id}"
    30    channel_id = "${newrelic_alert_channel.foo.id}"
    31  }
    32  ```
    33  
    34  ## Argument Reference
    35  
    36  The following arguments are supported:
    37  
    38    * `policy_id` - (Required) The ID of the policy.
    39    * `channel_id` - (Required) The ID of the channel.