NotificationPolicyArgs

data class NotificationPolicyArgs(val accountId: Output<String>? = null, val alertInterval: Output<String>? = null, val alertType: Output<String>? = null, val description: Output<String>? = null, val enabled: Output<Boolean>? = null, val filters: Output<NotificationPolicyFiltersArgs>? = null, val mechanisms: Output<NotificationPolicyMechanismsArgs>? = null, val name: Output<String>? = null) : ConvertibleToJava<NotificationPolicyArgs>

Example Usage

resources:
exampleNotificationPolicy:
type: cloudflare:NotificationPolicy
name: example_notification_policy
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
alertType: access_custom_certificate_expiration_type
enabled: true
mechanisms:
email:
- id: test@example.com
pagerduty:
- id: e8133a15-00a4-4d69-aec1-32f70c51f6e5
webhooks:
- id: 14cc1190-5d2b-4b98-a696-c424cb2ad05f
name: SSL Notification Event Policy
alertInterval: 30m
description: Something describing the policy.
filters:
actions:
- string
affected_asns:
- string
affected_components:
- string
affected_locations:
- string
airport_code:
- string
alert_trigger_preferences:
- string
alert_trigger_preferences_value:
- string
enabled:
- string
environment:
- string
event:
- string
event_source:
- string
event_type:
- string
group_by:
- string
health_check_id:
- string
incident_impact:
- INCIDENT_IMPACT_NONE
input_id:
- string
insight_class:
- string
limit:
- string
logo_tag:
- string
megabits_per_second:
- string
new_health:
- string
new_status:
- string
packets_per_second:
- string
pool_id:
- string
pop_names:
- string
product:
- string
project_id:
- string
protocol:
- string
query_tag:
- string
requests_per_second:
- string
selectors:
- string
services:
- string
slo:
- '99.9'
status:
- string
target_hostname:
- string
target_ip:
- string
target_zone_name:
- string
traffic_exclusions:
- security_events
tunnel_id:
- string
tunnel_name:
- string
where:
- string
zones:
- string

Import

$ pulumi import cloudflare:index/notificationPolicy:NotificationPolicy example '<account_id>/<policy_id>'

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, alertInterval: Output<String>? = null, alertType: Output<String>? = null, description: Output<String>? = null, enabled: Output<Boolean>? = null, filters: Output<NotificationPolicyFiltersArgs>? = null, mechanisms: Output<NotificationPolicyMechanismsArgs>? = null, name: Output<String>? = null)

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The account id

Link copied to clipboard
val alertInterval: Output<String>? = null

Optional specification of how often to re-alert from the same incident, not support on all alert types.

Link copied to clipboard
val alertType: Output<String>? = null

Refers to which event will trigger a Notification dispatch. You can use the endpoint to get available alert types which then will give you a list of possible values. Available values: "accesscustomcertificateexpirationtype", "advancedddosattackl4alert", "advancedddosattackl7alert", "advancedhttpalerterror", "bgphijacknotification", "billingusagealert", "blocknotificationblockremoved", "blocknotificationnewblock", "blocknotificationreviewrejected", "brandprotectionalert", "brandprotectiondigest", "clickhousealertfwanomaly", "clickhousealertfwentanomaly", "cloudforceonerequestnotification", "customanalytics", "customsslcertificateeventtype", "dedicatedsslcertificateeventtype", "deviceconnectivityanomalyalert", "dosattackl4", "dosattackl7", "expiringservicetokenalert", "failinglogpushjobdisabledalert", "fbmautoadvertisement", "fbmdosdattack", "fbmvolumetricattack", "healthcheckstatusnotification", "hostnameaopcustomcertificateexpirationtype", "httpalertedgeerror", "httpalertoriginerror", "imagenotification", "imageresizingnotification", "incidentalert", "loadbalancinghealthalert", "loadbalancingpoolenablementalert", "logomatchalert", "magictunnelhealthcheckevent", "magicwantunnelhealth", "maintenanceeventnotification", "mtlscertificatestorecertificateexpirationtype", "pageseventalert", "radarnotification", "realoriginmonitoring", "scriptmonitoralertnewcodechangedetections", "scriptmonitoralertnewhosts", "scriptmonitoralertnewmalicioushosts", "scriptmonitoralertnewmaliciousscripts", "scriptmonitoralertnewmaliciousurl", "scriptmonitoralertnewmaxlengthresourceurl", "scriptmonitoralertnewresources", "secondarydnsallprimariesfailing", "secondarydnsprimariesfailing", "secondarydnswarning", "secondarydnszonesuccessfullyupdated", "secondarydnszonevalidationwarning", "securityinsightsalert", "sentinelalert", "streamlivenotifications", "synthetictestlatencyalert", "synthetictestlowavailabilityalert", "trafficanomaliesalert", "tunnelhealthevent", "tunnelupdateevent", "universalssleventtype", "webanalyticsmetricsupdate", "zoneaopcustomcertificateexpirationtype".

Link copied to clipboard
val description: Output<String>? = null

Optional description for the Notification policy.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Whether or not the Notification policy is enabled.

Link copied to clipboard

Optional filters that allow you to be alerted only on a subset of events for that alert type based on some criteria. This is only available for select alert types. See alert type documentation for more details.

Link copied to clipboard

List of IDs that will be used when dispatching a notification. IDs for email type will be the email address.

Link copied to clipboard
val name: Output<String>? = null

Name of the policy.

Functions

Link copied to clipboard
open override fun toJava(): NotificationPolicyArgs