@incident-io/pulumi 0.1.1 → 0.2.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/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/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/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 +27 -0
- package/index.d.ts.map +1 -1
- package/index.js +40 -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 +33 -15
- package/policy.d.ts.map +1 -1
- package/policy.js +12 -4
- 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/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 +1069 -77
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +1255 -60
- 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.d.ts
ADDED
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manage on-call pay configs: the rates that pay reports price on-call shifts against.
|
|
6
|
+
*
|
|
7
|
+
* A pay config sets what someone is paid for being on call: a base rate, plus rules that
|
|
8
|
+
* override it at particular times. An on-call pay report prices each person's shifts against one.
|
|
9
|
+
*
|
|
10
|
+
* `weeklyRules` is ordered. A shift is priced by the first rule that covers it, so put the
|
|
11
|
+
* rule that should win first. `oneOffRules` take precedence over every weekly rule and may
|
|
12
|
+
* not overlap each other, so their order has no effect on pricing. Any time no rule covers is paid
|
|
13
|
+
* at `baseRateCents`.
|
|
14
|
+
*
|
|
15
|
+
* Terraform creates the config as a draft, which becomes visible to everyone in the organisation
|
|
16
|
+
* once a report that prices against it is published. Editing a config after that changes the
|
|
17
|
+
* explanation of pay someone has already been sent, so every write to it — its own attributes or
|
|
18
|
+
* any of its rules — additionally needs the `schedule_pay_configs.update_published` scope on
|
|
19
|
+
* the API key. The `payConfigsEditor` role carries it, along with everything else this
|
|
20
|
+
* resource needs.
|
|
21
|
+
*
|
|
22
|
+
* ## Example Usage
|
|
23
|
+
*
|
|
24
|
+
* ```typescript
|
|
25
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
26
|
+
* import * as incident from "@incident-io/pulumi";
|
|
27
|
+
*
|
|
28
|
+
* // A pay config sets what someone is paid for being on call: a base rate, plus rules that
|
|
29
|
+
* // override it at particular times. Every rate is in the lowest denomination of the
|
|
30
|
+
* // currency, per rate_time_unit, and pay is pro-rated by the second either way.
|
|
31
|
+
* const platform = new incident.PayConfig("platform", {
|
|
32
|
+
* name: "Platform on-call",
|
|
33
|
+
* timezone: "Europe/London",
|
|
34
|
+
* currency: "GBP",
|
|
35
|
+
* baseRateCents: 500,
|
|
36
|
+
* rateTimeUnit: "hour",
|
|
37
|
+
* weeklyRules: [
|
|
38
|
+
* {
|
|
39
|
+
* weekdays: [
|
|
40
|
+
* "saturday",
|
|
41
|
+
* "sunday",
|
|
42
|
+
* ],
|
|
43
|
+
* startTime: "00:00",
|
|
44
|
+
* endTime: "00:00",
|
|
45
|
+
* rateCents: 1500,
|
|
46
|
+
* },
|
|
47
|
+
* {
|
|
48
|
+
* weekdays: [
|
|
49
|
+
* "monday",
|
|
50
|
+
* "tuesday",
|
|
51
|
+
* "wednesday",
|
|
52
|
+
* "thursday",
|
|
53
|
+
* "friday",
|
|
54
|
+
* ],
|
|
55
|
+
* startTime: "18:00",
|
|
56
|
+
* endTime: "00:00",
|
|
57
|
+
* rateCents: 1000,
|
|
58
|
+
* },
|
|
59
|
+
* {
|
|
60
|
+
* weekdays: [
|
|
61
|
+
* "monday",
|
|
62
|
+
* "tuesday",
|
|
63
|
+
* "wednesday",
|
|
64
|
+
* "thursday",
|
|
65
|
+
* "friday",
|
|
66
|
+
* ],
|
|
67
|
+
* startTime: "00:00",
|
|
68
|
+
* endTime: "09:00",
|
|
69
|
+
* rateCents: 1000,
|
|
70
|
+
* },
|
|
71
|
+
* ],
|
|
72
|
+
* oneOffRules: [
|
|
73
|
+
* {
|
|
74
|
+
* name: "Christmas Day",
|
|
75
|
+
* startAt: "2026-12-25T00:00:00Z",
|
|
76
|
+
* endAt: "2026-12-26T00:00:00Z",
|
|
77
|
+
* rateCents: 3000,
|
|
78
|
+
* },
|
|
79
|
+
* {
|
|
80
|
+
* name: "Boxing Day",
|
|
81
|
+
* startAt: "2026-12-26T00:00:00Z",
|
|
82
|
+
* endAt: "2026-12-27T00:00:00Z",
|
|
83
|
+
* rateCents: 2500,
|
|
84
|
+
* },
|
|
85
|
+
* ],
|
|
86
|
+
* });
|
|
87
|
+
* // A flat rate needs no rules at all.
|
|
88
|
+
* const flatDaily = new incident.PayConfig("flat_daily", {
|
|
89
|
+
* name: "Flat daily rate",
|
|
90
|
+
* timezone: "America/New_York",
|
|
91
|
+
* currency: "USD",
|
|
92
|
+
* baseRateCents: 10000,
|
|
93
|
+
* rateTimeUnit: "day",
|
|
94
|
+
* });
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* ## Import
|
|
98
|
+
*
|
|
99
|
+
* Import is supported using an `import` block or the `pulumi import` command:
|
|
100
|
+
*
|
|
101
|
+
* The `pulumi import` command can be used, for example:
|
|
102
|
+
*
|
|
103
|
+
* !/bin/bash
|
|
104
|
+
*
|
|
105
|
+
* Import a pay config using its ID
|
|
106
|
+
* Replace the ID with a real ID from your incident.io organization
|
|
107
|
+
*
|
|
108
|
+
* ```sh
|
|
109
|
+
* $ pulumi import incident:index/payConfig:PayConfig example 01ABC123DEF456GHI789JKL
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* The rules come with it, in the order the API holds them. Write weeklyRules in your
|
|
113
|
+
* configuration in that same order, or the first plan updates every rule that moved.
|
|
114
|
+
*/
|
|
115
|
+
export declare class PayConfig extends pulumi.CustomResource {
|
|
116
|
+
/**
|
|
117
|
+
* Get an existing PayConfig resource's state with the given name, ID, and optional extra
|
|
118
|
+
* properties used to qualify the lookup.
|
|
119
|
+
*
|
|
120
|
+
* @param name The _unique_ name of the resulting resource.
|
|
121
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
122
|
+
* @param state Any extra arguments used during the lookup.
|
|
123
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
124
|
+
*/
|
|
125
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PayConfigState, opts?: pulumi.CustomResourceOptions): PayConfig;
|
|
126
|
+
/**
|
|
127
|
+
* Returns true if the given object is an instance of PayConfig. This is designed to work even
|
|
128
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
129
|
+
*/
|
|
130
|
+
static isInstance(obj: any): obj is PayConfig;
|
|
131
|
+
/**
|
|
132
|
+
* Rate paid for any time no rule covers, in the lowest denomination of the currency
|
|
133
|
+
*/
|
|
134
|
+
readonly baseRateCents: pulumi.Output<number>;
|
|
135
|
+
/**
|
|
136
|
+
* When this pay config was created.
|
|
137
|
+
*/
|
|
138
|
+
readonly createdAt: pulumi.Output<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Currency this config pays in, in ISO 4217 format, such as `GBP`.
|
|
141
|
+
*/
|
|
142
|
+
readonly currency: pulumi.Output<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Human readable name for this pay config
|
|
145
|
+
*/
|
|
146
|
+
readonly name: pulumi.Output<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Rules that apply over a single window of time, such as a public holiday. These take precedence over the weekly rules and may not overlap each other. Changing the list changes the rules in place, position by position.
|
|
149
|
+
*/
|
|
150
|
+
readonly oneOffRules: pulumi.Output<outputs.PayConfigOneOffRule[]>;
|
|
151
|
+
/**
|
|
152
|
+
* When a published report first priced against this config. Once set, editing the config needs the schedule*pay*configs.update_published scope. Null until then.
|
|
153
|
+
*/
|
|
154
|
+
readonly publishedAt: pulumi.Output<string>;
|
|
155
|
+
/**
|
|
156
|
+
* The unit of time every rate on this config is quoted per. Pay is pro-rated by the second either way. Possible values are: `hour`, `day`.
|
|
157
|
+
*/
|
|
158
|
+
readonly rateTimeUnit: pulumi.Output<string>;
|
|
159
|
+
/**
|
|
160
|
+
* IANA timezone this config's rules are interpreted in, such as `Europe/London`.
|
|
161
|
+
*/
|
|
162
|
+
readonly timezone: pulumi.Output<string>;
|
|
163
|
+
/**
|
|
164
|
+
* When this pay config, or one of its rules, was last changed.
|
|
165
|
+
*/
|
|
166
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
167
|
+
/**
|
|
168
|
+
* Rules that apply every week, by day of week and time of day, in evaluation order. The first rule that covers a shift prices it, so order matters. Changing the list changes the rules in place, position by position: a rule that moves keeps its position's ID rather than its own.
|
|
169
|
+
*/
|
|
170
|
+
readonly weeklyRules: pulumi.Output<outputs.PayConfigWeeklyRule[]>;
|
|
171
|
+
/**
|
|
172
|
+
* Create a PayConfig resource with the given unique name, arguments, and options.
|
|
173
|
+
*
|
|
174
|
+
* @param name The _unique_ name of the resource.
|
|
175
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
176
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
177
|
+
*/
|
|
178
|
+
constructor(name: string, args: PayConfigArgs, opts?: pulumi.CustomResourceOptions);
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Input properties used for looking up and filtering PayConfig resources.
|
|
182
|
+
*/
|
|
183
|
+
export interface PayConfigState {
|
|
184
|
+
/**
|
|
185
|
+
* Rate paid for any time no rule covers, in the lowest denomination of the currency
|
|
186
|
+
*/
|
|
187
|
+
baseRateCents?: pulumi.Input<number | undefined>;
|
|
188
|
+
/**
|
|
189
|
+
* When this pay config was created.
|
|
190
|
+
*/
|
|
191
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
192
|
+
/**
|
|
193
|
+
* Currency this config pays in, in ISO 4217 format, such as `GBP`.
|
|
194
|
+
*/
|
|
195
|
+
currency?: pulumi.Input<string | undefined>;
|
|
196
|
+
/**
|
|
197
|
+
* Human readable name for this pay config
|
|
198
|
+
*/
|
|
199
|
+
name?: pulumi.Input<string | undefined>;
|
|
200
|
+
/**
|
|
201
|
+
* Rules that apply over a single window of time, such as a public holiday. These take precedence over the weekly rules and may not overlap each other. Changing the list changes the rules in place, position by position.
|
|
202
|
+
*/
|
|
203
|
+
oneOffRules?: pulumi.Input<pulumi.Input<inputs.PayConfigOneOffRule>[] | undefined>;
|
|
204
|
+
/**
|
|
205
|
+
* When a published report first priced against this config. Once set, editing the config needs the schedule*pay*configs.update_published scope. Null until then.
|
|
206
|
+
*/
|
|
207
|
+
publishedAt?: pulumi.Input<string | undefined>;
|
|
208
|
+
/**
|
|
209
|
+
* The unit of time every rate on this config is quoted per. Pay is pro-rated by the second either way. Possible values are: `hour`, `day`.
|
|
210
|
+
*/
|
|
211
|
+
rateTimeUnit?: pulumi.Input<string | undefined>;
|
|
212
|
+
/**
|
|
213
|
+
* IANA timezone this config's rules are interpreted in, such as `Europe/London`.
|
|
214
|
+
*/
|
|
215
|
+
timezone?: pulumi.Input<string | undefined>;
|
|
216
|
+
/**
|
|
217
|
+
* When this pay config, or one of its rules, was last changed.
|
|
218
|
+
*/
|
|
219
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
220
|
+
/**
|
|
221
|
+
* Rules that apply every week, by day of week and time of day, in evaluation order. The first rule that covers a shift prices it, so order matters. Changing the list changes the rules in place, position by position: a rule that moves keeps its position's ID rather than its own.
|
|
222
|
+
*/
|
|
223
|
+
weeklyRules?: pulumi.Input<pulumi.Input<inputs.PayConfigWeeklyRule>[] | undefined>;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* The set of arguments for constructing a PayConfig resource.
|
|
227
|
+
*/
|
|
228
|
+
export interface PayConfigArgs {
|
|
229
|
+
/**
|
|
230
|
+
* Rate paid for any time no rule covers, in the lowest denomination of the currency
|
|
231
|
+
*/
|
|
232
|
+
baseRateCents: pulumi.Input<number>;
|
|
233
|
+
/**
|
|
234
|
+
* Currency this config pays in, in ISO 4217 format, such as `GBP`.
|
|
235
|
+
*/
|
|
236
|
+
currency: pulumi.Input<string>;
|
|
237
|
+
/**
|
|
238
|
+
* Human readable name for this pay config
|
|
239
|
+
*/
|
|
240
|
+
name?: pulumi.Input<string | undefined>;
|
|
241
|
+
/**
|
|
242
|
+
* Rules that apply over a single window of time, such as a public holiday. These take precedence over the weekly rules and may not overlap each other. Changing the list changes the rules in place, position by position.
|
|
243
|
+
*/
|
|
244
|
+
oneOffRules?: pulumi.Input<pulumi.Input<inputs.PayConfigOneOffRule>[] | undefined>;
|
|
245
|
+
/**
|
|
246
|
+
* The unit of time every rate on this config is quoted per. Pay is pro-rated by the second either way. Possible values are: `hour`, `day`.
|
|
247
|
+
*/
|
|
248
|
+
rateTimeUnit: pulumi.Input<string>;
|
|
249
|
+
/**
|
|
250
|
+
* IANA timezone this config's rules are interpreted in, such as `Europe/London`.
|
|
251
|
+
*/
|
|
252
|
+
timezone: pulumi.Input<string>;
|
|
253
|
+
/**
|
|
254
|
+
* Rules that apply every week, by day of week and time of day, in evaluation order. The first rule that covers a shift prices it, so order matters. Changing the list changes the rules in place, position by position: a rule that moves keeps its position's ID rather than its own.
|
|
255
|
+
*/
|
|
256
|
+
weeklyRules?: pulumi.Input<pulumi.Input<inputs.PayConfigWeeklyRule>[] | undefined>;
|
|
257
|
+
}
|
|
258
|
+
//# sourceMappingURL=payConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payConfig.d.ts","sourceRoot":"","sources":["../payConfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MA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ACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CACtF;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACnF;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CACtF"}
|
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;AAE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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
|
@@ -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.",
|
|
@@ -303,7 +309,7 @@ export declare class Policy extends pulumi.CustomResource {
|
|
|
303
309
|
*/
|
|
304
310
|
static isInstance(obj: any): obj is Policy;
|
|
305
311
|
/**
|
|
306
|
-
* Who to assign a finding to, and when to remind them.
|
|
312
|
+
* 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
313
|
*/
|
|
308
314
|
readonly assignmentRules: pulumi.Output<outputs.PolicyAssignmentRules | undefined>;
|
|
309
315
|
/**
|
|
@@ -331,11 +337,11 @@ export declare class Policy extends pulumi.CustomResource {
|
|
|
331
337
|
*/
|
|
332
338
|
readonly name: pulumi.Output<string>;
|
|
333
339
|
/**
|
|
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`
|
|
340
|
+
* 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
341
|
*/
|
|
336
342
|
readonly onCallReadiness: pulumi.Output<outputs.PolicyOnCallReadiness | undefined>;
|
|
337
343
|
/**
|
|
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.
|
|
344
|
+
* 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
345
|
*/
|
|
340
346
|
readonly policyType: pulumi.Output<string>;
|
|
341
347
|
/**
|
|
@@ -351,7 +357,11 @@ export declare class Policy extends pulumi.CustomResource {
|
|
|
351
357
|
*/
|
|
352
358
|
readonly status: pulumi.Output<string>;
|
|
353
359
|
/**
|
|
354
|
-
*
|
|
360
|
+
* 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.
|
|
361
|
+
*/
|
|
362
|
+
readonly unlockInDashboard: pulumi.Output<boolean | undefined>;
|
|
363
|
+
/**
|
|
364
|
+
* 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
365
|
*/
|
|
356
366
|
readonly vacationConflict: pulumi.Output<outputs.PolicyVacationConflict | undefined>;
|
|
357
367
|
/**
|
|
@@ -368,7 +378,7 @@ export declare class Policy extends pulumi.CustomResource {
|
|
|
368
378
|
*/
|
|
369
379
|
export interface PolicyState {
|
|
370
380
|
/**
|
|
371
|
-
* Who to assign a finding to, and when to remind them.
|
|
381
|
+
* 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
382
|
*/
|
|
373
383
|
assignmentRules?: pulumi.Input<inputs.PolicyAssignmentRules | undefined>;
|
|
374
384
|
/**
|
|
@@ -396,11 +406,11 @@ export interface PolicyState {
|
|
|
396
406
|
*/
|
|
397
407
|
name?: pulumi.Input<string | undefined>;
|
|
398
408
|
/**
|
|
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`
|
|
409
|
+
* 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
410
|
*/
|
|
401
411
|
onCallReadiness?: pulumi.Input<inputs.PolicyOnCallReadiness | undefined>;
|
|
402
412
|
/**
|
|
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.
|
|
413
|
+
* 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
414
|
*/
|
|
405
415
|
policyType?: pulumi.Input<string | undefined>;
|
|
406
416
|
/**
|
|
@@ -416,7 +426,11 @@ export interface PolicyState {
|
|
|
416
426
|
*/
|
|
417
427
|
status?: pulumi.Input<string | undefined>;
|
|
418
428
|
/**
|
|
419
|
-
*
|
|
429
|
+
* 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.
|
|
430
|
+
*/
|
|
431
|
+
unlockInDashboard?: pulumi.Input<boolean | undefined>;
|
|
432
|
+
/**
|
|
433
|
+
* 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
434
|
*/
|
|
421
435
|
vacationConflict?: pulumi.Input<inputs.PolicyVacationConflict | undefined>;
|
|
422
436
|
}
|
|
@@ -425,7 +439,7 @@ export interface PolicyState {
|
|
|
425
439
|
*/
|
|
426
440
|
export interface PolicyArgs {
|
|
427
441
|
/**
|
|
428
|
-
* Who to assign a finding to, and when to remind them.
|
|
442
|
+
* 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
443
|
*/
|
|
430
444
|
assignmentRules?: pulumi.Input<inputs.PolicyAssignmentRules | undefined>;
|
|
431
445
|
/**
|
|
@@ -453,7 +467,7 @@ export interface PolicyArgs {
|
|
|
453
467
|
*/
|
|
454
468
|
name?: pulumi.Input<string | undefined>;
|
|
455
469
|
/**
|
|
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`
|
|
470
|
+
* 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
471
|
*/
|
|
458
472
|
onCallReadiness?: pulumi.Input<inputs.PolicyOnCallReadiness | undefined>;
|
|
459
473
|
/**
|
|
@@ -469,7 +483,11 @@ export interface PolicyArgs {
|
|
|
469
483
|
*/
|
|
470
484
|
status?: pulumi.Input<string | undefined>;
|
|
471
485
|
/**
|
|
472
|
-
*
|
|
486
|
+
* 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.
|
|
487
|
+
*/
|
|
488
|
+
unlockInDashboard?: pulumi.Input<boolean | undefined>;
|
|
489
|
+
/**
|
|
490
|
+
* 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
491
|
*/
|
|
474
492
|
vacationConflict?: pulumi.Input<inputs.PolicyVacationConflict | undefined>;
|
|
475
493
|
}
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkSG;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,SA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