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:
- Alarm
Content stringTemplate Name - The name of the alarm content template.
- Ding
Talks List<AlarmContent Template Ding Talk> - The ding_talk content of the alarm content template.
- Emails
List<Alarm
Content Template Email> - The email content of the alarm content template.
- Larks
List<Alarm
Content Template Lark> - The lark content of the alarm content template.
- Need
Valid boolContent - Whether to validate the content template.
- Sms
List<Alarm
Content Template Sm> - The sms content of the alarm content template.
- Vms
List<Alarm
Content Template Vm> - The vms content of the alarm content template.
- Webhooks
List<Alarm
Content Template Webhook> - The webhook content of the alarm content template.
- Wechats
List<Alarm
Content Template Wechat> - The wechat content of the alarm content template.
- Alarm
Content stringTemplate Name - The name of the alarm content template.
- Ding
Talks []AlarmContent Template Ding Talk Args - The ding_talk content of the alarm content template.
- Emails
[]Alarm
Content Template Email Args - The email content of the alarm content template.
- Larks
[]Alarm
Content Template Lark Args - The lark content of the alarm content template.
- Need
Valid boolContent - Whether to validate the content template.
- Sms
[]Alarm
Content Template Sm Args - The sms content of the alarm content template.
- Vms
[]Alarm
Content Template Vm Args - The vms content of the alarm content template.
- Webhooks
[]Alarm
Content Template Webhook Args - The webhook content of the alarm content template.
- Wechats
[]Alarm
Content Template Wechat Args - The wechat content of the alarm content template.
- alarm
Content StringTemplate Name - The name of the alarm content template.
- ding
Talks List<AlarmContent Template Ding Talk> - The ding_talk content of the alarm content template.
- emails
List<Alarm
Content Template Email> - The email content of the alarm content template.
- larks
List<Alarm
Content Template Lark> - The lark content of the alarm content template.
- need
Valid BooleanContent - Whether to validate the content template.
- sms
List<Alarm
Content Template Sm> - The sms content of the alarm content template.
- vms
List<Alarm
Content Template Vm> - The vms content of the alarm content template.
- webhooks
List<Alarm
Content Template Webhook> - The webhook content of the alarm content template.
- wechats
List<Alarm
Content Template Wechat> - The wechat content of the alarm content template.
- alarm
Content stringTemplate Name - The name of the alarm content template.
- ding
Talks AlarmContent Template Ding Talk[] - The ding_talk content of the alarm content template.
- emails
Alarm
Content Template Email[] - The email content of the alarm content template.
- larks
Alarm
Content Template Lark[] - The lark content of the alarm content template.
- need
Valid booleanContent - Whether to validate the content template.
- sms
Alarm
Content Template Sm[] - The sms content of the alarm content template.
- vms
Alarm
Content Template Vm[] - The vms content of the alarm content template.
- webhooks
Alarm
Content Template Webhook[] - The webhook content of the alarm content template.
- wechats
Alarm
Content Template Wechat[] - The wechat content of the alarm content template.
- alarm_
content_ strtemplate_ name - The name of the alarm content template.
- ding_
talks Sequence[AlarmContent Template Ding Talk Args] - The ding_talk content of the alarm content template.
- emails
Sequence[Alarm
Content Template Email Args] - The email content of the alarm content template.
- larks
Sequence[Alarm
Content Template Lark Args] - The lark content of the alarm content template.
- need_
valid_ boolcontent - Whether to validate the content template.
- sms
Sequence[Alarm
Content Template Sm Args] - The sms content of the alarm content template.
- vms
Sequence[Alarm
Content Template Vm Args] - The vms content of the alarm content template.
- webhooks
Sequence[Alarm
Content Template Webhook Args] - The webhook content of the alarm content template.
- wechats
Sequence[Alarm
Content Template Wechat Args] - The wechat content of the alarm content template.
- alarm
Content StringTemplate Name - The name of the alarm content template.
- ding
Talks 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.
- need
Valid BooleanContent - 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:
- Alarm
Content stringTemplate Id - The ID of the alarm content template.
- Id string
- The provider-assigned unique ID for this managed resource.
- Alarm
Content stringTemplate Id - The ID of the alarm content template.
- Id string
- The provider-assigned unique ID for this managed resource.
- alarm
Content StringTemplate Id - The ID of the alarm content template.
- id String
- The provider-assigned unique ID for this managed resource.
- alarm
Content stringTemplate Id - The ID of the alarm content template.
- id string
- The provider-assigned unique ID for this managed resource.
- alarm_
content_ strtemplate_ id - The ID of the alarm content template.
- id str
- The provider-assigned unique ID for this managed resource.
- alarm
Content StringTemplate Id - 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) -> AlarmContentTemplatefunc 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.
- Alarm
Content stringTemplate Id - The ID of the alarm content template.
- Alarm
Content stringTemplate Name - The name of the alarm content template.
- Ding
Talks List<AlarmContent Template Ding Talk> - The ding_talk content of the alarm content template.
- Emails
List<Alarm
Content Template Email> - The email content of the alarm content template.
- Larks
List<Alarm
Content Template Lark> - The lark content of the alarm content template.
- Need
Valid boolContent - Whether to validate the content template.
- Sms
List<Alarm
Content Template Sm> - The sms content of the alarm content template.
- Vms
List<Alarm
Content Template Vm> - The vms content of the alarm content template.
- Webhooks
List<Alarm
Content Template Webhook> - The webhook content of the alarm content template.
- Wechats
List<Alarm
Content Template Wechat> - The wechat content of the alarm content template.
- Alarm
Content stringTemplate Id - The ID of the alarm content template.
- Alarm
Content stringTemplate Name - The name of the alarm content template.
- Ding
Talks []AlarmContent Template Ding Talk Args - The ding_talk content of the alarm content template.
- Emails
[]Alarm
Content Template Email Args - The email content of the alarm content template.
- Larks
[]Alarm
Content Template Lark Args - The lark content of the alarm content template.
- Need
Valid boolContent - Whether to validate the content template.
- Sms
[]Alarm
Content Template Sm Args - The sms content of the alarm content template.
- Vms
[]Alarm
Content Template Vm Args - The vms content of the alarm content template.
- Webhooks
[]Alarm
Content Template Webhook Args - The webhook content of the alarm content template.
- Wechats
[]Alarm
Content Template Wechat Args - The wechat content of the alarm content template.
- alarm
Content StringTemplate Id - The ID of the alarm content template.
- alarm
Content StringTemplate Name - The name of the alarm content template.
- ding
Talks List<AlarmContent Template Ding Talk> - The ding_talk content of the alarm content template.
- emails
List<Alarm
Content Template Email> - The email content of the alarm content template.
- larks
List<Alarm
Content Template Lark> - The lark content of the alarm content template.
- need
Valid BooleanContent - Whether to validate the content template.
- sms
List<Alarm
Content Template Sm> - The sms content of the alarm content template.
- vms
List<Alarm
Content Template Vm> - The vms content of the alarm content template.
- webhooks
List<Alarm
Content Template Webhook> - The webhook content of the alarm content template.
- wechats
List<Alarm
Content Template Wechat> - The wechat content of the alarm content template.
- alarm
Content stringTemplate Id - The ID of the alarm content template.
- alarm
Content stringTemplate Name - The name of the alarm content template.
- ding
Talks AlarmContent Template Ding Talk[] - The ding_talk content of the alarm content template.
- emails
Alarm
Content Template Email[] - The email content of the alarm content template.
- larks
Alarm
Content Template Lark[] - The lark content of the alarm content template.
- need
Valid booleanContent - Whether to validate the content template.
- sms
Alarm
Content Template Sm[] - The sms content of the alarm content template.
- vms
Alarm
Content Template Vm[] - The vms content of the alarm content template.
- webhooks
Alarm
Content Template Webhook[] - The webhook content of the alarm content template.
- wechats
Alarm
Content Template Wechat[] - The wechat content of the alarm content template.
- alarm_
content_ strtemplate_ id - The ID of the alarm content template.
- alarm_
content_ strtemplate_ name - The name of the alarm content template.
- ding_
talks Sequence[AlarmContent Template Ding Talk Args] - The ding_talk content of the alarm content template.
- emails
Sequence[Alarm
Content Template Email Args] - The email content of the alarm content template.
- larks
Sequence[Alarm
Content Template Lark Args] - The lark content of the alarm content template.
- need_
valid_ boolcontent - Whether to validate the content template.
- sms
Sequence[Alarm
Content Template Sm Args] - The sms content of the alarm content template.
- vms
Sequence[Alarm
Content Template Vm Args] - The vms content of the alarm content template.
- webhooks
Sequence[Alarm
Content Template Webhook Args] - The webhook content of the alarm content template.
- wechats
Sequence[Alarm
Content Template Wechat Args] - The wechat content of the alarm content template.
- alarm
Content StringTemplate Id - The ID of the alarm content template.
- alarm
Content StringTemplate Name - The name of the alarm content template.
- ding
Talks 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.
- need
Valid BooleanContent - 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
AlarmContentTemplateEmail, AlarmContentTemplateEmailArgs
AlarmContentTemplateLark, AlarmContentTemplateLarkArgs
AlarmContentTemplateSm, AlarmContentTemplateSmArgs
AlarmContentTemplateVm, AlarmContentTemplateVmArgs
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
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
volcengineTerraform Provider.
