@volcengine/pulumi-volcenginecc 0.0.29 → 0.0.30
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.
- package/iam/getOidcProvider.d.ts +72 -0
- package/iam/getOidcProvider.js +28 -0
- package/iam/getOidcProvider.js.map +1 -0
- package/iam/getOidcProviders.d.ts +22 -0
- package/iam/getOidcProviders.js +24 -0
- package/iam/getOidcProviders.js.map +1 -0
- package/iam/getSamlProvider.d.ts +38 -0
- package/iam/getSamlProvider.js +28 -0
- package/iam/getSamlProvider.js.map +1 -0
- package/iam/getSamlProviders.d.ts +22 -0
- package/iam/getSamlProviders.js +24 -0
- package/iam/getSamlProviders.js.map +1 -0
- package/iam/index.d.ts +18 -0
- package/iam/index.js +23 -1
- package/iam/index.js.map +1 -1
- package/iam/oidcProvider.d.ts +160 -0
- package/iam/oidcProvider.js +105 -0
- package/iam/oidcProvider.js.map +1 -0
- package/iam/samlProvider.d.ts +156 -0
- package/iam/samlProvider.js +100 -0
- package/iam/samlProvider.js.map +1 -0
- package/package.json +1 -1
- package/types/input.d.ts +100 -0
- package/types/output.d.ts +200 -0
- package/vefaas/getTimer.d.ts +80 -0
- package/vefaas/getTimer.js +28 -0
- package/vefaas/getTimer.js.map +1 -0
- package/vefaas/getTimers.d.ts +22 -0
- package/vefaas/getTimers.js +24 -0
- package/vefaas/getTimers.js.map +1 -0
- package/vefaas/index.d.ts +9 -0
- package/vefaas/index.js +12 -1
- package/vefaas/index.js.map +1 -1
- package/vefaas/timer.d.ts +183 -0
- package/vefaas/timer.js +96 -0
- package/vefaas/timer.js.map +1 -0
- package/vmp/alertingRule.d.ts +167 -0
- package/vmp/alertingRule.js +90 -0
- package/vmp/alertingRule.js.map +1 -0
- package/vmp/getAlertingRule.d.ts +93 -0
- package/vmp/getAlertingRule.js +28 -0
- package/vmp/getAlertingRule.js.map +1 -0
- package/vmp/getAlertingRules.d.ts +22 -0
- package/vmp/getAlertingRules.js +24 -0
- package/vmp/getAlertingRules.js.map +1 -0
- package/vmp/index.d.ts +9 -0
- package/vmp/index.js +12 -1
- package/vmp/index.js.map +1 -1
package/vefaas/timer.js
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
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.Timer = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Trigger management
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
|
|
16
|
+
*
|
|
17
|
+
* const vEFAASTimerDemo = new volcenginecc.vefaas.Timer("VEFAASTimerDemo", {
|
|
18
|
+
* functionId: "o1zxxx",
|
|
19
|
+
* name: "ccapi-test-timer",
|
|
20
|
+
* description: "ccapi test timer",
|
|
21
|
+
* enabled: false,
|
|
22
|
+
* crontab: "*/30 * * * *",
|
|
23
|
+
* payload: "{\"body\": \"create event payload\"}",
|
|
24
|
+
* enableConcurrency: false,
|
|
25
|
+
* retries: 5,
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import volcenginecc:vefaas/timer:Timer example "function_id|timer_id"
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
class Timer extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing Timer resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name, id, state, opts) {
|
|
46
|
+
return new Timer(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of Timer. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === Timer.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
constructor(name, argsOrState, opts) {
|
|
59
|
+
let resourceInputs = {};
|
|
60
|
+
opts = opts || {};
|
|
61
|
+
if (opts.id) {
|
|
62
|
+
const state = argsOrState;
|
|
63
|
+
resourceInputs["creationTime"] = state ? state.creationTime : undefined;
|
|
64
|
+
resourceInputs["crontab"] = state ? state.crontab : undefined;
|
|
65
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
66
|
+
resourceInputs["enableConcurrency"] = state ? state.enableConcurrency : undefined;
|
|
67
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
68
|
+
resourceInputs["functionId"] = state ? state.functionId : undefined;
|
|
69
|
+
resourceInputs["lastUpdateTime"] = state ? state.lastUpdateTime : undefined;
|
|
70
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
71
|
+
resourceInputs["payload"] = state ? state.payload : undefined;
|
|
72
|
+
resourceInputs["retries"] = state ? state.retries : undefined;
|
|
73
|
+
resourceInputs["timerId"] = state ? state.timerId : undefined;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
const args = argsOrState;
|
|
77
|
+
resourceInputs["crontab"] = args ? args.crontab : undefined;
|
|
78
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
79
|
+
resourceInputs["enableConcurrency"] = args ? args.enableConcurrency : undefined;
|
|
80
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
81
|
+
resourceInputs["functionId"] = args ? args.functionId : undefined;
|
|
82
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
83
|
+
resourceInputs["payload"] = args ? args.payload : undefined;
|
|
84
|
+
resourceInputs["retries"] = args ? args.retries : undefined;
|
|
85
|
+
resourceInputs["creationTime"] = undefined /*out*/;
|
|
86
|
+
resourceInputs["lastUpdateTime"] = undefined /*out*/;
|
|
87
|
+
resourceInputs["timerId"] = undefined /*out*/;
|
|
88
|
+
}
|
|
89
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
90
|
+
super(Timer.__pulumiType, name, resourceInputs, opts);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.Timer = Timer;
|
|
94
|
+
/** @internal */
|
|
95
|
+
Timer.__pulumiType = 'volcenginecc:vefaas/timer:Timer';
|
|
96
|
+
//# sourceMappingURL=timer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timer.js","sourceRoot":"","sources":["../../vefaas/timer.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC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C,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AAjHL,sBAkHC;AApGG,gBAAgB;AACO,kBAAY,GAAG,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* VMP alert rule configuration
|
|
6
|
+
*
|
|
7
|
+
* ## Import
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import volcenginecc:vmp/alertingRule:AlertingRule example "alerting_rule_id"
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class AlertingRule extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing AlertingRule resource's state with the given name, ID, and optional extra
|
|
16
|
+
* properties used to qualify the lookup.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resulting resource.
|
|
19
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
20
|
+
* @param state Any extra arguments used during the lookup.
|
|
21
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
22
|
+
*/
|
|
23
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlertingRuleState, opts?: pulumi.CustomResourceOptions): AlertingRule;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of AlertingRule. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj: any): obj is AlertingRule;
|
|
29
|
+
/**
|
|
30
|
+
* Alert rule ID
|
|
31
|
+
*/
|
|
32
|
+
readonly alertingRuleId: pulumi.Output<string>;
|
|
33
|
+
readonly annotations: pulumi.Output<outputs.vmp.AlertingRuleAnnotation[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Alert rule creation time
|
|
36
|
+
*/
|
|
37
|
+
readonly createTime: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Alert rule description
|
|
40
|
+
*/
|
|
41
|
+
readonly description: pulumi.Output<string>;
|
|
42
|
+
readonly labels: pulumi.Output<outputs.vmp.AlertingRuleLabel[]>;
|
|
43
|
+
readonly levels: pulumi.Output<outputs.vmp.AlertingRuleLevel[]>;
|
|
44
|
+
/**
|
|
45
|
+
* Alert rule name
|
|
46
|
+
*/
|
|
47
|
+
readonly name: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Alert aggregation policy ID
|
|
50
|
+
*/
|
|
51
|
+
readonly notifyGroupPolicyId: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Alert notification policy ID
|
|
54
|
+
*/
|
|
55
|
+
readonly notifyPolicyId: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Alert configuration
|
|
58
|
+
*/
|
|
59
|
+
readonly query: pulumi.Output<outputs.vmp.AlertingRuleQuery>;
|
|
60
|
+
/**
|
|
61
|
+
* Alert rule status: Running (monitoring), Disabled (disabled)
|
|
62
|
+
*/
|
|
63
|
+
readonly status: pulumi.Output<string>;
|
|
64
|
+
readonly tags: pulumi.Output<outputs.vmp.AlertingRuleTag[]>;
|
|
65
|
+
/**
|
|
66
|
+
* Alert rule type. Allowed values: vmp/PromQL
|
|
67
|
+
*/
|
|
68
|
+
readonly type: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Alert rule update time
|
|
71
|
+
*/
|
|
72
|
+
readonly updateTime: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Create a AlertingRule resource with the given unique name, arguments, and options.
|
|
75
|
+
*
|
|
76
|
+
* @param name The _unique_ name of the resource.
|
|
77
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
78
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
79
|
+
*/
|
|
80
|
+
constructor(name: string, args: AlertingRuleArgs, opts?: pulumi.CustomResourceOptions);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Input properties used for looking up and filtering AlertingRule resources.
|
|
84
|
+
*/
|
|
85
|
+
export interface AlertingRuleState {
|
|
86
|
+
/**
|
|
87
|
+
* Alert rule ID
|
|
88
|
+
*/
|
|
89
|
+
alertingRuleId?: pulumi.Input<string>;
|
|
90
|
+
annotations?: pulumi.Input<pulumi.Input<inputs.vmp.AlertingRuleAnnotation>[]>;
|
|
91
|
+
/**
|
|
92
|
+
* Alert rule creation time
|
|
93
|
+
*/
|
|
94
|
+
createTime?: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Alert rule description
|
|
97
|
+
*/
|
|
98
|
+
description?: pulumi.Input<string>;
|
|
99
|
+
labels?: pulumi.Input<pulumi.Input<inputs.vmp.AlertingRuleLabel>[]>;
|
|
100
|
+
levels?: pulumi.Input<pulumi.Input<inputs.vmp.AlertingRuleLevel>[]>;
|
|
101
|
+
/**
|
|
102
|
+
* Alert rule name
|
|
103
|
+
*/
|
|
104
|
+
name?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Alert aggregation policy ID
|
|
107
|
+
*/
|
|
108
|
+
notifyGroupPolicyId?: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* Alert notification policy ID
|
|
111
|
+
*/
|
|
112
|
+
notifyPolicyId?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Alert configuration
|
|
115
|
+
*/
|
|
116
|
+
query?: pulumi.Input<inputs.vmp.AlertingRuleQuery>;
|
|
117
|
+
/**
|
|
118
|
+
* Alert rule status: Running (monitoring), Disabled (disabled)
|
|
119
|
+
*/
|
|
120
|
+
status?: pulumi.Input<string>;
|
|
121
|
+
tags?: pulumi.Input<pulumi.Input<inputs.vmp.AlertingRuleTag>[]>;
|
|
122
|
+
/**
|
|
123
|
+
* Alert rule type. Allowed values: vmp/PromQL
|
|
124
|
+
*/
|
|
125
|
+
type?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Alert rule update time
|
|
128
|
+
*/
|
|
129
|
+
updateTime?: pulumi.Input<string>;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* The set of arguments for constructing a AlertingRule resource.
|
|
133
|
+
*/
|
|
134
|
+
export interface AlertingRuleArgs {
|
|
135
|
+
annotations?: pulumi.Input<pulumi.Input<inputs.vmp.AlertingRuleAnnotation>[]>;
|
|
136
|
+
/**
|
|
137
|
+
* Alert rule description
|
|
138
|
+
*/
|
|
139
|
+
description?: pulumi.Input<string>;
|
|
140
|
+
labels?: pulumi.Input<pulumi.Input<inputs.vmp.AlertingRuleLabel>[]>;
|
|
141
|
+
levels?: pulumi.Input<pulumi.Input<inputs.vmp.AlertingRuleLevel>[]>;
|
|
142
|
+
/**
|
|
143
|
+
* Alert rule name
|
|
144
|
+
*/
|
|
145
|
+
name: pulumi.Input<string>;
|
|
146
|
+
/**
|
|
147
|
+
* Alert aggregation policy ID
|
|
148
|
+
*/
|
|
149
|
+
notifyGroupPolicyId?: pulumi.Input<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Alert notification policy ID
|
|
152
|
+
*/
|
|
153
|
+
notifyPolicyId?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* Alert configuration
|
|
156
|
+
*/
|
|
157
|
+
query?: pulumi.Input<inputs.vmp.AlertingRuleQuery>;
|
|
158
|
+
/**
|
|
159
|
+
* Alert rule status: Running (monitoring), Disabled (disabled)
|
|
160
|
+
*/
|
|
161
|
+
status?: pulumi.Input<string>;
|
|
162
|
+
tags?: pulumi.Input<pulumi.Input<inputs.vmp.AlertingRuleTag>[]>;
|
|
163
|
+
/**
|
|
164
|
+
* Alert rule type. Allowed values: vmp/PromQL
|
|
165
|
+
*/
|
|
166
|
+
type: pulumi.Input<string>;
|
|
167
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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.AlertingRule = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* VMP alert rule configuration
|
|
10
|
+
*
|
|
11
|
+
* ## Import
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import volcenginecc:vmp/alertingRule:AlertingRule example "alerting_rule_id"
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
class AlertingRule extends pulumi.CustomResource {
|
|
18
|
+
/**
|
|
19
|
+
* Get an existing AlertingRule resource's state with the given name, ID, and optional extra
|
|
20
|
+
* properties used to qualify the lookup.
|
|
21
|
+
*
|
|
22
|
+
* @param name The _unique_ name of the resulting resource.
|
|
23
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
24
|
+
* @param state Any extra arguments used during the lookup.
|
|
25
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
26
|
+
*/
|
|
27
|
+
static get(name, id, state, opts) {
|
|
28
|
+
return new AlertingRule(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns true if the given object is an instance of AlertingRule. This is designed to work even
|
|
32
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
33
|
+
*/
|
|
34
|
+
static isInstance(obj) {
|
|
35
|
+
if (obj === undefined || obj === null) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
return obj['__pulumiType'] === AlertingRule.__pulumiType;
|
|
39
|
+
}
|
|
40
|
+
constructor(name, argsOrState, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (opts.id) {
|
|
44
|
+
const state = argsOrState;
|
|
45
|
+
resourceInputs["alertingRuleId"] = state ? state.alertingRuleId : undefined;
|
|
46
|
+
resourceInputs["annotations"] = state ? state.annotations : undefined;
|
|
47
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
48
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
49
|
+
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
50
|
+
resourceInputs["levels"] = state ? state.levels : undefined;
|
|
51
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
52
|
+
resourceInputs["notifyGroupPolicyId"] = state ? state.notifyGroupPolicyId : undefined;
|
|
53
|
+
resourceInputs["notifyPolicyId"] = state ? state.notifyPolicyId : undefined;
|
|
54
|
+
resourceInputs["query"] = state ? state.query : undefined;
|
|
55
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
56
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
57
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
58
|
+
resourceInputs["updateTime"] = state ? state.updateTime : undefined;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
const args = argsOrState;
|
|
62
|
+
if ((!args || args.name === undefined) && !opts.urn) {
|
|
63
|
+
throw new Error("Missing required property 'name'");
|
|
64
|
+
}
|
|
65
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'type'");
|
|
67
|
+
}
|
|
68
|
+
resourceInputs["annotations"] = args ? args.annotations : undefined;
|
|
69
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
70
|
+
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
71
|
+
resourceInputs["levels"] = args ? args.levels : undefined;
|
|
72
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
73
|
+
resourceInputs["notifyGroupPolicyId"] = args ? args.notifyGroupPolicyId : undefined;
|
|
74
|
+
resourceInputs["notifyPolicyId"] = args ? args.notifyPolicyId : undefined;
|
|
75
|
+
resourceInputs["query"] = args ? args.query : undefined;
|
|
76
|
+
resourceInputs["status"] = args ? args.status : undefined;
|
|
77
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
78
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
79
|
+
resourceInputs["alertingRuleId"] = undefined /*out*/;
|
|
80
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
81
|
+
resourceInputs["updateTime"] = undefined /*out*/;
|
|
82
|
+
}
|
|
83
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
84
|
+
super(AlertingRule.__pulumiType, name, resourceInputs, opts);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.AlertingRule = AlertingRule;
|
|
88
|
+
/** @internal */
|
|
89
|
+
AlertingRule.__pulumiType = 'volcenginecc:vmp/alertingRule:AlertingRule';
|
|
90
|
+
//# sourceMappingURL=alertingRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alertingRule.js","sourceRoot":"","sources":["../../vmp/alertingRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;GAQG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,Y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rD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AA7HL,oCA8HC;AAhHG,gBAAgB;AACO,yBAAY,GAAG,4CAA4C,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data Source schema for Volcengine::VMP::AlertingRule
|
|
5
|
+
*/
|
|
6
|
+
export declare function getAlertingRule(args: GetAlertingRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertingRuleResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getAlertingRule.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetAlertingRuleArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Uniquely identifies the resource.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A collection of values returned by getAlertingRule.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetAlertingRuleResult {
|
|
20
|
+
/**
|
|
21
|
+
* Alert rule ID
|
|
22
|
+
*/
|
|
23
|
+
readonly alertingRuleId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Annotation attached to the alert
|
|
26
|
+
*/
|
|
27
|
+
readonly annotations: outputs.vmp.GetAlertingRuleAnnotation[];
|
|
28
|
+
/**
|
|
29
|
+
* Alert rule creation time
|
|
30
|
+
*/
|
|
31
|
+
readonly createTime: string;
|
|
32
|
+
/**
|
|
33
|
+
* Alert rule description
|
|
34
|
+
*/
|
|
35
|
+
readonly description: string;
|
|
36
|
+
/**
|
|
37
|
+
* Uniquely identifies the resource.
|
|
38
|
+
*/
|
|
39
|
+
readonly id: string;
|
|
40
|
+
/**
|
|
41
|
+
* Tags attached to the alert
|
|
42
|
+
*/
|
|
43
|
+
readonly labels: outputs.vmp.GetAlertingRuleLabel[];
|
|
44
|
+
/**
|
|
45
|
+
* Alert severity
|
|
46
|
+
*/
|
|
47
|
+
readonly levels: outputs.vmp.GetAlertingRuleLevel[];
|
|
48
|
+
/**
|
|
49
|
+
* Alert rule name
|
|
50
|
+
*/
|
|
51
|
+
readonly name: string;
|
|
52
|
+
/**
|
|
53
|
+
* Alert aggregation policy ID
|
|
54
|
+
*/
|
|
55
|
+
readonly notifyGroupPolicyId: string;
|
|
56
|
+
/**
|
|
57
|
+
* Alert notification policy ID
|
|
58
|
+
*/
|
|
59
|
+
readonly notifyPolicyId: string;
|
|
60
|
+
/**
|
|
61
|
+
* Alert configuration
|
|
62
|
+
*/
|
|
63
|
+
readonly query: outputs.vmp.GetAlertingRuleQuery;
|
|
64
|
+
/**
|
|
65
|
+
* Alert rule status: Running (monitoring), Disabled (disabled)
|
|
66
|
+
*/
|
|
67
|
+
readonly status: string;
|
|
68
|
+
/**
|
|
69
|
+
* Tag
|
|
70
|
+
*/
|
|
71
|
+
readonly tags: outputs.vmp.GetAlertingRuleTag[];
|
|
72
|
+
/**
|
|
73
|
+
* Alert rule type. Allowed values: vmp/PromQL
|
|
74
|
+
*/
|
|
75
|
+
readonly type: string;
|
|
76
|
+
/**
|
|
77
|
+
* Alert rule update time
|
|
78
|
+
*/
|
|
79
|
+
readonly updateTime: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Data Source schema for Volcengine::VMP::AlertingRule
|
|
83
|
+
*/
|
|
84
|
+
export declare function getAlertingRuleOutput(args: GetAlertingRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertingRuleResult>;
|
|
85
|
+
/**
|
|
86
|
+
* A collection of arguments for invoking getAlertingRule.
|
|
87
|
+
*/
|
|
88
|
+
export interface GetAlertingRuleOutputArgs {
|
|
89
|
+
/**
|
|
90
|
+
* Uniquely identifies the resource.
|
|
91
|
+
*/
|
|
92
|
+
id: pulumi.Input<string>;
|
|
93
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.getAlertingRuleOutput = exports.getAlertingRule = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data Source schema for Volcengine::VMP::AlertingRule
|
|
10
|
+
*/
|
|
11
|
+
function getAlertingRule(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("volcenginecc:vmp/getAlertingRule:getAlertingRule", {
|
|
14
|
+
"id": args.id,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.getAlertingRule = getAlertingRule;
|
|
18
|
+
/**
|
|
19
|
+
* Data Source schema for Volcengine::VMP::AlertingRule
|
|
20
|
+
*/
|
|
21
|
+
function getAlertingRuleOutput(args, opts) {
|
|
22
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
23
|
+
return pulumi.runtime.invokeOutput("volcenginecc:vmp/getAlertingRule:getAlertingRule", {
|
|
24
|
+
"id": args.id,
|
|
25
|
+
}, opts);
|
|
26
|
+
}
|
|
27
|
+
exports.getAlertingRuleOutput = getAlertingRuleOutput;
|
|
28
|
+
//# sourceMappingURL=getAlertingRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAlertingRule.js","sourceRoot":"","sources":["../../vmp/getAlertingRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0CAKC;AA6ED;;GAEG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAAiC;IACpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,kDAAkD,EAAE;QACnF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sDAKC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Plural Data Source schema for Volcengine::VMP::AlertingRule
|
|
4
|
+
*/
|
|
5
|
+
export declare function getAlertingRules(opts?: pulumi.InvokeOptions): Promise<GetAlertingRulesResult>;
|
|
6
|
+
/**
|
|
7
|
+
* A collection of values returned by getAlertingRules.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetAlertingRulesResult {
|
|
10
|
+
/**
|
|
11
|
+
* Uniquely identifies the data source.
|
|
12
|
+
*/
|
|
13
|
+
readonly id: string;
|
|
14
|
+
/**
|
|
15
|
+
* Set of Resource Identifiers.
|
|
16
|
+
*/
|
|
17
|
+
readonly ids: string[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Plural Data Source schema for Volcengine::VMP::AlertingRule
|
|
21
|
+
*/
|
|
22
|
+
export declare function getAlertingRulesOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertingRulesResult>;
|
|
@@ -0,0 +1,24 @@
|
|
|
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.getAlertingRulesOutput = exports.getAlertingRules = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Plural Data Source schema for Volcengine::VMP::AlertingRule
|
|
10
|
+
*/
|
|
11
|
+
function getAlertingRules(opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("volcenginecc:vmp/getAlertingRules:getAlertingRules", {}, opts);
|
|
14
|
+
}
|
|
15
|
+
exports.getAlertingRules = getAlertingRules;
|
|
16
|
+
/**
|
|
17
|
+
* Plural Data Source schema for Volcengine::VMP::AlertingRule
|
|
18
|
+
*/
|
|
19
|
+
function getAlertingRulesOutput(opts) {
|
|
20
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
21
|
+
return pulumi.runtime.invokeOutput("volcenginecc:vmp/getAlertingRules:getAlertingRules", {}, opts);
|
|
22
|
+
}
|
|
23
|
+
exports.getAlertingRulesOutput = getAlertingRulesOutput;
|
|
24
|
+
//# sourceMappingURL=getAlertingRules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAlertingRules.js","sourceRoot":"","sources":["../../vmp/getAlertingRules.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,gBAAgB,CAAC,IAA2B;IACxD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oDAAoD,EAAE,EAClF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,4CAIC;AAeD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,IAAiC;IACpE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,oDAAoD,EAAE,EACxF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,wDAIC"}
|
package/vmp/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export { AlertingRuleArgs, AlertingRuleState } from "./alertingRule";
|
|
2
|
+
export type AlertingRule = import("./alertingRule").AlertingRule;
|
|
3
|
+
export declare const AlertingRule: typeof import("./alertingRule").AlertingRule;
|
|
4
|
+
export { GetAlertingRuleArgs, GetAlertingRuleResult, GetAlertingRuleOutputArgs } from "./getAlertingRule";
|
|
5
|
+
export declare const getAlertingRule: typeof import("./getAlertingRule").getAlertingRule;
|
|
6
|
+
export declare const getAlertingRuleOutput: typeof import("./getAlertingRule").getAlertingRuleOutput;
|
|
7
|
+
export { GetAlertingRulesResult } from "./getAlertingRules";
|
|
8
|
+
export declare const getAlertingRules: typeof import("./getAlertingRules").getAlertingRules;
|
|
9
|
+
export declare const getAlertingRulesOutput: typeof import("./getAlertingRules").getAlertingRulesOutput;
|
|
1
10
|
export { GetWorkspaceArgs, GetWorkspaceResult, GetWorkspaceOutputArgs } from "./getWorkspace";
|
|
2
11
|
export declare const getWorkspace: typeof import("./getWorkspace").getWorkspace;
|
|
3
12
|
export declare const getWorkspaceOutput: typeof import("./getWorkspace").getWorkspaceOutput;
|
package/vmp/index.js
CHANGED
|
@@ -2,9 +2,17 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Workspace = exports.getWorkspacesOutput = exports.getWorkspaces = exports.getWorkspaceOutput = exports.getWorkspace = void 0;
|
|
5
|
+
exports.Workspace = exports.getWorkspacesOutput = exports.getWorkspaces = exports.getWorkspaceOutput = exports.getWorkspace = exports.getAlertingRulesOutput = exports.getAlertingRules = exports.getAlertingRuleOutput = exports.getAlertingRule = exports.AlertingRule = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
|
+
exports.AlertingRule = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["AlertingRule"], () => require("./alertingRule"));
|
|
10
|
+
exports.getAlertingRule = null;
|
|
11
|
+
exports.getAlertingRuleOutput = null;
|
|
12
|
+
utilities.lazyLoad(exports, ["getAlertingRule", "getAlertingRuleOutput"], () => require("./getAlertingRule"));
|
|
13
|
+
exports.getAlertingRules = null;
|
|
14
|
+
exports.getAlertingRulesOutput = null;
|
|
15
|
+
utilities.lazyLoad(exports, ["getAlertingRules", "getAlertingRulesOutput"], () => require("./getAlertingRules"));
|
|
8
16
|
exports.getWorkspace = null;
|
|
9
17
|
exports.getWorkspaceOutput = null;
|
|
10
18
|
utilities.lazyLoad(exports, ["getWorkspace", "getWorkspaceOutput"], () => require("./getWorkspace"));
|
|
@@ -17,6 +25,8 @@ const _module = {
|
|
|
17
25
|
version: utilities.getVersion(),
|
|
18
26
|
construct: (name, type, urn) => {
|
|
19
27
|
switch (type) {
|
|
28
|
+
case "volcenginecc:vmp/alertingRule:AlertingRule":
|
|
29
|
+
return new exports.AlertingRule(name, undefined, { urn });
|
|
20
30
|
case "volcenginecc:vmp/workspace:Workspace":
|
|
21
31
|
return new exports.Workspace(name, undefined, { urn });
|
|
22
32
|
default:
|
|
@@ -24,5 +34,6 @@ const _module = {
|
|
|
24
34
|
}
|
|
25
35
|
},
|
|
26
36
|
};
|
|
37
|
+
pulumi.runtime.registerResourceModule("volcenginecc", "vmp/alertingRule", _module);
|
|
27
38
|
pulumi.runtime.registerResourceModule("volcenginecc", "vmp/workspace", _module);
|
|
28
39
|
//# sourceMappingURL=index.js.map
|
package/vmp/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../vmp/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../vmp/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,YAAY,GAAiD,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAGlE,QAAA,eAAe,GAAuD,IAAW,CAAC;AAClF,QAAA,qBAAqB,GAA6D,IAAW,CAAC;AAC3G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,iBAAiB,EAAC,uBAAuB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAGhG,QAAA,gBAAgB,GAAyD,IAAW,CAAC;AACrF,QAAA,sBAAsB,GAA+D,IAAW,CAAC;AAC9G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,kBAAkB,EAAC,wBAAwB,CAA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