NotificationChannelArgs constructor
- Input<
String?> ? deletionPolicy, - Input<
String?> ? description, - Input<
String?> ? displayName, - Input<
bool?> ? enabled, - Input<
bool?> ? forceDelete, - Input<
Map< ? labels,String, String> ?> - Input<
String?> ? project, - Input<
NotificationChannelSensitiveLabels?> ? sensitiveLabels, - required Input<
String> type, - Input<
Map< ? userLabels,String, String> ?>
Creates a new NotificationChannelArgs.
deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
description 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.
displayName 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.
enabled 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.
forceDelete If true, the notification channel will be deleted regardless
labels Configuration fields that define the channel and its behavior. The
project The ID of the project in which the resource belongs.
sensitiveLabels Different notification type behaviors are configured primarily using the the labels field on this
type 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...
userLabels 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.
Implementation
const NotificationChannelArgs({
this.deletionPolicy,
this.description,
this.displayName,
this.enabled,
this.forceDelete,
this.labels,
this.project,
this.sensitiveLabels,
required this.type,
this.userLabels,
});