UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

105 lines 3.81 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.notifyGroupPoliciesOutput = exports.notifyGroupPolicies = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to query detailed information of vmp notify group policies * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooNotifyGroupPolicy = new volcengine.vmp.NotifyGroupPolicy("fooNotifyGroupPolicy", { * description: "acc-test-1", * levels: [ * { * level: "P2", * groupBies: ["__rule__"], * groupWait: "35", * groupInterval: "30", * repeatInterval: "30", * }, * { * level: "P0", * groupBies: ["__rule__"], * groupWait: "30", * groupInterval: "30", * repeatInterval: "30", * }, * { * level: "P1", * groupBies: ["__rule__"], * groupWait: "40", * groupInterval: "45", * repeatInterval: "30", * }, * ], * }); * const fooNotifyGroupPolicies = volcengine.vmp.getNotifyGroupPoliciesOutput({ * ids: [fooNotifyGroupPolicy.id], * }); * ``` */ /** @deprecated volcengine.vmp.NotifyGroupPolicies has been deprecated in favor of volcengine.vmp.getNotifyGroupPolicies */ function notifyGroupPolicies(args, opts) { pulumi.log.warn("notifyGroupPolicies is deprecated: volcengine.vmp.NotifyGroupPolicies has been deprecated in favor of volcengine.vmp.getNotifyGroupPolicies"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:vmp/notifyGroupPolicies:NotifyGroupPolicies", { "ids": args.ids, "name": args.name, "outputFile": args.outputFile, }, opts); } exports.notifyGroupPolicies = notifyGroupPolicies; /** * Use this data source to query detailed information of vmp notify group policies * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooNotifyGroupPolicy = new volcengine.vmp.NotifyGroupPolicy("fooNotifyGroupPolicy", { * description: "acc-test-1", * levels: [ * { * level: "P2", * groupBies: ["__rule__"], * groupWait: "35", * groupInterval: "30", * repeatInterval: "30", * }, * { * level: "P0", * groupBies: ["__rule__"], * groupWait: "30", * groupInterval: "30", * repeatInterval: "30", * }, * { * level: "P1", * groupBies: ["__rule__"], * groupWait: "40", * groupInterval: "45", * repeatInterval: "30", * }, * ], * }); * const fooNotifyGroupPolicies = volcengine.vmp.getNotifyGroupPoliciesOutput({ * ids: [fooNotifyGroupPolicy.id], * }); * ``` */ /** @deprecated volcengine.vmp.NotifyGroupPolicies has been deprecated in favor of volcengine.vmp.getNotifyGroupPolicies */ function notifyGroupPoliciesOutput(args, opts) { return pulumi.output(args).apply((a) => notifyGroupPolicies(a, opts)); } exports.notifyGroupPoliciesOutput = notifyGroupPoliciesOutput; //# sourceMappingURL=notifyGroupPolicies.js.map