volcengine.vmp.NotifyTemplate
Explore with Pulumi AI
Provides a resource to manage vmp notify template
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.vmp.NotifyTemplate("foo", {
active: {
content: "acc-test-active-template-content",
title: "acc-test-active-template-title",
},
channel: "WeComBotWebhook",
description: "acc-test-vmp",
resolved: {
content: "acc-test-resolved-template-content",
title: "acc-test-resolved-template-title",
},
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.vmp.NotifyTemplate("foo",
active=volcengine.vmp.NotifyTemplateActiveArgs(
content="acc-test-active-template-content",
title="acc-test-active-template-title",
),
channel="WeComBotWebhook",
description="acc-test-vmp",
resolved=volcengine.vmp.NotifyTemplateResolvedArgs(
content="acc-test-resolved-template-content",
title="acc-test-resolved-template-title",
))
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 {
_, err := vmp.NewNotifyTemplate(ctx, "foo", &vmp.NotifyTemplateArgs{
Active: &vmp.NotifyTemplateActiveArgs{
Content: pulumi.String("acc-test-active-template-content"),
Title: pulumi.String("acc-test-active-template-title"),
},
Channel: pulumi.String("WeComBotWebhook"),
Description: pulumi.String("acc-test-vmp"),
Resolved: &vmp.NotifyTemplateResolvedArgs{
Content: pulumi.String("acc-test-resolved-template-content"),
Title: pulumi.String("acc-test-resolved-template-title"),
},
})
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.Vmp.NotifyTemplate("foo", new()
{
Active = new Volcengine.Vmp.Inputs.NotifyTemplateActiveArgs
{
Content = "acc-test-active-template-content",
Title = "acc-test-active-template-title",
},
Channel = "WeComBotWebhook",
Description = "acc-test-vmp",
Resolved = new Volcengine.Vmp.Inputs.NotifyTemplateResolvedArgs
{
Content = "acc-test-resolved-template-content",
Title = "acc-test-resolved-template-title",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vmp.NotifyTemplate;
import com.pulumi.volcengine.vmp.NotifyTemplateArgs;
import com.pulumi.volcengine.vmp.inputs.NotifyTemplateActiveArgs;
import com.pulumi.volcengine.vmp.inputs.NotifyTemplateResolvedArgs;
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 NotifyTemplate("foo", NotifyTemplateArgs.builder()
.active(NotifyTemplateActiveArgs.builder()
.content("acc-test-active-template-content")
.title("acc-test-active-template-title")
.build())
.channel("WeComBotWebhook")
.description("acc-test-vmp")
.resolved(NotifyTemplateResolvedArgs.builder()
.content("acc-test-resolved-template-content")
.title("acc-test-resolved-template-title")
.build())
.build());
}
}
resources:
foo:
type: volcengine:vmp:NotifyTemplate
properties:
active:
content: acc-test-active-template-content
title: acc-test-active-template-title
channel: WeComBotWebhook
description: acc-test-vmp
resolved:
content: acc-test-resolved-template-content
title: acc-test-resolved-template-title
Create NotifyTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NotifyTemplate(name: string, args: NotifyTemplateArgs, opts?: CustomResourceOptions);
@overload
def NotifyTemplate(resource_name: str,
args: NotifyTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NotifyTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
active: Optional[NotifyTemplateActiveArgs] = None,
channel: Optional[str] = None,
resolved: Optional[NotifyTemplateResolvedArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewNotifyTemplate(ctx *Context, name string, args NotifyTemplateArgs, opts ...ResourceOption) (*NotifyTemplate, error)
public NotifyTemplate(string name, NotifyTemplateArgs args, CustomResourceOptions? opts = null)
public NotifyTemplate(String name, NotifyTemplateArgs args)
public NotifyTemplate(String name, NotifyTemplateArgs args, CustomResourceOptions options)
type: volcengine:vmp:NotifyTemplate
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 NotifyTemplateArgs
- 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 NotifyTemplateArgs
- 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 NotifyTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NotifyTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NotifyTemplateArgs
- 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 notifyTemplateResource = new Volcengine.Vmp.NotifyTemplate("notifyTemplateResource", new()
{
Active = new Volcengine.Vmp.Inputs.NotifyTemplateActiveArgs
{
Content = "string",
Title = "string",
},
Channel = "string",
Resolved = new Volcengine.Vmp.Inputs.NotifyTemplateResolvedArgs
{
Content = "string",
Title = "string",
},
Description = "string",
Name = "string",
});
example, err := vmp.NewNotifyTemplate(ctx, "notifyTemplateResource", &vmp.NotifyTemplateArgs{
Active: &vmp.NotifyTemplateActiveArgs{
Content: pulumi.String("string"),
Title: pulumi.String("string"),
},
Channel: pulumi.String("string"),
Resolved: &vmp.NotifyTemplateResolvedArgs{
Content: pulumi.String("string"),
Title: pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var notifyTemplateResource = new NotifyTemplate("notifyTemplateResource", NotifyTemplateArgs.builder()
.active(NotifyTemplateActiveArgs.builder()
.content("string")
.title("string")
.build())
.channel("string")
.resolved(NotifyTemplateResolvedArgs.builder()
.content("string")
.title("string")
.build())
.description("string")
.name("string")
.build());
notify_template_resource = volcengine.vmp.NotifyTemplate("notifyTemplateResource",
active={
"content": "string",
"title": "string",
},
channel="string",
resolved={
"content": "string",
"title": "string",
},
description="string",
name="string")
const notifyTemplateResource = new volcengine.vmp.NotifyTemplate("notifyTemplateResource", {
active: {
content: "string",
title: "string",
},
channel: "string",
resolved: {
content: "string",
title: "string",
},
description: "string",
name: "string",
});
type: volcengine:vmp:NotifyTemplate
properties:
active:
content: string
title: string
channel: string
description: string
name: string
resolved:
content: string
title: string
NotifyTemplate 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 NotifyTemplate resource accepts the following input properties:
- Active
Notify
Template Active - The active notify template info.
- Channel string
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - Resolved
Notify
Template Resolved - The resolved notify template info.
- Description string
- The description of notify template.
- Name string
- The name of notify template.
- Active
Notify
Template Active Args - The active notify template info.
- Channel string
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - Resolved
Notify
Template Resolved Args - The resolved notify template info.
- Description string
- The description of notify template.
- Name string
- The name of notify template.
- active
Notify
Template Active - The active notify template info.
- channel String
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - resolved
Notify
Template Resolved - The resolved notify template info.
- description String
- The description of notify template.
- name String
- The name of notify template.
- active
Notify
Template Active - The active notify template info.
- channel string
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - resolved
Notify
Template Resolved - The resolved notify template info.
- description string
- The description of notify template.
- name string
- The name of notify template.
- active
Notify
Template Active Args - The active notify template info.
- channel str
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - resolved
Notify
Template Resolved Args - The resolved notify template info.
- description str
- The description of notify template.
- name str
- The name of notify template.
- active Property Map
- The active notify template info.
- channel String
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - resolved Property Map
- The resolved notify template info.
- description String
- The description of notify template.
- name String
- The name of notify template.
Outputs
All input properties are implicitly available as output properties. Additionally, the NotifyTemplate resource produces the following output properties:
- Create
Time string - The create time of notify template.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The update time of notify template.
- Create
Time string - The create time of notify template.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The update time of notify template.
- create
Time String - The create time of notify template.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - The update time of notify template.
- create
Time string - The create time of notify template.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - The update time of notify template.
- create_
time str - The create time of notify template.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - The update time of notify template.
- create
Time String - The create time of notify template.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - The update time of notify template.
Look up Existing NotifyTemplate Resource
Get an existing NotifyTemplate 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?: NotifyTemplateState, opts?: CustomResourceOptions): NotifyTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active: Optional[NotifyTemplateActiveArgs] = None,
channel: Optional[str] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
resolved: Optional[NotifyTemplateResolvedArgs] = None,
update_time: Optional[str] = None) -> NotifyTemplate
func GetNotifyTemplate(ctx *Context, name string, id IDInput, state *NotifyTemplateState, opts ...ResourceOption) (*NotifyTemplate, error)
public static NotifyTemplate Get(string name, Input<string> id, NotifyTemplateState? state, CustomResourceOptions? opts = null)
public static NotifyTemplate get(String name, Output<String> id, NotifyTemplateState state, CustomResourceOptions options)
resources: _: type: volcengine:vmp:NotifyTemplate 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.
- Active
Notify
Template Active - The active notify template info.
- Channel string
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - Create
Time string - The create time of notify template.
- Description string
- The description of notify template.
- Name string
- The name of notify template.
- Resolved
Notify
Template Resolved - The resolved notify template info.
- Update
Time string - The update time of notify template.
- Active
Notify
Template Active Args - The active notify template info.
- Channel string
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - Create
Time string - The create time of notify template.
- Description string
- The description of notify template.
- Name string
- The name of notify template.
- Resolved
Notify
Template Resolved Args - The resolved notify template info.
- Update
Time string - The update time of notify template.
- active
Notify
Template Active - The active notify template info.
- channel String
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - create
Time String - The create time of notify template.
- description String
- The description of notify template.
- name String
- The name of notify template.
- resolved
Notify
Template Resolved - The resolved notify template info.
- update
Time String - The update time of notify template.
- active
Notify
Template Active - The active notify template info.
- channel string
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - create
Time string - The create time of notify template.
- description string
- The description of notify template.
- name string
- The name of notify template.
- resolved
Notify
Template Resolved - The resolved notify template info.
- update
Time string - The update time of notify template.
- active
Notify
Template Active Args - The active notify template info.
- channel str
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - create_
time str - The create time of notify template.
- description str
- The description of notify template.
- name str
- The name of notify template.
- resolved
Notify
Template Resolved Args - The resolved notify template info.
- update_
time str - The update time of notify template.
- active Property Map
- The active notify template info.
- channel String
- The channel of notify template. Valid values:
LarkBotWebhook
,DingTalkBotWebhook
,WeComBotWebhook
. - create
Time String - The create time of notify template.
- description String
- The description of notify template.
- name String
- The name of notify template.
- resolved Property Map
- The resolved notify template info.
- update
Time String - The update time of notify template.
Supporting Types
NotifyTemplateActive, NotifyTemplateActiveArgs
NotifyTemplateResolved, NotifyTemplateResolvedArgs
Import
VmpNotifyTemplate can be imported using the id, e.g.
$ pulumi import volcengine:vmp/notifyTemplate:NotifyTemplate default resource_id
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.