@ryan-pip/pulumi_astronomer 0.2.8 → 1.2.3-alpha.4

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.
Files changed (170) hide show
  1. package/agentToken.d.ts +96 -0
  2. package/agentToken.d.ts.map +1 -0
  3. package/agentToken.js +88 -0
  4. package/agentToken.js.map +1 -0
  5. package/alert.d.ts +190 -0
  6. package/alert.d.ts.map +1 -0
  7. package/alert.js +121 -0
  8. package/alert.js.map +1 -0
  9. package/apiToken.d.ts +7 -0
  10. package/apiToken.d.ts.map +1 -0
  11. package/apiToken.js +50 -27
  12. package/apiToken.js.map +1 -1
  13. package/cluster.d.ts +76 -50
  14. package/cluster.d.ts.map +1 -0
  15. package/cluster.js +76 -88
  16. package/cluster.js.map +1 -1
  17. package/config/index.d.ts +1 -0
  18. package/config/index.d.ts.map +1 -0
  19. package/config/index.js +1 -1
  20. package/config/index.js.map +1 -1
  21. package/config/vars.d.ts +1 -0
  22. package/config/vars.d.ts.map +1 -0
  23. package/config/vars.js +28 -6
  24. package/config/vars.js.map +1 -1
  25. package/customRole.d.ts +162 -0
  26. package/customRole.d.ts.map +1 -0
  27. package/customRole.js +125 -0
  28. package/customRole.js.map +1 -0
  29. package/deployment.d.ts +50 -16
  30. package/deployment.d.ts.map +1 -0
  31. package/deployment.js +114 -87
  32. package/deployment.js.map +1 -1
  33. package/getAlert.d.ts +118 -0
  34. package/getAlert.d.ts.map +1 -0
  35. package/getAlert.js +75 -0
  36. package/getAlert.js.map +1 -0
  37. package/getAlerts.d.ts +102 -0
  38. package/getAlerts.d.ts.map +1 -0
  39. package/getAlerts.js +117 -0
  40. package/getAlerts.js.map +1 -0
  41. package/getApiToken.d.ts +3 -2
  42. package/getApiToken.d.ts.map +1 -0
  43. package/getApiToken.js +28 -5
  44. package/getApiToken.js.map +1 -1
  45. package/getApiTokens.d.ts +3 -2
  46. package/getApiTokens.d.ts.map +1 -0
  47. package/getApiTokens.js +28 -5
  48. package/getApiTokens.js.map +1 -1
  49. package/getCluster.d.ts +28 -3
  50. package/getCluster.d.ts.map +1 -0
  51. package/getCluster.js +28 -5
  52. package/getCluster.js.map +1 -1
  53. package/getClusterOptions.d.ts +12 -2
  54. package/getClusterOptions.d.ts.map +1 -0
  55. package/getClusterOptions.js +28 -5
  56. package/getClusterOptions.js.map +1 -1
  57. package/getClusters.d.ts +12 -2
  58. package/getClusters.d.ts.map +1 -0
  59. package/getClusters.js +28 -5
  60. package/getClusters.js.map +1 -1
  61. package/getCustomRole.d.ts +98 -0
  62. package/getCustomRole.d.ts.map +1 -0
  63. package/getCustomRole.js +75 -0
  64. package/getCustomRole.js.map +1 -0
  65. package/getDeployment.d.ts +10 -5
  66. package/getDeployment.d.ts.map +1 -0
  67. package/getDeployment.js +28 -5
  68. package/getDeployment.js.map +1 -1
  69. package/getDeploymentOptions.d.ts +6 -5
  70. package/getDeploymentOptions.d.ts.map +1 -0
  71. package/getDeploymentOptions.js +28 -5
  72. package/getDeploymentOptions.js.map +1 -1
  73. package/getDeployments.d.ts +3 -2
  74. package/getDeployments.d.ts.map +1 -0
  75. package/getDeployments.js +28 -5
  76. package/getDeployments.js.map +1 -1
  77. package/getNotificationChannel.d.ts +114 -0
  78. package/getNotificationChannel.d.ts.map +1 -0
  79. package/getNotificationChannel.js +75 -0
  80. package/getNotificationChannel.js.map +1 -0
  81. package/getNotificationChannels.d.ts +50 -0
  82. package/getNotificationChannels.d.ts.map +1 -0
  83. package/getNotificationChannels.js +65 -0
  84. package/getNotificationChannels.js.map +1 -0
  85. package/getOrganization.d.ts +3 -2
  86. package/getOrganization.d.ts.map +1 -0
  87. package/getOrganization.js +28 -5
  88. package/getOrganization.js.map +1 -1
  89. package/getTeam.d.ts +11 -2
  90. package/getTeam.d.ts.map +1 -0
  91. package/getTeam.js +28 -5
  92. package/getTeam.js.map +1 -1
  93. package/getTeams.d.ts +27 -18
  94. package/getTeams.d.ts.map +1 -0
  95. package/getTeams.js +52 -21
  96. package/getTeams.js.map +1 -1
  97. package/getUser.d.ts +7 -2
  98. package/getUser.d.ts.map +1 -0
  99. package/getUser.js +28 -5
  100. package/getUser.js.map +1 -1
  101. package/getUsers.d.ts +27 -18
  102. package/getUsers.d.ts.map +1 -0
  103. package/getUsers.js +52 -21
  104. package/getUsers.js.map +1 -1
  105. package/getWorkspace.d.ts +3 -2
  106. package/getWorkspace.d.ts.map +1 -0
  107. package/getWorkspace.js +28 -5
  108. package/getWorkspace.js.map +1 -1
  109. package/getWorkspaces.d.ts +39 -30
  110. package/getWorkspaces.d.ts.map +1 -0
  111. package/getWorkspaces.js +64 -33
  112. package/getWorkspaces.js.map +1 -1
  113. package/hybridClusterWorkspaceAuthorization.d.ts +1 -19
  114. package/hybridClusterWorkspaceAuthorization.d.ts.map +1 -0
  115. package/hybridClusterWorkspaceAuthorization.js +34 -30
  116. package/hybridClusterWorkspaceAuthorization.js.map +1 -1
  117. package/index.d.ts +32 -3
  118. package/index.d.ts.map +1 -0
  119. package/index.js +76 -9
  120. package/index.js.map +1 -1
  121. package/notificationChannel.d.ts +170 -0
  122. package/notificationChannel.d.ts.map +1 -0
  123. package/notificationChannel.js +111 -0
  124. package/notificationChannel.js.map +1 -0
  125. package/package.json +4 -3
  126. package/provider.d.ts +18 -3
  127. package/provider.d.ts.map +1 -0
  128. package/provider.js +39 -12
  129. package/provider.js.map +1 -1
  130. package/team.d.ts +20 -7
  131. package/team.d.ts.map +1 -0
  132. package/team.js +51 -26
  133. package/team.js.map +1 -1
  134. package/teamMembership.d.ts +66 -0
  135. package/teamMembership.d.ts.map +1 -0
  136. package/teamMembership.js +85 -0
  137. package/teamMembership.js.map +1 -0
  138. package/teamRoles.d.ts +20 -7
  139. package/teamRoles.d.ts.map +1 -0
  140. package/teamRoles.js +42 -17
  141. package/teamRoles.js.map +1 -1
  142. package/types/index.d.ts +1 -0
  143. package/types/index.d.ts.map +1 -0
  144. package/types/index.js +26 -3
  145. package/types/index.js.map +1 -1
  146. package/types/input.d.ts +316 -3
  147. package/types/input.d.ts.map +1 -0
  148. package/types/input.js +1 -1
  149. package/types/input.js.map +1 -1
  150. package/types/output.d.ts +944 -11
  151. package/types/output.d.ts.map +1 -0
  152. package/types/output.js +1 -1
  153. package/types/output.js.map +1 -1
  154. package/userInvite.d.ts +2 -1
  155. package/userInvite.d.ts.map +1 -0
  156. package/userInvite.js +41 -18
  157. package/userInvite.js.map +1 -1
  158. package/userRoles.d.ts +20 -7
  159. package/userRoles.d.ts.map +1 -0
  160. package/userRoles.js +42 -17
  161. package/userRoles.js.map +1 -1
  162. package/utilities.d.ts +1 -4
  163. package/utilities.d.ts.map +1 -0
  164. package/utilities.js +43 -30
  165. package/utilities.js.map +1 -1
  166. package/workspace.d.ts +1 -16
  167. package/workspace.d.ts.map +1 -0
  168. package/workspace.js +41 -34
  169. package/workspace.js.map +1 -1
  170. package/package.json.bak +0 -29
@@ -0,0 +1,170 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Notification Channel resource
6
+ */
7
+ export declare class NotificationChannel extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing NotificationChannel resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param state Any extra arguments used during the lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NotificationChannelState, opts?: pulumi.CustomResourceOptions): NotificationChannel;
18
+ /**
19
+ * Returns true if the given object is an instance of NotificationChannel. This is designed to work even
20
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
21
+ */
22
+ static isInstance(obj: any): obj is NotificationChannel;
23
+ /**
24
+ * Notification Channel creation timestamp
25
+ */
26
+ readonly createdAt: pulumi.Output<string>;
27
+ /**
28
+ * Notification Channel creator
29
+ */
30
+ readonly createdBy: pulumi.Output<outputs.NotificationChannelCreatedBy>;
31
+ /**
32
+ * The notification channel's definition
33
+ */
34
+ readonly definition: pulumi.Output<outputs.NotificationChannelDefinition>;
35
+ /**
36
+ * The deployment ID the notification channel is scoped to
37
+ */
38
+ readonly deploymentId: pulumi.Output<string>;
39
+ /**
40
+ * The entity ID the notification channel is scoped to
41
+ */
42
+ readonly entityId: pulumi.Output<string>;
43
+ /**
44
+ * The name of the entity the notification channel is scoped to
45
+ */
46
+ readonly entityName: pulumi.Output<string>;
47
+ /**
48
+ * The type of entity the notification channel is scoped to (e.g., 'DEPLOYMENT')
49
+ */
50
+ readonly entityType: pulumi.Output<string>;
51
+ /**
52
+ * When entity type is scoped to ORGANIZATION or WORKSPACE, this determines if child entities can access this notification channel.
53
+ */
54
+ readonly isShared: pulumi.Output<boolean>;
55
+ /**
56
+ * The notification channel's name
57
+ */
58
+ readonly name: pulumi.Output<string>;
59
+ /**
60
+ * The notification channel's type
61
+ */
62
+ readonly type: pulumi.Output<string>;
63
+ /**
64
+ * Notification Channel last updated timestamp
65
+ */
66
+ readonly updatedAt: pulumi.Output<string>;
67
+ /**
68
+ * Notification Channel updater
69
+ */
70
+ readonly updatedBy: pulumi.Output<outputs.NotificationChannelUpdatedBy>;
71
+ /**
72
+ * The workspace ID the notification channel is scoped to
73
+ */
74
+ readonly workspaceId: pulumi.Output<string>;
75
+ /**
76
+ * Create a NotificationChannel resource with the given unique name, arguments, and options.
77
+ *
78
+ * @param name The _unique_ name of the resource.
79
+ * @param args The arguments to use to populate this resource's properties.
80
+ * @param opts A bag of options that control this resource's behavior.
81
+ */
82
+ constructor(name: string, args: NotificationChannelArgs, opts?: pulumi.CustomResourceOptions);
83
+ }
84
+ /**
85
+ * Input properties used for looking up and filtering NotificationChannel resources.
86
+ */
87
+ export interface NotificationChannelState {
88
+ /**
89
+ * Notification Channel creation timestamp
90
+ */
91
+ createdAt?: pulumi.Input<string>;
92
+ /**
93
+ * Notification Channel creator
94
+ */
95
+ createdBy?: pulumi.Input<inputs.NotificationChannelCreatedBy>;
96
+ /**
97
+ * The notification channel's definition
98
+ */
99
+ definition?: pulumi.Input<inputs.NotificationChannelDefinition>;
100
+ /**
101
+ * The deployment ID the notification channel is scoped to
102
+ */
103
+ deploymentId?: pulumi.Input<string>;
104
+ /**
105
+ * The entity ID the notification channel is scoped to
106
+ */
107
+ entityId?: pulumi.Input<string>;
108
+ /**
109
+ * The name of the entity the notification channel is scoped to
110
+ */
111
+ entityName?: pulumi.Input<string>;
112
+ /**
113
+ * The type of entity the notification channel is scoped to (e.g., 'DEPLOYMENT')
114
+ */
115
+ entityType?: pulumi.Input<string>;
116
+ /**
117
+ * When entity type is scoped to ORGANIZATION or WORKSPACE, this determines if child entities can access this notification channel.
118
+ */
119
+ isShared?: pulumi.Input<boolean>;
120
+ /**
121
+ * The notification channel's name
122
+ */
123
+ name?: pulumi.Input<string>;
124
+ /**
125
+ * The notification channel's type
126
+ */
127
+ type?: pulumi.Input<string>;
128
+ /**
129
+ * Notification Channel last updated timestamp
130
+ */
131
+ updatedAt?: pulumi.Input<string>;
132
+ /**
133
+ * Notification Channel updater
134
+ */
135
+ updatedBy?: pulumi.Input<inputs.NotificationChannelUpdatedBy>;
136
+ /**
137
+ * The workspace ID the notification channel is scoped to
138
+ */
139
+ workspaceId?: pulumi.Input<string>;
140
+ }
141
+ /**
142
+ * The set of arguments for constructing a NotificationChannel resource.
143
+ */
144
+ export interface NotificationChannelArgs {
145
+ /**
146
+ * The notification channel's definition
147
+ */
148
+ definition: pulumi.Input<inputs.NotificationChannelDefinition>;
149
+ /**
150
+ * The entity ID the notification channel is scoped to
151
+ */
152
+ entityId: pulumi.Input<string>;
153
+ /**
154
+ * The type of entity the notification channel is scoped to (e.g., 'DEPLOYMENT')
155
+ */
156
+ entityType: pulumi.Input<string>;
157
+ /**
158
+ * When entity type is scoped to ORGANIZATION or WORKSPACE, this determines if child entities can access this notification channel.
159
+ */
160
+ isShared?: pulumi.Input<boolean>;
161
+ /**
162
+ * The notification channel's name
163
+ */
164
+ name?: pulumi.Input<string>;
165
+ /**
166
+ * The notification channel's type
167
+ */
168
+ type: pulumi.Input<string>;
169
+ }
170
+ //# sourceMappingURL=notificationChannel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notificationChannel.d.ts","sourceRoot":"","sources":["../notificationChannel.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;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,wBAAwB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,mBAAmB;IAOxJ;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,mBAAmB;IAO9D;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAC/F;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IACzF;;OAEG;IACH,SAAgC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACpE;;OAEG;IACH,SAAwB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxD;;OAEG;IACH,SAAgC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAA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AAM,CAAC,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC;IAC9D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAC;IAC/D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B"}
@@ -0,0 +1,111 @@
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.NotificationChannel = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Notification Channel resource
33
+ */
34
+ class NotificationChannel extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing NotificationChannel resource's state with the given name, ID, and optional extra
37
+ * properties used to qualify the lookup.
38
+ *
39
+ * @param name The _unique_ name of the resulting resource.
40
+ * @param id The _unique_ provider ID of the resource to lookup.
41
+ * @param state Any extra arguments used during the lookup.
42
+ * @param opts Optional settings to control the behavior of the CustomResource.
43
+ */
44
+ static get(name, id, state, opts) {
45
+ return new NotificationChannel(name, state, { ...opts, id: id });
46
+ }
47
+ /** @internal */
48
+ static __pulumiType = 'astronomer:index/notificationChannel:NotificationChannel';
49
+ /**
50
+ * Returns true if the given object is an instance of NotificationChannel. This is designed to work even
51
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
+ */
53
+ static isInstance(obj) {
54
+ if (obj === undefined || obj === null) {
55
+ return false;
56
+ }
57
+ return obj['__pulumiType'] === NotificationChannel.__pulumiType;
58
+ }
59
+ constructor(name, argsOrState, opts) {
60
+ let resourceInputs = {};
61
+ opts = opts || {};
62
+ if (opts.id) {
63
+ const state = argsOrState;
64
+ resourceInputs["createdAt"] = state?.createdAt;
65
+ resourceInputs["createdBy"] = state?.createdBy;
66
+ resourceInputs["definition"] = state?.definition;
67
+ resourceInputs["deploymentId"] = state?.deploymentId;
68
+ resourceInputs["entityId"] = state?.entityId;
69
+ resourceInputs["entityName"] = state?.entityName;
70
+ resourceInputs["entityType"] = state?.entityType;
71
+ resourceInputs["isShared"] = state?.isShared;
72
+ resourceInputs["name"] = state?.name;
73
+ resourceInputs["type"] = state?.type;
74
+ resourceInputs["updatedAt"] = state?.updatedAt;
75
+ resourceInputs["updatedBy"] = state?.updatedBy;
76
+ resourceInputs["workspaceId"] = state?.workspaceId;
77
+ }
78
+ else {
79
+ const args = argsOrState;
80
+ if (args?.definition === undefined && !opts.urn) {
81
+ throw new Error("Missing required property 'definition'");
82
+ }
83
+ if (args?.entityId === undefined && !opts.urn) {
84
+ throw new Error("Missing required property 'entityId'");
85
+ }
86
+ if (args?.entityType === undefined && !opts.urn) {
87
+ throw new Error("Missing required property 'entityType'");
88
+ }
89
+ if (args?.type === undefined && !opts.urn) {
90
+ throw new Error("Missing required property 'type'");
91
+ }
92
+ resourceInputs["definition"] = args?.definition;
93
+ resourceInputs["entityId"] = args?.entityId;
94
+ resourceInputs["entityType"] = args?.entityType;
95
+ resourceInputs["isShared"] = args?.isShared;
96
+ resourceInputs["name"] = args?.name;
97
+ resourceInputs["type"] = args?.type;
98
+ resourceInputs["createdAt"] = undefined /*out*/;
99
+ resourceInputs["createdBy"] = undefined /*out*/;
100
+ resourceInputs["deploymentId"] = undefined /*out*/;
101
+ resourceInputs["entityName"] = undefined /*out*/;
102
+ resourceInputs["updatedAt"] = undefined /*out*/;
103
+ resourceInputs["updatedBy"] = undefined /*out*/;
104
+ resourceInputs["workspaceId"] = undefined /*out*/;
105
+ }
106
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
107
+ super(NotificationChannel.__pulumiType, name, resourceInputs, opts);
108
+ }
109
+ }
110
+ exports.NotificationChannel = NotificationChannel;
111
+ //# sourceMappingURL=notificationChannel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notificationChannel.js","sourceRoot":"","sources":["../notificationChannel.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,0DAA0D,CAAC;IAEjG;;;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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IA+DD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAA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AAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAzIL,kDA0IC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ryan-pip/pulumi_astronomer",
3
- "version": "v0.2.8",
4
- "description": "A Pulumi package for creating and managing Astronomer Cloud resources. Based on terraform-provider-astro: version v0.3.0",
3
+ "version": "1.2.3-alpha.4+996547c8",
4
+ "description": "A Pulumi package for creating and managing Astronomer Cloud resources. Based on terraform-provider-astro: version v1.2.3",
5
5
  "keywords": [
6
6
  "pulumi",
7
7
  "astronomer",
@@ -19,11 +19,12 @@
19
19
  "devDependencies": {
20
20
  "@types/mime": "^2.0.0",
21
21
  "@types/node": "^10.0.0",
22
- "typescript": "^4.3.5"
22
+ "typescript": "^4.7.0"
23
23
  },
24
24
  "pulumi": {
25
25
  "resource": true,
26
26
  "name": "astronomer",
27
+ "version": "1.2.3-alpha.4+996547c8",
27
28
  "server": "github://api.github.com/ryan-pip/pulumi-astronomer"
28
29
  }
29
30
  }
package/provider.d.ts CHANGED
@@ -18,7 +18,7 @@ export declare class Provider extends pulumi.ProviderResource {
18
18
  /**
19
19
  * Organization ID this provider will operate on.
20
20
  */
21
- readonly organizationId: pulumi.Output<string>;
21
+ readonly organizationId: pulumi.Output<string | undefined>;
22
22
  /**
23
23
  * Astro API Token. Can be set with an `ASTRO_API_TOKEN` env var.
24
24
  */
@@ -30,7 +30,11 @@ export declare class Provider extends pulumi.ProviderResource {
30
30
  * @param args The arguments to use to populate this resource's properties.
31
31
  * @param opts A bag of options that control this resource's behavior.
32
32
  */
33
- constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
33
+ constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
34
+ /**
35
+ * This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
36
+ */
37
+ terraformConfig(): pulumi.Output<Provider.TerraformConfigResult>;
34
38
  }
35
39
  /**
36
40
  * The set of arguments for constructing a Provider resource.
@@ -43,9 +47,20 @@ export interface ProviderArgs {
43
47
  /**
44
48
  * Organization ID this provider will operate on.
45
49
  */
46
- organizationId: pulumi.Input<string>;
50
+ organizationId?: pulumi.Input<string>;
47
51
  /**
48
52
  * Astro API Token. Can be set with an `ASTRO_API_TOKEN` env var.
49
53
  */
50
54
  token?: pulumi.Input<string>;
51
55
  }
56
+ export declare namespace Provider {
57
+ /**
58
+ * The results of the Provider.terraformConfig method.
59
+ */
60
+ interface TerraformConfigResult {
61
+ readonly result: {
62
+ [key: string]: any;
63
+ };
64
+ }
65
+ }
66
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;GAKG;AACH,qBAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,QAAQ;IAOnD;;OAEG;IACH,SAAwB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChE;;OAEG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1E;;OAEG;IACH,SAAwB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAEjE;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,eAAe;IAc5E;;OAEG;IACH,eAAe,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC;CAKnE;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC;AAED,yBAAiB,QAAQ,CAAC;IACtB;;OAEG;IACH,UAAiB,qBAAqB;QAClC,QAAQ,CAAC,MAAM,EAAE;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;SAAC,CAAC;KACzC;CAEJ"}
package/provider.js CHANGED
@@ -1,10 +1,33 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
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
+ };
4
27
  Object.defineProperty(exports, "__esModule", { value: true });
5
28
  exports.Provider = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
8
31
  /**
9
32
  * The provider type for the astro package. By default, resources use package-wide configuration
10
33
  * settings, however an explicit `Provider` instance may be created and passed during resource
@@ -12,6 +35,8 @@ const utilities = require("./utilities");
12
35
  * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
13
36
  */
14
37
  class Provider extends pulumi.ProviderResource {
38
+ /** @internal */
39
+ static __pulumiType = 'astronomer';
15
40
  /**
16
41
  * Returns true if the given object is an instance of Provider. This is designed to work even
17
42
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
@@ -30,24 +55,26 @@ class Provider extends pulumi.ProviderResource {
30
55
  * @param opts A bag of options that control this resource's behavior.
31
56
  */
32
57
  constructor(name, args, opts) {
33
- var _a;
34
58
  let resourceInputs = {};
35
59
  opts = opts || {};
36
60
  {
37
- if ((!args || args.organizationId === undefined) && !opts.urn) {
38
- throw new Error("Missing required property 'organizationId'");
39
- }
40
- resourceInputs["host"] = args ? args.host : undefined;
41
- resourceInputs["organizationId"] = args ? args.organizationId : undefined;
42
- resourceInputs["token"] = (_a = ((args === null || args === void 0 ? void 0 : args.token) ? pulumi.secret(args.token) : undefined)) !== null && _a !== void 0 ? _a : utilities.getEnv("ASTRO_API_TOKEN");
61
+ resourceInputs["host"] = args?.host;
62
+ resourceInputs["organizationId"] = (args?.organizationId) ?? utilities.getEnv("ASTRO_ORGANIZATION_ID");
63
+ resourceInputs["token"] = (args?.token ? pulumi.secret(args.token) : undefined) ?? utilities.getEnv("ASTRO_API_TOKEN");
43
64
  }
44
65
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
45
66
  const secretOpts = { additionalSecretOutputs: ["token"] };
46
67
  opts = pulumi.mergeOptions(opts, secretOpts);
47
68
  super(Provider.__pulumiType, name, resourceInputs, opts);
48
69
  }
70
+ /**
71
+ * This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
72
+ */
73
+ terraformConfig() {
74
+ return pulumi.runtime.call("pulumi:providers:astronomer/terraformConfig", {
75
+ "__self__": this,
76
+ }, this);
77
+ }
49
78
  }
50
79
  exports.Provider = Provider;
51
- /** @internal */
52
- Provider.__pulumiType = 'astronomer';
53
80
  //# sourceMappingURL=provider.js.map
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAeD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B;;QACvE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,cAAc,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3D,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;aACjE;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,OAAO,CAAC,GAAG,MAAA,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,SAAS,CAAC,MAAM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AAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;YACvG,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;SAC1H;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,eAAe;QACX,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,6CAA6C,EAAE;YACtE,UAAU,EAAE,IAAI;SACnB,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;;AAxDL,4BAyDC"}
package/team.d.ts CHANGED
@@ -2,7 +2,7 @@ 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
- * Team resource
5
+ * Creates and manages a team and its members. Astro permissions are hierarchical (organization, workspace, deployment, then DAG). Declare roles at each applicable parent scope as well as nested scopes, not only at the leaf, so Terraform state matches the API.
6
6
  */
7
7
  export declare class Team extends pulumi.CustomResource {
8
8
  /**
@@ -29,7 +29,11 @@ export declare class Team extends pulumi.CustomResource {
29
29
  */
30
30
  readonly createdBy: pulumi.Output<outputs.TeamCreatedBy>;
31
31
  /**
32
- * The roles to assign to the Deployments
32
+ * The DAG roles to assign to the team. Each role grants permissions to a specific DAG or DAGs with a specific tag within a deployment. Each deployment referenced in `dagRoles` must also have a corresponding entry in `deploymentRoles` (for example `DEPLOYMENT_ACCESSOR`).
33
+ */
34
+ readonly dagRoles: pulumi.Output<outputs.TeamDagRole[] | undefined>;
35
+ /**
36
+ * The roles to assign to the Deployments. Each `deploymentId` must belong to a workspace that also appears in `workspaceRoles`. Required for any deployment referenced in `dagRoles`.
33
37
  */
34
38
  readonly deploymentRoles: pulumi.Output<outputs.TeamDeploymentRole[] | undefined>;
35
39
  /**
@@ -65,7 +69,7 @@ export declare class Team extends pulumi.CustomResource {
65
69
  */
66
70
  readonly updatedBy: pulumi.Output<outputs.TeamUpdatedBy>;
67
71
  /**
68
- * The roles to assign to the Workspaces
72
+ * The roles to assign to the Workspaces. When you set `deploymentRoles` or `dagRoles`, include each deployment's parent workspace here (any workspace role), so Terraform state matches the API.
69
73
  */
70
74
  readonly workspaceRoles: pulumi.Output<outputs.TeamWorkspaceRole[] | undefined>;
71
75
  /**
@@ -90,7 +94,11 @@ export interface TeamState {
90
94
  */
91
95
  createdBy?: pulumi.Input<inputs.TeamCreatedBy>;
92
96
  /**
93
- * The roles to assign to the Deployments
97
+ * The DAG roles to assign to the team. Each role grants permissions to a specific DAG or DAGs with a specific tag within a deployment. Each deployment referenced in `dagRoles` must also have a corresponding entry in `deploymentRoles` (for example `DEPLOYMENT_ACCESSOR`).
98
+ */
99
+ dagRoles?: pulumi.Input<pulumi.Input<inputs.TeamDagRole>[]>;
100
+ /**
101
+ * The roles to assign to the Deployments. Each `deploymentId` must belong to a workspace that also appears in `workspaceRoles`. Required for any deployment referenced in `dagRoles`.
94
102
  */
95
103
  deploymentRoles?: pulumi.Input<pulumi.Input<inputs.TeamDeploymentRole>[]>;
96
104
  /**
@@ -126,7 +134,7 @@ export interface TeamState {
126
134
  */
127
135
  updatedBy?: pulumi.Input<inputs.TeamUpdatedBy>;
128
136
  /**
129
- * The roles to assign to the Workspaces
137
+ * The roles to assign to the Workspaces. When you set `deploymentRoles` or `dagRoles`, include each deployment's parent workspace here (any workspace role), so Terraform state matches the API.
130
138
  */
131
139
  workspaceRoles?: pulumi.Input<pulumi.Input<inputs.TeamWorkspaceRole>[]>;
132
140
  }
@@ -135,7 +143,11 @@ export interface TeamState {
135
143
  */
136
144
  export interface TeamArgs {
137
145
  /**
138
- * The roles to assign to the Deployments
146
+ * The DAG roles to assign to the team. Each role grants permissions to a specific DAG or DAGs with a specific tag within a deployment. Each deployment referenced in `dagRoles` must also have a corresponding entry in `deploymentRoles` (for example `DEPLOYMENT_ACCESSOR`).
147
+ */
148
+ dagRoles?: pulumi.Input<pulumi.Input<inputs.TeamDagRole>[]>;
149
+ /**
150
+ * The roles to assign to the Deployments. Each `deploymentId` must belong to a workspace that also appears in `workspaceRoles`. Required for any deployment referenced in `dagRoles`.
139
151
  */
140
152
  deploymentRoles?: pulumi.Input<pulumi.Input<inputs.TeamDeploymentRole>[]>;
141
153
  /**
@@ -155,7 +167,8 @@ export interface TeamArgs {
155
167
  */
156
168
  organizationRole: pulumi.Input<string>;
157
169
  /**
158
- * The roles to assign to the Workspaces
170
+ * The roles to assign to the Workspaces. When you set `deploymentRoles` or `dagRoles`, include each deployment's parent workspace here (any workspace role), so Terraform state matches the API.
159
171
  */
160
172
  workspaceRoles?: pulumi.Input<pulumi.Input<inputs.TeamWorkspaceRole>[]>;
161
173
  }
174
+ //# sourceMappingURL=team.d.ts.map
package/team.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team.d.ts","sourceRoot":"","sources":["../team.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;;GAEG;AACH,qBAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,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