@pulumiverse/grafana 0.2.1 → 0.2.2-alpha.1710103057
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/cloudAccessPolicy.d.ts +7 -1
- package/cloudAccessPolicy.js +7 -1
- package/cloudAccessPolicy.js.map +1 -1
- package/cloudAccessPolicyToken.d.ts +12 -0
- package/cloudAccessPolicyToken.js +12 -0
- package/cloudAccessPolicyToken.js.map +1 -1
- package/cloudApiKey.d.ts +9 -1
- package/cloudApiKey.js +9 -1
- package/cloudApiKey.js.map +1 -1
- package/cloudPluginInstallation.d.ts +7 -1
- package/cloudPluginInstallation.js +7 -1
- package/cloudPluginInstallation.js.map +1 -1
- package/cloudStack.d.ts +47 -10
- package/cloudStack.js +18 -0
- package/cloudStack.js.map +1 -1
- package/cloudStackServiceAccount.d.ts +5 -2
- package/cloudStackServiceAccount.js +5 -2
- package/cloudStackServiceAccount.js.map +1 -1
- package/cloudStackServiceAccountToken.d.ts +4 -2
- package/cloudStackServiceAccountToken.js +4 -2
- package/cloudStackServiceAccountToken.js.map +1 -1
- package/config/vars.d.ts +5 -1
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/contactPoint.d.ts +51 -3
- package/contactPoint.js +8 -0
- package/contactPoint.js.map +1 -1
- package/dashboard.d.ts +11 -2
- package/dashboard.js +11 -2
- package/dashboard.js.map +1 -1
- package/dashboardPermission.d.ts +13 -6
- package/dashboardPermission.js +10 -6
- package/dashboardPermission.js.map +1 -1
- package/dashboardPublic.d.ts +197 -0
- package/dashboardPublic.js +131 -0
- package/dashboardPublic.js.map +1 -0
- package/dataSource.d.ts +1 -1
- package/dataSource.js +1 -1
- package/dataSourcePermission.d.ts +4 -3
- package/dataSourcePermission.js +2 -4
- package/dataSourcePermission.js.map +1 -1
- package/folder.d.ts +12 -0
- package/folder.js +2 -0
- package/folder.js.map +1 -1
- package/folderPermission.d.ts +18 -3
- package/folderPermission.js +16 -4
- package/folderPermission.js.map +1 -1
- package/getCloudOrganization.d.ts +24 -0
- package/getCloudOrganization.js +24 -0
- package/getCloudOrganization.js.map +1 -1
- package/getCloudStack.d.ts +15 -1
- package/getCloudStack.js.map +1 -1
- package/getDashboard.d.ts +12 -0
- package/getDashboard.js +1 -0
- package/getDashboard.js.map +1 -1
- package/getDashboards.d.ts +12 -0
- package/getDashboards.js +1 -0
- package/getDashboards.js.map +1 -1
- package/getFolder.d.ts +12 -0
- package/getFolder.js +1 -0
- package/getFolder.js.map +1 -1
- package/getFolders.d.ts +24 -2
- package/getFolders.js +7 -4
- package/getFolders.js.map +1 -1
- package/getOncallSchedule.d.ts +2 -2
- package/getOncallSchedule.js +2 -2
- package/getOrganizationPreferences.d.ts +26 -6
- package/getOrganizationPreferences.js +7 -4
- package/getOrganizationPreferences.js.map +1 -1
- package/getServiceAccount.d.ts +62 -0
- package/getServiceAccount.js +28 -0
- package/getServiceAccount.js.map +1 -0
- package/index.d.ts +11 -2
- package/index.js +16 -3
- package/index.js.map +1 -1
- package/libraryPanel.d.ts +9 -3
- package/libraryPanel.js +9 -3
- package/libraryPanel.js.map +1 -1
- package/messageTemplate.d.ts +24 -0
- package/messageTemplate.js +4 -0
- package/messageTemplate.js.map +1 -1
- package/muteTiming.d.ts +16 -3
- package/muteTiming.js +3 -0
- package/muteTiming.js.map +1 -1
- package/notificationPolicy.d.ts +41 -5
- package/notificationPolicy.js +21 -5
- package/notificationPolicy.js.map +1 -1
- package/oncallEscalation.d.ts +1 -1
- package/oncallEscalation.js +1 -1
- package/oncallIntegration.d.ts +6 -6
- package/oncallOnCallShift.d.ts +3 -3
- package/oncallOutgoingWebhook.d.ts +78 -6
- package/oncallOutgoingWebhook.js +12 -0
- package/oncallOutgoingWebhook.js.map +1 -1
- package/organization.d.ts +18 -0
- package/organization.js +2 -0
- package/organization.js.map +1 -1
- package/organizationPreference.d.ts +16 -10
- package/organizationPreference.js +1 -1
- package/organizationPreference.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/playlist.d.ts +25 -0
- package/playlist.js +25 -0
- package/playlist.js.map +1 -1
- package/provider.d.ts +14 -2
- package/provider.js +2 -1
- package/provider.js.map +1 -1
- package/report.d.ts +29 -5
- package/report.js +4 -2
- package/report.js.map +1 -1
- package/roleAssignment.d.ts +1 -0
- package/roleAssignment.js +1 -0
- package/roleAssignment.js.map +1 -1
- package/ruleGroup.d.ts +17 -5
- package/ruleGroup.js +2 -3
- package/ruleGroup.js.map +1 -1
- package/serviceAccountPermission.d.ts +4 -2
- package/serviceAccountPermission.js +2 -3
- package/serviceAccountPermission.js.map +1 -1
- package/serviceAccountToken.d.ts +48 -2
- package/serviceAccountToken.js +3 -2
- package/serviceAccountToken.js.map +1 -1
- package/slo.d.ts +12 -0
- package/slo.js +2 -0
- package/slo.js.map +1 -1
- package/ssoSettings.d.ts +85 -0
- package/ssoSettings.js +80 -0
- package/ssoSettings.js.map +1 -0
- package/syntheticMonitoringInstallation.d.ts +45 -10
- package/syntheticMonitoringInstallation.js +42 -7
- package/syntheticMonitoringInstallation.js.map +1 -1
- package/team.d.ts +6 -1
- package/team.js +6 -1
- package/team.js.map +1 -1
- package/teamExternalGroup.d.ts +3 -2
- package/teamExternalGroup.js +3 -2
- package/teamExternalGroup.js.map +1 -1
- package/types/input.d.ts +441 -3
- package/types/output.d.ts +446 -3
package/libraryPanel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libraryPanel.js","sourceRoot":"","sources":["../libraryPanel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"libraryPanel.js","sourceRoot":"","sources":["../libraryPanel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,YAA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BAAgB;AACO,yBAAY,GAAG,yCAAyC,CAAC"}
|
package/messageTemplate.d.ts
CHANGED
|
@@ -41,10 +41,18 @@ export declare class MessageTemplate extends pulumi.CustomResource {
|
|
|
41
41
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
42
|
*/
|
|
43
43
|
static isInstance(obj: any): obj is MessageTemplate;
|
|
44
|
+
/**
|
|
45
|
+
* Allow modifying the message template from other sources than Terraform or the Grafana API.
|
|
46
|
+
*/
|
|
47
|
+
readonly disableProvenance: pulumi.Output<boolean | undefined>;
|
|
44
48
|
/**
|
|
45
49
|
* The name of the message template.
|
|
46
50
|
*/
|
|
47
51
|
readonly name: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
54
|
+
*/
|
|
55
|
+
readonly orgId: pulumi.Output<string | undefined>;
|
|
48
56
|
/**
|
|
49
57
|
* The content of the message template.
|
|
50
58
|
*/
|
|
@@ -62,10 +70,18 @@ export declare class MessageTemplate extends pulumi.CustomResource {
|
|
|
62
70
|
* Input properties used for looking up and filtering MessageTemplate resources.
|
|
63
71
|
*/
|
|
64
72
|
export interface MessageTemplateState {
|
|
73
|
+
/**
|
|
74
|
+
* Allow modifying the message template from other sources than Terraform or the Grafana API.
|
|
75
|
+
*/
|
|
76
|
+
disableProvenance?: pulumi.Input<boolean>;
|
|
65
77
|
/**
|
|
66
78
|
* The name of the message template.
|
|
67
79
|
*/
|
|
68
80
|
name?: pulumi.Input<string>;
|
|
81
|
+
/**
|
|
82
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
83
|
+
*/
|
|
84
|
+
orgId?: pulumi.Input<string>;
|
|
69
85
|
/**
|
|
70
86
|
* The content of the message template.
|
|
71
87
|
*/
|
|
@@ -75,10 +91,18 @@ export interface MessageTemplateState {
|
|
|
75
91
|
* The set of arguments for constructing a MessageTemplate resource.
|
|
76
92
|
*/
|
|
77
93
|
export interface MessageTemplateArgs {
|
|
94
|
+
/**
|
|
95
|
+
* Allow modifying the message template from other sources than Terraform or the Grafana API.
|
|
96
|
+
*/
|
|
97
|
+
disableProvenance?: pulumi.Input<boolean>;
|
|
78
98
|
/**
|
|
79
99
|
* The name of the message template.
|
|
80
100
|
*/
|
|
81
101
|
name?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
104
|
+
*/
|
|
105
|
+
orgId?: pulumi.Input<string>;
|
|
82
106
|
/**
|
|
83
107
|
* The content of the message template.
|
|
84
108
|
*/
|
package/messageTemplate.js
CHANGED
|
@@ -59,7 +59,9 @@ class MessageTemplate extends pulumi.CustomResource {
|
|
|
59
59
|
opts = opts || {};
|
|
60
60
|
if (opts.id) {
|
|
61
61
|
const state = argsOrState;
|
|
62
|
+
resourceInputs["disableProvenance"] = state ? state.disableProvenance : undefined;
|
|
62
63
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
64
|
+
resourceInputs["orgId"] = state ? state.orgId : undefined;
|
|
63
65
|
resourceInputs["template"] = state ? state.template : undefined;
|
|
64
66
|
}
|
|
65
67
|
else {
|
|
@@ -67,7 +69,9 @@ class MessageTemplate extends pulumi.CustomResource {
|
|
|
67
69
|
if ((!args || args.template === undefined) && !opts.urn) {
|
|
68
70
|
throw new Error("Missing required property 'template'");
|
|
69
71
|
}
|
|
72
|
+
resourceInputs["disableProvenance"] = args ? args.disableProvenance : undefined;
|
|
70
73
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
74
|
+
resourceInputs["orgId"] = args ? args.orgId : undefined;
|
|
71
75
|
resourceInputs["template"] = args ? args.template : undefined;
|
|
72
76
|
}
|
|
73
77
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/messageTemplate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageTemplate.js","sourceRoot":"","sources":["../messageTemplate.ts"],"names":[],"mappings":";AAA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C,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA1EL,0CA2EC;AA7DG,gBAAgB;AACO,4BAAY,GAAG,+CAA+C,CAAC"}
|
package/muteTiming.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import * as outputs from "./types/output";
|
|
|
20
20
|
* "1:7",
|
|
21
21
|
* "-1",
|
|
22
22
|
* ],
|
|
23
|
+
* location: "America/New_York",
|
|
23
24
|
* months: [
|
|
24
25
|
* "1:3",
|
|
25
26
|
* "december",
|
|
@@ -62,13 +63,17 @@ export declare class MuteTiming extends pulumi.CustomResource {
|
|
|
62
63
|
*/
|
|
63
64
|
static isInstance(obj: any): obj is MuteTiming;
|
|
64
65
|
/**
|
|
65
|
-
* The time intervals at which to mute notifications.
|
|
66
|
+
* The time intervals at which to mute notifications. Use an empty block to mute all the time.
|
|
66
67
|
*/
|
|
67
68
|
readonly intervals: pulumi.Output<outputs.MuteTimingInterval[] | undefined>;
|
|
68
69
|
/**
|
|
69
70
|
* The name of the mute timing.
|
|
70
71
|
*/
|
|
71
72
|
readonly name: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
75
|
+
*/
|
|
76
|
+
readonly orgId: pulumi.Output<string | undefined>;
|
|
72
77
|
/**
|
|
73
78
|
* Create a MuteTiming resource with the given unique name, arguments, and options.
|
|
74
79
|
*
|
|
@@ -83,24 +88,32 @@ export declare class MuteTiming extends pulumi.CustomResource {
|
|
|
83
88
|
*/
|
|
84
89
|
export interface MuteTimingState {
|
|
85
90
|
/**
|
|
86
|
-
* The time intervals at which to mute notifications.
|
|
91
|
+
* The time intervals at which to mute notifications. Use an empty block to mute all the time.
|
|
87
92
|
*/
|
|
88
93
|
intervals?: pulumi.Input<pulumi.Input<inputs.MuteTimingInterval>[]>;
|
|
89
94
|
/**
|
|
90
95
|
* The name of the mute timing.
|
|
91
96
|
*/
|
|
92
97
|
name?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
100
|
+
*/
|
|
101
|
+
orgId?: pulumi.Input<string>;
|
|
93
102
|
}
|
|
94
103
|
/**
|
|
95
104
|
* The set of arguments for constructing a MuteTiming resource.
|
|
96
105
|
*/
|
|
97
106
|
export interface MuteTimingArgs {
|
|
98
107
|
/**
|
|
99
|
-
* The time intervals at which to mute notifications.
|
|
108
|
+
* The time intervals at which to mute notifications. Use an empty block to mute all the time.
|
|
100
109
|
*/
|
|
101
110
|
intervals?: pulumi.Input<pulumi.Input<inputs.MuteTimingInterval>[]>;
|
|
102
111
|
/**
|
|
103
112
|
* The name of the mute timing.
|
|
104
113
|
*/
|
|
105
114
|
name?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
117
|
+
*/
|
|
118
|
+
orgId?: pulumi.Input<string>;
|
|
106
119
|
}
|
package/muteTiming.js
CHANGED
|
@@ -24,6 +24,7 @@ const utilities = require("./utilities");
|
|
|
24
24
|
* "1:7",
|
|
25
25
|
* "-1",
|
|
26
26
|
* ],
|
|
27
|
+
* location: "America/New_York",
|
|
27
28
|
* months: [
|
|
28
29
|
* "1:3",
|
|
29
30
|
* "december",
|
|
@@ -79,11 +80,13 @@ class MuteTiming extends pulumi.CustomResource {
|
|
|
79
80
|
const state = argsOrState;
|
|
80
81
|
resourceInputs["intervals"] = state ? state.intervals : undefined;
|
|
81
82
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
83
|
+
resourceInputs["orgId"] = state ? state.orgId : undefined;
|
|
82
84
|
}
|
|
83
85
|
else {
|
|
84
86
|
const args = argsOrState;
|
|
85
87
|
resourceInputs["intervals"] = args ? args.intervals : undefined;
|
|
86
88
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
89
|
+
resourceInputs["orgId"] = args ? args.orgId : undefined;
|
|
87
90
|
}
|
|
88
91
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
89
92
|
super(MuteTiming.__pulumiType, name, resourceInputs, opts);
|
package/muteTiming.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muteTiming.js","sourceRoot":"","sources":["../muteTiming.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"muteTiming.js","sourceRoot":"","sources":["../muteTiming.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG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|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
38
|
+
* matchers: [
|
|
39
|
+
* {
|
|
40
|
+
* label: "mylabel",
|
|
41
|
+
* match: "=",
|
|
42
|
+
* value: "myvalue",
|
|
43
|
+
* },
|
|
44
|
+
* {
|
|
45
|
+
* label: "alertname",
|
|
46
|
+
* match: "=",
|
|
47
|
+
* value: "CPU Usage",
|
|
48
|
+
* },
|
|
49
|
+
* {
|
|
50
|
+
* label: "Name",
|
|
51
|
+
* match: "=~",
|
|
52
|
+
* value: "host.*|host-b.*",
|
|
53
|
+
* },
|
|
54
|
+
* ],
|
|
43
55
|
* contactPoint: aContactPoint.name,
|
|
44
56
|
* "continue": true,
|
|
45
57
|
* muteTimings: [aMuteTiming.name],
|
|
@@ -97,6 +109,10 @@ export declare class NotificationPolicy extends pulumi.CustomResource {
|
|
|
97
109
|
* The contact point to route notifications that match this rule to.
|
|
98
110
|
*/
|
|
99
111
|
readonly contactPoint: pulumi.Output<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Allow modifying the notification policy from other sources than Terraform or the Grafana API.
|
|
114
|
+
*/
|
|
115
|
+
readonly disableProvenance: pulumi.Output<boolean | undefined>;
|
|
100
116
|
/**
|
|
101
117
|
* A list of alert labels to group alerts into notifications by. Use the special label `...` to group alerts by all labels, effectively disabling grouping. Required for root policy only. If empty, the parent grouping is used.
|
|
102
118
|
*/
|
|
@@ -109,6 +125,10 @@ export declare class NotificationPolicy extends pulumi.CustomResource {
|
|
|
109
125
|
* Time to wait to buffer alerts of the same group before sending a notification. Default is 30 seconds.
|
|
110
126
|
*/
|
|
111
127
|
readonly groupWait: pulumi.Output<string | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
130
|
+
*/
|
|
131
|
+
readonly orgId: pulumi.Output<string | undefined>;
|
|
112
132
|
/**
|
|
113
133
|
* Routing rules for specific label sets.
|
|
114
134
|
*/
|
|
@@ -134,6 +154,10 @@ export interface NotificationPolicyState {
|
|
|
134
154
|
* The contact point to route notifications that match this rule to.
|
|
135
155
|
*/
|
|
136
156
|
contactPoint?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Allow modifying the notification policy from other sources than Terraform or the Grafana API.
|
|
159
|
+
*/
|
|
160
|
+
disableProvenance?: pulumi.Input<boolean>;
|
|
137
161
|
/**
|
|
138
162
|
* A list of alert labels to group alerts into notifications by. Use the special label `...` to group alerts by all labels, effectively disabling grouping. Required for root policy only. If empty, the parent grouping is used.
|
|
139
163
|
*/
|
|
@@ -146,6 +170,10 @@ export interface NotificationPolicyState {
|
|
|
146
170
|
* Time to wait to buffer alerts of the same group before sending a notification. Default is 30 seconds.
|
|
147
171
|
*/
|
|
148
172
|
groupWait?: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
175
|
+
*/
|
|
176
|
+
orgId?: pulumi.Input<string>;
|
|
149
177
|
/**
|
|
150
178
|
* Routing rules for specific label sets.
|
|
151
179
|
*/
|
|
@@ -163,6 +191,10 @@ export interface NotificationPolicyArgs {
|
|
|
163
191
|
* The contact point to route notifications that match this rule to.
|
|
164
192
|
*/
|
|
165
193
|
contactPoint: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* Allow modifying the notification policy from other sources than Terraform or the Grafana API.
|
|
196
|
+
*/
|
|
197
|
+
disableProvenance?: pulumi.Input<boolean>;
|
|
166
198
|
/**
|
|
167
199
|
* A list of alert labels to group alerts into notifications by. Use the special label `...` to group alerts by all labels, effectively disabling grouping. Required for root policy only. If empty, the parent grouping is used.
|
|
168
200
|
*/
|
|
@@ -175,6 +207,10 @@ export interface NotificationPolicyArgs {
|
|
|
175
207
|
* Time to wait to buffer alerts of the same group before sending a notification. Default is 30 seconds.
|
|
176
208
|
*/
|
|
177
209
|
groupWait?: pulumi.Input<string>;
|
|
210
|
+
/**
|
|
211
|
+
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
212
|
+
*/
|
|
213
|
+
orgId?: pulumi.Input<string>;
|
|
178
214
|
/**
|
|
179
215
|
* Routing rules for specific label sets.
|
|
180
216
|
*/
|
package/notificationPolicy.js
CHANGED
|
@@ -39,11 +39,23 @@ const utilities = require("./utilities");
|
|
|
39
39
|
* repeatInterval: "3h",
|
|
40
40
|
* policies: [
|
|
41
41
|
* {
|
|
42
|
-
* matchers: [
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
42
|
+
* matchers: [
|
|
43
|
+
* {
|
|
44
|
+
* label: "mylabel",
|
|
45
|
+
* match: "=",
|
|
46
|
+
* value: "myvalue",
|
|
47
|
+
* },
|
|
48
|
+
* {
|
|
49
|
+
* label: "alertname",
|
|
50
|
+
* match: "=",
|
|
51
|
+
* value: "CPU Usage",
|
|
52
|
+
* },
|
|
53
|
+
* {
|
|
54
|
+
* label: "Name",
|
|
55
|
+
* match: "=~",
|
|
56
|
+
* value: "host.*|host-b.*",
|
|
57
|
+
* },
|
|
58
|
+
* ],
|
|
47
59
|
* contactPoint: aContactPoint.name,
|
|
48
60
|
* "continue": true,
|
|
49
61
|
* muteTimings: [aMuteTiming.name],
|
|
@@ -110,9 +122,11 @@ class NotificationPolicy extends pulumi.CustomResource {
|
|
|
110
122
|
if (opts.id) {
|
|
111
123
|
const state = argsOrState;
|
|
112
124
|
resourceInputs["contactPoint"] = state ? state.contactPoint : undefined;
|
|
125
|
+
resourceInputs["disableProvenance"] = state ? state.disableProvenance : undefined;
|
|
113
126
|
resourceInputs["groupBies"] = state ? state.groupBies : undefined;
|
|
114
127
|
resourceInputs["groupInterval"] = state ? state.groupInterval : undefined;
|
|
115
128
|
resourceInputs["groupWait"] = state ? state.groupWait : undefined;
|
|
129
|
+
resourceInputs["orgId"] = state ? state.orgId : undefined;
|
|
116
130
|
resourceInputs["policies"] = state ? state.policies : undefined;
|
|
117
131
|
resourceInputs["repeatInterval"] = state ? state.repeatInterval : undefined;
|
|
118
132
|
}
|
|
@@ -125,9 +139,11 @@ class NotificationPolicy extends pulumi.CustomResource {
|
|
|
125
139
|
throw new Error("Missing required property 'groupBies'");
|
|
126
140
|
}
|
|
127
141
|
resourceInputs["contactPoint"] = args ? args.contactPoint : undefined;
|
|
142
|
+
resourceInputs["disableProvenance"] = args ? args.disableProvenance : undefined;
|
|
128
143
|
resourceInputs["groupBies"] = args ? args.groupBies : undefined;
|
|
129
144
|
resourceInputs["groupInterval"] = args ? args.groupInterval : undefined;
|
|
130
145
|
resourceInputs["groupWait"] = args ? args.groupWait : undefined;
|
|
146
|
+
resourceInputs["orgId"] = args ? args.orgId : undefined;
|
|
131
147
|
resourceInputs["policies"] = args ? args.policies : undefined;
|
|
132
148
|
resourceInputs["repeatInterval"] = args ? args.repeatInterval : undefined;
|
|
133
149
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationPolicy.js","sourceRoot":"","sources":["../notificationPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"notificationPolicy.js","sourceRoot":"","sources":["../notificationPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG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AAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AArGL,gDAsGC;AAxFG,gBAAgB;AACO,+BAAY,GAAG,qDAAqD,CAAC"}
|
package/oncallEscalation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* * [Official documentation](https://grafana.com/docs/oncall/latest/escalation-chains-and-routes/)
|
|
3
|
+
* * [Official documentation](https://grafana.com/docs/oncall/latest/configure/escalation-chains-and-routes/)
|
|
4
4
|
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/escalation_policies/)
|
|
5
5
|
*
|
|
6
6
|
* ## Example Usage
|
package/oncallEscalation.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.OncallEscalation = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* * [Official documentation](https://grafana.com/docs/oncall/latest/escalation-chains-and-routes/)
|
|
9
|
+
* * [Official documentation](https://grafana.com/docs/oncall/latest/configure/escalation-chains-and-routes/)
|
|
10
10
|
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/escalation_policies/)
|
|
11
11
|
*
|
|
12
12
|
* ## Example Usage
|
package/oncallIntegration.d.ts
CHANGED
|
@@ -44,11 +44,11 @@ export declare class OncallIntegration extends pulumi.CustomResource {
|
|
|
44
44
|
*/
|
|
45
45
|
readonly teamId: pulumi.Output<string | undefined>;
|
|
46
46
|
/**
|
|
47
|
-
* Jinja2 templates for Alert payload.
|
|
47
|
+
* Jinja2 templates for Alert payload. An empty templates block will be ignored.
|
|
48
48
|
*/
|
|
49
49
|
readonly templates: pulumi.Output<outputs.OncallIntegrationTemplates | undefined>;
|
|
50
50
|
/**
|
|
51
|
-
* The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging.
|
|
51
|
+
* The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging, jira.
|
|
52
52
|
*/
|
|
53
53
|
readonly type: pulumi.Output<string>;
|
|
54
54
|
/**
|
|
@@ -81,11 +81,11 @@ export interface OncallIntegrationState {
|
|
|
81
81
|
*/
|
|
82
82
|
teamId?: pulumi.Input<string>;
|
|
83
83
|
/**
|
|
84
|
-
* Jinja2 templates for Alert payload.
|
|
84
|
+
* Jinja2 templates for Alert payload. An empty templates block will be ignored.
|
|
85
85
|
*/
|
|
86
86
|
templates?: pulumi.Input<inputs.OncallIntegrationTemplates>;
|
|
87
87
|
/**
|
|
88
|
-
* The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging.
|
|
88
|
+
* The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging, jira.
|
|
89
89
|
*/
|
|
90
90
|
type?: pulumi.Input<string>;
|
|
91
91
|
}
|
|
@@ -106,11 +106,11 @@ export interface OncallIntegrationArgs {
|
|
|
106
106
|
*/
|
|
107
107
|
teamId?: pulumi.Input<string>;
|
|
108
108
|
/**
|
|
109
|
-
* Jinja2 templates for Alert payload.
|
|
109
|
+
* Jinja2 templates for Alert payload. An empty templates block will be ignored.
|
|
110
110
|
*/
|
|
111
111
|
templates?: pulumi.Input<inputs.OncallIntegrationTemplates>;
|
|
112
112
|
/**
|
|
113
|
-
* The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging.
|
|
113
|
+
* The type of integration. Can be grafana, grafana*alerting, webhook, alertmanager, kapacitor, fabric, newrelic, datadog, pagerduty, pingdom, elastalert, amazon*sns, curler, sentry, formatted*webhook, heartbeat, demo, manual, stackdriver, uptimerobot, sentry*platform, zabbix, prtg, slack*channel, inbound*email, direct_paging, jira.
|
|
114
114
|
*/
|
|
115
115
|
type: pulumi.Input<string>;
|
|
116
116
|
}
|
package/oncallOnCallShift.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export declare class OncallOnCallShift extends pulumi.CustomResource {
|
|
|
41
41
|
*/
|
|
42
42
|
readonly duration: pulumi.Output<number>;
|
|
43
43
|
/**
|
|
44
|
-
* The frequency of the event. Can be daily, weekly, monthly
|
|
44
|
+
* The frequency of the event. Can be hourly, daily, weekly, monthly
|
|
45
45
|
*/
|
|
46
46
|
readonly frequency: pulumi.Output<string | undefined>;
|
|
47
47
|
/**
|
|
@@ -118,7 +118,7 @@ export interface OncallOnCallShiftState {
|
|
|
118
118
|
*/
|
|
119
119
|
duration?: pulumi.Input<number>;
|
|
120
120
|
/**
|
|
121
|
-
* The frequency of the event. Can be daily, weekly, monthly
|
|
121
|
+
* The frequency of the event. Can be hourly, daily, weekly, monthly
|
|
122
122
|
*/
|
|
123
123
|
frequency?: pulumi.Input<string>;
|
|
124
124
|
/**
|
|
@@ -187,7 +187,7 @@ export interface OncallOnCallShiftArgs {
|
|
|
187
187
|
*/
|
|
188
188
|
duration: pulumi.Input<number>;
|
|
189
189
|
/**
|
|
190
|
-
* The frequency of the event. Can be daily, weekly, monthly
|
|
190
|
+
* The frequency of the event. Can be hourly, daily, weekly, monthly
|
|
191
191
|
*/
|
|
192
192
|
frequency?: pulumi.Input<string>;
|
|
193
193
|
/**
|
|
@@ -44,9 +44,25 @@ export declare class OncallOutgoingWebhook extends pulumi.CustomResource {
|
|
|
44
44
|
*/
|
|
45
45
|
readonly data: pulumi.Output<string | undefined>;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Toggle to send the entire webhook payload instead of using the values in the Data field.
|
|
48
48
|
*/
|
|
49
49
|
readonly forwardWholePayload: pulumi.Output<boolean | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* Headers to add to the outgoing webhook request.
|
|
52
|
+
*/
|
|
53
|
+
readonly headers: pulumi.Output<string | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* The HTTP method used in the request made by the outgoing webhook. Defaults to `POST`.
|
|
56
|
+
*/
|
|
57
|
+
readonly httpMethod: pulumi.Output<string | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Restricts the outgoing webhook to only trigger if the event came from a selected integration. If no integrations are selected the outgoing webhook will trigger for any integration.
|
|
60
|
+
*/
|
|
61
|
+
readonly integrationFilters: pulumi.Output<string[] | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* Controls whether the outgoing webhook will trigger or is ignored. The default is `true`.
|
|
64
|
+
*/
|
|
65
|
+
readonly isWebhookEnabled: pulumi.Output<boolean | undefined>;
|
|
50
66
|
/**
|
|
51
67
|
* The name of the outgoing webhook.
|
|
52
68
|
*/
|
|
@@ -59,12 +75,20 @@ export declare class OncallOutgoingWebhook extends pulumi.CustomResource {
|
|
|
59
75
|
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
60
76
|
*/
|
|
61
77
|
readonly teamId: pulumi.Output<string | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* A template used to dynamically determine whether the webhook should execute based on the content of the payload.
|
|
80
|
+
*/
|
|
81
|
+
readonly triggerTemplate: pulumi.Output<string | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* The type of event that will cause this outgoing webhook to execute. The types of triggers are: `escalation`, `alert group created`, `acknowledge`, `resolve`, `silence`, `unsilence`, `unresolve`, `unacknowledge`. Defaults to `escalation`.
|
|
84
|
+
*/
|
|
85
|
+
readonly triggerType: pulumi.Output<string | undefined>;
|
|
62
86
|
/**
|
|
63
87
|
* The webhook URL.
|
|
64
88
|
*/
|
|
65
89
|
readonly url: pulumi.Output<string>;
|
|
66
90
|
/**
|
|
67
|
-
*
|
|
91
|
+
* Username to use when making the outgoing webhook request.
|
|
68
92
|
*/
|
|
69
93
|
readonly user: pulumi.Output<string | undefined>;
|
|
70
94
|
/**
|
|
@@ -89,9 +113,25 @@ export interface OncallOutgoingWebhookState {
|
|
|
89
113
|
*/
|
|
90
114
|
data?: pulumi.Input<string>;
|
|
91
115
|
/**
|
|
92
|
-
*
|
|
116
|
+
* Toggle to send the entire webhook payload instead of using the values in the Data field.
|
|
93
117
|
*/
|
|
94
118
|
forwardWholePayload?: pulumi.Input<boolean>;
|
|
119
|
+
/**
|
|
120
|
+
* Headers to add to the outgoing webhook request.
|
|
121
|
+
*/
|
|
122
|
+
headers?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The HTTP method used in the request made by the outgoing webhook. Defaults to `POST`.
|
|
125
|
+
*/
|
|
126
|
+
httpMethod?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* Restricts the outgoing webhook to only trigger if the event came from a selected integration. If no integrations are selected the outgoing webhook will trigger for any integration.
|
|
129
|
+
*/
|
|
130
|
+
integrationFilters?: pulumi.Input<pulumi.Input<string>[]>;
|
|
131
|
+
/**
|
|
132
|
+
* Controls whether the outgoing webhook will trigger or is ignored. The default is `true`.
|
|
133
|
+
*/
|
|
134
|
+
isWebhookEnabled?: pulumi.Input<boolean>;
|
|
95
135
|
/**
|
|
96
136
|
* The name of the outgoing webhook.
|
|
97
137
|
*/
|
|
@@ -104,12 +144,20 @@ export interface OncallOutgoingWebhookState {
|
|
|
104
144
|
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
105
145
|
*/
|
|
106
146
|
teamId?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* A template used to dynamically determine whether the webhook should execute based on the content of the payload.
|
|
149
|
+
*/
|
|
150
|
+
triggerTemplate?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* The type of event that will cause this outgoing webhook to execute. The types of triggers are: `escalation`, `alert group created`, `acknowledge`, `resolve`, `silence`, `unsilence`, `unresolve`, `unacknowledge`. Defaults to `escalation`.
|
|
153
|
+
*/
|
|
154
|
+
triggerType?: pulumi.Input<string>;
|
|
107
155
|
/**
|
|
108
156
|
* The webhook URL.
|
|
109
157
|
*/
|
|
110
158
|
url?: pulumi.Input<string>;
|
|
111
159
|
/**
|
|
112
|
-
*
|
|
160
|
+
* Username to use when making the outgoing webhook request.
|
|
113
161
|
*/
|
|
114
162
|
user?: pulumi.Input<string>;
|
|
115
163
|
}
|
|
@@ -126,9 +174,25 @@ export interface OncallOutgoingWebhookArgs {
|
|
|
126
174
|
*/
|
|
127
175
|
data?: pulumi.Input<string>;
|
|
128
176
|
/**
|
|
129
|
-
*
|
|
177
|
+
* Toggle to send the entire webhook payload instead of using the values in the Data field.
|
|
130
178
|
*/
|
|
131
179
|
forwardWholePayload?: pulumi.Input<boolean>;
|
|
180
|
+
/**
|
|
181
|
+
* Headers to add to the outgoing webhook request.
|
|
182
|
+
*/
|
|
183
|
+
headers?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* The HTTP method used in the request made by the outgoing webhook. Defaults to `POST`.
|
|
186
|
+
*/
|
|
187
|
+
httpMethod?: pulumi.Input<string>;
|
|
188
|
+
/**
|
|
189
|
+
* Restricts the outgoing webhook to only trigger if the event came from a selected integration. If no integrations are selected the outgoing webhook will trigger for any integration.
|
|
190
|
+
*/
|
|
191
|
+
integrationFilters?: pulumi.Input<pulumi.Input<string>[]>;
|
|
192
|
+
/**
|
|
193
|
+
* Controls whether the outgoing webhook will trigger or is ignored. The default is `true`.
|
|
194
|
+
*/
|
|
195
|
+
isWebhookEnabled?: pulumi.Input<boolean>;
|
|
132
196
|
/**
|
|
133
197
|
* The name of the outgoing webhook.
|
|
134
198
|
*/
|
|
@@ -141,12 +205,20 @@ export interface OncallOutgoingWebhookArgs {
|
|
|
141
205
|
* The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource.
|
|
142
206
|
*/
|
|
143
207
|
teamId?: pulumi.Input<string>;
|
|
208
|
+
/**
|
|
209
|
+
* A template used to dynamically determine whether the webhook should execute based on the content of the payload.
|
|
210
|
+
*/
|
|
211
|
+
triggerTemplate?: pulumi.Input<string>;
|
|
212
|
+
/**
|
|
213
|
+
* The type of event that will cause this outgoing webhook to execute. The types of triggers are: `escalation`, `alert group created`, `acknowledge`, `resolve`, `silence`, `unsilence`, `unresolve`, `unacknowledge`. Defaults to `escalation`.
|
|
214
|
+
*/
|
|
215
|
+
triggerType?: pulumi.Input<string>;
|
|
144
216
|
/**
|
|
145
217
|
* The webhook URL.
|
|
146
218
|
*/
|
|
147
219
|
url: pulumi.Input<string>;
|
|
148
220
|
/**
|
|
149
|
-
*
|
|
221
|
+
* Username to use when making the outgoing webhook request.
|
|
150
222
|
*/
|
|
151
223
|
user?: pulumi.Input<string>;
|
|
152
224
|
}
|
package/oncallOutgoingWebhook.js
CHANGED
|
@@ -56,9 +56,15 @@ class OncallOutgoingWebhook extends pulumi.CustomResource {
|
|
|
56
56
|
resourceInputs["authorizationHeader"] = state ? state.authorizationHeader : undefined;
|
|
57
57
|
resourceInputs["data"] = state ? state.data : undefined;
|
|
58
58
|
resourceInputs["forwardWholePayload"] = state ? state.forwardWholePayload : undefined;
|
|
59
|
+
resourceInputs["headers"] = state ? state.headers : undefined;
|
|
60
|
+
resourceInputs["httpMethod"] = state ? state.httpMethod : undefined;
|
|
61
|
+
resourceInputs["integrationFilters"] = state ? state.integrationFilters : undefined;
|
|
62
|
+
resourceInputs["isWebhookEnabled"] = state ? state.isWebhookEnabled : undefined;
|
|
59
63
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
60
64
|
resourceInputs["password"] = state ? state.password : undefined;
|
|
61
65
|
resourceInputs["teamId"] = state ? state.teamId : undefined;
|
|
66
|
+
resourceInputs["triggerTemplate"] = state ? state.triggerTemplate : undefined;
|
|
67
|
+
resourceInputs["triggerType"] = state ? state.triggerType : undefined;
|
|
62
68
|
resourceInputs["url"] = state ? state.url : undefined;
|
|
63
69
|
resourceInputs["user"] = state ? state.user : undefined;
|
|
64
70
|
}
|
|
@@ -70,9 +76,15 @@ class OncallOutgoingWebhook extends pulumi.CustomResource {
|
|
|
70
76
|
resourceInputs["authorizationHeader"] = (args === null || args === void 0 ? void 0 : args.authorizationHeader) ? pulumi.secret(args.authorizationHeader) : undefined;
|
|
71
77
|
resourceInputs["data"] = args ? args.data : undefined;
|
|
72
78
|
resourceInputs["forwardWholePayload"] = args ? args.forwardWholePayload : undefined;
|
|
79
|
+
resourceInputs["headers"] = args ? args.headers : undefined;
|
|
80
|
+
resourceInputs["httpMethod"] = args ? args.httpMethod : undefined;
|
|
81
|
+
resourceInputs["integrationFilters"] = args ? args.integrationFilters : undefined;
|
|
82
|
+
resourceInputs["isWebhookEnabled"] = args ? args.isWebhookEnabled : undefined;
|
|
73
83
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
74
84
|
resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
|
|
75
85
|
resourceInputs["teamId"] = args ? args.teamId : undefined;
|
|
86
|
+
resourceInputs["triggerTemplate"] = args ? args.triggerTemplate : undefined;
|
|
87
|
+
resourceInputs["triggerType"] = args ? args.triggerType : undefined;
|
|
76
88
|
resourceInputs["url"] = args ? args.url : undefined;
|
|
77
89
|
resourceInputs["user"] = args ? args.user : undefined;
|
|
78
90
|
}
|