Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as edgecenter from "@pulumi/edgecenter";
const telegramAlerts = new edgecenter.RmonChannel("telegram_alerts", {
receiver: "telegram",
token: "123456:example-telegram-bot-token",
channelName: "rmon-alerts",
});
import pulumi
import pulumi_edgecenter as edgecenter
telegram_alerts = edgecenter.RmonChannel("telegram_alerts",
receiver="telegram",
token="123456:example-telegram-bot-token",
channel_name="rmon-alerts")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := edgecenter.NewRmonChannel(ctx, "telegram_alerts", &edgecenter.RmonChannelArgs{
Receiver: pulumi.String("telegram"),
Token: pulumi.String("123456:example-telegram-bot-token"),
ChannelName: pulumi.String("rmon-alerts"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Edgecenter = Pulumi.Edgecenter;
return await Deployment.RunAsync(() =>
{
var telegramAlerts = new Edgecenter.RmonChannel("telegram_alerts", new()
{
Receiver = "telegram",
Token = "123456:example-telegram-bot-token",
ChannelName = "rmon-alerts",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.edgecenter.RmonChannel;
import com.pulumi.edgecenter.RmonChannelArgs;
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 telegramAlerts = new RmonChannel("telegramAlerts", RmonChannelArgs.builder()
.receiver("telegram")
.token("123456:example-telegram-bot-token")
.channelName("rmon-alerts")
.build());
}
}
resources:
telegramAlerts:
type: edgecenter:RmonChannel
name: telegram_alerts
properties:
receiver: telegram
token: 123456:example-telegram-bot-token
channelName: rmon-alerts
Create RmonChannel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RmonChannel(name: string, args: RmonChannelArgs, opts?: CustomResourceOptions);@overload
def RmonChannel(resource_name: str,
args: RmonChannelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RmonChannel(resource_name: str,
opts: Optional[ResourceOptions] = None,
channel_name: Optional[str] = None,
receiver: Optional[str] = None,
token: Optional[str] = None,
rmon_channel_id: Optional[str] = None)func NewRmonChannel(ctx *Context, name string, args RmonChannelArgs, opts ...ResourceOption) (*RmonChannel, error)public RmonChannel(string name, RmonChannelArgs args, CustomResourceOptions? opts = null)
public RmonChannel(String name, RmonChannelArgs args)
public RmonChannel(String name, RmonChannelArgs args, CustomResourceOptions options)
type: edgecenter:RmonChannel
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 RmonChannelArgs
- 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 RmonChannelArgs
- 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 RmonChannelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RmonChannelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RmonChannelArgs
- 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 rmonChannelResource = new Edgecenter.RmonChannel("rmonChannelResource", new()
{
ChannelName = "string",
Receiver = "string",
Token = "string",
RmonChannelId = "string",
});
example, err := edgecenter.NewRmonChannel(ctx, "rmonChannelResource", &edgecenter.RmonChannelArgs{
ChannelName: pulumi.String("string"),
Receiver: pulumi.String("string"),
Token: pulumi.String("string"),
RmonChannelId: pulumi.String("string"),
})
var rmonChannelResource = new RmonChannel("rmonChannelResource", RmonChannelArgs.builder()
.channelName("string")
.receiver("string")
.token("string")
.rmonChannelId("string")
.build());
rmon_channel_resource = edgecenter.RmonChannel("rmonChannelResource",
channel_name="string",
receiver="string",
token="string",
rmon_channel_id="string")
const rmonChannelResource = new edgecenter.RmonChannel("rmonChannelResource", {
channelName: "string",
receiver: "string",
token: "string",
rmonChannelId: "string",
});
type: edgecenter:RmonChannel
properties:
channelName: string
receiver: string
rmonChannelId: string
token: string
RmonChannel 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 RmonChannel resource accepts the following input properties:
- Channel
Name string - The channel identifier.
- Receiver string
- Receiver type used in API path. Only 'telegram', 'slack', 'pd', 'mm', 'email' are allowed.
- Token string
- The token used for the channel.
- Rmon
Channel stringId - The ID of this resource.
- Channel
Name string - The channel identifier.
- Receiver string
- Receiver type used in API path. Only 'telegram', 'slack', 'pd', 'mm', 'email' are allowed.
- Token string
- The token used for the channel.
- Rmon
Channel stringId - The ID of this resource.
- channel
Name String - The channel identifier.
- receiver String
- Receiver type used in API path. Only 'telegram', 'slack', 'pd', 'mm', 'email' are allowed.
- token String
- The token used for the channel.
- rmon
Channel StringId - The ID of this resource.
- channel
Name string - The channel identifier.
- receiver string
- Receiver type used in API path. Only 'telegram', 'slack', 'pd', 'mm', 'email' are allowed.
- token string
- The token used for the channel.
- rmon
Channel stringId - The ID of this resource.
- channel_
name str - The channel identifier.
- receiver str
- Receiver type used in API path. Only 'telegram', 'slack', 'pd', 'mm', 'email' are allowed.
- token str
- The token used for the channel.
- rmon_
channel_ strid - The ID of this resource.
- channel
Name String - The channel identifier.
- receiver String
- Receiver type used in API path. Only 'telegram', 'slack', 'pd', 'mm', 'email' are allowed.
- token String
- The token used for the channel.
- rmon
Channel StringId - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the RmonChannel 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 RmonChannel Resource
Get an existing RmonChannel 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?: RmonChannelState, opts?: CustomResourceOptions): RmonChannel@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
channel_name: Optional[str] = None,
receiver: Optional[str] = None,
rmon_channel_id: Optional[str] = None,
token: Optional[str] = None) -> RmonChannelfunc GetRmonChannel(ctx *Context, name string, id IDInput, state *RmonChannelState, opts ...ResourceOption) (*RmonChannel, error)public static RmonChannel Get(string name, Input<string> id, RmonChannelState? state, CustomResourceOptions? opts = null)public static RmonChannel get(String name, Output<String> id, RmonChannelState state, CustomResourceOptions options)resources: _: type: edgecenter:RmonChannel 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
Name string - The channel identifier.
- Receiver string
- Receiver type used in API path. Only 'telegram', 'slack', 'pd', 'mm', 'email' are allowed.
- Rmon
Channel stringId - The ID of this resource.
- Token string
- The token used for the channel.
- Channel
Name string - The channel identifier.
- Receiver string
- Receiver type used in API path. Only 'telegram', 'slack', 'pd', 'mm', 'email' are allowed.
- Rmon
Channel stringId - The ID of this resource.
- Token string
- The token used for the channel.
- channel
Name String - The channel identifier.
- receiver String
- Receiver type used in API path. Only 'telegram', 'slack', 'pd', 'mm', 'email' are allowed.
- rmon
Channel StringId - The ID of this resource.
- token String
- The token used for the channel.
- channel
Name string - The channel identifier.
- receiver string
- Receiver type used in API path. Only 'telegram', 'slack', 'pd', 'mm', 'email' are allowed.
- rmon
Channel stringId - The ID of this resource.
- token string
- The token used for the channel.
- channel_
name str - The channel identifier.
- receiver str
- Receiver type used in API path. Only 'telegram', 'slack', 'pd', 'mm', 'email' are allowed.
- rmon_
channel_ strid - The ID of this resource.
- token str
- The token used for the channel.
- channel
Name String - The channel identifier.
- receiver String
- Receiver type used in API path. Only 'telegram', 'slack', 'pd', 'mm', 'email' are allowed.
- rmon
Channel StringId - The ID of this resource.
- token String
- The token used for the channel.
Package Details
- Repository
- edgecenter edge-center/terraform-provider-edgecenter
- License
- Notes
- This Pulumi package is based on the
edgecenterTerraform Provider.
