@incident-io/pulumi 0.1.2 → 0.3.0
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/alertRoute.d.ts +12 -0
- package/alertRoute.d.ts.map +1 -1
- package/alertRoute.js +2 -0
- package/alertRoute.js.map +1 -1
- package/alertSource.d.ts +15 -3
- package/alertSource.d.ts.map +1 -1
- package/alertSource.js +2 -0
- package/alertSource.js.map +1 -1
- package/alertSourceBeta.d.ts +15 -3
- package/alertSourceBeta.d.ts.map +1 -1
- package/alertSourceBeta.js +2 -0
- package/alertSourceBeta.js.map +1 -1
- package/announcementRule.d.ts +247 -0
- package/announcementRule.d.ts.map +1 -0
- package/announcementRule.js +175 -0
- package/announcementRule.js.map +1 -0
- package/announcementTemplate.d.ts +157 -0
- package/announcementTemplate.d.ts.map +1 -0
- package/announcementTemplate.js +148 -0
- package/announcementTemplate.js.map +1 -0
- package/apiKey.d.ts +12 -0
- package/apiKey.d.ts.map +1 -1
- package/apiKey.js +2 -0
- package/apiKey.js.map +1 -1
- package/catalogType.d.ts +12 -0
- package/catalogType.d.ts.map +1 -1
- package/catalogType.js +2 -0
- package/catalogType.js.map +1 -1
- package/config/vars.d.ts +1 -1
- package/escalationPath.d.ts +69 -15
- package/escalationPath.d.ts.map +1 -1
- package/escalationPath.js +8 -6
- package/escalationPath.js.map +1 -1
- package/escalationPathBeta.d.ts +69 -15
- package/escalationPathBeta.d.ts.map +1 -1
- package/escalationPathBeta.js +8 -6
- package/escalationPathBeta.js.map +1 -1
- package/escalationPathTemplate.d.ts +318 -0
- package/escalationPathTemplate.d.ts.map +1 -0
- package/escalationPathTemplate.js +253 -0
- package/escalationPathTemplate.js.map +1 -0
- package/getAlertSource.d.ts +5 -1
- package/getAlertSource.d.ts.map +1 -1
- package/getAlertSource.js.map +1 -1
- package/getAnnouncementRule.d.ts +138 -0
- package/getAnnouncementRule.d.ts.map +1 -0
- package/getAnnouncementRule.js +99 -0
- package/getAnnouncementRule.js.map +1 -0
- package/getAnnouncementTemplate.d.ts +148 -0
- package/getAnnouncementTemplate.d.ts.map +1 -0
- package/getAnnouncementTemplate.js +137 -0
- package/getAnnouncementTemplate.js.map +1 -0
- package/getCatalogType.d.ts +4 -0
- package/getCatalogType.d.ts.map +1 -1
- package/getCatalogType.js.map +1 -1
- package/getEscalationPath.d.ts +19 -1
- package/getEscalationPath.d.ts.map +1 -1
- package/getEscalationPath.js.map +1 -1
- package/getEscalationPathBeta.d.ts +19 -1
- package/getEscalationPathBeta.d.ts.map +1 -1
- package/getEscalationPathBeta.js.map +1 -1
- package/getIncidentForm.d.ts +96 -0
- package/getIncidentForm.d.ts.map +1 -0
- package/getIncidentForm.js +89 -0
- package/getIncidentForm.js.map +1 -0
- package/getIncidentTemplate.d.ts +4 -0
- package/getIncidentTemplate.d.ts.map +1 -1
- package/getIncidentTemplate.js.map +1 -1
- package/getPayConfig.d.ts +130 -0
- package/getPayConfig.d.ts.map +1 -0
- package/getPayConfig.js +99 -0
- package/getPayConfig.js.map +1 -0
- package/getPolicy.d.ts +1 -1
- package/getScheduleSyncRule.d.ts +4 -0
- package/getScheduleSyncRule.d.ts.map +1 -1
- package/getScheduleSyncRule.js.map +1 -1
- package/getStatusPage.d.ts +95 -0
- package/getStatusPage.d.ts.map +1 -0
- package/getStatusPage.js +93 -0
- package/getStatusPage.js.map +1 -0
- package/getStatusPageComponent.d.ts +75 -0
- package/getStatusPageComponent.d.ts.map +1 -0
- package/getStatusPageComponent.js +81 -0
- package/getStatusPageComponent.js.map +1 -0
- package/getUser.d.ts +24 -6
- package/getUser.d.ts.map +1 -1
- package/getUser.js.map +1 -1
- package/getWorkflow.d.ts +1 -0
- package/getWorkflow.d.ts.map +1 -1
- package/getWorkflow.js.map +1 -1
- package/incidentForm.d.ts +424 -0
- package/incidentForm.d.ts.map +1 -0
- package/incidentForm.js +408 -0
- package/incidentForm.js.map +1 -0
- package/incidentTemplate.d.ts +12 -0
- package/incidentTemplate.d.ts.map +1 -1
- package/incidentTemplate.js +2 -0
- package/incidentTemplate.js.map +1 -1
- package/index.d.ts +42 -0
- package/index.d.ts.map +1 -1
- package/index.js +61 -2
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/payConfig.d.ts +258 -0
- package/payConfig.d.ts.map +1 -0
- package/payConfig.js +213 -0
- package/payConfig.js.map +1 -0
- package/policy.d.ts +73 -17
- package/policy.d.ts.map +1 -1
- package/policy.js +42 -6
- package/policy.js.map +1 -1
- package/provider.d.ts +1 -1
- package/schedule.d.ts +12 -0
- package/schedule.d.ts.map +1 -1
- package/schedule.js +2 -0
- package/schedule.js.map +1 -1
- package/scheduleBeta.d.ts +12 -0
- package/scheduleBeta.d.ts.map +1 -1
- package/scheduleBeta.js +2 -0
- package/scheduleBeta.js.map +1 -1
- package/scheduleSyncRule.d.ts +12 -0
- package/scheduleSyncRule.d.ts.map +1 -1
- package/scheduleSyncRule.js +2 -0
- package/scheduleSyncRule.js.map +1 -1
- package/scheduleSyncTarget.d.ts +12 -0
- package/scheduleSyncTarget.d.ts.map +1 -1
- package/scheduleSyncTarget.js +2 -0
- package/scheduleSyncTarget.js.map +1 -1
- package/secret.d.ts +12 -0
- package/secret.d.ts.map +1 -1
- package/secret.js +2 -0
- package/secret.js.map +1 -1
- package/statusPageComponent.d.ts +120 -0
- package/statusPageComponent.d.ts.map +1 -0
- package/statusPageComponent.js +123 -0
- package/statusPageComponent.js.map +1 -0
- package/statusPageStructure.d.ts +151 -0
- package/statusPageStructure.d.ts.map +1 -0
- package/statusPageStructure.js +148 -0
- package/statusPageStructure.js.map +1 -0
- package/teamGroupingPreference.d.ts +164 -0
- package/teamGroupingPreference.d.ts.map +1 -0
- package/teamGroupingPreference.js +165 -0
- package/teamGroupingPreference.js.map +1 -0
- package/types/input.d.ts +5722 -4067
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +4932 -2641
- package/types/output.d.ts.map +1 -1
- package/workflow.d.ts +12 -0
- package/workflow.d.ts.map +1 -1
- package/workflow.js +2 -0
- package/workflow.js.map +1 -1
package/payConfig.js
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
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.PayConfig = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Manage on-call pay configs: the rates that pay reports price on-call shifts against.
|
|
33
|
+
*
|
|
34
|
+
* A pay config sets what someone is paid for being on call: a base rate, plus rules that
|
|
35
|
+
* override it at particular times. An on-call pay report prices each person's shifts against one.
|
|
36
|
+
*
|
|
37
|
+
* `weeklyRules` is ordered. A shift is priced by the first rule that covers it, so put the
|
|
38
|
+
* rule that should win first. `oneOffRules` take precedence over every weekly rule and may
|
|
39
|
+
* not overlap each other, so their order has no effect on pricing. Any time no rule covers is paid
|
|
40
|
+
* at `baseRateCents`.
|
|
41
|
+
*
|
|
42
|
+
* Terraform creates the config as a draft, which becomes visible to everyone in the organisation
|
|
43
|
+
* once a report that prices against it is published. Editing a config after that changes the
|
|
44
|
+
* explanation of pay someone has already been sent, so every write to it — its own attributes or
|
|
45
|
+
* any of its rules — additionally needs the `schedule_pay_configs.update_published` scope on
|
|
46
|
+
* the API key. The `payConfigsEditor` role carries it, along with everything else this
|
|
47
|
+
* resource needs.
|
|
48
|
+
*
|
|
49
|
+
* ## Example Usage
|
|
50
|
+
*
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as incident from "@incident-io/pulumi";
|
|
54
|
+
*
|
|
55
|
+
* // A pay config sets what someone is paid for being on call: a base rate, plus rules that
|
|
56
|
+
* // override it at particular times. Every rate is in the lowest denomination of the
|
|
57
|
+
* // currency, per rate_time_unit, and pay is pro-rated by the second either way.
|
|
58
|
+
* const platform = new incident.PayConfig("platform", {
|
|
59
|
+
* name: "Platform on-call",
|
|
60
|
+
* timezone: "Europe/London",
|
|
61
|
+
* currency: "GBP",
|
|
62
|
+
* baseRateCents: 500,
|
|
63
|
+
* rateTimeUnit: "hour",
|
|
64
|
+
* weeklyRules: [
|
|
65
|
+
* {
|
|
66
|
+
* weekdays: [
|
|
67
|
+
* "saturday",
|
|
68
|
+
* "sunday",
|
|
69
|
+
* ],
|
|
70
|
+
* startTime: "00:00",
|
|
71
|
+
* endTime: "00:00",
|
|
72
|
+
* rateCents: 1500,
|
|
73
|
+
* },
|
|
74
|
+
* {
|
|
75
|
+
* weekdays: [
|
|
76
|
+
* "monday",
|
|
77
|
+
* "tuesday",
|
|
78
|
+
* "wednesday",
|
|
79
|
+
* "thursday",
|
|
80
|
+
* "friday",
|
|
81
|
+
* ],
|
|
82
|
+
* startTime: "18:00",
|
|
83
|
+
* endTime: "00:00",
|
|
84
|
+
* rateCents: 1000,
|
|
85
|
+
* },
|
|
86
|
+
* {
|
|
87
|
+
* weekdays: [
|
|
88
|
+
* "monday",
|
|
89
|
+
* "tuesday",
|
|
90
|
+
* "wednesday",
|
|
91
|
+
* "thursday",
|
|
92
|
+
* "friday",
|
|
93
|
+
* ],
|
|
94
|
+
* startTime: "00:00",
|
|
95
|
+
* endTime: "09:00",
|
|
96
|
+
* rateCents: 1000,
|
|
97
|
+
* },
|
|
98
|
+
* ],
|
|
99
|
+
* oneOffRules: [
|
|
100
|
+
* {
|
|
101
|
+
* name: "Christmas Day",
|
|
102
|
+
* startAt: "2026-12-25T00:00:00Z",
|
|
103
|
+
* endAt: "2026-12-26T00:00:00Z",
|
|
104
|
+
* rateCents: 3000,
|
|
105
|
+
* },
|
|
106
|
+
* {
|
|
107
|
+
* name: "Boxing Day",
|
|
108
|
+
* startAt: "2026-12-26T00:00:00Z",
|
|
109
|
+
* endAt: "2026-12-27T00:00:00Z",
|
|
110
|
+
* rateCents: 2500,
|
|
111
|
+
* },
|
|
112
|
+
* ],
|
|
113
|
+
* });
|
|
114
|
+
* // A flat rate needs no rules at all.
|
|
115
|
+
* const flatDaily = new incident.PayConfig("flat_daily", {
|
|
116
|
+
* name: "Flat daily rate",
|
|
117
|
+
* timezone: "America/New_York",
|
|
118
|
+
* currency: "USD",
|
|
119
|
+
* baseRateCents: 10000,
|
|
120
|
+
* rateTimeUnit: "day",
|
|
121
|
+
* });
|
|
122
|
+
* ```
|
|
123
|
+
*
|
|
124
|
+
* ## Import
|
|
125
|
+
*
|
|
126
|
+
* Import is supported using an `import` block or the `pulumi import` command:
|
|
127
|
+
*
|
|
128
|
+
* The `pulumi import` command can be used, for example:
|
|
129
|
+
*
|
|
130
|
+
* !/bin/bash
|
|
131
|
+
*
|
|
132
|
+
* Import a pay config using its ID
|
|
133
|
+
* Replace the ID with a real ID from your incident.io organization
|
|
134
|
+
*
|
|
135
|
+
* ```sh
|
|
136
|
+
* $ pulumi import incident:index/payConfig:PayConfig example 01ABC123DEF456GHI789JKL
|
|
137
|
+
* ```
|
|
138
|
+
*
|
|
139
|
+
* The rules come with it, in the order the API holds them. Write weeklyRules in your
|
|
140
|
+
* configuration in that same order, or the first plan updates every rule that moved.
|
|
141
|
+
*/
|
|
142
|
+
class PayConfig extends pulumi.CustomResource {
|
|
143
|
+
/**
|
|
144
|
+
* Get an existing PayConfig resource's state with the given name, ID, and optional extra
|
|
145
|
+
* properties used to qualify the lookup.
|
|
146
|
+
*
|
|
147
|
+
* @param name The _unique_ name of the resulting resource.
|
|
148
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
149
|
+
* @param state Any extra arguments used during the lookup.
|
|
150
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
151
|
+
*/
|
|
152
|
+
static get(name, id, state, opts) {
|
|
153
|
+
return new PayConfig(name, state, { ...opts, id: id });
|
|
154
|
+
}
|
|
155
|
+
/** @internal */
|
|
156
|
+
static __pulumiType = 'incident:index/payConfig:PayConfig';
|
|
157
|
+
/**
|
|
158
|
+
* Returns true if the given object is an instance of PayConfig. This is designed to work even
|
|
159
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
160
|
+
*/
|
|
161
|
+
static isInstance(obj) {
|
|
162
|
+
if (obj === undefined || obj === null) {
|
|
163
|
+
return false;
|
|
164
|
+
}
|
|
165
|
+
return obj['__pulumiType'] === PayConfig.__pulumiType;
|
|
166
|
+
}
|
|
167
|
+
constructor(name, argsOrState, opts) {
|
|
168
|
+
let resourceInputs = {};
|
|
169
|
+
opts = opts || {};
|
|
170
|
+
if (opts.id) {
|
|
171
|
+
const state = argsOrState;
|
|
172
|
+
resourceInputs["baseRateCents"] = state?.baseRateCents;
|
|
173
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
174
|
+
resourceInputs["currency"] = state?.currency;
|
|
175
|
+
resourceInputs["name"] = state?.name;
|
|
176
|
+
resourceInputs["oneOffRules"] = state?.oneOffRules;
|
|
177
|
+
resourceInputs["publishedAt"] = state?.publishedAt;
|
|
178
|
+
resourceInputs["rateTimeUnit"] = state?.rateTimeUnit;
|
|
179
|
+
resourceInputs["timezone"] = state?.timezone;
|
|
180
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
181
|
+
resourceInputs["weeklyRules"] = state?.weeklyRules;
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
const args = argsOrState;
|
|
185
|
+
if (args?.baseRateCents === undefined && !opts.urn) {
|
|
186
|
+
throw new Error("Missing required property 'baseRateCents'");
|
|
187
|
+
}
|
|
188
|
+
if (args?.currency === undefined && !opts.urn) {
|
|
189
|
+
throw new Error("Missing required property 'currency'");
|
|
190
|
+
}
|
|
191
|
+
if (args?.rateTimeUnit === undefined && !opts.urn) {
|
|
192
|
+
throw new Error("Missing required property 'rateTimeUnit'");
|
|
193
|
+
}
|
|
194
|
+
if (args?.timezone === undefined && !opts.urn) {
|
|
195
|
+
throw new Error("Missing required property 'timezone'");
|
|
196
|
+
}
|
|
197
|
+
resourceInputs["baseRateCents"] = args?.baseRateCents;
|
|
198
|
+
resourceInputs["currency"] = args?.currency;
|
|
199
|
+
resourceInputs["name"] = args?.name;
|
|
200
|
+
resourceInputs["oneOffRules"] = args?.oneOffRules;
|
|
201
|
+
resourceInputs["rateTimeUnit"] = args?.rateTimeUnit;
|
|
202
|
+
resourceInputs["timezone"] = args?.timezone;
|
|
203
|
+
resourceInputs["weeklyRules"] = args?.weeklyRules;
|
|
204
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
205
|
+
resourceInputs["publishedAt"] = undefined /*out*/;
|
|
206
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
207
|
+
}
|
|
208
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
209
|
+
super(PayConfig.__pulumiType, name, resourceInputs, opts);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
exports.PayConfig = PayConfig;
|
|
213
|
+
//# sourceMappingURL=payConfig.js.map
|
package/payConfig.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payConfig.js","sourceRoot":"","sources":["../payConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8GG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,oCAAoC,CAAC;IAE3E;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAmDD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;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,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAvHL,8BAwHC"}
|
package/policy.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ import * as outputs from "./types/output";
|
|
|
9
9
|
*
|
|
10
10
|
* `policyType` selects exactly one matching config block: a `followUp` policy
|
|
11
11
|
* carries `followUp` config, a `schedule` policy carries `schedule`
|
|
12
|
-
* config, and so on.
|
|
13
|
-
* so
|
|
12
|
+
* config, and so on. `vacationConflict` and `shiftConflict` policies have no
|
|
13
|
+
* configuration of their own, so their blocks are empty objects.
|
|
14
14
|
*
|
|
15
15
|
* ## Example - Require a post-mortem within five working days
|
|
16
16
|
*
|
|
@@ -229,12 +229,18 @@ import * as outputs from "./types/output";
|
|
|
229
229
|
* // An on-call readiness policy, which checks that responders have a notification
|
|
230
230
|
* // method that reaches them quickly enough.
|
|
231
231
|
* //
|
|
232
|
-
* //
|
|
233
|
-
* // about, and the API picks that assignee itself.
|
|
232
|
+
* // Its assignment_rules take reminders but no bindings: this type always assigns
|
|
233
|
+
* // the user the finding is about, and the API picks that assignee itself.
|
|
234
234
|
* const respondersCanBeReached = new incident.Policy("responders_can_be_reached", {
|
|
235
235
|
* name: "Responders carry a phone",
|
|
236
236
|
* description: "Anyone on call needs a notification method that reaches them quickly.",
|
|
237
237
|
* conditionGroups: [],
|
|
238
|
+
* assignmentRules: {
|
|
239
|
+
* reminderDueDateOffsetHours: [24],
|
|
240
|
+
* reminderCadenceAfter: {
|
|
241
|
+
* interval: "daily",
|
|
242
|
+
* },
|
|
243
|
+
* },
|
|
238
244
|
* onCallReadiness: {
|
|
239
245
|
* highUrgencies: [{
|
|
240
246
|
* methodTypes: [
|
|
@@ -261,8 +267,8 @@ import * as outputs from "./types/output";
|
|
|
261
267
|
* // away. The type has nothing to configure, so its block is empty: it is only
|
|
262
268
|
* // there to say which type this is.
|
|
263
269
|
* //
|
|
264
|
-
* // Like on-call readiness, it
|
|
265
|
-
* // the finding is about.
|
|
270
|
+
* // Like on-call readiness, it needs no assignment_rules: the API assigns the user
|
|
271
|
+
* // the finding is about. Add the block without bindings to set reminders.
|
|
266
272
|
* const vacationConflicts = new incident.Policy("vacation_conflicts", {
|
|
267
273
|
* name: "No on-call during vacation",
|
|
268
274
|
* description: "Flag anyone scheduled on call while they are on leave.",
|
|
@@ -271,6 +277,32 @@ import * as outputs from "./types/output";
|
|
|
271
277
|
* });
|
|
272
278
|
* ```
|
|
273
279
|
*
|
|
280
|
+
* ## Example - Flag anyone on call in two places at once
|
|
281
|
+
*
|
|
282
|
+
* ```typescript
|
|
283
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
284
|
+
* import * as incident from "@incident-io/pulumi";
|
|
285
|
+
*
|
|
286
|
+
* // A shift conflict policy, which flags users who are on call in two or more
|
|
287
|
+
* // places at once: two rotations of one schedule, or two different schedules.
|
|
288
|
+
* // The type has nothing to configure, so its block is empty: it is only there to
|
|
289
|
+
* // say which type this is.
|
|
290
|
+
* //
|
|
291
|
+
* // The API assigns the user the finding is about, so assignment_rules takes
|
|
292
|
+
* // reminders but no bindings. A finding is due when the conflict starts, so this
|
|
293
|
+
* // reminds them when it's found and again the day before it starts.
|
|
294
|
+
* const shiftConflicts = new incident.Policy("shift_conflicts", {
|
|
295
|
+
* name: "Nobody on call twice",
|
|
296
|
+
* description: "Flag anyone scheduled on call in two places at once.",
|
|
297
|
+
* conditionGroups: [],
|
|
298
|
+
* assignmentRules: {
|
|
299
|
+
* reminderDueDateOffsetHours: [-24],
|
|
300
|
+
* reminderDetectedDateOffsetHours: [0],
|
|
301
|
+
* },
|
|
302
|
+
* shiftConflict: {},
|
|
303
|
+
* });
|
|
304
|
+
* ```
|
|
305
|
+
*
|
|
274
306
|
* ## Import
|
|
275
307
|
*
|
|
276
308
|
* Import is supported using an `import` block or the `pulumi import` command:
|
|
@@ -303,7 +335,7 @@ export declare class Policy extends pulumi.CustomResource {
|
|
|
303
335
|
*/
|
|
304
336
|
static isInstance(obj: any): obj is Policy;
|
|
305
337
|
/**
|
|
306
|
-
* Who to assign a finding to, and when to remind them.
|
|
338
|
+
* Who to assign a finding to, and when to remind them. On a policy type that assigns the user the finding is about (`onCallReadiness` and `vacationConflict`), set only the reminders and leave out `bindings`.
|
|
307
339
|
*/
|
|
308
340
|
readonly assignmentRules: pulumi.Output<outputs.PolicyAssignmentRules | undefined>;
|
|
309
341
|
/**
|
|
@@ -331,11 +363,11 @@ export declare class Policy extends pulumi.CustomResource {
|
|
|
331
363
|
*/
|
|
332
364
|
readonly name: pulumi.Output<string>;
|
|
333
365
|
/**
|
|
334
|
-
* Makes this an on-call readiness policy, which checks that users have suitable notification methods. The assignee is always the user the finding is about, so `assignmentRules`
|
|
366
|
+
* Makes this an on-call readiness policy, which checks that users have suitable notification methods. The assignee is always the user the finding is about, so `assignmentRules` takes reminders but no `bindings`. A finding is due as soon as it is found, so only non-negative `reminderDueDateOffsetHours` and `reminderCadenceAfter` apply.
|
|
335
367
|
*/
|
|
336
368
|
readonly onCallReadiness: pulumi.Output<outputs.PolicyOnCallReadiness | undefined>;
|
|
337
369
|
/**
|
|
338
|
-
* Type of the policy, specifying what this applies to. Possible values are: `debrief`, `followUp`, `onCallReadiness`, `postMortem`, `schedule`, `vacationConflict`. Determined by which config block is set.
|
|
370
|
+
* Type of the policy, specifying what this applies to. Possible values are: `debrief`, `followUp`, `onCallReadiness`, `postMortem`, `schedule`, `shiftConflict`, `vacationConflict`. Determined by which config block is set.
|
|
339
371
|
*/
|
|
340
372
|
readonly policyType: pulumi.Output<string>;
|
|
341
373
|
/**
|
|
@@ -346,12 +378,20 @@ export declare class Policy extends pulumi.CustomResource {
|
|
|
346
378
|
* Makes this a schedule policy, which detects gaps in on-call coverage.
|
|
347
379
|
*/
|
|
348
380
|
readonly schedule: pulumi.Output<outputs.PolicySchedule | undefined>;
|
|
381
|
+
/**
|
|
382
|
+
* Makes this a shift-conflict policy, which flags users who are on call in two or more places at once. It takes no configuration, so set it to an empty object. The assignee is always the user the finding is about, so `assignmentRules` takes reminders but no `bindings`. A finding is due when the conflict starts, so reminders can come before it.
|
|
383
|
+
*/
|
|
384
|
+
readonly shiftConflict: pulumi.Output<outputs.PolicyShiftConflict | undefined>;
|
|
349
385
|
/**
|
|
350
386
|
* Disabled policies stop evaluating but keep their config. Possible values are: `enabled`, `disabled`.
|
|
351
387
|
*/
|
|
352
388
|
readonly status: pulumi.Output<string>;
|
|
353
389
|
/**
|
|
354
|
-
*
|
|
390
|
+
* Whether to leave this resource unlocked in the incident.io dashboard, so people can edit it there. Defaults to `false`: Terraform claims what it manages, and a claimed resource cannot be edited in the dashboard. Set it to `true` to leave the resource unclaimed — pair that with `lifecycle { ignoreChanges = [...] }` naming the attributes people edit, or the next apply reverts them. Setting it on a resource Terraform already claimed hands that resource back, and someone disconnecting one in the dashboard shows as no change.
|
|
391
|
+
*/
|
|
392
|
+
readonly unlockInDashboard: pulumi.Output<boolean | undefined>;
|
|
393
|
+
/**
|
|
394
|
+
* Makes this a vacation-conflict policy, which flags responders rota'd on while they are away. It takes no configuration, so set it to an empty object. The assignee is always the user the finding is about, so `assignmentRules` takes reminders but no `bindings`.
|
|
355
395
|
*/
|
|
356
396
|
readonly vacationConflict: pulumi.Output<outputs.PolicyVacationConflict | undefined>;
|
|
357
397
|
/**
|
|
@@ -368,7 +408,7 @@ export declare class Policy extends pulumi.CustomResource {
|
|
|
368
408
|
*/
|
|
369
409
|
export interface PolicyState {
|
|
370
410
|
/**
|
|
371
|
-
* Who to assign a finding to, and when to remind them.
|
|
411
|
+
* Who to assign a finding to, and when to remind them. On a policy type that assigns the user the finding is about (`onCallReadiness` and `vacationConflict`), set only the reminders and leave out `bindings`.
|
|
372
412
|
*/
|
|
373
413
|
assignmentRules?: pulumi.Input<inputs.PolicyAssignmentRules | undefined>;
|
|
374
414
|
/**
|
|
@@ -396,11 +436,11 @@ export interface PolicyState {
|
|
|
396
436
|
*/
|
|
397
437
|
name?: pulumi.Input<string | undefined>;
|
|
398
438
|
/**
|
|
399
|
-
* Makes this an on-call readiness policy, which checks that users have suitable notification methods. The assignee is always the user the finding is about, so `assignmentRules`
|
|
439
|
+
* Makes this an on-call readiness policy, which checks that users have suitable notification methods. The assignee is always the user the finding is about, so `assignmentRules` takes reminders but no `bindings`. A finding is due as soon as it is found, so only non-negative `reminderDueDateOffsetHours` and `reminderCadenceAfter` apply.
|
|
400
440
|
*/
|
|
401
441
|
onCallReadiness?: pulumi.Input<inputs.PolicyOnCallReadiness | undefined>;
|
|
402
442
|
/**
|
|
403
|
-
* Type of the policy, specifying what this applies to. Possible values are: `debrief`, `followUp`, `onCallReadiness`, `postMortem`, `schedule`, `vacationConflict`. Determined by which config block is set.
|
|
443
|
+
* Type of the policy, specifying what this applies to. Possible values are: `debrief`, `followUp`, `onCallReadiness`, `postMortem`, `schedule`, `shiftConflict`, `vacationConflict`. Determined by which config block is set.
|
|
404
444
|
*/
|
|
405
445
|
policyType?: pulumi.Input<string | undefined>;
|
|
406
446
|
/**
|
|
@@ -411,12 +451,20 @@ export interface PolicyState {
|
|
|
411
451
|
* Makes this a schedule policy, which detects gaps in on-call coverage.
|
|
412
452
|
*/
|
|
413
453
|
schedule?: pulumi.Input<inputs.PolicySchedule | undefined>;
|
|
454
|
+
/**
|
|
455
|
+
* Makes this a shift-conflict policy, which flags users who are on call in two or more places at once. It takes no configuration, so set it to an empty object. The assignee is always the user the finding is about, so `assignmentRules` takes reminders but no `bindings`. A finding is due when the conflict starts, so reminders can come before it.
|
|
456
|
+
*/
|
|
457
|
+
shiftConflict?: pulumi.Input<inputs.PolicyShiftConflict | undefined>;
|
|
414
458
|
/**
|
|
415
459
|
* Disabled policies stop evaluating but keep their config. Possible values are: `enabled`, `disabled`.
|
|
416
460
|
*/
|
|
417
461
|
status?: pulumi.Input<string | undefined>;
|
|
418
462
|
/**
|
|
419
|
-
*
|
|
463
|
+
* Whether to leave this resource unlocked in the incident.io dashboard, so people can edit it there. Defaults to `false`: Terraform claims what it manages, and a claimed resource cannot be edited in the dashboard. Set it to `true` to leave the resource unclaimed — pair that with `lifecycle { ignoreChanges = [...] }` naming the attributes people edit, or the next apply reverts them. Setting it on a resource Terraform already claimed hands that resource back, and someone disconnecting one in the dashboard shows as no change.
|
|
464
|
+
*/
|
|
465
|
+
unlockInDashboard?: pulumi.Input<boolean | undefined>;
|
|
466
|
+
/**
|
|
467
|
+
* Makes this a vacation-conflict policy, which flags responders rota'd on while they are away. It takes no configuration, so set it to an empty object. The assignee is always the user the finding is about, so `assignmentRules` takes reminders but no `bindings`.
|
|
420
468
|
*/
|
|
421
469
|
vacationConflict?: pulumi.Input<inputs.PolicyVacationConflict | undefined>;
|
|
422
470
|
}
|
|
@@ -425,7 +473,7 @@ export interface PolicyState {
|
|
|
425
473
|
*/
|
|
426
474
|
export interface PolicyArgs {
|
|
427
475
|
/**
|
|
428
|
-
* Who to assign a finding to, and when to remind them.
|
|
476
|
+
* Who to assign a finding to, and when to remind them. On a policy type that assigns the user the finding is about (`onCallReadiness` and `vacationConflict`), set only the reminders and leave out `bindings`.
|
|
429
477
|
*/
|
|
430
478
|
assignmentRules?: pulumi.Input<inputs.PolicyAssignmentRules | undefined>;
|
|
431
479
|
/**
|
|
@@ -453,7 +501,7 @@ export interface PolicyArgs {
|
|
|
453
501
|
*/
|
|
454
502
|
name?: pulumi.Input<string | undefined>;
|
|
455
503
|
/**
|
|
456
|
-
* Makes this an on-call readiness policy, which checks that users have suitable notification methods. The assignee is always the user the finding is about, so `assignmentRules`
|
|
504
|
+
* Makes this an on-call readiness policy, which checks that users have suitable notification methods. The assignee is always the user the finding is about, so `assignmentRules` takes reminders but no `bindings`. A finding is due as soon as it is found, so only non-negative `reminderDueDateOffsetHours` and `reminderCadenceAfter` apply.
|
|
457
505
|
*/
|
|
458
506
|
onCallReadiness?: pulumi.Input<inputs.PolicyOnCallReadiness | undefined>;
|
|
459
507
|
/**
|
|
@@ -464,12 +512,20 @@ export interface PolicyArgs {
|
|
|
464
512
|
* Makes this a schedule policy, which detects gaps in on-call coverage.
|
|
465
513
|
*/
|
|
466
514
|
schedule?: pulumi.Input<inputs.PolicySchedule | undefined>;
|
|
515
|
+
/**
|
|
516
|
+
* Makes this a shift-conflict policy, which flags users who are on call in two or more places at once. It takes no configuration, so set it to an empty object. The assignee is always the user the finding is about, so `assignmentRules` takes reminders but no `bindings`. A finding is due when the conflict starts, so reminders can come before it.
|
|
517
|
+
*/
|
|
518
|
+
shiftConflict?: pulumi.Input<inputs.PolicyShiftConflict | undefined>;
|
|
467
519
|
/**
|
|
468
520
|
* Disabled policies stop evaluating but keep their config. Possible values are: `enabled`, `disabled`.
|
|
469
521
|
*/
|
|
470
522
|
status?: pulumi.Input<string | undefined>;
|
|
471
523
|
/**
|
|
472
|
-
*
|
|
524
|
+
* Whether to leave this resource unlocked in the incident.io dashboard, so people can edit it there. Defaults to `false`: Terraform claims what it manages, and a claimed resource cannot be edited in the dashboard. Set it to `true` to leave the resource unclaimed — pair that with `lifecycle { ignoreChanges = [...] }` naming the attributes people edit, or the next apply reverts them. Setting it on a resource Terraform already claimed hands that resource back, and someone disconnecting one in the dashboard shows as no change.
|
|
525
|
+
*/
|
|
526
|
+
unlockInDashboard?: pulumi.Input<boolean | undefined>;
|
|
527
|
+
/**
|
|
528
|
+
* Makes this a vacation-conflict policy, which flags responders rota'd on while they are away. It takes no configuration, so set it to an empty object. The assignee is always the user the finding is about, so `assignmentRules` takes reminders but no `bindings`.
|
|
473
529
|
*/
|
|
474
530
|
vacationConflict?: pulumi.Input<inputs.PolicyVacationConflict | undefined>;
|
|
475
531
|
}
|
package/policy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../policy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C
|
|
1
|
+
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../policy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACtD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;CAC9E"}
|
package/policy.js
CHANGED
|
@@ -36,8 +36,8 @@ const utilities = __importStar(require("./utilities"));
|
|
|
36
36
|
*
|
|
37
37
|
* `policyType` selects exactly one matching config block: a `followUp` policy
|
|
38
38
|
* carries `followUp` config, a `schedule` policy carries `schedule`
|
|
39
|
-
* config, and so on.
|
|
40
|
-
* so
|
|
39
|
+
* config, and so on. `vacationConflict` and `shiftConflict` policies have no
|
|
40
|
+
* configuration of their own, so their blocks are empty objects.
|
|
41
41
|
*
|
|
42
42
|
* ## Example - Require a post-mortem within five working days
|
|
43
43
|
*
|
|
@@ -256,12 +256,18 @@ const utilities = __importStar(require("./utilities"));
|
|
|
256
256
|
* // An on-call readiness policy, which checks that responders have a notification
|
|
257
257
|
* // method that reaches them quickly enough.
|
|
258
258
|
* //
|
|
259
|
-
* //
|
|
260
|
-
* // about, and the API picks that assignee itself.
|
|
259
|
+
* // Its assignment_rules take reminders but no bindings: this type always assigns
|
|
260
|
+
* // the user the finding is about, and the API picks that assignee itself.
|
|
261
261
|
* const respondersCanBeReached = new incident.Policy("responders_can_be_reached", {
|
|
262
262
|
* name: "Responders carry a phone",
|
|
263
263
|
* description: "Anyone on call needs a notification method that reaches them quickly.",
|
|
264
264
|
* conditionGroups: [],
|
|
265
|
+
* assignmentRules: {
|
|
266
|
+
* reminderDueDateOffsetHours: [24],
|
|
267
|
+
* reminderCadenceAfter: {
|
|
268
|
+
* interval: "daily",
|
|
269
|
+
* },
|
|
270
|
+
* },
|
|
265
271
|
* onCallReadiness: {
|
|
266
272
|
* highUrgencies: [{
|
|
267
273
|
* methodTypes: [
|
|
@@ -288,8 +294,8 @@ const utilities = __importStar(require("./utilities"));
|
|
|
288
294
|
* // away. The type has nothing to configure, so its block is empty: it is only
|
|
289
295
|
* // there to say which type this is.
|
|
290
296
|
* //
|
|
291
|
-
* // Like on-call readiness, it
|
|
292
|
-
* // the finding is about.
|
|
297
|
+
* // Like on-call readiness, it needs no assignment_rules: the API assigns the user
|
|
298
|
+
* // the finding is about. Add the block without bindings to set reminders.
|
|
293
299
|
* const vacationConflicts = new incident.Policy("vacation_conflicts", {
|
|
294
300
|
* name: "No on-call during vacation",
|
|
295
301
|
* description: "Flag anyone scheduled on call while they are on leave.",
|
|
@@ -298,6 +304,32 @@ const utilities = __importStar(require("./utilities"));
|
|
|
298
304
|
* });
|
|
299
305
|
* ```
|
|
300
306
|
*
|
|
307
|
+
* ## Example - Flag anyone on call in two places at once
|
|
308
|
+
*
|
|
309
|
+
* ```typescript
|
|
310
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
311
|
+
* import * as incident from "@incident-io/pulumi";
|
|
312
|
+
*
|
|
313
|
+
* // A shift conflict policy, which flags users who are on call in two or more
|
|
314
|
+
* // places at once: two rotations of one schedule, or two different schedules.
|
|
315
|
+
* // The type has nothing to configure, so its block is empty: it is only there to
|
|
316
|
+
* // say which type this is.
|
|
317
|
+
* //
|
|
318
|
+
* // The API assigns the user the finding is about, so assignment_rules takes
|
|
319
|
+
* // reminders but no bindings. A finding is due when the conflict starts, so this
|
|
320
|
+
* // reminds them when it's found and again the day before it starts.
|
|
321
|
+
* const shiftConflicts = new incident.Policy("shift_conflicts", {
|
|
322
|
+
* name: "Nobody on call twice",
|
|
323
|
+
* description: "Flag anyone scheduled on call in two places at once.",
|
|
324
|
+
* conditionGroups: [],
|
|
325
|
+
* assignmentRules: {
|
|
326
|
+
* reminderDueDateOffsetHours: [-24],
|
|
327
|
+
* reminderDetectedDateOffsetHours: [0],
|
|
328
|
+
* },
|
|
329
|
+
* shiftConflict: {},
|
|
330
|
+
* });
|
|
331
|
+
* ```
|
|
332
|
+
*
|
|
301
333
|
* ## Import
|
|
302
334
|
*
|
|
303
335
|
* Import is supported using an `import` block or the `pulumi import` command:
|
|
@@ -354,7 +386,9 @@ class Policy extends pulumi.CustomResource {
|
|
|
354
386
|
resourceInputs["policyType"] = state?.policyType;
|
|
355
387
|
resourceInputs["postMortem"] = state?.postMortem;
|
|
356
388
|
resourceInputs["schedule"] = state?.schedule;
|
|
389
|
+
resourceInputs["shiftConflict"] = state?.shiftConflict;
|
|
357
390
|
resourceInputs["status"] = state?.status;
|
|
391
|
+
resourceInputs["unlockInDashboard"] = state?.unlockInDashboard;
|
|
358
392
|
resourceInputs["vacationConflict"] = state?.vacationConflict;
|
|
359
393
|
}
|
|
360
394
|
else {
|
|
@@ -375,7 +409,9 @@ class Policy extends pulumi.CustomResource {
|
|
|
375
409
|
resourceInputs["onCallReadiness"] = args?.onCallReadiness;
|
|
376
410
|
resourceInputs["postMortem"] = args?.postMortem;
|
|
377
411
|
resourceInputs["schedule"] = args?.schedule;
|
|
412
|
+
resourceInputs["shiftConflict"] = args?.shiftConflict;
|
|
378
413
|
resourceInputs["status"] = args?.status;
|
|
414
|
+
resourceInputs["unlockInDashboard"] = args?.unlockInDashboard;
|
|
379
415
|
resourceInputs["vacationConflict"] = args?.vacationConflict;
|
|
380
416
|
resourceInputs["policyType"] = undefined /*out*/;
|
|
381
417
|
}
|
package/policy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy.js","sourceRoot":"","sources":["../policy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"policy.js","sourceRoot":"","sources":["../policy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC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B,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AA/IL,wBAgJC"}
|
package/provider.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface ProviderArgs {
|
|
|
45
45
|
*/
|
|
46
46
|
endpoint?: pulumi.Input<string | undefined>;
|
|
47
47
|
/**
|
|
48
|
-
* Whether importing a resource claims it as managed by Terraform, which is what stops people editing it in the incident.io dashboard. Defaults to `true`. Terraform runs imports during `plan` rather than apply, so this claim is a write to your account during an operation you may expect to be read-only: set this to `false` if plans must leave your account untouched. Creating or updating a resource claims it regardless of this setting, so a resource imported with this off is claimed by the first apply that changes it. It stays editable in the dashboard until then, and indefinitely if its configuration already matches the account and so never produces a change to apply.
|
|
48
|
+
* Whether importing a resource claims it as managed by Terraform, which is what stops people editing it in the incident.io dashboard. Defaults to `true`. Terraform runs imports during `plan` rather than apply, so this claim is a write to your account during an operation you may expect to be read-only: set this to `false` if plans must leave your account untouched. Creating or updating a resource claims it regardless of this setting, unless that resource sets `unlockInDashboard`, so a resource imported with this off is claimed by the first apply that changes it. It stays editable in the dashboard until then, and indefinitely if its configuration already matches the account and so never produces a change to apply.
|
|
49
49
|
*/
|
|
50
50
|
markImportedResourcesAsManaged?: pulumi.Input<boolean | undefined>;
|
|
51
51
|
}
|
package/schedule.d.ts
CHANGED
|
@@ -66,6 +66,10 @@ export declare class Schedule extends pulumi.CustomResource {
|
|
|
66
66
|
* Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
|
|
67
67
|
*/
|
|
68
68
|
readonly timezone: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Whether to leave this resource unlocked in the incident.io dashboard, so people can edit it there. Defaults to `false`: Terraform claims what it manages, and a claimed resource cannot be edited in the dashboard. Set it to `true` to leave the resource unclaimed — pair that with `lifecycle { ignoreChanges = [...] }` naming the attributes people edit, or the next apply reverts them. Setting it on a resource Terraform already claimed hands that resource back, and someone disconnecting one in the dashboard shows as no change.
|
|
71
|
+
*/
|
|
72
|
+
readonly unlockInDashboard: pulumi.Output<boolean | undefined>;
|
|
69
73
|
/**
|
|
70
74
|
* Create a Schedule resource with the given unique name, arguments, and options.
|
|
71
75
|
*
|
|
@@ -95,6 +99,10 @@ export interface ScheduleState {
|
|
|
95
99
|
* Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
|
|
96
100
|
*/
|
|
97
101
|
timezone?: pulumi.Input<string | undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* Whether to leave this resource unlocked in the incident.io dashboard, so people can edit it there. Defaults to `false`: Terraform claims what it manages, and a claimed resource cannot be edited in the dashboard. Set it to `true` to leave the resource unclaimed — pair that with `lifecycle { ignoreChanges = [...] }` naming the attributes people edit, or the next apply reverts them. Setting it on a resource Terraform already claimed hands that resource back, and someone disconnecting one in the dashboard shows as no change.
|
|
104
|
+
*/
|
|
105
|
+
unlockInDashboard?: pulumi.Input<boolean | undefined>;
|
|
98
106
|
}
|
|
99
107
|
/**
|
|
100
108
|
* The set of arguments for constructing a Schedule resource.
|
|
@@ -116,5 +124,9 @@ export interface ScheduleArgs {
|
|
|
116
124
|
* Timezone the schedule's rotations are anchored to, as an IANA name. Changing this replaces the schedule: a timezone is what its rotations are anchored to, and we don't support moving an existing schedule to another one.
|
|
117
125
|
*/
|
|
118
126
|
timezone: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* Whether to leave this resource unlocked in the incident.io dashboard, so people can edit it there. Defaults to `false`: Terraform claims what it manages, and a claimed resource cannot be edited in the dashboard. Set it to `true` to leave the resource unclaimed — pair that with `lifecycle { ignoreChanges = [...] }` naming the attributes people edit, or the next apply reverts them. Setting it on a resource Terraform already claimed hands that resource back, and someone disconnecting one in the dashboard shows as no change.
|
|
129
|
+
*/
|
|
130
|
+
unlockInDashboard?: pulumi.Input<boolean | undefined>;
|
|
119
131
|
}
|
|
120
132
|
//# sourceMappingURL=schedule.d.ts.map
|
package/schedule.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule.d.ts","sourceRoot":"","sources":["../schedule.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM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EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CACzD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,4BAA4B,GAAG,SAAS,CAAC,CAAC;IACrF;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC3D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CACzD"}
|
package/schedule.js
CHANGED
|
@@ -95,6 +95,7 @@ class Schedule extends pulumi.CustomResource {
|
|
|
95
95
|
resourceInputs["name"] = state?.name;
|
|
96
96
|
resourceInputs["teamIds"] = state?.teamIds;
|
|
97
97
|
resourceInputs["timezone"] = state?.timezone;
|
|
98
|
+
resourceInputs["unlockInDashboard"] = state?.unlockInDashboard;
|
|
98
99
|
}
|
|
99
100
|
else {
|
|
100
101
|
const args = argsOrState;
|
|
@@ -105,6 +106,7 @@ class Schedule extends pulumi.CustomResource {
|
|
|
105
106
|
resourceInputs["name"] = args?.name;
|
|
106
107
|
resourceInputs["teamIds"] = args?.teamIds;
|
|
107
108
|
resourceInputs["timezone"] = args?.timezone;
|
|
109
|
+
resourceInputs["unlockInDashboard"] = args?.unlockInDashboard;
|
|
108
110
|
}
|
|
109
111
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
110
112
|
super(Schedule.__pulumiType, name, resourceInputs, opts);
|