volcengine.tls.AlarmNotifyGroup
Explore with Pulumi AI
Provides a resource to manage tls alarm notify group
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Tls.AlarmNotifyGroup("foo", new()
{
AlarmNotifyGroupName = "tf-test",
IamProjectName = "yyy",
NotifyTypes = new[]
{
"Trigger",
},
Receivers = new[]
{
new Volcengine.Tls.Inputs.AlarmNotifyGroupReceiverArgs
{
EndTime = "23:59:59",
ReceiverChannels = new[]
{
"Email",
"Sms",
},
ReceiverNames = new[]
{
"vke-qs",
},
ReceiverType = "User",
StartTime = "23:00:00",
},
},
});
});
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.NewAlarmNotifyGroup(ctx, "foo", &tls.AlarmNotifyGroupArgs{
AlarmNotifyGroupName: pulumi.String("tf-test"),
IamProjectName: pulumi.String("yyy"),
NotifyTypes: pulumi.StringArray{
pulumi.String("Trigger"),
},
Receivers: tls.AlarmNotifyGroupReceiverArray{
&tls.AlarmNotifyGroupReceiverArgs{
EndTime: pulumi.String("23:59:59"),
ReceiverChannels: pulumi.StringArray{
pulumi.String("Email"),
pulumi.String("Sms"),
},
ReceiverNames: pulumi.StringArray{
pulumi.String("vke-qs"),
},
ReceiverType: pulumi.String("User"),
StartTime: pulumi.String("23:00:00"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.tls.AlarmNotifyGroup;
import com.pulumi.volcengine.tls.AlarmNotifyGroupArgs;
import com.pulumi.volcengine.tls.inputs.AlarmNotifyGroupReceiverArgs;
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 AlarmNotifyGroup("foo", AlarmNotifyGroupArgs.builder()
.alarmNotifyGroupName("tf-test")
.iamProjectName("yyy")
.notifyTypes("Trigger")
.receivers(AlarmNotifyGroupReceiverArgs.builder()
.endTime("23:59:59")
.receiverChannels(
"Email",
"Sms")
.receiverNames("vke-qs")
.receiverType("User")
.startTime("23:00:00")
.build())
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.tls.AlarmNotifyGroup("foo",
alarm_notify_group_name="tf-test",
iam_project_name="yyy",
notify_types=["Trigger"],
receivers=[volcengine.tls.AlarmNotifyGroupReceiverArgs(
end_time="23:59:59",
receiver_channels=[
"Email",
"Sms",
],
receiver_names=["vke-qs"],
receiver_type="User",
start_time="23:00:00",
)])
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.tls.AlarmNotifyGroup("foo", {
alarmNotifyGroupName: "tf-test",
iamProjectName: "yyy",
notifyTypes: ["Trigger"],
receivers: [{
endTime: "23:59:59",
receiverChannels: [
"Email",
"Sms",
],
receiverNames: ["vke-qs"],
receiverType: "User",
startTime: "23:00:00",
}],
});
resources:
foo:
type: volcengine:tls:AlarmNotifyGroup
properties:
alarmNotifyGroupName: tf-test
iamProjectName: yyy
notifyTypes:
- Trigger
receivers:
- endTime: 23:59:59
receiverChannels:
- Email
- Sms
receiverNames:
- vke-qs
receiverType: User
startTime: 23:00:00
Create AlarmNotifyGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlarmNotifyGroup(name: string, args: AlarmNotifyGroupArgs, opts?: CustomResourceOptions);
@overload
def AlarmNotifyGroup(resource_name: str,
args: AlarmNotifyGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AlarmNotifyGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
alarm_notify_group_name: Optional[str] = None,
notify_types: Optional[Sequence[str]] = None,
receivers: Optional[Sequence[AlarmNotifyGroupReceiverArgs]] = None,
iam_project_name: Optional[str] = None)
func NewAlarmNotifyGroup(ctx *Context, name string, args AlarmNotifyGroupArgs, opts ...ResourceOption) (*AlarmNotifyGroup, error)
public AlarmNotifyGroup(string name, AlarmNotifyGroupArgs args, CustomResourceOptions? opts = null)
public AlarmNotifyGroup(String name, AlarmNotifyGroupArgs args)
public AlarmNotifyGroup(String name, AlarmNotifyGroupArgs args, CustomResourceOptions options)
type: volcengine:tls:AlarmNotifyGroup
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 AlarmNotifyGroupArgs
- 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 AlarmNotifyGroupArgs
- 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 AlarmNotifyGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlarmNotifyGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlarmNotifyGroupArgs
- 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 alarmNotifyGroupResource = new Volcengine.Tls.AlarmNotifyGroup("alarmNotifyGroupResource", new()
{
AlarmNotifyGroupName = "string",
NotifyTypes = new[]
{
"string",
},
Receivers = new[]
{
new Volcengine.Tls.Inputs.AlarmNotifyGroupReceiverArgs
{
EndTime = "string",
ReceiverChannels = new[]
{
"string",
},
ReceiverNames = new[]
{
"string",
},
ReceiverType = "string",
StartTime = "string",
},
},
IamProjectName = "string",
});
example, err := tls.NewAlarmNotifyGroup(ctx, "alarmNotifyGroupResource", &tls.AlarmNotifyGroupArgs{
AlarmNotifyGroupName: pulumi.String("string"),
NotifyTypes: pulumi.StringArray{
pulumi.String("string"),
},
Receivers: tls.AlarmNotifyGroupReceiverArray{
&tls.AlarmNotifyGroupReceiverArgs{
EndTime: pulumi.String("string"),
ReceiverChannels: pulumi.StringArray{
pulumi.String("string"),
},
ReceiverNames: pulumi.StringArray{
pulumi.String("string"),
},
ReceiverType: pulumi.String("string"),
StartTime: pulumi.String("string"),
},
},
IamProjectName: pulumi.String("string"),
})
var alarmNotifyGroupResource = new AlarmNotifyGroup("alarmNotifyGroupResource", AlarmNotifyGroupArgs.builder()
.alarmNotifyGroupName("string")
.notifyTypes("string")
.receivers(AlarmNotifyGroupReceiverArgs.builder()
.endTime("string")
.receiverChannels("string")
.receiverNames("string")
.receiverType("string")
.startTime("string")
.build())
.iamProjectName("string")
.build());
alarm_notify_group_resource = volcengine.tls.AlarmNotifyGroup("alarmNotifyGroupResource",
alarm_notify_group_name="string",
notify_types=["string"],
receivers=[{
"end_time": "string",
"receiver_channels": ["string"],
"receiver_names": ["string"],
"receiver_type": "string",
"start_time": "string",
}],
iam_project_name="string")
const alarmNotifyGroupResource = new volcengine.tls.AlarmNotifyGroup("alarmNotifyGroupResource", {
alarmNotifyGroupName: "string",
notifyTypes: ["string"],
receivers: [{
endTime: "string",
receiverChannels: ["string"],
receiverNames: ["string"],
receiverType: "string",
startTime: "string",
}],
iamProjectName: "string",
});
type: volcengine:tls:AlarmNotifyGroup
properties:
alarmNotifyGroupName: string
iamProjectName: string
notifyTypes:
- string
receivers:
- endTime: string
receiverChannels:
- string
receiverNames:
- string
receiverType: string
startTime: string
AlarmNotifyGroup 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 AlarmNotifyGroup resource accepts the following input properties:
- Alarm
Notify stringGroup Name - The name of the notify group.
- Notify
Types List<string> - The notify type. Trigger: Alarm Trigger Recovery: Alarm Recovery.
- Receivers
List<Alarm
Notify Group Receiver> - List of IAM users to receive alerts.
- Iam
Project stringName - The name of the iam project.
- Alarm
Notify stringGroup Name - The name of the notify group.
- Notify
Types []string - The notify type. Trigger: Alarm Trigger Recovery: Alarm Recovery.
- Receivers
[]Alarm
Notify Group Receiver Args - List of IAM users to receive alerts.
- Iam
Project stringName - The name of the iam project.
- alarm
Notify StringGroup Name - The name of the notify group.
- notify
Types List<String> - The notify type. Trigger: Alarm Trigger Recovery: Alarm Recovery.
- receivers
List<Alarm
Notify Group Receiver> - List of IAM users to receive alerts.
- iam
Project StringName - The name of the iam project.
- alarm
Notify stringGroup Name - The name of the notify group.
- notify
Types string[] - The notify type. Trigger: Alarm Trigger Recovery: Alarm Recovery.
- receivers
Alarm
Notify Group Receiver[] - List of IAM users to receive alerts.
- iam
Project stringName - The name of the iam project.
- alarm_
notify_ strgroup_ name - The name of the notify group.
- notify_
types Sequence[str] - The notify type. Trigger: Alarm Trigger Recovery: Alarm Recovery.
- receivers
Sequence[Alarm
Notify Group Receiver Args] - List of IAM users to receive alerts.
- iam_
project_ strname - The name of the iam project.
- alarm
Notify StringGroup Name - The name of the notify group.
- notify
Types List<String> - The notify type. Trigger: Alarm Trigger Recovery: Alarm Recovery.
- receivers List<Property Map>
- List of IAM users to receive alerts.
- iam
Project StringName - The name of the iam project.
Outputs
All input properties are implicitly available as output properties. Additionally, the AlarmNotifyGroup resource produces the following output properties:
- Alarm
Notify stringGroup Id - The alarm notification group id.
- Id string
- The provider-assigned unique ID for this managed resource.
- Alarm
Notify stringGroup Id - The alarm notification group id.
- Id string
- The provider-assigned unique ID for this managed resource.
- alarm
Notify StringGroup Id - The alarm notification group id.
- id String
- The provider-assigned unique ID for this managed resource.
- alarm
Notify stringGroup Id - The alarm notification group id.
- id string
- The provider-assigned unique ID for this managed resource.
- alarm_
notify_ strgroup_ id - The alarm notification group id.
- id str
- The provider-assigned unique ID for this managed resource.
- alarm
Notify StringGroup Id - The alarm notification group id.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AlarmNotifyGroup Resource
Get an existing AlarmNotifyGroup 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?: AlarmNotifyGroupState, opts?: CustomResourceOptions): AlarmNotifyGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alarm_notify_group_id: Optional[str] = None,
alarm_notify_group_name: Optional[str] = None,
iam_project_name: Optional[str] = None,
notify_types: Optional[Sequence[str]] = None,
receivers: Optional[Sequence[AlarmNotifyGroupReceiverArgs]] = None) -> AlarmNotifyGroup
func GetAlarmNotifyGroup(ctx *Context, name string, id IDInput, state *AlarmNotifyGroupState, opts ...ResourceOption) (*AlarmNotifyGroup, error)
public static AlarmNotifyGroup Get(string name, Input<string> id, AlarmNotifyGroupState? state, CustomResourceOptions? opts = null)
public static AlarmNotifyGroup get(String name, Output<String> id, AlarmNotifyGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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
Notify stringGroup Id - The alarm notification group id.
- Alarm
Notify stringGroup Name - The name of the notify group.
- Iam
Project stringName - The name of the iam project.
- Notify
Types List<string> - The notify type. Trigger: Alarm Trigger Recovery: Alarm Recovery.
- Receivers
List<Alarm
Notify Group Receiver> - List of IAM users to receive alerts.
- Alarm
Notify stringGroup Id - The alarm notification group id.
- Alarm
Notify stringGroup Name - The name of the notify group.
- Iam
Project stringName - The name of the iam project.
- Notify
Types []string - The notify type. Trigger: Alarm Trigger Recovery: Alarm Recovery.
- Receivers
[]Alarm
Notify Group Receiver Args - List of IAM users to receive alerts.
- alarm
Notify StringGroup Id - The alarm notification group id.
- alarm
Notify StringGroup Name - The name of the notify group.
- iam
Project StringName - The name of the iam project.
- notify
Types List<String> - The notify type. Trigger: Alarm Trigger Recovery: Alarm Recovery.
- receivers
List<Alarm
Notify Group Receiver> - List of IAM users to receive alerts.
- alarm
Notify stringGroup Id - The alarm notification group id.
- alarm
Notify stringGroup Name - The name of the notify group.
- iam
Project stringName - The name of the iam project.
- notify
Types string[] - The notify type. Trigger: Alarm Trigger Recovery: Alarm Recovery.
- receivers
Alarm
Notify Group Receiver[] - List of IAM users to receive alerts.
- alarm_
notify_ strgroup_ id - The alarm notification group id.
- alarm_
notify_ strgroup_ name - The name of the notify group.
- iam_
project_ strname - The name of the iam project.
- notify_
types Sequence[str] - The notify type. Trigger: Alarm Trigger Recovery: Alarm Recovery.
- receivers
Sequence[Alarm
Notify Group Receiver Args] - List of IAM users to receive alerts.
- alarm
Notify StringGroup Id - The alarm notification group id.
- alarm
Notify StringGroup Name - The name of the notify group.
- iam
Project StringName - The name of the iam project.
- notify
Types List<String> - The notify type. Trigger: Alarm Trigger Recovery: Alarm Recovery.
- receivers List<Property Map>
- List of IAM users to receive alerts.
Supporting Types
AlarmNotifyGroupReceiver, AlarmNotifyGroupReceiverArgs
- End
Time string - The end time.
- Receiver
Channels List<string> - The list of the receiver channels. Currently supported channels: Email, Sms, Phone.
- Receiver
Names List<string> - List of the receiver names.
- Receiver
Type string - The receiver type, Can be set as:
User
(The id of user). - Start
Time string - The start time.
- End
Time string - The end time.
- Receiver
Channels []string - The list of the receiver channels. Currently supported channels: Email, Sms, Phone.
- Receiver
Names []string - List of the receiver names.
- Receiver
Type string - The receiver type, Can be set as:
User
(The id of user). - Start
Time string - The start time.
- end
Time String - The end time.
- receiver
Channels List<String> - The list of the receiver channels. Currently supported channels: Email, Sms, Phone.
- receiver
Names List<String> - List of the receiver names.
- receiver
Type String - The receiver type, Can be set as:
User
(The id of user). - start
Time String - The start time.
- end
Time string - The end time.
- receiver
Channels string[] - The list of the receiver channels. Currently supported channels: Email, Sms, Phone.
- receiver
Names string[] - List of the receiver names.
- receiver
Type string - The receiver type, Can be set as:
User
(The id of user). - start
Time string - The start time.
- end_
time str - The end time.
- receiver_
channels Sequence[str] - The list of the receiver channels. Currently supported channels: Email, Sms, Phone.
- receiver_
names Sequence[str] - List of the receiver names.
- receiver_
type str - The receiver type, Can be set as:
User
(The id of user). - start_
time str - The start time.
- end
Time String - The end time.
- receiver
Channels List<String> - The list of the receiver channels. Currently supported channels: Email, Sms, Phone.
- receiver
Names List<String> - List of the receiver names.
- receiver
Type String - The receiver type, Can be set as:
User
(The id of user). - start
Time String - The start time.
Import
tls alarm notify group can be imported using the id, e.g.
$ pulumi import volcengine:tls/alarmNotifyGroup:AlarmNotifyGroup default fa************
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.