@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
|
@@ -0,0 +1,175 @@
|
|
|
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.AnnouncementRule = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Create and manage announcement rules.
|
|
33
|
+
*
|
|
34
|
+
* An announcement rule posts an announcement of each incident that matches its conditions
|
|
35
|
+
* into the channels it lists, rendered with an announcement template.
|
|
36
|
+
*
|
|
37
|
+
* Set `slackChannelIds` when your organisation uses Slack, or `microsoftTeamsChannelIds` when it uses Microsoft Teams.
|
|
38
|
+
*
|
|
39
|
+
* An API key can only manage a rule whose `privateIncidentScope` is `none`: announcing private incidents needs a permission no API key role grants, so a rule scoped to `all` or `owningTeams` has to be managed in the dashboard.
|
|
40
|
+
*
|
|
41
|
+
* ## Example Usage
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as incident from "@incident-io/pulumi";
|
|
46
|
+
*
|
|
47
|
+
* const critical = incident.getSeverity({
|
|
48
|
+
* name: "Critical",
|
|
49
|
+
* });
|
|
50
|
+
* // The template the rule's announcements are rendered with: severity and status, then a
|
|
51
|
+
* // button to join the call.
|
|
52
|
+
* const majorIncidents = new incident.AnnouncementTemplate("major_incidents", {
|
|
53
|
+
* name: "Major incidents",
|
|
54
|
+
* fields: [
|
|
55
|
+
* {
|
|
56
|
+
* fieldType: "announcement_post_fields_severity",
|
|
57
|
+
* },
|
|
58
|
+
* {
|
|
59
|
+
* fieldType: "announcement_post_fields_status",
|
|
60
|
+
* },
|
|
61
|
+
* ],
|
|
62
|
+
* actions: [{
|
|
63
|
+
* actionType: "announcement_post_actions_join_call",
|
|
64
|
+
* }],
|
|
65
|
+
* });
|
|
66
|
+
* // Announce every critical incident, triage included, in #major-incidents, rendered with
|
|
67
|
+
* // the major incidents template. Updates are shared in the announcement's thread.
|
|
68
|
+
* const criticalAnnouncementRule = new incident.AnnouncementRule("critical", {
|
|
69
|
+
* name: "Critical incidents",
|
|
70
|
+
* slackChannelIds: ["C02AW36C1M5"],
|
|
71
|
+
* mode: "include_triage",
|
|
72
|
+
* updateSharingMode: "thread",
|
|
73
|
+
* templateId: majorIncidents.id,
|
|
74
|
+
* conditionGroups: [{
|
|
75
|
+
* conditions: [{
|
|
76
|
+
* subject: "incident.severity",
|
|
77
|
+
* operation: "one_of",
|
|
78
|
+
* paramBindings: [{
|
|
79
|
+
* arrayValue: [{
|
|
80
|
+
* literal: critical.then(critical => critical.id),
|
|
81
|
+
* }],
|
|
82
|
+
* }],
|
|
83
|
+
* }],
|
|
84
|
+
* }],
|
|
85
|
+
* });
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* ## Import
|
|
89
|
+
*
|
|
90
|
+
* Import is supported using an `import` block or the `pulumi import` command:
|
|
91
|
+
*
|
|
92
|
+
* The `pulumi import` command can be used, for example:
|
|
93
|
+
*
|
|
94
|
+
* !/bin/bash
|
|
95
|
+
*
|
|
96
|
+
* Import an announcement rule using its ID
|
|
97
|
+
* Replace the ID with a real ID from your incident.io organization
|
|
98
|
+
*
|
|
99
|
+
* ```sh
|
|
100
|
+
* $ pulumi import incident:index/announcementRule:AnnouncementRule example 01ABC123DEF456GHI789JKL
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
class AnnouncementRule extends pulumi.CustomResource {
|
|
104
|
+
/**
|
|
105
|
+
* Get an existing AnnouncementRule resource's state with the given name, ID, and optional extra
|
|
106
|
+
* properties used to qualify the lookup.
|
|
107
|
+
*
|
|
108
|
+
* @param name The _unique_ name of the resulting resource.
|
|
109
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
110
|
+
* @param state Any extra arguments used during the lookup.
|
|
111
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
112
|
+
*/
|
|
113
|
+
static get(name, id, state, opts) {
|
|
114
|
+
return new AnnouncementRule(name, state, { ...opts, id: id });
|
|
115
|
+
}
|
|
116
|
+
/** @internal */
|
|
117
|
+
static __pulumiType = 'incident:index/announcementRule:AnnouncementRule';
|
|
118
|
+
/**
|
|
119
|
+
* Returns true if the given object is an instance of AnnouncementRule. This is designed to work even
|
|
120
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
121
|
+
*/
|
|
122
|
+
static isInstance(obj) {
|
|
123
|
+
if (obj === undefined || obj === null) {
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
return obj['__pulumiType'] === AnnouncementRule.__pulumiType;
|
|
127
|
+
}
|
|
128
|
+
constructor(name, argsOrState, opts) {
|
|
129
|
+
let resourceInputs = {};
|
|
130
|
+
opts = opts || {};
|
|
131
|
+
if (opts.id) {
|
|
132
|
+
const state = argsOrState;
|
|
133
|
+
resourceInputs["conditionGroups"] = state?.conditionGroups;
|
|
134
|
+
resourceInputs["conditionsNoLongerApplyBehaviour"] = state?.conditionsNoLongerApplyBehaviour;
|
|
135
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
136
|
+
resourceInputs["microsoftTeamsChannelIds"] = state?.microsoftTeamsChannelIds;
|
|
137
|
+
resourceInputs["mode"] = state?.mode;
|
|
138
|
+
resourceInputs["name"] = state?.name;
|
|
139
|
+
resourceInputs["owningTeamIds"] = state?.owningTeamIds;
|
|
140
|
+
resourceInputs["privateIncidentScope"] = state?.privateIncidentScope;
|
|
141
|
+
resourceInputs["slackChannelIds"] = state?.slackChannelIds;
|
|
142
|
+
resourceInputs["templateId"] = state?.templateId;
|
|
143
|
+
resourceInputs["updateSharingMode"] = state?.updateSharingMode;
|
|
144
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
const args = argsOrState;
|
|
148
|
+
if (args?.conditionGroups === undefined && !opts.urn) {
|
|
149
|
+
throw new Error("Missing required property 'conditionGroups'");
|
|
150
|
+
}
|
|
151
|
+
if (args?.mode === undefined && !opts.urn) {
|
|
152
|
+
throw new Error("Missing required property 'mode'");
|
|
153
|
+
}
|
|
154
|
+
if (args?.updateSharingMode === undefined && !opts.urn) {
|
|
155
|
+
throw new Error("Missing required property 'updateSharingMode'");
|
|
156
|
+
}
|
|
157
|
+
resourceInputs["conditionGroups"] = args?.conditionGroups;
|
|
158
|
+
resourceInputs["conditionsNoLongerApplyBehaviour"] = args?.conditionsNoLongerApplyBehaviour;
|
|
159
|
+
resourceInputs["microsoftTeamsChannelIds"] = args?.microsoftTeamsChannelIds;
|
|
160
|
+
resourceInputs["mode"] = args?.mode;
|
|
161
|
+
resourceInputs["name"] = args?.name;
|
|
162
|
+
resourceInputs["owningTeamIds"] = args?.owningTeamIds;
|
|
163
|
+
resourceInputs["privateIncidentScope"] = args?.privateIncidentScope;
|
|
164
|
+
resourceInputs["slackChannelIds"] = args?.slackChannelIds;
|
|
165
|
+
resourceInputs["templateId"] = args?.templateId;
|
|
166
|
+
resourceInputs["updateSharingMode"] = args?.updateSharingMode;
|
|
167
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
168
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
169
|
+
}
|
|
170
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
171
|
+
super(AnnouncementRule.__pulumiType, name, resourceInputs, opts);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
exports.AnnouncementRule = AnnouncementRule;
|
|
175
|
+
//# sourceMappingURL=announcementRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"announcementRule.js","sourceRoot":"","sources":["../announcementRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,kDAAkD,CAAC;IAEzF;;;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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IA2DD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,i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I,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,kCAAkC,CAAC,GAAG,IAAI,EAAE,gCAAgC,CAAC;YAC5F,cAAc,CAAC,0BAA0B,CAAC,GAAG,IAAI,EAAE,wBAAwB,CAAC;YAC5E,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,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,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAhIL,4CAiIC"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Create and manage announcement templates.
|
|
6
|
+
*
|
|
7
|
+
* An announcement template controls which fields and actions appear on an announcement post.
|
|
8
|
+
* Each announcement rule renders its posts with one template.
|
|
9
|
+
*
|
|
10
|
+
* `fields` and `actions` appear on the post in the order they're listed.
|
|
11
|
+
*
|
|
12
|
+
* Which template is the organisation's default is set in the dashboard, and the default template can't be deleted: import it to manage its fields, but remove it from state rather than destroying it.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as incident from "@incident-io/pulumi";
|
|
19
|
+
*
|
|
20
|
+
* // A template for major incidents: severity and status first, then a note asking people
|
|
21
|
+
* // to join. Fields and actions appear on the post in the order they're listed.
|
|
22
|
+
* const majorIncidents = new incident.AnnouncementTemplate("major_incidents", {
|
|
23
|
+
* name: "Major incidents",
|
|
24
|
+
* fields: [
|
|
25
|
+
* {
|
|
26
|
+
* fieldType: "announcement_post_fields_severity",
|
|
27
|
+
* emoji: "fire",
|
|
28
|
+
* },
|
|
29
|
+
* {
|
|
30
|
+
* fieldType: "announcement_post_fields_status",
|
|
31
|
+
* },
|
|
32
|
+
* {
|
|
33
|
+
* fieldType: "announcement_post_fields_rich_text",
|
|
34
|
+
* richText: {
|
|
35
|
+
* type: "markdown",
|
|
36
|
+
* contents: "If you can help, please join {{incident.reference}}",
|
|
37
|
+
* },
|
|
38
|
+
* },
|
|
39
|
+
* ],
|
|
40
|
+
* actions: [
|
|
41
|
+
* {
|
|
42
|
+
* actionType: "announcement_post_actions_join_call",
|
|
43
|
+
* },
|
|
44
|
+
* {
|
|
45
|
+
* actionType: "announcement_post_actions_homepage",
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ## Import
|
|
52
|
+
*
|
|
53
|
+
* Import is supported using an `import` block or the `pulumi import` command:
|
|
54
|
+
*
|
|
55
|
+
* The `pulumi import` command can be used, for example:
|
|
56
|
+
*
|
|
57
|
+
* !/bin/bash
|
|
58
|
+
*
|
|
59
|
+
* Import an announcement template using its ID
|
|
60
|
+
* Replace the ID with a real ID from your incident.io organization
|
|
61
|
+
*
|
|
62
|
+
* ```sh
|
|
63
|
+
* $ pulumi import incident:index/announcementTemplate:AnnouncementTemplate example 01ABC123DEF456GHI789JKL
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
export declare class AnnouncementTemplate extends pulumi.CustomResource {
|
|
67
|
+
/**
|
|
68
|
+
* Get an existing AnnouncementTemplate resource's state with the given name, ID, and optional extra
|
|
69
|
+
* properties used to qualify the lookup.
|
|
70
|
+
*
|
|
71
|
+
* @param name The _unique_ name of the resulting resource.
|
|
72
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
73
|
+
* @param state Any extra arguments used during the lookup.
|
|
74
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
75
|
+
*/
|
|
76
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AnnouncementTemplateState, opts?: pulumi.CustomResourceOptions): AnnouncementTemplate;
|
|
77
|
+
/**
|
|
78
|
+
* Returns true if the given object is an instance of AnnouncementTemplate. This is designed to work even
|
|
79
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
80
|
+
*/
|
|
81
|
+
static isInstance(obj: any): obj is AnnouncementTemplate;
|
|
82
|
+
/**
|
|
83
|
+
* Actions shown on the announcement post, in rank order. Set `actions = []` for a post with no actions.
|
|
84
|
+
*/
|
|
85
|
+
readonly actions: pulumi.Output<outputs.AnnouncementTemplateAction[]>;
|
|
86
|
+
/**
|
|
87
|
+
* Fields shown on the announcement post, in rank order. Set `fields = []` for a post with no fields.
|
|
88
|
+
*/
|
|
89
|
+
readonly fields: pulumi.Output<outputs.AnnouncementTemplateField[]>;
|
|
90
|
+
/**
|
|
91
|
+
* Whether this is the organisation's default template, used by rules that don't choose one
|
|
92
|
+
*/
|
|
93
|
+
readonly isDefault: pulumi.Output<boolean>;
|
|
94
|
+
/**
|
|
95
|
+
* Name of this announcement template, unique within the organisation
|
|
96
|
+
*/
|
|
97
|
+
readonly name: pulumi.Output<string>;
|
|
98
|
+
/**
|
|
99
|
+
* IDs of the teams that own this template
|
|
100
|
+
*/
|
|
101
|
+
readonly owningTeamIds: pulumi.Output<string[]>;
|
|
102
|
+
/**
|
|
103
|
+
* Create a AnnouncementTemplate resource with the given unique name, arguments, and options.
|
|
104
|
+
*
|
|
105
|
+
* @param name The _unique_ name of the resource.
|
|
106
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
107
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
108
|
+
*/
|
|
109
|
+
constructor(name: string, args: AnnouncementTemplateArgs, opts?: pulumi.CustomResourceOptions);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Input properties used for looking up and filtering AnnouncementTemplate resources.
|
|
113
|
+
*/
|
|
114
|
+
export interface AnnouncementTemplateState {
|
|
115
|
+
/**
|
|
116
|
+
* Actions shown on the announcement post, in rank order. Set `actions = []` for a post with no actions.
|
|
117
|
+
*/
|
|
118
|
+
actions?: pulumi.Input<pulumi.Input<inputs.AnnouncementTemplateAction>[] | undefined>;
|
|
119
|
+
/**
|
|
120
|
+
* Fields shown on the announcement post, in rank order. Set `fields = []` for a post with no fields.
|
|
121
|
+
*/
|
|
122
|
+
fields?: pulumi.Input<pulumi.Input<inputs.AnnouncementTemplateField>[] | undefined>;
|
|
123
|
+
/**
|
|
124
|
+
* Whether this is the organisation's default template, used by rules that don't choose one
|
|
125
|
+
*/
|
|
126
|
+
isDefault?: pulumi.Input<boolean | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* Name of this announcement template, unique within the organisation
|
|
129
|
+
*/
|
|
130
|
+
name?: pulumi.Input<string | undefined>;
|
|
131
|
+
/**
|
|
132
|
+
* IDs of the teams that own this template
|
|
133
|
+
*/
|
|
134
|
+
owningTeamIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* The set of arguments for constructing a AnnouncementTemplate resource.
|
|
138
|
+
*/
|
|
139
|
+
export interface AnnouncementTemplateArgs {
|
|
140
|
+
/**
|
|
141
|
+
* Actions shown on the announcement post, in rank order. Set `actions = []` for a post with no actions.
|
|
142
|
+
*/
|
|
143
|
+
actions: pulumi.Input<pulumi.Input<inputs.AnnouncementTemplateAction>[]>;
|
|
144
|
+
/**
|
|
145
|
+
* Fields shown on the announcement post, in rank order. Set `fields = []` for a post with no fields.
|
|
146
|
+
*/
|
|
147
|
+
fields: pulumi.Input<pulumi.Input<inputs.AnnouncementTemplateField>[]>;
|
|
148
|
+
/**
|
|
149
|
+
* Name of this announcement template, unique within the organisation
|
|
150
|
+
*/
|
|
151
|
+
name?: pulumi.Input<string | undefined>;
|
|
152
|
+
/**
|
|
153
|
+
* IDs of the teams that own this template
|
|
154
|
+
*/
|
|
155
|
+
owningTeamIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=announcementTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"announcementTemplate.d.ts","sourceRoot":"","sources":["../announcementTemplate.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,qBAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,oBAAoB;IAO1J;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,oBAAoB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BAAwB;IACrC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,0BAA0B,CAAC,EAAE,CAAC,CAAC;IACzE;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,yBAAyB,CAAC,EAAE,CAAC,CAAC;IACvE;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CACpE"}
|
|
@@ -0,0 +1,148 @@
|
|
|
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.AnnouncementTemplate = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Create and manage announcement templates.
|
|
33
|
+
*
|
|
34
|
+
* An announcement template controls which fields and actions appear on an announcement post.
|
|
35
|
+
* Each announcement rule renders its posts with one template.
|
|
36
|
+
*
|
|
37
|
+
* `fields` and `actions` appear on the post in the order they're listed.
|
|
38
|
+
*
|
|
39
|
+
* Which template is the organisation's default is set in the dashboard, and the default template can't be deleted: import it to manage its fields, but remove it from state rather than destroying it.
|
|
40
|
+
*
|
|
41
|
+
* ## Example Usage
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as incident from "@incident-io/pulumi";
|
|
46
|
+
*
|
|
47
|
+
* // A template for major incidents: severity and status first, then a note asking people
|
|
48
|
+
* // to join. Fields and actions appear on the post in the order they're listed.
|
|
49
|
+
* const majorIncidents = new incident.AnnouncementTemplate("major_incidents", {
|
|
50
|
+
* name: "Major incidents",
|
|
51
|
+
* fields: [
|
|
52
|
+
* {
|
|
53
|
+
* fieldType: "announcement_post_fields_severity",
|
|
54
|
+
* emoji: "fire",
|
|
55
|
+
* },
|
|
56
|
+
* {
|
|
57
|
+
* fieldType: "announcement_post_fields_status",
|
|
58
|
+
* },
|
|
59
|
+
* {
|
|
60
|
+
* fieldType: "announcement_post_fields_rich_text",
|
|
61
|
+
* richText: {
|
|
62
|
+
* type: "markdown",
|
|
63
|
+
* contents: "If you can help, please join {{incident.reference}}",
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
66
|
+
* ],
|
|
67
|
+
* actions: [
|
|
68
|
+
* {
|
|
69
|
+
* actionType: "announcement_post_actions_join_call",
|
|
70
|
+
* },
|
|
71
|
+
* {
|
|
72
|
+
* actionType: "announcement_post_actions_homepage",
|
|
73
|
+
* },
|
|
74
|
+
* ],
|
|
75
|
+
* });
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* ## Import
|
|
79
|
+
*
|
|
80
|
+
* Import is supported using an `import` block or the `pulumi import` command:
|
|
81
|
+
*
|
|
82
|
+
* The `pulumi import` command can be used, for example:
|
|
83
|
+
*
|
|
84
|
+
* !/bin/bash
|
|
85
|
+
*
|
|
86
|
+
* Import an announcement template using its ID
|
|
87
|
+
* Replace the ID with a real ID from your incident.io organization
|
|
88
|
+
*
|
|
89
|
+
* ```sh
|
|
90
|
+
* $ pulumi import incident:index/announcementTemplate:AnnouncementTemplate example 01ABC123DEF456GHI789JKL
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
class AnnouncementTemplate extends pulumi.CustomResource {
|
|
94
|
+
/**
|
|
95
|
+
* Get an existing AnnouncementTemplate resource's state with the given name, ID, and optional extra
|
|
96
|
+
* properties used to qualify the lookup.
|
|
97
|
+
*
|
|
98
|
+
* @param name The _unique_ name of the resulting resource.
|
|
99
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
100
|
+
* @param state Any extra arguments used during the lookup.
|
|
101
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
102
|
+
*/
|
|
103
|
+
static get(name, id, state, opts) {
|
|
104
|
+
return new AnnouncementTemplate(name, state, { ...opts, id: id });
|
|
105
|
+
}
|
|
106
|
+
/** @internal */
|
|
107
|
+
static __pulumiType = 'incident:index/announcementTemplate:AnnouncementTemplate';
|
|
108
|
+
/**
|
|
109
|
+
* Returns true if the given object is an instance of AnnouncementTemplate. This is designed to work even
|
|
110
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
111
|
+
*/
|
|
112
|
+
static isInstance(obj) {
|
|
113
|
+
if (obj === undefined || obj === null) {
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
return obj['__pulumiType'] === AnnouncementTemplate.__pulumiType;
|
|
117
|
+
}
|
|
118
|
+
constructor(name, argsOrState, opts) {
|
|
119
|
+
let resourceInputs = {};
|
|
120
|
+
opts = opts || {};
|
|
121
|
+
if (opts.id) {
|
|
122
|
+
const state = argsOrState;
|
|
123
|
+
resourceInputs["actions"] = state?.actions;
|
|
124
|
+
resourceInputs["fields"] = state?.fields;
|
|
125
|
+
resourceInputs["isDefault"] = state?.isDefault;
|
|
126
|
+
resourceInputs["name"] = state?.name;
|
|
127
|
+
resourceInputs["owningTeamIds"] = state?.owningTeamIds;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
const args = argsOrState;
|
|
131
|
+
if (args?.actions === undefined && !opts.urn) {
|
|
132
|
+
throw new Error("Missing required property 'actions'");
|
|
133
|
+
}
|
|
134
|
+
if (args?.fields === undefined && !opts.urn) {
|
|
135
|
+
throw new Error("Missing required property 'fields'");
|
|
136
|
+
}
|
|
137
|
+
resourceInputs["actions"] = args?.actions;
|
|
138
|
+
resourceInputs["fields"] = args?.fields;
|
|
139
|
+
resourceInputs["name"] = args?.name;
|
|
140
|
+
resourceInputs["owningTeamIds"] = args?.owningTeamIds;
|
|
141
|
+
resourceInputs["isDefault"] = undefined /*out*/;
|
|
142
|
+
}
|
|
143
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
144
|
+
super(AnnouncementTemplate.__pulumiType, name, resourceInputs, opts);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.AnnouncementTemplate = AnnouncementTemplate;
|
|
148
|
+
//# sourceMappingURL=announcementTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"announcementTemplate.js","sourceRoot":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AAC,GAAG,KAAK,EAAE,aAAa,CAAC;SAC1D;aAAM;YACH,MAAM,IAAI,GAAG,WAAmD,CAAC;YACjE,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,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,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAnFL,oDAoFC"}
|
package/apiKey.d.ts
CHANGED
|
@@ -178,6 +178,10 @@ export declare class ApiKey extends pulumi.CustomResource {
|
|
|
178
178
|
* The version of the token this configuration holds. Terraform stores this number, so changing it - conventionally by incrementing it - is what asks incident.io to rotate the key. It is your own counter, and incident.io never sees it. Leave it unset to manage a key's name and roles without ever rotating it.
|
|
179
179
|
*/
|
|
180
180
|
readonly tokenVersion: pulumi.Output<number | undefined>;
|
|
181
|
+
/**
|
|
182
|
+
* 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.
|
|
183
|
+
*/
|
|
184
|
+
readonly unlockInDashboard: pulumi.Output<boolean | undefined>;
|
|
181
185
|
/**
|
|
182
186
|
* Create a ApiKey resource with the given unique name, arguments, and options.
|
|
183
187
|
*
|
|
@@ -237,6 +241,10 @@ export interface ApiKeyState {
|
|
|
237
241
|
* The version of the token this configuration holds. Terraform stores this number, so changing it - conventionally by incrementing it - is what asks incident.io to rotate the key. It is your own counter, and incident.io never sees it. Leave it unset to manage a key's name and roles without ever rotating it.
|
|
238
242
|
*/
|
|
239
243
|
tokenVersion?: pulumi.Input<number | undefined>;
|
|
244
|
+
/**
|
|
245
|
+
* 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.
|
|
246
|
+
*/
|
|
247
|
+
unlockInDashboard?: pulumi.Input<boolean | undefined>;
|
|
240
248
|
}
|
|
241
249
|
/**
|
|
242
250
|
* The set of arguments for constructing a ApiKey resource.
|
|
@@ -272,5 +280,9 @@ export interface ApiKeyArgs {
|
|
|
272
280
|
* The version of the token this configuration holds. Terraform stores this number, so changing it - conventionally by incrementing it - is what asks incident.io to rotate the key. It is your own counter, and incident.io never sees it. Leave it unset to manage a key's name and roles without ever rotating it.
|
|
273
281
|
*/
|
|
274
282
|
tokenVersion?: pulumi.Input<number | undefined>;
|
|
283
|
+
/**
|
|
284
|
+
* 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.
|
|
285
|
+
*/
|
|
286
|
+
unlockInDashboard?: pulumi.Input<boolean | undefined>;
|
|
275
287
|
}
|
|
276
288
|
//# sourceMappingURL=apiKey.d.ts.map
|
package/apiKey.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiKey.d.ts","sourceRoot":"","sources":["../apiKey.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoHG;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,GAAG,SAAS,CAAC,CAAC;IACpE;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAgC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClE;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpD;;OAEG;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SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC7D;;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9D;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC3D;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACjE;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CACzD"}
|
package/apiKey.js
CHANGED
|
@@ -186,6 +186,7 @@ class ApiKey extends pulumi.CustomResource {
|
|
|
186
186
|
resourceInputs["token"] = state?.token;
|
|
187
187
|
resourceInputs["tokenLastIssuedAt"] = state?.tokenLastIssuedAt;
|
|
188
188
|
resourceInputs["tokenVersion"] = state?.tokenVersion;
|
|
189
|
+
resourceInputs["unlockInDashboard"] = state?.unlockInDashboard;
|
|
189
190
|
}
|
|
190
191
|
else {
|
|
191
192
|
const args = argsOrState;
|
|
@@ -196,6 +197,7 @@ class ApiKey extends pulumi.CustomResource {
|
|
|
196
197
|
resourceInputs["teamIds"] = args?.teamIds;
|
|
197
198
|
resourceInputs["teamRoleNames"] = args?.teamRoleNames;
|
|
198
199
|
resourceInputs["tokenVersion"] = args?.tokenVersion;
|
|
200
|
+
resourceInputs["unlockInDashboard"] = args?.unlockInDashboard;
|
|
199
201
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
200
202
|
resourceInputs["lastUsedAt"] = undefined /*out*/;
|
|
201
203
|
resourceInputs["token"] = undefined /*out*/;
|
package/apiKey.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiKey.js","sourceRoot":"","sources":["../apiKey.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoHG;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,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,8BAA8B,CAAC;IAErE;;;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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;
|
|
1
|
+
{"version":3,"file":"apiKey.js","sourceRoot":"","sources":["../apiKey.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;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3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,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;;AA3HL,wBA4HC"}
|
package/catalogType.d.ts
CHANGED
|
@@ -83,6 +83,10 @@ export declare class CatalogType extends pulumi.CustomResource {
|
|
|
83
83
|
* The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
|
|
84
84
|
*/
|
|
85
85
|
readonly typeName: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* 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.
|
|
88
|
+
*/
|
|
89
|
+
readonly unlockInDashboard: pulumi.Output<boolean | undefined>;
|
|
86
90
|
/**
|
|
87
91
|
* If enabled, you can refer to entries of this type by their name, as well as their external ID and any aliases.
|
|
88
92
|
*/
|
|
@@ -128,6 +132,10 @@ export interface CatalogTypeState {
|
|
|
128
132
|
* The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
|
|
129
133
|
*/
|
|
130
134
|
typeName?: pulumi.Input<string | undefined>;
|
|
135
|
+
/**
|
|
136
|
+
* 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.
|
|
137
|
+
*/
|
|
138
|
+
unlockInDashboard?: pulumi.Input<boolean | undefined>;
|
|
131
139
|
/**
|
|
132
140
|
* If enabled, you can refer to entries of this type by their name, as well as their external ID and any aliases.
|
|
133
141
|
*/
|
|
@@ -161,6 +169,10 @@ export interface CatalogTypeArgs {
|
|
|
161
169
|
* The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
|
|
162
170
|
*/
|
|
163
171
|
typeName?: pulumi.Input<string | undefined>;
|
|
172
|
+
/**
|
|
173
|
+
* 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.
|
|
174
|
+
*/
|
|
175
|
+
unlockInDashboard?: pulumi.Input<boolean | undefined>;
|
|
164
176
|
/**
|
|
165
177
|
* If enabled, you can refer to entries of this type by their name, as well as their external ID and any aliases.
|
|
166
178
|
*/
|
package/catalogType.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogType.d.ts","sourceRoot":"","sources":["../catalogType.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,qBAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,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MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACjE;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACtD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CAC3D"}
|
package/catalogType.js
CHANGED
|
@@ -105,6 +105,7 @@ class CatalogType extends pulumi.CustomResource {
|
|
|
105
105
|
resourceInputs["owningTeamIds"] = state?.owningTeamIds;
|
|
106
106
|
resourceInputs["sourceRepoUrl"] = state?.sourceRepoUrl;
|
|
107
107
|
resourceInputs["typeName"] = state?.typeName;
|
|
108
|
+
resourceInputs["unlockInDashboard"] = state?.unlockInDashboard;
|
|
108
109
|
resourceInputs["useNameAsIdentifier"] = state?.useNameAsIdentifier;
|
|
109
110
|
}
|
|
110
111
|
else {
|
|
@@ -121,6 +122,7 @@ class CatalogType extends pulumi.CustomResource {
|
|
|
121
122
|
resourceInputs["owningTeamIds"] = args?.owningTeamIds;
|
|
122
123
|
resourceInputs["sourceRepoUrl"] = args?.sourceRepoUrl;
|
|
123
124
|
resourceInputs["typeName"] = args?.typeName;
|
|
125
|
+
resourceInputs["unlockInDashboard"] = args?.unlockInDashboard;
|
|
124
126
|
resourceInputs["useNameAsIdentifier"] = args?.useNameAsIdentifier;
|
|
125
127
|
resourceInputs["attributeType"] = undefined /*out*/;
|
|
126
128
|
}
|