volcengine.vmp.NotifyPolicy
Explore with Pulumi AI
Provides a resource to manage vmp notify policy
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const fooContact = new volcengine.vmp.Contact("fooContact", {
email: "acctest1@tftest.com",
webhook: {
address: "https://www.acctest1.com",
},
larkBotWebhook: {
address: "https://www.acctest1.com",
},
dingTalkBotWebhook: {
address: "https://www.dingacctest1.com",
atMobiles: ["18046891812"],
},
phoneNumber: {
countryCode: "+86",
number: "18310101010",
},
});
const foo1Contact = new volcengine.vmp.Contact("foo1Contact", {
email: "acctest2@tftest.com",
webhook: {
address: "https://www.acctest2.com",
},
larkBotWebhook: {
address: "https://www.acctest2.com",
},
dingTalkBotWebhook: {
address: "https://www.dingacctest2.com",
atMobiles: ["18046891813"],
},
phoneNumber: {
countryCode: "+86",
number: "18310101011",
},
});
const fooContactGroup = new volcengine.vmp.ContactGroup("fooContactGroup", {contactIds: [fooContact.id]});
const foo1ContactGroup = new volcengine.vmp.ContactGroup("foo1ContactGroup", {contactIds: [foo1Contact.id]});
const fooNotifyPolicy = new volcengine.vmp.NotifyPolicy("fooNotifyPolicy", {
description: "acc-test-1",
levels: [
{
level: "P1",
contactGroupIds: [fooContactGroup.id],
channels: [
"Email",
"Webhook",
],
},
{
level: "P0",
contactGroupIds: [foo1ContactGroup.id],
channels: ["LarkBotWebhook"],
},
],
});
import pulumi
import pulumi_volcengine as volcengine
foo_contact = volcengine.vmp.Contact("fooContact",
email="acctest1@tftest.com",
webhook=volcengine.vmp.ContactWebhookArgs(
address="https://www.acctest1.com",
),
lark_bot_webhook=volcengine.vmp.ContactLarkBotWebhookArgs(
address="https://www.acctest1.com",
),
ding_talk_bot_webhook=volcengine.vmp.ContactDingTalkBotWebhookArgs(
address="https://www.dingacctest1.com",
at_mobiles=["18046891812"],
),
phone_number=volcengine.vmp.ContactPhoneNumberArgs(
country_code="+86",
number="18310101010",
))
foo1_contact = volcengine.vmp.Contact("foo1Contact",
email="acctest2@tftest.com",
webhook=volcengine.vmp.ContactWebhookArgs(
address="https://www.acctest2.com",
),
lark_bot_webhook=volcengine.vmp.ContactLarkBotWebhookArgs(
address="https://www.acctest2.com",
),
ding_talk_bot_webhook=volcengine.vmp.ContactDingTalkBotWebhookArgs(
address="https://www.dingacctest2.com",
at_mobiles=["18046891813"],
),
phone_number=volcengine.vmp.ContactPhoneNumberArgs(
country_code="+86",
number="18310101011",
))
foo_contact_group = volcengine.vmp.ContactGroup("fooContactGroup", contact_ids=[foo_contact.id])
foo1_contact_group = volcengine.vmp.ContactGroup("foo1ContactGroup", contact_ids=[foo1_contact.id])
foo_notify_policy = volcengine.vmp.NotifyPolicy("fooNotifyPolicy",
description="acc-test-1",
levels=[
volcengine.vmp.NotifyPolicyLevelArgs(
level="P1",
contact_group_ids=[foo_contact_group.id],
channels=[
"Email",
"Webhook",
],
),
volcengine.vmp.NotifyPolicyLevelArgs(
level="P0",
contact_group_ids=[foo1_contact_group.id],
channels=["LarkBotWebhook"],
),
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vmp"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooContact, err := vmp.NewContact(ctx, "fooContact", &vmp.ContactArgs{
Email: pulumi.String("acctest1@tftest.com"),
Webhook: &vmp.ContactWebhookArgs{
Address: pulumi.String("https://www.acctest1.com"),
},
LarkBotWebhook: &vmp.ContactLarkBotWebhookArgs{
Address: pulumi.String("https://www.acctest1.com"),
},
DingTalkBotWebhook: &vmp.ContactDingTalkBotWebhookArgs{
Address: pulumi.String("https://www.dingacctest1.com"),
AtMobiles: pulumi.StringArray{
pulumi.String("18046891812"),
},
},
PhoneNumber: &vmp.ContactPhoneNumberArgs{
CountryCode: pulumi.String("+86"),
Number: pulumi.String("18310101010"),
},
})
if err != nil {
return err
}
foo1Contact, err := vmp.NewContact(ctx, "foo1Contact", &vmp.ContactArgs{
Email: pulumi.String("acctest2@tftest.com"),
Webhook: &vmp.ContactWebhookArgs{
Address: pulumi.String("https://www.acctest2.com"),
},
LarkBotWebhook: &vmp.ContactLarkBotWebhookArgs{
Address: pulumi.String("https://www.acctest2.com"),
},
DingTalkBotWebhook: &vmp.ContactDingTalkBotWebhookArgs{
Address: pulumi.String("https://www.dingacctest2.com"),
AtMobiles: pulumi.StringArray{
pulumi.String("18046891813"),
},
},
PhoneNumber: &vmp.ContactPhoneNumberArgs{
CountryCode: pulumi.String("+86"),
Number: pulumi.String("18310101011"),
},
})
if err != nil {
return err
}
fooContactGroup, err := vmp.NewContactGroup(ctx, "fooContactGroup", &vmp.ContactGroupArgs{
ContactIds: pulumi.StringArray{
fooContact.ID(),
},
})
if err != nil {
return err
}
foo1ContactGroup, err := vmp.NewContactGroup(ctx, "foo1ContactGroup", &vmp.ContactGroupArgs{
ContactIds: pulumi.StringArray{
foo1Contact.ID(),
},
})
if err != nil {
return err
}
_, err = vmp.NewNotifyPolicy(ctx, "fooNotifyPolicy", &vmp.NotifyPolicyArgs{
Description: pulumi.String("acc-test-1"),
Levels: vmp.NotifyPolicyLevelArray{
&vmp.NotifyPolicyLevelArgs{
Level: pulumi.String("P1"),
ContactGroupIds: pulumi.StringArray{
fooContactGroup.ID(),
},
Channels: pulumi.StringArray{
pulumi.String("Email"),
pulumi.String("Webhook"),
},
},
&vmp.NotifyPolicyLevelArgs{
Level: pulumi.String("P0"),
ContactGroupIds: pulumi.StringArray{
foo1ContactGroup.ID(),
},
Channels: pulumi.StringArray{
pulumi.String("LarkBotWebhook"),
},
},
},
})
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 fooContact = new Volcengine.Vmp.Contact("fooContact", new()
{
Email = "acctest1@tftest.com",
Webhook = new Volcengine.Vmp.Inputs.ContactWebhookArgs
{
Address = "https://www.acctest1.com",
},
LarkBotWebhook = new Volcengine.Vmp.Inputs.ContactLarkBotWebhookArgs
{
Address = "https://www.acctest1.com",
},
DingTalkBotWebhook = new Volcengine.Vmp.Inputs.ContactDingTalkBotWebhookArgs
{
Address = "https://www.dingacctest1.com",
AtMobiles = new[]
{
"18046891812",
},
},
PhoneNumber = new Volcengine.Vmp.Inputs.ContactPhoneNumberArgs
{
CountryCode = "+86",
Number = "18310101010",
},
});
var foo1Contact = new Volcengine.Vmp.Contact("foo1Contact", new()
{
Email = "acctest2@tftest.com",
Webhook = new Volcengine.Vmp.Inputs.ContactWebhookArgs
{
Address = "https://www.acctest2.com",
},
LarkBotWebhook = new Volcengine.Vmp.Inputs.ContactLarkBotWebhookArgs
{
Address = "https://www.acctest2.com",
},
DingTalkBotWebhook = new Volcengine.Vmp.Inputs.ContactDingTalkBotWebhookArgs
{
Address = "https://www.dingacctest2.com",
AtMobiles = new[]
{
"18046891813",
},
},
PhoneNumber = new Volcengine.Vmp.Inputs.ContactPhoneNumberArgs
{
CountryCode = "+86",
Number = "18310101011",
},
});
var fooContactGroup = new Volcengine.Vmp.ContactGroup("fooContactGroup", new()
{
ContactIds = new[]
{
fooContact.Id,
},
});
var foo1ContactGroup = new Volcengine.Vmp.ContactGroup("foo1ContactGroup", new()
{
ContactIds = new[]
{
foo1Contact.Id,
},
});
var fooNotifyPolicy = new Volcengine.Vmp.NotifyPolicy("fooNotifyPolicy", new()
{
Description = "acc-test-1",
Levels = new[]
{
new Volcengine.Vmp.Inputs.NotifyPolicyLevelArgs
{
Level = "P1",
ContactGroupIds = new[]
{
fooContactGroup.Id,
},
Channels = new[]
{
"Email",
"Webhook",
},
},
new Volcengine.Vmp.Inputs.NotifyPolicyLevelArgs
{
Level = "P0",
ContactGroupIds = new[]
{
foo1ContactGroup.Id,
},
Channels = new[]
{
"LarkBotWebhook",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vmp.Contact;
import com.pulumi.volcengine.vmp.ContactArgs;
import com.pulumi.volcengine.vmp.inputs.ContactWebhookArgs;
import com.pulumi.volcengine.vmp.inputs.ContactLarkBotWebhookArgs;
import com.pulumi.volcengine.vmp.inputs.ContactDingTalkBotWebhookArgs;
import com.pulumi.volcengine.vmp.inputs.ContactPhoneNumberArgs;
import com.pulumi.volcengine.vmp.ContactGroup;
import com.pulumi.volcengine.vmp.ContactGroupArgs;
import com.pulumi.volcengine.vmp.NotifyPolicy;
import com.pulumi.volcengine.vmp.NotifyPolicyArgs;
import com.pulumi.volcengine.vmp.inputs.NotifyPolicyLevelArgs;
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 fooContact = new Contact("fooContact", ContactArgs.builder()
.email("acctest1@tftest.com")
.webhook(ContactWebhookArgs.builder()
.address("https://www.acctest1.com")
.build())
.larkBotWebhook(ContactLarkBotWebhookArgs.builder()
.address("https://www.acctest1.com")
.build())
.dingTalkBotWebhook(ContactDingTalkBotWebhookArgs.builder()
.address("https://www.dingacctest1.com")
.atMobiles("18046891812")
.build())
.phoneNumber(ContactPhoneNumberArgs.builder()
.countryCode("+86")
.number("18310101010")
.build())
.build());
var foo1Contact = new Contact("foo1Contact", ContactArgs.builder()
.email("acctest2@tftest.com")
.webhook(ContactWebhookArgs.builder()
.address("https://www.acctest2.com")
.build())
.larkBotWebhook(ContactLarkBotWebhookArgs.builder()
.address("https://www.acctest2.com")
.build())
.dingTalkBotWebhook(ContactDingTalkBotWebhookArgs.builder()
.address("https://www.dingacctest2.com")
.atMobiles("18046891813")
.build())
.phoneNumber(ContactPhoneNumberArgs.builder()
.countryCode("+86")
.number("18310101011")
.build())
.build());
var fooContactGroup = new ContactGroup("fooContactGroup", ContactGroupArgs.builder()
.contactIds(fooContact.id())
.build());
var foo1ContactGroup = new ContactGroup("foo1ContactGroup", ContactGroupArgs.builder()
.contactIds(foo1Contact.id())
.build());
var fooNotifyPolicy = new NotifyPolicy("fooNotifyPolicy", NotifyPolicyArgs.builder()
.description("acc-test-1")
.levels(
NotifyPolicyLevelArgs.builder()
.level("P1")
.contactGroupIds(fooContactGroup.id())
.channels(
"Email",
"Webhook")
.build(),
NotifyPolicyLevelArgs.builder()
.level("P0")
.contactGroupIds(foo1ContactGroup.id())
.channels("LarkBotWebhook")
.build())
.build());
}
}
resources:
fooContact:
type: volcengine:vmp:Contact
properties:
email: acctest1@tftest.com
webhook:
address: https://www.acctest1.com
larkBotWebhook:
address: https://www.acctest1.com
dingTalkBotWebhook:
address: https://www.dingacctest1.com
atMobiles:
- '18046891812'
phoneNumber:
countryCode: '+86'
number: '18310101010'
foo1Contact:
type: volcengine:vmp:Contact
properties:
email: acctest2@tftest.com
webhook:
address: https://www.acctest2.com
larkBotWebhook:
address: https://www.acctest2.com
dingTalkBotWebhook:
address: https://www.dingacctest2.com
atMobiles:
- '18046891813'
phoneNumber:
countryCode: '+86'
number: '18310101011'
fooContactGroup:
type: volcengine:vmp:ContactGroup
properties:
contactIds:
- ${fooContact.id}
foo1ContactGroup:
type: volcengine:vmp:ContactGroup
properties:
contactIds:
- ${foo1Contact.id}
fooNotifyPolicy:
type: volcengine:vmp:NotifyPolicy
properties:
description: acc-test-1
levels:
- level: P1
contactGroupIds:
- ${fooContactGroup.id}
channels:
- Email
- Webhook
- level: P0
contactGroupIds:
- ${foo1ContactGroup.id}
channels:
- LarkBotWebhook
Create NotifyPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NotifyPolicy(name: string, args: NotifyPolicyArgs, opts?: CustomResourceOptions);
@overload
def NotifyPolicy(resource_name: str,
args: NotifyPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NotifyPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
levels: Optional[Sequence[NotifyPolicyLevelArgs]] = None,
channel_notify_template_ids: Optional[Sequence[str]] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewNotifyPolicy(ctx *Context, name string, args NotifyPolicyArgs, opts ...ResourceOption) (*NotifyPolicy, error)
public NotifyPolicy(string name, NotifyPolicyArgs args, CustomResourceOptions? opts = null)
public NotifyPolicy(String name, NotifyPolicyArgs args)
public NotifyPolicy(String name, NotifyPolicyArgs args, CustomResourceOptions options)
type: volcengine:vmp:NotifyPolicy
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 NotifyPolicyArgs
- 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 NotifyPolicyArgs
- 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 NotifyPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NotifyPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NotifyPolicyArgs
- 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 notifyPolicyResource = new Volcengine.Vmp.NotifyPolicy("notifyPolicyResource", new()
{
Levels = new[]
{
new Volcengine.Vmp.Inputs.NotifyPolicyLevelArgs
{
Channels = new[]
{
"string",
},
ContactGroupIds = new[]
{
"string",
},
Level = "string",
ResolvedChannels = new[]
{
"string",
},
},
},
ChannelNotifyTemplateIds = new[]
{
"string",
},
Description = "string",
Name = "string",
});
example, err := vmp.NewNotifyPolicy(ctx, "notifyPolicyResource", &vmp.NotifyPolicyArgs{
Levels: vmp.NotifyPolicyLevelArray{
&vmp.NotifyPolicyLevelArgs{
Channels: pulumi.StringArray{
pulumi.String("string"),
},
ContactGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
Level: pulumi.String("string"),
ResolvedChannels: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ChannelNotifyTemplateIds: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var notifyPolicyResource = new NotifyPolicy("notifyPolicyResource", NotifyPolicyArgs.builder()
.levels(NotifyPolicyLevelArgs.builder()
.channels("string")
.contactGroupIds("string")
.level("string")
.resolvedChannels("string")
.build())
.channelNotifyTemplateIds("string")
.description("string")
.name("string")
.build());
notify_policy_resource = volcengine.vmp.NotifyPolicy("notifyPolicyResource",
levels=[{
"channels": ["string"],
"contact_group_ids": ["string"],
"level": "string",
"resolved_channels": ["string"],
}],
channel_notify_template_ids=["string"],
description="string",
name="string")
const notifyPolicyResource = new volcengine.vmp.NotifyPolicy("notifyPolicyResource", {
levels: [{
channels: ["string"],
contactGroupIds: ["string"],
level: "string",
resolvedChannels: ["string"],
}],
channelNotifyTemplateIds: ["string"],
description: "string",
name: "string",
});
type: volcengine:vmp:NotifyPolicy
properties:
channelNotifyTemplateIds:
- string
description: string
levels:
- channels:
- string
contactGroupIds:
- string
level: string
resolvedChannels:
- string
name: string
NotifyPolicy 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 NotifyPolicy resource accepts the following input properties:
- Levels
List<Notify
Policy Level> - The levels of the notify policy.
- Channel
Notify List<string>Template Ids - The channel notify template for the alarm notification policy.
- Description string
- The description of the notify policy.
- Name string
- The name of the notify policy.
- Levels
[]Notify
Policy Level Args - The levels of the notify policy.
- Channel
Notify []stringTemplate Ids - The channel notify template for the alarm notification policy.
- Description string
- The description of the notify policy.
- Name string
- The name of the notify policy.
- levels
List<Notify
Policy Level> - The levels of the notify policy.
- channel
Notify List<String>Template Ids - The channel notify template for the alarm notification policy.
- description String
- The description of the notify policy.
- name String
- The name of the notify policy.
- levels
Notify
Policy Level[] - The levels of the notify policy.
- channel
Notify string[]Template Ids - The channel notify template for the alarm notification policy.
- description string
- The description of the notify policy.
- name string
- The name of the notify policy.
- levels
Sequence[Notify
Policy Level Args] - The levels of the notify policy.
- channel_
notify_ Sequence[str]template_ ids - The channel notify template for the alarm notification policy.
- description str
- The description of the notify policy.
- name str
- The name of the notify policy.
- levels List<Property Map>
- The levels of the notify policy.
- channel
Notify List<String>Template Ids - The channel notify template for the alarm notification policy.
- description String
- The description of the notify policy.
- name String
- The name of the notify policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the NotifyPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NotifyPolicy Resource
Get an existing NotifyPolicy 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?: NotifyPolicyState, opts?: CustomResourceOptions): NotifyPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
channel_notify_template_ids: Optional[Sequence[str]] = None,
description: Optional[str] = None,
levels: Optional[Sequence[NotifyPolicyLevelArgs]] = None,
name: Optional[str] = None) -> NotifyPolicy
func GetNotifyPolicy(ctx *Context, name string, id IDInput, state *NotifyPolicyState, opts ...ResourceOption) (*NotifyPolicy, error)
public static NotifyPolicy Get(string name, Input<string> id, NotifyPolicyState? state, CustomResourceOptions? opts = null)
public static NotifyPolicy get(String name, Output<String> id, NotifyPolicyState state, CustomResourceOptions options)
resources: _: type: volcengine:vmp:NotifyPolicy 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.
- Channel
Notify List<string>Template Ids - The channel notify template for the alarm notification policy.
- Description string
- The description of the notify policy.
- Levels
List<Notify
Policy Level> - The levels of the notify policy.
- Name string
- The name of the notify policy.
- Channel
Notify []stringTemplate Ids - The channel notify template for the alarm notification policy.
- Description string
- The description of the notify policy.
- Levels
[]Notify
Policy Level Args - The levels of the notify policy.
- Name string
- The name of the notify policy.
- channel
Notify List<String>Template Ids - The channel notify template for the alarm notification policy.
- description String
- The description of the notify policy.
- levels
List<Notify
Policy Level> - The levels of the notify policy.
- name String
- The name of the notify policy.
- channel
Notify string[]Template Ids - The channel notify template for the alarm notification policy.
- description string
- The description of the notify policy.
- levels
Notify
Policy Level[] - The levels of the notify policy.
- name string
- The name of the notify policy.
- channel_
notify_ Sequence[str]template_ ids - The channel notify template for the alarm notification policy.
- description str
- The description of the notify policy.
- levels
Sequence[Notify
Policy Level Args] - The levels of the notify policy.
- name str
- The name of the notify policy.
- channel
Notify List<String>Template Ids - The channel notify template for the alarm notification policy.
- description String
- The description of the notify policy.
- levels List<Property Map>
- The levels of the notify policy.
- name String
- The name of the notify policy.
Supporting Types
NotifyPolicyLevel, NotifyPolicyLevelArgs
- Channels List<string>
- The alarm notification method of the alarm notification policy, the optional value can be
Email
,Webhook
,LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - Contact
Group List<string>Ids - The contact group for the alarm notification policy.
- Level string
- The level of the policy, the value can be one of the following:
P0
,P1
,P2
. - Resolved
Channels List<string> - The resolved alarm notification method of the alarm notification policy, the optional value can be
Email
,Webhook
,LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
.
- Channels []string
- The alarm notification method of the alarm notification policy, the optional value can be
Email
,Webhook
,LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - Contact
Group []stringIds - The contact group for the alarm notification policy.
- Level string
- The level of the policy, the value can be one of the following:
P0
,P1
,P2
. - Resolved
Channels []string - The resolved alarm notification method of the alarm notification policy, the optional value can be
Email
,Webhook
,LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
.
- channels List<String>
- The alarm notification method of the alarm notification policy, the optional value can be
Email
,Webhook
,LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - contact
Group List<String>Ids - The contact group for the alarm notification policy.
- level String
- The level of the policy, the value can be one of the following:
P0
,P1
,P2
. - resolved
Channels List<String> - The resolved alarm notification method of the alarm notification policy, the optional value can be
Email
,Webhook
,LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
.
- channels string[]
- The alarm notification method of the alarm notification policy, the optional value can be
Email
,Webhook
,LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - contact
Group string[]Ids - The contact group for the alarm notification policy.
- level string
- The level of the policy, the value can be one of the following:
P0
,P1
,P2
. - resolved
Channels string[] - The resolved alarm notification method of the alarm notification policy, the optional value can be
Email
,Webhook
,LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
.
- channels Sequence[str]
- The alarm notification method of the alarm notification policy, the optional value can be
Email
,Webhook
,LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - contact_
group_ Sequence[str]ids - The contact group for the alarm notification policy.
- level str
- The level of the policy, the value can be one of the following:
P0
,P1
,P2
. - resolved_
channels Sequence[str] - The resolved alarm notification method of the alarm notification policy, the optional value can be
Email
,Webhook
,LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
.
- channels List<String>
- The alarm notification method of the alarm notification policy, the optional value can be
Email
,Webhook
,LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - contact
Group List<String>Ids - The contact group for the alarm notification policy.
- level String
- The level of the policy, the value can be one of the following:
P0
,P1
,P2
. - resolved
Channels List<String> - The resolved alarm notification method of the alarm notification policy, the optional value can be
Email
,Webhook
,LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
.
Import
VMP Notify Policy can be imported using the id, e.g.
$ pulumi import volcengine:vmp/notifyPolicy:NotifyPolicy default 60dde3ca-951c-4c05-8777-e5a7caa07ad6
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.