@ryan-pip/pulumi_astronomer 0.0.11 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/cluster.d.ts +104 -87
- package/cluster.js +49 -19
- package/cluster.js.map +1 -1
- package/config/vars.d.ts +6 -2
- package/config/vars.js +7 -1
- package/config/vars.js.map +1 -1
- package/deployment.d.ts +305 -90
- package/deployment.js +61 -21
- package/deployment.js.map +1 -1
- package/getCluster.d.ts +40 -32
- package/getCluster.js +6 -6
- package/getCluster.js.map +1 -1
- package/getClusterOptions.d.ts +66 -0
- package/getClusterOptions.js +56 -0
- package/getClusterOptions.js.map +1 -0
- package/getClusters.d.ts +66 -0
- package/getClusters.js +57 -0
- package/getClusters.js.map +1 -0
- package/getDeployment.d.ts +196 -13
- package/getDeployment.js +24 -2
- package/getDeployment.js.map +1 -1
- package/getDeploymentOptions.d.ts +147 -0
- package/getDeploymentOptions.js +71 -0
- package/getDeploymentOptions.js.map +1 -0
- package/getDeployments.d.ts +75 -0
- package/getDeployments.js +64 -0
- package/getDeployments.js.map +1 -0
- package/getOrganization.d.ts +26 -46
- package/getOrganization.js +8 -15
- package/getOrganization.js.map +1 -1
- package/getTeam.d.ts +103 -0
- package/getTeam.js +47 -0
- package/getTeam.js.map +1 -0
- package/getTeams.d.ts +63 -0
- package/getTeams.js +56 -0
- package/getTeams.js.map +1 -0
- package/getWorkspace.d.ts +29 -12
- package/getWorkspace.js +6 -6
- package/getWorkspace.js.map +1 -1
- package/getWorkspaces.d.ts +78 -0
- package/getWorkspaces.js +69 -0
- package/getWorkspaces.js.map +1 -0
- package/hybridClusterWorkspaceAuthorization.d.ts +82 -0
- package/hybridClusterWorkspaceAuthorization.js +76 -0
- package/hybridClusterWorkspaceAuthorization.js.map +1 -0
- package/index.d.ts +28 -1
- package/index.js +32 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.bak +1 -1
- package/provider.d.ts +13 -5
- package/provider.js +3 -2
- package/provider.js.map +1 -1
- package/teamRoles.d.ts +89 -0
- package/teamRoles.js +64 -0
- package/teamRoles.js.map +1 -0
- package/types/input.d.ts +176 -20
- package/types/output.d.ts +1350 -36
- package/workspace.d.ts +55 -17
- package/workspace.js +21 -3
- package/workspace.js.map +1 -1
package/getDeployment.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
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 example = astronomer.getDeployment({
|
|
13
|
+
* id: "clozc036j01to01jrlgvueo8t",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
4
16
|
*/
|
|
5
17
|
export declare function getDeployment(args: GetDeploymentArgs, opts?: pulumi.InvokeOptions): Promise<GetDeploymentResult>;
|
|
6
18
|
/**
|
|
@@ -8,7 +20,7 @@ export declare function getDeployment(args: GetDeploymentArgs, opts?: pulumi.Inv
|
|
|
8
20
|
*/
|
|
9
21
|
export interface GetDeploymentArgs {
|
|
10
22
|
/**
|
|
11
|
-
*
|
|
23
|
+
* Deployment identifier
|
|
12
24
|
*/
|
|
13
25
|
id: string;
|
|
14
26
|
}
|
|
@@ -17,40 +29,211 @@ export interface GetDeploymentArgs {
|
|
|
17
29
|
*/
|
|
18
30
|
export interface GetDeploymentResult {
|
|
19
31
|
/**
|
|
20
|
-
*
|
|
32
|
+
* Deployment Airflow version
|
|
21
33
|
*/
|
|
22
34
|
readonly airflowVersion: string;
|
|
23
35
|
/**
|
|
24
|
-
*
|
|
36
|
+
* Deployment Astro Runtime version
|
|
37
|
+
*/
|
|
38
|
+
readonly astroRuntimeVersion: string;
|
|
39
|
+
/**
|
|
40
|
+
* Deployment cloud provider
|
|
25
41
|
*/
|
|
26
42
|
readonly cloudProvider: string;
|
|
27
43
|
/**
|
|
28
|
-
*
|
|
44
|
+
* Deployment cluster identifier
|
|
29
45
|
*/
|
|
30
46
|
readonly clusterId: string;
|
|
31
47
|
/**
|
|
32
|
-
*
|
|
48
|
+
* Deployment contact emails
|
|
49
|
+
*/
|
|
50
|
+
readonly contactEmails: string[];
|
|
51
|
+
/**
|
|
52
|
+
* Deployment creation timestamp
|
|
53
|
+
*/
|
|
54
|
+
readonly createdAt: string;
|
|
55
|
+
/**
|
|
56
|
+
* Deployment creator
|
|
57
|
+
*/
|
|
58
|
+
readonly createdBy: outputs.GetDeploymentCreatedBy;
|
|
59
|
+
/**
|
|
60
|
+
* Deployment DAG tarball version
|
|
61
|
+
*/
|
|
62
|
+
readonly dagTarballVersion: string;
|
|
63
|
+
/**
|
|
64
|
+
* Deployment default task pod CPU
|
|
33
65
|
*/
|
|
34
|
-
readonly
|
|
66
|
+
readonly defaultTaskPodCpu: string;
|
|
35
67
|
/**
|
|
36
|
-
*
|
|
68
|
+
* Deployment default task pod memory
|
|
69
|
+
*/
|
|
70
|
+
readonly defaultTaskPodMemory: string;
|
|
71
|
+
/**
|
|
72
|
+
* Deployment description
|
|
37
73
|
*/
|
|
38
74
|
readonly description: string;
|
|
39
75
|
/**
|
|
40
|
-
*
|
|
76
|
+
* Deployment desired DAG tarball version
|
|
77
|
+
*/
|
|
78
|
+
readonly desiredDagTarballVersion: string;
|
|
79
|
+
/**
|
|
80
|
+
* Deployment environment variables
|
|
81
|
+
*/
|
|
82
|
+
readonly environmentVariables: outputs.GetDeploymentEnvironmentVariable[];
|
|
83
|
+
/**
|
|
84
|
+
* Deployment executor
|
|
85
|
+
*/
|
|
86
|
+
readonly executor: string;
|
|
87
|
+
/**
|
|
88
|
+
* Deployment external IPs
|
|
89
|
+
*/
|
|
90
|
+
readonly externalIps: string[];
|
|
91
|
+
/**
|
|
92
|
+
* Deployment identifier
|
|
41
93
|
*/
|
|
42
94
|
readonly id: string;
|
|
43
95
|
/**
|
|
44
|
-
*
|
|
96
|
+
* Deployment image repository
|
|
97
|
+
*/
|
|
98
|
+
readonly imageRepository: string;
|
|
99
|
+
/**
|
|
100
|
+
* Deployment image tag
|
|
101
|
+
*/
|
|
102
|
+
readonly imageTag: string;
|
|
103
|
+
/**
|
|
104
|
+
* Deployment image version
|
|
105
|
+
*/
|
|
106
|
+
readonly imageVersion: string;
|
|
107
|
+
/**
|
|
108
|
+
* Whether the Deployment enforces CI/CD deploys
|
|
45
109
|
*/
|
|
46
110
|
readonly isCicdEnforced: boolean;
|
|
47
111
|
/**
|
|
48
|
-
*
|
|
112
|
+
* Whether DAG deploy is enabled
|
|
113
|
+
*/
|
|
114
|
+
readonly isDagDeployEnabled: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Whether Deployment is in development mode
|
|
117
|
+
*/
|
|
118
|
+
readonly isDevelopmentMode: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Whether Deployment has high availability
|
|
121
|
+
*/
|
|
122
|
+
readonly isHighAvailability: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Deployment name
|
|
49
125
|
*/
|
|
50
126
|
readonly name: string;
|
|
127
|
+
/**
|
|
128
|
+
* Deployment namespace
|
|
129
|
+
*/
|
|
130
|
+
readonly namespace: string;
|
|
131
|
+
/**
|
|
132
|
+
* Deployment OIDC issuer URL
|
|
133
|
+
*/
|
|
134
|
+
readonly oidcIssuerUrl: string;
|
|
135
|
+
/**
|
|
136
|
+
* Deployment region
|
|
137
|
+
*/
|
|
138
|
+
readonly region: string;
|
|
139
|
+
/**
|
|
140
|
+
* Deployment resource quota CPU
|
|
141
|
+
*/
|
|
142
|
+
readonly resourceQuotaCpu: string;
|
|
143
|
+
/**
|
|
144
|
+
* Deployment resource quota memory
|
|
145
|
+
*/
|
|
146
|
+
readonly resourceQuotaMemory: string;
|
|
147
|
+
/**
|
|
148
|
+
* Deployment scaling spec
|
|
149
|
+
*/
|
|
150
|
+
readonly scalingSpec: outputs.GetDeploymentScalingSpec;
|
|
151
|
+
/**
|
|
152
|
+
* Deployment scaling status
|
|
153
|
+
*/
|
|
154
|
+
readonly scalingStatus: outputs.GetDeploymentScalingStatus;
|
|
155
|
+
/**
|
|
156
|
+
* Deployment scheduler AU
|
|
157
|
+
*/
|
|
158
|
+
readonly schedulerAu: number;
|
|
159
|
+
/**
|
|
160
|
+
* Deployment scheduler CPU
|
|
161
|
+
*/
|
|
162
|
+
readonly schedulerCpu: string;
|
|
163
|
+
/**
|
|
164
|
+
* Deployment scheduler memory
|
|
165
|
+
*/
|
|
166
|
+
readonly schedulerMemory: string;
|
|
167
|
+
/**
|
|
168
|
+
* Deployment scheduler replicas
|
|
169
|
+
*/
|
|
170
|
+
readonly schedulerReplicas: number;
|
|
171
|
+
/**
|
|
172
|
+
* Deployment scheduler size
|
|
173
|
+
*/
|
|
174
|
+
readonly schedulerSize: string;
|
|
175
|
+
/**
|
|
176
|
+
* Deployment status
|
|
177
|
+
*/
|
|
178
|
+
readonly status: string;
|
|
179
|
+
/**
|
|
180
|
+
* Deployment status reason
|
|
181
|
+
*/
|
|
182
|
+
readonly statusReason: string;
|
|
183
|
+
/**
|
|
184
|
+
* Deployment task pod node pool identifier
|
|
185
|
+
*/
|
|
186
|
+
readonly taskPodNodePoolId: string;
|
|
187
|
+
/**
|
|
188
|
+
* Deployment type
|
|
189
|
+
*/
|
|
190
|
+
readonly type: string;
|
|
191
|
+
/**
|
|
192
|
+
* Deployment last updated timestamp
|
|
193
|
+
*/
|
|
194
|
+
readonly updatedAt: string;
|
|
195
|
+
/**
|
|
196
|
+
* Deployment updater
|
|
197
|
+
*/
|
|
198
|
+
readonly updatedBy: outputs.GetDeploymentUpdatedBy;
|
|
199
|
+
/**
|
|
200
|
+
* Deployment webserver Airflow API URL
|
|
201
|
+
*/
|
|
202
|
+
readonly webserverAirflowApiUrl: string;
|
|
203
|
+
/**
|
|
204
|
+
* Deployment webserver ingress hostname
|
|
205
|
+
*/
|
|
206
|
+
readonly webserverIngressHostname: string;
|
|
207
|
+
/**
|
|
208
|
+
* Deployment webserver URL
|
|
209
|
+
*/
|
|
210
|
+
readonly webserverUrl: string;
|
|
211
|
+
/**
|
|
212
|
+
* Deployment worker queues
|
|
213
|
+
*/
|
|
214
|
+
readonly workerQueues: outputs.GetDeploymentWorkerQueue[];
|
|
215
|
+
/**
|
|
216
|
+
* Deployment workload identity
|
|
217
|
+
*/
|
|
218
|
+
readonly workloadIdentity: string;
|
|
219
|
+
/**
|
|
220
|
+
* Deployment workspace identifier
|
|
221
|
+
*/
|
|
222
|
+
readonly workspaceId: string;
|
|
51
223
|
}
|
|
52
224
|
/**
|
|
53
|
-
*
|
|
225
|
+
* Deployment data source
|
|
226
|
+
*
|
|
227
|
+
* ## Example Usage
|
|
228
|
+
*
|
|
229
|
+
* ```typescript
|
|
230
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
231
|
+
* import * as astronomer from "@pulumi/astronomer";
|
|
232
|
+
*
|
|
233
|
+
* const example = astronomer.getDeployment({
|
|
234
|
+
* id: "clozc036j01to01jrlgvueo8t",
|
|
235
|
+
* });
|
|
236
|
+
* ```
|
|
54
237
|
*/
|
|
55
238
|
export declare function getDeploymentOutput(args: GetDeploymentOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDeploymentResult>;
|
|
56
239
|
/**
|
|
@@ -58,7 +241,7 @@ export declare function getDeploymentOutput(args: GetDeploymentOutputArgs, opts?
|
|
|
58
241
|
*/
|
|
59
242
|
export interface GetDeploymentOutputArgs {
|
|
60
243
|
/**
|
|
61
|
-
*
|
|
244
|
+
* Deployment identifier
|
|
62
245
|
*/
|
|
63
246
|
id: pulumi.Input<string>;
|
|
64
247
|
}
|
package/getDeployment.js
CHANGED
|
@@ -6,7 +6,18 @@ exports.getDeploymentOutput = exports.getDeployment = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
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 example = astronomer.getDeployment({
|
|
18
|
+
* id: "clozc036j01to01jrlgvueo8t",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
10
21
|
*/
|
|
11
22
|
function getDeployment(args, opts) {
|
|
12
23
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -16,7 +27,18 @@ function getDeployment(args, opts) {
|
|
|
16
27
|
}
|
|
17
28
|
exports.getDeployment = getDeployment;
|
|
18
29
|
/**
|
|
19
|
-
*
|
|
30
|
+
* Deployment data source
|
|
31
|
+
*
|
|
32
|
+
* ## Example Usage
|
|
33
|
+
*
|
|
34
|
+
* ```typescript
|
|
35
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
36
|
+
* import * as astronomer from "@pulumi/astronomer";
|
|
37
|
+
*
|
|
38
|
+
* const example = astronomer.getDeployment({
|
|
39
|
+
* id: "clozc036j01to01jrlgvueo8t",
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
20
42
|
*/
|
|
21
43
|
function getDeploymentOutput(args, opts) {
|
|
22
44
|
return pulumi.output(args).apply((a) => getDeployment(a, opts));
|
package/getDeployment.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDeployment.js","sourceRoot":"","sources":["../getDeployment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getDeployment.js","sourceRoot":"","sources":["../getDeployment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;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;;;;;;;;;;;;;GAaG;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,147 @@
|
|
|
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 example = 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
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare function getDeploymentOptions(args?: GetDeploymentOptionsArgs, opts?: pulumi.InvokeOptions): Promise<GetDeploymentOptionsResult>;
|
|
28
|
+
/**
|
|
29
|
+
* A collection of arguments for invoking getDeploymentOptions.
|
|
30
|
+
*/
|
|
31
|
+
export interface GetDeploymentOptionsArgs {
|
|
32
|
+
/**
|
|
33
|
+
* Cloud provider
|
|
34
|
+
*/
|
|
35
|
+
cloudProvider?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Deployment ID
|
|
38
|
+
*/
|
|
39
|
+
deploymentId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Deployment type
|
|
42
|
+
*/
|
|
43
|
+
deploymentType?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Executor
|
|
46
|
+
*/
|
|
47
|
+
executor?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A collection of values returned by getDeploymentOptions.
|
|
51
|
+
*/
|
|
52
|
+
export interface GetDeploymentOptionsResult {
|
|
53
|
+
/**
|
|
54
|
+
* Cloud provider
|
|
55
|
+
*/
|
|
56
|
+
readonly cloudProvider?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Deployment ID
|
|
59
|
+
*/
|
|
60
|
+
readonly deploymentId?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Deployment type
|
|
63
|
+
*/
|
|
64
|
+
readonly deploymentType?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Executor
|
|
67
|
+
*/
|
|
68
|
+
readonly executor?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Available executors
|
|
71
|
+
*/
|
|
72
|
+
readonly executors: string[];
|
|
73
|
+
/**
|
|
74
|
+
* The provider-assigned unique ID for this managed resource.
|
|
75
|
+
*/
|
|
76
|
+
readonly id: string;
|
|
77
|
+
/**
|
|
78
|
+
* Resource quota options
|
|
79
|
+
*/
|
|
80
|
+
readonly resourceQuotas: outputs.GetDeploymentOptionsResourceQuotas;
|
|
81
|
+
/**
|
|
82
|
+
* Available Astro Runtime versions
|
|
83
|
+
*/
|
|
84
|
+
readonly runtimeReleases: outputs.GetDeploymentOptionsRuntimeRelease[];
|
|
85
|
+
/**
|
|
86
|
+
* Available scheduler sizes
|
|
87
|
+
*/
|
|
88
|
+
readonly schedulerMachines: outputs.GetDeploymentOptionsSchedulerMachine[];
|
|
89
|
+
/**
|
|
90
|
+
* Available worker machine types
|
|
91
|
+
*/
|
|
92
|
+
readonly workerMachines: outputs.GetDeploymentOptionsWorkerMachine[];
|
|
93
|
+
/**
|
|
94
|
+
* Available worker queue options
|
|
95
|
+
*/
|
|
96
|
+
readonly workerQueues: outputs.GetDeploymentOptionsWorkerQueues;
|
|
97
|
+
/**
|
|
98
|
+
* Available workload identity options
|
|
99
|
+
*/
|
|
100
|
+
readonly workloadIdentityOptions: outputs.GetDeploymentOptionsWorkloadIdentityOption[];
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Deployment options data source
|
|
104
|
+
*
|
|
105
|
+
* ## Example Usage
|
|
106
|
+
*
|
|
107
|
+
* ```typescript
|
|
108
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
109
|
+
* import * as astronomer from "@pulumi/astronomer";
|
|
110
|
+
*
|
|
111
|
+
* const example = astronomer.getDeploymentOptions({});
|
|
112
|
+
* const exampleWithDeploymentIdQueryParam = astronomer.getDeploymentOptions({
|
|
113
|
+
* deploymentId: "clozc036j01to01jrlgvueo8t",
|
|
114
|
+
* });
|
|
115
|
+
* const exampleWithDeploymentTypeQueryParam = astronomer.getDeploymentOptions({
|
|
116
|
+
* deploymentType: "DEDICATED",
|
|
117
|
+
* });
|
|
118
|
+
* const exampleWithExecutorQueryParam = astronomer.getDeploymentOptions({
|
|
119
|
+
* executor: "CELERY",
|
|
120
|
+
* });
|
|
121
|
+
* const exampleWithCloudProviderQueryParam = astronomer.getDeploymentOptions({
|
|
122
|
+
* cloudProvider: "AWS",
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
export declare function getDeploymentOptionsOutput(args?: GetDeploymentOptionsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDeploymentOptionsResult>;
|
|
127
|
+
/**
|
|
128
|
+
* A collection of arguments for invoking getDeploymentOptions.
|
|
129
|
+
*/
|
|
130
|
+
export interface GetDeploymentOptionsOutputArgs {
|
|
131
|
+
/**
|
|
132
|
+
* Cloud provider
|
|
133
|
+
*/
|
|
134
|
+
cloudProvider?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* Deployment ID
|
|
137
|
+
*/
|
|
138
|
+
deploymentId?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Deployment type
|
|
141
|
+
*/
|
|
142
|
+
deploymentType?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Executor
|
|
145
|
+
*/
|
|
146
|
+
executor?: pulumi.Input<string>;
|
|
147
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 example = 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
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
function getDeploymentOptions(args, opts) {
|
|
33
|
+
args = args || {};
|
|
34
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
35
|
+
return pulumi.runtime.invoke("astronomer:index/getDeploymentOptions:getDeploymentOptions", {
|
|
36
|
+
"cloudProvider": args.cloudProvider,
|
|
37
|
+
"deploymentId": args.deploymentId,
|
|
38
|
+
"deploymentType": args.deploymentType,
|
|
39
|
+
"executor": args.executor,
|
|
40
|
+
}, opts);
|
|
41
|
+
}
|
|
42
|
+
exports.getDeploymentOptions = getDeploymentOptions;
|
|
43
|
+
/**
|
|
44
|
+
* Deployment options data source
|
|
45
|
+
*
|
|
46
|
+
* ## Example Usage
|
|
47
|
+
*
|
|
48
|
+
* ```typescript
|
|
49
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
50
|
+
* import * as astronomer from "@pulumi/astronomer";
|
|
51
|
+
*
|
|
52
|
+
* const example = astronomer.getDeploymentOptions({});
|
|
53
|
+
* const exampleWithDeploymentIdQueryParam = astronomer.getDeploymentOptions({
|
|
54
|
+
* deploymentId: "clozc036j01to01jrlgvueo8t",
|
|
55
|
+
* });
|
|
56
|
+
* const exampleWithDeploymentTypeQueryParam = astronomer.getDeploymentOptions({
|
|
57
|
+
* deploymentType: "DEDICATED",
|
|
58
|
+
* });
|
|
59
|
+
* const exampleWithExecutorQueryParam = astronomer.getDeploymentOptions({
|
|
60
|
+
* executor: "CELERY",
|
|
61
|
+
* });
|
|
62
|
+
* const exampleWithCloudProviderQueryParam = astronomer.getDeploymentOptions({
|
|
63
|
+
* cloudProvider: "AWS",
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
function getDeploymentOptionsOutput(args, opts) {
|
|
68
|
+
return pulumi.output(args).apply((a) => getDeploymentOptions(a, opts));
|
|
69
|
+
}
|
|
70
|
+
exports.getDeploymentOptionsOutput = getDeploymentOptionsOutput;
|
|
71
|
+
//# 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;;;;;;;;;;;;;;;;;;;;;;;GAuBG;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;;;;;;;;;;;;;;;;;;;;;;;GAuBG;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,75 @@
|
|
|
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
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function getDeployments(args?: GetDeploymentsArgs, opts?: pulumi.InvokeOptions): Promise<GetDeploymentsResult>;
|
|
25
|
+
/**
|
|
26
|
+
* A collection of arguments for invoking getDeployments.
|
|
27
|
+
*/
|
|
28
|
+
export interface GetDeploymentsArgs {
|
|
29
|
+
deploymentIds?: string[];
|
|
30
|
+
names?: string[];
|
|
31
|
+
workspaceIds?: string[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A collection of values returned by getDeployments.
|
|
35
|
+
*/
|
|
36
|
+
export interface GetDeploymentsResult {
|
|
37
|
+
readonly deploymentIds?: string[];
|
|
38
|
+
readonly deployments: outputs.GetDeploymentsDeployment[];
|
|
39
|
+
/**
|
|
40
|
+
* The provider-assigned unique ID for this managed resource.
|
|
41
|
+
*/
|
|
42
|
+
readonly id: string;
|
|
43
|
+
readonly names?: string[];
|
|
44
|
+
readonly workspaceIds?: string[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Deployments data source
|
|
48
|
+
*
|
|
49
|
+
* ## Example Usage
|
|
50
|
+
*
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as astronomer from "@pulumi/astronomer";
|
|
54
|
+
*
|
|
55
|
+
* const exampleDeployments = astronomer.getDeployments({});
|
|
56
|
+
* const exampleDeploymentsFilterByNames = astronomer.getDeployments({
|
|
57
|
+
* names: ["my deployment"],
|
|
58
|
+
* });
|
|
59
|
+
* const exampleDeploymentsFilterByDeploymentIds = astronomer.getDeployments({
|
|
60
|
+
* deploymentIds: ["clozc036j01to01jrlgvueo8t"],
|
|
61
|
+
* });
|
|
62
|
+
* const exampleDeploymentsFilterByWorkspaceIds = astronomer.getDeployments({
|
|
63
|
+
* workspaceIds: ["clozc036j01to01jrlgvu798d"],
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
export declare function getDeploymentsOutput(args?: GetDeploymentsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDeploymentsResult>;
|
|
68
|
+
/**
|
|
69
|
+
* A collection of arguments for invoking getDeployments.
|
|
70
|
+
*/
|
|
71
|
+
export interface GetDeploymentsOutputArgs {
|
|
72
|
+
deploymentIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
73
|
+
names?: pulumi.Input<pulumi.Input<string>[]>;
|
|
74
|
+
workspaceIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
75
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
function getDeployments(args, opts) {
|
|
30
|
+
args = args || {};
|
|
31
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
32
|
+
return pulumi.runtime.invoke("astronomer:index/getDeployments:getDeployments", {
|
|
33
|
+
"deploymentIds": args.deploymentIds,
|
|
34
|
+
"names": args.names,
|
|
35
|
+
"workspaceIds": args.workspaceIds,
|
|
36
|
+
}, opts);
|
|
37
|
+
}
|
|
38
|
+
exports.getDeployments = getDeployments;
|
|
39
|
+
/**
|
|
40
|
+
* Deployments data source
|
|
41
|
+
*
|
|
42
|
+
* ## Example Usage
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as astronomer from "@pulumi/astronomer";
|
|
47
|
+
*
|
|
48
|
+
* const exampleDeployments = astronomer.getDeployments({});
|
|
49
|
+
* const exampleDeploymentsFilterByNames = astronomer.getDeployments({
|
|
50
|
+
* names: ["my deployment"],
|
|
51
|
+
* });
|
|
52
|
+
* const exampleDeploymentsFilterByDeploymentIds = astronomer.getDeployments({
|
|
53
|
+
* deploymentIds: ["clozc036j01to01jrlgvueo8t"],
|
|
54
|
+
* });
|
|
55
|
+
* const exampleDeploymentsFilterByWorkspaceIds = astronomer.getDeployments({
|
|
56
|
+
* workspaceIds: ["clozc036j01to01jrlgvu798d"],
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
function getDeploymentsOutput(args, opts) {
|
|
61
|
+
return pulumi.output(args).apply((a) => getDeployments(a, opts));
|
|
62
|
+
}
|
|
63
|
+
exports.getDeploymentsOutput = getDeploymentsOutput;
|
|
64
|
+
//# 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;;;;;;;;;;;;;;;;;;;;GAoBG;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;;;;;;;;;;;;;;;;;;;;GAoBG;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"}
|