1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. DlpNotificationTemplate
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler
zia logo
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler

    The zia_dlp_notification_templates resource manages DLP (Data Loss Prevention) notification templates in the Zscaler Internet Access (ZIA) cloud service. DLP notification templates define the email notifications sent to users or auditors when a DLP policy rule is triggered.

    For more information, see the ZIA Data Loss Prevention documentation.

    Example Usage

    Basic DLP Notification Template

    Example coming soon!

    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	zia "github.com/zscaler/pulumi-zia/sdk/go/pulumi-zia"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zia.NewDlpNotificationTemplate(ctx, "example", &zia.DlpNotificationTemplateArgs{
    			Name:             pulumi.StringRef("Example DLP Notification"),
    			Subject:          pulumi.StringRef("DLP Policy Violation Detected"),
    			AttachContent:    pulumi.BoolRef(false),
    			PlainTextMessage: pulumi.StringRef("A DLP policy violation was detected."),
    			TlsEnabled:       pulumi.BoolRef(true),
    		})
    		return err
    	})
    }
    

    Example coming soon!

    import * as zia from "@bdzscaler/pulumi-zia";
    
    const example = new zia.DlpNotificationTemplate("example", {
        name: "Example DLP Notification",
        subject: "DLP Policy Violation Detected",
        attachContent: false,
        plainTextMessage: "A DLP policy violation was detected.",
        tlsEnabled: true,
    });
    
    import zscaler_pulumi_zia as zia
    
    example = zia.DlpNotificationTemplate("example",
        name="Example DLP Notification",
        subject="DLP Policy Violation Detected",
        attach_content=False,
        plain_text_message="A DLP policy violation was detected.",
        tls_enabled=True,
    )
    
    resources:
      example:
        type: zia:DlpNotificationTemplate
        properties:
          name: Example DLP Notification
          subject: DLP Policy Violation Detected
          attachContent: false
          plainTextMessage: A DLP policy violation was detected.
          tlsEnabled: true
    

    Create DlpNotificationTemplate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DlpNotificationTemplate(name: string, args?: DlpNotificationTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def DlpNotificationTemplate(resource_name: str,
                                args: Optional[DlpNotificationTemplateArgs] = None,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def DlpNotificationTemplate(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                attach_content: Optional[bool] = None,
                                html_message: Optional[str] = None,
                                name: Optional[str] = None,
                                plain_text_message: Optional[str] = None,
                                subject: Optional[str] = None,
                                tls_enabled: Optional[bool] = None)
    func NewDlpNotificationTemplate(ctx *Context, name string, args *DlpNotificationTemplateArgs, opts ...ResourceOption) (*DlpNotificationTemplate, error)
    public DlpNotificationTemplate(string name, DlpNotificationTemplateArgs? args = null, CustomResourceOptions? opts = null)
    public DlpNotificationTemplate(String name, DlpNotificationTemplateArgs args)
    public DlpNotificationTemplate(String name, DlpNotificationTemplateArgs args, CustomResourceOptions options)
    
    type: zia:DlpNotificationTemplate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DlpNotificationTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DlpNotificationTemplateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DlpNotificationTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DlpNotificationTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DlpNotificationTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var dlpNotificationTemplateResource = new Zia.DlpNotificationTemplate("dlpNotificationTemplateResource", new()
    {
        AttachContent = false,
        HtmlMessage = "string",
        Name = "string",
        PlainTextMessage = "string",
        Subject = "string",
        TlsEnabled = false,
    });
    
    example, err := zia.NewDlpNotificationTemplate(ctx, "dlpNotificationTemplateResource", &zia.DlpNotificationTemplateArgs{
    	AttachContent:    pulumi.Bool(false),
    	HtmlMessage:      pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	PlainTextMessage: pulumi.String("string"),
    	Subject:          pulumi.String("string"),
    	TlsEnabled:       pulumi.Bool(false),
    })
    
    var dlpNotificationTemplateResource = new DlpNotificationTemplate("dlpNotificationTemplateResource", DlpNotificationTemplateArgs.builder()
        .attachContent(false)
        .htmlMessage("string")
        .name("string")
        .plainTextMessage("string")
        .subject("string")
        .tlsEnabled(false)
        .build());
    
    dlp_notification_template_resource = zia.DlpNotificationTemplate("dlpNotificationTemplateResource",
        attach_content=False,
        html_message="string",
        name="string",
        plain_text_message="string",
        subject="string",
        tls_enabled=False)
    
    const dlpNotificationTemplateResource = new zia.DlpNotificationTemplate("dlpNotificationTemplateResource", {
        attachContent: false,
        htmlMessage: "string",
        name: "string",
        plainTextMessage: "string",
        subject: "string",
        tlsEnabled: false,
    });
    
    type: zia:DlpNotificationTemplate
    properties:
        attachContent: false
        htmlMessage: string
        name: string
        plainTextMessage: string
        subject: string
        tlsEnabled: false
    

    DlpNotificationTemplate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DlpNotificationTemplate resource accepts the following input properties:

    AttachContent bool
    If true, the content that triggered the DLP violation is attached to the notification email.
    HtmlMessage string
    The HTML message body of the DLP notification email.
    Name string
    The name of the DLP notification template. Must be unique.
    PlainTextMessage string
    The plain text message body of the DLP notification email.
    Subject string
    The subject line of the DLP notification email.
    TlsEnabled bool
    If true, TLS is enabled for delivering the DLP notification email.
    AttachContent bool
    If true, the content that triggered the DLP violation is attached to the notification email.
    HtmlMessage string
    The HTML message body of the DLP notification email.
    Name string
    The name of the DLP notification template. Must be unique.
    PlainTextMessage string
    The plain text message body of the DLP notification email.
    Subject string
    The subject line of the DLP notification email.
    TlsEnabled bool
    If true, TLS is enabled for delivering the DLP notification email.
    attachContent Boolean
    If true, the content that triggered the DLP violation is attached to the notification email.
    htmlMessage String
    The HTML message body of the DLP notification email.
    name String
    The name of the DLP notification template. Must be unique.
    plainTextMessage String
    The plain text message body of the DLP notification email.
    subject String
    The subject line of the DLP notification email.
    tlsEnabled Boolean
    If true, TLS is enabled for delivering the DLP notification email.
    attachContent boolean
    If true, the content that triggered the DLP violation is attached to the notification email.
    htmlMessage string
    The HTML message body of the DLP notification email.
    name string
    The name of the DLP notification template. Must be unique.
    plainTextMessage string
    The plain text message body of the DLP notification email.
    subject string
    The subject line of the DLP notification email.
    tlsEnabled boolean
    If true, TLS is enabled for delivering the DLP notification email.
    attach_content bool
    If true, the content that triggered the DLP violation is attached to the notification email.
    html_message str
    The HTML message body of the DLP notification email.
    name str
    The name of the DLP notification template. Must be unique.
    plain_text_message str
    The plain text message body of the DLP notification email.
    subject str
    The subject line of the DLP notification email.
    tls_enabled bool
    If true, TLS is enabled for delivering the DLP notification email.
    attachContent Boolean
    If true, the content that triggered the DLP violation is attached to the notification email.
    htmlMessage String
    The HTML message body of the DLP notification email.
    name String
    The name of the DLP notification template. Must be unique.
    plainTextMessage String
    The plain text message body of the DLP notification email.
    subject String
    The subject line of the DLP notification email.
    tlsEnabled Boolean
    If true, TLS is enabled for delivering the DLP notification email.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DlpNotificationTemplate resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    TemplateId int
    The system-generated ID of the DLP notification template.
    Id string
    The provider-assigned unique ID for this managed resource.
    TemplateId int
    The system-generated ID of the DLP notification template.
    id String
    The provider-assigned unique ID for this managed resource.
    templateId Integer
    The system-generated ID of the DLP notification template.
    id string
    The provider-assigned unique ID for this managed resource.
    templateId number
    The system-generated ID of the DLP notification template.
    id str
    The provider-assigned unique ID for this managed resource.
    template_id int
    The system-generated ID of the DLP notification template.
    id String
    The provider-assigned unique ID for this managed resource.
    templateId Number
    The system-generated ID of the DLP notification template.

    Import

    An existing DLP Notification Template can be imported using its resource ID, e.g.

    $ pulumi import zia:index:DlpNotificationTemplate example 12345
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    zia logo
    Viewing docs for pulumi-resource-zia v1.3.8
    published on Friday, Mar 13, 2026 by Zscaler
      Try Pulumi Cloud free. Your team will thank you.