@incident-io/pulumi 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -0
- package/README.md +69 -0
- package/alertAttribute.d.ts +230 -0
- package/alertAttribute.d.ts.map +1 -0
- package/alertAttribute.js +219 -0
- package/alertAttribute.js.map +1 -0
- package/alertRoute.d.ts +511 -0
- package/alertRoute.d.ts.map +1 -0
- package/alertRoute.js +432 -0
- package/alertRoute.js.map +1 -0
- package/alertSource.d.ts +347 -0
- package/alertSource.d.ts.map +1 -0
- package/alertSource.js +241 -0
- package/alertSource.js.map +1 -0
- package/alertSourceAttribute.d.ts +180 -0
- package/alertSourceAttribute.d.ts.map +1 -0
- package/alertSourceAttribute.js +107 -0
- package/alertSourceAttribute.js.map +1 -0
- package/alertSourceAttributeBeta.d.ts +188 -0
- package/alertSourceAttributeBeta.d.ts.map +1 -0
- package/alertSourceAttributeBeta.js +115 -0
- package/alertSourceAttributeBeta.js.map +1 -0
- package/alertSourceBeta.d.ts +244 -0
- package/alertSourceBeta.d.ts.map +1 -0
- package/alertSourceBeta.js +138 -0
- package/alertSourceBeta.js.map +1 -0
- package/apiKey.d.ts +276 -0
- package/apiKey.d.ts.map +1 -0
- package/apiKey.js +211 -0
- package/apiKey.js.map +1 -0
- package/catalogEntries.d.ts +241 -0
- package/catalogEntries.d.ts.map +1 -0
- package/catalogEntries.js +242 -0
- package/catalogEntries.js.map +1 -0
- package/catalogEntry.d.ts +183 -0
- package/catalogEntry.d.ts.map +1 -0
- package/catalogEntry.js +159 -0
- package/catalogEntry.js.map +1 -0
- package/catalogType.d.ts +169 -0
- package/catalogType.d.ts.map +1 -0
- package/catalogType.js +132 -0
- package/catalogType.js.map +1 -0
- package/catalogTypeAttribute.d.ts +190 -0
- package/catalogTypeAttribute.d.ts.map +1 -0
- package/catalogTypeAttribute.js +153 -0
- package/catalogTypeAttribute.js.map +1 -0
- package/config/index.d.ts +2 -0
- package/config/index.d.ts.map +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +13 -0
- package/config/vars.d.ts.map +1 -0
- package/config/vars.js +49 -0
- package/config/vars.js.map +1 -0
- package/customField.d.ts +260 -0
- package/customField.d.ts.map +1 -0
- package/customField.js +226 -0
- package/customField.js.map +1 -0
- package/customFieldOption.d.ts +107 -0
- package/customFieldOption.d.ts.map +1 -0
- package/customFieldOption.js +116 -0
- package/customFieldOption.js.map +1 -0
- package/escalationPath.d.ts +257 -0
- package/escalationPath.d.ts.map +1 -0
- package/escalationPath.js +228 -0
- package/escalationPath.js.map +1 -0
- package/escalationPathBeta.d.ts +134 -0
- package/escalationPathBeta.d.ts.map +1 -0
- package/escalationPathBeta.js +105 -0
- package/escalationPathBeta.js.map +1 -0
- package/getAlertAttribute.d.ts +81 -0
- package/getAlertAttribute.d.ts.map +1 -0
- package/getAlertAttribute.js +75 -0
- package/getAlertAttribute.js.map +1 -0
- package/getAlertSource.d.ts +169 -0
- package/getAlertSource.d.ts.map +1 -0
- package/getAlertSource.js +103 -0
- package/getAlertSource.js.map +1 -0
- package/getAlertSourceAttribute.d.ts +131 -0
- package/getAlertSourceAttribute.d.ts.map +1 -0
- package/getAlertSourceAttribute.js +85 -0
- package/getAlertSourceAttribute.js.map +1 -0
- package/getAlertSourceAttributeBeta.d.ts +131 -0
- package/getAlertSourceAttributeBeta.d.ts.map +1 -0
- package/getAlertSourceAttributeBeta.js +85 -0
- package/getAlertSourceAttributeBeta.js.map +1 -0
- package/getApiKey.d.ts +167 -0
- package/getApiKey.d.ts.map +1 -0
- package/getApiKey.js +145 -0
- package/getApiKey.js.map +1 -0
- package/getCatalogEntry.d.ts +77 -0
- package/getCatalogEntry.d.ts.map +1 -0
- package/getCatalogEntry.js +59 -0
- package/getCatalogEntry.js.map +1 -0
- package/getCatalogType.d.ts +163 -0
- package/getCatalogType.d.ts.map +1 -0
- package/getCatalogType.js +135 -0
- package/getCatalogType.js.map +1 -0
- package/getCatalogTypeAttribute.d.ts +73 -0
- package/getCatalogTypeAttribute.d.ts.map +1 -0
- package/getCatalogTypeAttribute.js +53 -0
- package/getCatalogTypeAttribute.js.map +1 -0
- package/getCustomField.d.ts +67 -0
- package/getCustomField.d.ts.map +1 -0
- package/getCustomField.js +51 -0
- package/getCustomField.js.map +1 -0
- package/getCustomFieldOption.d.ts +65 -0
- package/getCustomFieldOption.d.ts.map +1 -0
- package/getCustomFieldOption.js +55 -0
- package/getCustomFieldOption.js.map +1 -0
- package/getEscalationPath.d.ts +100 -0
- package/getEscalationPath.d.ts.map +1 -0
- package/getEscalationPath.js +83 -0
- package/getEscalationPath.js.map +1 -0
- package/getEscalationPathBeta.d.ts +100 -0
- package/getEscalationPathBeta.d.ts.map +1 -0
- package/getEscalationPathBeta.js +83 -0
- package/getEscalationPathBeta.js.map +1 -0
- package/getIncidentRole.d.ts +111 -0
- package/getIncidentRole.d.ts.map +1 -0
- package/getIncidentRole.js +105 -0
- package/getIncidentRole.js.map +1 -0
- package/getIncidentTemplate.d.ts +98 -0
- package/getIncidentTemplate.d.ts.map +1 -0
- package/getIncidentTemplate.js +95 -0
- package/getIncidentTemplate.js.map +1 -0
- package/getIncidentTimestamp.d.ts +107 -0
- package/getIncidentTimestamp.d.ts.map +1 -0
- package/getIncidentTimestamp.js +109 -0
- package/getIncidentTimestamp.js.map +1 -0
- package/getIncidentType.d.ts +121 -0
- package/getIncidentType.d.ts.map +1 -0
- package/getIncidentType.js +107 -0
- package/getIncidentType.js.map +1 -0
- package/getIpAllowlist.d.ts +62 -0
- package/getIpAllowlist.d.ts.map +1 -0
- package/getIpAllowlist.js +77 -0
- package/getIpAllowlist.js.map +1 -0
- package/getPolicy.d.ts +97 -0
- package/getPolicy.d.ts.map +1 -0
- package/getPolicy.js +91 -0
- package/getPolicy.js.map +1 -0
- package/getRichText.d.ts +111 -0
- package/getRichText.d.ts.map +1 -0
- package/getRichText.js +107 -0
- package/getRichText.js.map +1 -0
- package/getSchedule.d.ts +89 -0
- package/getSchedule.d.ts.map +1 -0
- package/getSchedule.js +87 -0
- package/getSchedule.js.map +1 -0
- package/getScheduleBeta.d.ts +85 -0
- package/getScheduleBeta.d.ts.map +1 -0
- package/getScheduleBeta.js +83 -0
- package/getScheduleBeta.js.map +1 -0
- package/getScheduleReplica.d.ts +116 -0
- package/getScheduleReplica.d.ts.map +1 -0
- package/getScheduleReplica.js +79 -0
- package/getScheduleReplica.js.map +1 -0
- package/getScheduleRotation.d.ts +166 -0
- package/getScheduleRotation.d.ts.map +1 -0
- package/getScheduleRotation.js +127 -0
- package/getScheduleRotation.js.map +1 -0
- package/getScheduleRotationBeta.d.ts +122 -0
- package/getScheduleRotationBeta.d.ts.map +1 -0
- package/getScheduleRotationBeta.js +83 -0
- package/getScheduleRotationBeta.js.map +1 -0
- package/getScheduleSyncRule.d.ts +91 -0
- package/getScheduleSyncRule.d.ts.map +1 -0
- package/getScheduleSyncRule.js +79 -0
- package/getScheduleSyncRule.js.map +1 -0
- package/getScheduleSyncTarget.d.ts +100 -0
- package/getScheduleSyncTarget.d.ts.map +1 -0
- package/getScheduleSyncTarget.js +93 -0
- package/getScheduleSyncTarget.js.map +1 -0
- package/getSecret.d.ts +115 -0
- package/getSecret.d.ts.map +1 -0
- package/getSecret.js +97 -0
- package/getSecret.js.map +1 -0
- package/getSeverity.d.ts +117 -0
- package/getSeverity.d.ts.map +1 -0
- package/getSeverity.js +115 -0
- package/getSeverity.js.map +1 -0
- package/getStatus.d.ts +125 -0
- package/getStatus.d.ts.map +1 -0
- package/getStatus.js +119 -0
- package/getStatus.js.map +1 -0
- package/getUser.d.ts +52 -0
- package/getUser.d.ts.map +1 -0
- package/getUser.js +61 -0
- package/getUser.js.map +1 -0
- package/getWorkflow.d.ts +103 -0
- package/getWorkflow.d.ts.map +1 -0
- package/getWorkflow.js +77 -0
- package/getWorkflow.js.map +1 -0
- package/incidentRole.d.ts +109 -0
- package/incidentRole.d.ts.map +1 -0
- package/incidentRole.js +111 -0
- package/incidentRole.js.map +1 -0
- package/incidentTemplate.d.ts +200 -0
- package/incidentTemplate.d.ts.map +1 -0
- package/incidentTemplate.js +207 -0
- package/incidentTemplate.js.map +1 -0
- package/index.d.ts +188 -0
- package/index.d.ts.map +1 -0
- package/index.js +303 -0
- package/index.js.map +1 -0
- package/maintenanceWindow.d.ts +255 -0
- package/maintenanceWindow.d.ts.map +1 -0
- package/maintenanceWindow.js +148 -0
- package/maintenanceWindow.js.map +1 -0
- package/package.json +33 -0
- package/policy.d.ts +476 -0
- package/policy.d.ts.map +1 -0
- package/policy.js +387 -0
- package/policy.js.map +1 -0
- package/provider.d.ts +62 -0
- package/provider.d.ts.map +1 -0
- package/provider.js +80 -0
- package/provider.js.map +1 -0
- package/schedule.d.ts +120 -0
- package/schedule.d.ts.map +1 -0
- package/schedule.js +114 -0
- package/schedule.js.map +1 -0
- package/scheduleBeta.d.ts +104 -0
- package/scheduleBeta.d.ts.map +1 -0
- package/scheduleBeta.js +98 -0
- package/scheduleBeta.js.map +1 -0
- package/scheduleReplica.d.ts +178 -0
- package/scheduleReplica.d.ts.map +1 -0
- package/scheduleReplica.js +134 -0
- package/scheduleReplica.js.map +1 -0
- package/scheduleRotation.d.ts +287 -0
- package/scheduleRotation.d.ts.map +1 -0
- package/scheduleRotation.js +224 -0
- package/scheduleRotation.js.map +1 -0
- package/scheduleRotationBeta.d.ts +184 -0
- package/scheduleRotationBeta.d.ts.map +1 -0
- package/scheduleRotationBeta.js +121 -0
- package/scheduleRotationBeta.js.map +1 -0
- package/scheduleSyncRule.d.ts +154 -0
- package/scheduleSyncRule.d.ts.map +1 -0
- package/scheduleSyncRule.js +146 -0
- package/scheduleSyncRule.js.map +1 -0
- package/scheduleSyncTarget.d.ts +108 -0
- package/scheduleSyncTarget.d.ts.map +1 -0
- package/scheduleSyncTarget.js +106 -0
- package/scheduleSyncTarget.js.map +1 -0
- package/secret.d.ts +276 -0
- package/secret.d.ts.map +1 -0
- package/secret.js +234 -0
- package/secret.js.map +1 -0
- package/severity.d.ts +96 -0
- package/severity.d.ts.map +1 -0
- package/severity.js +102 -0
- package/severity.js.map +1 -0
- package/status.d.ts +121 -0
- package/status.d.ts.map +1 -0
- package/status.js +120 -0
- package/status.js.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +34 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +23630 -0
- package/types/input.d.ts.map +1 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +19726 -0
- package/types/output.d.ts.map +1 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +5 -0
- package/utilities.d.ts.map +1 -0
- package/utilities.js +114 -0
- package/utilities.js.map +1 -0
- package/workflow.d.ts +736 -0
- package/workflow.d.ts.map +1 -0
- package/workflow.js +608 -0
- package/workflow.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogTypeAttribute.d.ts","sourceRoot":"","sources":["../catalogTypeAttribute.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;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;IAO/D;;OAEG;IACH,SAAwB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACt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AG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACzD;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B"}
|
|
@@ -0,0 +1,153 @@
|
|
|
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.CatalogTypeAttribute = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Manage and browse catalog resources.
|
|
33
|
+
*
|
|
34
|
+
* Use the incident.io catalog to track services, teams, product features and anything
|
|
35
|
+
* else that helps build a map of your organisation. These different categories of thing
|
|
36
|
+
* become catalog types, and each instance (like a particular service or team) is a
|
|
37
|
+
* catalog entry.
|
|
38
|
+
*
|
|
39
|
+
* Each type is made up of a series of attributes, and each attribute has a type. Types
|
|
40
|
+
* can even have attributes that refer to other catalog types.
|
|
41
|
+
*
|
|
42
|
+
* We automatically create catalog types when you connect an integration, such as GitHub
|
|
43
|
+
* repositories or PagerDuty services and teams. You can use this API to create custom
|
|
44
|
+
* types, that are specifically tailored to your organisation.
|
|
45
|
+
*
|
|
46
|
+
* Examples might be a 'Service' type with an 'Alert channel' which you can point at a
|
|
47
|
+
* Slack channel, or 'Team' which specifies its 'Manager' and 'Technical Lead' as Slack
|
|
48
|
+
* users. You can then use these types to create powerful new workflows.
|
|
49
|
+
*
|
|
50
|
+
* Consider using our official [catalog importer](https://github.com/incident-io/catalog-importer).
|
|
51
|
+
* It can be used to sync catalog data from sources like local files or GitHub and push
|
|
52
|
+
* them into the incident.io catalog without having to directly interact with our public API.
|
|
53
|
+
*
|
|
54
|
+
* ## Example Usage
|
|
55
|
+
*
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
+
* import * as incident from "@incident-io/pulumi";
|
|
59
|
+
*
|
|
60
|
+
* const service = new incident.CatalogType("service", {
|
|
61
|
+
* name: "Service",
|
|
62
|
+
* description: "All services that we run across our product",
|
|
63
|
+
* sourceRepoUrl: "",
|
|
64
|
+
* });
|
|
65
|
+
* const serviceTier = new incident.CatalogType("service_tier", {
|
|
66
|
+
* name: "Service Tier",
|
|
67
|
+
* description: "Level of importance for each service",
|
|
68
|
+
* sourceRepoUrl: "",
|
|
69
|
+
* });
|
|
70
|
+
* const serviceDescription = new incident.CatalogTypeAttribute("service_description", {
|
|
71
|
+
* catalogTypeId: service.id,
|
|
72
|
+
* name: "Description",
|
|
73
|
+
* type: "Text",
|
|
74
|
+
* });
|
|
75
|
+
* const serviceTeam = new incident.CatalogTypeAttribute("service_team", {
|
|
76
|
+
* catalogTypeId: service.id,
|
|
77
|
+
* name: "Team",
|
|
78
|
+
* type: "Text",
|
|
79
|
+
* });
|
|
80
|
+
* const serviceServiceTier = new incident.CatalogTypeAttribute("service_service_tier", {
|
|
81
|
+
* catalogTypeId: service.id,
|
|
82
|
+
* name: "Tier",
|
|
83
|
+
* type: serviceTier.typeName,
|
|
84
|
+
* });
|
|
85
|
+
* // To create a backlink (i.e. Service tier -> Services)
|
|
86
|
+
* const serviceTierServices = new incident.CatalogTypeAttribute("service_tier_services", {
|
|
87
|
+
* catalogTypeId: serviceTier.id,
|
|
88
|
+
* name: "Services",
|
|
89
|
+
* type: service.typeName,
|
|
90
|
+
* backlinkAttribute: serviceServiceTier.id,
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
class CatalogTypeAttribute extends pulumi.CustomResource {
|
|
95
|
+
/**
|
|
96
|
+
* Get an existing CatalogTypeAttribute resource's state with the given name, ID, and optional extra
|
|
97
|
+
* properties used to qualify the lookup.
|
|
98
|
+
*
|
|
99
|
+
* @param name The _unique_ name of the resulting resource.
|
|
100
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
101
|
+
* @param state Any extra arguments used during the lookup.
|
|
102
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
103
|
+
*/
|
|
104
|
+
static get(name, id, state, opts) {
|
|
105
|
+
return new CatalogTypeAttribute(name, state, { ...opts, id: id });
|
|
106
|
+
}
|
|
107
|
+
/** @internal */
|
|
108
|
+
static __pulumiType = 'incident:index/catalogTypeAttribute:CatalogTypeAttribute';
|
|
109
|
+
/**
|
|
110
|
+
* Returns true if the given object is an instance of CatalogTypeAttribute. This is designed to work even
|
|
111
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
112
|
+
*/
|
|
113
|
+
static isInstance(obj) {
|
|
114
|
+
if (obj === undefined || obj === null) {
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
return obj['__pulumiType'] === CatalogTypeAttribute.__pulumiType;
|
|
118
|
+
}
|
|
119
|
+
constructor(name, argsOrState, opts) {
|
|
120
|
+
let resourceInputs = {};
|
|
121
|
+
opts = opts || {};
|
|
122
|
+
if (opts.id) {
|
|
123
|
+
const state = argsOrState;
|
|
124
|
+
resourceInputs["array"] = state?.array;
|
|
125
|
+
resourceInputs["backlinkAttribute"] = state?.backlinkAttribute;
|
|
126
|
+
resourceInputs["catalogTypeId"] = state?.catalogTypeId;
|
|
127
|
+
resourceInputs["name"] = state?.name;
|
|
128
|
+
resourceInputs["paths"] = state?.paths;
|
|
129
|
+
resourceInputs["schemaOnly"] = state?.schemaOnly;
|
|
130
|
+
resourceInputs["type"] = state?.type;
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
const args = argsOrState;
|
|
134
|
+
if (args?.catalogTypeId === undefined && !opts.urn) {
|
|
135
|
+
throw new Error("Missing required property 'catalogTypeId'");
|
|
136
|
+
}
|
|
137
|
+
if (args?.type === undefined && !opts.urn) {
|
|
138
|
+
throw new Error("Missing required property 'type'");
|
|
139
|
+
}
|
|
140
|
+
resourceInputs["array"] = args?.array;
|
|
141
|
+
resourceInputs["backlinkAttribute"] = args?.backlinkAttribute;
|
|
142
|
+
resourceInputs["catalogTypeId"] = args?.catalogTypeId;
|
|
143
|
+
resourceInputs["name"] = args?.name;
|
|
144
|
+
resourceInputs["paths"] = args?.paths;
|
|
145
|
+
resourceInputs["schemaOnly"] = args?.schemaOnly;
|
|
146
|
+
resourceInputs["type"] = args?.type;
|
|
147
|
+
}
|
|
148
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
149
|
+
super(CatalogTypeAttribute.__pulumiType, name, resourceInputs, opts);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
exports.CatalogTypeAttribute = CatalogTypeAttribute;
|
|
153
|
+
//# sourceMappingURL=catalogTypeAttribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogTypeAttribute.js","sourceRoot":"","sources":["../catalogTypeAttribute.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,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,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;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;;AAjGL,oDAkGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC"}
|
package/config/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
// Export members:
|
|
20
|
+
__exportStar(require("./vars"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
|
package/config/vars.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API key for incident.io (https://app.incident.io/settings/api-keys). Sourced from the `INCIDENT_API_KEY` environment variable, if set.
|
|
3
|
+
*/
|
|
4
|
+
export declare const apiKey: string | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* URL of the incident.io API
|
|
7
|
+
*/
|
|
8
|
+
export declare const endpoint: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* 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.
|
|
11
|
+
*/
|
|
12
|
+
export declare const markImportedResourcesAsManaged: boolean | undefined;
|
|
13
|
+
//# sourceMappingURL=vars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vars.d.ts","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;AAQhD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;AAQlD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,8BAA8B,EAAE,OAAO,GAAG,SAAS,CAAC"}
|
package/config/vars.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
29
|
+
const utilities = __importStar(require("../utilities"));
|
|
30
|
+
const __config = new pulumi.Config("incident");
|
|
31
|
+
Object.defineProperty(exports, "apiKey", {
|
|
32
|
+
get() {
|
|
33
|
+
return __config.get("apiKey") ?? utilities.getEnv("INCIDENT_API_KEY");
|
|
34
|
+
},
|
|
35
|
+
enumerable: true,
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "endpoint", {
|
|
38
|
+
get() {
|
|
39
|
+
return __config.get("endpoint");
|
|
40
|
+
},
|
|
41
|
+
enumerable: true,
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "markImportedResourcesAsManaged", {
|
|
44
|
+
get() {
|
|
45
|
+
return __config.getObject("markImportedResourcesAsManaged");
|
|
46
|
+
},
|
|
47
|
+
enumerable: true,
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=vars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;AAM/C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC1E,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,gCAAgC,EAAE;IAC7D,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAU,gCAAgC,CAAC,CAAC;IACzE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/customField.d.ts
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manage custom fields.
|
|
6
|
+
*
|
|
7
|
+
* Custom fields are used to attach metadata to incidents, which you can use when searching
|
|
8
|
+
* for incidents in the dashboard, triggering workflows, building announcement rules or for
|
|
9
|
+
* your own data needs.
|
|
10
|
+
*
|
|
11
|
+
* Each field has a type:
|
|
12
|
+
*
|
|
13
|
+
* - Single-select, single value selected from a predefined list of options (e.g. Detection Method)
|
|
14
|
+
* - Multi-select, as above but you can pick more than one option (e.g. Affected Teams)
|
|
15
|
+
* - Text, freeform text field (e.g. Customer ID)
|
|
16
|
+
* - Link, link URL that is synced to Slack bookmarks on the incident channel (e.g. External Status Page)
|
|
17
|
+
* - Number, integer or fractional numbers (e.g. # Customers Affected)
|
|
18
|
+
*
|
|
19
|
+
* We may add more custom field types in the future - we'd love to hear any other types you'd like to use!
|
|
20
|
+
*
|
|
21
|
+
* ## Example - Single-select
|
|
22
|
+
*
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
25
|
+
* import * as incident from "@incident-io/pulumi";
|
|
26
|
+
*
|
|
27
|
+
* // Single-select: one value from a predefined list of options (e.g. Detection Method).
|
|
28
|
+
* // Options are managed separately with incident_custom_field_option.
|
|
29
|
+
* const detectionMethod = new incident.CustomField("detection_method", {
|
|
30
|
+
* name: "Detection Method",
|
|
31
|
+
* description: "How this incident was detected.",
|
|
32
|
+
* fieldType: "single_select",
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* ## Example - Multi-select
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as incident from "@incident-io/pulumi";
|
|
41
|
+
*
|
|
42
|
+
* // Multi-select: like single-select, but more than one option can be picked
|
|
43
|
+
* // (e.g. Affected Teams). Options are managed separately with
|
|
44
|
+
* // incident_custom_field_option.
|
|
45
|
+
* const affectedTeams = new incident.CustomField("affected_teams", {
|
|
46
|
+
* name: "Affected Teams",
|
|
47
|
+
* description: "The teams that are affected by this incident.",
|
|
48
|
+
* fieldType: "multi_select",
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* ## Example - Text
|
|
53
|
+
*
|
|
54
|
+
* ```typescript
|
|
55
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
56
|
+
* import * as incident from "@incident-io/pulumi";
|
|
57
|
+
*
|
|
58
|
+
* // Text: a freeform text field (e.g. Customer ID).
|
|
59
|
+
* const customerId = new incident.CustomField("customer_id", {
|
|
60
|
+
* name: "Customer ID",
|
|
61
|
+
* description: "The customer identifier associated with this incident.",
|
|
62
|
+
* fieldType: "text",
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ## Example - Link
|
|
67
|
+
*
|
|
68
|
+
* ```typescript
|
|
69
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
70
|
+
* import * as incident from "@incident-io/pulumi";
|
|
71
|
+
*
|
|
72
|
+
* // Link: a URL synced to Slack bookmarks on the incident channel
|
|
73
|
+
* // (e.g. External Status Page).
|
|
74
|
+
* const externalStatusPage = new incident.CustomField("external_status_page", {
|
|
75
|
+
* name: "External Status Page",
|
|
76
|
+
* description: "Link to the external status page for this incident.",
|
|
77
|
+
* fieldType: "link",
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* ## Example - Numeric
|
|
82
|
+
*
|
|
83
|
+
* ```typescript
|
|
84
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
85
|
+
* import * as incident from "@incident-io/pulumi";
|
|
86
|
+
*
|
|
87
|
+
* // Numeric: an integer or fractional number (e.g. Customers Affected).
|
|
88
|
+
* const customersAffected = new incident.CustomField("customers_affected", {
|
|
89
|
+
* name: "Customers Affected",
|
|
90
|
+
* description: "How many customers are affected by this incident.",
|
|
91
|
+
* fieldType: "numeric",
|
|
92
|
+
* });
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* ## Example - Catalog-backed with a fixed filter
|
|
96
|
+
*
|
|
97
|
+
* ```typescript
|
|
98
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
99
|
+
* import * as incident from "@incident-io/pulumi";
|
|
100
|
+
*
|
|
101
|
+
* // Catalog-backed fields can offer a restricted set of options, rather than every
|
|
102
|
+
* // entry of their catalog type.
|
|
103
|
+
* const service = new incident.CatalogType("service", {
|
|
104
|
+
* name: "Service",
|
|
105
|
+
* description: "All services that we run across our product",
|
|
106
|
+
* sourceRepoUrl: "",
|
|
107
|
+
* });
|
|
108
|
+
* const serviceTier = new incident.CatalogType("service_tier", {
|
|
109
|
+
* name: "Service Tier",
|
|
110
|
+
* description: "Level of importance for each service",
|
|
111
|
+
* sourceRepoUrl: "",
|
|
112
|
+
* });
|
|
113
|
+
* const serviceServiceTier = new incident.CatalogTypeAttribute("service_service_tier", {
|
|
114
|
+
* catalogTypeId: service.id,
|
|
115
|
+
* name: "Tier",
|
|
116
|
+
* type: serviceTier.typeName,
|
|
117
|
+
* });
|
|
118
|
+
* const tierOne = new incident.CatalogEntry("tier_one", {
|
|
119
|
+
* catalogTypeId: serviceTier.id,
|
|
120
|
+
* name: "Tier 1",
|
|
121
|
+
* attributeValues: [],
|
|
122
|
+
* });
|
|
123
|
+
* // Offer only our tier 1 services, on every incident. `fixed_filter` restricts the
|
|
124
|
+
* // options to entries whose Tier attribute is one of the listed values - unlike
|
|
125
|
+
* // `filter_by`, which follows another custom field's value on the incident.
|
|
126
|
+
* const affectedTierOneService = new incident.CustomField("affected_tier_one_service", {
|
|
127
|
+
* name: "Affected tier 1 service",
|
|
128
|
+
* description: "The tier 1 service that is affected by this incident.",
|
|
129
|
+
* fieldType: "single_select",
|
|
130
|
+
* catalogTypeId: service.id,
|
|
131
|
+
* fixedFilter: {
|
|
132
|
+
* catalogAttributeId: serviceServiceTier.id,
|
|
133
|
+
* values: [tierOne.id],
|
|
134
|
+
* },
|
|
135
|
+
* });
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
export declare class CustomField extends pulumi.CustomResource {
|
|
139
|
+
/**
|
|
140
|
+
* Get an existing CustomField resource's state with the given name, ID, and optional extra
|
|
141
|
+
* properties used to qualify the lookup.
|
|
142
|
+
*
|
|
143
|
+
* @param name The _unique_ name of the resulting resource.
|
|
144
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
145
|
+
* @param state Any extra arguments used during the lookup.
|
|
146
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
147
|
+
*/
|
|
148
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CustomFieldState, opts?: pulumi.CustomResourceOptions): CustomField;
|
|
149
|
+
/**
|
|
150
|
+
* Returns true if the given object is an instance of CustomField. This is designed to work even
|
|
151
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
152
|
+
*/
|
|
153
|
+
static isInstance(obj: any): obj is CustomField;
|
|
154
|
+
/**
|
|
155
|
+
* For catalog fields, the ID of the associated catalog type
|
|
156
|
+
*/
|
|
157
|
+
readonly catalogTypeId: pulumi.Output<string | undefined>;
|
|
158
|
+
/**
|
|
159
|
+
* Description of the custom field
|
|
160
|
+
*/
|
|
161
|
+
readonly description: pulumi.Output<string>;
|
|
162
|
+
/**
|
|
163
|
+
* Type of custom field. Possible values are: `singleSelect`, `multiSelect`, `text`, `link`, `numeric`.
|
|
164
|
+
*/
|
|
165
|
+
readonly fieldType: pulumi.Output<string>;
|
|
166
|
+
readonly filterBy: pulumi.Output<outputs.CustomFieldFilterBy | undefined>;
|
|
167
|
+
/**
|
|
168
|
+
* Restrict this catalog-backed field's options to catalog entries whose `catalogAttributeId` attribute references one of `values`. This is the static counterpart to `filterBy`: rather than following whatever another custom field is set to on the incident, the filter is chosen up front and is the same for every incident. Mutually exclusive with `filterBy`.
|
|
169
|
+
*/
|
|
170
|
+
readonly fixedFilter: pulumi.Output<outputs.CustomFieldFixedFilter | undefined>;
|
|
171
|
+
/**
|
|
172
|
+
* For catalog fields, the ID of the attribute used to group catalog entries (if applicable)
|
|
173
|
+
*/
|
|
174
|
+
readonly groupByCatalogAttributeId: pulumi.Output<string | undefined>;
|
|
175
|
+
/**
|
|
176
|
+
* Which catalog attribute provides helptext for the options
|
|
177
|
+
*/
|
|
178
|
+
readonly helptextCatalogAttributeId: pulumi.Output<string | undefined>;
|
|
179
|
+
/**
|
|
180
|
+
* Human readable name for the custom field
|
|
181
|
+
*/
|
|
182
|
+
readonly name: pulumi.Output<string>;
|
|
183
|
+
/**
|
|
184
|
+
* Create a CustomField resource with the given unique name, arguments, and options.
|
|
185
|
+
*
|
|
186
|
+
* @param name The _unique_ name of the resource.
|
|
187
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
188
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
189
|
+
*/
|
|
190
|
+
constructor(name: string, args: CustomFieldArgs, opts?: pulumi.CustomResourceOptions);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Input properties used for looking up and filtering CustomField resources.
|
|
194
|
+
*/
|
|
195
|
+
export interface CustomFieldState {
|
|
196
|
+
/**
|
|
197
|
+
* For catalog fields, the ID of the associated catalog type
|
|
198
|
+
*/
|
|
199
|
+
catalogTypeId?: pulumi.Input<string | undefined>;
|
|
200
|
+
/**
|
|
201
|
+
* Description of the custom field
|
|
202
|
+
*/
|
|
203
|
+
description?: pulumi.Input<string | undefined>;
|
|
204
|
+
/**
|
|
205
|
+
* Type of custom field. Possible values are: `singleSelect`, `multiSelect`, `text`, `link`, `numeric`.
|
|
206
|
+
*/
|
|
207
|
+
fieldType?: pulumi.Input<string | undefined>;
|
|
208
|
+
filterBy?: pulumi.Input<inputs.CustomFieldFilterBy | undefined>;
|
|
209
|
+
/**
|
|
210
|
+
* Restrict this catalog-backed field's options to catalog entries whose `catalogAttributeId` attribute references one of `values`. This is the static counterpart to `filterBy`: rather than following whatever another custom field is set to on the incident, the filter is chosen up front and is the same for every incident. Mutually exclusive with `filterBy`.
|
|
211
|
+
*/
|
|
212
|
+
fixedFilter?: pulumi.Input<inputs.CustomFieldFixedFilter | undefined>;
|
|
213
|
+
/**
|
|
214
|
+
* For catalog fields, the ID of the attribute used to group catalog entries (if applicable)
|
|
215
|
+
*/
|
|
216
|
+
groupByCatalogAttributeId?: pulumi.Input<string | undefined>;
|
|
217
|
+
/**
|
|
218
|
+
* Which catalog attribute provides helptext for the options
|
|
219
|
+
*/
|
|
220
|
+
helptextCatalogAttributeId?: pulumi.Input<string | undefined>;
|
|
221
|
+
/**
|
|
222
|
+
* Human readable name for the custom field
|
|
223
|
+
*/
|
|
224
|
+
name?: pulumi.Input<string | undefined>;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* The set of arguments for constructing a CustomField resource.
|
|
228
|
+
*/
|
|
229
|
+
export interface CustomFieldArgs {
|
|
230
|
+
/**
|
|
231
|
+
* For catalog fields, the ID of the associated catalog type
|
|
232
|
+
*/
|
|
233
|
+
catalogTypeId?: pulumi.Input<string | undefined>;
|
|
234
|
+
/**
|
|
235
|
+
* Description of the custom field
|
|
236
|
+
*/
|
|
237
|
+
description: pulumi.Input<string>;
|
|
238
|
+
/**
|
|
239
|
+
* Type of custom field. Possible values are: `singleSelect`, `multiSelect`, `text`, `link`, `numeric`.
|
|
240
|
+
*/
|
|
241
|
+
fieldType: pulumi.Input<string>;
|
|
242
|
+
filterBy?: pulumi.Input<inputs.CustomFieldFilterBy | undefined>;
|
|
243
|
+
/**
|
|
244
|
+
* Restrict this catalog-backed field's options to catalog entries whose `catalogAttributeId` attribute references one of `values`. This is the static counterpart to `filterBy`: rather than following whatever another custom field is set to on the incident, the filter is chosen up front and is the same for every incident. Mutually exclusive with `filterBy`.
|
|
245
|
+
*/
|
|
246
|
+
fixedFilter?: pulumi.Input<inputs.CustomFieldFixedFilter | undefined>;
|
|
247
|
+
/**
|
|
248
|
+
* For catalog fields, the ID of the attribute used to group catalog entries (if applicable)
|
|
249
|
+
*/
|
|
250
|
+
groupByCatalogAttributeId?: pulumi.Input<string | undefined>;
|
|
251
|
+
/**
|
|
252
|
+
* Which catalog attribute provides helptext for the options
|
|
253
|
+
*/
|
|
254
|
+
helptextCatalogAttributeId?: pulumi.Input<string | undefined>;
|
|
255
|
+
/**
|
|
256
|
+
* Human readable name for the custom field
|
|
257
|
+
*/
|
|
258
|
+
name?: pulumi.Input<string | undefined>;
|
|
259
|
+
}
|
|
260
|
+
//# sourceMappingURL=customField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customField.d.ts","sourceRoot":"","sources":["../customField.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqIG;AACH,qBAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;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