@sst-provider/incident-io 5.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/bin/alertAttribute.d.ts +96 -0
- package/bin/alertAttribute.js +63 -0
- package/bin/alertAttribute.js.map +1 -0
- package/bin/alertRoute.d.ts +146 -0
- package/bin/alertRoute.js +95 -0
- package/bin/alertRoute.js.map +1 -0
- package/bin/alertSource.d.ts +127 -0
- package/bin/alertSource.js +73 -0
- package/bin/alertSource.js.map +1 -0
- package/bin/catalogEntries.d.ts +86 -0
- package/bin/catalogEntries.js +59 -0
- package/bin/catalogEntries.js.map +1 -0
- package/bin/catalogEntry.d.ts +125 -0
- package/bin/catalogEntry.js +67 -0
- package/bin/catalogEntry.js.map +1 -0
- package/bin/catalogType.d.ts +108 -0
- package/bin/catalogType.js +65 -0
- package/bin/catalogType.js.map +1 -0
- package/bin/catalogTypeAttribute.d.ts +126 -0
- package/bin/catalogTypeAttribute.js +67 -0
- package/bin/catalogTypeAttribute.js.map +1 -0
- package/bin/config/index.d.ts +1 -0
- package/bin/config/index.js +21 -0
- package/bin/config/index.js.map +1 -0
- package/bin/config/vars.d.ts +8 -0
- package/bin/config/vars.js +19 -0
- package/bin/config/vars.js.map +1 -0
- package/bin/customField.d.ts +113 -0
- package/bin/customField.js +67 -0
- package/bin/customField.js.map +1 -0
- package/bin/customFieldOption.d.ts +72 -0
- package/bin/customFieldOption.js +59 -0
- package/bin/customFieldOption.js.map +1 -0
- package/bin/escalationPath.d.ts +104 -0
- package/bin/escalationPath.js +60 -0
- package/bin/escalationPath.js.map +1 -0
- package/bin/getAlertAttribute.d.ts +26 -0
- package/bin/getAlertAttribute.js +22 -0
- package/bin/getAlertAttribute.js.map +1 -0
- package/bin/getAlertSources.d.ts +27 -0
- package/bin/getAlertSources.js +24 -0
- package/bin/getAlertSources.js.map +1 -0
- package/bin/getCatalogEntries.d.ts +27 -0
- package/bin/getCatalogEntries.js +22 -0
- package/bin/getCatalogEntries.js.map +1 -0
- package/bin/getCatalogEntry.d.ts +31 -0
- package/bin/getCatalogEntry.js +24 -0
- package/bin/getCatalogEntry.js.map +1 -0
- package/bin/getCatalogType.d.ts +31 -0
- package/bin/getCatalogType.js +28 -0
- package/bin/getCatalogType.js.map +1 -0
- package/bin/getCatalogTypeAttribute.d.ts +30 -0
- package/bin/getCatalogTypeAttribute.js +24 -0
- package/bin/getCatalogTypeAttribute.js.map +1 -0
- package/bin/getCustomField.d.ts +29 -0
- package/bin/getCustomField.js +22 -0
- package/bin/getCustomField.js.map +1 -0
- package/bin/getCustomFieldOption.d.ts +28 -0
- package/bin/getCustomFieldOption.js +26 -0
- package/bin/getCustomFieldOption.js.map +1 -0
- package/bin/getEscalationPath.d.ts +29 -0
- package/bin/getEscalationPath.js +26 -0
- package/bin/getEscalationPath.js.map +1 -0
- package/bin/getIncidentRole.d.ts +25 -0
- package/bin/getIncidentRole.js +22 -0
- package/bin/getIncidentRole.js.map +1 -0
- package/bin/getIncidentTypes.d.ts +14 -0
- package/bin/getIncidentTypes.js +18 -0
- package/bin/getIncidentTypes.js.map +1 -0
- package/bin/getSchedule.d.ts +26 -0
- package/bin/getSchedule.js +26 -0
- package/bin/getSchedule.js.map +1 -0
- package/bin/getUser.d.ts +28 -0
- package/bin/getUser.js +28 -0
- package/bin/getUser.js.map +1 -0
- package/bin/incidentRole.d.ts +84 -0
- package/bin/incidentRole.js +64 -0
- package/bin/incidentRole.js.map +1 -0
- package/bin/index.d.ts +91 -0
- package/bin/index.js +166 -0
- package/bin/index.js.map +1 -0
- package/bin/maintenanceWindow.d.ts +206 -0
- package/bin/maintenanceWindow.js +87 -0
- package/bin/maintenanceWindow.js.map +1 -0
- package/bin/package.json +35 -0
- package/bin/provider.d.ts +59 -0
- package/bin/provider.js +57 -0
- package/bin/provider.js.map +1 -0
- package/bin/schedule.d.ts +71 -0
- package/bin/schedule.js +63 -0
- package/bin/schedule.js.map +1 -0
- package/bin/severity.d.ts +72 -0
- package/bin/severity.js +56 -0
- package/bin/severity.js.map +1 -0
- package/bin/status.d.ts +72 -0
- package/bin/status.js +59 -0
- package/bin/status.js.map +1 -0
- package/bin/types/index.d.ts +3 -0
- package/bin/types/index.js +11 -0
- package/bin/types/index.js.map +1 -0
- package/bin/types/input.d.ts +6516 -0
- package/bin/types/input.js +5 -0
- package/bin/types/input.js.map +1 -0
- package/bin/types/output.d.ts +11481 -0
- package/bin/types/output.js +5 -0
- package/bin/types/output.js.map +1 -0
- package/bin/utilities.d.ts +5 -0
- package/bin/utilities.js +129 -0
- package/bin/utilities.js.map +1 -0
- package/bin/workflow.d.ts +218 -0
- package/bin/workflow.js +107 -0
- package/bin/workflow.js.map +1 -0
- package/package.json +35 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
export declare class Schedule extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing Schedule resource's state with the given name, ID, and optional extra
|
|
7
|
+
* properties used to qualify the lookup.
|
|
8
|
+
*
|
|
9
|
+
* @param name The _unique_ name of the resulting resource.
|
|
10
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
11
|
+
* @param state Any extra arguments used during the lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ScheduleState, opts?: pulumi.CustomResourceOptions): Schedule;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Schedule. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is Schedule;
|
|
20
|
+
readonly holidaysPublicConfig: pulumi.Output<outputs.ScheduleHolidaysPublicConfig | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* Human readable name synced from external provider
|
|
23
|
+
*/
|
|
24
|
+
readonly name: pulumi.Output<string>;
|
|
25
|
+
readonly rotations: pulumi.Output<outputs.ScheduleRotation[]>;
|
|
26
|
+
/**
|
|
27
|
+
* IDs of teams that own this schedule
|
|
28
|
+
*/
|
|
29
|
+
readonly teamIds: pulumi.Output<string[] | undefined>;
|
|
30
|
+
readonly timezone: pulumi.Output<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Create a Schedule resource with the given unique name, arguments, and options.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resource.
|
|
35
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
36
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
37
|
+
*/
|
|
38
|
+
constructor(name: string, args: ScheduleArgs, opts?: pulumi.CustomResourceOptions);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Input properties used for looking up and filtering Schedule resources.
|
|
42
|
+
*/
|
|
43
|
+
export interface ScheduleState {
|
|
44
|
+
holidaysPublicConfig?: pulumi.Input<inputs.ScheduleHolidaysPublicConfig>;
|
|
45
|
+
/**
|
|
46
|
+
* Human readable name synced from external provider
|
|
47
|
+
*/
|
|
48
|
+
name?: pulumi.Input<string>;
|
|
49
|
+
rotations?: pulumi.Input<pulumi.Input<inputs.ScheduleRotation>[]>;
|
|
50
|
+
/**
|
|
51
|
+
* IDs of teams that own this schedule
|
|
52
|
+
*/
|
|
53
|
+
teamIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
54
|
+
timezone?: pulumi.Input<string>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The set of arguments for constructing a Schedule resource.
|
|
58
|
+
*/
|
|
59
|
+
export interface ScheduleArgs {
|
|
60
|
+
holidaysPublicConfig?: pulumi.Input<inputs.ScheduleHolidaysPublicConfig>;
|
|
61
|
+
/**
|
|
62
|
+
* Human readable name synced from external provider
|
|
63
|
+
*/
|
|
64
|
+
name?: pulumi.Input<string>;
|
|
65
|
+
rotations: pulumi.Input<pulumi.Input<inputs.ScheduleRotation>[]>;
|
|
66
|
+
/**
|
|
67
|
+
* IDs of teams that own this schedule
|
|
68
|
+
*/
|
|
69
|
+
teamIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
70
|
+
timezone: pulumi.Input<string>;
|
|
71
|
+
}
|
package/bin/schedule.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Schedule = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class Schedule extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing Schedule resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new Schedule(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of Schedule. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === Schedule.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["holidaysPublicConfig"] = state?.holidaysPublicConfig;
|
|
37
|
+
resourceInputs["name"] = state?.name;
|
|
38
|
+
resourceInputs["rotations"] = state?.rotations;
|
|
39
|
+
resourceInputs["teamIds"] = state?.teamIds;
|
|
40
|
+
resourceInputs["timezone"] = state?.timezone;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
const args = argsOrState;
|
|
44
|
+
if (args?.rotations === undefined && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'rotations'");
|
|
46
|
+
}
|
|
47
|
+
if (args?.timezone === undefined && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'timezone'");
|
|
49
|
+
}
|
|
50
|
+
resourceInputs["holidaysPublicConfig"] = args?.holidaysPublicConfig;
|
|
51
|
+
resourceInputs["name"] = args?.name;
|
|
52
|
+
resourceInputs["rotations"] = args?.rotations;
|
|
53
|
+
resourceInputs["teamIds"] = args?.teamIds;
|
|
54
|
+
resourceInputs["timezone"] = args?.timezone;
|
|
55
|
+
}
|
|
56
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
57
|
+
super(Schedule.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.Schedule = Schedule;
|
|
61
|
+
/** @internal */
|
|
62
|
+
Schedule.__pulumiType = 'incident:index/schedule:Schedule';
|
|
63
|
+
//# sourceMappingURL=schedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule.js","sourceRoot":"","sources":["../schedule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAA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D;YACD,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IAC3G,CAAC;;AA1EL,4BA2EC;AA7DG,gBAAgB;AACO,qBAAY,GAAG,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class Severity extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing Severity resource's state with the given name, ID, and optional extra
|
|
5
|
+
* properties used to qualify the lookup.
|
|
6
|
+
*
|
|
7
|
+
* @param name The _unique_ name of the resulting resource.
|
|
8
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
|
+
* @param state Any extra arguments used during the lookup.
|
|
10
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
11
|
+
*/
|
|
12
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SeverityState, opts?: pulumi.CustomResourceOptions): Severity;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if the given object is an instance of Severity. This is designed to work even
|
|
15
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
|
+
*/
|
|
17
|
+
static isInstance(obj: any): obj is Severity;
|
|
18
|
+
/**
|
|
19
|
+
* Description of the severity
|
|
20
|
+
*/
|
|
21
|
+
readonly description: pulumi.Output<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Human readable name of the severity
|
|
24
|
+
*/
|
|
25
|
+
readonly name: pulumi.Output<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Rank to help sort severities (lower numbers are less severe)
|
|
28
|
+
*/
|
|
29
|
+
readonly rank: pulumi.Output<number>;
|
|
30
|
+
/**
|
|
31
|
+
* Create a Severity resource with the given unique name, arguments, and options.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resource.
|
|
34
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
35
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
36
|
+
*/
|
|
37
|
+
constructor(name: string, args: SeverityArgs, opts?: pulumi.CustomResourceOptions);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Input properties used for looking up and filtering Severity resources.
|
|
41
|
+
*/
|
|
42
|
+
export interface SeverityState {
|
|
43
|
+
/**
|
|
44
|
+
* Description of the severity
|
|
45
|
+
*/
|
|
46
|
+
description?: pulumi.Input<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Human readable name of the severity
|
|
49
|
+
*/
|
|
50
|
+
name?: pulumi.Input<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Rank to help sort severities (lower numbers are less severe)
|
|
53
|
+
*/
|
|
54
|
+
rank?: pulumi.Input<number>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The set of arguments for constructing a Severity resource.
|
|
58
|
+
*/
|
|
59
|
+
export interface SeverityArgs {
|
|
60
|
+
/**
|
|
61
|
+
* Description of the severity
|
|
62
|
+
*/
|
|
63
|
+
description: pulumi.Input<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Human readable name of the severity
|
|
66
|
+
*/
|
|
67
|
+
name?: pulumi.Input<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Rank to help sort severities (lower numbers are less severe)
|
|
70
|
+
*/
|
|
71
|
+
rank?: pulumi.Input<number>;
|
|
72
|
+
}
|
package/bin/severity.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Severity = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class Severity extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing Severity resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new Severity(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of Severity. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === Severity.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["description"] = state?.description;
|
|
37
|
+
resourceInputs["name"] = state?.name;
|
|
38
|
+
resourceInputs["rank"] = state?.rank;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
const args = argsOrState;
|
|
42
|
+
if (args?.description === undefined && !opts.urn) {
|
|
43
|
+
throw new Error("Missing required property 'description'");
|
|
44
|
+
}
|
|
45
|
+
resourceInputs["description"] = args?.description;
|
|
46
|
+
resourceInputs["name"] = args?.name;
|
|
47
|
+
resourceInputs["rank"] = args?.rank;
|
|
48
|
+
}
|
|
49
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
50
|
+
super(Severity.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.Severity = Severity;
|
|
54
|
+
/** @internal */
|
|
55
|
+
Severity.__pulumiType = 'incident:index/severity:Severity';
|
|
56
|
+
//# sourceMappingURL=severity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"severity.js","sourceRoot":"","sources":["../severity.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;SACxC;aAAM;YACH,MAAM,IAAI,GAAG,WAAuC,CAAC;YACrD,IAAI,IAAI,EAAE,WAAW,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC9C,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,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,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IAC3G,CAAC;;AApEL,4BAqEC;AAvDG,gBAAgB;AACO,qBAAY,GAAG,kCAAkC,CAAC"}
|
package/bin/status.d.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class Status extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing Status resource's state with the given name, ID, and optional extra
|
|
5
|
+
* properties used to qualify the lookup.
|
|
6
|
+
*
|
|
7
|
+
* @param name The _unique_ name of the resulting resource.
|
|
8
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
|
+
* @param state Any extra arguments used during the lookup.
|
|
10
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
11
|
+
*/
|
|
12
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: StatusState, opts?: pulumi.CustomResourceOptions): Status;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if the given object is an instance of Status. This is designed to work even
|
|
15
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
|
+
*/
|
|
17
|
+
static isInstance(obj: any): obj is Status;
|
|
18
|
+
/**
|
|
19
|
+
* What category of status it is. All statuses apart from live (renamed in the app to Active) and learning (renamed in the app to Post-incident) are managed by incident.io and cannot be configured. Possible values are: <span pulumi-lang-nodejs="`triage`" pulumi-lang-dotnet="`Triage`" pulumi-lang-go="`triage`" pulumi-lang-python="`triage`" pulumi-lang-yaml="`triage`" pulumi-lang-java="`triage`">`triage`</span>, <span pulumi-lang-nodejs="`declined`" pulumi-lang-dotnet="`Declined`" pulumi-lang-go="`declined`" pulumi-lang-python="`declined`" pulumi-lang-yaml="`declined`" pulumi-lang-java="`declined`">`declined`</span>, <span pulumi-lang-nodejs="`merged`" pulumi-lang-dotnet="`Merged`" pulumi-lang-go="`merged`" pulumi-lang-python="`merged`" pulumi-lang-yaml="`merged`" pulumi-lang-java="`merged`">`merged`</span>, <span pulumi-lang-nodejs="`canceled`" pulumi-lang-dotnet="`Canceled`" pulumi-lang-go="`canceled`" pulumi-lang-python="`canceled`" pulumi-lang-yaml="`canceled`" pulumi-lang-java="`canceled`">`canceled`</span>, <span pulumi-lang-nodejs="`live`" pulumi-lang-dotnet="`Live`" pulumi-lang-go="`live`" pulumi-lang-python="`live`" pulumi-lang-yaml="`live`" pulumi-lang-java="`live`">`live`</span>, <span pulumi-lang-nodejs="`learning`" pulumi-lang-dotnet="`Learning`" pulumi-lang-go="`learning`" pulumi-lang-python="`learning`" pulumi-lang-yaml="`learning`" pulumi-lang-java="`learning`">`learning`</span>, <span pulumi-lang-nodejs="`closed`" pulumi-lang-dotnet="`Closed`" pulumi-lang-go="`closed`" pulumi-lang-python="`closed`" pulumi-lang-yaml="`closed`" pulumi-lang-java="`closed`">`closed`</span>, <span pulumi-lang-nodejs="`paused`" pulumi-lang-dotnet="`Paused`" pulumi-lang-go="`paused`" pulumi-lang-python="`paused`" pulumi-lang-yaml="`paused`" pulumi-lang-java="`paused`">`paused`</span>.
|
|
20
|
+
*/
|
|
21
|
+
readonly category: pulumi.Output<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Rich text description of the incident status
|
|
24
|
+
*/
|
|
25
|
+
readonly description: pulumi.Output<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Unique name of this status
|
|
28
|
+
*/
|
|
29
|
+
readonly name: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Create a Status resource with the given unique name, arguments, and options.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resource.
|
|
34
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
35
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
36
|
+
*/
|
|
37
|
+
constructor(name: string, args: StatusArgs, opts?: pulumi.CustomResourceOptions);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Input properties used for looking up and filtering Status resources.
|
|
41
|
+
*/
|
|
42
|
+
export interface StatusState {
|
|
43
|
+
/**
|
|
44
|
+
* What category of status it is. All statuses apart from live (renamed in the app to Active) and learning (renamed in the app to Post-incident) are managed by incident.io and cannot be configured. Possible values are: <span pulumi-lang-nodejs="`triage`" pulumi-lang-dotnet="`Triage`" pulumi-lang-go="`triage`" pulumi-lang-python="`triage`" pulumi-lang-yaml="`triage`" pulumi-lang-java="`triage`">`triage`</span>, <span pulumi-lang-nodejs="`declined`" pulumi-lang-dotnet="`Declined`" pulumi-lang-go="`declined`" pulumi-lang-python="`declined`" pulumi-lang-yaml="`declined`" pulumi-lang-java="`declined`">`declined`</span>, <span pulumi-lang-nodejs="`merged`" pulumi-lang-dotnet="`Merged`" pulumi-lang-go="`merged`" pulumi-lang-python="`merged`" pulumi-lang-yaml="`merged`" pulumi-lang-java="`merged`">`merged`</span>, <span pulumi-lang-nodejs="`canceled`" pulumi-lang-dotnet="`Canceled`" pulumi-lang-go="`canceled`" pulumi-lang-python="`canceled`" pulumi-lang-yaml="`canceled`" pulumi-lang-java="`canceled`">`canceled`</span>, <span pulumi-lang-nodejs="`live`" pulumi-lang-dotnet="`Live`" pulumi-lang-go="`live`" pulumi-lang-python="`live`" pulumi-lang-yaml="`live`" pulumi-lang-java="`live`">`live`</span>, <span pulumi-lang-nodejs="`learning`" pulumi-lang-dotnet="`Learning`" pulumi-lang-go="`learning`" pulumi-lang-python="`learning`" pulumi-lang-yaml="`learning`" pulumi-lang-java="`learning`">`learning`</span>, <span pulumi-lang-nodejs="`closed`" pulumi-lang-dotnet="`Closed`" pulumi-lang-go="`closed`" pulumi-lang-python="`closed`" pulumi-lang-yaml="`closed`" pulumi-lang-java="`closed`">`closed`</span>, <span pulumi-lang-nodejs="`paused`" pulumi-lang-dotnet="`Paused`" pulumi-lang-go="`paused`" pulumi-lang-python="`paused`" pulumi-lang-yaml="`paused`" pulumi-lang-java="`paused`">`paused`</span>.
|
|
45
|
+
*/
|
|
46
|
+
category?: pulumi.Input<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Rich text description of the incident status
|
|
49
|
+
*/
|
|
50
|
+
description?: pulumi.Input<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Unique name of this status
|
|
53
|
+
*/
|
|
54
|
+
name?: pulumi.Input<string>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The set of arguments for constructing a Status resource.
|
|
58
|
+
*/
|
|
59
|
+
export interface StatusArgs {
|
|
60
|
+
/**
|
|
61
|
+
* What category of status it is. All statuses apart from live (renamed in the app to Active) and learning (renamed in the app to Post-incident) are managed by incident.io and cannot be configured. Possible values are: <span pulumi-lang-nodejs="`triage`" pulumi-lang-dotnet="`Triage`" pulumi-lang-go="`triage`" pulumi-lang-python="`triage`" pulumi-lang-yaml="`triage`" pulumi-lang-java="`triage`">`triage`</span>, <span pulumi-lang-nodejs="`declined`" pulumi-lang-dotnet="`Declined`" pulumi-lang-go="`declined`" pulumi-lang-python="`declined`" pulumi-lang-yaml="`declined`" pulumi-lang-java="`declined`">`declined`</span>, <span pulumi-lang-nodejs="`merged`" pulumi-lang-dotnet="`Merged`" pulumi-lang-go="`merged`" pulumi-lang-python="`merged`" pulumi-lang-yaml="`merged`" pulumi-lang-java="`merged`">`merged`</span>, <span pulumi-lang-nodejs="`canceled`" pulumi-lang-dotnet="`Canceled`" pulumi-lang-go="`canceled`" pulumi-lang-python="`canceled`" pulumi-lang-yaml="`canceled`" pulumi-lang-java="`canceled`">`canceled`</span>, <span pulumi-lang-nodejs="`live`" pulumi-lang-dotnet="`Live`" pulumi-lang-go="`live`" pulumi-lang-python="`live`" pulumi-lang-yaml="`live`" pulumi-lang-java="`live`">`live`</span>, <span pulumi-lang-nodejs="`learning`" pulumi-lang-dotnet="`Learning`" pulumi-lang-go="`learning`" pulumi-lang-python="`learning`" pulumi-lang-yaml="`learning`" pulumi-lang-java="`learning`">`learning`</span>, <span pulumi-lang-nodejs="`closed`" pulumi-lang-dotnet="`Closed`" pulumi-lang-go="`closed`" pulumi-lang-python="`closed`" pulumi-lang-yaml="`closed`" pulumi-lang-java="`closed`">`closed`</span>, <span pulumi-lang-nodejs="`paused`" pulumi-lang-dotnet="`Paused`" pulumi-lang-go="`paused`" pulumi-lang-python="`paused`" pulumi-lang-yaml="`paused`" pulumi-lang-java="`paused`">`paused`</span>.
|
|
62
|
+
*/
|
|
63
|
+
category: pulumi.Input<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Rich text description of the incident status
|
|
66
|
+
*/
|
|
67
|
+
description: pulumi.Input<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Unique name of this status
|
|
70
|
+
*/
|
|
71
|
+
name?: pulumi.Input<string>;
|
|
72
|
+
}
|
package/bin/status.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Status = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class Status extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing Status resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new Status(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of Status. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === Status.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["category"] = state?.category;
|
|
37
|
+
resourceInputs["description"] = state?.description;
|
|
38
|
+
resourceInputs["name"] = state?.name;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
const args = argsOrState;
|
|
42
|
+
if (args?.category === undefined && !opts.urn) {
|
|
43
|
+
throw new Error("Missing required property 'category'");
|
|
44
|
+
}
|
|
45
|
+
if (args?.description === undefined && !opts.urn) {
|
|
46
|
+
throw new Error("Missing required property 'description'");
|
|
47
|
+
}
|
|
48
|
+
resourceInputs["category"] = args?.category;
|
|
49
|
+
resourceInputs["description"] = args?.description;
|
|
50
|
+
resourceInputs["name"] = args?.name;
|
|
51
|
+
}
|
|
52
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
53
|
+
super(Status.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.Status = Status;
|
|
57
|
+
/** @internal */
|
|
58
|
+
Status.__pulumiType = 'incident:index/status:Status';
|
|
59
|
+
//# sourceMappingURL=status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../status.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC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|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.output = exports.input = void 0;
|
|
6
|
+
// Export sub-modules:
|
|
7
|
+
const input = require("./input");
|
|
8
|
+
exports.input = input;
|
|
9
|
+
const output = require("./output");
|
|
10
|
+
exports.output = output;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|