UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

134 lines (133 loc) 4.29 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage tls alarm notify group * ## Example Usage * * ```typescript * 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", * }], * }); * ``` * * ## Import * * tls alarm notify group can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:tls/alarmNotifyGroup:AlarmNotifyGroup default fa************ * ``` */ export declare class AlarmNotifyGroup extends pulumi.CustomResource { /** * Get an existing AlarmNotifyGroup resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlarmNotifyGroupState, opts?: pulumi.CustomResourceOptions): AlarmNotifyGroup; /** * Returns true if the given object is an instance of AlarmNotifyGroup. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AlarmNotifyGroup; /** * The alarm notification group id. */ readonly alarmNotifyGroupId: pulumi.Output<string>; /** * The name of the notify group. */ readonly alarmNotifyGroupName: pulumi.Output<string>; /** * The name of the iam project. */ readonly iamProjectName: pulumi.Output<string>; /** * The notify type. * Trigger: Alarm Trigger * Recovery: Alarm Recovery. */ readonly notifyTypes: pulumi.Output<string[]>; /** * List of IAM users to receive alerts. */ readonly receivers: pulumi.Output<outputs.tls.AlarmNotifyGroupReceiver[]>; /** * Create a AlarmNotifyGroup resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AlarmNotifyGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AlarmNotifyGroup resources. */ export interface AlarmNotifyGroupState { /** * The alarm notification group id. */ alarmNotifyGroupId?: pulumi.Input<string>; /** * The name of the notify group. */ alarmNotifyGroupName?: pulumi.Input<string>; /** * The name of the iam project. */ iamProjectName?: pulumi.Input<string>; /** * The notify type. * Trigger: Alarm Trigger * Recovery: Alarm Recovery. */ notifyTypes?: pulumi.Input<pulumi.Input<string>[]>; /** * List of IAM users to receive alerts. */ receivers?: pulumi.Input<pulumi.Input<inputs.tls.AlarmNotifyGroupReceiver>[]>; } /** * The set of arguments for constructing a AlarmNotifyGroup resource. */ export interface AlarmNotifyGroupArgs { /** * The name of the notify group. */ alarmNotifyGroupName: pulumi.Input<string>; /** * The name of the iam project. */ iamProjectName?: pulumi.Input<string>; /** * The notify type. * Trigger: Alarm Trigger * Recovery: Alarm Recovery. */ notifyTypes: pulumi.Input<pulumi.Input<string>[]>; /** * List of IAM users to receive alerts. */ receivers: pulumi.Input<pulumi.Input<inputs.tls.AlarmNotifyGroupReceiver>[]>; }