Skip to content

Latest commit

 

History

History
81 lines (60 loc) · 1.42 KB

newrelic_alert_policy_channel.md

File metadata and controls

81 lines (60 loc) · 1.42 KB

newrelic_alert_policy_channel

back

Index

Terraform

terraform {
  required_providers {
    newrelic = ">= 2.21.0"
  }
}

top

Example Usage

module "newrelic_alert_policy_channel" {
  source = "./modules/newrelic/r/newrelic_alert_policy_channel"

  # channel_ids - (required) is a type of set of number
  channel_ids = []
  # policy_id - (required) is a type of number
  policy_id = null
}

top

Variables

variable "channel_ids" {
  description = "(required) - Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift your Terraform state."
  type        = set(number)
}

variable "policy_id" {
  description = "(required) - The ID of the policy."
  type        = number
}

top

Resource

resource "newrelic_alert_policy_channel" "this" {
  # channel_ids - (required) is a type of set of number
  channel_ids = var.channel_ids
  # policy_id - (required) is a type of number
  policy_id = var.policy_id
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = newrelic_alert_policy_channel.this.id
}

output "this" {
  value = newrelic_alert_policy_channel.this
}

top