@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
package/README.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
> This provider is a derived work of the [Terraform Provider](https://github.com/incident-io/terraform-provider-incident)
|
|
2
|
+
> distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,
|
|
3
|
+
> please consult the source [`terraform-provider-incident` repo](https://github.com/incident-io/terraform-provider-incident/issues).
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class AlertAttribute extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing AlertAttribute 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?: AlertAttributeState, opts?: pulumi.CustomResourceOptions): AlertAttribute;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if the given object is an instance of AlertAttribute. 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 AlertAttribute;
|
|
18
|
+
/**
|
|
19
|
+
* Whether this attribute is an array
|
|
20
|
+
*/
|
|
21
|
+
readonly array: pulumi.Output<boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* The emoji to display alongside this attribute in chat messages, stored without colons
|
|
24
|
+
*/
|
|
25
|
+
readonly emoji: pulumi.Output<string | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Unique name of this attribute
|
|
28
|
+
*/
|
|
29
|
+
readonly name: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Whether this attribute is required. If this field is not set, the existing setting will be preserved.
|
|
32
|
+
*/
|
|
33
|
+
readonly required: pulumi.Output<boolean>;
|
|
34
|
+
/**
|
|
35
|
+
* Engine resource name for this attribute
|
|
36
|
+
*/
|
|
37
|
+
readonly type: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Create a AlertAttribute resource with the given unique name, arguments, and options.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resource.
|
|
42
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
43
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
44
|
+
*/
|
|
45
|
+
constructor(name: string, args: AlertAttributeArgs, opts?: pulumi.CustomResourceOptions);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Input properties used for looking up and filtering AlertAttribute resources.
|
|
49
|
+
*/
|
|
50
|
+
export interface AlertAttributeState {
|
|
51
|
+
/**
|
|
52
|
+
* Whether this attribute is an array
|
|
53
|
+
*/
|
|
54
|
+
array?: pulumi.Input<boolean>;
|
|
55
|
+
/**
|
|
56
|
+
* The emoji to display alongside this attribute in chat messages, stored without colons
|
|
57
|
+
*/
|
|
58
|
+
emoji?: pulumi.Input<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Unique name of this attribute
|
|
61
|
+
*/
|
|
62
|
+
name?: pulumi.Input<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Whether this attribute is required. If this field is not set, the existing setting will be preserved.
|
|
65
|
+
*/
|
|
66
|
+
required?: pulumi.Input<boolean>;
|
|
67
|
+
/**
|
|
68
|
+
* Engine resource name for this attribute
|
|
69
|
+
*/
|
|
70
|
+
type?: pulumi.Input<string>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The set of arguments for constructing a AlertAttribute resource.
|
|
74
|
+
*/
|
|
75
|
+
export interface AlertAttributeArgs {
|
|
76
|
+
/**
|
|
77
|
+
* Whether this attribute is an array
|
|
78
|
+
*/
|
|
79
|
+
array: pulumi.Input<boolean>;
|
|
80
|
+
/**
|
|
81
|
+
* The emoji to display alongside this attribute in chat messages, stored without colons
|
|
82
|
+
*/
|
|
83
|
+
emoji?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Unique name of this attribute
|
|
86
|
+
*/
|
|
87
|
+
name?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Whether this attribute is required. If this field is not set, the existing setting will be preserved.
|
|
90
|
+
*/
|
|
91
|
+
required?: pulumi.Input<boolean>;
|
|
92
|
+
/**
|
|
93
|
+
* Engine resource name for this attribute
|
|
94
|
+
*/
|
|
95
|
+
type: pulumi.Input<string>;
|
|
96
|
+
}
|
|
@@ -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.AlertAttribute = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class AlertAttribute extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing AlertAttribute 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 AlertAttribute(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of AlertAttribute. 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'] === AlertAttribute.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["array"] = state?.array;
|
|
37
|
+
resourceInputs["emoji"] = state?.emoji;
|
|
38
|
+
resourceInputs["name"] = state?.name;
|
|
39
|
+
resourceInputs["required"] = state?.required;
|
|
40
|
+
resourceInputs["type"] = state?.type;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
const args = argsOrState;
|
|
44
|
+
if (args?.array === undefined && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'array'");
|
|
46
|
+
}
|
|
47
|
+
if (args?.type === undefined && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'type'");
|
|
49
|
+
}
|
|
50
|
+
resourceInputs["array"] = args?.array;
|
|
51
|
+
resourceInputs["emoji"] = args?.emoji;
|
|
52
|
+
resourceInputs["name"] = args?.name;
|
|
53
|
+
resourceInputs["required"] = args?.required;
|
|
54
|
+
resourceInputs["type"] = args?.type;
|
|
55
|
+
}
|
|
56
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
57
|
+
super(AlertAttribute.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.AlertAttribute = AlertAttribute;
|
|
61
|
+
/** @internal */
|
|
62
|
+
AlertAttribute.__pulumiType = 'incident:index/alertAttribute:AlertAttribute';
|
|
63
|
+
//# sourceMappingURL=alertAttribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alertAttribute.js","sourceRoot":"","sources":["../alertAttribute.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,OAAO,CAAC,GAA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
|
|
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 AlertRoute extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing AlertRoute 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?: AlertRouteState, opts?: pulumi.CustomResourceOptions): AlertRoute;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of AlertRoute. 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 AlertRoute;
|
|
20
|
+
/**
|
|
21
|
+
* Which alert sources should this alert route match?
|
|
22
|
+
*/
|
|
23
|
+
readonly alertSources: pulumi.Output<outputs.AlertRouteAlertSource[]>;
|
|
24
|
+
/**
|
|
25
|
+
* The channel configuration for this alert route
|
|
26
|
+
*/
|
|
27
|
+
readonly channelConfigs: pulumi.Output<outputs.AlertRouteChannelConfig[] | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Groups of prerequisite conditions. All conditions in at least one group must be satisfied
|
|
30
|
+
*/
|
|
31
|
+
readonly conditionGroups: pulumi.Output<outputs.AlertRouteConditionGroup[]>;
|
|
32
|
+
/**
|
|
33
|
+
* Whether this alert route is enabled or not
|
|
34
|
+
*/
|
|
35
|
+
readonly enabled: pulumi.Output<boolean>;
|
|
36
|
+
readonly escalationConfig: pulumi.Output<outputs.AlertRouteEscalationConfig>;
|
|
37
|
+
/**
|
|
38
|
+
* The expressions to be prepared for use by steps and conditions
|
|
39
|
+
*/
|
|
40
|
+
readonly expressions: pulumi.Output<outputs.AlertRouteExpression[]>;
|
|
41
|
+
readonly incidentConfig: pulumi.Output<outputs.AlertRouteIncidentConfig>;
|
|
42
|
+
readonly incidentTemplate: pulumi.Output<outputs.AlertRouteIncidentTemplate>;
|
|
43
|
+
/**
|
|
44
|
+
* Whether this alert route is private. Private alert routes will only create private incidents from alerts.
|
|
45
|
+
*/
|
|
46
|
+
readonly isPrivate: pulumi.Output<boolean>;
|
|
47
|
+
readonly messageTemplate: pulumi.Output<outputs.AlertRouteMessageTemplate | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* The name of this alert route config, for the user's reference
|
|
50
|
+
*/
|
|
51
|
+
readonly name: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* IDs of teams that own this alert route
|
|
54
|
+
*/
|
|
55
|
+
readonly owningTeamIds: pulumi.Output<string[] | undefined>;
|
|
56
|
+
/**
|
|
57
|
+
* Create a AlertRoute resource with the given unique name, arguments, and options.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resource.
|
|
60
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
61
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
62
|
+
*/
|
|
63
|
+
constructor(name: string, args: AlertRouteArgs, opts?: pulumi.CustomResourceOptions);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Input properties used for looking up and filtering AlertRoute resources.
|
|
67
|
+
*/
|
|
68
|
+
export interface AlertRouteState {
|
|
69
|
+
/**
|
|
70
|
+
* Which alert sources should this alert route match?
|
|
71
|
+
*/
|
|
72
|
+
alertSources?: pulumi.Input<pulumi.Input<inputs.AlertRouteAlertSource>[]>;
|
|
73
|
+
/**
|
|
74
|
+
* The channel configuration for this alert route
|
|
75
|
+
*/
|
|
76
|
+
channelConfigs?: pulumi.Input<pulumi.Input<inputs.AlertRouteChannelConfig>[]>;
|
|
77
|
+
/**
|
|
78
|
+
* Groups of prerequisite conditions. All conditions in at least one group must be satisfied
|
|
79
|
+
*/
|
|
80
|
+
conditionGroups?: pulumi.Input<pulumi.Input<inputs.AlertRouteConditionGroup>[]>;
|
|
81
|
+
/**
|
|
82
|
+
* Whether this alert route is enabled or not
|
|
83
|
+
*/
|
|
84
|
+
enabled?: pulumi.Input<boolean>;
|
|
85
|
+
escalationConfig?: pulumi.Input<inputs.AlertRouteEscalationConfig>;
|
|
86
|
+
/**
|
|
87
|
+
* The expressions to be prepared for use by steps and conditions
|
|
88
|
+
*/
|
|
89
|
+
expressions?: pulumi.Input<pulumi.Input<inputs.AlertRouteExpression>[]>;
|
|
90
|
+
incidentConfig?: pulumi.Input<inputs.AlertRouteIncidentConfig>;
|
|
91
|
+
incidentTemplate?: pulumi.Input<inputs.AlertRouteIncidentTemplate>;
|
|
92
|
+
/**
|
|
93
|
+
* Whether this alert route is private. Private alert routes will only create private incidents from alerts.
|
|
94
|
+
*/
|
|
95
|
+
isPrivate?: pulumi.Input<boolean>;
|
|
96
|
+
messageTemplate?: pulumi.Input<inputs.AlertRouteMessageTemplate>;
|
|
97
|
+
/**
|
|
98
|
+
* The name of this alert route config, for the user's reference
|
|
99
|
+
*/
|
|
100
|
+
name?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* IDs of teams that own this alert route
|
|
103
|
+
*/
|
|
104
|
+
owningTeamIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* The set of arguments for constructing a AlertRoute resource.
|
|
108
|
+
*/
|
|
109
|
+
export interface AlertRouteArgs {
|
|
110
|
+
/**
|
|
111
|
+
* Which alert sources should this alert route match?
|
|
112
|
+
*/
|
|
113
|
+
alertSources: pulumi.Input<pulumi.Input<inputs.AlertRouteAlertSource>[]>;
|
|
114
|
+
/**
|
|
115
|
+
* The channel configuration for this alert route
|
|
116
|
+
*/
|
|
117
|
+
channelConfigs?: pulumi.Input<pulumi.Input<inputs.AlertRouteChannelConfig>[]>;
|
|
118
|
+
/**
|
|
119
|
+
* Groups of prerequisite conditions. All conditions in at least one group must be satisfied
|
|
120
|
+
*/
|
|
121
|
+
conditionGroups: pulumi.Input<pulumi.Input<inputs.AlertRouteConditionGroup>[]>;
|
|
122
|
+
/**
|
|
123
|
+
* Whether this alert route is enabled or not
|
|
124
|
+
*/
|
|
125
|
+
enabled: pulumi.Input<boolean>;
|
|
126
|
+
escalationConfig: pulumi.Input<inputs.AlertRouteEscalationConfig>;
|
|
127
|
+
/**
|
|
128
|
+
* The expressions to be prepared for use by steps and conditions
|
|
129
|
+
*/
|
|
130
|
+
expressions: pulumi.Input<pulumi.Input<inputs.AlertRouteExpression>[]>;
|
|
131
|
+
incidentConfig: pulumi.Input<inputs.AlertRouteIncidentConfig>;
|
|
132
|
+
incidentTemplate: pulumi.Input<inputs.AlertRouteIncidentTemplate>;
|
|
133
|
+
/**
|
|
134
|
+
* Whether this alert route is private. Private alert routes will only create private incidents from alerts.
|
|
135
|
+
*/
|
|
136
|
+
isPrivate: pulumi.Input<boolean>;
|
|
137
|
+
messageTemplate?: pulumi.Input<inputs.AlertRouteMessageTemplate>;
|
|
138
|
+
/**
|
|
139
|
+
* The name of this alert route config, for the user's reference
|
|
140
|
+
*/
|
|
141
|
+
name?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* IDs of teams that own this alert route
|
|
144
|
+
*/
|
|
145
|
+
owningTeamIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
146
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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.AlertRoute = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class AlertRoute extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing AlertRoute 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 AlertRoute(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of AlertRoute. 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'] === AlertRoute.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["alertSources"] = state?.alertSources;
|
|
37
|
+
resourceInputs["channelConfigs"] = state?.channelConfigs;
|
|
38
|
+
resourceInputs["conditionGroups"] = state?.conditionGroups;
|
|
39
|
+
resourceInputs["enabled"] = state?.enabled;
|
|
40
|
+
resourceInputs["escalationConfig"] = state?.escalationConfig;
|
|
41
|
+
resourceInputs["expressions"] = state?.expressions;
|
|
42
|
+
resourceInputs["incidentConfig"] = state?.incidentConfig;
|
|
43
|
+
resourceInputs["incidentTemplate"] = state?.incidentTemplate;
|
|
44
|
+
resourceInputs["isPrivate"] = state?.isPrivate;
|
|
45
|
+
resourceInputs["messageTemplate"] = state?.messageTemplate;
|
|
46
|
+
resourceInputs["name"] = state?.name;
|
|
47
|
+
resourceInputs["owningTeamIds"] = state?.owningTeamIds;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
const args = argsOrState;
|
|
51
|
+
if (args?.alertSources === undefined && !opts.urn) {
|
|
52
|
+
throw new Error("Missing required property 'alertSources'");
|
|
53
|
+
}
|
|
54
|
+
if (args?.conditionGroups === undefined && !opts.urn) {
|
|
55
|
+
throw new Error("Missing required property 'conditionGroups'");
|
|
56
|
+
}
|
|
57
|
+
if (args?.enabled === undefined && !opts.urn) {
|
|
58
|
+
throw new Error("Missing required property 'enabled'");
|
|
59
|
+
}
|
|
60
|
+
if (args?.escalationConfig === undefined && !opts.urn) {
|
|
61
|
+
throw new Error("Missing required property 'escalationConfig'");
|
|
62
|
+
}
|
|
63
|
+
if (args?.expressions === undefined && !opts.urn) {
|
|
64
|
+
throw new Error("Missing required property 'expressions'");
|
|
65
|
+
}
|
|
66
|
+
if (args?.incidentConfig === undefined && !opts.urn) {
|
|
67
|
+
throw new Error("Missing required property 'incidentConfig'");
|
|
68
|
+
}
|
|
69
|
+
if (args?.incidentTemplate === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'incidentTemplate'");
|
|
71
|
+
}
|
|
72
|
+
if (args?.isPrivate === undefined && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'isPrivate'");
|
|
74
|
+
}
|
|
75
|
+
resourceInputs["alertSources"] = args?.alertSources;
|
|
76
|
+
resourceInputs["channelConfigs"] = args?.channelConfigs;
|
|
77
|
+
resourceInputs["conditionGroups"] = args?.conditionGroups;
|
|
78
|
+
resourceInputs["enabled"] = args?.enabled;
|
|
79
|
+
resourceInputs["escalationConfig"] = args?.escalationConfig;
|
|
80
|
+
resourceInputs["expressions"] = args?.expressions;
|
|
81
|
+
resourceInputs["incidentConfig"] = args?.incidentConfig;
|
|
82
|
+
resourceInputs["incidentTemplate"] = args?.incidentTemplate;
|
|
83
|
+
resourceInputs["isPrivate"] = args?.isPrivate;
|
|
84
|
+
resourceInputs["messageTemplate"] = args?.messageTemplate;
|
|
85
|
+
resourceInputs["name"] = args?.name;
|
|
86
|
+
resourceInputs["owningTeamIds"] = args?.owningTeamIds;
|
|
87
|
+
}
|
|
88
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
89
|
+
super(AlertRoute.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.AlertRoute = AlertRoute;
|
|
93
|
+
/** @internal */
|
|
94
|
+
AlertRoute.__pulumiType = 'incident:index/alertRoute:AlertRoute';
|
|
95
|
+
//# sourceMappingURL=alertRoute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alertRoute.js","sourceRoot":"","sources":["../alertRoute.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IA+CD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,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,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IAC7G,CAAC;;AAnIL,gCAoIC;AAtHG,gBAAgB;AACO,uBAAY,GAAG,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
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 AlertSource extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing AlertSource 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?: AlertSourceState, opts?: pulumi.CustomResourceOptions): AlertSource;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of AlertSource. 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 AlertSource;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to auto-resolve incident alerts when the alert auto-resolves. Defaults to true.
|
|
22
|
+
*/
|
|
23
|
+
readonly autoResolveIncidentAlerts: pulumi.Output<boolean>;
|
|
24
|
+
/**
|
|
25
|
+
* When set, alerts from this source will automatically resolve after this many minutes.
|
|
26
|
+
*/
|
|
27
|
+
readonly autoResolveTimeoutMinutes: pulumi.Output<number | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Email address this alert source receives alerts to
|
|
30
|
+
*/
|
|
31
|
+
readonly emailAddress: pulumi.Output<string>;
|
|
32
|
+
readonly httpCustomOptions: pulumi.Output<outputs.AlertSourceHttpCustomOptions | undefined>;
|
|
33
|
+
readonly jiraOptions: pulumi.Output<outputs.AlertSourceJiraOptions | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* Unique name of the alert source
|
|
36
|
+
*/
|
|
37
|
+
readonly name: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* IDs of teams that own this alert source
|
|
40
|
+
*/
|
|
41
|
+
readonly owningTeamIds: pulumi.Output<string[] | undefined>;
|
|
42
|
+
/**
|
|
43
|
+
* Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source.
|
|
44
|
+
*/
|
|
45
|
+
readonly secretToken: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Type of alert source
|
|
48
|
+
*/
|
|
49
|
+
readonly sourceType: pulumi.Output<string>;
|
|
50
|
+
readonly template: pulumi.Output<outputs.AlertSourceTemplate>;
|
|
51
|
+
/**
|
|
52
|
+
* Create a AlertSource resource with the given unique name, arguments, and options.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resource.
|
|
55
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
56
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
57
|
+
*/
|
|
58
|
+
constructor(name: string, args: AlertSourceArgs, opts?: pulumi.CustomResourceOptions);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Input properties used for looking up and filtering AlertSource resources.
|
|
62
|
+
*/
|
|
63
|
+
export interface AlertSourceState {
|
|
64
|
+
/**
|
|
65
|
+
* Whether to auto-resolve incident alerts when the alert auto-resolves. Defaults to true.
|
|
66
|
+
*/
|
|
67
|
+
autoResolveIncidentAlerts?: pulumi.Input<boolean>;
|
|
68
|
+
/**
|
|
69
|
+
* When set, alerts from this source will automatically resolve after this many minutes.
|
|
70
|
+
*/
|
|
71
|
+
autoResolveTimeoutMinutes?: pulumi.Input<number>;
|
|
72
|
+
/**
|
|
73
|
+
* Email address this alert source receives alerts to
|
|
74
|
+
*/
|
|
75
|
+
emailAddress?: pulumi.Input<string>;
|
|
76
|
+
httpCustomOptions?: pulumi.Input<inputs.AlertSourceHttpCustomOptions>;
|
|
77
|
+
jiraOptions?: pulumi.Input<inputs.AlertSourceJiraOptions>;
|
|
78
|
+
/**
|
|
79
|
+
* Unique name of the alert source
|
|
80
|
+
*/
|
|
81
|
+
name?: pulumi.Input<string>;
|
|
82
|
+
/**
|
|
83
|
+
* IDs of teams that own this alert source
|
|
84
|
+
*/
|
|
85
|
+
owningTeamIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
86
|
+
/**
|
|
87
|
+
* Secret token used to authenticate this source, if applicable. If applicable, this is the token that must be included in either the query string or the 'Authorization' header when sending events to this alert source.
|
|
88
|
+
*/
|
|
89
|
+
secretToken?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Type of alert source
|
|
92
|
+
*/
|
|
93
|
+
sourceType?: pulumi.Input<string>;
|
|
94
|
+
template?: pulumi.Input<inputs.AlertSourceTemplate>;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The set of arguments for constructing a AlertSource resource.
|
|
98
|
+
*/
|
|
99
|
+
export interface AlertSourceArgs {
|
|
100
|
+
/**
|
|
101
|
+
* Whether to auto-resolve incident alerts when the alert auto-resolves. Defaults to true.
|
|
102
|
+
*/
|
|
103
|
+
autoResolveIncidentAlerts?: pulumi.Input<boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* When set, alerts from this source will automatically resolve after this many minutes.
|
|
106
|
+
*/
|
|
107
|
+
autoResolveTimeoutMinutes?: pulumi.Input<number>;
|
|
108
|
+
/**
|
|
109
|
+
* Email address this alert source receives alerts to
|
|
110
|
+
*/
|
|
111
|
+
emailAddress?: pulumi.Input<string>;
|
|
112
|
+
httpCustomOptions?: pulumi.Input<inputs.AlertSourceHttpCustomOptions>;
|
|
113
|
+
jiraOptions?: pulumi.Input<inputs.AlertSourceJiraOptions>;
|
|
114
|
+
/**
|
|
115
|
+
* Unique name of the alert source
|
|
116
|
+
*/
|
|
117
|
+
name?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* IDs of teams that own this alert source
|
|
120
|
+
*/
|
|
121
|
+
owningTeamIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
122
|
+
/**
|
|
123
|
+
* Type of alert source
|
|
124
|
+
*/
|
|
125
|
+
sourceType: pulumi.Input<string>;
|
|
126
|
+
template: pulumi.Input<inputs.AlertSourceTemplate>;
|
|
127
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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.AlertSource = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class AlertSource extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing AlertSource 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 AlertSource(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of AlertSource. 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'] === AlertSource.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["autoResolveIncidentAlerts"] = state?.autoResolveIncidentAlerts;
|
|
37
|
+
resourceInputs["autoResolveTimeoutMinutes"] = state?.autoResolveTimeoutMinutes;
|
|
38
|
+
resourceInputs["emailAddress"] = state?.emailAddress;
|
|
39
|
+
resourceInputs["httpCustomOptions"] = state?.httpCustomOptions;
|
|
40
|
+
resourceInputs["jiraOptions"] = state?.jiraOptions;
|
|
41
|
+
resourceInputs["name"] = state?.name;
|
|
42
|
+
resourceInputs["owningTeamIds"] = state?.owningTeamIds;
|
|
43
|
+
resourceInputs["secretToken"] = state?.secretToken;
|
|
44
|
+
resourceInputs["sourceType"] = state?.sourceType;
|
|
45
|
+
resourceInputs["template"] = state?.template;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
const args = argsOrState;
|
|
49
|
+
if (args?.sourceType === undefined && !opts.urn) {
|
|
50
|
+
throw new Error("Missing required property 'sourceType'");
|
|
51
|
+
}
|
|
52
|
+
if (args?.template === undefined && !opts.urn) {
|
|
53
|
+
throw new Error("Missing required property 'template'");
|
|
54
|
+
}
|
|
55
|
+
resourceInputs["autoResolveIncidentAlerts"] = args?.autoResolveIncidentAlerts;
|
|
56
|
+
resourceInputs["autoResolveTimeoutMinutes"] = args?.autoResolveTimeoutMinutes;
|
|
57
|
+
resourceInputs["emailAddress"] = args?.emailAddress;
|
|
58
|
+
resourceInputs["httpCustomOptions"] = args?.httpCustomOptions;
|
|
59
|
+
resourceInputs["jiraOptions"] = args?.jiraOptions;
|
|
60
|
+
resourceInputs["name"] = args?.name;
|
|
61
|
+
resourceInputs["owningTeamIds"] = args?.owningTeamIds;
|
|
62
|
+
resourceInputs["sourceType"] = args?.sourceType;
|
|
63
|
+
resourceInputs["template"] = args?.template;
|
|
64
|
+
resourceInputs["secretToken"] = undefined /*out*/;
|
|
65
|
+
}
|
|
66
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
67
|
+
super(AlertSource.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.AlertSource = AlertSource;
|
|
71
|
+
/** @internal */
|
|
72
|
+
AlertSource.__pulumiType = 'incident:index/alertSource:AlertSource';
|
|
73
|
+
//# sourceMappingURL=alertSource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alertSource.js","sourceRoot":"","sources":["../alertSource.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,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