@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/secret.js
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
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.Secret = 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
|
+
* A secret's value is write-only: incident.io stores it encrypted and never returns it, so
|
|
35
|
+
* Terraform cannot read it back to compare against your configuration. Set it with `valueWo`, a
|
|
36
|
+
* write-only attribute,
|
|
37
|
+
* which needs Terraform 1.11 or OpenTofu 1.11 and above. The value is never written to state or to a
|
|
38
|
+
* plan file.
|
|
39
|
+
*
|
|
40
|
+
* Because the value is invisible to Terraform, changing `valueWo` on its own does nothing. Rotating a
|
|
41
|
+
* secret means changing `valueWoVersion` as well, conventionally by incrementing it: that is the
|
|
42
|
+
* change Terraform can see, and it is what asks incident.io to rotate. A rotation replaces the value
|
|
43
|
+
* and advances `version`; the previous value is retired and cannot be recovered.
|
|
44
|
+
*
|
|
45
|
+
* Both value attributes are optional after the secret exists, so Terraform can own a secret's name,
|
|
46
|
+
* description and owning teams while something else rotates it. Leave them unset and the value is
|
|
47
|
+
* never touched.
|
|
48
|
+
*
|
|
49
|
+
* ## Example - Manage a secret
|
|
50
|
+
*
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as incident from "@incident-io/pulumi";
|
|
54
|
+
*
|
|
55
|
+
* const config = new pulumi.Config();
|
|
56
|
+
* const pagerdutyWebhookToken = config.require("pagerdutyWebhookToken");
|
|
57
|
+
* const pagerdutyWebhookTokenSecret = new incident.Secret("pagerduty_webhook_token", {
|
|
58
|
+
* name: "PagerDuty webhook token",
|
|
59
|
+
* description: "Auth token for the PagerDuty outgoing webhook",
|
|
60
|
+
* valueWo: pagerdutyWebhookToken,
|
|
61
|
+
* valueWoVersion: 1,
|
|
62
|
+
* });
|
|
63
|
+
* const billingApiKey = config.require("billingApiKey");
|
|
64
|
+
* const billingApiKeySecret = new incident.Secret("billing_api_key", {
|
|
65
|
+
* name: "Billing API key",
|
|
66
|
+
* valueWo: billingApiKey,
|
|
67
|
+
* valueWoVersion: 1,
|
|
68
|
+
* owningTeamIds: ["01G0J1EXE7AXZ2C93K61WBPYEH"],
|
|
69
|
+
* });
|
|
70
|
+
* // Terraform doesn't have to own the value. Leave both value attributes off an existing
|
|
71
|
+
* // secret and Terraform manages its name, description and owning teams while something
|
|
72
|
+
* // else - the dashboard, or a rotation job - looks after the value.
|
|
73
|
+
* const rotatedElsewhere = new incident.Secret("rotated_elsewhere", {
|
|
74
|
+
* name: "Datadog API key",
|
|
75
|
+
* description: "Rotated nightly by our key-rotation job",
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* ## Example - Use a secret in a workflow's webhook step
|
|
80
|
+
*
|
|
81
|
+
* ```typescript
|
|
82
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
83
|
+
* import * as incident from "@incident-io/pulumi";
|
|
84
|
+
*
|
|
85
|
+
* const config = new pulumi.Config();
|
|
86
|
+
* const partnerWebhookToken = config.require("partnerWebhookToken");
|
|
87
|
+
* const partnerWebhookTokenSecret = new incident.Secret("partner_webhook_token", {
|
|
88
|
+
* name: "Partner webhook token",
|
|
89
|
+
* description: "Bearer token for the partner's incident webhook",
|
|
90
|
+
* valueWo: partnerWebhookToken,
|
|
91
|
+
* valueWoVersion: 1,
|
|
92
|
+
* });
|
|
93
|
+
* // The first way: put the secret's value inside a field's text.
|
|
94
|
+
* //
|
|
95
|
+
* // A field whose feature set ends in `_with_secrets` - which the webhook step's headers do -
|
|
96
|
+
* // accepts a variable naming a secret by ID, and incident.io substitutes the value when the
|
|
97
|
+
* // workflow runs. Write it as `{{ <secret id> }}` and reference the secret's `id`, never its
|
|
98
|
+
* // value: Terraform is arranging for the value to be used, not handling it.
|
|
99
|
+
* const authorizationHeader = incident.getRichTextOutput({
|
|
100
|
+
* markdown: pulumi.interpolate`Authorization: Bearer {{ ${partnerWebhookTokenSecret.id} }}`,
|
|
101
|
+
* featureSet: "plain_single_line_with_secrets",
|
|
102
|
+
* });
|
|
103
|
+
* const contentTypeHeader = incident.getRichText({
|
|
104
|
+
* markdown: "Content-Type: application/json",
|
|
105
|
+
* featureSet: "plain_single_line_with_secrets",
|
|
106
|
+
* });
|
|
107
|
+
* const webhookEndpoint = incident.getRichText({
|
|
108
|
+
* markdown: "https://partner.example.com/hooks/incident",
|
|
109
|
+
* featureSet: "plain_single_line",
|
|
110
|
+
* });
|
|
111
|
+
* const webhookBody = incident.getRichText({
|
|
112
|
+
* markdown: "{{ incident.name }} is now {{ incident.status }} at severity {{ incident.severity }}.\n",
|
|
113
|
+
* featureSet: "rich",
|
|
114
|
+
* });
|
|
115
|
+
* const notifyPartner = new incident.Workflow("notify_partner", {
|
|
116
|
+
* name: "Notify our partner of incident updates",
|
|
117
|
+
* trigger: "incident.updated",
|
|
118
|
+
* expressions: [],
|
|
119
|
+
* conditionGroups: [],
|
|
120
|
+
* steps: [{
|
|
121
|
+
* id: "01K5TSNDBF7KBZY9AFDKYXJM3N",
|
|
122
|
+
* name: "webhook.send",
|
|
123
|
+
* paramBindings: [
|
|
124
|
+
* {
|
|
125
|
+
* valueLiteral: webhookEndpoint.then(webhookEndpoint => webhookEndpoint.json),
|
|
126
|
+
* },
|
|
127
|
+
* {
|
|
128
|
+
* valueLiteral: "POST",
|
|
129
|
+
* },
|
|
130
|
+
* {
|
|
131
|
+
* values: [
|
|
132
|
+
* authorizationHeader.json,
|
|
133
|
+
* contentTypeHeader.then(contentTypeHeader => contentTypeHeader.json),
|
|
134
|
+
* ],
|
|
135
|
+
* },
|
|
136
|
+
* {
|
|
137
|
+
* valueLiteral: webhookBody.then(webhookBody => webhookBody.json),
|
|
138
|
+
* },
|
|
139
|
+
* {
|
|
140
|
+
* valueLiteral: partnerWebhookTokenSecret.id,
|
|
141
|
+
* },
|
|
142
|
+
* {},
|
|
143
|
+
* {},
|
|
144
|
+
* ],
|
|
145
|
+
* }],
|
|
146
|
+
* onceFors: ["incident"],
|
|
147
|
+
* privateIncidentScope: "none",
|
|
148
|
+
* continueOnStepError: false,
|
|
149
|
+
* runsOnIncidents: "newly_created_and_active",
|
|
150
|
+
* runsOnIncidentModes: ["standard"],
|
|
151
|
+
* state: "draft",
|
|
152
|
+
* });
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* ## Import
|
|
156
|
+
*
|
|
157
|
+
* Import is supported using an `import` block or the `pulumi import` command:
|
|
158
|
+
*
|
|
159
|
+
* The `pulumi import` command can be used, for example:
|
|
160
|
+
*
|
|
161
|
+
* !/bin/bash
|
|
162
|
+
*
|
|
163
|
+
* Import a secret using its ID
|
|
164
|
+
* Replace the ID with a real ID from your incident.io organization
|
|
165
|
+
*
|
|
166
|
+
* ```sh
|
|
167
|
+
* $ pulumi import incident:index/secret:Secret example 01ABC123DEF456GHI789JKL
|
|
168
|
+
* ```
|
|
169
|
+
*
|
|
170
|
+
* An imported secret has no value_wo_version, because the value it already holds didn't
|
|
171
|
+
* come from your configuration. If your config sets valueWo and value_wo_version, the
|
|
172
|
+
* first apply after importing will rotate the secret to that value - the plan says so.
|
|
173
|
+
* To adopt a secret without touching its value, leave both attributes unset.
|
|
174
|
+
*/
|
|
175
|
+
class Secret extends pulumi.CustomResource {
|
|
176
|
+
/**
|
|
177
|
+
* Get an existing Secret resource's state with the given name, ID, and optional extra
|
|
178
|
+
* properties used to qualify the lookup.
|
|
179
|
+
*
|
|
180
|
+
* @param name The _unique_ name of the resulting resource.
|
|
181
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
182
|
+
* @param state Any extra arguments used during the lookup.
|
|
183
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
184
|
+
*/
|
|
185
|
+
static get(name, id, state, opts) {
|
|
186
|
+
return new Secret(name, state, { ...opts, id: id });
|
|
187
|
+
}
|
|
188
|
+
/** @internal */
|
|
189
|
+
static __pulumiType = 'incident:index/secret:Secret';
|
|
190
|
+
/**
|
|
191
|
+
* Returns true if the given object is an instance of Secret. This is designed to work even
|
|
192
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
193
|
+
*/
|
|
194
|
+
static isInstance(obj) {
|
|
195
|
+
if (obj === undefined || obj === null) {
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
198
|
+
return obj['__pulumiType'] === Secret.__pulumiType;
|
|
199
|
+
}
|
|
200
|
+
constructor(name, argsOrState, opts) {
|
|
201
|
+
let resourceInputs = {};
|
|
202
|
+
opts = opts || {};
|
|
203
|
+
if (opts.id) {
|
|
204
|
+
const state = argsOrState;
|
|
205
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
206
|
+
resourceInputs["description"] = state?.description;
|
|
207
|
+
resourceInputs["lastFourChars"] = state?.lastFourChars;
|
|
208
|
+
resourceInputs["name"] = state?.name;
|
|
209
|
+
resourceInputs["owningTeamIds"] = state?.owningTeamIds;
|
|
210
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
211
|
+
resourceInputs["valueWo"] = state?.valueWo;
|
|
212
|
+
resourceInputs["valueWoVersion"] = state?.valueWoVersion;
|
|
213
|
+
resourceInputs["version"] = state?.version;
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
const args = argsOrState;
|
|
217
|
+
resourceInputs["description"] = args?.description;
|
|
218
|
+
resourceInputs["name"] = args?.name;
|
|
219
|
+
resourceInputs["owningTeamIds"] = args?.owningTeamIds;
|
|
220
|
+
resourceInputs["valueWo"] = args?.valueWo ? pulumi.secret(args.valueWo) : undefined;
|
|
221
|
+
resourceInputs["valueWoVersion"] = args?.valueWoVersion;
|
|
222
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
223
|
+
resourceInputs["lastFourChars"] = undefined /*out*/;
|
|
224
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
225
|
+
resourceInputs["version"] = undefined /*out*/;
|
|
226
|
+
}
|
|
227
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
228
|
+
const secretOpts = { additionalSecretOutputs: ["valueWo"] };
|
|
229
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
230
|
+
super(Secret.__pulumiType, name, resourceInputs, opts);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
exports.Secret = Secret;
|
|
234
|
+
//# sourceMappingURL=secret.js.map
|
package/secret.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret.js","sourceRoot":"","sources":["../secret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+IG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAA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AC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;QAC5D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAxGL,wBAyGC"}
|
package/severity.d.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as incident from "@incident-io/pulumi";
|
|
17
|
+
*
|
|
18
|
+
* // Create a Major severity with a default assigned rank.
|
|
19
|
+
* const trivial = new incident.Severity("trivial", {
|
|
20
|
+
* name: "Trivial",
|
|
21
|
+
* description: "Issues causing no impact. No Immediate response is required.",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare class Severity extends pulumi.CustomResource {
|
|
26
|
+
/**
|
|
27
|
+
* Get an existing Severity resource's state with the given name, ID, and optional extra
|
|
28
|
+
* properties used to qualify the lookup.
|
|
29
|
+
*
|
|
30
|
+
* @param name The _unique_ name of the resulting resource.
|
|
31
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
32
|
+
* @param state Any extra arguments used during the lookup.
|
|
33
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
34
|
+
*/
|
|
35
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SeverityState, opts?: pulumi.CustomResourceOptions): Severity;
|
|
36
|
+
/**
|
|
37
|
+
* Returns true if the given object is an instance of Severity. This is designed to work even
|
|
38
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
39
|
+
*/
|
|
40
|
+
static isInstance(obj: any): obj is Severity;
|
|
41
|
+
/**
|
|
42
|
+
* Description of the severity
|
|
43
|
+
*/
|
|
44
|
+
readonly description: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Human readable name of the severity
|
|
47
|
+
*/
|
|
48
|
+
readonly name: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Rank to help sort severities (lower numbers are less severe)
|
|
51
|
+
*/
|
|
52
|
+
readonly rank: pulumi.Output<number>;
|
|
53
|
+
/**
|
|
54
|
+
* Create a Severity resource with the given unique name, arguments, and options.
|
|
55
|
+
*
|
|
56
|
+
* @param name The _unique_ name of the resource.
|
|
57
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
58
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
59
|
+
*/
|
|
60
|
+
constructor(name: string, args: SeverityArgs, opts?: pulumi.CustomResourceOptions);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Input properties used for looking up and filtering Severity resources.
|
|
64
|
+
*/
|
|
65
|
+
export interface SeverityState {
|
|
66
|
+
/**
|
|
67
|
+
* Description of the severity
|
|
68
|
+
*/
|
|
69
|
+
description?: pulumi.Input<string | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Human readable name of the severity
|
|
72
|
+
*/
|
|
73
|
+
name?: pulumi.Input<string | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* Rank to help sort severities (lower numbers are less severe)
|
|
76
|
+
*/
|
|
77
|
+
rank?: pulumi.Input<number | undefined>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The set of arguments for constructing a Severity resource.
|
|
81
|
+
*/
|
|
82
|
+
export interface SeverityArgs {
|
|
83
|
+
/**
|
|
84
|
+
* Description of the severity
|
|
85
|
+
*/
|
|
86
|
+
description: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Human readable name of the severity
|
|
89
|
+
*/
|
|
90
|
+
name?: pulumi.Input<string | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Rank to help sort severities (lower numbers are less severe)
|
|
93
|
+
*/
|
|
94
|
+
rank?: pulumi.Input<number | undefined>;
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=severity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../severity.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;WACW,GAAG,CAAC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
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
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.Severity = 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
|
+
* ## Example Usage
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as incident from "@incident-io/pulumi";
|
|
46
|
+
*
|
|
47
|
+
* // Create a Major severity with a default assigned rank.
|
|
48
|
+
* const trivial = new incident.Severity("trivial", {
|
|
49
|
+
* name: "Trivial",
|
|
50
|
+
* description: "Issues causing no impact. No Immediate response is required.",
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
class Severity extends pulumi.CustomResource {
|
|
55
|
+
/**
|
|
56
|
+
* Get an existing Severity resource's state with the given name, ID, and optional extra
|
|
57
|
+
* properties used to qualify the lookup.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resulting resource.
|
|
60
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
61
|
+
* @param state Any extra arguments used during the lookup.
|
|
62
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
63
|
+
*/
|
|
64
|
+
static get(name, id, state, opts) {
|
|
65
|
+
return new Severity(name, state, { ...opts, id: id });
|
|
66
|
+
}
|
|
67
|
+
/** @internal */
|
|
68
|
+
static __pulumiType = 'incident:index/severity:Severity';
|
|
69
|
+
/**
|
|
70
|
+
* Returns true if the given object is an instance of Severity. This is designed to work even
|
|
71
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
72
|
+
*/
|
|
73
|
+
static isInstance(obj) {
|
|
74
|
+
if (obj === undefined || obj === null) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
return obj['__pulumiType'] === Severity.__pulumiType;
|
|
78
|
+
}
|
|
79
|
+
constructor(name, argsOrState, opts) {
|
|
80
|
+
let resourceInputs = {};
|
|
81
|
+
opts = opts || {};
|
|
82
|
+
if (opts.id) {
|
|
83
|
+
const state = argsOrState;
|
|
84
|
+
resourceInputs["description"] = state?.description;
|
|
85
|
+
resourceInputs["name"] = state?.name;
|
|
86
|
+
resourceInputs["rank"] = state?.rank;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
const args = argsOrState;
|
|
90
|
+
if (args?.description === undefined && !opts.urn) {
|
|
91
|
+
throw new Error("Missing required property 'description'");
|
|
92
|
+
}
|
|
93
|
+
resourceInputs["description"] = args?.description;
|
|
94
|
+
resourceInputs["name"] = args?.name;
|
|
95
|
+
resourceInputs["rank"] = args?.rank;
|
|
96
|
+
}
|
|
97
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
98
|
+
super(Severity.__pulumiType, name, resourceInputs, opts);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.Severity = Severity;
|
|
102
|
+
//# sourceMappingURL=severity.js.map
|
package/severity.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"severity.js","sourceRoot":"","sources":["../severity.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,kCAAkC,CAAC;IAEzE;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,I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
|
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
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as incident from "@incident-io/pulumi";
|
|
17
|
+
*
|
|
18
|
+
* // Statuses are ordered by rank within their category, lowest first. Give every status
|
|
19
|
+
* // in a category a rank and the order is whatever the config says, rather than the order
|
|
20
|
+
* // Terraform happened to create them in.
|
|
21
|
+
* //
|
|
22
|
+
* // Leaving gaps is worth doing: a status can then be slotted between two others without
|
|
23
|
+
* // renumbering them.
|
|
24
|
+
* const investigating = new incident.Status("investigating", {
|
|
25
|
+
* name: "Investigating",
|
|
26
|
+
* description: "We've spotted that something is wrong, but we're not sure why yet.",
|
|
27
|
+
* category: "live",
|
|
28
|
+
* rank: 10,
|
|
29
|
+
* });
|
|
30
|
+
* const cleanUp = new incident.Status("clean_up", {
|
|
31
|
+
* name: "Clean-up",
|
|
32
|
+
* description: "Not yet fully finished, but isn't a live incident anymore.",
|
|
33
|
+
* category: "live",
|
|
34
|
+
* rank: 20,
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare class Status extends pulumi.CustomResource {
|
|
39
|
+
/**
|
|
40
|
+
* Get an existing Status resource's state with the given name, ID, and optional extra
|
|
41
|
+
* properties used to qualify the lookup.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resulting resource.
|
|
44
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
45
|
+
* @param state Any extra arguments used during the lookup.
|
|
46
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
|
+
*/
|
|
48
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: StatusState, opts?: pulumi.CustomResourceOptions): Status;
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of Status. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj: any): obj is Status;
|
|
54
|
+
/**
|
|
55
|
+
* 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`. Changing it replaces the status, as a status can't move between categories. Set `rank` if you want the replacement to keep its place.
|
|
56
|
+
*/
|
|
57
|
+
readonly category: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Rich text description of the incident status
|
|
60
|
+
*/
|
|
61
|
+
readonly description: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Unique name of this status
|
|
64
|
+
*/
|
|
65
|
+
readonly name: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Where this status sits within its category, lowest rank first. Set it on every status in a category to fix their order: without it each status lands after the last one created, which for a single apply means whichever order Terraform happened to create them in. No two statuses in a category can share a rank, and ranks needn't be consecutive — leaving gaps (10, 20, 30) means you can insert a status between two others without renumbering them. Because a rank belongs to one status at a time, swapping a pair of them in a single apply fails: move a status to a rank nothing holds instead.
|
|
68
|
+
*/
|
|
69
|
+
readonly rank: pulumi.Output<number | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Create a Status resource with the given unique name, arguments, and options.
|
|
72
|
+
*
|
|
73
|
+
* @param name The _unique_ name of the resource.
|
|
74
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
75
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
76
|
+
*/
|
|
77
|
+
constructor(name: string, args: StatusArgs, opts?: pulumi.CustomResourceOptions);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Input properties used for looking up and filtering Status resources.
|
|
81
|
+
*/
|
|
82
|
+
export interface StatusState {
|
|
83
|
+
/**
|
|
84
|
+
* 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`. Changing it replaces the status, as a status can't move between categories. Set `rank` if you want the replacement to keep its place.
|
|
85
|
+
*/
|
|
86
|
+
category?: pulumi.Input<string | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* Rich text description of the incident status
|
|
89
|
+
*/
|
|
90
|
+
description?: pulumi.Input<string | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Unique name of this status
|
|
93
|
+
*/
|
|
94
|
+
name?: pulumi.Input<string | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* Where this status sits within its category, lowest rank first. Set it on every status in a category to fix their order: without it each status lands after the last one created, which for a single apply means whichever order Terraform happened to create them in. No two statuses in a category can share a rank, and ranks needn't be consecutive — leaving gaps (10, 20, 30) means you can insert a status between two others without renumbering them. Because a rank belongs to one status at a time, swapping a pair of them in a single apply fails: move a status to a rank nothing holds instead.
|
|
97
|
+
*/
|
|
98
|
+
rank?: pulumi.Input<number | undefined>;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The set of arguments for constructing a Status resource.
|
|
102
|
+
*/
|
|
103
|
+
export interface StatusArgs {
|
|
104
|
+
/**
|
|
105
|
+
* 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`. Changing it replaces the status, as a status can't move between categories. Set `rank` if you want the replacement to keep its place.
|
|
106
|
+
*/
|
|
107
|
+
category: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Rich text description of the incident status
|
|
110
|
+
*/
|
|
111
|
+
description: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Unique name of this status
|
|
114
|
+
*/
|
|
115
|
+
name?: pulumi.Input<string | undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* Where this status sits within its category, lowest rank first. Set it on every status in a category to fix their order: without it each status lands after the last one created, which for a single apply means whichever order Terraform happened to create them in. No two statuses in a category can share a rank, and ranks needn't be consecutive — leaving gaps (10, 20, 30) means you can insert a status between two others without renumbering them. Because a rank belongs to one status at a time, swapping a pair of them in a single apply fails: move a status to a rank nothing holds instead.
|
|
118
|
+
*/
|
|
119
|
+
rank?: pulumi.Input<number | undefined>;
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=status.d.ts.map
|
package/status.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../status.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,qBAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,MAAM;IAO9H;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM;IAOjD;;OAEG;IACH,SAAwB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxD;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3D;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;OAEG;IACH,SAAwB,IAAI,EAAE,MA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