@incident-io/pulumi 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -0
- package/README.md +69 -0
- package/alertAttribute.d.ts +230 -0
- package/alertAttribute.d.ts.map +1 -0
- package/alertAttribute.js +219 -0
- package/alertAttribute.js.map +1 -0
- package/alertRoute.d.ts +511 -0
- package/alertRoute.d.ts.map +1 -0
- package/alertRoute.js +432 -0
- package/alertRoute.js.map +1 -0
- package/alertSource.d.ts +347 -0
- package/alertSource.d.ts.map +1 -0
- package/alertSource.js +241 -0
- package/alertSource.js.map +1 -0
- package/alertSourceAttribute.d.ts +180 -0
- package/alertSourceAttribute.d.ts.map +1 -0
- package/alertSourceAttribute.js +107 -0
- package/alertSourceAttribute.js.map +1 -0
- package/alertSourceAttributeBeta.d.ts +188 -0
- package/alertSourceAttributeBeta.d.ts.map +1 -0
- package/alertSourceAttributeBeta.js +115 -0
- package/alertSourceAttributeBeta.js.map +1 -0
- package/alertSourceBeta.d.ts +244 -0
- package/alertSourceBeta.d.ts.map +1 -0
- package/alertSourceBeta.js +138 -0
- package/alertSourceBeta.js.map +1 -0
- package/apiKey.d.ts +276 -0
- package/apiKey.d.ts.map +1 -0
- package/apiKey.js +211 -0
- package/apiKey.js.map +1 -0
- package/catalogEntries.d.ts +241 -0
- package/catalogEntries.d.ts.map +1 -0
- package/catalogEntries.js +242 -0
- package/catalogEntries.js.map +1 -0
- package/catalogEntry.d.ts +183 -0
- package/catalogEntry.d.ts.map +1 -0
- package/catalogEntry.js +159 -0
- package/catalogEntry.js.map +1 -0
- package/catalogType.d.ts +169 -0
- package/catalogType.d.ts.map +1 -0
- package/catalogType.js +132 -0
- package/catalogType.js.map +1 -0
- package/catalogTypeAttribute.d.ts +190 -0
- package/catalogTypeAttribute.d.ts.map +1 -0
- package/catalogTypeAttribute.js +153 -0
- package/catalogTypeAttribute.js.map +1 -0
- package/config/index.d.ts +2 -0
- package/config/index.d.ts.map +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +13 -0
- package/config/vars.d.ts.map +1 -0
- package/config/vars.js +49 -0
- package/config/vars.js.map +1 -0
- package/customField.d.ts +260 -0
- package/customField.d.ts.map +1 -0
- package/customField.js +226 -0
- package/customField.js.map +1 -0
- package/customFieldOption.d.ts +107 -0
- package/customFieldOption.d.ts.map +1 -0
- package/customFieldOption.js +116 -0
- package/customFieldOption.js.map +1 -0
- package/escalationPath.d.ts +257 -0
- package/escalationPath.d.ts.map +1 -0
- package/escalationPath.js +228 -0
- package/escalationPath.js.map +1 -0
- package/escalationPathBeta.d.ts +134 -0
- package/escalationPathBeta.d.ts.map +1 -0
- package/escalationPathBeta.js +105 -0
- package/escalationPathBeta.js.map +1 -0
- package/getAlertAttribute.d.ts +81 -0
- package/getAlertAttribute.d.ts.map +1 -0
- package/getAlertAttribute.js +75 -0
- package/getAlertAttribute.js.map +1 -0
- package/getAlertSource.d.ts +169 -0
- package/getAlertSource.d.ts.map +1 -0
- package/getAlertSource.js +103 -0
- package/getAlertSource.js.map +1 -0
- package/getAlertSourceAttribute.d.ts +131 -0
- package/getAlertSourceAttribute.d.ts.map +1 -0
- package/getAlertSourceAttribute.js +85 -0
- package/getAlertSourceAttribute.js.map +1 -0
- package/getAlertSourceAttributeBeta.d.ts +131 -0
- package/getAlertSourceAttributeBeta.d.ts.map +1 -0
- package/getAlertSourceAttributeBeta.js +85 -0
- package/getAlertSourceAttributeBeta.js.map +1 -0
- package/getApiKey.d.ts +167 -0
- package/getApiKey.d.ts.map +1 -0
- package/getApiKey.js +145 -0
- package/getApiKey.js.map +1 -0
- package/getCatalogEntry.d.ts +77 -0
- package/getCatalogEntry.d.ts.map +1 -0
- package/getCatalogEntry.js +59 -0
- package/getCatalogEntry.js.map +1 -0
- package/getCatalogType.d.ts +163 -0
- package/getCatalogType.d.ts.map +1 -0
- package/getCatalogType.js +135 -0
- package/getCatalogType.js.map +1 -0
- package/getCatalogTypeAttribute.d.ts +73 -0
- package/getCatalogTypeAttribute.d.ts.map +1 -0
- package/getCatalogTypeAttribute.js +53 -0
- package/getCatalogTypeAttribute.js.map +1 -0
- package/getCustomField.d.ts +67 -0
- package/getCustomField.d.ts.map +1 -0
- package/getCustomField.js +51 -0
- package/getCustomField.js.map +1 -0
- package/getCustomFieldOption.d.ts +65 -0
- package/getCustomFieldOption.d.ts.map +1 -0
- package/getCustomFieldOption.js +55 -0
- package/getCustomFieldOption.js.map +1 -0
- package/getEscalationPath.d.ts +100 -0
- package/getEscalationPath.d.ts.map +1 -0
- package/getEscalationPath.js +83 -0
- package/getEscalationPath.js.map +1 -0
- package/getEscalationPathBeta.d.ts +100 -0
- package/getEscalationPathBeta.d.ts.map +1 -0
- package/getEscalationPathBeta.js +83 -0
- package/getEscalationPathBeta.js.map +1 -0
- package/getIncidentRole.d.ts +111 -0
- package/getIncidentRole.d.ts.map +1 -0
- package/getIncidentRole.js +105 -0
- package/getIncidentRole.js.map +1 -0
- package/getIncidentTemplate.d.ts +98 -0
- package/getIncidentTemplate.d.ts.map +1 -0
- package/getIncidentTemplate.js +95 -0
- package/getIncidentTemplate.js.map +1 -0
- package/getIncidentTimestamp.d.ts +107 -0
- package/getIncidentTimestamp.d.ts.map +1 -0
- package/getIncidentTimestamp.js +109 -0
- package/getIncidentTimestamp.js.map +1 -0
- package/getIncidentType.d.ts +121 -0
- package/getIncidentType.d.ts.map +1 -0
- package/getIncidentType.js +107 -0
- package/getIncidentType.js.map +1 -0
- package/getIpAllowlist.d.ts +62 -0
- package/getIpAllowlist.d.ts.map +1 -0
- package/getIpAllowlist.js +77 -0
- package/getIpAllowlist.js.map +1 -0
- package/getPolicy.d.ts +97 -0
- package/getPolicy.d.ts.map +1 -0
- package/getPolicy.js +91 -0
- package/getPolicy.js.map +1 -0
- package/getRichText.d.ts +111 -0
- package/getRichText.d.ts.map +1 -0
- package/getRichText.js +107 -0
- package/getRichText.js.map +1 -0
- package/getSchedule.d.ts +89 -0
- package/getSchedule.d.ts.map +1 -0
- package/getSchedule.js +87 -0
- package/getSchedule.js.map +1 -0
- package/getScheduleBeta.d.ts +85 -0
- package/getScheduleBeta.d.ts.map +1 -0
- package/getScheduleBeta.js +83 -0
- package/getScheduleBeta.js.map +1 -0
- package/getScheduleReplica.d.ts +116 -0
- package/getScheduleReplica.d.ts.map +1 -0
- package/getScheduleReplica.js +79 -0
- package/getScheduleReplica.js.map +1 -0
- package/getScheduleRotation.d.ts +166 -0
- package/getScheduleRotation.d.ts.map +1 -0
- package/getScheduleRotation.js +127 -0
- package/getScheduleRotation.js.map +1 -0
- package/getScheduleRotationBeta.d.ts +122 -0
- package/getScheduleRotationBeta.d.ts.map +1 -0
- package/getScheduleRotationBeta.js +83 -0
- package/getScheduleRotationBeta.js.map +1 -0
- package/getScheduleSyncRule.d.ts +91 -0
- package/getScheduleSyncRule.d.ts.map +1 -0
- package/getScheduleSyncRule.js +79 -0
- package/getScheduleSyncRule.js.map +1 -0
- package/getScheduleSyncTarget.d.ts +100 -0
- package/getScheduleSyncTarget.d.ts.map +1 -0
- package/getScheduleSyncTarget.js +93 -0
- package/getScheduleSyncTarget.js.map +1 -0
- package/getSecret.d.ts +115 -0
- package/getSecret.d.ts.map +1 -0
- package/getSecret.js +97 -0
- package/getSecret.js.map +1 -0
- package/getSeverity.d.ts +117 -0
- package/getSeverity.d.ts.map +1 -0
- package/getSeverity.js +115 -0
- package/getSeverity.js.map +1 -0
- package/getStatus.d.ts +125 -0
- package/getStatus.d.ts.map +1 -0
- package/getStatus.js +119 -0
- package/getStatus.js.map +1 -0
- package/getUser.d.ts +52 -0
- package/getUser.d.ts.map +1 -0
- package/getUser.js +61 -0
- package/getUser.js.map +1 -0
- package/getWorkflow.d.ts +103 -0
- package/getWorkflow.d.ts.map +1 -0
- package/getWorkflow.js +77 -0
- package/getWorkflow.js.map +1 -0
- package/incidentRole.d.ts +109 -0
- package/incidentRole.d.ts.map +1 -0
- package/incidentRole.js +111 -0
- package/incidentRole.js.map +1 -0
- package/incidentTemplate.d.ts +200 -0
- package/incidentTemplate.d.ts.map +1 -0
- package/incidentTemplate.js +207 -0
- package/incidentTemplate.js.map +1 -0
- package/index.d.ts +188 -0
- package/index.d.ts.map +1 -0
- package/index.js +303 -0
- package/index.js.map +1 -0
- package/maintenanceWindow.d.ts +255 -0
- package/maintenanceWindow.d.ts.map +1 -0
- package/maintenanceWindow.js +148 -0
- package/maintenanceWindow.js.map +1 -0
- package/package.json +33 -0
- package/policy.d.ts +476 -0
- package/policy.d.ts.map +1 -0
- package/policy.js +387 -0
- package/policy.js.map +1 -0
- package/provider.d.ts +62 -0
- package/provider.d.ts.map +1 -0
- package/provider.js +80 -0
- package/provider.js.map +1 -0
- package/schedule.d.ts +120 -0
- package/schedule.d.ts.map +1 -0
- package/schedule.js +114 -0
- package/schedule.js.map +1 -0
- package/scheduleBeta.d.ts +104 -0
- package/scheduleBeta.d.ts.map +1 -0
- package/scheduleBeta.js +98 -0
- package/scheduleBeta.js.map +1 -0
- package/scheduleReplica.d.ts +178 -0
- package/scheduleReplica.d.ts.map +1 -0
- package/scheduleReplica.js +134 -0
- package/scheduleReplica.js.map +1 -0
- package/scheduleRotation.d.ts +287 -0
- package/scheduleRotation.d.ts.map +1 -0
- package/scheduleRotation.js +224 -0
- package/scheduleRotation.js.map +1 -0
- package/scheduleRotationBeta.d.ts +184 -0
- package/scheduleRotationBeta.d.ts.map +1 -0
- package/scheduleRotationBeta.js +121 -0
- package/scheduleRotationBeta.js.map +1 -0
- package/scheduleSyncRule.d.ts +154 -0
- package/scheduleSyncRule.d.ts.map +1 -0
- package/scheduleSyncRule.js +146 -0
- package/scheduleSyncRule.js.map +1 -0
- package/scheduleSyncTarget.d.ts +108 -0
- package/scheduleSyncTarget.d.ts.map +1 -0
- package/scheduleSyncTarget.js +106 -0
- package/scheduleSyncTarget.js.map +1 -0
- package/secret.d.ts +276 -0
- package/secret.d.ts.map +1 -0
- package/secret.js +234 -0
- package/secret.js.map +1 -0
- package/severity.d.ts +96 -0
- package/severity.d.ts.map +1 -0
- package/severity.js +102 -0
- package/severity.js.map +1 -0
- package/status.d.ts +121 -0
- package/status.d.ts.map +1 -0
- package/status.js +120 -0
- package/status.js.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +34 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +23630 -0
- package/types/input.d.ts.map +1 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +19726 -0
- package/types/output.d.ts.map +1 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +5 -0
- package/utilities.d.ts.map +1 -0
- package/utilities.js +114 -0
- package/utilities.js.map +1 -0
- package/workflow.d.ts +736 -0
- package/workflow.d.ts.map +1 -0
- package/workflow.js +608 -0
- package/workflow.js.map +1 -0
package/getPolicy.d.ts
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this data source to look up an existing policy, either by `id` or by `name`. It reports what the policy is, not how it is configured: use the `incident.Policy` resource for a policy Terraform owns.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as incident from "@incident-io/pulumi";
|
|
10
|
+
*
|
|
11
|
+
* // Look up a policy by name, to reference one the dashboard owns rather than
|
|
12
|
+
* // managing it here.
|
|
13
|
+
* const postmortems = incident.getPolicy({
|
|
14
|
+
* name: "Post-mortems within 5 working days",
|
|
15
|
+
* });
|
|
16
|
+
* // Or by ID, for example one copied out of your organisation's settings.
|
|
17
|
+
* const followups = incident.getPolicy({
|
|
18
|
+
* id: "01FCNDV6P870EA6S7TK1DSYD5H",
|
|
19
|
+
* });
|
|
20
|
+
* export const postmortemPolicyType = postmortems.then(postmortems => postmortems.policyType);
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function getPolicy(args?: GetPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetPolicyResult>;
|
|
24
|
+
/**
|
|
25
|
+
* A collection of arguments for invoking getPolicy.
|
|
26
|
+
*/
|
|
27
|
+
export interface GetPolicyArgs {
|
|
28
|
+
/**
|
|
29
|
+
* Unique ID of the policy
|
|
30
|
+
*/
|
|
31
|
+
id?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Human readable name of the policy
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A collection of values returned by getPolicy.
|
|
39
|
+
*/
|
|
40
|
+
export interface GetPolicyResult {
|
|
41
|
+
/**
|
|
42
|
+
* Human readable description of the policy
|
|
43
|
+
*/
|
|
44
|
+
readonly description: string;
|
|
45
|
+
/**
|
|
46
|
+
* Unique ID of the policy
|
|
47
|
+
*/
|
|
48
|
+
readonly id: string;
|
|
49
|
+
/**
|
|
50
|
+
* Human readable name of the policy
|
|
51
|
+
*/
|
|
52
|
+
readonly name: string;
|
|
53
|
+
/**
|
|
54
|
+
* Type of the policy, specifying what this applies to. Possible values are: `debrief`, `followUp`, `onCallReadiness`, `postMortem`, `schedule`, `vacationConflict`.
|
|
55
|
+
*/
|
|
56
|
+
readonly policyType: string;
|
|
57
|
+
/**
|
|
58
|
+
* Disabled policies stop evaluating but keep their config. Possible values are: `enabled`, `disabled`.
|
|
59
|
+
*/
|
|
60
|
+
readonly status: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Use this data source to look up an existing policy, either by `id` or by `name`. It reports what the policy is, not how it is configured: use the `incident.Policy` resource for a policy Terraform owns.
|
|
64
|
+
*
|
|
65
|
+
* ## Example Usage
|
|
66
|
+
*
|
|
67
|
+
* ```typescript
|
|
68
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
69
|
+
* import * as incident from "@incident-io/pulumi";
|
|
70
|
+
*
|
|
71
|
+
* // Look up a policy by name, to reference one the dashboard owns rather than
|
|
72
|
+
* // managing it here.
|
|
73
|
+
* const postmortems = incident.getPolicy({
|
|
74
|
+
* name: "Post-mortems within 5 working days",
|
|
75
|
+
* });
|
|
76
|
+
* // Or by ID, for example one copied out of your organisation's settings.
|
|
77
|
+
* const followups = incident.getPolicy({
|
|
78
|
+
* id: "01FCNDV6P870EA6S7TK1DSYD5H",
|
|
79
|
+
* });
|
|
80
|
+
* export const postmortemPolicyType = postmortems.then(postmortems => postmortems.policyType);
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
export declare function getPolicyOutput(args?: GetPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPolicyResult>;
|
|
84
|
+
/**
|
|
85
|
+
* A collection of arguments for invoking getPolicy.
|
|
86
|
+
*/
|
|
87
|
+
export interface GetPolicyOutputArgs {
|
|
88
|
+
/**
|
|
89
|
+
* Unique ID of the policy
|
|
90
|
+
*/
|
|
91
|
+
id?: pulumi.Input<string | undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* Human readable name of the policy
|
|
94
|
+
*/
|
|
95
|
+
name?: pulumi.Input<string | undefined>;
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=getPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPolicy.d.ts","sourceRoot":"","sources":["../getPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CAOrG;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CAC3B;AACD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAAC,IAAI,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAO7H;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C"}
|
package/getPolicy.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
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.getPolicyOutput = exports.getPolicy = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Use this data source to look up an existing policy, either by `id` or by `name`. It reports what the policy is, not how it is configured: use the `incident.Policy` resource for a policy Terraform owns.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as incident from "@incident-io/pulumi";
|
|
39
|
+
*
|
|
40
|
+
* // Look up a policy by name, to reference one the dashboard owns rather than
|
|
41
|
+
* // managing it here.
|
|
42
|
+
* const postmortems = incident.getPolicy({
|
|
43
|
+
* name: "Post-mortems within 5 working days",
|
|
44
|
+
* });
|
|
45
|
+
* // Or by ID, for example one copied out of your organisation's settings.
|
|
46
|
+
* const followups = incident.getPolicy({
|
|
47
|
+
* id: "01FCNDV6P870EA6S7TK1DSYD5H",
|
|
48
|
+
* });
|
|
49
|
+
* export const postmortemPolicyType = postmortems.then(postmortems => postmortems.policyType);
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
function getPolicy(args, opts) {
|
|
53
|
+
args = args || {};
|
|
54
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
55
|
+
return pulumi.runtime.invoke("incident:index/getPolicy:getPolicy", {
|
|
56
|
+
"id": args.id,
|
|
57
|
+
"name": args.name,
|
|
58
|
+
}, opts);
|
|
59
|
+
}
|
|
60
|
+
exports.getPolicy = getPolicy;
|
|
61
|
+
/**
|
|
62
|
+
* Use this data source to look up an existing policy, either by `id` or by `name`. It reports what the policy is, not how it is configured: use the `incident.Policy` resource for a policy Terraform owns.
|
|
63
|
+
*
|
|
64
|
+
* ## Example Usage
|
|
65
|
+
*
|
|
66
|
+
* ```typescript
|
|
67
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
68
|
+
* import * as incident from "@incident-io/pulumi";
|
|
69
|
+
*
|
|
70
|
+
* // Look up a policy by name, to reference one the dashboard owns rather than
|
|
71
|
+
* // managing it here.
|
|
72
|
+
* const postmortems = incident.getPolicy({
|
|
73
|
+
* name: "Post-mortems within 5 working days",
|
|
74
|
+
* });
|
|
75
|
+
* // Or by ID, for example one copied out of your organisation's settings.
|
|
76
|
+
* const followups = incident.getPolicy({
|
|
77
|
+
* id: "01FCNDV6P870EA6S7TK1DSYD5H",
|
|
78
|
+
* });
|
|
79
|
+
* export const postmortemPolicyType = postmortems.then(postmortems => postmortems.policyType);
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
function getPolicyOutput(args, opts) {
|
|
83
|
+
args = args || {};
|
|
84
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
85
|
+
return pulumi.runtime.invokeOutput("incident:index/getPolicy:getPolicy", {
|
|
86
|
+
"id": args.id,
|
|
87
|
+
"name": args.name,
|
|
88
|
+
}, opts);
|
|
89
|
+
}
|
|
90
|
+
exports.getPolicyOutput = getPolicyOutput;
|
|
91
|
+
//# sourceMappingURL=getPolicy.js.map
|
package/getPolicy.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPolicy.js","sourceRoot":"","sources":["../getPolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8BAOC;AAyCD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAAiC;IACzF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,oCAAoC,EAAE;QACrE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC"}
|
package/getRichText.d.ts
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Build a rich text document from markdown, for fields that store a document rather than a string. Use it where formatting — bold, links, lists — can't be expressed by writing the template inline. One-way: markdown in, document out.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as incident from "@incident-io/pulumi";
|
|
10
|
+
*
|
|
11
|
+
* // Build a rich text document from markdown, for a field that stores a document rather
|
|
12
|
+
* // than a "{{ }}" template. feature_set must match the field it's going into.
|
|
13
|
+
* const alertDescription = incident.getRichText({
|
|
14
|
+
* markdown: `**Alert**: {{payload.summary}}
|
|
15
|
+
*
|
|
16
|
+
* Runbook: {{payload.annotations.runbook_url}}`,
|
|
17
|
+
* featureSet: "rich",
|
|
18
|
+
* });
|
|
19
|
+
* const prometheus = new incident.AlertSource("prometheus", {
|
|
20
|
+
* name: "Prometheus",
|
|
21
|
+
* sourceType: "http",
|
|
22
|
+
* title: {
|
|
23
|
+
* literal: "{{payload.labels.alertname}}",
|
|
24
|
+
* },
|
|
25
|
+
* description: {
|
|
26
|
+
* literal: alertDescription.then(alertDescription => alertDescription.json),
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* export const droppedContent = alertDescription.then(alertDescription => alertDescription.droppedContents);
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare function getRichText(args: GetRichTextArgs, opts?: pulumi.InvokeOptions): Promise<GetRichTextResult>;
|
|
33
|
+
/**
|
|
34
|
+
* A collection of arguments for invoking getRichText.
|
|
35
|
+
*/
|
|
36
|
+
export interface GetRichTextArgs {
|
|
37
|
+
/**
|
|
38
|
+
* The feature set of the field this document is destined for. Content the feature set doesn't permit is dropped, and reported in dropped_content. Possible values are: `plainSingleLine`, `plainSingleLineWithSecrets`, `plainMultiLine`, `mrkdwn`, `rich`, `richWithImages`, `slackRichText`, `slackRichTextWithHeadings`, `basic`, `basicNoLinks`, `jira`.
|
|
39
|
+
*/
|
|
40
|
+
featureSet: string;
|
|
41
|
+
/**
|
|
42
|
+
* The markdown to parse. Template variables written as {{ name }} become variable placeholders, and support the omit*if*unset and truncate filters.
|
|
43
|
+
*/
|
|
44
|
+
markdown: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A collection of values returned by getRichText.
|
|
48
|
+
*/
|
|
49
|
+
export interface GetRichTextResult {
|
|
50
|
+
/**
|
|
51
|
+
* Node and mark types dropped because the feature set doesn't permit them. Empty when nothing was dropped.
|
|
52
|
+
*/
|
|
53
|
+
readonly droppedContents: string[];
|
|
54
|
+
/**
|
|
55
|
+
* The feature set of the field this document is destined for. Content the feature set doesn't permit is dropped, and reported in dropped_content. Possible values are: `plainSingleLine`, `plainSingleLineWithSecrets`, `plainMultiLine`, `mrkdwn`, `rich`, `richWithImages`, `slackRichText`, `slackRichTextWithHeadings`, `basic`, `basicNoLinks`, `jira`.
|
|
56
|
+
*/
|
|
57
|
+
readonly featureSet: string;
|
|
58
|
+
/**
|
|
59
|
+
* The document, encoded as JSON. Assign it to the rich text field you built it for, such as an alert source template's `title` or `description` literal.
|
|
60
|
+
*/
|
|
61
|
+
readonly json: string;
|
|
62
|
+
/**
|
|
63
|
+
* The markdown to parse. Template variables written as {{ name }} become variable placeholders, and support the omit*if*unset and truncate filters.
|
|
64
|
+
*/
|
|
65
|
+
readonly markdown: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Build a rich text document from markdown, for fields that store a document rather than a string. Use it where formatting — bold, links, lists — can't be expressed by writing the template inline. One-way: markdown in, document out.
|
|
69
|
+
*
|
|
70
|
+
* ## Example Usage
|
|
71
|
+
*
|
|
72
|
+
* ```typescript
|
|
73
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
74
|
+
* import * as incident from "@incident-io/pulumi";
|
|
75
|
+
*
|
|
76
|
+
* // Build a rich text document from markdown, for a field that stores a document rather
|
|
77
|
+
* // than a "{{ }}" template. feature_set must match the field it's going into.
|
|
78
|
+
* const alertDescription = incident.getRichText({
|
|
79
|
+
* markdown: `**Alert**: {{payload.summary}}
|
|
80
|
+
*
|
|
81
|
+
* Runbook: {{payload.annotations.runbook_url}}`,
|
|
82
|
+
* featureSet: "rich",
|
|
83
|
+
* });
|
|
84
|
+
* const prometheus = new incident.AlertSource("prometheus", {
|
|
85
|
+
* name: "Prometheus",
|
|
86
|
+
* sourceType: "http",
|
|
87
|
+
* title: {
|
|
88
|
+
* literal: "{{payload.labels.alertname}}",
|
|
89
|
+
* },
|
|
90
|
+
* description: {
|
|
91
|
+
* literal: alertDescription.then(alertDescription => alertDescription.json),
|
|
92
|
+
* },
|
|
93
|
+
* });
|
|
94
|
+
* export const droppedContent = alertDescription.then(alertDescription => alertDescription.droppedContents);
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
export declare function getRichTextOutput(args: GetRichTextOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRichTextResult>;
|
|
98
|
+
/**
|
|
99
|
+
* A collection of arguments for invoking getRichText.
|
|
100
|
+
*/
|
|
101
|
+
export interface GetRichTextOutputArgs {
|
|
102
|
+
/**
|
|
103
|
+
* The feature set of the field this document is destined for. Content the feature set doesn't permit is dropped, and reported in dropped_content. Possible values are: `plainSingleLine`, `plainSingleLineWithSecrets`, `plainMultiLine`, `mrkdwn`, `rich`, `richWithImages`, `slackRichText`, `slackRichTextWithHeadings`, `basic`, `basicNoLinks`, `jira`.
|
|
104
|
+
*/
|
|
105
|
+
featureSet: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The markdown to parse. Template variables written as {{ name }} become variable placeholders, and support the omit*if*unset and truncate filters.
|
|
108
|
+
*/
|
|
109
|
+
markdown: pulumi.Input<string>;
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=getRichText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRichText.d.ts","sourceRoot":"","sources":["../getRichText.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAM1G;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,EAAE,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC7B;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAMlI;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
|
package/getRichText.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
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.getRichTextOutput = exports.getRichText = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Build a rich text document from markdown, for fields that store a document rather than a string. Use it where formatting — bold, links, lists — can't be expressed by writing the template inline. One-way: markdown in, document out.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as incident from "@incident-io/pulumi";
|
|
39
|
+
*
|
|
40
|
+
* // Build a rich text document from markdown, for a field that stores a document rather
|
|
41
|
+
* // than a "{{ }}" template. feature_set must match the field it's going into.
|
|
42
|
+
* const alertDescription = incident.getRichText({
|
|
43
|
+
* markdown: `**Alert**: {{payload.summary}}
|
|
44
|
+
*
|
|
45
|
+
* Runbook: {{payload.annotations.runbook_url}}`,
|
|
46
|
+
* featureSet: "rich",
|
|
47
|
+
* });
|
|
48
|
+
* const prometheus = new incident.AlertSource("prometheus", {
|
|
49
|
+
* name: "Prometheus",
|
|
50
|
+
* sourceType: "http",
|
|
51
|
+
* title: {
|
|
52
|
+
* literal: "{{payload.labels.alertname}}",
|
|
53
|
+
* },
|
|
54
|
+
* description: {
|
|
55
|
+
* literal: alertDescription.then(alertDescription => alertDescription.json),
|
|
56
|
+
* },
|
|
57
|
+
* });
|
|
58
|
+
* export const droppedContent = alertDescription.then(alertDescription => alertDescription.droppedContents);
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
function getRichText(args, opts) {
|
|
62
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
63
|
+
return pulumi.runtime.invoke("incident:index/getRichText:getRichText", {
|
|
64
|
+
"featureSet": args.featureSet,
|
|
65
|
+
"markdown": args.markdown,
|
|
66
|
+
}, opts);
|
|
67
|
+
}
|
|
68
|
+
exports.getRichText = getRichText;
|
|
69
|
+
/**
|
|
70
|
+
* Build a rich text document from markdown, for fields that store a document rather than a string. Use it where formatting — bold, links, lists — can't be expressed by writing the template inline. One-way: markdown in, document out.
|
|
71
|
+
*
|
|
72
|
+
* ## Example Usage
|
|
73
|
+
*
|
|
74
|
+
* ```typescript
|
|
75
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
76
|
+
* import * as incident from "@incident-io/pulumi";
|
|
77
|
+
*
|
|
78
|
+
* // Build a rich text document from markdown, for a field that stores a document rather
|
|
79
|
+
* // than a "{{ }}" template. feature_set must match the field it's going into.
|
|
80
|
+
* const alertDescription = incident.getRichText({
|
|
81
|
+
* markdown: `**Alert**: {{payload.summary}}
|
|
82
|
+
*
|
|
83
|
+
* Runbook: {{payload.annotations.runbook_url}}`,
|
|
84
|
+
* featureSet: "rich",
|
|
85
|
+
* });
|
|
86
|
+
* const prometheus = new incident.AlertSource("prometheus", {
|
|
87
|
+
* name: "Prometheus",
|
|
88
|
+
* sourceType: "http",
|
|
89
|
+
* title: {
|
|
90
|
+
* literal: "{{payload.labels.alertname}}",
|
|
91
|
+
* },
|
|
92
|
+
* description: {
|
|
93
|
+
* literal: alertDescription.then(alertDescription => alertDescription.json),
|
|
94
|
+
* },
|
|
95
|
+
* });
|
|
96
|
+
* export const droppedContent = alertDescription.then(alertDescription => alertDescription.droppedContents);
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
function getRichTextOutput(args, opts) {
|
|
100
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
101
|
+
return pulumi.runtime.invokeOutput("incident:index/getRichText:getRichText", {
|
|
102
|
+
"featureSet": args.featureSet,
|
|
103
|
+
"markdown": args.markdown,
|
|
104
|
+
}, opts);
|
|
105
|
+
}
|
|
106
|
+
exports.getRichTextOutput = getRichTextOutput;
|
|
107
|
+
//# sourceMappingURL=getRichText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRichText.js","sourceRoot":"","sources":["../getRichText.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kCAMC;AAqCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAAiC;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wCAAwC,EAAE;QACzE,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8CAMC"}
|
package/getSchedule.d.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Look up a schedule by `id` or `name`. Exactly one lookup field should be set.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as incident from "@incident-io/pulumi";
|
|
10
|
+
*
|
|
11
|
+
* // Look up a schedule by name...
|
|
12
|
+
* const platform = incident.getSchedule({
|
|
13
|
+
* name: "Platform on-call",
|
|
14
|
+
* });
|
|
15
|
+
* // ...or by ID, which is what you want if several schedules share a name.
|
|
16
|
+
* const platformById = incident.getSchedule({
|
|
17
|
+
* id: "01ABC123DEF456GHI789JKL",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function getSchedule(args?: GetScheduleArgs, opts?: pulumi.InvokeOptions): Promise<GetScheduleResult>;
|
|
22
|
+
/**
|
|
23
|
+
* A collection of arguments for invoking getSchedule.
|
|
24
|
+
*/
|
|
25
|
+
export interface GetScheduleArgs {
|
|
26
|
+
/**
|
|
27
|
+
* Look up the schedule by ID.
|
|
28
|
+
*/
|
|
29
|
+
id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Look up the schedule by name. Names aren't unique, so this fails if more than one schedule matches.
|
|
32
|
+
*/
|
|
33
|
+
name?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A collection of values returned by getSchedule.
|
|
37
|
+
*/
|
|
38
|
+
export interface GetScheduleResult {
|
|
39
|
+
/**
|
|
40
|
+
* Look up the schedule by ID.
|
|
41
|
+
*/
|
|
42
|
+
readonly id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Look up the schedule by name. Names aren't unique, so this fails if more than one schedule matches.
|
|
45
|
+
*/
|
|
46
|
+
readonly name: string;
|
|
47
|
+
/**
|
|
48
|
+
* IDs of teams that own this schedule
|
|
49
|
+
*/
|
|
50
|
+
readonly teamIds: string[];
|
|
51
|
+
/**
|
|
52
|
+
* Timezone the schedule's rotations are anchored to, as an IANA name
|
|
53
|
+
*/
|
|
54
|
+
readonly timezone: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Look up a schedule by `id` or `name`. Exactly one lookup field should be set.
|
|
58
|
+
*
|
|
59
|
+
* ## Example Usage
|
|
60
|
+
*
|
|
61
|
+
* ```typescript
|
|
62
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
63
|
+
* import * as incident from "@incident-io/pulumi";
|
|
64
|
+
*
|
|
65
|
+
* // Look up a schedule by name...
|
|
66
|
+
* const platform = incident.getSchedule({
|
|
67
|
+
* name: "Platform on-call",
|
|
68
|
+
* });
|
|
69
|
+
* // ...or by ID, which is what you want if several schedules share a name.
|
|
70
|
+
* const platformById = incident.getSchedule({
|
|
71
|
+
* id: "01ABC123DEF456GHI789JKL",
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
export declare function getScheduleOutput(args?: GetScheduleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetScheduleResult>;
|
|
76
|
+
/**
|
|
77
|
+
* A collection of arguments for invoking getSchedule.
|
|
78
|
+
*/
|
|
79
|
+
export interface GetScheduleOutputArgs {
|
|
80
|
+
/**
|
|
81
|
+
* Look up the schedule by ID.
|
|
82
|
+
*/
|
|
83
|
+
id?: pulumi.Input<string | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* Look up the schedule by name. Names aren't unique, so this fails if more than one schedule matches.
|
|
86
|
+
*/
|
|
87
|
+
name?: pulumi.Input<string | undefined>;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=getSchedule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSchedule.d.ts","sourceRoot":"","sources":["../getSchedule.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAO3G;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC7B;AACD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,CAAC,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAOnI;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C"}
|
package/getSchedule.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
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.getScheduleOutput = exports.getSchedule = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Look up a schedule by `id` or `name`. Exactly one lookup field should be set.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as incident from "@incident-io/pulumi";
|
|
39
|
+
*
|
|
40
|
+
* // Look up a schedule by name...
|
|
41
|
+
* const platform = incident.getSchedule({
|
|
42
|
+
* name: "Platform on-call",
|
|
43
|
+
* });
|
|
44
|
+
* // ...or by ID, which is what you want if several schedules share a name.
|
|
45
|
+
* const platformById = incident.getSchedule({
|
|
46
|
+
* id: "01ABC123DEF456GHI789JKL",
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
function getSchedule(args, opts) {
|
|
51
|
+
args = args || {};
|
|
52
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
53
|
+
return pulumi.runtime.invoke("incident:index/getSchedule:getSchedule", {
|
|
54
|
+
"id": args.id,
|
|
55
|
+
"name": args.name,
|
|
56
|
+
}, opts);
|
|
57
|
+
}
|
|
58
|
+
exports.getSchedule = getSchedule;
|
|
59
|
+
/**
|
|
60
|
+
* Look up a schedule by `id` or `name`. Exactly one lookup field should be set.
|
|
61
|
+
*
|
|
62
|
+
* ## Example Usage
|
|
63
|
+
*
|
|
64
|
+
* ```typescript
|
|
65
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
66
|
+
* import * as incident from "@incident-io/pulumi";
|
|
67
|
+
*
|
|
68
|
+
* // Look up a schedule by name...
|
|
69
|
+
* const platform = incident.getSchedule({
|
|
70
|
+
* name: "Platform on-call",
|
|
71
|
+
* });
|
|
72
|
+
* // ...or by ID, which is what you want if several schedules share a name.
|
|
73
|
+
* const platformById = incident.getSchedule({
|
|
74
|
+
* id: "01ABC123DEF456GHI789JKL",
|
|
75
|
+
* });
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
function getScheduleOutput(args, opts) {
|
|
79
|
+
args = args || {};
|
|
80
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
81
|
+
return pulumi.runtime.invokeOutput("incident:index/getSchedule:getSchedule", {
|
|
82
|
+
"id": args.id,
|
|
83
|
+
"name": args.name,
|
|
84
|
+
}, opts);
|
|
85
|
+
}
|
|
86
|
+
exports.getScheduleOutput = getScheduleOutput;
|
|
87
|
+
//# sourceMappingURL=getSchedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSchedule.js","sourceRoot":"","sources":["../getSchedule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kCAOC;AAqCD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAAiC;IAC7F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wCAAwC,EAAE;QACzE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8CAOC"}
|