@incident-io/pulumi 0.2.0 → 0.3.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/getIncidentForm.d.ts +96 -0
- package/getIncidentForm.d.ts.map +1 -0
- package/getIncidentForm.js +89 -0
- package/getIncidentForm.js.map +1 -0
- package/getStatusPageComponent.d.ts +75 -0
- package/getStatusPageComponent.d.ts.map +1 -0
- package/getStatusPageComponent.js +81 -0
- package/getStatusPageComponent.js.map +1 -0
- package/getWorkflow.d.ts +5 -1
- package/getWorkflow.d.ts.map +1 -1
- package/getWorkflow.js.map +1 -1
- package/incidentForm.d.ts +424 -0
- package/incidentForm.d.ts.map +1 -0
- package/incidentForm.js +408 -0
- package/incidentForm.js.map +1 -0
- package/index.d.ts +15 -0
- package/index.d.ts.map +1 -1
- package/index.js +24 -3
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/policy.d.ts +40 -2
- package/policy.d.ts.map +1 -1
- package/policy.js +30 -2
- package/policy.js.map +1 -1
- package/statusPageComponent.d.ts +120 -0
- package/statusPageComponent.d.ts.map +1 -0
- package/statusPageComponent.js +123 -0
- package/statusPageComponent.js.map +1 -0
- package/statusPageStructure.d.ts +151 -0
- package/statusPageStructure.d.ts.map +1 -0
- package/statusPageStructure.js +148 -0
- package/statusPageStructure.js.map +1 -0
- package/types/input.d.ts +838 -175
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +1547 -451
- package/types/output.d.ts.map +1 -1
- package/workflow.d.ts +16 -3
- package/workflow.d.ts.map +1 -1
- package/workflow.js +3 -0
- package/workflow.js.map +1 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Configure the forms used to declare, accept, update, and resolve incidents.
|
|
5
|
+
*
|
|
6
|
+
* Each form carries its elements and the expressions those elements can reference.
|
|
7
|
+
* Escalate forms are not part of this API.
|
|
8
|
+
*
|
|
9
|
+
* Use this data source to read an existing incident form by ID, including its elements and expressions, without managing it as an `incident.IncidentForm` resource. The ID of a form is in the dashboard's URL when editing it. Escalate forms are not available through this data source.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as incident from "@incident-io/pulumi";
|
|
16
|
+
*
|
|
17
|
+
* // Read an existing incident form by its ID, which is in the dashboard's URL when
|
|
18
|
+
* // editing the form.
|
|
19
|
+
* const defaultDeclare = incident.getIncidentForm({
|
|
20
|
+
* id: "01FCNDV6P870EA6S7TK1DSYDG0",
|
|
21
|
+
* });
|
|
22
|
+
* export const defaultDeclareCustomFields = defaultDeclare.then(defaultDeclare => .filter(element => element.elementType == "custom_field").map(element => (element.customFieldId)));
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare function getIncidentForm(args: GetIncidentFormArgs, opts?: pulumi.InvokeOptions): Promise<GetIncidentFormResult>;
|
|
26
|
+
/**
|
|
27
|
+
* A collection of arguments for invoking getIncidentForm.
|
|
28
|
+
*/
|
|
29
|
+
export interface GetIncidentFormArgs {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for this incident form
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A collection of values returned by getIncidentForm.
|
|
37
|
+
*/
|
|
38
|
+
export interface GetIncidentFormResult {
|
|
39
|
+
/**
|
|
40
|
+
* Expressions that make variables available in the scope
|
|
41
|
+
*/
|
|
42
|
+
readonly expressions: outputs.GetIncidentFormExpression[];
|
|
43
|
+
/**
|
|
44
|
+
* Which form this is. Escalate forms are not part of this API. Possible values are: `declare`, `accept`, `update`, `resolve`, `retrospective`, `custom-fields`.
|
|
45
|
+
*/
|
|
46
|
+
readonly formType: string;
|
|
47
|
+
/**
|
|
48
|
+
* Unique identifier for this incident form
|
|
49
|
+
*/
|
|
50
|
+
readonly id: string;
|
|
51
|
+
/**
|
|
52
|
+
* The incident type this form belongs to. Unset for the organisation's default form of this type.
|
|
53
|
+
*/
|
|
54
|
+
readonly incidentTypeId: string;
|
|
55
|
+
/**
|
|
56
|
+
* Elements on this form, in display order. List position is the order: there is no separate rank.
|
|
57
|
+
*/
|
|
58
|
+
readonly lifecycleElements: outputs.GetIncidentFormLifecycleElement[];
|
|
59
|
+
/**
|
|
60
|
+
* Not populated: whether Terraform claims a resource is configuration, and no read endpoint reports it.
|
|
61
|
+
*/
|
|
62
|
+
readonly unlockInDashboard: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Configure the forms used to declare, accept, update, and resolve incidents.
|
|
66
|
+
*
|
|
67
|
+
* Each form carries its elements and the expressions those elements can reference.
|
|
68
|
+
* Escalate forms are not part of this API.
|
|
69
|
+
*
|
|
70
|
+
* Use this data source to read an existing incident form by ID, including its elements and expressions, without managing it as an `incident.IncidentForm` resource. The ID of a form is in the dashboard's URL when editing it. Escalate forms are not available through this data source.
|
|
71
|
+
*
|
|
72
|
+
* ## Example Usage
|
|
73
|
+
*
|
|
74
|
+
* ```typescript
|
|
75
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
76
|
+
* import * as incident from "@incident-io/pulumi";
|
|
77
|
+
*
|
|
78
|
+
* // Read an existing incident form by its ID, which is in the dashboard's URL when
|
|
79
|
+
* // editing the form.
|
|
80
|
+
* const defaultDeclare = incident.getIncidentForm({
|
|
81
|
+
* id: "01FCNDV6P870EA6S7TK1DSYDG0",
|
|
82
|
+
* });
|
|
83
|
+
* export const defaultDeclareCustomFields = defaultDeclare.then(defaultDeclare => .filter(element => element.elementType == "custom_field").map(element => (element.customFieldId)));
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
export declare function getIncidentFormOutput(args: GetIncidentFormOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetIncidentFormResult>;
|
|
87
|
+
/**
|
|
88
|
+
* A collection of arguments for invoking getIncidentForm.
|
|
89
|
+
*/
|
|
90
|
+
export interface GetIncidentFormOutputArgs {
|
|
91
|
+
/**
|
|
92
|
+
* Unique identifier for this incident form
|
|
93
|
+
*/
|
|
94
|
+
id: pulumi.Input<string>;
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=getIncidentForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIncidentForm.d.ts","sourceRoot":"","sources":["../getIncidentForm.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAKtH;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,yBAAyB,EAAE,CAAC;IAC1D;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC,+BAA+B,EAAE,CAAC;IACtE;;OAEG;IACH,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;CACvC;AACD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAK9I;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.getIncidentFormOutput = exports.getIncidentForm = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Configure the forms used to declare, accept, update, and resolve incidents.
|
|
33
|
+
*
|
|
34
|
+
* Each form carries its elements and the expressions those elements can reference.
|
|
35
|
+
* Escalate forms are not part of this API.
|
|
36
|
+
*
|
|
37
|
+
* Use this data source to read an existing incident form by ID, including its elements and expressions, without managing it as an `incident.IncidentForm` resource. The ID of a form is in the dashboard's URL when editing it. Escalate forms are not available through this data source.
|
|
38
|
+
*
|
|
39
|
+
* ## Example Usage
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as incident from "@incident-io/pulumi";
|
|
44
|
+
*
|
|
45
|
+
* // Read an existing incident form by its ID, which is in the dashboard's URL when
|
|
46
|
+
* // editing the form.
|
|
47
|
+
* const defaultDeclare = incident.getIncidentForm({
|
|
48
|
+
* id: "01FCNDV6P870EA6S7TK1DSYDG0",
|
|
49
|
+
* });
|
|
50
|
+
* export const defaultDeclareCustomFields = defaultDeclare.then(defaultDeclare => .filter(element => element.elementType == "custom_field").map(element => (element.customFieldId)));
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
function getIncidentForm(args, opts) {
|
|
54
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
55
|
+
return pulumi.runtime.invoke("incident:index/getIncidentForm:getIncidentForm", {
|
|
56
|
+
"id": args.id,
|
|
57
|
+
}, opts);
|
|
58
|
+
}
|
|
59
|
+
exports.getIncidentForm = getIncidentForm;
|
|
60
|
+
/**
|
|
61
|
+
* Configure the forms used to declare, accept, update, and resolve incidents.
|
|
62
|
+
*
|
|
63
|
+
* Each form carries its elements and the expressions those elements can reference.
|
|
64
|
+
* Escalate forms are not part of this API.
|
|
65
|
+
*
|
|
66
|
+
* Use this data source to read an existing incident form by ID, including its elements and expressions, without managing it as an `incident.IncidentForm` resource. The ID of a form is in the dashboard's URL when editing it. Escalate forms are not available through this data source.
|
|
67
|
+
*
|
|
68
|
+
* ## Example Usage
|
|
69
|
+
*
|
|
70
|
+
* ```typescript
|
|
71
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
72
|
+
* import * as incident from "@incident-io/pulumi";
|
|
73
|
+
*
|
|
74
|
+
* // Read an existing incident form by its ID, which is in the dashboard's URL when
|
|
75
|
+
* // editing the form.
|
|
76
|
+
* const defaultDeclare = incident.getIncidentForm({
|
|
77
|
+
* id: "01FCNDV6P870EA6S7TK1DSYDG0",
|
|
78
|
+
* });
|
|
79
|
+
* export const defaultDeclareCustomFields = defaultDeclare.then(defaultDeclare => .filter(element => element.elementType == "custom_field").map(element => (element.customFieldId)));
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
function getIncidentFormOutput(args, opts) {
|
|
83
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
84
|
+
return pulumi.runtime.invokeOutput("incident:index/getIncidentForm:getIncidentForm", {
|
|
85
|
+
"id": args.id,
|
|
86
|
+
}, opts);
|
|
87
|
+
}
|
|
88
|
+
exports.getIncidentFormOutput = getIncidentFormOutput;
|
|
89
|
+
//# sourceMappingURL=getIncidentForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIncidentForm.js","sourceRoot":"","sources":["../getIncidentForm.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0CAKC;AAyCD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAAiC;IACpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gDAAgD,EAAE;QACjF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sDAKC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Look up a status page component by `id`, such as one created in the incident.io dashboard, without managing it as an `incident.StatusPageComponent` resource.
|
|
4
|
+
*
|
|
5
|
+
* Only live components can be found; the API does not return archived ones. Any valid API key can read components, and no specific permission is needed.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as incident from "@incident-io/pulumi";
|
|
12
|
+
*
|
|
13
|
+
* // Look up a status page component by ID, such as one created in the dashboard.
|
|
14
|
+
* const api = incident.getStatusPageComponent({
|
|
15
|
+
* id: "01FCNDV6P870EA6S7TK1DSYDG1",
|
|
16
|
+
* });
|
|
17
|
+
* export const apiComponentName = api.then(api => api.name);
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function getStatusPageComponent(args: GetStatusPageComponentArgs, opts?: pulumi.InvokeOptions): Promise<GetStatusPageComponentResult>;
|
|
21
|
+
/**
|
|
22
|
+
* A collection of arguments for invoking getStatusPageComponent.
|
|
23
|
+
*/
|
|
24
|
+
export interface GetStatusPageComponentArgs {
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier for this component
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A collection of values returned by getStatusPageComponent.
|
|
32
|
+
*/
|
|
33
|
+
export interface GetStatusPageComponentResult {
|
|
34
|
+
/**
|
|
35
|
+
* Optional short description of this component. Null when the component has none.
|
|
36
|
+
*/
|
|
37
|
+
readonly description: string;
|
|
38
|
+
/**
|
|
39
|
+
* Unique identifier for this component
|
|
40
|
+
*/
|
|
41
|
+
readonly id: string;
|
|
42
|
+
/**
|
|
43
|
+
* Human-readable name for the component
|
|
44
|
+
*/
|
|
45
|
+
readonly name: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Look up a status page component by `id`, such as one created in the incident.io dashboard, without managing it as an `incident.StatusPageComponent` resource.
|
|
49
|
+
*
|
|
50
|
+
* Only live components can be found; the API does not return archived ones. Any valid API key can read components, and no specific permission is needed.
|
|
51
|
+
*
|
|
52
|
+
* ## Example Usage
|
|
53
|
+
*
|
|
54
|
+
* ```typescript
|
|
55
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
56
|
+
* import * as incident from "@incident-io/pulumi";
|
|
57
|
+
*
|
|
58
|
+
* // Look up a status page component by ID, such as one created in the dashboard.
|
|
59
|
+
* const api = incident.getStatusPageComponent({
|
|
60
|
+
* id: "01FCNDV6P870EA6S7TK1DSYDG1",
|
|
61
|
+
* });
|
|
62
|
+
* export const apiComponentName = api.then(api => api.name);
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function getStatusPageComponentOutput(args: GetStatusPageComponentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStatusPageComponentResult>;
|
|
66
|
+
/**
|
|
67
|
+
* A collection of arguments for invoking getStatusPageComponent.
|
|
68
|
+
*/
|
|
69
|
+
export interface GetStatusPageComponentOutputArgs {
|
|
70
|
+
/**
|
|
71
|
+
* Unique identifier for this component
|
|
72
|
+
*/
|
|
73
|
+
id: pulumi.Input<string>;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=getStatusPageComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStatusPageComponent.d.ts","sourceRoot":"","sources":["../getStatusPageComponent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,0BAA0B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAK3I;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC;;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;CACzB;AACD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,gCAAgC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAKnK;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"}
|
|
@@ -0,0 +1,81 @@
|
|
|
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.getStatusPageComponentOutput = exports.getStatusPageComponent = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Look up a status page component by `id`, such as one created in the incident.io dashboard, without managing it as an `incident.StatusPageComponent` resource.
|
|
33
|
+
*
|
|
34
|
+
* Only live components can be found; the API does not return archived ones. Any valid API key can read components, and no specific permission is needed.
|
|
35
|
+
*
|
|
36
|
+
* ## Example Usage
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as incident from "@incident-io/pulumi";
|
|
41
|
+
*
|
|
42
|
+
* // Look up a status page component by ID, such as one created in the dashboard.
|
|
43
|
+
* const api = incident.getStatusPageComponent({
|
|
44
|
+
* id: "01FCNDV6P870EA6S7TK1DSYDG1",
|
|
45
|
+
* });
|
|
46
|
+
* export const apiComponentName = api.then(api => api.name);
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
function getStatusPageComponent(args, opts) {
|
|
50
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
51
|
+
return pulumi.runtime.invoke("incident:index/getStatusPageComponent:getStatusPageComponent", {
|
|
52
|
+
"id": args.id,
|
|
53
|
+
}, opts);
|
|
54
|
+
}
|
|
55
|
+
exports.getStatusPageComponent = getStatusPageComponent;
|
|
56
|
+
/**
|
|
57
|
+
* Look up a status page component by `id`, such as one created in the incident.io dashboard, without managing it as an `incident.StatusPageComponent` resource.
|
|
58
|
+
*
|
|
59
|
+
* Only live components can be found; the API does not return archived ones. Any valid API key can read components, and no specific permission is needed.
|
|
60
|
+
*
|
|
61
|
+
* ## Example Usage
|
|
62
|
+
*
|
|
63
|
+
* ```typescript
|
|
64
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
65
|
+
* import * as incident from "@incident-io/pulumi";
|
|
66
|
+
*
|
|
67
|
+
* // Look up a status page component by ID, such as one created in the dashboard.
|
|
68
|
+
* const api = incident.getStatusPageComponent({
|
|
69
|
+
* id: "01FCNDV6P870EA6S7TK1DSYDG1",
|
|
70
|
+
* });
|
|
71
|
+
* export const apiComponentName = api.then(api => api.name);
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
function getStatusPageComponentOutput(args, opts) {
|
|
75
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
76
|
+
return pulumi.runtime.invokeOutput("incident:index/getStatusPageComponent:getStatusPageComponent", {
|
|
77
|
+
"id": args.id,
|
|
78
|
+
}, opts);
|
|
79
|
+
}
|
|
80
|
+
exports.getStatusPageComponentOutput = getStatusPageComponentOutput;
|
|
81
|
+
//# sourceMappingURL=getStatusPageComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStatusPageComponent.js","sourceRoot":"","sources":["../getStatusPageComponent.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8DAA8D,EAAE;QACzF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wDAKC;AA6BD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,4BAA4B,CAAC,IAAsC,EAAE,IAAiC;IAClH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8DAA8D,EAAE;QAC/F,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oEAKC"}
|
package/getWorkflow.d.ts
CHANGED
|
@@ -30,6 +30,10 @@ export interface GetWorkflowArgs {
|
|
|
30
30
|
* A collection of values returned by getWorkflow.
|
|
31
31
|
*/
|
|
32
32
|
export interface GetWorkflowResult {
|
|
33
|
+
/**
|
|
34
|
+
* Whether the workflow is configured to run immediately or ask for confirmation in the incident channel. Possible values are: `runAutomatically`, `confirmBeforeRunning`.
|
|
35
|
+
*/
|
|
36
|
+
readonly autoRunMode: string;
|
|
33
37
|
/**
|
|
34
38
|
* The condition groups to apply in this filter. Only one group needs to be satisfied for the filter to pass.
|
|
35
39
|
*/
|
|
@@ -51,7 +55,7 @@ export interface GetWorkflowResult {
|
|
|
51
55
|
*/
|
|
52
56
|
readonly folder: string;
|
|
53
57
|
/**
|
|
54
|
-
* User-configured form fields available in the workflow scope
|
|
58
|
+
* User-configured form fields available in the workflow scope. Allowed on manually-triggered workflows, and on workflows with an `autoRunMode` of `confirmBeforeRunning`.
|
|
55
59
|
*/
|
|
56
60
|
readonly formFields: outputs.GetWorkflowFormField[];
|
|
57
61
|
/**
|
package/getWorkflow.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWorkflow.d.ts","sourceRoot":"","sources":["../getWorkflow.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAK1G;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,yBAAyB,EAAE,CAAC;IAC9D;;OAEG;IACH,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,qBAAqB,EAAE,CAAC;IACtD;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,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AC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,eAAe,EAAE,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;CACvC;AACD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAKlI;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"}
|
package/getWorkflow.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWorkflow.js","sourceRoot":"","sources":["../getWorkflow.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;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,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kCAKC;
|
|
1
|
+
{"version":3,"file":"getWorkflow.js","sourceRoot":"","sources":["../getWorkflow.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB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