@volcengine/pulumi 0.0.40 → 0.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/package.json +1 -1
  2. package/types/input.d.ts +48 -0
  3. package/types/output.d.ts +312 -0
  4. package/vmp/alertSamples.d.ts +104 -0
  5. package/vmp/alertSamples.js +57 -0
  6. package/vmp/alertSamples.js.map +1 -0
  7. package/vmp/alertingRuleEnableDisable.d.ts +66 -0
  8. package/vmp/alertingRuleEnableDisable.js +70 -0
  9. package/vmp/alertingRuleEnableDisable.js.map +1 -0
  10. package/vmp/contact.d.ts +5 -1
  11. package/vmp/contact.js +1 -1
  12. package/vmp/contact.js.map +1 -1
  13. package/vmp/contacts.d.ts +18 -0
  14. package/vmp/contacts.js +2 -0
  15. package/vmp/contacts.js.map +1 -1
  16. package/vmp/getAlertSamples.d.ts +102 -0
  17. package/vmp/getAlertSamples.js +54 -0
  18. package/vmp/getAlertSamples.js.map +1 -0
  19. package/vmp/getContacts.d.ts +18 -0
  20. package/vmp/getContacts.js +2 -0
  21. package/vmp/getContacts.js.map +1 -1
  22. package/vmp/getIntegrationTasks.d.ts +119 -0
  23. package/vmp/getIntegrationTasks.js +51 -0
  24. package/vmp/getIntegrationTasks.js.map +1 -0
  25. package/vmp/getSilencePolicies.d.ts +110 -0
  26. package/vmp/getSilencePolicies.js +52 -0
  27. package/vmp/getSilencePolicies.js.map +1 -0
  28. package/vmp/index.d.ts +33 -0
  29. package/vmp/index.js +45 -2
  30. package/vmp/index.js.map +1 -1
  31. package/vmp/integrationTask.d.ts +142 -0
  32. package/vmp/integrationTask.js +78 -0
  33. package/vmp/integrationTask.js.map +1 -0
  34. package/vmp/integrationTaskEnable.d.ts +71 -0
  35. package/vmp/integrationTaskEnable.js +75 -0
  36. package/vmp/integrationTaskEnable.js.map +1 -0
  37. package/vmp/integrationTasks.d.ts +121 -0
  38. package/vmp/integrationTasks.js +54 -0
  39. package/vmp/integrationTasks.js.map +1 -0
  40. package/vmp/silencePolicies.d.ts +112 -0
  41. package/vmp/silencePolicies.js +55 -0
  42. package/vmp/silencePolicies.js.map +1 -0
  43. package/vmp/silencePolicy.d.ts +168 -0
  44. package/vmp/silencePolicy.js +113 -0
  45. package/vmp/silencePolicy.js.map +1 -0
  46. package/vmp/silencePolicyEnableDisable.d.ts +66 -0
  47. package/vmp/silencePolicyEnableDisable.js +70 -0
  48. package/vmp/silencePolicyEnableDisable.js.map +1 -0
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.SilencePolicy = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage vmp silence policy
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@volcengine/pulumi";
15
+ *
16
+ * const example = new volcengine.vmp.SilencePolicy("example", {
17
+ * description: "terraform silence policy",
18
+ * metricLabelMatchers: [{
19
+ * matchers: [
20
+ * {
21
+ * label: "app",
22
+ * operator: "NotEqual",
23
+ * value: "test",
24
+ * },
25
+ * {
26
+ * label: "env",
27
+ * operator: "Equal",
28
+ * value: "prod",
29
+ * },
30
+ * ],
31
+ * }],
32
+ * timeRangeMatchers: [{
33
+ * location: "Asia/Shanghai",
34
+ * periodicDate: {
35
+ * time: "20:00~21:12",
36
+ * weekday: "1,5",
37
+ * },
38
+ * }],
39
+ * });
40
+ * ```
41
+ *
42
+ * ## Import
43
+ *
44
+ * VmpSilencePolicy can be imported using the id, e.g.
45
+ *
46
+ * ```sh
47
+ * $ pulumi import volcengine:vmp/silencePolicy:SilencePolicy default resource_id
48
+ * ```
49
+ */
50
+ class SilencePolicy extends pulumi.CustomResource {
51
+ /**
52
+ * Get an existing SilencePolicy resource's state with the given name, ID, and optional extra
53
+ * properties used to qualify the lookup.
54
+ *
55
+ * @param name The _unique_ name of the resulting resource.
56
+ * @param id The _unique_ provider ID of the resource to lookup.
57
+ * @param state Any extra arguments used during the lookup.
58
+ * @param opts Optional settings to control the behavior of the CustomResource.
59
+ */
60
+ static get(name, id, state, opts) {
61
+ return new SilencePolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
62
+ }
63
+ /**
64
+ * Returns true if the given object is an instance of SilencePolicy. This is designed to work even
65
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
66
+ */
67
+ static isInstance(obj) {
68
+ if (obj === undefined || obj === null) {
69
+ return false;
70
+ }
71
+ return obj['__pulumiType'] === SilencePolicy.__pulumiType;
72
+ }
73
+ constructor(name, argsOrState, opts) {
74
+ let resourceInputs = {};
75
+ opts = opts || {};
76
+ if (opts.id) {
77
+ const state = argsOrState;
78
+ resourceInputs["autoDeleteTime"] = state ? state.autoDeleteTime : undefined;
79
+ resourceInputs["createTime"] = state ? state.createTime : undefined;
80
+ resourceInputs["description"] = state ? state.description : undefined;
81
+ resourceInputs["metricLabelMatchers"] = state ? state.metricLabelMatchers : undefined;
82
+ resourceInputs["name"] = state ? state.name : undefined;
83
+ resourceInputs["source"] = state ? state.source : undefined;
84
+ resourceInputs["status"] = state ? state.status : undefined;
85
+ resourceInputs["timeRangeMatchers"] = state ? state.timeRangeMatchers : undefined;
86
+ resourceInputs["updateTime"] = state ? state.updateTime : undefined;
87
+ }
88
+ else {
89
+ const args = argsOrState;
90
+ if ((!args || args.metricLabelMatchers === undefined) && !opts.urn) {
91
+ throw new Error("Missing required property 'metricLabelMatchers'");
92
+ }
93
+ if ((!args || args.timeRangeMatchers === undefined) && !opts.urn) {
94
+ throw new Error("Missing required property 'timeRangeMatchers'");
95
+ }
96
+ resourceInputs["description"] = args ? args.description : undefined;
97
+ resourceInputs["metricLabelMatchers"] = args ? args.metricLabelMatchers : undefined;
98
+ resourceInputs["name"] = args ? args.name : undefined;
99
+ resourceInputs["timeRangeMatchers"] = args ? args.timeRangeMatchers : undefined;
100
+ resourceInputs["autoDeleteTime"] = undefined /*out*/;
101
+ resourceInputs["createTime"] = undefined /*out*/;
102
+ resourceInputs["source"] = undefined /*out*/;
103
+ resourceInputs["status"] = undefined /*out*/;
104
+ resourceInputs["updateTime"] = undefined /*out*/;
105
+ }
106
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
107
+ super(SilencePolicy.__pulumiType, name, resourceInputs, opts);
108
+ }
109
+ }
110
+ exports.SilencePolicy = SilencePolicy;
111
+ /** @internal */
112
+ SilencePolicy.__pulumiType = 'volcengine:vmp/silencePolicy:SilencePolicy';
113
+ //# sourceMappingURL=silencePolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"silencePolicy.js","sourceRoot":"","sources":["../../vmp/silencePolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IA+CD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc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L,sCA4GC;AA9FG,gBAAgB;AACO,0BAAY,GAAG,4CAA4C,CAAC"}
@@ -0,0 +1,66 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a resource to manage vmp silence policy enable disable
4
+ * ## Example Usage
5
+ *
6
+ * ```typescript
7
+ * import * as pulumi from "@pulumi/pulumi";
8
+ * import * as volcengine from "@volcengine/pulumi";
9
+ *
10
+ * const foo = new volcengine.vmp.SilencePolicyEnableDisable("foo", {ids: [
11
+ * "4d62547e-a0f4-4bdd-a658-399fc4464ae8",
12
+ * "ea51e747-0ead-4e09-9187-76beba6400b7",
13
+ * ]});
14
+ * ```
15
+ *
16
+ * ## Import
17
+ *
18
+ * The VmpSilencePolicyEnableDisable is not support import.
19
+ */
20
+ export declare class SilencePolicyEnableDisable extends pulumi.CustomResource {
21
+ /**
22
+ * Get an existing SilencePolicyEnableDisable resource's state with the given name, ID, and optional extra
23
+ * properties used to qualify the lookup.
24
+ *
25
+ * @param name The _unique_ name of the resulting resource.
26
+ * @param id The _unique_ provider ID of the resource to lookup.
27
+ * @param state Any extra arguments used during the lookup.
28
+ * @param opts Optional settings to control the behavior of the CustomResource.
29
+ */
30
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SilencePolicyEnableDisableState, opts?: pulumi.CustomResourceOptions): SilencePolicyEnableDisable;
31
+ /**
32
+ * Returns true if the given object is an instance of SilencePolicyEnableDisable. This is designed to work even
33
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
34
+ */
35
+ static isInstance(obj: any): obj is SilencePolicyEnableDisable;
36
+ /**
37
+ * The ids of silence policy.
38
+ */
39
+ readonly ids: pulumi.Output<string[]>;
40
+ /**
41
+ * Create a SilencePolicyEnableDisable resource with the given unique name, arguments, and options.
42
+ *
43
+ * @param name The _unique_ name of the resource.
44
+ * @param args The arguments to use to populate this resource's properties.
45
+ * @param opts A bag of options that control this resource's behavior.
46
+ */
47
+ constructor(name: string, args: SilencePolicyEnableDisableArgs, opts?: pulumi.CustomResourceOptions);
48
+ }
49
+ /**
50
+ * Input properties used for looking up and filtering SilencePolicyEnableDisable resources.
51
+ */
52
+ export interface SilencePolicyEnableDisableState {
53
+ /**
54
+ * The ids of silence policy.
55
+ */
56
+ ids?: pulumi.Input<pulumi.Input<string>[]>;
57
+ }
58
+ /**
59
+ * The set of arguments for constructing a SilencePolicyEnableDisable resource.
60
+ */
61
+ export interface SilencePolicyEnableDisableArgs {
62
+ /**
63
+ * The ids of silence policy.
64
+ */
65
+ ids: pulumi.Input<pulumi.Input<string>[]>;
66
+ }
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.SilencePolicyEnableDisable = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a resource to manage vmp silence policy enable disable
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as volcengine from "@volcengine/pulumi";
15
+ *
16
+ * const foo = new volcengine.vmp.SilencePolicyEnableDisable("foo", {ids: [
17
+ * "4d62547e-a0f4-4bdd-a658-399fc4464ae8",
18
+ * "ea51e747-0ead-4e09-9187-76beba6400b7",
19
+ * ]});
20
+ * ```
21
+ *
22
+ * ## Import
23
+ *
24
+ * The VmpSilencePolicyEnableDisable is not support import.
25
+ */
26
+ class SilencePolicyEnableDisable extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing SilencePolicyEnableDisable resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name, id, state, opts) {
37
+ return new SilencePolicyEnableDisable(name, state, Object.assign(Object.assign({}, opts), { id: id }));
38
+ }
39
+ /**
40
+ * Returns true if the given object is an instance of SilencePolicyEnableDisable. This is designed to work even
41
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
42
+ */
43
+ static isInstance(obj) {
44
+ if (obj === undefined || obj === null) {
45
+ return false;
46
+ }
47
+ return obj['__pulumiType'] === SilencePolicyEnableDisable.__pulumiType;
48
+ }
49
+ constructor(name, argsOrState, opts) {
50
+ let resourceInputs = {};
51
+ opts = opts || {};
52
+ if (opts.id) {
53
+ const state = argsOrState;
54
+ resourceInputs["ids"] = state ? state.ids : undefined;
55
+ }
56
+ else {
57
+ const args = argsOrState;
58
+ if ((!args || args.ids === undefined) && !opts.urn) {
59
+ throw new Error("Missing required property 'ids'");
60
+ }
61
+ resourceInputs["ids"] = args ? args.ids : undefined;
62
+ }
63
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
64
+ super(SilencePolicyEnableDisable.__pulumiType, name, resourceInputs, opts);
65
+ }
66
+ }
67
+ exports.SilencePolicyEnableDisable = SilencePolicyEnableDisable;
68
+ /** @internal */
69
+ SilencePolicyEnableDisable.__pulumiType = 'volcengine:vmp/silencePolicyEnableDisable:SilencePolicyEnableDisable';
70
+ //# sourceMappingURL=silencePolicyEnableDisable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"silencePolicyEnableDisable.js","sourceRoot":"","sources":["../../vmp/silencePolicyEnableDisable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuC,EAAE,IAAmC;QACrI,OAAO,IAAI,0BAA0B,CAAC,IAAI,EAAO,KAAK,k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