1. Packages
  2. Volcengine
  3. API Docs
  4. tls
  5. AlarmContentTemplate
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
volcengine logo
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine

    Provides a resource to manage tls alarm content template

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.tls.AlarmContentTemplate("foo", {
        alarmContentTemplateName: "test-alarm-content-template",
        dingTalks: [{
            content: `修改-尊敬的用户,您好!
    您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
    告警策略:{{Alarm}}
    告警日志主题:{{AlarmTopicName}}
    触发时间:{{StartTime}}
    触发条件:{{Condition}}
    当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
    通知内容:{{NotifyMsg|escapejs}}
    日志检索详情:[查看详情]({{QueryUrl}})
    告警详情:[查看详情]({{SignInUrl}})
    
    感谢对火山引擎的支持
    `,
            locale: "zh-CN",
            title: "修改-告警通知",
        }],
        emails: [{
            content: "修改-告警策略:{{Alarm}}<br> 告警日志项目:{{ProjectName}}<br>",
            locale: "zh-CN",
            subject: "修改-告警通知",
        }],
        larks: [{
            content: `修改-尊敬的用户,您好!
    您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
    告警策略:{{Alarm}}
    告警日志主题:{{AlarmTopicName}}
    触发时间:{{StartTime}}
    触发条件:{{Condition}}
    当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
    通知内容:{{NotifyMsg|escapejs}}
    日志检索详情:[查看详情]({{QueryUrl}})
    告警详情:[查看详情]({{SignInUrl}})
    
    感谢对火山引擎的支持
    `,
            locale: "zh-CN",
            title: "修改-告警通知",
        }],
        needValidContent: true,
        sms: [{
            content: "修改-告警策略{{Alarm}}, 告警日志项目:{{ProjectName}}, 告警日志主题:{{AlarmTopicName}}, 告警级别:{{Severity}}, 通知类型:{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%},触发时间:{{StartTime}}, 触发条件:{{Condition}}, 当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}], 通知内容:{{NotifyMsg}}",
            locale: "zh-CN",
        }],
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.tls.AlarmContentTemplate("foo",
        alarm_content_template_name="test-alarm-content-template",
        ding_talks=[volcengine.tls.AlarmContentTemplateDingTalkArgs(
            content="""修改-尊敬的用户,您好!
    您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
    告警策略:{{Alarm}}
    告警日志主题:{{AlarmTopicName}}
    触发时间:{{StartTime}}
    触发条件:{{Condition}}
    当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
    通知内容:{{NotifyMsg|escapejs}}
    日志检索详情:[查看详情]({{QueryUrl}})
    告警详情:[查看详情]({{SignInUrl}})
    
    感谢对火山引擎的支持
    """,
            locale="zh-CN",
            title="修改-告警通知",
        )],
        emails=[volcengine.tls.AlarmContentTemplateEmailArgs(
            content="修改-告警策略:{{Alarm}}<br> 告警日志项目:{{ProjectName}}<br>",
            locale="zh-CN",
            subject="修改-告警通知",
        )],
        larks=[volcengine.tls.AlarmContentTemplateLarkArgs(
            content="""修改-尊敬的用户,您好!
    您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
    告警策略:{{Alarm}}
    告警日志主题:{{AlarmTopicName}}
    触发时间:{{StartTime}}
    触发条件:{{Condition}}
    当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
    通知内容:{{NotifyMsg|escapejs}}
    日志检索详情:[查看详情]({{QueryUrl}})
    告警详情:[查看详情]({{SignInUrl}})
    
    感谢对火山引擎的支持
    """,
            locale="zh-CN",
            title="修改-告警通知",
        )],
        need_valid_content=True,
        sms=[volcengine.tls.AlarmContentTemplateSmArgs(
            content="修改-告警策略{{Alarm}}, 告警日志项目:{{ProjectName}}, 告警日志主题:{{AlarmTopicName}}, 告警级别:{{Severity}}, 通知类型:{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%},触发时间:{{StartTime}}, 触发条件:{{Condition}}, 当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}], 通知内容:{{NotifyMsg}}",
            locale="zh-CN",
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tls.NewAlarmContentTemplate(ctx, "foo", &tls.AlarmContentTemplateArgs{
    			AlarmContentTemplateName: pulumi.String("test-alarm-content-template"),
    			DingTalks: tls.AlarmContentTemplateDingTalkArray{
    				&tls.AlarmContentTemplateDingTalkArgs{
    					Content: pulumi.String(`修改-尊敬的用户,您好!
    您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
    告警策略:{{Alarm}}
    告警日志主题:{{AlarmTopicName}}
    触发时间:{{StartTime}}
    触发条件:{{Condition}}
    当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
    通知内容:{{NotifyMsg|escapejs}}
    日志检索详情:[查看详情]({{QueryUrl}})
    告警详情:[查看详情]({{SignInUrl}})
    
    感谢对火山引擎的支持
    `),
    					Locale: pulumi.String("zh-CN"),
    					Title:  pulumi.String("修改-告警通知"),
    				},
    			},
    			Emails: tls.AlarmContentTemplateEmailArray{
    				&tls.AlarmContentTemplateEmailArgs{
    					Content: pulumi.String("修改-告警策略:{{Alarm}}<br> 告警日志项目:{{ProjectName}}<br>"),
    					Locale:  pulumi.String("zh-CN"),
    					Subject: pulumi.String("修改-告警通知"),
    				},
    			},
    			Larks: tls.AlarmContentTemplateLarkArray{
    				&tls.AlarmContentTemplateLarkArgs{
    					Content: pulumi.String(`修改-尊敬的用户,您好!
    您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
    告警策略:{{Alarm}}
    告警日志主题:{{AlarmTopicName}}
    触发时间:{{StartTime}}
    触发条件:{{Condition}}
    当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
    通知内容:{{NotifyMsg|escapejs}}
    日志检索详情:[查看详情]({{QueryUrl}})
    告警详情:[查看详情]({{SignInUrl}})
    
    感谢对火山引擎的支持
    `),
    					Locale: pulumi.String("zh-CN"),
    					Title:  pulumi.String("修改-告警通知"),
    				},
    			},
    			NeedValidContent: pulumi.Bool(true),
    			Sms: tls.AlarmContentTemplateSmArray{
    				&tls.AlarmContentTemplateSmArgs{
    					Content: pulumi.String("修改-告警策略{{Alarm}}, 告警日志项目:{{ProjectName}}, 告警日志主题:{{AlarmTopicName}}, 告警级别:{{Severity}}, 通知类型:{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%},触发时间:{{StartTime}}, 触发条件:{{Condition}}, 当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}], 通知内容:{{NotifyMsg}}"),
    					Locale:  pulumi.String("zh-CN"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Tls.AlarmContentTemplate("foo", new()
        {
            AlarmContentTemplateName = "test-alarm-content-template",
            DingTalks = new[]
            {
                new Volcengine.Tls.Inputs.AlarmContentTemplateDingTalkArgs
                {
                    Content = @"修改-尊敬的用户,您好!
    您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
    告警策略:{{Alarm}}
    告警日志主题:{{AlarmTopicName}}
    触发时间:{{StartTime}}
    触发条件:{{Condition}}
    当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
    通知内容:{{NotifyMsg|escapejs}}
    日志检索详情:[查看详情]({{QueryUrl}})
    告警详情:[查看详情]({{SignInUrl}})
    
    感谢对火山引擎的支持
    ",
                    Locale = "zh-CN",
                    Title = "修改-告警通知",
                },
            },
            Emails = new[]
            {
                new Volcengine.Tls.Inputs.AlarmContentTemplateEmailArgs
                {
                    Content = "修改-告警策略:{{Alarm}}<br> 告警日志项目:{{ProjectName}}<br>",
                    Locale = "zh-CN",
                    Subject = "修改-告警通知",
                },
            },
            Larks = new[]
            {
                new Volcengine.Tls.Inputs.AlarmContentTemplateLarkArgs
                {
                    Content = @"修改-尊敬的用户,您好!
    您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
    告警策略:{{Alarm}}
    告警日志主题:{{AlarmTopicName}}
    触发时间:{{StartTime}}
    触发条件:{{Condition}}
    当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
    通知内容:{{NotifyMsg|escapejs}}
    日志检索详情:[查看详情]({{QueryUrl}})
    告警详情:[查看详情]({{SignInUrl}})
    
    感谢对火山引擎的支持
    ",
                    Locale = "zh-CN",
                    Title = "修改-告警通知",
                },
            },
            NeedValidContent = true,
            Sms = new[]
            {
                new Volcengine.Tls.Inputs.AlarmContentTemplateSmArgs
                {
                    Content = "修改-告警策略{{Alarm}}, 告警日志项目:{{ProjectName}}, 告警日志主题:{{AlarmTopicName}}, 告警级别:{{Severity}}, 通知类型:{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%},触发时间:{{StartTime}}, 触发条件:{{Condition}}, 当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}], 通知内容:{{NotifyMsg}}",
                    Locale = "zh-CN",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.tls.AlarmContentTemplate;
    import com.pulumi.volcengine.tls.AlarmContentTemplateArgs;
    import com.pulumi.volcengine.tls.inputs.AlarmContentTemplateDingTalkArgs;
    import com.pulumi.volcengine.tls.inputs.AlarmContentTemplateEmailArgs;
    import com.pulumi.volcengine.tls.inputs.AlarmContentTemplateLarkArgs;
    import com.pulumi.volcengine.tls.inputs.AlarmContentTemplateSmArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var foo = new AlarmContentTemplate("foo", AlarmContentTemplateArgs.builder()        
                .alarmContentTemplateName("test-alarm-content-template")
                .dingTalks(AlarmContentTemplateDingTalkArgs.builder()
                    .content("""
    修改-尊敬的用户,您好!
    您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
    告警策略:{{Alarm}}
    告警日志主题:{{AlarmTopicName}}
    触发时间:{{StartTime}}
    触发条件:{{Condition}}
    当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
    通知内容:{{NotifyMsg|escapejs}}
    日志检索详情:[查看详情]({{QueryUrl}})
    告警详情:[查看详情]({{SignInUrl}})
    
    感谢对火山引擎的支持
                    """)
                    .locale("zh-CN")
                    .title("修改-告警通知")
                    .build())
                .emails(AlarmContentTemplateEmailArgs.builder()
                    .content("修改-告警策略:{{Alarm}}<br> 告警日志项目:{{ProjectName}}<br>")
                    .locale("zh-CN")
                    .subject("修改-告警通知")
                    .build())
                .larks(AlarmContentTemplateLarkArgs.builder()
                    .content("""
    修改-尊敬的用户,您好!
    您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
    告警策略:{{Alarm}}
    告警日志主题:{{AlarmTopicName}}
    触发时间:{{StartTime}}
    触发条件:{{Condition}}
    当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
    通知内容:{{NotifyMsg|escapejs}}
    日志检索详情:[查看详情]({{QueryUrl}})
    告警详情:[查看详情]({{SignInUrl}})
    
    感谢对火山引擎的支持
                    """)
                    .locale("zh-CN")
                    .title("修改-告警通知")
                    .build())
                .needValidContent(true)
                .sms(AlarmContentTemplateSmArgs.builder()
                    .content("修改-告警策略{{Alarm}}, 告警日志项目:{{ProjectName}}, 告警日志主题:{{AlarmTopicName}}, 告警级别:{{Severity}}, 通知类型:{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%},触发时间:{{StartTime}}, 触发条件:{{Condition}}, 当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}], 通知内容:{{NotifyMsg}}")
                    .locale("zh-CN")
                    .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: volcengine:tls:AlarmContentTemplate
        properties:
          alarmContentTemplateName: test-alarm-content-template
          dingTalks:
            - content: |
                修改-尊敬的用户,您好!
                您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
                告警策略:{{Alarm}}
                告警日志主题:{{AlarmTopicName}}
                触发时间:{{StartTime}}
                触发条件:{{Condition}}
                当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
                通知内容:{{NotifyMsg|escapejs}}
                日志检索详情:[查看详情]({{QueryUrl}})
                告警详情:[查看详情]({{SignInUrl}})
    
                感谢对火山引擎的支持            
              locale: zh-CN
              title: 修改-告警通知
          emails:
            - content: 修改-告警策略:{{Alarm}}<br> 告警日志项目:{{ProjectName}}<br>
              locale: zh-CN
              subject: 修改-告警通知
          larks:
            - content: |
                修改-尊敬的用户,您好!
                您的账号(主账户ID:{{AccountID}} )的日志服务{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%}
                告警策略:{{Alarm}}
                告警日志主题:{{AlarmTopicName}}
                触发时间:{{StartTime}}
                触发条件:{{Condition}}
                当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]
                通知内容:{{NotifyMsg|escapejs}}
                日志检索详情:[查看详情]({{QueryUrl}})
                告警详情:[查看详情]({{SignInUrl}})
    
                感谢对火山引擎的支持            
              locale: zh-CN
              title: 修改-告警通知
          needValidContent: true
          sms:
            - content: 修改-告警策略{{Alarm}}, 告警日志项目:{{ProjectName}}, 告警日志主题:{{AlarmTopicName}}, 告警级别:{{Severity}}, 通知类型:{%if NotifyType==1%}触发告警{%else%}告警恢复{%endif%},触发时间:{{StartTime}}, 触发条件:{{Condition}}, 当前查询结果:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}], 通知内容:{{NotifyMsg}}
              locale: zh-CN
    

    Create AlarmContentTemplate Resource

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

    Constructor syntax

    new AlarmContentTemplate(name: string, args: AlarmContentTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def AlarmContentTemplate(resource_name: str,
                             args: AlarmContentTemplateArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlarmContentTemplate(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             alarm_content_template_name: Optional[str] = None,
                             ding_talks: Optional[Sequence[AlarmContentTemplateDingTalkArgs]] = None,
                             emails: Optional[Sequence[AlarmContentTemplateEmailArgs]] = None,
                             larks: Optional[Sequence[AlarmContentTemplateLarkArgs]] = None,
                             need_valid_content: Optional[bool] = None,
                             sms: Optional[Sequence[AlarmContentTemplateSmArgs]] = None,
                             vms: Optional[Sequence[AlarmContentTemplateVmArgs]] = None,
                             webhooks: Optional[Sequence[AlarmContentTemplateWebhookArgs]] = None,
                             wechats: Optional[Sequence[AlarmContentTemplateWechatArgs]] = None)
    func NewAlarmContentTemplate(ctx *Context, name string, args AlarmContentTemplateArgs, opts ...ResourceOption) (*AlarmContentTemplate, error)
    public AlarmContentTemplate(string name, AlarmContentTemplateArgs args, CustomResourceOptions? opts = null)
    public AlarmContentTemplate(String name, AlarmContentTemplateArgs args)
    public AlarmContentTemplate(String name, AlarmContentTemplateArgs args, CustomResourceOptions options)
    
    type: volcengine:tls:AlarmContentTemplate
    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 AlarmContentTemplateArgs
    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 AlarmContentTemplateArgs
    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 AlarmContentTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlarmContentTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlarmContentTemplateArgs
    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 alarmContentTemplateResource = new Volcengine.Tls.AlarmContentTemplate("alarmContentTemplateResource", new()
    {
        AlarmContentTemplateName = "string",
        DingTalks = new[]
        {
            new Volcengine.Tls.Inputs.AlarmContentTemplateDingTalkArgs
            {
                Content = "string",
                Locale = "string",
                Title = "string",
            },
        },
        Emails = new[]
        {
            new Volcengine.Tls.Inputs.AlarmContentTemplateEmailArgs
            {
                Content = "string",
                Locale = "string",
                Subject = "string",
            },
        },
        Larks = new[]
        {
            new Volcengine.Tls.Inputs.AlarmContentTemplateLarkArgs
            {
                Content = "string",
                Locale = "string",
                Title = "string",
            },
        },
        NeedValidContent = false,
        Sms = new[]
        {
            new Volcengine.Tls.Inputs.AlarmContentTemplateSmArgs
            {
                Content = "string",
                Locale = "string",
            },
        },
        Vms = new[]
        {
            new Volcengine.Tls.Inputs.AlarmContentTemplateVmArgs
            {
                Content = "string",
                Locale = "string",
            },
        },
        Webhooks = new[]
        {
            new Volcengine.Tls.Inputs.AlarmContentTemplateWebhookArgs
            {
                Content = "string",
            },
        },
        Wechats = new[]
        {
            new Volcengine.Tls.Inputs.AlarmContentTemplateWechatArgs
            {
                Content = "string",
                Locale = "string",
            },
        },
    });
    
    example, err := tls.NewAlarmContentTemplate(ctx, "alarmContentTemplateResource", &tls.AlarmContentTemplateArgs{
    	AlarmContentTemplateName: pulumi.String("string"),
    	DingTalks: tls.AlarmContentTemplateDingTalkArray{
    		&tls.AlarmContentTemplateDingTalkArgs{
    			Content: pulumi.String("string"),
    			Locale:  pulumi.String("string"),
    			Title:   pulumi.String("string"),
    		},
    	},
    	Emails: tls.AlarmContentTemplateEmailArray{
    		&tls.AlarmContentTemplateEmailArgs{
    			Content: pulumi.String("string"),
    			Locale:  pulumi.String("string"),
    			Subject: pulumi.String("string"),
    		},
    	},
    	Larks: tls.AlarmContentTemplateLarkArray{
    		&tls.AlarmContentTemplateLarkArgs{
    			Content: pulumi.String("string"),
    			Locale:  pulumi.String("string"),
    			Title:   pulumi.String("string"),
    		},
    	},
    	NeedValidContent: pulumi.Bool(false),
    	Sms: tls.AlarmContentTemplateSmArray{
    		&tls.AlarmContentTemplateSmArgs{
    			Content: pulumi.String("string"),
    			Locale:  pulumi.String("string"),
    		},
    	},
    	Vms: tls.AlarmContentTemplateVmArray{
    		&tls.AlarmContentTemplateVmArgs{
    			Content: pulumi.String("string"),
    			Locale:  pulumi.String("string"),
    		},
    	},
    	Webhooks: tls.AlarmContentTemplateWebhookArray{
    		&tls.AlarmContentTemplateWebhookArgs{
    			Content: pulumi.String("string"),
    		},
    	},
    	Wechats: tls.AlarmContentTemplateWechatArray{
    		&tls.AlarmContentTemplateWechatArgs{
    			Content: pulumi.String("string"),
    			Locale:  pulumi.String("string"),
    		},
    	},
    })
    
    var alarmContentTemplateResource = new AlarmContentTemplate("alarmContentTemplateResource", AlarmContentTemplateArgs.builder()
        .alarmContentTemplateName("string")
        .dingTalks(AlarmContentTemplateDingTalkArgs.builder()
            .content("string")
            .locale("string")
            .title("string")
            .build())
        .emails(AlarmContentTemplateEmailArgs.builder()
            .content("string")
            .locale("string")
            .subject("string")
            .build())
        .larks(AlarmContentTemplateLarkArgs.builder()
            .content("string")
            .locale("string")
            .title("string")
            .build())
        .needValidContent(false)
        .sms(AlarmContentTemplateSmArgs.builder()
            .content("string")
            .locale("string")
            .build())
        .vms(AlarmContentTemplateVmArgs.builder()
            .content("string")
            .locale("string")
            .build())
        .webhooks(AlarmContentTemplateWebhookArgs.builder()
            .content("string")
            .build())
        .wechats(AlarmContentTemplateWechatArgs.builder()
            .content("string")
            .locale("string")
            .build())
        .build());
    
    alarm_content_template_resource = volcengine.tls.AlarmContentTemplate("alarmContentTemplateResource",
        alarm_content_template_name="string",
        ding_talks=[{
            "content": "string",
            "locale": "string",
            "title": "string",
        }],
        emails=[{
            "content": "string",
            "locale": "string",
            "subject": "string",
        }],
        larks=[{
            "content": "string",
            "locale": "string",
            "title": "string",
        }],
        need_valid_content=False,
        sms=[{
            "content": "string",
            "locale": "string",
        }],
        vms=[{
            "content": "string",
            "locale": "string",
        }],
        webhooks=[{
            "content": "string",
        }],
        wechats=[{
            "content": "string",
            "locale": "string",
        }])
    
    const alarmContentTemplateResource = new volcengine.tls.AlarmContentTemplate("alarmContentTemplateResource", {
        alarmContentTemplateName: "string",
        dingTalks: [{
            content: "string",
            locale: "string",
            title: "string",
        }],
        emails: [{
            content: "string",
            locale: "string",
            subject: "string",
        }],
        larks: [{
            content: "string",
            locale: "string",
            title: "string",
        }],
        needValidContent: false,
        sms: [{
            content: "string",
            locale: "string",
        }],
        vms: [{
            content: "string",
            locale: "string",
        }],
        webhooks: [{
            content: "string",
        }],
        wechats: [{
            content: "string",
            locale: "string",
        }],
    });
    
    type: volcengine:tls:AlarmContentTemplate
    properties:
        alarmContentTemplateName: string
        dingTalks:
            - content: string
              locale: string
              title: string
        emails:
            - content: string
              locale: string
              subject: string
        larks:
            - content: string
              locale: string
              title: string
        needValidContent: false
        sms:
            - content: string
              locale: string
        vms:
            - content: string
              locale: string
        webhooks:
            - content: string
        wechats:
            - content: string
              locale: string
    

    AlarmContentTemplate 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 AlarmContentTemplate resource accepts the following input properties:

    AlarmContentTemplateName string
    The name of the alarm content template.
    DingTalks List<AlarmContentTemplateDingTalk>
    The ding_talk content of the alarm content template.
    Emails List<AlarmContentTemplateEmail>
    The email content of the alarm content template.
    Larks List<AlarmContentTemplateLark>
    The lark content of the alarm content template.
    NeedValidContent bool
    Whether to validate the content template.
    Sms List<AlarmContentTemplateSm>
    The sms content of the alarm content template.
    Vms List<AlarmContentTemplateVm>
    The vms content of the alarm content template.
    Webhooks List<AlarmContentTemplateWebhook>
    The webhook content of the alarm content template.
    Wechats List<AlarmContentTemplateWechat>
    The wechat content of the alarm content template.
    AlarmContentTemplateName string
    The name of the alarm content template.
    DingTalks []AlarmContentTemplateDingTalkArgs
    The ding_talk content of the alarm content template.
    Emails []AlarmContentTemplateEmailArgs
    The email content of the alarm content template.
    Larks []AlarmContentTemplateLarkArgs
    The lark content of the alarm content template.
    NeedValidContent bool
    Whether to validate the content template.
    Sms []AlarmContentTemplateSmArgs
    The sms content of the alarm content template.
    Vms []AlarmContentTemplateVmArgs
    The vms content of the alarm content template.
    Webhooks []AlarmContentTemplateWebhookArgs
    The webhook content of the alarm content template.
    Wechats []AlarmContentTemplateWechatArgs
    The wechat content of the alarm content template.
    alarmContentTemplateName String
    The name of the alarm content template.
    dingTalks List<AlarmContentTemplateDingTalk>
    The ding_talk content of the alarm content template.
    emails List<AlarmContentTemplateEmail>
    The email content of the alarm content template.
    larks List<AlarmContentTemplateLark>
    The lark content of the alarm content template.
    needValidContent Boolean
    Whether to validate the content template.
    sms List<AlarmContentTemplateSm>
    The sms content of the alarm content template.
    vms List<AlarmContentTemplateVm>
    The vms content of the alarm content template.
    webhooks List<AlarmContentTemplateWebhook>
    The webhook content of the alarm content template.
    wechats List<AlarmContentTemplateWechat>
    The wechat content of the alarm content template.
    alarmContentTemplateName string
    The name of the alarm content template.
    dingTalks AlarmContentTemplateDingTalk[]
    The ding_talk content of the alarm content template.
    emails AlarmContentTemplateEmail[]
    The email content of the alarm content template.
    larks AlarmContentTemplateLark[]
    The lark content of the alarm content template.
    needValidContent boolean
    Whether to validate the content template.
    sms AlarmContentTemplateSm[]
    The sms content of the alarm content template.
    vms AlarmContentTemplateVm[]
    The vms content of the alarm content template.
    webhooks AlarmContentTemplateWebhook[]
    The webhook content of the alarm content template.
    wechats AlarmContentTemplateWechat[]
    The wechat content of the alarm content template.
    alarm_content_template_name str
    The name of the alarm content template.
    ding_talks Sequence[AlarmContentTemplateDingTalkArgs]
    The ding_talk content of the alarm content template.
    emails Sequence[AlarmContentTemplateEmailArgs]
    The email content of the alarm content template.
    larks Sequence[AlarmContentTemplateLarkArgs]
    The lark content of the alarm content template.
    need_valid_content bool
    Whether to validate the content template.
    sms Sequence[AlarmContentTemplateSmArgs]
    The sms content of the alarm content template.
    vms Sequence[AlarmContentTemplateVmArgs]
    The vms content of the alarm content template.
    webhooks Sequence[AlarmContentTemplateWebhookArgs]
    The webhook content of the alarm content template.
    wechats Sequence[AlarmContentTemplateWechatArgs]
    The wechat content of the alarm content template.
    alarmContentTemplateName String
    The name of the alarm content template.
    dingTalks List<Property Map>
    The ding_talk content of the alarm content template.
    emails List<Property Map>
    The email content of the alarm content template.
    larks List<Property Map>
    The lark content of the alarm content template.
    needValidContent Boolean
    Whether to validate the content template.
    sms List<Property Map>
    The sms content of the alarm content template.
    vms List<Property Map>
    The vms content of the alarm content template.
    webhooks List<Property Map>
    The webhook content of the alarm content template.
    wechats List<Property Map>
    The wechat content of the alarm content template.

    Outputs

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

    AlarmContentTemplateId string
    The ID of the alarm content template.
    Id string
    The provider-assigned unique ID for this managed resource.
    AlarmContentTemplateId string
    The ID of the alarm content template.
    Id string
    The provider-assigned unique ID for this managed resource.
    alarmContentTemplateId String
    The ID of the alarm content template.
    id String
    The provider-assigned unique ID for this managed resource.
    alarmContentTemplateId string
    The ID of the alarm content template.
    id string
    The provider-assigned unique ID for this managed resource.
    alarm_content_template_id str
    The ID of the alarm content template.
    id str
    The provider-assigned unique ID for this managed resource.
    alarmContentTemplateId String
    The ID of the alarm content template.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AlarmContentTemplate Resource

    Get an existing AlarmContentTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AlarmContentTemplateState, opts?: CustomResourceOptions): AlarmContentTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alarm_content_template_id: Optional[str] = None,
            alarm_content_template_name: Optional[str] = None,
            ding_talks: Optional[Sequence[AlarmContentTemplateDingTalkArgs]] = None,
            emails: Optional[Sequence[AlarmContentTemplateEmailArgs]] = None,
            larks: Optional[Sequence[AlarmContentTemplateLarkArgs]] = None,
            need_valid_content: Optional[bool] = None,
            sms: Optional[Sequence[AlarmContentTemplateSmArgs]] = None,
            vms: Optional[Sequence[AlarmContentTemplateVmArgs]] = None,
            webhooks: Optional[Sequence[AlarmContentTemplateWebhookArgs]] = None,
            wechats: Optional[Sequence[AlarmContentTemplateWechatArgs]] = None) -> AlarmContentTemplate
    func GetAlarmContentTemplate(ctx *Context, name string, id IDInput, state *AlarmContentTemplateState, opts ...ResourceOption) (*AlarmContentTemplate, error)
    public static AlarmContentTemplate Get(string name, Input<string> id, AlarmContentTemplateState? state, CustomResourceOptions? opts = null)
    public static AlarmContentTemplate get(String name, Output<String> id, AlarmContentTemplateState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:tls:AlarmContentTemplate    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AlarmContentTemplateId string
    The ID of the alarm content template.
    AlarmContentTemplateName string
    The name of the alarm content template.
    DingTalks List<AlarmContentTemplateDingTalk>
    The ding_talk content of the alarm content template.
    Emails List<AlarmContentTemplateEmail>
    The email content of the alarm content template.
    Larks List<AlarmContentTemplateLark>
    The lark content of the alarm content template.
    NeedValidContent bool
    Whether to validate the content template.
    Sms List<AlarmContentTemplateSm>
    The sms content of the alarm content template.
    Vms List<AlarmContentTemplateVm>
    The vms content of the alarm content template.
    Webhooks List<AlarmContentTemplateWebhook>
    The webhook content of the alarm content template.
    Wechats List<AlarmContentTemplateWechat>
    The wechat content of the alarm content template.
    AlarmContentTemplateId string
    The ID of the alarm content template.
    AlarmContentTemplateName string
    The name of the alarm content template.
    DingTalks []AlarmContentTemplateDingTalkArgs
    The ding_talk content of the alarm content template.
    Emails []AlarmContentTemplateEmailArgs
    The email content of the alarm content template.
    Larks []AlarmContentTemplateLarkArgs
    The lark content of the alarm content template.
    NeedValidContent bool
    Whether to validate the content template.
    Sms []AlarmContentTemplateSmArgs
    The sms content of the alarm content template.
    Vms []AlarmContentTemplateVmArgs
    The vms content of the alarm content template.
    Webhooks []AlarmContentTemplateWebhookArgs
    The webhook content of the alarm content template.
    Wechats []AlarmContentTemplateWechatArgs
    The wechat content of the alarm content template.
    alarmContentTemplateId String
    The ID of the alarm content template.
    alarmContentTemplateName String
    The name of the alarm content template.
    dingTalks List<AlarmContentTemplateDingTalk>
    The ding_talk content of the alarm content template.
    emails List<AlarmContentTemplateEmail>
    The email content of the alarm content template.
    larks List<AlarmContentTemplateLark>
    The lark content of the alarm content template.
    needValidContent Boolean
    Whether to validate the content template.
    sms List<AlarmContentTemplateSm>
    The sms content of the alarm content template.
    vms List<AlarmContentTemplateVm>
    The vms content of the alarm content template.
    webhooks List<AlarmContentTemplateWebhook>
    The webhook content of the alarm content template.
    wechats List<AlarmContentTemplateWechat>
    The wechat content of the alarm content template.
    alarmContentTemplateId string
    The ID of the alarm content template.
    alarmContentTemplateName string
    The name of the alarm content template.
    dingTalks AlarmContentTemplateDingTalk[]
    The ding_talk content of the alarm content template.
    emails AlarmContentTemplateEmail[]
    The email content of the alarm content template.
    larks AlarmContentTemplateLark[]
    The lark content of the alarm content template.
    needValidContent boolean
    Whether to validate the content template.
    sms AlarmContentTemplateSm[]
    The sms content of the alarm content template.
    vms AlarmContentTemplateVm[]
    The vms content of the alarm content template.
    webhooks AlarmContentTemplateWebhook[]
    The webhook content of the alarm content template.
    wechats AlarmContentTemplateWechat[]
    The wechat content of the alarm content template.
    alarm_content_template_id str
    The ID of the alarm content template.
    alarm_content_template_name str
    The name of the alarm content template.
    ding_talks Sequence[AlarmContentTemplateDingTalkArgs]
    The ding_talk content of the alarm content template.
    emails Sequence[AlarmContentTemplateEmailArgs]
    The email content of the alarm content template.
    larks Sequence[AlarmContentTemplateLarkArgs]
    The lark content of the alarm content template.
    need_valid_content bool
    Whether to validate the content template.
    sms Sequence[AlarmContentTemplateSmArgs]
    The sms content of the alarm content template.
    vms Sequence[AlarmContentTemplateVmArgs]
    The vms content of the alarm content template.
    webhooks Sequence[AlarmContentTemplateWebhookArgs]
    The webhook content of the alarm content template.
    wechats Sequence[AlarmContentTemplateWechatArgs]
    The wechat content of the alarm content template.
    alarmContentTemplateId String
    The ID of the alarm content template.
    alarmContentTemplateName String
    The name of the alarm content template.
    dingTalks List<Property Map>
    The ding_talk content of the alarm content template.
    emails List<Property Map>
    The email content of the alarm content template.
    larks List<Property Map>
    The lark content of the alarm content template.
    needValidContent Boolean
    Whether to validate the content template.
    sms List<Property Map>
    The sms content of the alarm content template.
    vms List<Property Map>
    The vms content of the alarm content template.
    webhooks List<Property Map>
    The webhook content of the alarm content template.
    wechats List<Property Map>
    The wechat content of the alarm content template.

    Supporting Types

    AlarmContentTemplateDingTalk, AlarmContentTemplateDingTalkArgs

    Content string
    The content of the ding_talk content template.
    Locale string
    The locale of the ding_talk content template.
    Title string
    The title of the ding_talk content template.
    Content string
    The content of the ding_talk content template.
    Locale string
    The locale of the ding_talk content template.
    Title string
    The title of the ding_talk content template.
    content String
    The content of the ding_talk content template.
    locale String
    The locale of the ding_talk content template.
    title String
    The title of the ding_talk content template.
    content string
    The content of the ding_talk content template.
    locale string
    The locale of the ding_talk content template.
    title string
    The title of the ding_talk content template.
    content str
    The content of the ding_talk content template.
    locale str
    The locale of the ding_talk content template.
    title str
    The title of the ding_talk content template.
    content String
    The content of the ding_talk content template.
    locale String
    The locale of the ding_talk content template.
    title String
    The title of the ding_talk content template.

    AlarmContentTemplateEmail, AlarmContentTemplateEmailArgs

    Content string
    The content of the email content template.
    Locale string
    The locale of the email content template.
    Subject string
    The subject of the email content template.
    Content string
    The content of the email content template.
    Locale string
    The locale of the email content template.
    Subject string
    The subject of the email content template.
    content String
    The content of the email content template.
    locale String
    The locale of the email content template.
    subject String
    The subject of the email content template.
    content string
    The content of the email content template.
    locale string
    The locale of the email content template.
    subject string
    The subject of the email content template.
    content str
    The content of the email content template.
    locale str
    The locale of the email content template.
    subject str
    The subject of the email content template.
    content String
    The content of the email content template.
    locale String
    The locale of the email content template.
    subject String
    The subject of the email content template.

    AlarmContentTemplateLark, AlarmContentTemplateLarkArgs

    Content string
    The content of the lark content template.
    Locale string
    The locale of the lark content template.
    Title string
    The title of the lark content template.
    Content string
    The content of the lark content template.
    Locale string
    The locale of the lark content template.
    Title string
    The title of the lark content template.
    content String
    The content of the lark content template.
    locale String
    The locale of the lark content template.
    title String
    The title of the lark content template.
    content string
    The content of the lark content template.
    locale string
    The locale of the lark content template.
    title string
    The title of the lark content template.
    content str
    The content of the lark content template.
    locale str
    The locale of the lark content template.
    title str
    The title of the lark content template.
    content String
    The content of the lark content template.
    locale String
    The locale of the lark content template.
    title String
    The title of the lark content template.

    AlarmContentTemplateSm, AlarmContentTemplateSmArgs

    Content string
    The content of the sms content template.
    Locale string
    The locale of the sms content template.
    Content string
    The content of the sms content template.
    Locale string
    The locale of the sms content template.
    content String
    The content of the sms content template.
    locale String
    The locale of the sms content template.
    content string
    The content of the sms content template.
    locale string
    The locale of the sms content template.
    content str
    The content of the sms content template.
    locale str
    The locale of the sms content template.
    content String
    The content of the sms content template.
    locale String
    The locale of the sms content template.

    AlarmContentTemplateVm, AlarmContentTemplateVmArgs

    Content string
    The content of the vms content template.
    Locale string
    The locale of the vms content template.
    Content string
    The content of the vms content template.
    Locale string
    The locale of the vms content template.
    content String
    The content of the vms content template.
    locale String
    The locale of the vms content template.
    content string
    The content of the vms content template.
    locale string
    The locale of the vms content template.
    content str
    The content of the vms content template.
    locale str
    The locale of the vms content template.
    content String
    The content of the vms content template.
    locale String
    The locale of the vms content template.

    AlarmContentTemplateWebhook, AlarmContentTemplateWebhookArgs

    Content string
    The content of the webhook content template.
    Content string
    The content of the webhook content template.
    content String
    The content of the webhook content template.
    content string
    The content of the webhook content template.
    content str
    The content of the webhook content template.
    content String
    The content of the webhook content template.

    AlarmContentTemplateWechat, AlarmContentTemplateWechatArgs

    Content string
    The content of the wechat content template.
    Locale string
    The locale of the wechat content template.
    Content string
    The content of the wechat content template.
    Locale string
    The locale of the wechat content template.
    content String
    The content of the wechat content template.
    locale String
    The locale of the wechat content template.
    content string
    The content of the wechat content template.
    locale string
    The locale of the wechat content template.
    content str
    The content of the wechat content template.
    locale str
    The locale of the wechat content template.
    content String
    The content of the wechat content template.
    locale String
    The locale of the wechat content template.

    Import

    tls alarm content template can be imported using the alarm_content_template_id, e.g.

    $ pulumi import volcengine:tls/alarmContentTemplate:AlarmContentTemplate default alarm-content-template-123456
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate