@ryan-pip/pulumi_astronomer 0.0.11 → 0.2.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.
Files changed (86) hide show
  1. package/README.md +1 -2
  2. package/apiToken.d.ts +167 -0
  3. package/apiToken.js +86 -0
  4. package/apiToken.js.map +1 -0
  5. package/cluster.d.ts +110 -85
  6. package/cluster.js +51 -19
  7. package/cluster.js.map +1 -1
  8. package/config/vars.d.ts +6 -2
  9. package/config/vars.js +7 -1
  10. package/config/vars.js.map +1 -1
  11. package/deployment.d.ts +305 -90
  12. package/deployment.js +61 -21
  13. package/deployment.js.map +1 -1
  14. package/getApiToken.d.ts +113 -0
  15. package/getApiToken.js +49 -0
  16. package/getApiToken.js.map +1 -0
  17. package/getApiTokens.d.ts +77 -0
  18. package/getApiTokens.js +66 -0
  19. package/getApiTokens.js.map +1 -0
  20. package/getCluster.d.ts +46 -32
  21. package/getCluster.js +8 -6
  22. package/getCluster.js.map +1 -1
  23. package/getClusterOptions.d.ts +68 -0
  24. package/getClusterOptions.js +58 -0
  25. package/getClusterOptions.js.map +1 -0
  26. package/getClusters.d.ts +68 -0
  27. package/getClusters.js +59 -0
  28. package/getClusters.js.map +1 -0
  29. package/getDeployment.d.ts +198 -13
  30. package/getDeployment.js +26 -2
  31. package/getDeployment.js.map +1 -1
  32. package/getDeploymentOptions.d.ts +149 -0
  33. package/getDeploymentOptions.js +73 -0
  34. package/getDeploymentOptions.js.map +1 -0
  35. package/getDeployments.d.ts +77 -0
  36. package/getDeployments.js +66 -0
  37. package/getDeployments.js.map +1 -0
  38. package/getOrganization.d.ts +28 -46
  39. package/getOrganization.js +10 -15
  40. package/getOrganization.js.map +1 -1
  41. package/getTeam.d.ts +105 -0
  42. package/getTeam.js +49 -0
  43. package/getTeam.js.map +1 -0
  44. package/getTeams.d.ts +65 -0
  45. package/getTeams.js +58 -0
  46. package/getTeams.js.map +1 -0
  47. package/getUser.d.ts +97 -0
  48. package/getUser.js +49 -0
  49. package/getUser.js.map +1 -0
  50. package/getUsers.d.ts +68 -0
  51. package/getUsers.js +59 -0
  52. package/getUsers.js.map +1 -0
  53. package/getWorkspace.d.ts +31 -12
  54. package/getWorkspace.js +8 -6
  55. package/getWorkspace.js.map +1 -1
  56. package/getWorkspaces.d.ts +80 -0
  57. package/getWorkspaces.js +71 -0
  58. package/getWorkspaces.js.map +1 -0
  59. package/hybridClusterWorkspaceAuthorization.d.ts +82 -0
  60. package/hybridClusterWorkspaceAuthorization.js +76 -0
  61. package/hybridClusterWorkspaceAuthorization.js.map +1 -0
  62. package/index.d.ts +52 -1
  63. package/index.js +64 -1
  64. package/index.js.map +1 -1
  65. package/package.json +2 -2
  66. package/package.json.bak +1 -1
  67. package/provider.d.ts +13 -5
  68. package/provider.js +3 -2
  69. package/provider.js.map +1 -1
  70. package/team.d.ts +161 -0
  71. package/team.js +77 -0
  72. package/team.js.map +1 -0
  73. package/teamRoles.d.ts +89 -0
  74. package/teamRoles.js +64 -0
  75. package/teamRoles.js.map +1 -0
  76. package/types/input.d.ts +303 -17
  77. package/types/output.d.ts +1737 -33
  78. package/userInvite.d.ts +117 -0
  79. package/userInvite.js +82 -0
  80. package/userInvite.js.map +1 -0
  81. package/userRoles.d.ts +89 -0
  82. package/userRoles.js +64 -0
  83. package/userRoles.js.map +1 -0
  84. package/workspace.d.ts +55 -17
  85. package/workspace.js +21 -3
  86. package/workspace.js.map +1 -1
@@ -1,6 +1,19 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
2
3
  /**
3
- * Astronomer Deployment Resource
4
+ * Deployment data source
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as astronomer from "@pulumi/astronomer";
11
+ *
12
+ * const exampleDeployment = astronomer.getDeployment({
13
+ * id: "clozc036j01to01jrlgvueo8t",
14
+ * });
15
+ * export const deployment = exampleDeployment;
16
+ * ```
4
17
  */
5
18
  export declare function getDeployment(args: GetDeploymentArgs, opts?: pulumi.InvokeOptions): Promise<GetDeploymentResult>;
6
19
  /**
@@ -8,7 +21,7 @@ export declare function getDeployment(args: GetDeploymentArgs, opts?: pulumi.Inv
8
21
  */
9
22
  export interface GetDeploymentArgs {
10
23
  /**
11
- * The Deployment's Identifier
24
+ * Deployment identifier
12
25
  */
13
26
  id: string;
14
27
  }
@@ -17,40 +30,212 @@ export interface GetDeploymentArgs {
17
30
  */
18
31
  export interface GetDeploymentResult {
19
32
  /**
20
- * The Deployment's Astro Runtime version.
33
+ * Deployment Airflow version
21
34
  */
22
35
  readonly airflowVersion: string;
23
36
  /**
24
- * The cloud provider for the Deployment's cluster. Optional if `ClusterId` is specified.
37
+ * Deployment Astro Runtime version
38
+ */
39
+ readonly astroRuntimeVersion: string;
40
+ /**
41
+ * Deployment cloud provider
25
42
  */
26
43
  readonly cloudProvider: string;
27
44
  /**
28
- * The ID of the cluster to which the Deployment will be created in. Optional if cloud provider and region is specified.
45
+ * Deployment cluster identifier
29
46
  */
30
47
  readonly clusterId: string;
31
48
  /**
32
- * Cluster Name
49
+ * Deployment contact emails
50
+ */
51
+ readonly contactEmails: string[];
52
+ /**
53
+ * Deployment creation timestamp
54
+ */
55
+ readonly createdAt: string;
56
+ /**
57
+ * Deployment creator
58
+ */
59
+ readonly createdBy: outputs.GetDeploymentCreatedBy;
60
+ /**
61
+ * Deployment DAG tarball version
62
+ */
63
+ readonly dagTarballVersion: string;
64
+ /**
65
+ * Deployment default task pod CPU
33
66
  */
34
- readonly clusterName: string;
67
+ readonly defaultTaskPodCpu: string;
35
68
  /**
36
- * The Deployment's description.
69
+ * Deployment default task pod memory
70
+ */
71
+ readonly defaultTaskPodMemory: string;
72
+ /**
73
+ * Deployment description
37
74
  */
38
75
  readonly description: string;
39
76
  /**
40
- * The Deployment's Identifier
77
+ * Deployment desired DAG tarball version
78
+ */
79
+ readonly desiredDagTarballVersion: string;
80
+ /**
81
+ * Deployment environment variables
82
+ */
83
+ readonly environmentVariables: outputs.GetDeploymentEnvironmentVariable[];
84
+ /**
85
+ * Deployment executor
86
+ */
87
+ readonly executor: string;
88
+ /**
89
+ * Deployment external IPs
90
+ */
91
+ readonly externalIps: string[];
92
+ /**
93
+ * Deployment identifier
41
94
  */
42
95
  readonly id: string;
43
96
  /**
44
- * Whether the Deployment requires that all deploys are made through CI/CD.
97
+ * Deployment image repository
98
+ */
99
+ readonly imageRepository: string;
100
+ /**
101
+ * Deployment image tag
102
+ */
103
+ readonly imageTag: string;
104
+ /**
105
+ * Deployment image version
106
+ */
107
+ readonly imageVersion: string;
108
+ /**
109
+ * Whether the Deployment enforces CI/CD deploys
45
110
  */
46
111
  readonly isCicdEnforced: boolean;
47
112
  /**
48
- * The Deployment's name.
113
+ * Whether DAG deploy is enabled
114
+ */
115
+ readonly isDagDeployEnabled: boolean;
116
+ /**
117
+ * Whether Deployment is in development mode
118
+ */
119
+ readonly isDevelopmentMode: boolean;
120
+ /**
121
+ * Whether Deployment has high availability
122
+ */
123
+ readonly isHighAvailability: boolean;
124
+ /**
125
+ * Deployment name
49
126
  */
50
127
  readonly name: string;
128
+ /**
129
+ * Deployment namespace
130
+ */
131
+ readonly namespace: string;
132
+ /**
133
+ * Deployment OIDC issuer URL
134
+ */
135
+ readonly oidcIssuerUrl: string;
136
+ /**
137
+ * Deployment region
138
+ */
139
+ readonly region: string;
140
+ /**
141
+ * Deployment resource quota CPU
142
+ */
143
+ readonly resourceQuotaCpu: string;
144
+ /**
145
+ * Deployment resource quota memory
146
+ */
147
+ readonly resourceQuotaMemory: string;
148
+ /**
149
+ * Deployment scaling spec
150
+ */
151
+ readonly scalingSpec: outputs.GetDeploymentScalingSpec;
152
+ /**
153
+ * Deployment scaling status
154
+ */
155
+ readonly scalingStatus: outputs.GetDeploymentScalingStatus;
156
+ /**
157
+ * Deployment scheduler AU
158
+ */
159
+ readonly schedulerAu: number;
160
+ /**
161
+ * Deployment scheduler CPU
162
+ */
163
+ readonly schedulerCpu: string;
164
+ /**
165
+ * Deployment scheduler memory
166
+ */
167
+ readonly schedulerMemory: string;
168
+ /**
169
+ * Deployment scheduler replicas
170
+ */
171
+ readonly schedulerReplicas: number;
172
+ /**
173
+ * Deployment scheduler size
174
+ */
175
+ readonly schedulerSize: string;
176
+ /**
177
+ * Deployment status
178
+ */
179
+ readonly status: string;
180
+ /**
181
+ * Deployment status reason
182
+ */
183
+ readonly statusReason: string;
184
+ /**
185
+ * Deployment task pod node pool identifier
186
+ */
187
+ readonly taskPodNodePoolId: string;
188
+ /**
189
+ * Deployment type
190
+ */
191
+ readonly type: string;
192
+ /**
193
+ * Deployment last updated timestamp
194
+ */
195
+ readonly updatedAt: string;
196
+ /**
197
+ * Deployment updater
198
+ */
199
+ readonly updatedBy: outputs.GetDeploymentUpdatedBy;
200
+ /**
201
+ * Deployment webserver Airflow API URL
202
+ */
203
+ readonly webserverAirflowApiUrl: string;
204
+ /**
205
+ * Deployment webserver ingress hostname
206
+ */
207
+ readonly webserverIngressHostname: string;
208
+ /**
209
+ * Deployment webserver URL
210
+ */
211
+ readonly webserverUrl: string;
212
+ /**
213
+ * Deployment worker queues
214
+ */
215
+ readonly workerQueues: outputs.GetDeploymentWorkerQueue[];
216
+ /**
217
+ * Deployment workload identity
218
+ */
219
+ readonly workloadIdentity: string;
220
+ /**
221
+ * Deployment workspace identifier
222
+ */
223
+ readonly workspaceId: string;
51
224
  }
52
225
  /**
53
- * Astronomer Deployment Resource
226
+ * Deployment data source
227
+ *
228
+ * ## Example Usage
229
+ *
230
+ * ```typescript
231
+ * import * as pulumi from "@pulumi/pulumi";
232
+ * import * as astronomer from "@pulumi/astronomer";
233
+ *
234
+ * const exampleDeployment = astronomer.getDeployment({
235
+ * id: "clozc036j01to01jrlgvueo8t",
236
+ * });
237
+ * export const deployment = exampleDeployment;
238
+ * ```
54
239
  */
55
240
  export declare function getDeploymentOutput(args: GetDeploymentOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDeploymentResult>;
56
241
  /**
@@ -58,7 +243,7 @@ export declare function getDeploymentOutput(args: GetDeploymentOutputArgs, opts?
58
243
  */
59
244
  export interface GetDeploymentOutputArgs {
60
245
  /**
61
- * The Deployment's Identifier
246
+ * Deployment identifier
62
247
  */
63
248
  id: pulumi.Input<string>;
64
249
  }
package/getDeployment.js CHANGED
@@ -6,7 +6,19 @@ exports.getDeploymentOutput = exports.getDeployment = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Astronomer Deployment Resource
9
+ * Deployment data source
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as astronomer from "@pulumi/astronomer";
16
+ *
17
+ * const exampleDeployment = astronomer.getDeployment({
18
+ * id: "clozc036j01to01jrlgvueo8t",
19
+ * });
20
+ * export const deployment = exampleDeployment;
21
+ * ```
10
22
  */
11
23
  function getDeployment(args, opts) {
12
24
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -16,7 +28,19 @@ function getDeployment(args, opts) {
16
28
  }
17
29
  exports.getDeployment = getDeployment;
18
30
  /**
19
- * Astronomer Deployment Resource
31
+ * Deployment data source
32
+ *
33
+ * ## Example Usage
34
+ *
35
+ * ```typescript
36
+ * import * as pulumi from "@pulumi/pulumi";
37
+ * import * as astronomer from "@pulumi/astronomer";
38
+ *
39
+ * const exampleDeployment = astronomer.getDeployment({
40
+ * id: "clozc036j01to01jrlgvueo8t",
41
+ * });
42
+ * export const deployment = exampleDeployment;
43
+ * ```
20
44
  */
21
45
  function getDeploymentOutput(args, opts) {
22
46
  return pulumi.output(args).apply((a) => getDeployment(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getDeployment.js","sourceRoot":"","sources":["../getDeployment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAE9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sCAMC;AAiDD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
1
+ {"version":3,"file":"getDeployment.js","sourceRoot":"","sources":["../getDeployment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAE9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sCAMC;AAiND;;;;;;;;;;;;;;GAcG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
@@ -0,0 +1,149 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Deployment options data source
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as astronomer from "@pulumi/astronomer";
11
+ *
12
+ * const exampleDeploymentOptions = astronomer.getDeploymentOptions({});
13
+ * const exampleWithDeploymentIdQueryParam = astronomer.getDeploymentOptions({
14
+ * deploymentId: "clozc036j01to01jrlgvueo8t",
15
+ * });
16
+ * const exampleWithDeploymentTypeQueryParam = astronomer.getDeploymentOptions({
17
+ * deploymentType: "DEDICATED",
18
+ * });
19
+ * const exampleWithExecutorQueryParam = astronomer.getDeploymentOptions({
20
+ * executor: "CELERY",
21
+ * });
22
+ * const exampleWithCloudProviderQueryParam = astronomer.getDeploymentOptions({
23
+ * cloudProvider: "AWS",
24
+ * });
25
+ * export const deploymentOptions = exampleDeploymentOptions;
26
+ * ```
27
+ */
28
+ export declare function getDeploymentOptions(args?: GetDeploymentOptionsArgs, opts?: pulumi.InvokeOptions): Promise<GetDeploymentOptionsResult>;
29
+ /**
30
+ * A collection of arguments for invoking getDeploymentOptions.
31
+ */
32
+ export interface GetDeploymentOptionsArgs {
33
+ /**
34
+ * Cloud provider
35
+ */
36
+ cloudProvider?: string;
37
+ /**
38
+ * Deployment ID
39
+ */
40
+ deploymentId?: string;
41
+ /**
42
+ * Deployment type
43
+ */
44
+ deploymentType?: string;
45
+ /**
46
+ * Executor
47
+ */
48
+ executor?: string;
49
+ }
50
+ /**
51
+ * A collection of values returned by getDeploymentOptions.
52
+ */
53
+ export interface GetDeploymentOptionsResult {
54
+ /**
55
+ * Cloud provider
56
+ */
57
+ readonly cloudProvider?: string;
58
+ /**
59
+ * Deployment ID
60
+ */
61
+ readonly deploymentId?: string;
62
+ /**
63
+ * Deployment type
64
+ */
65
+ readonly deploymentType?: string;
66
+ /**
67
+ * Executor
68
+ */
69
+ readonly executor?: string;
70
+ /**
71
+ * Available executors
72
+ */
73
+ readonly executors: string[];
74
+ /**
75
+ * The provider-assigned unique ID for this managed resource.
76
+ */
77
+ readonly id: string;
78
+ /**
79
+ * Resource quota options
80
+ */
81
+ readonly resourceQuotas: outputs.GetDeploymentOptionsResourceQuotas;
82
+ /**
83
+ * Available Astro Runtime versions
84
+ */
85
+ readonly runtimeReleases: outputs.GetDeploymentOptionsRuntimeRelease[];
86
+ /**
87
+ * Available scheduler sizes
88
+ */
89
+ readonly schedulerMachines: outputs.GetDeploymentOptionsSchedulerMachine[];
90
+ /**
91
+ * Available worker machine types
92
+ */
93
+ readonly workerMachines: outputs.GetDeploymentOptionsWorkerMachine[];
94
+ /**
95
+ * Available worker queue options
96
+ */
97
+ readonly workerQueues: outputs.GetDeploymentOptionsWorkerQueues;
98
+ /**
99
+ * Available workload identity options
100
+ */
101
+ readonly workloadIdentityOptions: outputs.GetDeploymentOptionsWorkloadIdentityOption[];
102
+ }
103
+ /**
104
+ * Deployment options data source
105
+ *
106
+ * ## Example Usage
107
+ *
108
+ * ```typescript
109
+ * import * as pulumi from "@pulumi/pulumi";
110
+ * import * as astronomer from "@pulumi/astronomer";
111
+ *
112
+ * const exampleDeploymentOptions = astronomer.getDeploymentOptions({});
113
+ * const exampleWithDeploymentIdQueryParam = astronomer.getDeploymentOptions({
114
+ * deploymentId: "clozc036j01to01jrlgvueo8t",
115
+ * });
116
+ * const exampleWithDeploymentTypeQueryParam = astronomer.getDeploymentOptions({
117
+ * deploymentType: "DEDICATED",
118
+ * });
119
+ * const exampleWithExecutorQueryParam = astronomer.getDeploymentOptions({
120
+ * executor: "CELERY",
121
+ * });
122
+ * const exampleWithCloudProviderQueryParam = astronomer.getDeploymentOptions({
123
+ * cloudProvider: "AWS",
124
+ * });
125
+ * export const deploymentOptions = exampleDeploymentOptions;
126
+ * ```
127
+ */
128
+ export declare function getDeploymentOptionsOutput(args?: GetDeploymentOptionsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDeploymentOptionsResult>;
129
+ /**
130
+ * A collection of arguments for invoking getDeploymentOptions.
131
+ */
132
+ export interface GetDeploymentOptionsOutputArgs {
133
+ /**
134
+ * Cloud provider
135
+ */
136
+ cloudProvider?: pulumi.Input<string>;
137
+ /**
138
+ * Deployment ID
139
+ */
140
+ deploymentId?: pulumi.Input<string>;
141
+ /**
142
+ * Deployment type
143
+ */
144
+ deploymentType?: pulumi.Input<string>;
145
+ /**
146
+ * Executor
147
+ */
148
+ executor?: pulumi.Input<string>;
149
+ }
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.getDeploymentOptionsOutput = exports.getDeploymentOptions = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Deployment options data source
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as astronomer from "@pulumi/astronomer";
16
+ *
17
+ * const exampleDeploymentOptions = astronomer.getDeploymentOptions({});
18
+ * const exampleWithDeploymentIdQueryParam = astronomer.getDeploymentOptions({
19
+ * deploymentId: "clozc036j01to01jrlgvueo8t",
20
+ * });
21
+ * const exampleWithDeploymentTypeQueryParam = astronomer.getDeploymentOptions({
22
+ * deploymentType: "DEDICATED",
23
+ * });
24
+ * const exampleWithExecutorQueryParam = astronomer.getDeploymentOptions({
25
+ * executor: "CELERY",
26
+ * });
27
+ * const exampleWithCloudProviderQueryParam = astronomer.getDeploymentOptions({
28
+ * cloudProvider: "AWS",
29
+ * });
30
+ * export const deploymentOptions = exampleDeploymentOptions;
31
+ * ```
32
+ */
33
+ function getDeploymentOptions(args, opts) {
34
+ args = args || {};
35
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
36
+ return pulumi.runtime.invoke("astronomer:index/getDeploymentOptions:getDeploymentOptions", {
37
+ "cloudProvider": args.cloudProvider,
38
+ "deploymentId": args.deploymentId,
39
+ "deploymentType": args.deploymentType,
40
+ "executor": args.executor,
41
+ }, opts);
42
+ }
43
+ exports.getDeploymentOptions = getDeploymentOptions;
44
+ /**
45
+ * Deployment options data source
46
+ *
47
+ * ## Example Usage
48
+ *
49
+ * ```typescript
50
+ * import * as pulumi from "@pulumi/pulumi";
51
+ * import * as astronomer from "@pulumi/astronomer";
52
+ *
53
+ * const exampleDeploymentOptions = astronomer.getDeploymentOptions({});
54
+ * const exampleWithDeploymentIdQueryParam = astronomer.getDeploymentOptions({
55
+ * deploymentId: "clozc036j01to01jrlgvueo8t",
56
+ * });
57
+ * const exampleWithDeploymentTypeQueryParam = astronomer.getDeploymentOptions({
58
+ * deploymentType: "DEDICATED",
59
+ * });
60
+ * const exampleWithExecutorQueryParam = astronomer.getDeploymentOptions({
61
+ * executor: "CELERY",
62
+ * });
63
+ * const exampleWithCloudProviderQueryParam = astronomer.getDeploymentOptions({
64
+ * cloudProvider: "AWS",
65
+ * });
66
+ * export const deploymentOptions = exampleDeploymentOptions;
67
+ * ```
68
+ */
69
+ function getDeploymentOptionsOutput(args, opts) {
70
+ return pulumi.output(args).apply((a) => getDeploymentOptions(a, opts));
71
+ }
72
+ exports.getDeploymentOptionsOutput = getDeploymentOptionsOutput;
73
+ //# sourceMappingURL=getDeploymentOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDeploymentOptions.js","sourceRoot":"","sources":["../getDeploymentOptions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,oBAAoB,CAAC,IAA+B,EAAE,IAA2B;IAC7F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4DAA4D,EAAE;QACvF,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,oDAUC;AA6ED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,0BAA0B,CAAC,IAAqC,EAAE,IAA2B;IACzG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC/E,CAAC;AAFD,gEAEC"}
@@ -0,0 +1,77 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Deployments data source
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as astronomer from "@pulumi/astronomer";
11
+ *
12
+ * const exampleDeployments = astronomer.getDeployments({});
13
+ * const exampleDeploymentsFilterByNames = astronomer.getDeployments({
14
+ * names: ["my deployment"],
15
+ * });
16
+ * const exampleDeploymentsFilterByDeploymentIds = astronomer.getDeployments({
17
+ * deploymentIds: ["clozc036j01to01jrlgvueo8t"],
18
+ * });
19
+ * const exampleDeploymentsFilterByWorkspaceIds = astronomer.getDeployments({
20
+ * workspaceIds: ["clozc036j01to01jrlgvu798d"],
21
+ * });
22
+ * export const deployments = exampleDeployments;
23
+ * ```
24
+ */
25
+ export declare function getDeployments(args?: GetDeploymentsArgs, opts?: pulumi.InvokeOptions): Promise<GetDeploymentsResult>;
26
+ /**
27
+ * A collection of arguments for invoking getDeployments.
28
+ */
29
+ export interface GetDeploymentsArgs {
30
+ deploymentIds?: string[];
31
+ names?: string[];
32
+ workspaceIds?: string[];
33
+ }
34
+ /**
35
+ * A collection of values returned by getDeployments.
36
+ */
37
+ export interface GetDeploymentsResult {
38
+ readonly deploymentIds?: string[];
39
+ readonly deployments: outputs.GetDeploymentsDeployment[];
40
+ /**
41
+ * The provider-assigned unique ID for this managed resource.
42
+ */
43
+ readonly id: string;
44
+ readonly names?: string[];
45
+ readonly workspaceIds?: string[];
46
+ }
47
+ /**
48
+ * Deployments data source
49
+ *
50
+ * ## Example Usage
51
+ *
52
+ * ```typescript
53
+ * import * as pulumi from "@pulumi/pulumi";
54
+ * import * as astronomer from "@pulumi/astronomer";
55
+ *
56
+ * const exampleDeployments = astronomer.getDeployments({});
57
+ * const exampleDeploymentsFilterByNames = astronomer.getDeployments({
58
+ * names: ["my deployment"],
59
+ * });
60
+ * const exampleDeploymentsFilterByDeploymentIds = astronomer.getDeployments({
61
+ * deploymentIds: ["clozc036j01to01jrlgvueo8t"],
62
+ * });
63
+ * const exampleDeploymentsFilterByWorkspaceIds = astronomer.getDeployments({
64
+ * workspaceIds: ["clozc036j01to01jrlgvu798d"],
65
+ * });
66
+ * export const deployments = exampleDeployments;
67
+ * ```
68
+ */
69
+ export declare function getDeploymentsOutput(args?: GetDeploymentsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDeploymentsResult>;
70
+ /**
71
+ * A collection of arguments for invoking getDeployments.
72
+ */
73
+ export interface GetDeploymentsOutputArgs {
74
+ deploymentIds?: pulumi.Input<pulumi.Input<string>[]>;
75
+ names?: pulumi.Input<pulumi.Input<string>[]>;
76
+ workspaceIds?: pulumi.Input<pulumi.Input<string>[]>;
77
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.getDeploymentsOutput = exports.getDeployments = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Deployments data source
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as astronomer from "@pulumi/astronomer";
16
+ *
17
+ * const exampleDeployments = astronomer.getDeployments({});
18
+ * const exampleDeploymentsFilterByNames = astronomer.getDeployments({
19
+ * names: ["my deployment"],
20
+ * });
21
+ * const exampleDeploymentsFilterByDeploymentIds = astronomer.getDeployments({
22
+ * deploymentIds: ["clozc036j01to01jrlgvueo8t"],
23
+ * });
24
+ * const exampleDeploymentsFilterByWorkspaceIds = astronomer.getDeployments({
25
+ * workspaceIds: ["clozc036j01to01jrlgvu798d"],
26
+ * });
27
+ * export const deployments = exampleDeployments;
28
+ * ```
29
+ */
30
+ function getDeployments(args, opts) {
31
+ args = args || {};
32
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
33
+ return pulumi.runtime.invoke("astronomer:index/getDeployments:getDeployments", {
34
+ "deploymentIds": args.deploymentIds,
35
+ "names": args.names,
36
+ "workspaceIds": args.workspaceIds,
37
+ }, opts);
38
+ }
39
+ exports.getDeployments = getDeployments;
40
+ /**
41
+ * Deployments data source
42
+ *
43
+ * ## Example Usage
44
+ *
45
+ * ```typescript
46
+ * import * as pulumi from "@pulumi/pulumi";
47
+ * import * as astronomer from "@pulumi/astronomer";
48
+ *
49
+ * const exampleDeployments = astronomer.getDeployments({});
50
+ * const exampleDeploymentsFilterByNames = astronomer.getDeployments({
51
+ * names: ["my deployment"],
52
+ * });
53
+ * const exampleDeploymentsFilterByDeploymentIds = astronomer.getDeployments({
54
+ * deploymentIds: ["clozc036j01to01jrlgvueo8t"],
55
+ * });
56
+ * const exampleDeploymentsFilterByWorkspaceIds = astronomer.getDeployments({
57
+ * workspaceIds: ["clozc036j01to01jrlgvu798d"],
58
+ * });
59
+ * export const deployments = exampleDeployments;
60
+ * ```
61
+ */
62
+ function getDeploymentsOutput(args, opts) {
63
+ return pulumi.output(args).apply((a) => getDeployments(a, opts));
64
+ }
65
+ exports.getDeploymentsOutput = getDeploymentsOutput;
66
+ //# sourceMappingURL=getDeployments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDeployments.js","sourceRoot":"","sources":["../getDeployments.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,wCASC;AAwBD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,oBAAoB,CAAC,IAA+B,EAAE,IAA2B;IAC7F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACzE,CAAC;AAFD,oDAEC"}