@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
package/getSecret.d.ts
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manage secrets: named credentials that workflows can reference. A secret's value can be set and rotated but is never returned by the API.
|
|
4
|
+
*
|
|
5
|
+
* Use this data source to look up an existing secret, either by `id` or by `name`. This is how you reference a secret somebody created in the dashboard without managing it as an `incident.Secret` resource. Set exactly one of the two lookup attributes; setting both, or neither, is rejected at plan time.
|
|
6
|
+
*
|
|
7
|
+
* A secret's value is never returned by the API, so there is no value attribute here: `lastFourChars` and `version` are all a read can tell you about it.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as incident from "@incident-io/pulumi";
|
|
14
|
+
*
|
|
15
|
+
* // Look up an existing secret by name, such as one created in the dashboard.
|
|
16
|
+
* const pagerdutyWebhookToken = incident.getSecret({
|
|
17
|
+
* name: "PagerDuty webhook token",
|
|
18
|
+
* });
|
|
19
|
+
* // Or by ID, to reference a secret another module manages.
|
|
20
|
+
* const billingApiKey = incident.getSecret({
|
|
21
|
+
* id: "01G0J1EXE7AXZ2C93K61WBPYEH",
|
|
22
|
+
* });
|
|
23
|
+
* export const pagerdutyTokenVersion = pagerdutyWebhookToken.then(pagerdutyWebhookToken => pagerdutyWebhookToken.version);
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function getSecret(args?: GetSecretArgs, opts?: pulumi.InvokeOptions): Promise<GetSecretResult>;
|
|
27
|
+
/**
|
|
28
|
+
* A collection of arguments for invoking getSecret.
|
|
29
|
+
*/
|
|
30
|
+
export interface GetSecretArgs {
|
|
31
|
+
/**
|
|
32
|
+
* Unique identifier for this secret
|
|
33
|
+
*/
|
|
34
|
+
id?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Human-readable name, unique within the organisation amongst unarchived secrets
|
|
37
|
+
*/
|
|
38
|
+
name?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A collection of values returned by getSecret.
|
|
42
|
+
*/
|
|
43
|
+
export interface GetSecretResult {
|
|
44
|
+
/**
|
|
45
|
+
* When this secret was created.
|
|
46
|
+
*/
|
|
47
|
+
readonly createdAt: string;
|
|
48
|
+
/**
|
|
49
|
+
* Optional description of what this secret is for
|
|
50
|
+
*/
|
|
51
|
+
readonly description: string;
|
|
52
|
+
/**
|
|
53
|
+
* Unique identifier for this secret
|
|
54
|
+
*/
|
|
55
|
+
readonly id: string;
|
|
56
|
+
/**
|
|
57
|
+
* The last four characters of the current value, for masked display. Absent when the value is four characters or shorter.
|
|
58
|
+
*/
|
|
59
|
+
readonly lastFourChars: string;
|
|
60
|
+
/**
|
|
61
|
+
* Human-readable name, unique within the organisation amongst unarchived secrets
|
|
62
|
+
*/
|
|
63
|
+
readonly name: string;
|
|
64
|
+
/**
|
|
65
|
+
* IDs of the teams that own this secret. Empty means the secret is owned by the whole organisation.
|
|
66
|
+
*/
|
|
67
|
+
readonly owningTeamIds: string[];
|
|
68
|
+
/**
|
|
69
|
+
* When this secret was last changed, which includes being rotated as well as having its metadata edited.
|
|
70
|
+
*/
|
|
71
|
+
readonly updatedAt: string;
|
|
72
|
+
/**
|
|
73
|
+
* The current version number, incremented on each rotation
|
|
74
|
+
*/
|
|
75
|
+
readonly version: number;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Manage secrets: named credentials that workflows can reference. A secret's value can be set and rotated but is never returned by the API.
|
|
79
|
+
*
|
|
80
|
+
* Use this data source to look up an existing secret, either by `id` or by `name`. This is how you reference a secret somebody created in the dashboard without managing it as an `incident.Secret` resource. Set exactly one of the two lookup attributes; setting both, or neither, is rejected at plan time.
|
|
81
|
+
*
|
|
82
|
+
* A secret's value is never returned by the API, so there is no value attribute here: `lastFourChars` and `version` are all a read can tell you about it.
|
|
83
|
+
*
|
|
84
|
+
* ## Example Usage
|
|
85
|
+
*
|
|
86
|
+
* ```typescript
|
|
87
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
88
|
+
* import * as incident from "@incident-io/pulumi";
|
|
89
|
+
*
|
|
90
|
+
* // Look up an existing secret by name, such as one created in the dashboard.
|
|
91
|
+
* const pagerdutyWebhookToken = incident.getSecret({
|
|
92
|
+
* name: "PagerDuty webhook token",
|
|
93
|
+
* });
|
|
94
|
+
* // Or by ID, to reference a secret another module manages.
|
|
95
|
+
* const billingApiKey = incident.getSecret({
|
|
96
|
+
* id: "01G0J1EXE7AXZ2C93K61WBPYEH",
|
|
97
|
+
* });
|
|
98
|
+
* export const pagerdutyTokenVersion = pagerdutyWebhookToken.then(pagerdutyWebhookToken => pagerdutyWebhookToken.version);
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
export declare function getSecretOutput(args?: GetSecretOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSecretResult>;
|
|
102
|
+
/**
|
|
103
|
+
* A collection of arguments for invoking getSecret.
|
|
104
|
+
*/
|
|
105
|
+
export interface GetSecretOutputArgs {
|
|
106
|
+
/**
|
|
107
|
+
* Unique identifier for this secret
|
|
108
|
+
*/
|
|
109
|
+
id?: pulumi.Input<string | undefined>;
|
|
110
|
+
/**
|
|
111
|
+
* Human-readable name, unique within the organisation amongst unarchived secrets
|
|
112
|
+
*/
|
|
113
|
+
name?: pulumi.Input<string | undefined>;
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=getSecret.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSecret.d.ts","sourceRoot":"","sources":["../getSecret.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CAOrG;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC5B;AACD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,eAAe,CAAC,IAAI,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAO7H;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;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"}
|
package/getSecret.js
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
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.getSecretOutput = exports.getSecret = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Manage secrets: named credentials that workflows can reference. A secret's value can be set and rotated but is never returned by the API.
|
|
33
|
+
*
|
|
34
|
+
* Use this data source to look up an existing secret, either by `id` or by `name`. This is how you reference a secret somebody created in the dashboard without managing it as an `incident.Secret` resource. Set exactly one of the two lookup attributes; setting both, or neither, is rejected at plan time.
|
|
35
|
+
*
|
|
36
|
+
* A secret's value is never returned by the API, so there is no value attribute here: `lastFourChars` and `version` are all a read can tell you about it.
|
|
37
|
+
*
|
|
38
|
+
* ## Example Usage
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as incident from "@incident-io/pulumi";
|
|
43
|
+
*
|
|
44
|
+
* // Look up an existing secret by name, such as one created in the dashboard.
|
|
45
|
+
* const pagerdutyWebhookToken = incident.getSecret({
|
|
46
|
+
* name: "PagerDuty webhook token",
|
|
47
|
+
* });
|
|
48
|
+
* // Or by ID, to reference a secret another module manages.
|
|
49
|
+
* const billingApiKey = incident.getSecret({
|
|
50
|
+
* id: "01G0J1EXE7AXZ2C93K61WBPYEH",
|
|
51
|
+
* });
|
|
52
|
+
* export const pagerdutyTokenVersion = pagerdutyWebhookToken.then(pagerdutyWebhookToken => pagerdutyWebhookToken.version);
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
function getSecret(args, opts) {
|
|
56
|
+
args = args || {};
|
|
57
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
58
|
+
return pulumi.runtime.invoke("incident:index/getSecret:getSecret", {
|
|
59
|
+
"id": args.id,
|
|
60
|
+
"name": args.name,
|
|
61
|
+
}, opts);
|
|
62
|
+
}
|
|
63
|
+
exports.getSecret = getSecret;
|
|
64
|
+
/**
|
|
65
|
+
* Manage secrets: named credentials that workflows can reference. A secret's value can be set and rotated but is never returned by the API.
|
|
66
|
+
*
|
|
67
|
+
* Use this data source to look up an existing secret, either by `id` or by `name`. This is how you reference a secret somebody created in the dashboard without managing it as an `incident.Secret` resource. Set exactly one of the two lookup attributes; setting both, or neither, is rejected at plan time.
|
|
68
|
+
*
|
|
69
|
+
* A secret's value is never returned by the API, so there is no value attribute here: `lastFourChars` and `version` are all a read can tell you about it.
|
|
70
|
+
*
|
|
71
|
+
* ## Example Usage
|
|
72
|
+
*
|
|
73
|
+
* ```typescript
|
|
74
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
75
|
+
* import * as incident from "@incident-io/pulumi";
|
|
76
|
+
*
|
|
77
|
+
* // Look up an existing secret by name, such as one created in the dashboard.
|
|
78
|
+
* const pagerdutyWebhookToken = incident.getSecret({
|
|
79
|
+
* name: "PagerDuty webhook token",
|
|
80
|
+
* });
|
|
81
|
+
* // Or by ID, to reference a secret another module manages.
|
|
82
|
+
* const billingApiKey = incident.getSecret({
|
|
83
|
+
* id: "01G0J1EXE7AXZ2C93K61WBPYEH",
|
|
84
|
+
* });
|
|
85
|
+
* export const pagerdutyTokenVersion = pagerdutyWebhookToken.then(pagerdutyWebhookToken => pagerdutyWebhookToken.version);
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
function getSecretOutput(args, opts) {
|
|
89
|
+
args = args || {};
|
|
90
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
91
|
+
return pulumi.runtime.invokeOutput("incident:index/getSecret:getSecret", {
|
|
92
|
+
"id": args.id,
|
|
93
|
+
"name": args.name,
|
|
94
|
+
}, opts);
|
|
95
|
+
}
|
|
96
|
+
exports.getSecretOutput = getSecretOutput;
|
|
97
|
+
//# sourceMappingURL=getSecret.js.map
|
package/getSecret.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSecret.js","sourceRoot":"","sources":["../getSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,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,oCAAoC,EAAE;QAC/D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8BAOC;AAqDD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAAiC;IACzF,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,oCAAoC,EAAE;QACrE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC"}
|
package/getSeverity.d.ts
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manage incident severities.
|
|
4
|
+
*
|
|
5
|
+
* Each incident has a severity, picked from one of the severities configured in your
|
|
6
|
+
* organisations settings.
|
|
7
|
+
*
|
|
8
|
+
* Severities help categorise incidents, and communicate urgency/impact. You can use
|
|
9
|
+
* severities when filtering incidents in the dashboard, and in workflows and announcement
|
|
10
|
+
* rules.
|
|
11
|
+
*
|
|
12
|
+
* Use this data source to look up an existing incident severity, either by `id` or by `name`.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as incident from "@incident-io/pulumi";
|
|
19
|
+
*
|
|
20
|
+
* // Look up an existing incident severity by name.
|
|
21
|
+
* const minor = incident.getSeverity({
|
|
22
|
+
* name: "Minor",
|
|
23
|
+
* });
|
|
24
|
+
* // Create an incident severity.
|
|
25
|
+
* const criticalSeverity = new incident.Severity("critical", {
|
|
26
|
+
* name: "Critical",
|
|
27
|
+
* description: "A critical incident that requires an immediate response.",
|
|
28
|
+
* });
|
|
29
|
+
* // Reference the incident severity by its ID.
|
|
30
|
+
* const critical = incident.getSeverityOutput({
|
|
31
|
+
* id: criticalSeverity.id,
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare function getSeverity(args?: GetSeverityArgs, opts?: pulumi.InvokeOptions): Promise<GetSeverityResult>;
|
|
36
|
+
/**
|
|
37
|
+
* A collection of arguments for invoking getSeverity.
|
|
38
|
+
*/
|
|
39
|
+
export interface GetSeverityArgs {
|
|
40
|
+
/**
|
|
41
|
+
* Unique identifier of the severity
|
|
42
|
+
*/
|
|
43
|
+
id?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Human readable name of the severity
|
|
46
|
+
*/
|
|
47
|
+
name?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A collection of values returned by getSeverity.
|
|
51
|
+
*/
|
|
52
|
+
export interface GetSeverityResult {
|
|
53
|
+
/**
|
|
54
|
+
* Description of the severity
|
|
55
|
+
*/
|
|
56
|
+
readonly description: string;
|
|
57
|
+
/**
|
|
58
|
+
* Unique identifier of the severity
|
|
59
|
+
*/
|
|
60
|
+
readonly id: string;
|
|
61
|
+
/**
|
|
62
|
+
* Human readable name of the severity
|
|
63
|
+
*/
|
|
64
|
+
readonly name: string;
|
|
65
|
+
/**
|
|
66
|
+
* Rank to help sort severities (lower numbers are less severe)
|
|
67
|
+
*/
|
|
68
|
+
readonly rank: number;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Manage incident severities.
|
|
72
|
+
*
|
|
73
|
+
* Each incident has a severity, picked from one of the severities configured in your
|
|
74
|
+
* organisations settings.
|
|
75
|
+
*
|
|
76
|
+
* Severities help categorise incidents, and communicate urgency/impact. You can use
|
|
77
|
+
* severities when filtering incidents in the dashboard, and in workflows and announcement
|
|
78
|
+
* rules.
|
|
79
|
+
*
|
|
80
|
+
* Use this data source to look up an existing incident severity, either by `id` or by `name`.
|
|
81
|
+
*
|
|
82
|
+
* ## Example Usage
|
|
83
|
+
*
|
|
84
|
+
* ```typescript
|
|
85
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
86
|
+
* import * as incident from "@incident-io/pulumi";
|
|
87
|
+
*
|
|
88
|
+
* // Look up an existing incident severity by name.
|
|
89
|
+
* const minor = incident.getSeverity({
|
|
90
|
+
* name: "Minor",
|
|
91
|
+
* });
|
|
92
|
+
* // Create an incident severity.
|
|
93
|
+
* const criticalSeverity = new incident.Severity("critical", {
|
|
94
|
+
* name: "Critical",
|
|
95
|
+
* description: "A critical incident that requires an immediate response.",
|
|
96
|
+
* });
|
|
97
|
+
* // Reference the incident severity by its ID.
|
|
98
|
+
* const critical = incident.getSeverityOutput({
|
|
99
|
+
* id: criticalSeverity.id,
|
|
100
|
+
* });
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
export declare function getSeverityOutput(args?: GetSeverityOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSeverityResult>;
|
|
104
|
+
/**
|
|
105
|
+
* A collection of arguments for invoking getSeverity.
|
|
106
|
+
*/
|
|
107
|
+
export interface GetSeverityOutputArgs {
|
|
108
|
+
/**
|
|
109
|
+
* Unique identifier of the severity
|
|
110
|
+
*/
|
|
111
|
+
id?: pulumi.Input<string | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* Human readable name of the severity
|
|
114
|
+
*/
|
|
115
|
+
name?: pulumi.Input<string | undefined>;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=getSeverity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSeverity.d.ts","sourceRoot":"","sources":["../getSeverity.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAO3G;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,CAAC,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAOnI;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;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"}
|
package/getSeverity.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
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.getSeverityOutput = exports.getSeverity = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Manage incident severities.
|
|
33
|
+
*
|
|
34
|
+
* Each incident has a severity, picked from one of the severities configured in your
|
|
35
|
+
* organisations settings.
|
|
36
|
+
*
|
|
37
|
+
* Severities help categorise incidents, and communicate urgency/impact. You can use
|
|
38
|
+
* severities when filtering incidents in the dashboard, and in workflows and announcement
|
|
39
|
+
* rules.
|
|
40
|
+
*
|
|
41
|
+
* Use this data source to look up an existing incident severity, either by `id` or by `name`.
|
|
42
|
+
*
|
|
43
|
+
* ## Example Usage
|
|
44
|
+
*
|
|
45
|
+
* ```typescript
|
|
46
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
47
|
+
* import * as incident from "@incident-io/pulumi";
|
|
48
|
+
*
|
|
49
|
+
* // Look up an existing incident severity by name.
|
|
50
|
+
* const minor = incident.getSeverity({
|
|
51
|
+
* name: "Minor",
|
|
52
|
+
* });
|
|
53
|
+
* // Create an incident severity.
|
|
54
|
+
* const criticalSeverity = new incident.Severity("critical", {
|
|
55
|
+
* name: "Critical",
|
|
56
|
+
* description: "A critical incident that requires an immediate response.",
|
|
57
|
+
* });
|
|
58
|
+
* // Reference the incident severity by its ID.
|
|
59
|
+
* const critical = incident.getSeverityOutput({
|
|
60
|
+
* id: criticalSeverity.id,
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
function getSeverity(args, opts) {
|
|
65
|
+
args = args || {};
|
|
66
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
67
|
+
return pulumi.runtime.invoke("incident:index/getSeverity:getSeverity", {
|
|
68
|
+
"id": args.id,
|
|
69
|
+
"name": args.name,
|
|
70
|
+
}, opts);
|
|
71
|
+
}
|
|
72
|
+
exports.getSeverity = getSeverity;
|
|
73
|
+
/**
|
|
74
|
+
* Manage incident severities.
|
|
75
|
+
*
|
|
76
|
+
* Each incident has a severity, picked from one of the severities configured in your
|
|
77
|
+
* organisations settings.
|
|
78
|
+
*
|
|
79
|
+
* Severities help categorise incidents, and communicate urgency/impact. You can use
|
|
80
|
+
* severities when filtering incidents in the dashboard, and in workflows and announcement
|
|
81
|
+
* rules.
|
|
82
|
+
*
|
|
83
|
+
* Use this data source to look up an existing incident severity, either by `id` or by `name`.
|
|
84
|
+
*
|
|
85
|
+
* ## Example Usage
|
|
86
|
+
*
|
|
87
|
+
* ```typescript
|
|
88
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
89
|
+
* import * as incident from "@incident-io/pulumi";
|
|
90
|
+
*
|
|
91
|
+
* // Look up an existing incident severity by name.
|
|
92
|
+
* const minor = incident.getSeverity({
|
|
93
|
+
* name: "Minor",
|
|
94
|
+
* });
|
|
95
|
+
* // Create an incident severity.
|
|
96
|
+
* const criticalSeverity = new incident.Severity("critical", {
|
|
97
|
+
* name: "Critical",
|
|
98
|
+
* description: "A critical incident that requires an immediate response.",
|
|
99
|
+
* });
|
|
100
|
+
* // Reference the incident severity by its ID.
|
|
101
|
+
* const critical = incident.getSeverityOutput({
|
|
102
|
+
* id: criticalSeverity.id,
|
|
103
|
+
* });
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
function getSeverityOutput(args, opts) {
|
|
107
|
+
args = args || {};
|
|
108
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
109
|
+
return pulumi.runtime.invokeOutput("incident:index/getSeverity:getSeverity", {
|
|
110
|
+
"id": args.id,
|
|
111
|
+
"name": args.name,
|
|
112
|
+
}, opts);
|
|
113
|
+
}
|
|
114
|
+
exports.getSeverityOutput = getSeverityOutput;
|
|
115
|
+
//# sourceMappingURL=getSeverity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSeverity.js","sourceRoot":"","sources":["../getSeverity.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,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,wCAAwC,EAAE;QACnE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kCAOC;AAqCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAAiC;IAC7F,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,wCAAwC,EAAE;QACzE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8CAOC"}
|
package/getStatus.d.ts
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manage incident statuses.
|
|
4
|
+
*
|
|
5
|
+
* Each incident has a status, picked from one of the statuses configured in your
|
|
6
|
+
* organisations settings.
|
|
7
|
+
*
|
|
8
|
+
* Statuses help communicate where an incident is in its lifecycle. You can use
|
|
9
|
+
* statuses when filtering incidents in the dashboard, and in workflows and announcement
|
|
10
|
+
* rules.
|
|
11
|
+
*
|
|
12
|
+
* Use this data source to look up an existing incident status, either by `id` or by `name`. This is useful for referencing statuses that incident.io manages for you, such as Triage or Closed, which can't be created as an `incident.Status` resource.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as incident from "@incident-io/pulumi";
|
|
19
|
+
*
|
|
20
|
+
* // Look up a status that incident.io manages for you, by name.
|
|
21
|
+
* const triage = incident.getStatus({
|
|
22
|
+
* name: "Triage",
|
|
23
|
+
* });
|
|
24
|
+
* // Create an additional status called "Clean-up". Only the live and learning categories
|
|
25
|
+
* // can be added to: incident.io manages the rest, so they can't be customised.
|
|
26
|
+
* const cleanUpStatus = new incident.Status("clean_up", {
|
|
27
|
+
* name: "Clean-up",
|
|
28
|
+
* description: "Not yet fully finished, but isn't a live incident anymore.",
|
|
29
|
+
* category: "live",
|
|
30
|
+
* });
|
|
31
|
+
* // Reference the status by its ID.
|
|
32
|
+
* const cleanUp = incident.getStatusOutput({
|
|
33
|
+
* id: cleanUpStatus.id,
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function getStatus(args?: GetStatusArgs, opts?: pulumi.InvokeOptions): Promise<GetStatusResult>;
|
|
38
|
+
/**
|
|
39
|
+
* A collection of arguments for invoking getStatus.
|
|
40
|
+
*/
|
|
41
|
+
export interface GetStatusArgs {
|
|
42
|
+
/**
|
|
43
|
+
* Unique ID of this incident status
|
|
44
|
+
*/
|
|
45
|
+
id?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Unique name of this status
|
|
48
|
+
*/
|
|
49
|
+
name?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* A collection of values returned by getStatus.
|
|
53
|
+
*/
|
|
54
|
+
export interface GetStatusResult {
|
|
55
|
+
/**
|
|
56
|
+
* What category of status it is. All statuses apart from live (renamed in the app to Active) and learning (renamed in the app to Post-incident) are managed by incident.io and cannot be configured. Possible values are: `triage`, `declined`, `merged`, `canceled`, `live`, `learning`, `closed`, `paused`.
|
|
57
|
+
*/
|
|
58
|
+
readonly category: string;
|
|
59
|
+
/**
|
|
60
|
+
* Rich text description of the incident status
|
|
61
|
+
*/
|
|
62
|
+
readonly description: string;
|
|
63
|
+
/**
|
|
64
|
+
* Unique ID of this incident status
|
|
65
|
+
*/
|
|
66
|
+
readonly id: string;
|
|
67
|
+
/**
|
|
68
|
+
* Unique name of this status
|
|
69
|
+
*/
|
|
70
|
+
readonly name: string;
|
|
71
|
+
/**
|
|
72
|
+
* Order of this incident status
|
|
73
|
+
*/
|
|
74
|
+
readonly rank: number;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Manage incident statuses.
|
|
78
|
+
*
|
|
79
|
+
* Each incident has a status, picked from one of the statuses configured in your
|
|
80
|
+
* organisations settings.
|
|
81
|
+
*
|
|
82
|
+
* Statuses help communicate where an incident is in its lifecycle. You can use
|
|
83
|
+
* statuses when filtering incidents in the dashboard, and in workflows and announcement
|
|
84
|
+
* rules.
|
|
85
|
+
*
|
|
86
|
+
* Use this data source to look up an existing incident status, either by `id` or by `name`. This is useful for referencing statuses that incident.io manages for you, such as Triage or Closed, which can't be created as an `incident.Status` resource.
|
|
87
|
+
*
|
|
88
|
+
* ## Example Usage
|
|
89
|
+
*
|
|
90
|
+
* ```typescript
|
|
91
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
92
|
+
* import * as incident from "@incident-io/pulumi";
|
|
93
|
+
*
|
|
94
|
+
* // Look up a status that incident.io manages for you, by name.
|
|
95
|
+
* const triage = incident.getStatus({
|
|
96
|
+
* name: "Triage",
|
|
97
|
+
* });
|
|
98
|
+
* // Create an additional status called "Clean-up". Only the live and learning categories
|
|
99
|
+
* // can be added to: incident.io manages the rest, so they can't be customised.
|
|
100
|
+
* const cleanUpStatus = new incident.Status("clean_up", {
|
|
101
|
+
* name: "Clean-up",
|
|
102
|
+
* description: "Not yet fully finished, but isn't a live incident anymore.",
|
|
103
|
+
* category: "live",
|
|
104
|
+
* });
|
|
105
|
+
* // Reference the status by its ID.
|
|
106
|
+
* const cleanUp = incident.getStatusOutput({
|
|
107
|
+
* id: cleanUpStatus.id,
|
|
108
|
+
* });
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
export declare function getStatusOutput(args?: GetStatusOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStatusResult>;
|
|
112
|
+
/**
|
|
113
|
+
* A collection of arguments for invoking getStatus.
|
|
114
|
+
*/
|
|
115
|
+
export interface GetStatusOutputArgs {
|
|
116
|
+
/**
|
|
117
|
+
* Unique ID of this incident status
|
|
118
|
+
*/
|
|
119
|
+
id?: pulumi.Input<string | undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* Unique name of this status
|
|
122
|
+
*/
|
|
123
|
+
name?: pulumi.Input<string | undefined>;
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=getStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStatus.d.ts","sourceRoot":"","sources":["../getStatus.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,SAAS,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CAOrG;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,eAAe,CAAC,IAAI,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAO7H;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;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"}
|