@ryan-pip/pulumi_astronomer 1.2.6 → 1.5.2
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/alert.d.ts +3 -1
- package/alert.d.ts.map +1 -1
- package/alert.js +3 -1
- package/alert.js.map +1 -1
- package/alerts.d.ts +141 -0
- package/alerts.d.ts.map +1 -0
- package/alerts.js +159 -0
- package/alerts.js.map +1 -0
- package/allowedIpAddressRanges.d.ts +84 -0
- package/allowedIpAddressRanges.d.ts.map +1 -0
- package/allowedIpAddressRanges.js +110 -0
- package/allowedIpAddressRanges.js.map +1 -0
- package/cluster.d.ts +42 -6
- package/cluster.d.ts.map +1 -1
- package/cluster.js +6 -0
- package/cluster.js.map +1 -1
- package/deployment.d.ts +4 -4
- package/deployment.d.ts.map +1 -1
- package/environmentObject.d.ts +410 -0
- package/environmentObject.d.ts.map +1 -0
- package/environmentObject.js +151 -0
- package/environmentObject.js.map +1 -0
- package/getAlerts.d.ts +0 -4
- package/getAlerts.d.ts.map +1 -1
- package/getAlerts.js.map +1 -1
- package/getApiTokens.d.ts +0 -4
- package/getApiTokens.d.ts.map +1 -1
- package/getApiTokens.js.map +1 -1
- package/getCluster.d.ts +13 -1
- package/getCluster.d.ts.map +1 -1
- package/getCluster.js.map +1 -1
- package/getClusterOptions.d.ts +0 -4
- package/getClusterOptions.d.ts.map +1 -1
- package/getClusterOptions.js.map +1 -1
- package/getClusters.d.ts +0 -4
- package/getClusters.d.ts.map +1 -1
- package/getClusters.js.map +1 -1
- package/getDeploymentOptions.d.ts +0 -4
- package/getDeploymentOptions.d.ts.map +1 -1
- package/getDeploymentOptions.js.map +1 -1
- package/getDeployments.d.ts +0 -4
- package/getDeployments.d.ts.map +1 -1
- package/getDeployments.js.map +1 -1
- package/getEnvironmentObject.d.ts +194 -0
- package/getEnvironmentObject.d.ts.map +1 -0
- package/getEnvironmentObject.js +75 -0
- package/getEnvironmentObject.js.map +1 -0
- package/getEnvironmentObjects.d.ts +173 -0
- package/getEnvironmentObjects.d.ts.map +1 -0
- package/getEnvironmentObjects.js +137 -0
- package/getEnvironmentObjects.js.map +1 -0
- package/getNotificationChannels.d.ts +0 -4
- package/getNotificationChannels.d.ts.map +1 -1
- package/getNotificationChannels.js.map +1 -1
- package/getTeams.d.ts +0 -4
- package/getTeams.d.ts.map +1 -1
- package/getTeams.js.map +1 -1
- package/getUsers.d.ts +2 -6
- package/getUsers.d.ts.map +1 -1
- package/getUsers.js +2 -2
- package/getUsers.js.map +1 -1
- package/getUsersList.d.ts +71 -0
- package/getUsersList.d.ts.map +1 -0
- package/getUsersList.js +93 -0
- package/getUsersList.js.map +1 -0
- package/getWorkspaces.d.ts +0 -4
- package/getWorkspaces.d.ts.map +1 -1
- package/getWorkspaces.js.map +1 -1
- package/index.d.ts +18 -0
- package/index.d.ts.map +1 -1
- package/index.js +26 -2
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/types/input.d.ts +266 -0
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +934 -70
- package/types/output.d.ts.map +1 -1
package/alert.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Manage a single alert.
|
|
6
|
+
*
|
|
7
|
+
* > **Deprecated** Use the `astronomer.Alerts` resource instead, which manages one or many alerts in a single resource. Do not manage the same alert with both `astronomer.Alert` and `astronomer.Alerts` — they conflict on every apply.
|
|
6
8
|
*/
|
|
7
9
|
export declare class Alert extends pulumi.CustomResource {
|
|
8
10
|
/**
|
package/alert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../alert.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM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AAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC7D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B"}
|
package/alert.js
CHANGED
|
@@ -29,7 +29,9 @@ exports.Alert = void 0;
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("./utilities"));
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Manage a single alert.
|
|
33
|
+
*
|
|
34
|
+
* > **Deprecated** Use the `astronomer.Alerts` resource instead, which manages one or many alerts in a single resource. Do not manage the same alert with both `astronomer.Alert` and `astronomer.Alerts` — they conflict on every apply.
|
|
33
35
|
*/
|
|
34
36
|
class Alert extends pulumi.CustomResource {
|
|
35
37
|
/**
|
package/alert.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../alert.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../alert.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;GAIG;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141 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manage a collection of alerts as a single resource. The resource batches create/update/delete calls and automatically chunks requests that exceed the API's per-request limits (30 for create/update, 20 for delete).
|
|
6
|
+
*
|
|
7
|
+
* > **Note** Do not manage the same alert with both `astronomer.Alert` and `astronomer.Alerts`. Each resource claims ownership of the alerts it manages, so overlapping definitions conflict and cause churn on every apply. Use one resource or the other for a given alert.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as astronomer from "@ryan-pip/pulumi_astronomer";
|
|
14
|
+
* import * as std from "@pulumi/std";
|
|
15
|
+
*
|
|
16
|
+
* // The astro_alerts resource manages many alerts as a single resource. It batches the underlying
|
|
17
|
+
* // API calls and automatically chunks requests that exceed the per-request limits (30 for
|
|
18
|
+
* // create/update, 20 for delete), so you can declare any number of alerts in one block.
|
|
19
|
+
* //
|
|
20
|
+
* // Alerts are keyed by a stable, user-defined string. Changing a key is treated as deleting the old
|
|
21
|
+
* // alert and creating a new one.
|
|
22
|
+
* const teamAlerts = new astronomer.Alerts("team_alerts", {alerts: {
|
|
23
|
+
* etl_dag_failure: {
|
|
24
|
+
* name: "ETL DAG Failure",
|
|
25
|
+
* type: "DAG_FAILURE",
|
|
26
|
+
* severity: "CRITICAL",
|
|
27
|
+
* entityType: "DEPLOYMENT",
|
|
28
|
+
* entityId: "cm1zkps2a0cv301ph39benet6",
|
|
29
|
+
* notificationChannelIds: ["cm4nwrvyg024h01mk2dn58m5s"],
|
|
30
|
+
* rules: {
|
|
31
|
+
* properties: {
|
|
32
|
+
* deploymentId: "cm1zkps2a0cv301ph39benet6",
|
|
33
|
+
* },
|
|
34
|
+
* patternMatches: [{
|
|
35
|
+
* entityType: "DAG_ID",
|
|
36
|
+
* operatorType: "IS",
|
|
37
|
+
* values: ["etl_dag"],
|
|
38
|
+
* }],
|
|
39
|
+
* },
|
|
40
|
+
* },
|
|
41
|
+
* reporting_dag_duration: {
|
|
42
|
+
* name: "Reporting DAG Duration",
|
|
43
|
+
* type: "DAG_DURATION",
|
|
44
|
+
* severity: "WARNING",
|
|
45
|
+
* entityType: "DEPLOYMENT",
|
|
46
|
+
* entityId: "cm1zkps2a0cv301ph39benet6",
|
|
47
|
+
* notificationChannelIds: ["cm4nwrvyg024h01mk2dn58m5s"],
|
|
48
|
+
* rules: {
|
|
49
|
+
* properties: {
|
|
50
|
+
* deploymentId: "cm1zkps2a0cv301ph39benet6",
|
|
51
|
+
* dagDurationSeconds: 3600,
|
|
52
|
+
* },
|
|
53
|
+
* patternMatches: [{
|
|
54
|
+
* entityType: "DAG_ID",
|
|
55
|
+
* operatorType: "IS",
|
|
56
|
+
* values: ["reporting_dag"],
|
|
57
|
+
* }],
|
|
58
|
+
* },
|
|
59
|
+
* },
|
|
60
|
+
* }});
|
|
61
|
+
* // Generate many alerts programmatically — the resource chunks them across requests for you.
|
|
62
|
+
* const perDagFailureAlerts = new astronomer.Alerts("per_dag_failure_alerts", {alerts: std.toset({
|
|
63
|
+
* input: [
|
|
64
|
+
* "a",
|
|
65
|
+
* "b",
|
|
66
|
+
* "c",
|
|
67
|
+
* ],
|
|
68
|
+
* }).then(invoke => .reduce((__obj, dag) => ({ ...__obj, [`${dag}_failure`]: {
|
|
69
|
+
* name: `${dag} DAG Failure`,
|
|
70
|
+
* type: "DAG_FAILURE",
|
|
71
|
+
* severity: "CRITICAL",
|
|
72
|
+
* entityType: "DEPLOYMENT",
|
|
73
|
+
* entityId: "cm1zkps2a0cv301ph39benet6",
|
|
74
|
+
* notificationChannelIds: ["cm4nwrvyg024h01mk2dn58m5s"],
|
|
75
|
+
* rules: {
|
|
76
|
+
* properties: {
|
|
77
|
+
* deploymentId: "cm1zkps2a0cv301ph39benet6",
|
|
78
|
+
* },
|
|
79
|
+
* patternMatches: [{
|
|
80
|
+
* entityType: "DAG_ID",
|
|
81
|
+
* operatorType: "IS",
|
|
82
|
+
* values: [dag],
|
|
83
|
+
* }],
|
|
84
|
+
* },
|
|
85
|
+
* } }), {}))});
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
export declare class Alerts extends pulumi.CustomResource {
|
|
89
|
+
/**
|
|
90
|
+
* Get an existing Alerts resource's state with the given name, ID, and optional extra
|
|
91
|
+
* properties used to qualify the lookup.
|
|
92
|
+
*
|
|
93
|
+
* @param name The _unique_ name of the resulting resource.
|
|
94
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
95
|
+
* @param state Any extra arguments used during the lookup.
|
|
96
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
97
|
+
*/
|
|
98
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlertsState, opts?: pulumi.CustomResourceOptions): Alerts;
|
|
99
|
+
/**
|
|
100
|
+
* Returns true if the given object is an instance of Alerts. This is designed to work even
|
|
101
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
102
|
+
*/
|
|
103
|
+
static isInstance(obj: any): obj is Alerts;
|
|
104
|
+
/**
|
|
105
|
+
* A map of alerts to manage as a single resource, keyed by a stable user-defined string.
|
|
106
|
+
*/
|
|
107
|
+
readonly alerts: pulumi.Output<{
|
|
108
|
+
[key: string]: outputs.AlertsAlerts;
|
|
109
|
+
}>;
|
|
110
|
+
/**
|
|
111
|
+
* Create a Alerts resource with the given unique name, arguments, and options.
|
|
112
|
+
*
|
|
113
|
+
* @param name The _unique_ name of the resource.
|
|
114
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
115
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
116
|
+
*/
|
|
117
|
+
constructor(name: string, args: AlertsArgs, opts?: pulumi.CustomResourceOptions);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Input properties used for looking up and filtering Alerts resources.
|
|
121
|
+
*/
|
|
122
|
+
export interface AlertsState {
|
|
123
|
+
/**
|
|
124
|
+
* A map of alerts to manage as a single resource, keyed by a stable user-defined string.
|
|
125
|
+
*/
|
|
126
|
+
alerts?: pulumi.Input<{
|
|
127
|
+
[key: string]: pulumi.Input<inputs.AlertsAlerts>;
|
|
128
|
+
} | undefined>;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The set of arguments for constructing a Alerts resource.
|
|
132
|
+
*/
|
|
133
|
+
export interface AlertsArgs {
|
|
134
|
+
/**
|
|
135
|
+
* A map of alerts to manage as a single resource, keyed by a stable user-defined string.
|
|
136
|
+
*/
|
|
137
|
+
alerts: pulumi.Input<{
|
|
138
|
+
[key: string]: pulumi.Input<inputs.AlertsAlerts>;
|
|
139
|
+
}>;
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=alerts.d.ts.map
|
package/alerts.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../alerts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,qBAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,MAAM;IAO9H;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM;IAOjD;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAA;KAAC,CAAC,CAAC;IAErF;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAiBlF;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;KAAC,GAAG,SAAS,CAAC,CAAC;CACzF;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;KAAC,CAAC,CAAC;CAC5E"}
|
package/alerts.js
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
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.Alerts = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Manage a collection of alerts as a single resource. The resource batches create/update/delete calls and automatically chunks requests that exceed the API's per-request limits (30 for create/update, 20 for delete).
|
|
33
|
+
*
|
|
34
|
+
* > **Note** Do not manage the same alert with both `astronomer.Alert` and `astronomer.Alerts`. Each resource claims ownership of the alerts it manages, so overlapping definitions conflict and cause churn on every apply. Use one resource or the other for a given alert.
|
|
35
|
+
*
|
|
36
|
+
* ## Example Usage
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as astronomer from "@ryan-pip/pulumi_astronomer";
|
|
41
|
+
* import * as std from "@pulumi/std";
|
|
42
|
+
*
|
|
43
|
+
* // The astro_alerts resource manages many alerts as a single resource. It batches the underlying
|
|
44
|
+
* // API calls and automatically chunks requests that exceed the per-request limits (30 for
|
|
45
|
+
* // create/update, 20 for delete), so you can declare any number of alerts in one block.
|
|
46
|
+
* //
|
|
47
|
+
* // Alerts are keyed by a stable, user-defined string. Changing a key is treated as deleting the old
|
|
48
|
+
* // alert and creating a new one.
|
|
49
|
+
* const teamAlerts = new astronomer.Alerts("team_alerts", {alerts: {
|
|
50
|
+
* etl_dag_failure: {
|
|
51
|
+
* name: "ETL DAG Failure",
|
|
52
|
+
* type: "DAG_FAILURE",
|
|
53
|
+
* severity: "CRITICAL",
|
|
54
|
+
* entityType: "DEPLOYMENT",
|
|
55
|
+
* entityId: "cm1zkps2a0cv301ph39benet6",
|
|
56
|
+
* notificationChannelIds: ["cm4nwrvyg024h01mk2dn58m5s"],
|
|
57
|
+
* rules: {
|
|
58
|
+
* properties: {
|
|
59
|
+
* deploymentId: "cm1zkps2a0cv301ph39benet6",
|
|
60
|
+
* },
|
|
61
|
+
* patternMatches: [{
|
|
62
|
+
* entityType: "DAG_ID",
|
|
63
|
+
* operatorType: "IS",
|
|
64
|
+
* values: ["etl_dag"],
|
|
65
|
+
* }],
|
|
66
|
+
* },
|
|
67
|
+
* },
|
|
68
|
+
* reporting_dag_duration: {
|
|
69
|
+
* name: "Reporting DAG Duration",
|
|
70
|
+
* type: "DAG_DURATION",
|
|
71
|
+
* severity: "WARNING",
|
|
72
|
+
* entityType: "DEPLOYMENT",
|
|
73
|
+
* entityId: "cm1zkps2a0cv301ph39benet6",
|
|
74
|
+
* notificationChannelIds: ["cm4nwrvyg024h01mk2dn58m5s"],
|
|
75
|
+
* rules: {
|
|
76
|
+
* properties: {
|
|
77
|
+
* deploymentId: "cm1zkps2a0cv301ph39benet6",
|
|
78
|
+
* dagDurationSeconds: 3600,
|
|
79
|
+
* },
|
|
80
|
+
* patternMatches: [{
|
|
81
|
+
* entityType: "DAG_ID",
|
|
82
|
+
* operatorType: "IS",
|
|
83
|
+
* values: ["reporting_dag"],
|
|
84
|
+
* }],
|
|
85
|
+
* },
|
|
86
|
+
* },
|
|
87
|
+
* }});
|
|
88
|
+
* // Generate many alerts programmatically — the resource chunks them across requests for you.
|
|
89
|
+
* const perDagFailureAlerts = new astronomer.Alerts("per_dag_failure_alerts", {alerts: std.toset({
|
|
90
|
+
* input: [
|
|
91
|
+
* "a",
|
|
92
|
+
* "b",
|
|
93
|
+
* "c",
|
|
94
|
+
* ],
|
|
95
|
+
* }).then(invoke => .reduce((__obj, dag) => ({ ...__obj, [`${dag}_failure`]: {
|
|
96
|
+
* name: `${dag} DAG Failure`,
|
|
97
|
+
* type: "DAG_FAILURE",
|
|
98
|
+
* severity: "CRITICAL",
|
|
99
|
+
* entityType: "DEPLOYMENT",
|
|
100
|
+
* entityId: "cm1zkps2a0cv301ph39benet6",
|
|
101
|
+
* notificationChannelIds: ["cm4nwrvyg024h01mk2dn58m5s"],
|
|
102
|
+
* rules: {
|
|
103
|
+
* properties: {
|
|
104
|
+
* deploymentId: "cm1zkps2a0cv301ph39benet6",
|
|
105
|
+
* },
|
|
106
|
+
* patternMatches: [{
|
|
107
|
+
* entityType: "DAG_ID",
|
|
108
|
+
* operatorType: "IS",
|
|
109
|
+
* values: [dag],
|
|
110
|
+
* }],
|
|
111
|
+
* },
|
|
112
|
+
* } }), {}))});
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
class Alerts extends pulumi.CustomResource {
|
|
116
|
+
/**
|
|
117
|
+
* Get an existing Alerts resource's state with the given name, ID, and optional extra
|
|
118
|
+
* properties used to qualify the lookup.
|
|
119
|
+
*
|
|
120
|
+
* @param name The _unique_ name of the resulting resource.
|
|
121
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
122
|
+
* @param state Any extra arguments used during the lookup.
|
|
123
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
124
|
+
*/
|
|
125
|
+
static get(name, id, state, opts) {
|
|
126
|
+
return new Alerts(name, state, { ...opts, id: id });
|
|
127
|
+
}
|
|
128
|
+
/** @internal */
|
|
129
|
+
static __pulumiType = 'astronomer:index/alerts:Alerts';
|
|
130
|
+
/**
|
|
131
|
+
* Returns true if the given object is an instance of Alerts. This is designed to work even
|
|
132
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
133
|
+
*/
|
|
134
|
+
static isInstance(obj) {
|
|
135
|
+
if (obj === undefined || obj === null) {
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
return obj['__pulumiType'] === Alerts.__pulumiType;
|
|
139
|
+
}
|
|
140
|
+
constructor(name, argsOrState, opts) {
|
|
141
|
+
let resourceInputs = {};
|
|
142
|
+
opts = opts || {};
|
|
143
|
+
if (opts.id) {
|
|
144
|
+
const state = argsOrState;
|
|
145
|
+
resourceInputs["alerts"] = state?.alerts;
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
const args = argsOrState;
|
|
149
|
+
if (args?.alerts === undefined && !opts.urn) {
|
|
150
|
+
throw new Error("Missing required property 'alerts'");
|
|
151
|
+
}
|
|
152
|
+
resourceInputs["alerts"] = args?.alerts;
|
|
153
|
+
}
|
|
154
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
155
|
+
super(Alerts.__pulumiType, name, resourceInputs, opts);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
exports.Alerts = Alerts;
|
|
159
|
+
//# sourceMappingURL=alerts.js.map
|
package/alerts.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alerts.js","sourceRoot":"","sources":["../alerts.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,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;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,gCAAgC,CAAC;IAEvE;;;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;IAeD,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAAqC,CAAC;YACnD,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;SAC3C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAxDL,wBAyDC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manage an organization's IP access list as a single resource. This resource is authoritative: any allowed IP address ranges not present in `ipAddressRanges` are removed on apply.
|
|
4
|
+
*
|
|
5
|
+
* > **Warning: risk of lockout.** While the access list is empty, access is unrestricted. Adding the first range turns enforcement on, and the API will reject that first apply with a `400` unless the submitted ranges include the public IP address of the machine running Terraform (for example, a CI runner's egress IP). Once enforcement is on, the API does **not** protect you from removing the range that covers your own IP: doing so - or narrowing/replacing it so your IP is no longer covered - locks you (and this provider) out and will fail the apply mid-way. Always keep a range covering the machine that runs Terraform.
|
|
6
|
+
*
|
|
7
|
+
* > **Note** Do not manage the IP access list with more than one `astronomer.AllowedIpAddressRanges` resource. To adopt an access list that already exists, import it first (see below) rather than re-declaring it, otherwise the first apply will conflict with the existing ranges.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as astronomer from "@ryan-pip/pulumi_astronomer";
|
|
14
|
+
*
|
|
15
|
+
* // The astro_allowed_ip_address_ranges resource manages an organization's full IP access list as a
|
|
16
|
+
* // single resource. It is authoritative: any ranges not listed here are removed on apply.
|
|
17
|
+
* //
|
|
18
|
+
* // The resource batches the underlying create/delete calls and automatically chunks requests that
|
|
19
|
+
* // exceed the API's per-request limit (1000 CIDRs).
|
|
20
|
+
* const orgAllowList = new astronomer.AllowedIpAddressRanges("org_allow_list", {ipAddressRanges: [
|
|
21
|
+
* "203.0.113.0/24",
|
|
22
|
+
* "198.51.100.5/32",
|
|
23
|
+
* ]});
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* The IP access list is a singleton per organization. Import it using the organization ID; the
|
|
29
|
+
* provider reads the current set of ranges into ip_address_ranges. Import (rather than re-declaring)
|
|
30
|
+
* to adopt an access list that already exists, otherwise the first apply conflicts with the existing
|
|
31
|
+
* ranges.
|
|
32
|
+
*
|
|
33
|
+
* ```sh
|
|
34
|
+
* $ pulumi import astronomer:index/allowedIpAddressRanges:AllowedIpAddressRanges org_allow_list <organization_id>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare class AllowedIpAddressRanges extends pulumi.CustomResource {
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing AllowedIpAddressRanges resource's state with the given name, ID, and optional extra
|
|
40
|
+
* properties used to qualify the lookup.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resulting resource.
|
|
43
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
+
* @param state Any extra arguments used during the lookup.
|
|
45
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
+
*/
|
|
47
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AllowedIpAddressRangesState, opts?: pulumi.CustomResourceOptions): AllowedIpAddressRanges;
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of AllowedIpAddressRanges. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj: any): obj is AllowedIpAddressRanges;
|
|
53
|
+
/**
|
|
54
|
+
* The organization's allowed IP address ranges, in CIDR format (e.g. `203.0.113.0/24`). This resource authoritatively manages the organization's full IP access list - ranges not included here are removed on apply. An empty set removes all restrictions.
|
|
55
|
+
*/
|
|
56
|
+
readonly ipAddressRanges: pulumi.Output<string[]>;
|
|
57
|
+
/**
|
|
58
|
+
* Create a AllowedIpAddressRanges resource with the given unique name, arguments, and options.
|
|
59
|
+
*
|
|
60
|
+
* @param name The _unique_ name of the resource.
|
|
61
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
62
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
63
|
+
*/
|
|
64
|
+
constructor(name: string, args: AllowedIpAddressRangesArgs, opts?: pulumi.CustomResourceOptions);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Input properties used for looking up and filtering AllowedIpAddressRanges resources.
|
|
68
|
+
*/
|
|
69
|
+
export interface AllowedIpAddressRangesState {
|
|
70
|
+
/**
|
|
71
|
+
* The organization's allowed IP address ranges, in CIDR format (e.g. `203.0.113.0/24`). This resource authoritatively manages the organization's full IP access list - ranges not included here are removed on apply. An empty set removes all restrictions.
|
|
72
|
+
*/
|
|
73
|
+
ipAddressRanges?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The set of arguments for constructing a AllowedIpAddressRanges resource.
|
|
77
|
+
*/
|
|
78
|
+
export interface AllowedIpAddressRangesArgs {
|
|
79
|
+
/**
|
|
80
|
+
* The organization's allowed IP address ranges, in CIDR format (e.g. `203.0.113.0/24`). This resource authoritatively manages the organization's full IP access list - ranges not included here are removed on apply. An empty set removes all restrictions.
|
|
81
|
+
*/
|
|
82
|
+
ipAddressRanges: pulumi.Input<pulumi.Input<string>[]>;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=allowedIpAddressRanges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allowedIpAddressRanges.d.ts","sourceRoot":"","sources":["../allowedIpAddressRanges.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,qBAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,2BAA2B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,sBAAsB;IAO9J;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,sBAAsB;IAOjE;;OAEG;IACH,SAAwB,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAEjE;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAiBlG;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CACtE;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,110 @@
|
|
|
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.AllowedIpAddressRanges = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Manage an organization's IP access list as a single resource. This resource is authoritative: any allowed IP address ranges not present in `ipAddressRanges` are removed on apply.
|
|
33
|
+
*
|
|
34
|
+
* > **Warning: risk of lockout.** While the access list is empty, access is unrestricted. Adding the first range turns enforcement on, and the API will reject that first apply with a `400` unless the submitted ranges include the public IP address of the machine running Terraform (for example, a CI runner's egress IP). Once enforcement is on, the API does **not** protect you from removing the range that covers your own IP: doing so - or narrowing/replacing it so your IP is no longer covered - locks you (and this provider) out and will fail the apply mid-way. Always keep a range covering the machine that runs Terraform.
|
|
35
|
+
*
|
|
36
|
+
* > **Note** Do not manage the IP access list with more than one `astronomer.AllowedIpAddressRanges` resource. To adopt an access list that already exists, import it first (see below) rather than re-declaring it, otherwise the first apply will conflict with the existing ranges.
|
|
37
|
+
*
|
|
38
|
+
* ## Example Usage
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as astronomer from "@ryan-pip/pulumi_astronomer";
|
|
43
|
+
*
|
|
44
|
+
* // The astro_allowed_ip_address_ranges resource manages an organization's full IP access list as a
|
|
45
|
+
* // single resource. It is authoritative: any ranges not listed here are removed on apply.
|
|
46
|
+
* //
|
|
47
|
+
* // The resource batches the underlying create/delete calls and automatically chunks requests that
|
|
48
|
+
* // exceed the API's per-request limit (1000 CIDRs).
|
|
49
|
+
* const orgAllowList = new astronomer.AllowedIpAddressRanges("org_allow_list", {ipAddressRanges: [
|
|
50
|
+
* "203.0.113.0/24",
|
|
51
|
+
* "198.51.100.5/32",
|
|
52
|
+
* ]});
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ## Import
|
|
56
|
+
*
|
|
57
|
+
* The IP access list is a singleton per organization. Import it using the organization ID; the
|
|
58
|
+
* provider reads the current set of ranges into ip_address_ranges. Import (rather than re-declaring)
|
|
59
|
+
* to adopt an access list that already exists, otherwise the first apply conflicts with the existing
|
|
60
|
+
* ranges.
|
|
61
|
+
*
|
|
62
|
+
* ```sh
|
|
63
|
+
* $ pulumi import astronomer:index/allowedIpAddressRanges:AllowedIpAddressRanges org_allow_list <organization_id>
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
class AllowedIpAddressRanges extends pulumi.CustomResource {
|
|
67
|
+
/**
|
|
68
|
+
* Get an existing AllowedIpAddressRanges resource's state with the given name, ID, and optional extra
|
|
69
|
+
* properties used to qualify the lookup.
|
|
70
|
+
*
|
|
71
|
+
* @param name The _unique_ name of the resulting resource.
|
|
72
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
73
|
+
* @param state Any extra arguments used during the lookup.
|
|
74
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
75
|
+
*/
|
|
76
|
+
static get(name, id, state, opts) {
|
|
77
|
+
return new AllowedIpAddressRanges(name, state, { ...opts, id: id });
|
|
78
|
+
}
|
|
79
|
+
/** @internal */
|
|
80
|
+
static __pulumiType = 'astronomer:index/allowedIpAddressRanges:AllowedIpAddressRanges';
|
|
81
|
+
/**
|
|
82
|
+
* Returns true if the given object is an instance of AllowedIpAddressRanges. This is designed to work even
|
|
83
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
84
|
+
*/
|
|
85
|
+
static isInstance(obj) {
|
|
86
|
+
if (obj === undefined || obj === null) {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
return obj['__pulumiType'] === AllowedIpAddressRanges.__pulumiType;
|
|
90
|
+
}
|
|
91
|
+
constructor(name, argsOrState, opts) {
|
|
92
|
+
let resourceInputs = {};
|
|
93
|
+
opts = opts || {};
|
|
94
|
+
if (opts.id) {
|
|
95
|
+
const state = argsOrState;
|
|
96
|
+
resourceInputs["ipAddressRanges"] = state?.ipAddressRanges;
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
const args = argsOrState;
|
|
100
|
+
if (args?.ipAddressRanges === undefined && !opts.urn) {
|
|
101
|
+
throw new Error("Missing required property 'ipAddressRanges'");
|
|
102
|
+
}
|
|
103
|
+
resourceInputs["ipAddressRanges"] = args?.ipAddressRanges;
|
|
104
|
+
}
|
|
105
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
106
|
+
super(AllowedIpAddressRanges.__pulumiType, name, resourceInputs, opts);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.AllowedIpAddressRanges = AllowedIpAddressRanges;
|
|
110
|
+
//# sourceMappingURL=allowedIpAddressRanges.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allowedIpAddressRanges.js","sourceRoot":"","sources":["../allowedIpAddressRanges.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YA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