@ryan-pip/pulumi_astronomer 1.2.6 → 1.4.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.
@@ -0,0 +1,190 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Environment Object data source
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as astronomer from "@ryan-pip/pulumi_astronomer";
11
+ *
12
+ * const exampleEnvironmentObject = astronomer.getEnvironmentObject({
13
+ * id: "cm4ntm56001gk01mbhudv1elv",
14
+ * });
15
+ * export const environmentObject = exampleEnvironmentObject;
16
+ * ```
17
+ */
18
+ export declare function getEnvironmentObject(args: GetEnvironmentObjectArgs, opts?: pulumi.InvokeOptions): Promise<GetEnvironmentObjectResult>;
19
+ /**
20
+ * A collection of arguments for invoking getEnvironmentObject.
21
+ */
22
+ export interface GetEnvironmentObjectArgs {
23
+ /**
24
+ * Environment object identifier
25
+ */
26
+ id: string;
27
+ }
28
+ /**
29
+ * A collection of values returned by getEnvironmentObject.
30
+ */
31
+ export interface GetEnvironmentObjectResult {
32
+ /**
33
+ * The type of authentication (only used when object*type=METRICS*EXPORT)
34
+ */
35
+ readonly authType: string;
36
+ /**
37
+ * The ID for the connection auth type (only used when object_type=CONNECTION)
38
+ */
39
+ readonly authTypeId: string;
40
+ /**
41
+ * Whether to automatically link Deployments to the environment object
42
+ */
43
+ readonly autoLinkDeployments: boolean;
44
+ /**
45
+ * The bearer token to connect to the remote endpoint (only used when object*type=METRICS*EXPORT)
46
+ */
47
+ readonly basicToken: string;
48
+ /**
49
+ * The resolved auth type of the connection (only used when object*type=CONNECTION)
50
+ */
51
+ readonly connectionAuthType: outputs.GetEnvironmentObjectConnectionAuthType;
52
+ /**
53
+ * Environment Object creation timestamp
54
+ */
55
+ readonly createdAt: string;
56
+ /**
57
+ * Environment Object creator
58
+ */
59
+ readonly createdBy: outputs.GetEnvironmentObjectCreatedBy;
60
+ /**
61
+ * The Prometheus endpoint where the metrics are exported (only used when object*type=METRICS*EXPORT)
62
+ */
63
+ readonly endpoint: string;
64
+ /**
65
+ * The excluded links for the environment object
66
+ */
67
+ readonly excludeLinks: outputs.GetEnvironmentObjectExcludeLink[];
68
+ /**
69
+ * The type of exporter (only used when object*type=METRICS*EXPORT)
70
+ */
71
+ readonly exporterType: string;
72
+ /**
73
+ * Extra connection details as JSON string (only used when object_type=CONNECTION)
74
+ */
75
+ readonly extra: string;
76
+ /**
77
+ * HTTP request headers for the remote endpoint (only used when object*type=METRICS*EXPORT)
78
+ */
79
+ readonly headers: {
80
+ [key: string]: string;
81
+ };
82
+ /**
83
+ * The host address for the connection (only used when object_type=CONNECTION)
84
+ */
85
+ readonly host: string;
86
+ /**
87
+ * Environment object identifier
88
+ */
89
+ readonly id: string;
90
+ /**
91
+ * Whether the value is a secret (only used when object*type=AIRFLOW*VARIABLE)
92
+ */
93
+ readonly isSecret: boolean;
94
+ /**
95
+ * Key-value pair metrics labels (only used when object*type=METRICS*EXPORT)
96
+ */
97
+ readonly labels: {
98
+ [key: string]: string;
99
+ };
100
+ /**
101
+ * The Deployments linked to the environment object
102
+ */
103
+ readonly links: outputs.GetEnvironmentObjectLink[];
104
+ /**
105
+ * The username used for the connection (only used when object_type=CONNECTION)
106
+ */
107
+ readonly login: string;
108
+ /**
109
+ * The key for the environment object
110
+ */
111
+ readonly objectKey: string;
112
+ /**
113
+ * The type of environment object (AIRFLOW*VARIABLE, CONNECTION, METRICS*EXPORT)
114
+ */
115
+ readonly objectType: string;
116
+ /**
117
+ * The password — the connection password when object*type=CONNECTION, the HTTP Basic-auth password when object*type=METRICS_EXPORT
118
+ */
119
+ readonly password: string;
120
+ /**
121
+ * The port for the connection (only used when object_type=CONNECTION)
122
+ */
123
+ readonly port: number;
124
+ /**
125
+ * The schema for the connection (only used when object_type=CONNECTION)
126
+ */
127
+ readonly schema: string;
128
+ /**
129
+ * The scope of the environment object (WORKSPACE, DEPLOYMENT)
130
+ */
131
+ readonly scope: string;
132
+ /**
133
+ * The ID of the scope entity where the environment object is created
134
+ */
135
+ readonly scopeEntityId: string;
136
+ /**
137
+ * The source scope, if resolved from a link
138
+ */
139
+ readonly sourceScope: string;
140
+ /**
141
+ * The source scope entity ID, if resolved from a link
142
+ */
143
+ readonly sourceScopeEntityId: string;
144
+ /**
145
+ * The connection type (only used when object_type=CONNECTION)
146
+ */
147
+ readonly type: string;
148
+ /**
149
+ * Environment Object last updated timestamp
150
+ */
151
+ readonly updatedAt: string;
152
+ /**
153
+ * Environment Object updater
154
+ */
155
+ readonly updatedBy: outputs.GetEnvironmentObjectUpdatedBy;
156
+ /**
157
+ * The username to connect to the remote endpoint (only used when object*type=METRICS*EXPORT)
158
+ */
159
+ readonly username: string;
160
+ /**
161
+ * The value of the Airflow variable (only used when object*type=AIRFLOW*VARIABLE)
162
+ */
163
+ readonly value: string;
164
+ }
165
+ /**
166
+ * Environment Object data source
167
+ *
168
+ * ## Example Usage
169
+ *
170
+ * ```typescript
171
+ * import * as pulumi from "@pulumi/pulumi";
172
+ * import * as astronomer from "@ryan-pip/pulumi_astronomer";
173
+ *
174
+ * const exampleEnvironmentObject = astronomer.getEnvironmentObject({
175
+ * id: "cm4ntm56001gk01mbhudv1elv",
176
+ * });
177
+ * export const environmentObject = exampleEnvironmentObject;
178
+ * ```
179
+ */
180
+ export declare function getEnvironmentObjectOutput(args: GetEnvironmentObjectOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEnvironmentObjectResult>;
181
+ /**
182
+ * A collection of arguments for invoking getEnvironmentObject.
183
+ */
184
+ export interface GetEnvironmentObjectOutputArgs {
185
+ /**
186
+ * Environment object identifier
187
+ */
188
+ id: pulumi.Input<string>;
189
+ }
190
+ //# sourceMappingURL=getEnvironmentObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEnvironmentObject.d.ts","sourceRoot":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AAE,8BAA8B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAK7J;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B"}
@@ -0,0 +1,75 @@
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.getEnvironmentObjectOutput = exports.getEnvironmentObject = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Environment Object data source
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as astronomer from "@ryan-pip/pulumi_astronomer";
39
+ *
40
+ * const exampleEnvironmentObject = astronomer.getEnvironmentObject({
41
+ * id: "cm4ntm56001gk01mbhudv1elv",
42
+ * });
43
+ * export const environmentObject = exampleEnvironmentObject;
44
+ * ```
45
+ */
46
+ function getEnvironmentObject(args, opts) {
47
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
48
+ return pulumi.runtime.invoke("astronomer:index/getEnvironmentObject:getEnvironmentObject", {
49
+ "id": args.id,
50
+ }, opts);
51
+ }
52
+ exports.getEnvironmentObject = getEnvironmentObject;
53
+ /**
54
+ * Environment Object data source
55
+ *
56
+ * ## Example Usage
57
+ *
58
+ * ```typescript
59
+ * import * as pulumi from "@pulumi/pulumi";
60
+ * import * as astronomer from "@ryan-pip/pulumi_astronomer";
61
+ *
62
+ * const exampleEnvironmentObject = astronomer.getEnvironmentObject({
63
+ * id: "cm4ntm56001gk01mbhudv1elv",
64
+ * });
65
+ * export const environmentObject = exampleEnvironmentObject;
66
+ * ```
67
+ */
68
+ function getEnvironmentObjectOutput(args, opts) {
69
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
70
+ return pulumi.runtime.invokeOutput("astronomer:index/getEnvironmentObject:getEnvironmentObject", {
71
+ "id": args.id,
72
+ }, opts);
73
+ }
74
+ exports.getEnvironmentObjectOutput = getEnvironmentObjectOutput;
75
+ //# sourceMappingURL=getEnvironmentObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEnvironmentObject.js","sourceRoot":"","sources":["../getEnvironmentObject.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,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,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oDAKC;AAiJD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,0BAA0B,CAAC,IAAoC,EAAE,IAAiC;IAC9G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4DAA4D,EAAE;QAC7F,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gEAKC"}
@@ -0,0 +1,177 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Environment Objects data source. Lists environment objects with optional filters.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as astronomer from "@ryan-pip/pulumi_astronomer";
11
+ *
12
+ * const exampleEnvironmentObjects = astronomer.getEnvironmentObjects({});
13
+ * const workspaceExample = astronomer.getEnvironmentObjects({
14
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
15
+ * });
16
+ * const deploymentExample = astronomer.getEnvironmentObjects({
17
+ * deploymentId: "clx44jyu001m201m5dzsbexqr",
18
+ * resolveLinked: true,
19
+ * });
20
+ * const connectionsExample = astronomer.getEnvironmentObjects({
21
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
22
+ * objectType: "CONNECTION",
23
+ * });
24
+ * const variablesExample = astronomer.getEnvironmentObjects({
25
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
26
+ * objectType: "AIRFLOW_VARIABLE",
27
+ * });
28
+ * const metricsExportsExample = astronomer.getEnvironmentObjects({
29
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
30
+ * objectType: "METRICS_EXPORT",
31
+ * });
32
+ * const objectKeyExample = astronomer.getEnvironmentObjects({
33
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
34
+ * objectKey: "warehouse_postgres",
35
+ * });
36
+ * const withSecretsExample = astronomer.getEnvironmentObjects({
37
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
38
+ * showSecrets: true,
39
+ * });
40
+ * export const environmentObjects = exampleEnvironmentObjects;
41
+ * ```
42
+ */
43
+ export declare function getEnvironmentObjects(args?: GetEnvironmentObjectsArgs, opts?: pulumi.InvokeOptions): Promise<GetEnvironmentObjectsResult>;
44
+ /**
45
+ * A collection of arguments for invoking getEnvironmentObjects.
46
+ */
47
+ export interface GetEnvironmentObjectsArgs {
48
+ /**
49
+ * Filter by Deployment ID
50
+ */
51
+ deploymentId?: string;
52
+ /**
53
+ * Filter by object key
54
+ */
55
+ objectKey?: string;
56
+ /**
57
+ * Filter by object type (AIRFLOW*VARIABLE, CONNECTION, METRICS*EXPORT)
58
+ */
59
+ objectType?: string;
60
+ /**
61
+ * If true, resolves and returns environment objects linked to the specified Deployment or Workspace
62
+ */
63
+ resolveLinked?: boolean;
64
+ /**
65
+ * If true, returns the actual values of secret fields in the response
66
+ */
67
+ showSecrets?: boolean;
68
+ /**
69
+ * Filter by Workspace ID
70
+ */
71
+ workspaceId?: string;
72
+ }
73
+ /**
74
+ * A collection of values returned by getEnvironmentObjects.
75
+ */
76
+ export interface GetEnvironmentObjectsResult {
77
+ /**
78
+ * Filter by Deployment ID
79
+ */
80
+ readonly deploymentId?: string;
81
+ readonly environmentObjects: outputs.GetEnvironmentObjectsEnvironmentObject[];
82
+ /**
83
+ * The provider-assigned unique ID for this managed resource.
84
+ */
85
+ readonly id: string;
86
+ /**
87
+ * Filter by object key
88
+ */
89
+ readonly objectKey?: string;
90
+ /**
91
+ * Filter by object type (AIRFLOW*VARIABLE, CONNECTION, METRICS*EXPORT)
92
+ */
93
+ readonly objectType?: string;
94
+ /**
95
+ * If true, resolves and returns environment objects linked to the specified Deployment or Workspace
96
+ */
97
+ readonly resolveLinked?: boolean;
98
+ /**
99
+ * If true, returns the actual values of secret fields in the response
100
+ */
101
+ readonly showSecrets?: boolean;
102
+ /**
103
+ * Filter by Workspace ID
104
+ */
105
+ readonly workspaceId?: string;
106
+ }
107
+ /**
108
+ * Environment Objects data source. Lists environment objects with optional filters.
109
+ *
110
+ * ## Example Usage
111
+ *
112
+ * ```typescript
113
+ * import * as pulumi from "@pulumi/pulumi";
114
+ * import * as astronomer from "@ryan-pip/pulumi_astronomer";
115
+ *
116
+ * const exampleEnvironmentObjects = astronomer.getEnvironmentObjects({});
117
+ * const workspaceExample = astronomer.getEnvironmentObjects({
118
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
119
+ * });
120
+ * const deploymentExample = astronomer.getEnvironmentObjects({
121
+ * deploymentId: "clx44jyu001m201m5dzsbexqr",
122
+ * resolveLinked: true,
123
+ * });
124
+ * const connectionsExample = astronomer.getEnvironmentObjects({
125
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
126
+ * objectType: "CONNECTION",
127
+ * });
128
+ * const variablesExample = astronomer.getEnvironmentObjects({
129
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
130
+ * objectType: "AIRFLOW_VARIABLE",
131
+ * });
132
+ * const metricsExportsExample = astronomer.getEnvironmentObjects({
133
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
134
+ * objectType: "METRICS_EXPORT",
135
+ * });
136
+ * const objectKeyExample = astronomer.getEnvironmentObjects({
137
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
138
+ * objectKey: "warehouse_postgres",
139
+ * });
140
+ * const withSecretsExample = astronomer.getEnvironmentObjects({
141
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
142
+ * showSecrets: true,
143
+ * });
144
+ * export const environmentObjects = exampleEnvironmentObjects;
145
+ * ```
146
+ */
147
+ export declare function getEnvironmentObjectsOutput(args?: GetEnvironmentObjectsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEnvironmentObjectsResult>;
148
+ /**
149
+ * A collection of arguments for invoking getEnvironmentObjects.
150
+ */
151
+ export interface GetEnvironmentObjectsOutputArgs {
152
+ /**
153
+ * Filter by Deployment ID
154
+ */
155
+ deploymentId?: pulumi.Input<string | undefined>;
156
+ /**
157
+ * Filter by object key
158
+ */
159
+ objectKey?: pulumi.Input<string | undefined>;
160
+ /**
161
+ * Filter by object type (AIRFLOW*VARIABLE, CONNECTION, METRICS*EXPORT)
162
+ */
163
+ objectType?: pulumi.Input<string | undefined>;
164
+ /**
165
+ * If true, resolves and returns environment objects linked to the specified Deployment or Workspace
166
+ */
167
+ resolveLinked?: pulumi.Input<boolean | undefined>;
168
+ /**
169
+ * If true, returns the actual values of secret fields in the response
170
+ */
171
+ showSecrets?: pulumi.Input<boolean | undefined>;
172
+ /**
173
+ * Filter by Workspace ID
174
+ */
175
+ workspaceId?: pulumi.Input<string | undefined>;
176
+ }
177
+ //# sourceMappingURL=getEnvironmentObjects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEnvironmentObjects.d.ts","sourceRoot":"","sources":["../getEnvironmentObjects.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAWzI;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAE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,CAAC,CAAC;IAC9C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAClD"}
@@ -0,0 +1,137 @@
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.getEnvironmentObjectsOutput = exports.getEnvironmentObjects = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Environment Objects data source. Lists environment objects with optional filters.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as astronomer from "@ryan-pip/pulumi_astronomer";
39
+ *
40
+ * const exampleEnvironmentObjects = astronomer.getEnvironmentObjects({});
41
+ * const workspaceExample = astronomer.getEnvironmentObjects({
42
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
43
+ * });
44
+ * const deploymentExample = astronomer.getEnvironmentObjects({
45
+ * deploymentId: "clx44jyu001m201m5dzsbexqr",
46
+ * resolveLinked: true,
47
+ * });
48
+ * const connectionsExample = astronomer.getEnvironmentObjects({
49
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
50
+ * objectType: "CONNECTION",
51
+ * });
52
+ * const variablesExample = astronomer.getEnvironmentObjects({
53
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
54
+ * objectType: "AIRFLOW_VARIABLE",
55
+ * });
56
+ * const metricsExportsExample = astronomer.getEnvironmentObjects({
57
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
58
+ * objectType: "METRICS_EXPORT",
59
+ * });
60
+ * const objectKeyExample = astronomer.getEnvironmentObjects({
61
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
62
+ * objectKey: "warehouse_postgres",
63
+ * });
64
+ * const withSecretsExample = astronomer.getEnvironmentObjects({
65
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
66
+ * showSecrets: true,
67
+ * });
68
+ * export const environmentObjects = exampleEnvironmentObjects;
69
+ * ```
70
+ */
71
+ function getEnvironmentObjects(args, opts) {
72
+ args = args || {};
73
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
74
+ return pulumi.runtime.invoke("astronomer:index/getEnvironmentObjects:getEnvironmentObjects", {
75
+ "deploymentId": args.deploymentId,
76
+ "objectKey": args.objectKey,
77
+ "objectType": args.objectType,
78
+ "resolveLinked": args.resolveLinked,
79
+ "showSecrets": args.showSecrets,
80
+ "workspaceId": args.workspaceId,
81
+ }, opts);
82
+ }
83
+ exports.getEnvironmentObjects = getEnvironmentObjects;
84
+ /**
85
+ * Environment Objects data source. Lists environment objects with optional filters.
86
+ *
87
+ * ## Example Usage
88
+ *
89
+ * ```typescript
90
+ * import * as pulumi from "@pulumi/pulumi";
91
+ * import * as astronomer from "@ryan-pip/pulumi_astronomer";
92
+ *
93
+ * const exampleEnvironmentObjects = astronomer.getEnvironmentObjects({});
94
+ * const workspaceExample = astronomer.getEnvironmentObjects({
95
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
96
+ * });
97
+ * const deploymentExample = astronomer.getEnvironmentObjects({
98
+ * deploymentId: "clx44jyu001m201m5dzsbexqr",
99
+ * resolveLinked: true,
100
+ * });
101
+ * const connectionsExample = astronomer.getEnvironmentObjects({
102
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
103
+ * objectType: "CONNECTION",
104
+ * });
105
+ * const variablesExample = astronomer.getEnvironmentObjects({
106
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
107
+ * objectType: "AIRFLOW_VARIABLE",
108
+ * });
109
+ * const metricsExportsExample = astronomer.getEnvironmentObjects({
110
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
111
+ * objectType: "METRICS_EXPORT",
112
+ * });
113
+ * const objectKeyExample = astronomer.getEnvironmentObjects({
114
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
115
+ * objectKey: "warehouse_postgres",
116
+ * });
117
+ * const withSecretsExample = astronomer.getEnvironmentObjects({
118
+ * workspaceId: "clx42sxw501gl01o0gjenthnh",
119
+ * showSecrets: true,
120
+ * });
121
+ * export const environmentObjects = exampleEnvironmentObjects;
122
+ * ```
123
+ */
124
+ function getEnvironmentObjectsOutput(args, opts) {
125
+ args = args || {};
126
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
127
+ return pulumi.runtime.invokeOutput("astronomer:index/getEnvironmentObjects:getEnvironmentObjects", {
128
+ "deploymentId": args.deploymentId,
129
+ "objectKey": args.objectKey,
130
+ "objectType": args.objectType,
131
+ "resolveLinked": args.resolveLinked,
132
+ "showSecrets": args.showSecrets,
133
+ "workspaceId": args.workspaceId,
134
+ }, opts);
135
+ }
136
+ exports.getEnvironmentObjectsOutput = getEnvironmentObjectsOutput;
137
+ //# sourceMappingURL=getEnvironmentObjects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEnvironmentObjects.js","sourceRoot":"","sources":["../getEnvironmentObjects.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8DAA8D,EAAE;QACzF,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,sDAWC;AAkED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,SAAgB,2BAA2B,CAAC,IAAsC,EAAE,IAAiC;IACjH,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8DAA8D,EAAE;QAC/F,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,kEAWC"}
package/getUsers.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as outputs from "./types/output";
3
3
  /**
4
- * Users data source
4
+ * Users data source. **Deprecated:** use the `astronomer.getUsersList` data source instead.
5
5
  *
6
6
  * ## Example Usage
7
7
  *
@@ -44,7 +44,7 @@ export interface GetUsersResult {
44
44
  readonly workspaceId?: string;
45
45
  }
46
46
  /**
47
- * Users data source
47
+ * Users data source. **Deprecated:** use the `astronomer.getUsersList` data source instead.
48
48
  *
49
49
  * ## Example Usage
50
50
  *
package/getUsers.js CHANGED
@@ -29,7 +29,7 @@ exports.getUsersOutput = exports.getUsers = void 0;
29
29
  const pulumi = __importStar(require("@pulumi/pulumi"));
30
30
  const utilities = __importStar(require("./utilities"));
31
31
  /**
32
- * Users data source
32
+ * Users data source. **Deprecated:** use the `astronomer.getUsersList` data source instead.
33
33
  *
34
34
  * ## Example Usage
35
35
  *
@@ -61,7 +61,7 @@ function getUsers(args, opts) {
61
61
  }
62
62
  exports.getUsers = getUsers;
63
63
  /**
64
- * Users data source
64
+ * Users data source. **Deprecated:** use the `astronomer.getUsersList` data source instead.
65
65
  *
66
66
  * ## Example Usage
67
67
  *