You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"google_monitoring_notification_channel" {
source="./modules/google-beta/r/google_monitoring_notification_channel"# description - (optional) is a type of stringdescription=null# display_name - (optional) is a type of stringdisplay_name=null# enabled - (optional) is a type of boolenabled=null# labels - (optional) is a type of map of stringlabels={}
# project - (optional) is a type of stringproject=null# type - (required) is a type of stringtype=null# user_labels - (optional) is a type of map of stringuser_labels={}
sensitive_labels=[{
auth_token =null
password =null
service_key =null
}]
timeouts=[{
create =null
delete =null
update =null
}]
}
variable"description" {
description="(optional) - An optional human-readable description of this notification channel. This description may provide additional details, beyond the display name, for the channel. This may not exceed 1024 Unicode characters."type=stringdefault=null
}
variable"display_name" {
description="(optional) - An optional human-readable name for this notification channel. It is recommended that you specify a non-empty and unique name in order to make it easier to identify the channels in your project, though this is not enforced. The display name is limited to 512 Unicode characters."type=stringdefault=null
}
variable"enabled" {
description="(optional) - Whether notifications are forwarded to the described channel. This makes it possible to disable delivery of notifications to a particular channel without removing the channel from all alerting policies that reference the channel. This is a more convenient approach when the change is temporary and you want to receive notifications from the same set of alerting policies on the channel at some point in the future."type=booldefault=null
}
variable"labels" {
description="(optional) - Configuration fields that define the channel and its behavior. The\npermissible and required labels are specified in the\nNotificationChannelDescriptor corresponding to the type field.\n\nLabels with sensitive data are obfuscated by the API and therefore Terraform cannot\ndetermine if there are upstream changes to these fields. They can also be configured via\nthe sensitive_labels block, but cannot be configured in both places."type=map(string)
default=null
}
variable"project" {
description="(optional)"type=stringdefault=null
}
variable"type" {
description="(required) - The type of the notification channel. This field matches the value of the NotificationChannelDescriptor.type field. See https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannelDescriptors/list to get the list of valid values such as \"email\", \"slack\", etc..."type=string
}
variable"user_labels" {
description="(optional) - User-supplied key/value data that does not need to conform to the corresponding NotificationChannelDescriptor's schema, unlike the labels field. This field is intended to be used for organizing and identifying the NotificationChannel objects.The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter."type=map(string)
default=null
}
variable"sensitive_labels" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
auth_token =string
password =string
service_key =string
}
))
default=[]
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
update =string
}
))
default=[]
}
resource"google_monitoring_notification_channel""this" {
# description - (optional) is a type of stringdescription=var.description# display_name - (optional) is a type of stringdisplay_name=var.display_name# enabled - (optional) is a type of boolenabled=var.enabled# labels - (optional) is a type of map of stringlabels=var.labels# project - (optional) is a type of stringproject=var.project# type - (required) is a type of stringtype=var.type# user_labels - (optional) is a type of map of stringuser_labels=var.user_labelsdynamic"sensitive_labels" {
for_each=var.sensitive_labelscontent {
# auth_token - (optional) is a type of stringauth_token=sensitive_labels.value["auth_token"]
# password - (optional) is a type of stringpassword=sensitive_labels.value["password"]
# service_key - (optional) is a type of stringservice_key=sensitive_labels.value["service_key"]
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}