@incident-io/pulumi 0.1.0-alpha.1
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/LICENSE +7 -0
- package/README.md +69 -0
- package/alertAttribute.d.ts +230 -0
- package/alertAttribute.d.ts.map +1 -0
- package/alertAttribute.js +219 -0
- package/alertAttribute.js.map +1 -0
- package/alertRoute.d.ts +511 -0
- package/alertRoute.d.ts.map +1 -0
- package/alertRoute.js +432 -0
- package/alertRoute.js.map +1 -0
- package/alertSource.d.ts +347 -0
- package/alertSource.d.ts.map +1 -0
- package/alertSource.js +241 -0
- package/alertSource.js.map +1 -0
- package/alertSourceAttribute.d.ts +180 -0
- package/alertSourceAttribute.d.ts.map +1 -0
- package/alertSourceAttribute.js +107 -0
- package/alertSourceAttribute.js.map +1 -0
- package/alertSourceAttributeBeta.d.ts +188 -0
- package/alertSourceAttributeBeta.d.ts.map +1 -0
- package/alertSourceAttributeBeta.js +115 -0
- package/alertSourceAttributeBeta.js.map +1 -0
- package/alertSourceBeta.d.ts +244 -0
- package/alertSourceBeta.d.ts.map +1 -0
- package/alertSourceBeta.js +138 -0
- package/alertSourceBeta.js.map +1 -0
- package/apiKey.d.ts +276 -0
- package/apiKey.d.ts.map +1 -0
- package/apiKey.js +211 -0
- package/apiKey.js.map +1 -0
- package/catalogEntries.d.ts +241 -0
- package/catalogEntries.d.ts.map +1 -0
- package/catalogEntries.js +242 -0
- package/catalogEntries.js.map +1 -0
- package/catalogEntry.d.ts +183 -0
- package/catalogEntry.d.ts.map +1 -0
- package/catalogEntry.js +159 -0
- package/catalogEntry.js.map +1 -0
- package/catalogType.d.ts +169 -0
- package/catalogType.d.ts.map +1 -0
- package/catalogType.js +132 -0
- package/catalogType.js.map +1 -0
- package/catalogTypeAttribute.d.ts +190 -0
- package/catalogTypeAttribute.d.ts.map +1 -0
- package/catalogTypeAttribute.js +153 -0
- package/catalogTypeAttribute.js.map +1 -0
- package/config/index.d.ts +2 -0
- package/config/index.d.ts.map +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +13 -0
- package/config/vars.d.ts.map +1 -0
- package/config/vars.js +49 -0
- package/config/vars.js.map +1 -0
- package/customField.d.ts +260 -0
- package/customField.d.ts.map +1 -0
- package/customField.js +226 -0
- package/customField.js.map +1 -0
- package/customFieldOption.d.ts +107 -0
- package/customFieldOption.d.ts.map +1 -0
- package/customFieldOption.js +116 -0
- package/customFieldOption.js.map +1 -0
- package/escalationPath.d.ts +257 -0
- package/escalationPath.d.ts.map +1 -0
- package/escalationPath.js +228 -0
- package/escalationPath.js.map +1 -0
- package/escalationPathBeta.d.ts +134 -0
- package/escalationPathBeta.d.ts.map +1 -0
- package/escalationPathBeta.js +105 -0
- package/escalationPathBeta.js.map +1 -0
- package/getAlertAttribute.d.ts +81 -0
- package/getAlertAttribute.d.ts.map +1 -0
- package/getAlertAttribute.js +75 -0
- package/getAlertAttribute.js.map +1 -0
- package/getAlertSource.d.ts +169 -0
- package/getAlertSource.d.ts.map +1 -0
- package/getAlertSource.js +103 -0
- package/getAlertSource.js.map +1 -0
- package/getAlertSourceAttribute.d.ts +131 -0
- package/getAlertSourceAttribute.d.ts.map +1 -0
- package/getAlertSourceAttribute.js +85 -0
- package/getAlertSourceAttribute.js.map +1 -0
- package/getAlertSourceAttributeBeta.d.ts +131 -0
- package/getAlertSourceAttributeBeta.d.ts.map +1 -0
- package/getAlertSourceAttributeBeta.js +85 -0
- package/getAlertSourceAttributeBeta.js.map +1 -0
- package/getApiKey.d.ts +167 -0
- package/getApiKey.d.ts.map +1 -0
- package/getApiKey.js +145 -0
- package/getApiKey.js.map +1 -0
- package/getCatalogEntry.d.ts +77 -0
- package/getCatalogEntry.d.ts.map +1 -0
- package/getCatalogEntry.js +59 -0
- package/getCatalogEntry.js.map +1 -0
- package/getCatalogType.d.ts +163 -0
- package/getCatalogType.d.ts.map +1 -0
- package/getCatalogType.js +135 -0
- package/getCatalogType.js.map +1 -0
- package/getCatalogTypeAttribute.d.ts +73 -0
- package/getCatalogTypeAttribute.d.ts.map +1 -0
- package/getCatalogTypeAttribute.js +53 -0
- package/getCatalogTypeAttribute.js.map +1 -0
- package/getCustomField.d.ts +67 -0
- package/getCustomField.d.ts.map +1 -0
- package/getCustomField.js +51 -0
- package/getCustomField.js.map +1 -0
- package/getCustomFieldOption.d.ts +65 -0
- package/getCustomFieldOption.d.ts.map +1 -0
- package/getCustomFieldOption.js +55 -0
- package/getCustomFieldOption.js.map +1 -0
- package/getEscalationPath.d.ts +100 -0
- package/getEscalationPath.d.ts.map +1 -0
- package/getEscalationPath.js +83 -0
- package/getEscalationPath.js.map +1 -0
- package/getEscalationPathBeta.d.ts +100 -0
- package/getEscalationPathBeta.d.ts.map +1 -0
- package/getEscalationPathBeta.js +83 -0
- package/getEscalationPathBeta.js.map +1 -0
- package/getIncidentRole.d.ts +111 -0
- package/getIncidentRole.d.ts.map +1 -0
- package/getIncidentRole.js +105 -0
- package/getIncidentRole.js.map +1 -0
- package/getIncidentTemplate.d.ts +98 -0
- package/getIncidentTemplate.d.ts.map +1 -0
- package/getIncidentTemplate.js +95 -0
- package/getIncidentTemplate.js.map +1 -0
- package/getIncidentTimestamp.d.ts +107 -0
- package/getIncidentTimestamp.d.ts.map +1 -0
- package/getIncidentTimestamp.js +109 -0
- package/getIncidentTimestamp.js.map +1 -0
- package/getIncidentType.d.ts +121 -0
- package/getIncidentType.d.ts.map +1 -0
- package/getIncidentType.js +107 -0
- package/getIncidentType.js.map +1 -0
- package/getIpAllowlist.d.ts +62 -0
- package/getIpAllowlist.d.ts.map +1 -0
- package/getIpAllowlist.js +77 -0
- package/getIpAllowlist.js.map +1 -0
- package/getPolicy.d.ts +97 -0
- package/getPolicy.d.ts.map +1 -0
- package/getPolicy.js +91 -0
- package/getPolicy.js.map +1 -0
- package/getRichText.d.ts +111 -0
- package/getRichText.d.ts.map +1 -0
- package/getRichText.js +107 -0
- package/getRichText.js.map +1 -0
- package/getSchedule.d.ts +89 -0
- package/getSchedule.d.ts.map +1 -0
- package/getSchedule.js +87 -0
- package/getSchedule.js.map +1 -0
- package/getScheduleBeta.d.ts +85 -0
- package/getScheduleBeta.d.ts.map +1 -0
- package/getScheduleBeta.js +83 -0
- package/getScheduleBeta.js.map +1 -0
- package/getScheduleReplica.d.ts +116 -0
- package/getScheduleReplica.d.ts.map +1 -0
- package/getScheduleReplica.js +79 -0
- package/getScheduleReplica.js.map +1 -0
- package/getScheduleRotation.d.ts +166 -0
- package/getScheduleRotation.d.ts.map +1 -0
- package/getScheduleRotation.js +127 -0
- package/getScheduleRotation.js.map +1 -0
- package/getScheduleRotationBeta.d.ts +122 -0
- package/getScheduleRotationBeta.d.ts.map +1 -0
- package/getScheduleRotationBeta.js +83 -0
- package/getScheduleRotationBeta.js.map +1 -0
- package/getScheduleSyncRule.d.ts +91 -0
- package/getScheduleSyncRule.d.ts.map +1 -0
- package/getScheduleSyncRule.js +79 -0
- package/getScheduleSyncRule.js.map +1 -0
- package/getScheduleSyncTarget.d.ts +100 -0
- package/getScheduleSyncTarget.d.ts.map +1 -0
- package/getScheduleSyncTarget.js +93 -0
- package/getScheduleSyncTarget.js.map +1 -0
- package/getSecret.d.ts +115 -0
- package/getSecret.d.ts.map +1 -0
- package/getSecret.js +97 -0
- package/getSecret.js.map +1 -0
- package/getSeverity.d.ts +117 -0
- package/getSeverity.d.ts.map +1 -0
- package/getSeverity.js +115 -0
- package/getSeverity.js.map +1 -0
- package/getStatus.d.ts +125 -0
- package/getStatus.d.ts.map +1 -0
- package/getStatus.js +119 -0
- package/getStatus.js.map +1 -0
- package/getUser.d.ts +52 -0
- package/getUser.d.ts.map +1 -0
- package/getUser.js +61 -0
- package/getUser.js.map +1 -0
- package/getWorkflow.d.ts +103 -0
- package/getWorkflow.d.ts.map +1 -0
- package/getWorkflow.js +77 -0
- package/getWorkflow.js.map +1 -0
- package/incidentRole.d.ts +109 -0
- package/incidentRole.d.ts.map +1 -0
- package/incidentRole.js +111 -0
- package/incidentRole.js.map +1 -0
- package/incidentTemplate.d.ts +200 -0
- package/incidentTemplate.d.ts.map +1 -0
- package/incidentTemplate.js +207 -0
- package/incidentTemplate.js.map +1 -0
- package/index.d.ts +188 -0
- package/index.d.ts.map +1 -0
- package/index.js +303 -0
- package/index.js.map +1 -0
- package/maintenanceWindow.d.ts +255 -0
- package/maintenanceWindow.d.ts.map +1 -0
- package/maintenanceWindow.js +148 -0
- package/maintenanceWindow.js.map +1 -0
- package/package.json +33 -0
- package/policy.d.ts +476 -0
- package/policy.d.ts.map +1 -0
- package/policy.js +387 -0
- package/policy.js.map +1 -0
- package/provider.d.ts +62 -0
- package/provider.d.ts.map +1 -0
- package/provider.js +80 -0
- package/provider.js.map +1 -0
- package/schedule.d.ts +120 -0
- package/schedule.d.ts.map +1 -0
- package/schedule.js +114 -0
- package/schedule.js.map +1 -0
- package/scheduleBeta.d.ts +104 -0
- package/scheduleBeta.d.ts.map +1 -0
- package/scheduleBeta.js +98 -0
- package/scheduleBeta.js.map +1 -0
- package/scheduleReplica.d.ts +178 -0
- package/scheduleReplica.d.ts.map +1 -0
- package/scheduleReplica.js +134 -0
- package/scheduleReplica.js.map +1 -0
- package/scheduleRotation.d.ts +287 -0
- package/scheduleRotation.d.ts.map +1 -0
- package/scheduleRotation.js +224 -0
- package/scheduleRotation.js.map +1 -0
- package/scheduleRotationBeta.d.ts +184 -0
- package/scheduleRotationBeta.d.ts.map +1 -0
- package/scheduleRotationBeta.js +121 -0
- package/scheduleRotationBeta.js.map +1 -0
- package/scheduleSyncRule.d.ts +154 -0
- package/scheduleSyncRule.d.ts.map +1 -0
- package/scheduleSyncRule.js +146 -0
- package/scheduleSyncRule.js.map +1 -0
- package/scheduleSyncTarget.d.ts +108 -0
- package/scheduleSyncTarget.d.ts.map +1 -0
- package/scheduleSyncTarget.js +106 -0
- package/scheduleSyncTarget.js.map +1 -0
- package/secret.d.ts +276 -0
- package/secret.d.ts.map +1 -0
- package/secret.js +234 -0
- package/secret.js.map +1 -0
- package/severity.d.ts +96 -0
- package/severity.d.ts.map +1 -0
- package/severity.js +102 -0
- package/severity.js.map +1 -0
- package/status.d.ts +121 -0
- package/status.d.ts.map +1 -0
- package/status.js +120 -0
- package/status.js.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +34 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +23630 -0
- package/types/input.d.ts.map +1 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +19726 -0
- package/types/output.d.ts.map +1 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +5 -0
- package/utilities.d.ts.map +1 -0
- package/utilities.js +114 -0
- package/utilities.js.map +1 -0
- package/workflow.d.ts +736 -0
- package/workflow.d.ts.map +1 -0
- package/workflow.js +608 -0
- package/workflow.js.map +1 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* `incident.EscalationPathBeta` was renamed to `incident.EscalationPath` in v7.0.
|
|
5
|
+
*
|
|
6
|
+
* This name still works and still manages the same thing, so upgrading to v7 needs no change
|
|
7
|
+
* to a configuration that uses it. It is deprecated: every plan naming it warns, and it will
|
|
8
|
+
* be removed in v8.0.
|
|
9
|
+
*
|
|
10
|
+
* To move onto the new name:
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* Both names are the same resource, backed by the same schema and the same API, so the move
|
|
17
|
+
* carries your state across and the plan after it is empty. See `incident.EscalationPath` for the
|
|
18
|
+
* documentation.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getEscalationPathBeta(args?: GetEscalationPathBetaArgs, opts?: pulumi.InvokeOptions): Promise<GetEscalationPathBetaResult>;
|
|
21
|
+
/**
|
|
22
|
+
* A collection of arguments for invoking getEscalationPathBeta.
|
|
23
|
+
*/
|
|
24
|
+
export interface GetEscalationPathBetaArgs {
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier for this escalation path.
|
|
27
|
+
*/
|
|
28
|
+
id?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The name of this escalation path, for the user's reference.
|
|
31
|
+
*/
|
|
32
|
+
name?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A collection of values returned by getEscalationPathBeta.
|
|
36
|
+
*/
|
|
37
|
+
export interface GetEscalationPathBetaResult {
|
|
38
|
+
/**
|
|
39
|
+
* Unique identifier for this escalation path.
|
|
40
|
+
*/
|
|
41
|
+
readonly id: string;
|
|
42
|
+
/**
|
|
43
|
+
* The name of this escalation path, for the user's reference.
|
|
44
|
+
*/
|
|
45
|
+
readonly name: string;
|
|
46
|
+
/**
|
|
47
|
+
* Controls if an escalation will repeat after acknowledgement, when the alert is unresolved. When configured, it will repeat after the specified delay.
|
|
48
|
+
*/
|
|
49
|
+
readonly repeatConfig: outputs.GetEscalationPathBetaRepeatConfig;
|
|
50
|
+
/**
|
|
51
|
+
* Named sequences of nodes, keyed by a name you choose. Each sequence either ends with a `branch` node or runs off the end of the escalation path. Branches reference other sequences by key.
|
|
52
|
+
*/
|
|
53
|
+
readonly sequences: {
|
|
54
|
+
[key: string]: outputs.GetEscalationPathBetaSequences;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* The key of the sequence this escalation path begins with.
|
|
58
|
+
*/
|
|
59
|
+
readonly start: string;
|
|
60
|
+
/**
|
|
61
|
+
* IDs of the teams that own this escalation path. This will automatically sync escalation paths with the right teams in Catalog. If you have an escalation paths attribute on your Teams, this attribute is required.
|
|
62
|
+
*/
|
|
63
|
+
readonly teamIds: string[];
|
|
64
|
+
/**
|
|
65
|
+
* The working hours for this escalation path.
|
|
66
|
+
*/
|
|
67
|
+
readonly workingHours: outputs.GetEscalationPathBetaWorkingHour[];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* `incident.EscalationPathBeta` was renamed to `incident.EscalationPath` in v7.0.
|
|
71
|
+
*
|
|
72
|
+
* This name still works and still manages the same thing, so upgrading to v7 needs no change
|
|
73
|
+
* to a configuration that uses it. It is deprecated: every plan naming it warns, and it will
|
|
74
|
+
* be removed in v8.0.
|
|
75
|
+
*
|
|
76
|
+
* To move onto the new name:
|
|
77
|
+
*
|
|
78
|
+
* ```typescript
|
|
79
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* Both names are the same resource, backed by the same schema and the same API, so the move
|
|
83
|
+
* carries your state across and the plan after it is empty. See `incident.EscalationPath` for the
|
|
84
|
+
* documentation.
|
|
85
|
+
*/
|
|
86
|
+
export declare function getEscalationPathBetaOutput(args?: GetEscalationPathBetaOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEscalationPathBetaResult>;
|
|
87
|
+
/**
|
|
88
|
+
* A collection of arguments for invoking getEscalationPathBeta.
|
|
89
|
+
*/
|
|
90
|
+
export interface GetEscalationPathBetaOutputArgs {
|
|
91
|
+
/**
|
|
92
|
+
* Unique identifier for this escalation path.
|
|
93
|
+
*/
|
|
94
|
+
id?: pulumi.Input<string | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* The name of this escalation path, for the user's reference.
|
|
97
|
+
*/
|
|
98
|
+
name?: pulumi.Input<string | undefined>;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=getEscalationPathBeta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEscalationPathBeta.d.ts","sourceRoot":"","sources":["../getEscalationPathBeta.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAOzI;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,iCAAiC,CAAC;IACjE;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,8BAA8B,CAAA;KAAC,CAAC;IAC5E;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,gCAAgC,EAAE,CAAC;CACrE;AACD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,CAAC,EAAE,+BAA+B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAOjK;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.getEscalationPathBetaOutput = exports.getEscalationPathBeta = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* `incident.EscalationPathBeta` was renamed to `incident.EscalationPath` in v7.0.
|
|
33
|
+
*
|
|
34
|
+
* This name still works and still manages the same thing, so upgrading to v7 needs no change
|
|
35
|
+
* to a configuration that uses it. It is deprecated: every plan naming it warns, and it will
|
|
36
|
+
* be removed in v8.0.
|
|
37
|
+
*
|
|
38
|
+
* To move onto the new name:
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* Both names are the same resource, backed by the same schema and the same API, so the move
|
|
45
|
+
* carries your state across and the plan after it is empty. See `incident.EscalationPath` for the
|
|
46
|
+
* documentation.
|
|
47
|
+
*/
|
|
48
|
+
function getEscalationPathBeta(args, opts) {
|
|
49
|
+
args = args || {};
|
|
50
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
51
|
+
return pulumi.runtime.invoke("incident:index/getEscalationPathBeta:getEscalationPathBeta", {
|
|
52
|
+
"id": args.id,
|
|
53
|
+
"name": args.name,
|
|
54
|
+
}, opts);
|
|
55
|
+
}
|
|
56
|
+
exports.getEscalationPathBeta = getEscalationPathBeta;
|
|
57
|
+
/**
|
|
58
|
+
* `incident.EscalationPathBeta` was renamed to `incident.EscalationPath` in v7.0.
|
|
59
|
+
*
|
|
60
|
+
* This name still works and still manages the same thing, so upgrading to v7 needs no change
|
|
61
|
+
* to a configuration that uses it. It is deprecated: every plan naming it warns, and it will
|
|
62
|
+
* be removed in v8.0.
|
|
63
|
+
*
|
|
64
|
+
* To move onto the new name:
|
|
65
|
+
*
|
|
66
|
+
* ```typescript
|
|
67
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* Both names are the same resource, backed by the same schema and the same API, so the move
|
|
71
|
+
* carries your state across and the plan after it is empty. See `incident.EscalationPath` for the
|
|
72
|
+
* documentation.
|
|
73
|
+
*/
|
|
74
|
+
function getEscalationPathBetaOutput(args, opts) {
|
|
75
|
+
args = args || {};
|
|
76
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
77
|
+
return pulumi.runtime.invokeOutput("incident:index/getEscalationPathBeta:getEscalationPathBeta", {
|
|
78
|
+
"id": args.id,
|
|
79
|
+
"name": args.name,
|
|
80
|
+
}, opts);
|
|
81
|
+
}
|
|
82
|
+
exports.getEscalationPathBetaOutput = getEscalationPathBetaOutput;
|
|
83
|
+
//# sourceMappingURL=getEscalationPathBeta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEscalationPathBeta.js","sourceRoot":"","sources":["../getEscalationPathBeta.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4DAA4D,EAAE;QACvF,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sDAOC;AAiDD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,2BAA2B,CAAC,IAAsC,EAAE,IAAiC;IACjH,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4DAA4D,EAAE;QAC7F,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kEAOC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This data source provides information about an incident role, looked up either by `id` or by `name`.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as incident from "@incident-io/pulumi";
|
|
10
|
+
*
|
|
11
|
+
* // Create a communications lead that is not required.
|
|
12
|
+
* const commsIncidentRole = new incident.IncidentRole("comms", {
|
|
13
|
+
* name: "Communications Lead",
|
|
14
|
+
* description: "Responsible for communications on behalf of the response team.",
|
|
15
|
+
* instructions: "Manage internal and external communications on behalf of the response team.",
|
|
16
|
+
* shortform: "comms",
|
|
17
|
+
* });
|
|
18
|
+
* // Reference the incident role by its ID.
|
|
19
|
+
* const comms = incident.getIncidentRoleOutput({
|
|
20
|
+
* id: commsIncidentRole.id,
|
|
21
|
+
* });
|
|
22
|
+
* // Or look one up by name, which avoids pinning an ID that differs between
|
|
23
|
+
* // workspaces. This is how you get hold of the roles incident.io creates for you,
|
|
24
|
+
* // such as Incident Lead.
|
|
25
|
+
* const incidentLead = incident.getIncidentRole({
|
|
26
|
+
* name: "Incident Lead",
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare function getIncidentRole(args?: GetIncidentRoleArgs, opts?: pulumi.InvokeOptions): Promise<GetIncidentRoleResult>;
|
|
31
|
+
/**
|
|
32
|
+
* A collection of arguments for invoking getIncidentRole.
|
|
33
|
+
*/
|
|
34
|
+
export interface GetIncidentRoleArgs {
|
|
35
|
+
/**
|
|
36
|
+
* Unique identifier for the role
|
|
37
|
+
*/
|
|
38
|
+
id?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Human readable name of the incident role
|
|
41
|
+
*/
|
|
42
|
+
name?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A collection of values returned by getIncidentRole.
|
|
46
|
+
*/
|
|
47
|
+
export interface GetIncidentRoleResult {
|
|
48
|
+
/**
|
|
49
|
+
* Describes the purpose of the role
|
|
50
|
+
*/
|
|
51
|
+
readonly description: string;
|
|
52
|
+
/**
|
|
53
|
+
* Unique identifier for the role
|
|
54
|
+
*/
|
|
55
|
+
readonly id: string;
|
|
56
|
+
/**
|
|
57
|
+
* Provided to whoever is nominated for the role. Note that this will be empty for the 'reporter' role.
|
|
58
|
+
*/
|
|
59
|
+
readonly instructions: string;
|
|
60
|
+
/**
|
|
61
|
+
* Human readable name of the incident role
|
|
62
|
+
*/
|
|
63
|
+
readonly name: string;
|
|
64
|
+
/**
|
|
65
|
+
* Short human readable name for Slack. Note that this will be empty for the 'reporter' role.
|
|
66
|
+
*/
|
|
67
|
+
readonly shortform: string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* This data source provides information about an incident role, looked up either by `id` or by `name`.
|
|
71
|
+
*
|
|
72
|
+
* ## Example Usage
|
|
73
|
+
*
|
|
74
|
+
* ```typescript
|
|
75
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
76
|
+
* import * as incident from "@incident-io/pulumi";
|
|
77
|
+
*
|
|
78
|
+
* // Create a communications lead that is not required.
|
|
79
|
+
* const commsIncidentRole = new incident.IncidentRole("comms", {
|
|
80
|
+
* name: "Communications Lead",
|
|
81
|
+
* description: "Responsible for communications on behalf of the response team.",
|
|
82
|
+
* instructions: "Manage internal and external communications on behalf of the response team.",
|
|
83
|
+
* shortform: "comms",
|
|
84
|
+
* });
|
|
85
|
+
* // Reference the incident role by its ID.
|
|
86
|
+
* const comms = incident.getIncidentRoleOutput({
|
|
87
|
+
* id: commsIncidentRole.id,
|
|
88
|
+
* });
|
|
89
|
+
* // Or look one up by name, which avoids pinning an ID that differs between
|
|
90
|
+
* // workspaces. This is how you get hold of the roles incident.io creates for you,
|
|
91
|
+
* // such as Incident Lead.
|
|
92
|
+
* const incidentLead = incident.getIncidentRole({
|
|
93
|
+
* name: "Incident Lead",
|
|
94
|
+
* });
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
export declare function getIncidentRoleOutput(args?: GetIncidentRoleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetIncidentRoleResult>;
|
|
98
|
+
/**
|
|
99
|
+
* A collection of arguments for invoking getIncidentRole.
|
|
100
|
+
*/
|
|
101
|
+
export interface GetIncidentRoleOutputArgs {
|
|
102
|
+
/**
|
|
103
|
+
* Unique identifier for the role
|
|
104
|
+
*/
|
|
105
|
+
id?: pulumi.Input<string | undefined>;
|
|
106
|
+
/**
|
|
107
|
+
* Human readable name of the incident role
|
|
108
|
+
*/
|
|
109
|
+
name?: pulumi.Input<string | undefined>;
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=getIncidentRole.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIncidentRole.d.ts","sourceRoot":"","sources":["../getIncidentRole.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,eAAe,CAAC,IAAI,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAOvH;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC9B;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAO/I;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.getIncidentRoleOutput = exports.getIncidentRole = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* This data source provides information about an incident role, looked up either by `id` or by `name`.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as incident from "@incident-io/pulumi";
|
|
39
|
+
*
|
|
40
|
+
* // Create a communications lead that is not required.
|
|
41
|
+
* const commsIncidentRole = new incident.IncidentRole("comms", {
|
|
42
|
+
* name: "Communications Lead",
|
|
43
|
+
* description: "Responsible for communications on behalf of the response team.",
|
|
44
|
+
* instructions: "Manage internal and external communications on behalf of the response team.",
|
|
45
|
+
* shortform: "comms",
|
|
46
|
+
* });
|
|
47
|
+
* // Reference the incident role by its ID.
|
|
48
|
+
* const comms = incident.getIncidentRoleOutput({
|
|
49
|
+
* id: commsIncidentRole.id,
|
|
50
|
+
* });
|
|
51
|
+
* // Or look one up by name, which avoids pinning an ID that differs between
|
|
52
|
+
* // workspaces. This is how you get hold of the roles incident.io creates for you,
|
|
53
|
+
* // such as Incident Lead.
|
|
54
|
+
* const incidentLead = incident.getIncidentRole({
|
|
55
|
+
* name: "Incident Lead",
|
|
56
|
+
* });
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
function getIncidentRole(args, opts) {
|
|
60
|
+
args = args || {};
|
|
61
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
62
|
+
return pulumi.runtime.invoke("incident:index/getIncidentRole:getIncidentRole", {
|
|
63
|
+
"id": args.id,
|
|
64
|
+
"name": args.name,
|
|
65
|
+
}, opts);
|
|
66
|
+
}
|
|
67
|
+
exports.getIncidentRole = getIncidentRole;
|
|
68
|
+
/**
|
|
69
|
+
* This data source provides information about an incident role, looked up either by `id` or by `name`.
|
|
70
|
+
*
|
|
71
|
+
* ## Example Usage
|
|
72
|
+
*
|
|
73
|
+
* ```typescript
|
|
74
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
75
|
+
* import * as incident from "@incident-io/pulumi";
|
|
76
|
+
*
|
|
77
|
+
* // Create a communications lead that is not required.
|
|
78
|
+
* const commsIncidentRole = new incident.IncidentRole("comms", {
|
|
79
|
+
* name: "Communications Lead",
|
|
80
|
+
* description: "Responsible for communications on behalf of the response team.",
|
|
81
|
+
* instructions: "Manage internal and external communications on behalf of the response team.",
|
|
82
|
+
* shortform: "comms",
|
|
83
|
+
* });
|
|
84
|
+
* // Reference the incident role by its ID.
|
|
85
|
+
* const comms = incident.getIncidentRoleOutput({
|
|
86
|
+
* id: commsIncidentRole.id,
|
|
87
|
+
* });
|
|
88
|
+
* // Or look one up by name, which avoids pinning an ID that differs between
|
|
89
|
+
* // workspaces. This is how you get hold of the roles incident.io creates for you,
|
|
90
|
+
* // such as Incident Lead.
|
|
91
|
+
* const incidentLead = incident.getIncidentRole({
|
|
92
|
+
* name: "Incident Lead",
|
|
93
|
+
* });
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
function getIncidentRoleOutput(args, opts) {
|
|
97
|
+
args = args || {};
|
|
98
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
99
|
+
return pulumi.runtime.invokeOutput("incident:index/getIncidentRole:getIncidentRole", {
|
|
100
|
+
"id": args.id,
|
|
101
|
+
"name": args.name,
|
|
102
|
+
}, opts);
|
|
103
|
+
}
|
|
104
|
+
exports.getIncidentRoleOutput = getIncidentRoleOutput;
|
|
105
|
+
//# sourceMappingURL=getIncidentRole.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIncidentRole.js","sourceRoot":"","sources":["../getIncidentRole.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC;AAyCD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAAiC;IACrG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gDAAgD,EAAE;QACjF,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sDAOC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Manage incident templates: reusable sets of values applied to incidents created from alerts.
|
|
5
|
+
*
|
|
6
|
+
* Use this data source to look up an existing incident template, either by `id` or by `name`. This is useful for referencing a template the dashboard owns — for example pointing an `incident.AlertRoute` at it via `incident_config.incident_template` — without managing the template as an `incident.IncidentTemplate` resource. Set exactly one of the two lookup attributes; setting both, or neither, is rejected at plan time.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as incident from "@incident-io/pulumi";
|
|
13
|
+
*
|
|
14
|
+
* // Look up an incident template by name, to reference one the dashboard owns
|
|
15
|
+
* // rather than managing it here — for example from an alert route.
|
|
16
|
+
* const payments = incident.getIncidentTemplate({
|
|
17
|
+
* name: "Payments incidents",
|
|
18
|
+
* });
|
|
19
|
+
* // Or by ID, for example one copied out of your organisation's settings.
|
|
20
|
+
* const _default = incident.getIncidentTemplate({
|
|
21
|
+
* id: "01FCNDV6P870EA6S7TK1DSYD5H",
|
|
22
|
+
* });
|
|
23
|
+
* export const paymentsTemplateId = payments.then(payments => payments.id);
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function getIncidentTemplate(args?: GetIncidentTemplateArgs, opts?: pulumi.InvokeOptions): Promise<GetIncidentTemplateResult>;
|
|
27
|
+
/**
|
|
28
|
+
* A collection of arguments for invoking getIncidentTemplate.
|
|
29
|
+
*/
|
|
30
|
+
export interface GetIncidentTemplateArgs {
|
|
31
|
+
/**
|
|
32
|
+
* Unique identifier for this incident template
|
|
33
|
+
*/
|
|
34
|
+
id?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The name of this incident template, for the user's reference
|
|
37
|
+
*/
|
|
38
|
+
name?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A collection of values returned by getIncidentTemplate.
|
|
42
|
+
*/
|
|
43
|
+
export interface GetIncidentTemplateResult {
|
|
44
|
+
/**
|
|
45
|
+
* Expressions that make variables available in the scope
|
|
46
|
+
*/
|
|
47
|
+
readonly expressions: outputs.GetIncidentTemplateExpression[];
|
|
48
|
+
/**
|
|
49
|
+
* Unique identifier for this incident template
|
|
50
|
+
*/
|
|
51
|
+
readonly id: string;
|
|
52
|
+
/**
|
|
53
|
+
* The name of this incident template, for the user's reference
|
|
54
|
+
*/
|
|
55
|
+
readonly name: string;
|
|
56
|
+
/**
|
|
57
|
+
* The values an incident template applies to the incidents it creates.
|
|
58
|
+
*/
|
|
59
|
+
readonly template: outputs.GetIncidentTemplateTemplate;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Manage incident templates: reusable sets of values applied to incidents created from alerts.
|
|
63
|
+
*
|
|
64
|
+
* Use this data source to look up an existing incident template, either by `id` or by `name`. This is useful for referencing a template the dashboard owns — for example pointing an `incident.AlertRoute` at it via `incident_config.incident_template` — without managing the template as an `incident.IncidentTemplate` resource. Set exactly one of the two lookup attributes; setting both, or neither, is rejected at plan time.
|
|
65
|
+
*
|
|
66
|
+
* ## Example Usage
|
|
67
|
+
*
|
|
68
|
+
* ```typescript
|
|
69
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
70
|
+
* import * as incident from "@incident-io/pulumi";
|
|
71
|
+
*
|
|
72
|
+
* // Look up an incident template by name, to reference one the dashboard owns
|
|
73
|
+
* // rather than managing it here — for example from an alert route.
|
|
74
|
+
* const payments = incident.getIncidentTemplate({
|
|
75
|
+
* name: "Payments incidents",
|
|
76
|
+
* });
|
|
77
|
+
* // Or by ID, for example one copied out of your organisation's settings.
|
|
78
|
+
* const _default = incident.getIncidentTemplate({
|
|
79
|
+
* id: "01FCNDV6P870EA6S7TK1DSYD5H",
|
|
80
|
+
* });
|
|
81
|
+
* export const paymentsTemplateId = payments.then(payments => payments.id);
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
export declare function getIncidentTemplateOutput(args?: GetIncidentTemplateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetIncidentTemplateResult>;
|
|
85
|
+
/**
|
|
86
|
+
* A collection of arguments for invoking getIncidentTemplate.
|
|
87
|
+
*/
|
|
88
|
+
export interface GetIncidentTemplateOutputArgs {
|
|
89
|
+
/**
|
|
90
|
+
* Unique identifier for this incident template
|
|
91
|
+
*/
|
|
92
|
+
id?: pulumi.Input<string | undefined>;
|
|
93
|
+
/**
|
|
94
|
+
* The name of this incident template, for the user's reference
|
|
95
|
+
*/
|
|
96
|
+
name?: pulumi.Input<string | undefined>;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=getIncidentTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIncidentTemplate.d.ts","sourceRoot":"","sources":["../getIncidentTemplate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,CAAC,EAAE,uBAAuB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAOnI;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,6BAA6B,EAAE,CAAC;IAC9D;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,2BAA2B,CAAC;CAC1D;AACD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,CAAC,EAAE,6BAA6B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAO3J;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.getIncidentTemplateOutput = exports.getIncidentTemplate = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Manage incident templates: reusable sets of values applied to incidents created from alerts.
|
|
33
|
+
*
|
|
34
|
+
* Use this data source to look up an existing incident template, either by `id` or by `name`. This is useful for referencing a template the dashboard owns — for example pointing an `incident.AlertRoute` at it via `incident_config.incident_template` — without managing the template as an `incident.IncidentTemplate` resource. Set exactly one of the two lookup attributes; setting both, or neither, is rejected at plan time.
|
|
35
|
+
*
|
|
36
|
+
* ## Example Usage
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as incident from "@incident-io/pulumi";
|
|
41
|
+
*
|
|
42
|
+
* // Look up an incident template by name, to reference one the dashboard owns
|
|
43
|
+
* // rather than managing it here — for example from an alert route.
|
|
44
|
+
* const payments = incident.getIncidentTemplate({
|
|
45
|
+
* name: "Payments incidents",
|
|
46
|
+
* });
|
|
47
|
+
* // Or by ID, for example one copied out of your organisation's settings.
|
|
48
|
+
* const _default = incident.getIncidentTemplate({
|
|
49
|
+
* id: "01FCNDV6P870EA6S7TK1DSYD5H",
|
|
50
|
+
* });
|
|
51
|
+
* export const paymentsTemplateId = payments.then(payments => payments.id);
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
function getIncidentTemplate(args, opts) {
|
|
55
|
+
args = args || {};
|
|
56
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
57
|
+
return pulumi.runtime.invoke("incident:index/getIncidentTemplate:getIncidentTemplate", {
|
|
58
|
+
"id": args.id,
|
|
59
|
+
"name": args.name,
|
|
60
|
+
}, opts);
|
|
61
|
+
}
|
|
62
|
+
exports.getIncidentTemplate = getIncidentTemplate;
|
|
63
|
+
/**
|
|
64
|
+
* Manage incident templates: reusable sets of values applied to incidents created from alerts.
|
|
65
|
+
*
|
|
66
|
+
* Use this data source to look up an existing incident template, either by `id` or by `name`. This is useful for referencing a template the dashboard owns — for example pointing an `incident.AlertRoute` at it via `incident_config.incident_template` — without managing the template as an `incident.IncidentTemplate` resource. Set exactly one of the two lookup attributes; setting both, or neither, is rejected at plan time.
|
|
67
|
+
*
|
|
68
|
+
* ## Example Usage
|
|
69
|
+
*
|
|
70
|
+
* ```typescript
|
|
71
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
72
|
+
* import * as incident from "@incident-io/pulumi";
|
|
73
|
+
*
|
|
74
|
+
* // Look up an incident template by name, to reference one the dashboard owns
|
|
75
|
+
* // rather than managing it here — for example from an alert route.
|
|
76
|
+
* const payments = incident.getIncidentTemplate({
|
|
77
|
+
* name: "Payments incidents",
|
|
78
|
+
* });
|
|
79
|
+
* // Or by ID, for example one copied out of your organisation's settings.
|
|
80
|
+
* const _default = incident.getIncidentTemplate({
|
|
81
|
+
* id: "01FCNDV6P870EA6S7TK1DSYD5H",
|
|
82
|
+
* });
|
|
83
|
+
* export const paymentsTemplateId = payments.then(payments => payments.id);
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
function getIncidentTemplateOutput(args, opts) {
|
|
87
|
+
args = args || {};
|
|
88
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
89
|
+
return pulumi.runtime.invokeOutput("incident:index/getIncidentTemplate:getIncidentTemplate", {
|
|
90
|
+
"id": args.id,
|
|
91
|
+
"name": args.name,
|
|
92
|
+
}, opts);
|
|
93
|
+
}
|
|
94
|
+
exports.getIncidentTemplateOutput = getIncidentTemplateOutput;
|
|
95
|
+
//# sourceMappingURL=getIncidentTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIncidentTemplate.js","sourceRoot":"","sources":["../getIncidentTemplate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE;QACnF,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kDAOC;AAqCD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,yBAAyB,CAAC,IAAoC,EAAE,IAAiC;IAC7G,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wDAAwD,EAAE;QACzF,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8DAOC"}
|